diff --git a/proto/controlclient.proto b/proto/controlclient.proto index bd1d9f6..771fc4f 100644 --- a/proto/controlclient.proto +++ b/proto/controlclient.proto @@ -15,6 +15,37 @@ service ScsControl { rpc CreateSigningKey (_CreateSigningKeyRequest) returns (_CreateSigningKeyResponse) {} rpc RevokeSigningKey (_RevokeSigningKeyRequest) returns (_RevokeSigningKeyResponse) {} rpc ListSigningKeys (_ListSigningKeysRequest) returns (_ListSigningKeysResponse) {} + rpc CreateIndex (_CreateIndexRequest) returns (_CreateIndexRequest) {} + rpc DeleteIndex(_DeleteIndexRequest) returns (_DeleteIndexResponse) {} + rpc ListIndexes(_ListIndexesRequest) returns (_ListIndexesResponse) {} +} + +message _CreateIndexRequest { + string index_name = 1; + uint64 num_dimensions = 2; +} + +message _CreateIndexResponse { +} + +message _DeleteIndexRequest { + string index_name = 1; +} + +message _DeleteIndexResponse { +} + +message _ListIndexesRequest { + string next_token = 1; +} + +message _ListIndexesResponse { + repeated _Index indexes = 1; + string next_token = 2; +} + +message _Index { + string index_name = 1; } message _DeleteCacheRequest {