@alis-build/alis-iam-v1 1.37.0 → 1.45.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.
@@ -1,7 +1,28 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/iam/v1/iam.proto (package alis.iam.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // Request and response messages that complement the standard `google.iam.v1`
6
+ // IAM methods with incremental binding changes and batched permission checks.
7
+ //
8
+ // The package defines no service. Services that protect their resources with
9
+ // a `google.iam.v1.Policy` use these messages in their own RPCs:
10
+ //
11
+ // - `AddIamBindingsRequest`: grant roles to principals on a resource,
12
+ // optionally removing each principal from its other roles.
13
+ // - `RemoveIamBindingsRequest`: remove principals from some or all of their
14
+ // roles on a resource.
15
+ // - `BatchTestIamPermissionsRequest` and `BatchTestIamPermissionsResponse`:
16
+ // check which of a set of permissions the caller has on each of several
17
+ // resources.
18
+ //
19
+ // For example, `alis.a2a.extension.history.v1.ThreadService` has
20
+ // `AddIamBindings` and `RemoveIamBindings` RPCs that take these requests and
21
+ // return a `google.iam.v1.Policy`.
22
+ //
23
+ // Principals are strings such as `user:123456789`, `serviceAccount:...`,
24
+ // `builders` or `admins:alis.os`; roles use the `roles/*` format.
25
+
5
26
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
27
  import type { Message } from "@bufbuild/protobuf";
7
28
 
@@ -11,50 +32,76 @@ import type { Message } from "@bufbuild/protobuf";
11
32
  export declare const file_alis_iam_v1_iam: GenFile;
12
33
 
13
34
  /**
35
+ * The request message for the AddIamBindings method
36
+ *
14
37
  * @generated from message alis.iam.v1.AddIamBindingsRequest
15
38
  */
16
39
  export declare type AddIamBindingsRequest = Message<"alis.iam.v1.AddIamBindingsRequest"> & {
17
40
  /**
41
+ * The iam protected resource to add the bindings to
42
+ *
18
43
  * @generated from field: string resource = 1;
19
44
  */
20
45
  resource: string;
21
46
 
22
47
  /**
48
+ * The principals (users, service accounts or groups)
49
+ * E.g: user:123456789, serviceAccount:alis-build@..., builders,builders:alis,builders:alis.os,admins,admins:alis.os
50
+ *
23
51
  * @generated from field: repeated string principals = 2;
24
52
  */
25
53
  principals: string[];
26
54
 
27
55
  /**
56
+ * The roles to grant to the principals. At least one role must be provided.
57
+ * Format: ['roles/*', ...]
58
+ * Example: ['roles/owner', 'roles/admin']
59
+ *
28
60
  * @generated from field: repeated string roles = 3;
29
61
  */
30
62
  roles: string[];
31
63
 
32
64
  /**
65
+ * Whether to remove each principal from any other roles they have
66
+ *
33
67
  * @generated from field: bool remove_from_other_roles = 4;
34
68
  */
35
69
  removeFromOtherRoles: boolean;
36
70
  };
37
71
 
38
72
  /**
73
+ * The request message for the AddIamBindings method
74
+ *
39
75
  * @generated from message alis.iam.v1.AddIamBindingsRequest
40
76
  */
41
77
  export declare type AddIamBindingsRequestJson = {
42
78
  /**
79
+ * The iam protected resource to add the bindings to
80
+ *
43
81
  * @generated from field: string resource = 1;
44
82
  */
45
83
  resource?: string;
46
84
 
47
85
  /**
86
+ * The principals (users, service accounts or groups)
87
+ * E.g: user:123456789, serviceAccount:alis-build@..., builders,builders:alis,builders:alis.os,admins,admins:alis.os
88
+ *
48
89
  * @generated from field: repeated string principals = 2;
49
90
  */
50
91
  principals?: string[];
51
92
 
52
93
  /**
94
+ * The roles to grant to the principals. At least one role must be provided.
95
+ * Format: ['roles/*', ...]
96
+ * Example: ['roles/owner', 'roles/admin']
97
+ *
53
98
  * @generated from field: repeated string roles = 3;
54
99
  */
55
100
  roles?: string[];
56
101
 
57
102
  /**
103
+ * Whether to remove each principal from any other roles they have
104
+ *
58
105
  * @generated from field: bool remove_from_other_roles = 4;
59
106
  */
60
107
  removeFromOtherRoles?: boolean;
@@ -67,40 +114,64 @@ export declare type AddIamBindingsRequestJson = {
67
114
  export declare const AddIamBindingsRequestSchema: GenMessage<AddIamBindingsRequest, {jsonType: AddIamBindingsRequestJson}>;
68
115
 
69
116
  /**
117
+ * The request message for the RemoveIamBindings method
118
+ *
70
119
  * @generated from message alis.iam.v1.RemoveIamBindingsRequest
71
120
  */
72
121
  export declare type RemoveIamBindingsRequest = Message<"alis.iam.v1.RemoveIamBindingsRequest"> & {
73
122
  /**
123
+ * The iam protected resource to remove the bindings from
124
+ *
74
125
  * @generated from field: string resource = 1;
75
126
  */
76
127
  resource: string;
77
128
 
78
129
  /**
130
+ * The principals (users, service accounts or groups)
131
+ * E.g: user:123456789, serviceAccount:alis-build@..., builders,builders:alis,builders:alis.os,admins,admins:alis.os
132
+ *
79
133
  * @generated from field: repeated string principals = 2;
80
134
  */
81
135
  principals: string[];
82
136
 
83
137
  /**
138
+ * The roles to remove the principals from
139
+ * If empty, the principals will be removed from all roles
140
+ * Format: ['roles/*', ...]
141
+ * Example: ['roles/owner', 'roles/admin']
142
+ *
84
143
  * @generated from field: repeated string roles = 3;
85
144
  */
86
145
  roles: string[];
87
146
  };
88
147
 
89
148
  /**
149
+ * The request message for the RemoveIamBindings method
150
+ *
90
151
  * @generated from message alis.iam.v1.RemoveIamBindingsRequest
91
152
  */
92
153
  export declare type RemoveIamBindingsRequestJson = {
93
154
  /**
155
+ * The iam protected resource to remove the bindings from
156
+ *
94
157
  * @generated from field: string resource = 1;
95
158
  */
96
159
  resource?: string;
97
160
 
98
161
  /**
162
+ * The principals (users, service accounts or groups)
163
+ * E.g: user:123456789, serviceAccount:alis-build@..., builders,builders:alis,builders:alis.os,admins,admins:alis.os
164
+ *
99
165
  * @generated from field: repeated string principals = 2;
100
166
  */
101
167
  principals?: string[];
102
168
 
103
169
  /**
170
+ * The roles to remove the principals from
171
+ * If empty, the principals will be removed from all roles
172
+ * Format: ['roles/*', ...]
173
+ * Example: ['roles/owner', 'roles/admin']
174
+ *
104
175
  * @generated from field: repeated string roles = 3;
105
176
  */
106
177
  roles?: string[];
@@ -113,30 +184,50 @@ export declare type RemoveIamBindingsRequestJson = {
113
184
  export declare const RemoveIamBindingsRequestSchema: GenMessage<RemoveIamBindingsRequest, {jsonType: RemoveIamBindingsRequestJson}>;
114
185
 
115
186
  /**
187
+ * Request message for `BatchTestIamPermissions` method.
188
+ *
116
189
  * @generated from message alis.iam.v1.BatchTestIamPermissionsRequest
117
190
  */
118
191
  export declare type BatchTestIamPermissionsRequest = Message<"alis.iam.v1.BatchTestIamPermissionsRequest"> & {
119
192
  /**
193
+ * REQUIRED: The resources for which the policy detail is being requested.
194
+ * See the operation documentation for the appropriate value for this field.
195
+ *
120
196
  * @generated from field: repeated string resources = 1;
121
197
  */
122
198
  resources: string[];
123
199
 
124
200
  /**
201
+ * The set of permissions to check for the `resources`. Permissions with
202
+ * wildcards (such as '*' or 'storage.*') are not allowed. For more
203
+ * information see
204
+ * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
205
+ *
125
206
  * @generated from field: repeated string permissions = 2;
126
207
  */
127
208
  permissions: string[];
128
209
  };
129
210
 
130
211
  /**
212
+ * Request message for `BatchTestIamPermissions` method.
213
+ *
131
214
  * @generated from message alis.iam.v1.BatchTestIamPermissionsRequest
132
215
  */
133
216
  export declare type BatchTestIamPermissionsRequestJson = {
134
217
  /**
218
+ * REQUIRED: The resources for which the policy detail is being requested.
219
+ * See the operation documentation for the appropriate value for this field.
220
+ *
135
221
  * @generated from field: repeated string resources = 1;
136
222
  */
137
223
  resources?: string[];
138
224
 
139
225
  /**
226
+ * The set of permissions to check for the `resources`. Permissions with
227
+ * wildcards (such as '*' or 'storage.*') are not allowed. For more
228
+ * information see
229
+ * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
230
+ *
140
231
  * @generated from field: repeated string permissions = 2;
141
232
  */
142
233
  permissions?: string[];
@@ -149,20 +240,28 @@ export declare type BatchTestIamPermissionsRequestJson = {
149
240
  export declare const BatchTestIamPermissionsRequestSchema: GenMessage<BatchTestIamPermissionsRequest, {jsonType: BatchTestIamPermissionsRequestJson}>;
150
241
 
151
242
  /**
243
+ * Response message for `BatchTestIamPermissions` method.
244
+ *
152
245
  * @generated from message alis.iam.v1.BatchTestIamPermissionsResponse
153
246
  */
154
247
  export declare type BatchTestIamPermissionsResponse = Message<"alis.iam.v1.BatchTestIamPermissionsResponse"> & {
155
248
  /**
249
+ * The permissions the requester has for each requested resource.
250
+ *
156
251
  * @generated from field: repeated alis.iam.v1.BatchTestIamPermissionsResponse.ResourcePermissions resource_permissions = 1;
157
252
  */
158
253
  resourcePermissions: BatchTestIamPermissionsResponse_ResourcePermissions[];
159
254
  };
160
255
 
161
256
  /**
257
+ * Response message for `BatchTestIamPermissions` method.
258
+ *
162
259
  * @generated from message alis.iam.v1.BatchTestIamPermissionsResponse
163
260
  */
164
261
  export declare type BatchTestIamPermissionsResponseJson = {
165
262
  /**
263
+ * The permissions the requester has for each requested resource.
264
+ *
166
265
  * @generated from field: repeated alis.iam.v1.BatchTestIamPermissionsResponse.ResourcePermissions resource_permissions = 1;
167
266
  */
168
267
  resourcePermissions?: BatchTestIamPermissionsResponse_ResourcePermissionsJson[];
@@ -175,30 +274,42 @@ export declare type BatchTestIamPermissionsResponseJson = {
175
274
  export declare const BatchTestIamPermissionsResponseSchema: GenMessage<BatchTestIamPermissionsResponse, {jsonType: BatchTestIamPermissionsResponseJson}>;
176
275
 
177
276
  /**
277
+ * The permissions the requester has on a resource.
278
+ *
178
279
  * @generated from message alis.iam.v1.BatchTestIamPermissionsResponse.ResourcePermissions
179
280
  */
180
281
  export declare type BatchTestIamPermissionsResponse_ResourcePermissions = Message<"alis.iam.v1.BatchTestIamPermissionsResponse.ResourcePermissions"> & {
181
282
  /**
283
+ * The resource, as given in `BatchTestIamPermissionsRequest.resources`.
284
+ *
182
285
  * @generated from field: string resource = 1;
183
286
  */
184
287
  resource: string;
185
288
 
186
289
  /**
290
+ * The requested permissions that the requester has on `resource`.
291
+ *
187
292
  * @generated from field: repeated string permissions = 2;
188
293
  */
189
294
  permissions: string[];
190
295
  };
191
296
 
192
297
  /**
298
+ * The permissions the requester has on a resource.
299
+ *
193
300
  * @generated from message alis.iam.v1.BatchTestIamPermissionsResponse.ResourcePermissions
194
301
  */
195
302
  export declare type BatchTestIamPermissionsResponse_ResourcePermissionsJson = {
196
303
  /**
304
+ * The resource, as given in `BatchTestIamPermissionsRequest.resources`.
305
+ *
197
306
  * @generated from field: string resource = 1;
198
307
  */
199
308
  resource?: string;
200
309
 
201
310
  /**
311
+ * The requested permissions that the requester has on `resource`.
312
+ *
202
313
  * @generated from field: repeated string permissions = 2;
203
314
  */
204
315
  permissions?: string[];
@@ -1,7 +1,28 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/iam/v1/iam.proto (package alis.iam.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // Request and response messages that complement the standard `google.iam.v1`
6
+ // IAM methods with incremental binding changes and batched permission checks.
7
+ //
8
+ // The package defines no service. Services that protect their resources with
9
+ // a `google.iam.v1.Policy` use these messages in their own RPCs:
10
+ //
11
+ // - `AddIamBindingsRequest`: grant roles to principals on a resource,
12
+ // optionally removing each principal from its other roles.
13
+ // - `RemoveIamBindingsRequest`: remove principals from some or all of their
14
+ // roles on a resource.
15
+ // - `BatchTestIamPermissionsRequest` and `BatchTestIamPermissionsResponse`:
16
+ // check which of a set of permissions the caller has on each of several
17
+ // resources.
18
+ //
19
+ // For example, `alis.a2a.extension.history.v1.ThreadService` has
20
+ // `AddIamBindings` and `RemoveIamBindings` RPCs that take these requests and
21
+ // return a `google.iam.v1.Policy`.
22
+ //
23
+ // Principals are strings such as `user:123456789`, `serviceAccount:...`,
24
+ // `builders` or `admins:alis.os`; roles use the `roles/*` format.
25
+
5
26
  import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
27
 
7
28
  /**
package/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  },
24
24
  "type": "module",
25
25
  "types": "./index.d.ts",
26
- "version": "1.37.0"
26
+ "version": "1.45.0"
27
27
  }