Skip to content

Commit 9eb3b9a

Browse files
committed
refactor: rename roles to role_ids in PersonalAccessToken model and add UUID validation
1 parent 08620d9 commit 9eb3b9a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

raystack/frontier/v1beta1/frontier.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4270,10 +4270,11 @@ message CreateCurrentUserPersonalTokenRequest {
42704270
(validate.rules).string.uuid = true,
42714271
(google.api.field_behavior) = REQUIRED
42724272
];
4273-
// Roles to scope the token to (e.g., ["app_organization_manager", "app_project_owner"])
4274-
repeated string roles = 3 [
4273+
// Role ids to scope the token to
4274+
repeated string role_ids = 3 [
42754275
(google.api.field_behavior) = REQUIRED,
4276-
(validate.rules).repeated = {min_items: 1}
4276+
(validate.rules).repeated = {min_items: 1},
4277+
(validate.rules).repeated.items.string.uuid = true
42774278
];
42784279
// For project-scoped roles: empty = all projects, non-empty = specific projects
42794280
repeated string project_ids = 4 [(validate.rules).repeated.items.string.uuid = true];

0 commit comments

Comments
 (0)