@structured-id/proto 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/generated/sid/v1/account/account.d.ts +8 -8
  3. package/dist/generated/sid/v1/account/account.js +34 -34
  4. package/dist/generated/sid/v1/account/account.js.map +1 -1
  5. package/dist/generated/sid/v1/admin/enrollment.d.ts +1 -1
  6. package/dist/generated/sid/v1/admin/enrollment.js +4 -4
  7. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  8. package/dist/generated/sid/v1/admin/operations.d.ts +8 -8
  9. package/dist/generated/sid/v1/admin/operations.js +32 -32
  10. package/dist/generated/sid/v1/admin/operations.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/organizations.d.ts +4 -4
  12. package/dist/generated/sid/v1/admin/organizations.js +16 -16
  13. package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/provisioning.d.ts +3 -3
  15. package/dist/generated/sid/v1/admin/provisioning.js +13 -13
  16. package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
  17. package/dist/generated/sid/v1/authn/auth.d.ts +94 -84
  18. package/dist/generated/sid/v1/authn/auth.js +315 -315
  19. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  20. package/dist/generated/sid/v1/authn/flows.d.ts +1 -1
  21. package/dist/generated/sid/v1/authn/flows.js +4 -4
  22. package/dist/generated/sid/v1/authn/flows.js.map +1 -1
  23. package/dist/generated/sid/v1/authn/native_session.d.ts +1 -1
  24. package/dist/generated/sid/v1/authn/native_session.js +5 -5
  25. package/dist/generated/sid/v1/authn/native_session.js.map +1 -1
  26. package/dist/generated/sid/v1/authn/password_history.d.ts +8 -8
  27. package/dist/generated/sid/v1/authn/password_history.js +35 -35
  28. package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
  29. package/dist/generated/sid/v1/authz/authz.d.ts +229 -137
  30. package/dist/generated/sid/v1/authz/authz.js +404 -426
  31. package/dist/generated/sid/v1/authz/authz.js.map +1 -1
  32. package/dist/generated/sid/v1/authz/governance.d.ts +40 -26
  33. package/dist/generated/sid/v1/authz/governance.js +65 -71
  34. package/dist/generated/sid/v1/authz/governance.js.map +1 -1
  35. package/dist/generated/sid/v1/common/operation.d.ts +3 -3
  36. package/dist/generated/sid/v1/common/operation.js +13 -13
  37. package/dist/generated/sid/v1/common/operation.js.map +1 -1
  38. package/dist/generated/sid/v1/federation/upstream.d.ts +16 -12
  39. package/dist/generated/sid/v1/federation/upstream.js +48 -48
  40. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  41. package/dist/generated/sid/v1/identity/identity.d.ts +85 -85
  42. package/dist/generated/sid/v1/identity/identity.js +367 -367
  43. package/dist/generated/sid/v1/identity/identity.js.map +1 -1
  44. package/dist/generated/sid/v1/ids/ids.d.ts +16 -0
  45. package/dist/generated/sid/v1/ids/ids.js +8 -0
  46. package/dist/generated/sid/v1/ids/ids.js.map +1 -1
  47. package/dist/generated/sid/v1/machine/machine_user.d.ts +115 -56
  48. package/dist/generated/sid/v1/machine/machine_user.js +260 -211
  49. package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
  50. package/dist/generated/sid/v1/machine/pat.d.ts +16 -12
  51. package/dist/generated/sid/v1/machine/pat.js +41 -45
  52. package/dist/generated/sid/v1/machine/pat.js.map +1 -1
  53. package/dist/generated/sid/v1/projects/projects.d.ts +141 -103
  54. package/dist/generated/sid/v1/projects/projects.js +293 -271
  55. package/dist/generated/sid/v1/projects/projects.js.map +1 -1
  56. package/package.json +5 -5
@@ -5,13 +5,19 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
5
  import type { IBinaryReader } from "@protobuf-ts/runtime";
6
6
  import type { PartialMessage } from "@protobuf-ts/runtime";
7
7
  import { MessageType } from "@protobuf-ts/runtime";
8
- import { MachineUserId } from "../ids/ids.js";
9
8
  import { RequestConfirmation } from "../authn/sender_proof.js";
9
+ import { CedarPolicyId } from "../ids/ids.js";
10
10
  import { ResourceId } from "../ids/ids.js";
11
11
  import { Empty } from "../../../google/protobuf/empty.js";
12
12
  import { Duration } from "../../../google/protobuf/duration.js";
13
13
  import { ProvisioningConnectorId } from "../ids/ids.js";
14
+ import { MachineUserId } from "../ids/ids.js";
15
+ import { ProfileId } from "../ids/ids.js";
16
+ import { RoleAssignmentId } from "../ids/ids.js";
17
+ import { GroupId } from "../ids/ids.js";
14
18
  import { Timestamp } from "../../../google/protobuf/timestamp.js";
