diff --git a/proto/agynio/api/agents/v1/agents.proto b/proto/agynio/api/agents/v1/agents.proto index efa8f3b..e6dee3f 100644 --- a/proto/agynio/api/agents/v1/agents.proto +++ b/proto/agynio/api/agents/v1/agents.proto @@ -148,6 +148,27 @@ service AgentsService { } rpc DeleteOrganizationResources(DeleteOrganizationResourcesRequest) returns (DeleteOrganizationResourcesResponse); + + rpc ResolveAgentExists(ResolveAgentExistsRequest) returns (ResolveAgentExistsResponse); + rpc ResolveEnvironmentExists(ResolveEnvironmentExistsRequest) returns (ResolveEnvironmentExistsResponse); +} + +message ResolveAgentExistsRequest { + string agent_id = 1; + string organization_id = 2; +} + +message ResolveAgentExistsResponse { + bool exists = 1; +} + +message ResolveEnvironmentExistsRequest { + string environment_id = 1; + string organization_id = 2; +} + +message ResolveEnvironmentExistsResponse { + bool exists = 1; } // =========================================================================== diff --git a/proto/agynio/api/apps/v1/apps.proto b/proto/agynio/api/apps/v1/apps.proto index 7ac79b8..6256858 100644 --- a/proto/agynio/api/apps/v1/apps.proto +++ b/proto/agynio/api/apps/v1/apps.proto @@ -48,6 +48,8 @@ service AppsService { rpc ListInstallationAuditLogEntries(ListInstallationAuditLogEntriesRequest) returns (ListInstallationAuditLogEntriesResponse); rpc DeleteOrganizationResources(DeleteOrganizationResourcesRequest) returns (DeleteOrganizationResourcesResponse); + + rpc ReportConfigurationSchema(ReportConfigurationSchemaRequest) returns (ReportConfigurationSchemaResponse); } message EntityMeta { @@ -74,6 +76,11 @@ message App { string organization_id = 9; AppVisibility visibility = 10; repeated string permissions = 11; + // JSON Schema for installation configuration. Root is an object with a flat + // properties map; property types are string, integer, number, boolean, and + // array of string. + optional google.protobuf.Struct configuration_schema = 12; + optional google.protobuf.Timestamp schema_reported_at = 13; } message AppProfile { @@ -272,6 +279,24 @@ message GetInstallationConfigurationResponse { google.protobuf.Struct configuration = 1; } +message ConfigurationValidationFailure { + repeated ConfigurationPropertyError errors = 1; +} + +message ConfigurationPropertyError { + string property = 1; + string message = 2; +} + +message ReportConfigurationSchemaRequest { + string app_id = 1; + google.protobuf.Struct configuration_schema = 2; +} + +message ReportConfigurationSchemaResponse { + App app = 1; +} + message ReportInstallationStatusRequest { string installation_id = 1; string status = 2; diff --git a/proto/agynio/api/gateway/v1/apps.proto b/proto/agynio/api/gateway/v1/apps.proto index 4e78b61..189bb3c 100644 --- a/proto/agynio/api/gateway/v1/apps.proto +++ b/proto/agynio/api/gateway/v1/apps.proto @@ -24,4 +24,6 @@ service AppsGateway { rpc ReportInstallationStatus(agynio.api.apps.v1.ReportInstallationStatusRequest) returns (agynio.api.apps.v1.ReportInstallationStatusResponse); rpc AppendInstallationAuditLogEntry(agynio.api.apps.v1.AppendInstallationAuditLogEntryRequest) returns (agynio.api.apps.v1.AppendInstallationAuditLogEntryResponse); rpc ListInstallationAuditLogEntries(agynio.api.apps.v1.ListInstallationAuditLogEntriesRequest) returns (agynio.api.apps.v1.ListInstallationAuditLogEntriesResponse); + rpc GetInstallationConfiguration(agynio.api.apps.v1.GetInstallationConfigurationRequest) returns (agynio.api.apps.v1.GetInstallationConfigurationResponse); + rpc ReportConfigurationSchema(agynio.api.apps.v1.ReportConfigurationSchemaRequest) returns (agynio.api.apps.v1.ReportConfigurationSchemaResponse); } diff --git a/proto/agynio/api/llm/v1/llm.proto b/proto/agynio/api/llm/v1/llm.proto index 589f360..90f54ce 100644 --- a/proto/agynio/api/llm/v1/llm.proto +++ b/proto/agynio/api/llm/v1/llm.proto @@ -47,6 +47,17 @@ service LLMService { rpc CountSubscriptionsReferencingSecret(CountSubscriptionsReferencingSecretRequest) returns (CountSubscriptionsReferencingSecretResponse); rpc DeleteOrganizationResources(DeleteOrganizationResourcesRequest) returns (DeleteOrganizationResourcesResponse); + + rpc ResolveModelExists(ResolveModelExistsRequest) returns (ResolveModelExistsResponse); +} + +message ResolveModelExistsRequest { + string model_id = 1; + string organization_id = 2; +} + +message ResolveModelExistsResponse { + bool exists = 1; } // ===========================================================================