@structured-id/proto 0.14.0 → 0.16.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 (50) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/generated/sid/v1/admin/admin.d.ts +48 -17
  3. package/dist/generated/sid/v1/admin/admin.js +55 -62
  4. package/dist/generated/sid/v1/admin/admin.js.map +1 -1
  5. package/dist/generated/sid/v1/admin/branding.d.ts +54 -26
  6. package/dist/generated/sid/v1/admin/branding.js +87 -98
  7. package/dist/generated/sid/v1/admin/branding.js.map +1 -1
  8. package/dist/generated/sid/v1/admin/enrollment.d.ts +63 -44
  9. package/dist/generated/sid/v1/admin/enrollment.js +109 -107
  10. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/flow.d.ts +90 -42
  12. package/dist/generated/sid/v1/admin/flow.js +143 -155
  13. package/dist/generated/sid/v1/admin/flow.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/security.d.ts +11 -4
  15. package/dist/generated/sid/v1/admin/security.js +14 -14
  16. package/dist/generated/sid/v1/admin/security.js.map +1 -1
  17. package/dist/generated/sid/v1/admin/sessions.d.ts +18 -8
  18. package/dist/generated/sid/v1/admin/sessions.js +27 -29
  19. package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
  20. package/dist/generated/sid/v1/authn/auth.d.ts +13 -7
  21. package/dist/generated/sid/v1/authn/auth.js +20 -20
  22. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  23. package/dist/generated/sid/v1/authz/authz.d.ts +203 -111
  24. package/dist/generated/sid/v1/authz/authz.js +308 -330
  25. package/dist/generated/sid/v1/authz/authz.js.map +1 -1
  26. package/dist/generated/sid/v1/authz/governance.d.ts +40 -26
  27. package/dist/generated/sid/v1/authz/governance.js +65 -71
  28. package/dist/generated/sid/v1/authz/governance.js.map +1 -1
  29. package/dist/generated/sid/v1/common/types.d.ts +29 -0
  30. package/dist/generated/sid/v1/common/types.js +47 -0
  31. package/dist/generated/sid/v1/common/types.js.map +1 -1
  32. package/dist/generated/sid/v1/federation/upstream.d.ts +34 -16
  33. package/dist/generated/sid/v1/federation/upstream.js +53 -59
  34. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  35. package/dist/generated/sid/v1/ids/ids.d.ts +12 -0
  36. package/dist/generated/sid/v1/ids/ids.js +6 -0
  37. package/dist/generated/sid/v1/ids/ids.js.map +1 -1
  38. package/dist/generated/sid/v1/machine/machine_user.d.ts +100 -48
  39. package/dist/generated/sid/v1/machine/machine_user.js +228 -179
  40. package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
  41. package/dist/generated/sid/v1/machine/pat.d.ts +16 -12
  42. package/dist/generated/sid/v1/machine/pat.js +41 -45
  43. package/dist/generated/sid/v1/machine/pat.js.map +1 -1
  44. package/dist/generated/sid/v1/projects/projects.d.ts +141 -103
  45. package/dist/generated/sid/v1/projects/projects.js +293 -271
  46. package/dist/generated/sid/v1/projects/projects.js.map +1 -1
  47. package/dist/ip.d.ts +31 -0
  48. package/dist/ip.js +84 -0
  49. package/dist/ip.js.map +1 -0
  50. package/package.json +6 -2
@@ -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 = 4
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
  /**
@@ -138,9 +160,11 @@ export interface RoleAssignment {
138
160
  oneofKind: undefined;
139
161
  };
140
162
  /**
141
- * @generated from protobuf field: string role_id = 7
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
@@ -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,9 +356,11 @@ 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
  *
@@ -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
  };
@@ -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,21 +835,27 @@ 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 = 3
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
  /**
@@ -838,9 +880,11 @@ export interface AssignRoleRequest {
838
880
  oneofKind: undefined;
839
881
  };
840
882
  /**
841
- * @generated from protobuf field: string role_id = 6
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
@@ -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
@@ -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
@@ -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
  *