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
26 changes: 26 additions & 0 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ service FrontierService {

// Personal Access Token
rpc CreateCurrentUserPAT(CreateCurrentUserPATRequest) returns (CreateCurrentUserPATResponse) {}
rpc ListCurrentUserPATs(ListCurrentUserPATsRequest) returns (ListCurrentUserPATsResponse) {}
rpc GetCurrentUserPAT(GetCurrentUserPATRequest) returns (GetCurrentUserPATResponse) {}
}

// Billing
Expand Down Expand Up @@ -2860,3 +2862,27 @@ message CreateCurrentUserPATRequest {
message CreateCurrentUserPATResponse {
PAT pat = 1;
}

message ListCurrentUserPATsRequest {
string org_id = 1 [
(validate.rules).string.uuid = true,
(google.api.field_behavior) = REQUIRED
];
RQLRequest query = 2;
}

message ListCurrentUserPATsResponse {
repeated PAT pats = 1;
RQLQueryPaginationResponse pagination = 2;
}

message GetCurrentUserPATRequest {
string id = 1 [
(validate.rules).string.uuid = true,
(google.api.field_behavior) = REQUIRED
];
}

message GetCurrentUserPATResponse {
PAT pat = 1;
}
3 changes: 3 additions & 0 deletions raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ message PAT {
// this value is never persisted in the system so if lost, can't be recovered
string token = 5 [(google.api.field_behavior) = OUTPUT_ONLY];

repeated string role_ids = 6;
repeated string project_ids = 7;

google.protobuf.Timestamp expires_at = 10;
google.protobuf.Timestamp last_used_at = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Timestamp created_at = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down
Loading