Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions proto/agynio/api/agents/v1/agents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

// ===========================================================================
Expand Down
25 changes: 25 additions & 0 deletions proto/agynio/api/apps/v1/apps.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ service AppsService {
rpc ListInstallationAuditLogEntries(ListInstallationAuditLogEntriesRequest) returns (ListInstallationAuditLogEntriesResponse);

rpc DeleteOrganizationResources(DeleteOrganizationResourcesRequest) returns (DeleteOrganizationResourcesResponse);

rpc ReportConfigurationSchema(ReportConfigurationSchemaRequest) returns (ReportConfigurationSchemaResponse);
}

message EntityMeta {
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions proto/agynio/api/gateway/v1/apps.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
11 changes: 11 additions & 0 deletions proto/agynio/api/llm/v1/llm.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

// ===========================================================================
Expand Down
Loading