Skip to content
Open
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
19 changes: 19 additions & 0 deletions proto/base/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ service Permission {

// LookupEntity method receives a PermissionLookupEntityRequest and returns a PermissionLookupEntityResponse.
// It is used to retrieve an entity by its identifier.
// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
rpc LookupEntity(PermissionLookupEntityRequest) returns (PermissionLookupEntityResponse) {
// HTTP mapping for this method
option (google.api.http) = {
Expand Down Expand Up @@ -408,6 +409,8 @@ service Permission {

// LookupEntityStream method receives a PermissionLookupEntityRequest and streams a series of PermissionLookupEntityStreamResponse messages.
// It is used to retrieve entities by their identifiers in a streaming fashion.
// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
rpc LookupEntityStream(PermissionLookupEntityRequest) returns (stream PermissionLookupEntityStreamResponse) {
// HTTP mapping for this method
option (google.api.http) = {
Expand Down Expand Up @@ -2125,6 +2128,8 @@ service Data {
}

// RPC method to write relationships for a tenant. This can be accessed via a POST request to the given HTTP path. It's tagged under "Data" in OpenAPI documentation.
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
rpc WriteRelationships(RelationshipWriteRequest) returns (RelationshipWriteResponse) {
option (google.api.http) = {
post: "/v1/tenants/{tenant_id}/relationships/write"
Expand All @@ -2139,6 +2144,8 @@ service Data {
}

// The ReadRelationships RPC method reads relation tuple(s).
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
rpc ReadRelationships(RelationshipReadRequest) returns (RelationshipReadResponse) {
option (google.api.http) = {
post: "/v1/tenants/{tenant_id}/data/relationships/read"
Expand Down Expand Up @@ -2273,6 +2280,8 @@ service Data {
}

// The ReadAttributes RPC method reads attribute(s) of a relation.
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
rpc ReadAttributes(AttributeReadRequest) returns (AttributeReadResponse) {
option (google.api.http) = {
post: "/v1/tenants/{tenant_id}/data/attributes/read"
Expand Down Expand Up @@ -2532,6 +2541,8 @@ service Data {
}

// RPC method to delete relationships for a tenant, accessed via a POST request to the specified path, tagged as "Data" in OpenAPI documentation.
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
rpc DeleteRelationships(RelationshipDeleteRequest) returns (RelationshipDeleteResponse) {
option (google.api.http) = {
post: "/v1/tenants/{tenant_id}/relationships/delete"
Expand All @@ -2546,6 +2557,8 @@ service Data {
}

// Executes or runs a specific bundle. This method is useful for processing or triggering actions based on the bundle's data.
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
rpc RunBundle(BundleRunRequest) returns (BundleRunResponse) {
option (google.api.http) = {
post: "/v1/tenants/{tenant_id}/data/run-bundle"
Expand Down Expand Up @@ -3357,6 +3370,8 @@ message BundleDeleteResponse {
service Tenancy {
// Create is a unary RPC to create a new tenant.
// It requires a TenantCreateRequest and returns a TenantCreateResponse.
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
rpc Create(TenantCreateRequest) returns (TenantCreateResponse) {
option (google.api.http) = {
post: "/v1/tenants/create"
Expand Down Expand Up @@ -3447,6 +3462,8 @@ service Tenancy {

// Delete is a unary RPC to delete an existing tenant.
// It requires a TenantDeleteRequest and returns a TenantDeleteResponse.
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
rpc Delete(TenantDeleteRequest) returns (TenantDeleteResponse) {
option (google.api.http) = {delete: "/v1/tenants/{id}"};

Expand Down Expand Up @@ -3525,6 +3542,8 @@ service Tenancy {

// List is a unary RPC to get a list of all tenants.
// It requires a TenantListRequest and returns a TenantListResponse.
// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
rpc List(TenantListRequest) returns (TenantListResponse) {
option (google.api.http) = {
post: "/v1/tenants/list"
Expand Down
Loading