19
+ import { ProjectId } from "../ids/ids.js";
20
+ import { RoleId } from "../ids/ids.js";
15
21
  /**
16
22
  * Role represents a named collection of permissions.
17
23
  * Scoped to a project.
@@ -20,13 +26,17 @@ import { Timestamp } from "../../../google/protobuf/timestamp.js";
20
26
  */
21
27
  export interface Role {
22
28
  /**
23
- * @generated from protobuf field: string id = 1
29
+ * The role, as SID issued it.
30
+ *
31
+ * @generated from protobuf field: sid.v1.ids.RoleId id = 1
24
32
  */
25
- id: string;
33
+ id?: RoleId;
26
34
  /**
27
- * @generated from protobuf field: string project_id = 2
35
+ * The project the role belongs to.
36
+ *
37
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
28
38
  */
29
- projectId: string;
39
+ projectId?: ProjectId;
30
40
  /**
31
41
  * @generated from protobuf field: string name = 3
32
42
  */
@@ -58,13 +68,17 @@ export interface Role {
58
68
  */
59
69
  export interface Group {
60
70
  /**
61
- * @generated from protobuf field: string id = 1
71
+ * The group, as SID issued it.
72
+ *
73
+ * @generated from protobuf field: sid.v1.ids.GroupId id = 1
62
74
  */
63
- id: string;
75
+ id?: GroupId;
64
76
  /**
65
- * @generated from protobuf field: string project_id = 2
77
+ * The project the group belongs to.
78
+ *
79
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
66
80
  */
67
- projectId: string;
81
+ projectId?: ProjectId;
68
82
  /**
69
83
  * @generated from protobuf field: string name = 3
70
84
  */
@@ -91,30 +105,38 @@ export interface Group {
91
105
  */
92
106
  export interface RoleAssignment {
93
107
  /**
94
- * @generated from protobuf field: string id = 1
108
+ * The assignment, as SID issued it; RevokeRole names it.
109
+ *
110
+ * @generated from protobuf field: sid.v1.ids.RoleAssignmentId id = 1
95
111
  */
96
- id: string;
112
+ id?: RoleAssignmentId;
97
113
  /**
98
114
  * @generated from protobuf oneof: principal
99
115
  */
100
116
  principal: {
101
117
  oneofKind: "profileId";
102
118
  /**
103
- * @generated from protobuf field: string profile_id = 2
119
+ * A Profile of this installation.
120
+ *
121
+ * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 2
104
122
  */
105
- profileId: string;
123
+ profileId: ProfileId;
106
124
  } | {
107
125
  oneofKind: "groupId";
108
126
  /**
109
- * @generated from protobuf field: string group_id = 3
127
+ * A group of this installation; its members hold the role.
128
+ *
129
+ * @generated from protobuf field: sid.v1.ids.GroupId group_id = 3
110
130
  */
111
- groupId: string;
131
+ groupId: GroupId;
112
132
  } | {
113
133
  oneofKind: "machineUserId";
114
134
  /**
115
- * @generated from protobuf field: string machine_user_id = 8
135
+ * A machine user of this installation.
136
+ *
137
+ * @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 4
116
138
  */
117
- machineUserId: string;
139
+ machineUserId: MachineUserId;
118
140
  } | {
119
141
  oneofKind: "oauthClientId";
120
142
  /**
@@ -122,7 +144,7 @@ export interface RoleAssignment {
122
144
  * user's OAuth credentials resolve to the machine user, never to this
123
145
  * principal.
124
146
  *
125
- * @generated from protobuf field: string oauth_client_id = 9
147
+ * @generated from protobuf field: string oauth_client_id = 5
126
148
  */
127
149
  oauthClientId: string;
128
150
  } | {
@@ -131,33 +153,35 @@ export interface RoleAssignment {
131
153
  * A SCIM provisioning connector. Its roles take effect only for SCIM
132
154
  * actions on the protected directory resource named in `scope`.
133
155
  *
134
- * @generated from protobuf field: sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 10
156
+ * @generated from protobuf field: sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 6
135
157
  */
136
158
  provisioningConnectorId: ProvisioningConnectorId;
137
159
  } | {
138
160
  oneofKind: undefined;
139
161
  };
140
162
  /**
141
- * @generated from protobuf field: string role_id = 4
163
+ * The role assigned.
164
+ *
165
+ * @generated from protobuf field: sid.v1.ids.RoleId role_id = 7
142
166
  */
143
- roleId: string;
167
+ roleId?: RoleId;
144
168
  /**
145
169
  * Optional scope (resource constraint): e.g. "project:<uuid>", or
146
170
  * "oauth_resource:<resource_id>" for one registered protected resource
147
171
  * (its issuer is the resource's). The token inspector role is assigned
148
172
  * only with a protected-resource scope.
149
173
  *
150
- * @generated from protobuf field: optional string scope = 5
174
+ * @generated from protobuf field: optional string scope = 8
151
175
  */
152
176
  scope?: string;
153
177
  /**
154
178
  * Optional expiry (temporary role).
155
179
  *
156
- * @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 6
180
+ * @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 9
157
181
  */
158
182
  expiresAt?: Timestamp;
159
183
  /**
160
- * @generated from protobuf field: google.protobuf.Timestamp created_at = 7
184
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 10
161
185
  */
162
186
  createdAt?: Timestamp;
163
187
  /**
@@ -210,12 +234,12 @@ export interface AdminEnvelope {
210
234
  */
211
235
  operations: AdminOperation[];
212
236
  /**
213
- * The roles that may be administered, by role id. A role is matched by
214
- * identity and by its current content against `permission_ceiling`.
237
+ * The roles that may be administered. A role is matched by identity and by
238
+ * its current content against `permission_ceiling`.
215
239
  *
216
- * @generated from protobuf field: repeated string role_ids = 2
240
+ * @generated from protobuf field: repeated sid.v1.ids.RoleId role_ids = 2
217
241
  */
218
- roleIds: string[];
242
+ roleIds: RoleId[];
219
243
  /**
220
244
  * The permissions an administered role may hold at most: a role whose
221
245
  * current permissions exceed it cannot be assigned, whatever its name.
@@ -233,9 +257,9 @@ export interface AdminEnvelope {
233
257
  * When set, only this group and its members are eligible recipients. The
234
258
  * group cannot be deleted while an envelope names it.
235
259
  *
236
- * @generated from protobuf field: optional string recipient_group_id = 5
260
+ * @generated from protobuf field: sid.v1.ids.GroupId recipient_group_id = 5
237
261
  */
238
- recipientGroupId?: string;
262
+ recipientGroupId?: GroupId;
239
263
  /**
240
264
  * The longest validity an administered assignment may be given; every
241
265
  * administered assignment expires. Must be positive, whole seconds.
@@ -263,17 +287,17 @@ export interface AssignmentProvenance {
263
287
  * The administrative assignment that authorized the grant; absent when the
264
288
  * installation's administrator granted it as root of its scope.
265
289
  *
266
- * @generated from protobuf field: optional string basis_assignment_id = 2
290
+ * @generated from protobuf field: sid.v1.ids.RoleAssignmentId basis_assignment_id = 2
267
291
  */
268
- basisAssignmentId?: string;
292
+ basisAssignmentId?: RoleAssignmentId;
269
293
  /**
270
294
  * The administrative assignment this one depends on: set on a redelegated
271
295
  * administrative assignment, which ends when that source ends. An ordinary
272
296
  * assignment outlives the assignment that authorized it.
273
297
  *
274
- * @generated from protobuf field: optional string depends_on_assignment_id = 3
298
+ * @generated from protobuf field: sid.v1.ids.RoleAssignmentId depends_on_assignment_id = 3
275
299
  */
276
- dependsOnAssignmentId?: string;
300
+ dependsOnAssignmentId?: RoleAssignmentId;
277
301
  /**
278
302
  * The permissions the role could hold at most when an envelope approved
279
303
  * this working assignment. The role is never edited past them while the
@@ -308,11 +332,11 @@ export interface PolicyScope {
308
332
  oneofKind: "projectId";
309
333
  /**
310
334
  * Decisions on one project of this installation and on the protected
311
- * resources of its applications (UUID text).
335
+ * resources of its applications.
312
336
  *
313
- * @generated from protobuf field: string project_id = 2
337
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
314
338
  */
315
- projectId: string;
339
+ projectId: ProjectId;
316
340
  } | {
317
341
  oneofKind: "resource";
318
342
  /**
@@ -332,13 +356,15 @@ export interface PolicyScope {
332
356
  */
333
357
  export interface Policy {
334
358
  /**
335
- * @generated from protobuf field: string id = 1
359
+ * The policy, as SID issued it.
360
+ *
361
+ * @generated from protobuf field: sid.v1.ids.CedarPolicyId id = 1
336
362
  */
337
- id: string;
363
+ id?: CedarPolicyId;
338
364
  /**
339
365
  * What the policy applies to; set by its creation and never changed.
340
366
  *
341
- * @generated from protobuf field: sid.v1.authz.PolicyScope scope = 10
367
+ * @generated from protobuf field: sid.v1.authz.PolicyScope scope = 2
342
368
  */
343
369
  scope?: PolicyScope;
344
370
  /**
@@ -378,7 +404,7 @@ export interface Policy {
378
404
  /**
379
405
  * Stored revision: 0 when created, moved on by every change.
380
406
  *
381
- * @generated from protobuf field: uint64 revision = 11
407
+ * @generated from protobuf field: uint64 revision = 10
382
408
  */
383
409
  revision: bigint;
384
410
  }
@@ -400,19 +426,19 @@ export interface CheckPermissionRequest {
400
426
  * vocabulary (for example "orders.read"). The receiver maps its real
401
427
  * operation to it; SID does not derive it from an HTTP method or path.
402
428
  *
403
- * @generated from protobuf field: string action = 2
429
+ * @generated from protobuf field: string action = 1
404
430
  */
405
431
  action: string;
406
432
  /**
407
433
  * How fresh the decision must be; unspecified is CONSISTENCY_EVENTUAL.
408
434
  *
409
- * @generated from protobuf field: sid.v1.authz.Consistency consistency = 4
435
+ * @generated from protobuf field: sid.v1.authz.Consistency consistency = 2
410
436
  */
411
437
  consistency: Consistency;
412
438
  /**
413
439
  * Where the action would take effect.
414
440
  *
415
- * @generated from protobuf field: sid.v1.authz.PermissionTarget target = 6
441
+ * @generated from protobuf field: sid.v1.authz.PermissionTarget target = 3
416
442
  */
417
443
  target?: PermissionTarget;
418
444
  /**
@@ -426,7 +452,7 @@ export interface CheckPermissionRequest {
426
452
  * The subject of one original request to the target, established from
427
453
  * that request's own access token (request-bound evaluation).
428
454
  *
429
- * @generated from protobuf field: sid.v1.authz.RequestEvaluation request = 7
455
+ * @generated from protobuf field: sid.v1.authz.RequestEvaluation request = 4
430
456
  */
431
457
  request: RequestEvaluation;
432
458
  } | {
@@ -436,7 +462,7 @@ export interface CheckPermissionRequest {
436
462
  * claims no presence, session, assurance or sender proof, and cannot
437
463
  * satisfy a policy that requires them.
438
464
  *
439
- * @generated from protobuf field: sid.v1.authz.SubjectReference named_subject = 8
465
+ * @generated from protobuf field: sid.v1.authz.SubjectReference named_subject = 5
440
466
  */
441
467
  namedSubject: SubjectReference;
442
468
  } | {
@@ -445,7 +471,7 @@ export interface CheckPermissionRequest {
445
471
  * The caller itself, as its own credential authenticates it. Needs no
446
472
  * checker assignment.
447
473
  *
448
- * @generated from protobuf field: sid.v1.authz.SelfEvaluation self = 9
474
+ * @generated from protobuf field: sid.v1.authz.SelfEvaluation self = 6
449
475
  */
450
476
  self: SelfEvaluation;
451
477
  } | {
@@ -474,12 +500,12 @@ export interface PermissionTarget {
474
500
  } | {
475
501
  oneofKind: "projectId";
476
502
  /**
477
- * A project of this installation, for project-wide permissions (UUID
478
- * text). Only the caller's own subject may be asked about a project.
503
+ * A project of this installation, for project-wide permissions. Only the
504
+ * caller's own subject may be asked about a project.
479
505
  *
480
- * @generated from protobuf field: string project_id = 2
506
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
481
507
  */
482
- projectId: string;
508
+ projectId: ProjectId;
483
509
  } | {
484
510
  oneofKind: undefined;
485
511
  };
@@ -591,6 +617,12 @@ export interface SelfEvaluation {
591
617
  * @generated from protobuf message sid.v1.authz.CheckPermissionResponse
592
618
  */
593
619
  export interface CheckPermissionResponse {
620
+ /**
621
+ * The decision.
622
+ *
623
+ * @generated from protobuf field: sid.v1.authz.PermissionOutcome outcome = 1
624
+ */
625
+ outcome: PermissionOutcome;
594
626
  /**
595
627
  * Explanation of the decision, for a caller asking about itself; absent
596
628
  * for a checker, which gets the decision without policy internals.
@@ -604,12 +636,6 @@ export interface CheckPermissionResponse {
604
636
  * @generated from protobuf field: optional string zookie = 3
605
637
  */
606
638
  zookie?: string;
607
- /**
608
- * The decision.
609
- *
610
- * @generated from protobuf field: sid.v1.authz.PermissionOutcome outcome = 4
611
- */
612
- outcome: PermissionOutcome;
613
639
  }
614
640
  /**
615
641
  * Several permission questions, answered together or refused together.
@@ -643,9 +669,11 @@ export interface BatchCheckPermissionResponse {
643
669
  */
644
670
  export interface CreateRoleRequest {
645
671
  /**
646
- * @generated from protobuf field: string project_id = 1
672
+ * The project the new role belongs to.
673
+ *
674
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
647
675
  */
648
- projectId: string;
676
+ projectId?: ProjectId;
649
677
  /**
650
678
  * @generated from protobuf field: string name = 2
651
679
  */
@@ -678,12 +706,16 @@ export interface GetRoleRequest {
678
706
  identifier: {
679
707
  oneofKind: "id";
680
708
  /**
681
- * @generated from protobuf field: string id = 1
709
+ * The role.
710
+ *
711
+ * @generated from protobuf field: sid.v1.ids.RoleId id = 1
682
712
  */
683
- id: string;
713
+ id: RoleId;
684
714
  } | {
685
715
  oneofKind: "name";
686
716
  /**
717
+ * The role's name within `project_id`.
718
+ *
687
719
  * @generated from protobuf field: string name = 2
688
720
  */
689
721
  name: string;
@@ -691,11 +723,11 @@ export interface GetRoleRequest {
691
723
  oneofKind: undefined;
692
724
  };
693
725
  /**
694
- * Required when looking up by name.
726
+ * The project whose role `name` names; required when looking up by name.
695
727
  *
696
- * @generated from protobuf field: optional string project_id = 3
728
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 3
697
729
  */
698
- projectId?: string;
730
+ projectId?: ProjectId;
699
731
  }
700
732
  /**
701
733
  * @generated from protobuf message sid.v1.authz.GetRoleResponse
@@ -720,9 +752,9 @@ export interface UpdateRoleRequest {
720
752
  /**
721
753
  * The role to change.
722
754
  *
723
- * @generated from protobuf field: string id = 1
755
+ * @generated from protobuf field: sid.v1.ids.RoleId id = 1
724
756
  */
725
- id: string;
757
+ id?: RoleId;
726
758
  /**
727
759
  * New description; unset keeps the current one.
728
760
  *
@@ -750,9 +782,11 @@ export interface UpdateRoleResponse {
750
782
  */
751
783
  export interface DeleteRoleRequest {
752
784
  /**
753
- * @generated from protobuf field: string id = 1
785
+ * The role to delete.
786
+ *
787
+ * @generated from protobuf field: sid.v1.ids.RoleId id = 1
754
788
  */
755
- id: string;
789
+ id?: RoleId;
756
790
  }
757
791
  /**
758
792
  * @generated from protobuf message sid.v1.authz.DeleteRoleResponse
@@ -764,9 +798,11 @@ export interface DeleteRoleResponse {
764
798
  */
765
799
  export interface ListRolesRequest {
766
800
  /**
767
- * @generated from protobuf field: string project_id = 1
801
+ * The project whose roles are listed.
802
+ *
803
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
768
804
  */
769
- projectId: string;
805
+ projectId?: ProjectId;
770
806
  /**
771
807
  * @generated from protobuf field: int32 page_size = 2
772
808
  */
@@ -799,28 +835,34 @@ export interface AssignRoleRequest {
799
835
  principal: {
800
836
  oneofKind: "profileId";
801
837
  /**
802
- * @generated from protobuf field: string profile_id = 1
838
+ * A Profile of this installation.
839
+ *
840
+ * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 1
803
841
  */
804
- profileId: string;
842
+ profileId: ProfileId;
805
843
  } | {
806
844
  oneofKind: "groupId";
807
845
  /**
808
- * @generated from protobuf field: string group_id = 2
846
+ * A group of this installation.
847
+ *
848
+ * @generated from protobuf field: sid.v1.ids.GroupId group_id = 2
809
849
  */
810
- groupId: string;
850
+ groupId: GroupId;
811
851
  } | {
812
852
  oneofKind: "machineUserId";
813
853
  /**
814
- * @generated from protobuf field: string machine_user_id = 6
854
+ * A machine user of this installation.
855
+ *
856
+ * @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 3
815
857
  */
816
- machineUserId: string;
858
+ machineUserId: MachineUserId;
817
859
  } | {
818
860
  oneofKind: "oauthClientId";
819
861
  /**
820
862
  * `client_id` of an existing confidential OAuth client; a public or
821
863
  * unknown client is refused (INVALID_ARGUMENT / NOT_FOUND).
822
864
  *
823
- * @generated from protobuf field: string oauth_client_id = 7
865
+ * @generated from protobuf field: string oauth_client_id = 4
824
866
  */
825
867
  oauthClientId: string;
826
868
  } | {
@@ -831,27 +873,29 @@ export interface AssignRoleRequest {
831
873
  * else INVALID_ARGUMENT; an unknown connector is NOT_FOUND, a retired one
832
874
  * FAILED_PRECONDITION.
833
875
  *
834
- * @generated from protobuf field: sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 8
876
+ * @generated from protobuf field: sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 5
835
877
  */
836
878
  provisioningConnectorId: ProvisioningConnectorId;
837
879
  } | {
838
880
  oneofKind: undefined;
839
881
  };
840
882
  /**
841
- * @generated from protobuf field: string role_id = 3
883
+ * The role to assign.
884
+ *
885
+ * @generated from protobuf field: sid.v1.ids.RoleId role_id = 6
842
886
  */
843
- roleId: string;
887
+ roleId?: RoleId;
844
888
  /**
845
889
  * Scope of the assignment, as in RoleAssignment.scope. For the token
846
890
  * inspector role it must name an existing, not retired protected resource
847
891
  * ("oauth_resource:<resource_id>"), else INVALID_ARGUMENT / NOT_FOUND /
848
892
  * FAILED_PRECONDITION (RESOURCE_RETIRED).
849
893
  *
850
- * @generated from protobuf field: optional string scope = 4
894
+ * @generated from protobuf field: optional string scope = 7
851
895
  */
852
896
  scope?: string;
853
897
  /**
854
- * @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 5
898
+ * @generated from protobuf field: optional google.protobuf.Timestamp expires_at = 8
855
899
  */
856
900
  expiresAt?: Timestamp;
857
901
  /**
@@ -888,9 +932,11 @@ export interface AssignRoleResponse {
888
932
  */
889
933
  export interface RevokeRoleRequest {
890
934
  /**
891
- * @generated from protobuf field: string assignment_id = 1
935
+ * The assignment to revoke.
936
+ *
937
+ * @generated from protobuf field: sid.v1.ids.RoleAssignmentId assignment_id = 1
892
938
  */
893
- assignmentId: string;
939
+ assignmentId?: RoleAssignmentId;
894
940
  }
895
941
  /**
896
942
  * @generated from protobuf message sid.v1.authz.RevokeRoleResponse
@@ -907,27 +953,35 @@ export interface ListRoleAssignmentsRequest {
907
953
  filter: {
908
954
  oneofKind: "profileId";
909
955
  /**
910
- * @generated from protobuf field: string profile_id = 1
956
+ * Assignments held directly by this Profile.
957
+ *
958
+ * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 1
911
959
  */
912
- profileId: string;
960
+ profileId: ProfileId;
913
961
  } | {
914
962
  oneofKind: "groupId";
915
963
  /**
916
- * @generated from protobuf field: string group_id = 2
964
+ * Assignments held by this group.
965
+ *
966
+ * @generated from protobuf field: sid.v1.ids.GroupId group_id = 2
917
967
  */
918
- groupId: string;
968
+ groupId: GroupId;
919
969
  } | {
920
970
  oneofKind: "roleId";
921
971
  /**
922
- * @generated from protobuf field: string role_id = 3
972
+ * Assignments of this role.
973
+ *
974
+ * @generated from protobuf field: sid.v1.ids.RoleId role_id = 3
923
975
  */
924
- roleId: string;
976
+ roleId: RoleId;
925
977
  } | {
926
978
  oneofKind: "machineUserId";
927
979
  /**
928
- * @generated from protobuf field: string machine_user_id = 4
980
+ * Assignments held by this machine user.
981
+ *
982
+ * @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 4
929
983
  */
930
- machineUserId: string;
984
+ machineUserId: MachineUserId;
931
985
  } | {
932
986
  oneofKind: "oauthClientId";
933
987
  /**
@@ -962,9 +1016,11 @@ export interface ListRoleAssignmentsResponse {
962
1016
  */
963
1017
  export interface CreateGroupRequest {
964
1018
  /**
965
- * @generated from protobuf field: string project_id = 1
1019
+ * The project the new group belongs to.
1020
+ *
1021
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
966
1022
  */
967
- projectId: string;
1023
+ projectId?: ProjectId;
968
1024
  /**
969
1025
  * @generated from protobuf field: string name = 2
970
1026
  */
@@ -993,12 +1049,16 @@ export interface GetGroupRequest {
993
1049
  identifier: {
994
1050
  oneofKind: "id";
995
1051
  /**
996
- * @generated from protobuf field: string id = 1
1052
+ * The group.
1053
+ *
1054
+ * @generated from protobuf field: sid.v1.ids.GroupId id = 1
997
1055
  */
998
- id: string;
1056
+ id: GroupId;
999
1057
  } | {
1000
1058
  oneofKind: "name";
1001
1059
  /**
1060
+ * The group's name within `project_id`.
1061
+ *
1002
1062
  * @generated from protobuf field: string name = 2
1003
1063
  */
1004
1064
  name: string;
@@ -1006,9 +1066,11 @@ export interface GetGroupRequest {
1006
1066
  oneofKind: undefined;
1007
1067
  };
1008
1068
  /**
1009
- * @generated from protobuf field: optional string project_id = 3
1069
+ * The project whose group `name` names; required when looking up by name.
1070
+ *
1071
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 3
1010
1072
  */
1011
- projectId?: string;
1073
+ projectId?: ProjectId;
1012
1074
  }
1013
1075
  /**
1014
1076
  * @generated from protobuf message sid.v1.authz.GetGroupResponse
@@ -1024,10 +1086,14 @@ export interface GetGroupResponse {
1024
1086
  */
1025
1087
  export interface UpdateGroupRequest {
1026
1088
  /**
1027
- * @generated from protobuf field: string id = 1
1089
+ * The group to change.
1090
+ *
1091
+ * @generated from protobuf field: sid.v1.ids.GroupId id = 1
1028
1092
  */
1029
- id: string;
1093
+ id?: GroupId;
1030
1094
  /**
1095
+ * New description; unset keeps the current one.
1096
+ *
1031
1097
  * @generated from protobuf field: optional string description = 2
1032
1098
  */
1033
1099
  description?: string;
@@ -1046,9 +1112,11 @@ export interface UpdateGroupResponse {
1046
1112
  */
1047
1113
  export interface DeleteGroupRequest {
1048
1114
  /**
1049
- * @generated from protobuf field: string id = 1
1115
+ * The group to delete.
1116
+ *
1117
+ * @generated from protobuf field: sid.v1.ids.GroupId id = 1
1050
1118
  */
1051
- id: string;
1119
+ id?: GroupId;
1052
1120
  }
1053
1121
  /**
1054
1122
  * @generated from protobuf message sid.v1.authz.DeleteGroupResponse
@@ -1060,9 +1128,11 @@ export interface DeleteGroupResponse {
1060
1128
  */
1061
1129
  export interface ListGroupsRequest {
1062
1130
  /**
1063
- * @generated from protobuf field: string project_id = 1
1131
+ * The project whose groups are listed.
1132
+ *
1133
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
1064
1134
  */
1065
- projectId: string;
1135
+ projectId?: ProjectId;
1066
1136
  /**
1067
1137
  * @generated from protobuf field: int32 page_size = 2
1068
1138
  */
@@ -1090,13 +1160,17 @@ export interface ListGroupsResponse {
1090
1160
  */
1091
1161
  export interface AddToGroupRequest {
1092
1162
  /**
1093
- * @generated from protobuf field: string group_id = 1
1163
+ * The group to add to.
1164
+ *
1165
+ * @generated from protobuf field: sid.v1.ids.GroupId group_id = 1
1094
1166
  */
1095
- groupId: string;
1167
+ groupId?: GroupId;
1096
1168
  /**
1097
- * @generated from protobuf field: string profile_id = 2
1169
+ * The Profile added.
1170
+ *
1171
+ * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 2
1098
1172
  */
1099
- profileId: string;
1173
+ profileId?: ProfileId;
1100
1174
  }
1101
1175
  /**
1102
1176
  * @generated from protobuf message sid.v1.authz.AddToGroupResponse
@@ -1108,13 +1182,17 @@ export interface AddToGroupResponse {
1108
1182
  */
1109
1183
  export interface RemoveFromGroupRequest {
1110
1184
  /**
1111
- * @generated from protobuf field: string group_id = 1
1185
+ * The group to remove from.
1186
+ *
1187
+ * @generated from protobuf field: sid.v1.ids.GroupId group_id = 1
1112
1188
  */
1113
- groupId: string;
1189
+ groupId?: GroupId;
1114
1190
  /**
1115
- * @generated from protobuf field: string profile_id = 2
1191
+ * The Profile removed.
1192
+ *
1193
+ * @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 2
1116
1194
  */
1117
- profileId: string;
1195
+ profileId?: ProfileId;
1118
1196
  }
1119
1197
  /**
1120
1198
  * @generated from protobuf message sid.v1.authz.RemoveFromGroupResponse
@@ -1126,18 +1204,22 @@ export interface RemoveFromGroupResponse {
1126
1204
  */
1127
1205
  export interface ListGroupMembersRequest {
1128
1206
  /**
1129
- * @generated from protobuf field: string group_id = 1
1207
+ * The group whose members are listed.
1208
+ *
1209
+ * @generated from protobuf field: sid.v1.ids.GroupId group_id = 1
1130
1210
  */
1131
- groupId: string;
1211
+ groupId?: GroupId;
1132
1212
  }
1133
1213
  /**
1134
1214
  * @generated from protobuf message sid.v1.authz.ListGroupMembersResponse
1135
1215
  */
1136
1216
  export interface ListGroupMembersResponse {
1137
1217
  /**
1138
- * @generated from protobuf field: repeated string profile_ids = 1
1218
+ * The group's member Profiles.
1219
+ *
1220
+ * @generated from protobuf field: repeated sid.v1.ids.ProfileId profile_ids = 1
1139
1221
  */
1140
- profileIds: string[];
1222
+ profileIds: ProfileId[];
1141
1223
  }
1142
1224
  /**
1143
1225
  * @generated from protobuf message sid.v1.authz.CreatePolicyRequest
@@ -1146,7 +1228,7 @@ export interface CreatePolicyRequest {
1146
1228
  /**
1147
1229
  * What the new policy applies to; required.
1148
1230
  *
1149
- * @generated from protobuf field: sid.v1.authz.PolicyScope scope = 7
1231
+ * @generated from protobuf field: sid.v1.authz.PolicyScope scope = 1
1150
1232
  */
1151
1233
  scope?: PolicyScope;
1152
1234
  /**
@@ -1184,9 +1266,11 @@ export interface CreatePolicyResponse {
1184
1266
  */
1185
1267
  export interface GetPolicyRequest {
1186
1268
  /**
1187
- * @generated from protobuf field: string id = 1
1269
+ * The policy.
1270
+ *
1271
+ * @generated from protobuf field: sid.v1.ids.CedarPolicyId id = 1
1188
1272
  */
1189
- id: string;
1273
+ id?: CedarPolicyId;
1190
1274
  }
1191
1275
  /**
1192
1276
  * @generated from protobuf message sid.v1.authz.GetPolicyResponse
@@ -1202,9 +1286,11 @@ export interface GetPolicyResponse {
1202
1286
  */
1203
1287
  export interface UpdatePolicyRequest {
1204
1288
  /**
1205
- * @generated from protobuf field: string id = 1
1289
+ * The policy to change.
1290
+ *
1291
+ * @generated from protobuf field: sid.v1.ids.CedarPolicyId id = 1
1206
1292
  */
1207
- id: string;
1293
+ id?: CedarPolicyId;
1208
1294
  /**
1209
1295
  * @generated from protobuf field: optional string description = 2
1210
1296
  */
@@ -1236,9 +1322,11 @@ export interface UpdatePolicyResponse {
1236
1322
  */
1237
1323
  export interface DeletePolicyRequest {
1238
1324
  /**
1239
- * @generated from protobuf field: string id = 1
1325
+ * The policy to delete.
1326
+ *
1327
+ * @generated from protobuf field: sid.v1.ids.CedarPolicyId id = 1
1240
1328
  */
1241
- id: string;
1329
+ id?: CedarPolicyId;
1242
1330
  }
1243
1331
  /**
1244
1332
  * @generated from protobuf message sid.v1.authz.DeletePolicyResponse
@@ -1252,7 +1340,7 @@ export interface ListPoliciesRequest {
1252
1340
  /**
1253
1341
  * The scope whose own policies are listed; required.
1254
1342
  *
1255
- * @generated from protobuf field: sid.v1.authz.PolicyScope scope = 4
1343
+ * @generated from protobuf field: sid.v1.authz.PolicyScope scope = 1
1256
1344
  */
1257
1345
  scope?: PolicyScope;
1258
1346
  /**
@@ -1302,7 +1390,7 @@ export interface EvaluatePolicyRequest {
1302
1390
  /**
1303
1391
  * The scope whose own policies are evaluated; required.
1304
1392
  *
1305
- * @generated from protobuf field: sid.v1.authz.PolicyScope scope = 6
1393
+ * @generated from protobuf field: sid.v1.authz.PolicyScope scope = 5
1306
1394
  */
1307
1395
  scope?: PolicyScope;
1308
1396
  }
@@ -1326,9 +1414,11 @@ export interface EvaluatePolicyResponse {
1326
1414
  */
1327
1415
  export interface PolicyMatch {
1328
1416
  /**
1329
- * @generated from protobuf field: string policy_id = 1
1417
+ * The matched policy.
1418
+ *
1419
+ * @generated from protobuf field: sid.v1.ids.CedarPolicyId policy_id = 1
1330
1420
  */
1331
- policyId: string;
1421
+ policyId?: CedarPolicyId;
1332
1422
  /**
1333
1423
  * @generated from protobuf field: string policy_name = 2
1334
1424
  */
@@ -1456,11 +1546,11 @@ export interface PolicyChange {
1456
1546
  } | {
1457
1547
  oneofKind: "deletePolicyId";
1458
1548
  /**
1459
- * Delete a Cedar policy by ID.
1549
+ * Delete this Cedar policy.
1460
1550
  *
1461
- * @generated from protobuf field: string delete_policy_id = 3
1551
+ * @generated from protobuf field: sid.v1.ids.CedarPolicyId delete_policy_id = 3
1462
1552
  */
1463
- deletePolicyId: string;
1553
+ deletePolicyId: CedarPolicyId;
1464
1554
  } | {
1465
1555
  oneofKind: "assignRole";
1466
1556
  /**
@@ -1472,11 +1562,11 @@ export interface PolicyChange {
1472
1562
  } | {
1473
1563
  oneofKind: "revokeAssignmentId";
1474
1564
  /**
1475
- * Revoke a role assignment by ID.
1565
+ * Revoke this role assignment.
1476
1566
  *
1477
- * @generated from protobuf field: string revoke_assignment_id = 5
1567
+ * @generated from protobuf field: sid.v1.ids.RoleAssignmentId revoke_assignment_id = 5
1478
1568
  */
1479
- revokeAssignmentId: string;
1569
+ revokeAssignmentId: RoleAssignmentId;
1480
1570
  } | {
1481
1571
  oneofKind: undefined;
1482
1572
  };
@@ -1490,9 +1580,9 @@ export interface SimulatePolicyRequest {
1490
1580
  /**
1491
1581
  * Project scope for the simulation.
1492
1582
  *
1493
- * @generated from protobuf field: string project_id = 1
1583
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
1494
1584
  */
1495
- projectId: string;
1585
+ projectId?: ProjectId;
1496
1586
  /**
1497
1587
  * Proposed changes to simulate.
1498
1588
  *
@@ -1576,9 +1666,11 @@ export interface SimulationImpact {
1576
1666
  */
1577
1667
  export interface SimulatePolicyResponse {
1578
1668
  /**
1579
- * @generated from protobuf field: string project_id = 1
1669
+ * The project simulated, as requested.
1670
+ *
1671
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
1580
1672
  */
1581
- projectId: string;
1673
+ projectId?: ProjectId;
1582
1674
  /**
1583
1675
  * Impacts where access changed (gained or lost).
1584
1676
  *