@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.
- package/CHANGELOG.md +17 -0
- package/dist/generated/sid/v1/admin/admin.d.ts +48 -17
- package/dist/generated/sid/v1/admin/admin.js +55 -62
- package/dist/generated/sid/v1/admin/admin.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.d.ts +54 -26
- package/dist/generated/sid/v1/admin/branding.js +87 -98
- package/dist/generated/sid/v1/admin/branding.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +63 -44
- package/dist/generated/sid/v1/admin/enrollment.js +109 -107
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.d.ts +90 -42
- package/dist/generated/sid/v1/admin/flow.js +143 -155
- package/dist/generated/sid/v1/admin/flow.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.d.ts +11 -4
- package/dist/generated/sid/v1/admin/security.js +14 -14
- package/dist/generated/sid/v1/admin/security.js.map +1 -1
- package/dist/generated/sid/v1/admin/sessions.d.ts +18 -8
- package/dist/generated/sid/v1/admin/sessions.js +27 -29
- package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +13 -7
- package/dist/generated/sid/v1/authn/auth.js +20 -20
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +203 -111
- package/dist/generated/sid/v1/authz/authz.js +308 -330
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/authz/governance.d.ts +40 -26
- package/dist/generated/sid/v1/authz/governance.js +65 -71
- package/dist/generated/sid/v1/authz/governance.js.map +1 -1
- package/dist/generated/sid/v1/common/types.d.ts +29 -0
- package/dist/generated/sid/v1/common/types.js +47 -0
- package/dist/generated/sid/v1/common/types.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +34 -16
- package/dist/generated/sid/v1/federation/upstream.js +53 -59
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +12 -0
- package/dist/generated/sid/v1/ids/ids.js +6 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.d.ts +100 -48
- package/dist/generated/sid/v1/machine/machine_user.js +228 -179
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/dist/generated/sid/v1/machine/pat.d.ts +16 -12
- package/dist/generated/sid/v1/machine/pat.js +41 -45
- package/dist/generated/sid/v1/machine/pat.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.d.ts +141 -103
- package/dist/generated/sid/v1/projects/projects.js +293 -271
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/dist/ip.d.ts +31 -0
- package/dist/ip.js +84 -0
- package/dist/ip.js.map +1 -0
- 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
|
-
*
|
|
29
|
+
* The role, as SID issued it.
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf field: sid.v1.ids.RoleId id = 1
|
|
24
32
|
*/
|
|
25
|
-
id
|
|
33
|
+
id?: RoleId;
|
|
26
34
|
/**
|
|
27
|
-
*
|
|
35
|
+
* The project the role belongs to.
|
|
36
|
+
*
|
|
37
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
|
|
28
38
|
*/
|
|
29
|
-
projectId
|
|
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
|
-
*
|
|
71
|
+
* The group, as SID issued it.
|
|
72
|
+
*
|
|
73
|
+
* @generated from protobuf field: sid.v1.ids.GroupId id = 1
|
|
62
74
|
*/
|
|
63
|
-
id
|
|
75
|
+
id?: GroupId;
|
|
64
76
|
/**
|
|
65
|
-
*
|
|
77
|
+
* The project the group belongs to.
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
|
|
66
80
|
*/
|
|
67
|
-
projectId
|
|
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
|
-
*
|
|
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
|
|
112
|
+
id?: RoleAssignmentId;
|
|
97
113
|
/**
|
|
98
114
|
* @generated from protobuf oneof: principal
|
|
99
115
|
*/
|
|
100
116
|
principal: {
|
|
101
117
|
oneofKind: "profileId";
|
|
102
118
|
/**
|
|
103
|
-
*
|
|
119
|
+
* A Profile of this installation.
|
|
120
|
+
*
|
|
121
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 2
|
|
104
122
|
*/
|
|
105
|
-
profileId:
|
|
123
|
+
profileId: ProfileId;
|
|
106
124
|
} | {
|
|
107
125
|
oneofKind: "groupId";
|
|
108
126
|
/**
|
|
109
|
-
*
|
|
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:
|
|
131
|
+
groupId: GroupId;
|
|
112
132
|
} | {
|
|
113
133
|
oneofKind: "machineUserId";
|
|
114
134
|
/**
|
|
115
|
-
*
|
|
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:
|
|
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
|
-
*
|
|
163
|
+
* The role assigned.
|
|
164
|
+
*
|
|
165
|
+
* @generated from protobuf field: sid.v1.ids.RoleId role_id = 7
|
|
142
166
|
*/
|
|
143
|
-
roleId
|
|
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
|
|
214
|
-
*
|
|
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
|
|
240
|
+
* @generated from protobuf field: repeated sid.v1.ids.RoleId role_ids = 2
|
|
217
241
|
*/
|
|
218
|
-
roleIds:
|
|
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:
|
|
260
|
+
* @generated from protobuf field: sid.v1.ids.GroupId recipient_group_id = 5
|
|
237
261
|
*/
|
|
238
|
-
recipientGroupId?:
|
|
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:
|
|
290
|
+
* @generated from protobuf field: sid.v1.ids.RoleAssignmentId basis_assignment_id = 2
|
|
267
291
|
*/
|
|
268
|
-
basisAssignmentId?:
|
|
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:
|
|
298
|
+
* @generated from protobuf field: sid.v1.ids.RoleAssignmentId depends_on_assignment_id = 3
|
|
275
299
|
*/
|
|
276
|
-
dependsOnAssignmentId?:
|
|
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
|
|
335
|
+
* resources of its applications.
|
|
312
336
|
*
|
|
313
|
-
* @generated from protobuf field:
|
|
337
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
|
|
314
338
|
*/
|
|
315
|
-
projectId:
|
|
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
|
-
*
|
|
359
|
+
* The policy, as SID issued it.
|
|
360
|
+
*
|
|
361
|
+
* @generated from protobuf field: sid.v1.ids.CedarPolicyId id = 1
|
|
336
362
|
*/
|
|
337
|
-
id
|
|
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
|
|
478
|
-
*
|
|
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:
|
|
506
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
|
|
481
507
|
*/
|
|
482
|
-
projectId:
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
709
|
+
* The role.
|
|
710
|
+
*
|
|
711
|
+
* @generated from protobuf field: sid.v1.ids.RoleId id = 1
|
|
682
712
|
*/
|
|
683
|
-
id:
|
|
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
|
-
*
|
|
726
|
+
* The project whose role `name` names; required when looking up by name.
|
|
695
727
|
*
|
|
696
|
-
* @generated from protobuf field:
|
|
728
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 3
|
|
697
729
|
*/
|
|
698
|
-
projectId?:
|
|
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:
|
|
755
|
+
* @generated from protobuf field: sid.v1.ids.RoleId id = 1
|
|
724
756
|
*/
|
|
725
|
-
id
|
|
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
|
-
*
|
|
785
|
+
* The role to delete.
|
|
786
|
+
*
|
|
787
|
+
* @generated from protobuf field: sid.v1.ids.RoleId id = 1
|
|
754
788
|
*/
|
|
755
|
-
id
|
|
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
|
-
*
|
|
801
|
+
* The project whose roles are listed.
|
|
802
|
+
*
|
|
803
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
768
804
|
*/
|
|
769
|
-
projectId
|
|
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
|
-
*
|
|
838
|
+
* A Profile of this installation.
|
|
839
|
+
*
|
|
840
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 1
|
|
803
841
|
*/
|
|
804
|
-
profileId:
|
|
842
|
+
profileId: ProfileId;
|
|
805
843
|
} | {
|
|
806
844
|
oneofKind: "groupId";
|
|
807
845
|
/**
|
|
808
|
-
*
|
|
846
|
+
* A group of this installation.
|
|
847
|
+
*
|
|
848
|
+
* @generated from protobuf field: sid.v1.ids.GroupId group_id = 2
|
|
809
849
|
*/
|
|
810
|
-
groupId:
|
|
850
|
+
groupId: GroupId;
|
|
811
851
|
} | {
|
|
812
852
|
oneofKind: "machineUserId";
|
|
813
853
|
/**
|
|
814
|
-
*
|
|
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:
|
|
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
|
-
*
|
|
883
|
+
* The role to assign.
|
|
884
|
+
*
|
|
885
|
+
* @generated from protobuf field: sid.v1.ids.RoleId role_id = 6
|
|
842
886
|
*/
|
|
843
|
-
roleId
|
|
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
|
-
*
|
|
935
|
+
* The assignment to revoke.
|
|
936
|
+
*
|
|
937
|
+
* @generated from protobuf field: sid.v1.ids.RoleAssignmentId assignment_id = 1
|
|
892
938
|
*/
|
|
893
|
-
assignmentId
|
|
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
|
-
*
|
|
956
|
+
* Assignments held directly by this Profile.
|
|
957
|
+
*
|
|
958
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 1
|
|
911
959
|
*/
|
|
912
|
-
profileId:
|
|
960
|
+
profileId: ProfileId;
|
|
913
961
|
} | {
|
|
914
962
|
oneofKind: "groupId";
|
|
915
963
|
/**
|
|
916
|
-
*
|
|
964
|
+
* Assignments held by this group.
|
|
965
|
+
*
|
|
966
|
+
* @generated from protobuf field: sid.v1.ids.GroupId group_id = 2
|
|
917
967
|
*/
|
|
918
|
-
groupId:
|
|
968
|
+
groupId: GroupId;
|
|
919
969
|
} | {
|
|
920
970
|
oneofKind: "roleId";
|
|
921
971
|
/**
|
|
922
|
-
*
|
|
972
|
+
* Assignments of this role.
|
|
973
|
+
*
|
|
974
|
+
* @generated from protobuf field: sid.v1.ids.RoleId role_id = 3
|
|
923
975
|
*/
|
|
924
|
-
roleId:
|
|
976
|
+
roleId: RoleId;
|
|
925
977
|
} | {
|
|
926
978
|
oneofKind: "machineUserId";
|
|
927
979
|
/**
|
|
928
|
-
*
|
|
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:
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
1052
|
+
* The group.
|
|
1053
|
+
*
|
|
1054
|
+
* @generated from protobuf field: sid.v1.ids.GroupId id = 1
|
|
997
1055
|
*/
|
|
998
|
-
id:
|
|
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
|
-
*
|
|
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?:
|
|
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
|
-
*
|
|
1089
|
+
* The group to change.
|
|
1090
|
+
*
|
|
1091
|
+
* @generated from protobuf field: sid.v1.ids.GroupId id = 1
|
|
1028
1092
|
*/
|
|
1029
|
-
id
|
|
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
|
-
*
|
|
1115
|
+
* The group to delete.
|
|
1116
|
+
*
|
|
1117
|
+
* @generated from protobuf field: sid.v1.ids.GroupId id = 1
|
|
1050
1118
|
*/
|
|
1051
|
-
id
|
|
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
|
-
*
|
|
1131
|
+
* The project whose groups are listed.
|
|
1132
|
+
*
|
|
1133
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
1064
1134
|
*/
|
|
1065
|
-
projectId
|
|
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
|
-
*
|
|
1163
|
+
* The group to add to.
|
|
1164
|
+
*
|
|
1165
|
+
* @generated from protobuf field: sid.v1.ids.GroupId group_id = 1
|
|
1094
1166
|
*/
|
|
1095
|
-
groupId
|
|
1167
|
+
groupId?: GroupId;
|
|
1096
1168
|
/**
|
|
1097
|
-
*
|
|
1169
|
+
* The Profile added.
|
|
1170
|
+
*
|
|
1171
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 2
|
|
1098
1172
|
*/
|
|
1099
|
-
profileId
|
|
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
|
-
*
|
|
1185
|
+
* The group to remove from.
|
|
1186
|
+
*
|
|
1187
|
+
* @generated from protobuf field: sid.v1.ids.GroupId group_id = 1
|
|
1112
1188
|
*/
|
|
1113
|
-
groupId
|
|
1189
|
+
groupId?: GroupId;
|
|
1114
1190
|
/**
|
|
1115
|
-
*
|
|
1191
|
+
* The Profile removed.
|
|
1192
|
+
*
|
|
1193
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId profile_id = 2
|
|
1116
1194
|
*/
|
|
1117
|
-
profileId
|
|
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
|
-
*
|
|
1207
|
+
* The group whose members are listed.
|
|
1208
|
+
*
|
|
1209
|
+
* @generated from protobuf field: sid.v1.ids.GroupId group_id = 1
|
|
1130
1210
|
*/
|
|
1131
|
-
groupId
|
|
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
|
-
*
|
|
1218
|
+
* The group's member Profiles.
|
|
1219
|
+
*
|
|
1220
|
+
* @generated from protobuf field: repeated sid.v1.ids.ProfileId profile_ids = 1
|
|
1139
1221
|
*/
|
|
1140
|
-
profileIds:
|
|
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
|
-
*
|
|
1269
|
+
* The policy.
|
|
1270
|
+
*
|
|
1271
|
+
* @generated from protobuf field: sid.v1.ids.CedarPolicyId id = 1
|
|
1188
1272
|
*/
|
|
1189
|
-
id
|
|
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
|
-
*
|
|
1289
|
+
* The policy to change.
|
|
1290
|
+
*
|
|
1291
|
+
* @generated from protobuf field: sid.v1.ids.CedarPolicyId id = 1
|
|
1206
1292
|
*/
|
|
1207
|
-
id
|
|
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
|
-
*
|
|
1325
|
+
* The policy to delete.
|
|
1326
|
+
*
|
|
1327
|
+
* @generated from protobuf field: sid.v1.ids.CedarPolicyId id = 1
|
|
1240
1328
|
*/
|
|
1241
|
-
id
|
|
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
|
-
*
|
|
1417
|
+
* The matched policy.
|
|
1418
|
+
*
|
|
1419
|
+
* @generated from protobuf field: sid.v1.ids.CedarPolicyId policy_id = 1
|
|
1330
1420
|
*/
|
|
1331
|
-
policyId
|
|
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
|
|
1549
|
+
* Delete this Cedar policy.
|
|
1460
1550
|
*
|
|
1461
|
-
* @generated from protobuf field:
|
|
1551
|
+
* @generated from protobuf field: sid.v1.ids.CedarPolicyId delete_policy_id = 3
|
|
1462
1552
|
*/
|
|
1463
|
-
deletePolicyId:
|
|
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
|
|
1565
|
+
* Revoke this role assignment.
|
|
1476
1566
|
*
|
|
1477
|
-
* @generated from protobuf field:
|
|
1567
|
+
* @generated from protobuf field: sid.v1.ids.RoleAssignmentId revoke_assignment_id = 5
|
|
1478
1568
|
*/
|
|
1479
|
-
revokeAssignmentId:
|
|
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:
|
|
1583
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
1494
1584
|
*/
|
|
1495
|
-
projectId
|
|
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
|
-
*
|
|
1669
|
+
* The project simulated, as requested.
|
|
1670
|
+
*
|
|
1671
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
1580
1672
|
*/
|
|
1581
|
-
projectId
|
|
1673
|
+
projectId?: ProjectId;
|
|
1582
1674
|
/**
|
|
1583
1675
|
* Impacts where access changed (gained or lost).
|
|
1584
1676
|
*
|