Skip to content
Open
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
24 changes: 0 additions & 24 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ service AdminService {

rpc SearchOrganizationProjects(SearchOrganizationProjectsRequest) returns (SearchOrganizationProjectsResponse) {}

rpc SearchOrganizationTokens(SearchOrganizationTokensRequest) returns (SearchOrganizationTokensResponse) {}

rpc SearchOrganizationServiceUserCredentials(SearchOrganizationServiceUserCredentialsRequest) returns (SearchOrganizationServiceUserCredentialsResponse) {}

rpc SearchOrganizationServiceUsers(SearchOrganizationServiceUsersRequest) returns (SearchOrganizationServiceUsersResponse) {}
Expand Down Expand Up @@ -795,28 +793,6 @@ message SearchProjectUsersResponse {
RQLQueryGroupResponse group = 3;
}

message SearchOrganizationTokensRequest {
string id = 1 [(buf.validate.field).string.min_len = 3];
RQLRequest query = 2;
}

message SearchOrganizationTokensResponse {
message OrganizationToken {
int64 amount = 1;
string type = 2;
string description = 3;
string user_id = 4;
string user_title = 5;
string user_avatar = 6;
google.protobuf.Timestamp created_at = 7;
string org_id = 8;
}

repeated OrganizationToken organization_tokens = 1;
RQLQueryPaginationResponse pagination = 2;
RQLQueryGroupResponse group = 3;
}

message ExportOrganizationTokensRequest {
string id = 1 [(buf.validate.field).string.min_len = 3];
}
Expand Down
23 changes: 23 additions & 0 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ service FrontierService {
rpc CreateBillingUsage(CreateBillingUsageRequest) returns (CreateBillingUsageResponse) {}

rpc ListBillingTransactions(ListBillingTransactionsRequest) returns (ListBillingTransactionsResponse) {}
rpc SearchOrganizationTokens(SearchOrganizationTokensRequest) returns (SearchOrganizationTokensResponse) {}

rpc TotalDebitedTransactions(TotalDebitedTransactionsRequest) returns (TotalDebitedTransactionsResponse) {}

Expand Down Expand Up @@ -568,6 +569,28 @@ message TotalDebitedTransactionsResponse {
BillingAccount.Balance debited = 1;
}

message SearchOrganizationTokensRequest {
string id = 1 [(buf.validate.field).string.min_len = 3];
RQLRequest query = 2;
}

message SearchOrganizationTokensResponse {
message OrganizationToken {
int64 amount = 1;
string type = 2;
string description = 3;
string user_id = 4;
string user_title = 5;
string user_avatar = 6;
google.protobuf.Timestamp created_at = 7;
string org_id = 8;
}

repeated OrganizationToken organization_tokens = 1;
RQLQueryPaginationResponse pagination = 2;
RQLQueryGroupResponse group = 3;
}

message GetSubscriptionRequest {
reserved 1, 2;

Expand Down
Loading