diff --git a/raystack/frontier/v1beta1/frontier.proto b/raystack/frontier/v1beta1/frontier.proto index 5f12ca1e..596914e7 100644 --- a/raystack/frontier/v1beta1/frontier.proto +++ b/raystack/frontier/v1beta1/frontier.proto @@ -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 @@ -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; +} diff --git a/raystack/frontier/v1beta1/models.proto b/raystack/frontier/v1beta1/models.proto index 78f35bb6..d2954965 100644 --- a/raystack/frontier/v1beta1/models.proto +++ b/raystack/frontier/v1beta1/models.proto @@ -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];