@flowcore/cli-plugin-iam 1.3.1 → 1.5.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 +25 -0
- package/README.md +32 -5
- package/dist/commands/edit/policy.d.ts +16 -0
- package/dist/commands/edit/policy.js +118 -0
- package/dist/commands/get/policy.js +5 -2
- package/dist/commands/get/role.js +1 -0
- package/dist/utils/clients/iam/Api.d.ts +757 -189
- package/dist/utils/clients/iam/Api.js +717 -189
- package/dist/utils/clients/iam/Health.d.ts +1 -0
- package/dist/utils/clients/iam/Health.js +1 -0
- package/dist/utils/clients/iam/Transformers.d.ts +92 -28
- package/dist/utils/clients/iam/Transformers.js +92 -28
- package/dist/utils/clients/iam/http-client.d.ts +2 -2
- package/dist/utils/clients/iam/http-client.js +18 -6
- package/oclif.manifest.json +49 -1
- package/package.json +1 -1
|
@@ -11,13 +11,43 @@
|
|
|
11
11
|
import { ContentType, HttpClient } from "./http-client.js";
|
|
12
12
|
export class Api extends HttpClient {
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
* @description Get all policies for the current user
|
|
15
|
+
*
|
|
16
|
+
* @tags policies
|
|
17
|
+
* @name GetApiV1Policies
|
|
18
|
+
* @request GET:/api/v1/policies/
|
|
19
|
+
* @secure
|
|
20
|
+
* @response `200` `(({
|
|
21
|
+
\** The id of the organization *\
|
|
22
|
+
organizationId: string,
|
|
23
|
+
\** The name of the policy *\
|
|
24
|
+
name: string,
|
|
25
|
+
\** The version of the policy *\
|
|
26
|
+
version: string,
|
|
27
|
+
policyDocuments: ({
|
|
28
|
+
\** The id of the statement *\
|
|
29
|
+
statementId?: string,
|
|
30
|
+
\** The resource of the statement *\
|
|
31
|
+
resource: string,
|
|
32
|
+
\** The action of the statement *\
|
|
33
|
+
action: (string | (string)[]),
|
|
34
|
+
|
|
35
|
+
})[],
|
|
36
|
+
\** The description of the policy *\
|
|
37
|
+
description?: string,
|
|
38
|
+
\** The principal role that can access the resource *\
|
|
39
|
+
principal?: string,
|
|
40
|
+
\** If the policy is managed by flowcore *\
|
|
41
|
+
flowcoreManaged?: boolean,
|
|
42
|
+
|
|
43
|
+
} & {
|
|
44
|
+
\** The id of the policy *\
|
|
45
|
+
id: string,
|
|
46
|
+
\** The frn of the policy *\
|
|
47
|
+
frn: string,
|
|
48
|
+
|
|
49
|
+
}))[]`
|
|
50
|
+
*/
|
|
21
51
|
getApiV1Policies = (params = {}) => this.request({
|
|
22
52
|
path: `/api/v1/policies/`,
|
|
23
53
|
method: "GET",
|
|
@@ -32,6 +62,7 @@ export class Api extends HttpClient {
|
|
|
32
62
|
* @name PostApiV1Policies
|
|
33
63
|
* @request POST:/api/v1/policies/
|
|
34
64
|
* @secure
|
|
65
|
+
* @response `200` `object`
|
|
35
66
|
*/
|
|
36
67
|
postApiV1Policies = (data, params = {}) => this.request({
|
|
37
68
|
path: `/api/v1/policies/`,
|
|
@@ -49,6 +80,7 @@ export class Api extends HttpClient {
|
|
|
49
80
|
* @name GetApiV1PoliciesById
|
|
50
81
|
* @request GET:/api/v1/policies/{id}
|
|
51
82
|
* @secure
|
|
83
|
+
* @response `200` `object`
|
|
52
84
|
*/
|
|
53
85
|
getApiV1PoliciesById = (id, params = {}) => this.request({
|
|
54
86
|
path: `/api/v1/policies/${id}`,
|
|
@@ -64,6 +96,7 @@ export class Api extends HttpClient {
|
|
|
64
96
|
* @name PatchApiV1PoliciesById
|
|
65
97
|
* @request PATCH:/api/v1/policies/{id}
|
|
66
98
|
* @secure
|
|
99
|
+
* @response `200` `object`
|
|
67
100
|
*/
|
|
68
101
|
patchApiV1PoliciesById = (id, data, params = {}) => this.request({
|
|
69
102
|
path: `/api/v1/policies/${id}`,
|
|
@@ -75,13 +108,18 @@ export class Api extends HttpClient {
|
|
|
75
108
|
...params,
|
|
76
109
|
});
|
|
77
110
|
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
111
|
+
* @description Archive a policy by id
|
|
112
|
+
*
|
|
113
|
+
* @tags policies
|
|
114
|
+
* @name DeleteApiV1PoliciesById
|
|
115
|
+
* @request DELETE:/api/v1/policies/{id}
|
|
116
|
+
* @secure
|
|
117
|
+
* @response `200` `{
|
|
118
|
+
\** The message of the archive policy *\
|
|
119
|
+
message: string,
|
|
120
|
+
|
|
121
|
+
}`
|
|
122
|
+
*/
|
|
85
123
|
deleteApiV1PoliciesById = (id, params = {}) => this.request({
|
|
86
124
|
path: `/api/v1/policies/${id}`,
|
|
87
125
|
method: "DELETE",
|
|
@@ -90,13 +128,30 @@ export class Api extends HttpClient {
|
|
|
90
128
|
...params,
|
|
91
129
|
});
|
|
92
130
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
131
|
+
* @description Get all roles for the current user
|
|
132
|
+
*
|
|
133
|
+
* @tags roles
|
|
134
|
+
* @name GetApiV1Roles
|
|
135
|
+
* @request GET:/api/v1/roles/
|
|
136
|
+
* @secure
|
|
137
|
+
* @response `200` `(({
|
|
138
|
+
\** Organization ID *\
|
|
139
|
+
organizationId: string,
|
|
140
|
+
\** Role name *\
|
|
141
|
+
name: string,
|
|
142
|
+
\** Role description *\
|
|
143
|
+
description?: string,
|
|
144
|
+
\** Flowcore managed role *\
|
|
145
|
+
flowcoreManaged?: boolean,
|
|
146
|
+
|
|
147
|
+
} & {
|
|
148
|
+
\** The id of the role *\
|
|
149
|
+
id: string,
|
|
150
|
+
\** The frn of the role *\
|
|
151
|
+
frn?: string,
|
|
152
|
+
|
|
153
|
+
}))[]`
|
|
154
|
+
*/
|
|
100
155
|
getApiV1Roles = (params = {}) => this.request({
|
|
101
156
|
path: `/api/v1/roles/`,
|
|
102
157
|
method: "GET",
|
|
@@ -111,6 +166,7 @@ export class Api extends HttpClient {
|
|
|
111
166
|
* @name PostApiV1Roles
|
|
112
167
|
* @request POST:/api/v1/roles/
|
|
113
168
|
* @secure
|
|
169
|
+
* @response `200` `object`
|
|
114
170
|
*/
|
|
115
171
|
postApiV1Roles = (data, params = {}) => this.request({
|
|
116
172
|
path: `/api/v1/roles/`,
|
|
@@ -122,13 +178,40 @@ export class Api extends HttpClient {
|
|
|
122
178
|
...params,
|
|
123
179
|
});
|
|
124
180
|
/**
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
181
|
+
* @description Get a role by ID
|
|
182
|
+
*
|
|
183
|
+
* @tags roles
|
|
184
|
+
* @name GetApiV1RolesById
|
|
185
|
+
* @request GET:/api/v1/roles/{id}
|
|
186
|
+
* @secure
|
|
187
|
+
* @response `200` `(({
|
|
188
|
+
\** Organization ID *\
|
|
189
|
+
organizationId: string,
|
|
190
|
+
\** Role name *\
|
|
191
|
+
name: string,
|
|
192
|
+
\** Role description *\
|
|
193
|
+
description?: string,
|
|
194
|
+
\** Flowcore managed role *\
|
|
195
|
+
flowcoreManaged?: boolean,
|
|
196
|
+
|
|
197
|
+
} & {
|
|
198
|
+
\** Role ID *\
|
|
199
|
+
id: string,
|
|
200
|
+
\** The archived status of the role *\
|
|
201
|
+
archived: boolean,
|
|
202
|
+
\** The frn of the role *\
|
|
203
|
+
frn?: string,
|
|
204
|
+
|
|
205
|
+
}) & {
|
|
206
|
+
\** Role ID *\
|
|
207
|
+
id: string,
|
|
208
|
+
\** The archived status of the role *\
|
|
209
|
+
archived: boolean,
|
|
210
|
+
\** The frn of the role *\
|
|
211
|
+
frn: string,
|
|
212
|
+
|
|
213
|
+
})`
|
|
214
|
+
*/
|
|
132
215
|
getApiV1RolesById = (id, params = {}) => this.request({
|
|
133
216
|
path: `/api/v1/roles/${id}`,
|
|
134
217
|
method: "GET",
|
|
@@ -137,13 +220,34 @@ export class Api extends HttpClient {
|
|
|
137
220
|
...params,
|
|
138
221
|
});
|
|
139
222
|
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
223
|
+
* @description Update a role by ID
|
|
224
|
+
*
|
|
225
|
+
* @tags roles
|
|
226
|
+
* @name PatchApiV1RolesById
|
|
227
|
+
* @request PATCH:/api/v1/roles/{id}
|
|
228
|
+
* @secure
|
|
229
|
+
* @response `200` `(({
|
|
230
|
+
\** Organization ID *\
|
|
231
|
+
organizationId: string,
|
|
232
|
+
\** Role name *\
|
|
233
|
+
name: string,
|
|
234
|
+
\** Role description *\
|
|
235
|
+
description?: string,
|
|
236
|
+
\** Flowcore managed role *\
|
|
237
|
+
flowcoreManaged?: boolean,
|
|
238
|
+
|
|
239
|
+
} & {
|
|
240
|
+
\** Role ID *\
|
|
241
|
+
id: string,
|
|
242
|
+
|
|
243
|
+
}) & {
|
|
244
|
+
\** The archived status of the role *\
|
|
245
|
+
archived: boolean,
|
|
246
|
+
\** The frn of the role *\
|
|
247
|
+
frn: string,
|
|
248
|
+
|
|
249
|
+
})`
|
|
250
|
+
*/
|
|
147
251
|
patchApiV1RolesById = (id, data, params = {}) => this.request({
|
|
148
252
|
path: `/api/v1/roles/${id}`,
|
|
149
253
|
method: "PATCH",
|
|
@@ -154,13 +258,18 @@ export class Api extends HttpClient {
|
|
|
154
258
|
...params,
|
|
155
259
|
});
|
|
156
260
|
/**
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
261
|
+
* @description Archive a role by ID
|
|
262
|
+
*
|
|
263
|
+
* @tags roles
|
|
264
|
+
* @name DeleteApiV1RolesById
|
|
265
|
+
* @request DELETE:/api/v1/roles/{id}
|
|
266
|
+
* @secure
|
|
267
|
+
* @response `200` `{
|
|
268
|
+
\** The message of the archive role *\
|
|
269
|
+
message: string,
|
|
270
|
+
|
|
271
|
+
}`
|
|
272
|
+
*/
|
|
164
273
|
deleteApiV1RolesById = (id, params = {}) => this.request({
|
|
165
274
|
path: `/api/v1/roles/${id}`,
|
|
166
275
|
method: "DELETE",
|
|
@@ -169,13 +278,43 @@ export class Api extends HttpClient {
|
|
|
169
278
|
...params,
|
|
170
279
|
});
|
|
171
280
|
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
281
|
+
* @description Fetch associations for a policy
|
|
282
|
+
*
|
|
283
|
+
* @tags policy-associations
|
|
284
|
+
* @name GetApiV1PolicyAssociationsByPolicyId
|
|
285
|
+
* @request GET:/api/v1/policy-associations/{policyId}
|
|
286
|
+
* @secure
|
|
287
|
+
* @response `200` `{
|
|
288
|
+
keys: ({
|
|
289
|
+
\** The ID of the policy *\
|
|
290
|
+
policyId: string,
|
|
291
|
+
\** The ID of the organization *\
|
|
292
|
+
organizationId: string,
|
|
293
|
+
\** The ID of the key *\
|
|
294
|
+
keyId: string,
|
|
295
|
+
|
|
296
|
+
})[],
|
|
297
|
+
users: ({
|
|
298
|
+
\** The ID of the policy *\
|
|
299
|
+
policyId: string,
|
|
300
|
+
\** The ID of the organization *\
|
|
301
|
+
organizationId: string,
|
|
302
|
+
\** The ID of the user *\
|
|
303
|
+
userId: string,
|
|
304
|
+
|
|
305
|
+
})[],
|
|
306
|
+
roles: ({
|
|
307
|
+
\** The ID of the policy *\
|
|
308
|
+
policyId: string,
|
|
309
|
+
\** The ID of the organization *\
|
|
310
|
+
organizationId: string,
|
|
311
|
+
\** The ID of the role *\
|
|
312
|
+
roleId: string,
|
|
313
|
+
|
|
314
|
+
})[],
|
|
315
|
+
|
|
316
|
+
}`
|
|
317
|
+
*/
|
|
179
318
|
getApiV1PolicyAssociationsByPolicyId = (policyId, params = {}) => this.request({
|
|
180
319
|
path: `/api/v1/policy-associations/${policyId}`,
|
|
181
320
|
method: "GET",
|
|
@@ -184,13 +323,43 @@ export class Api extends HttpClient {
|
|
|
184
323
|
...params,
|
|
185
324
|
});
|
|
186
325
|
/**
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
326
|
+
* @description Fetch policies for an organization
|
|
327
|
+
*
|
|
328
|
+
* @tags policy-associations
|
|
329
|
+
* @name GetApiV1PolicyAssociationsOrganizationByOrganizationId
|
|
330
|
+
* @request GET:/api/v1/policy-associations/organization/{organizationId}
|
|
331
|
+
* @secure
|
|
332
|
+
* @response `200` `(({
|
|
333
|
+
\** The id of the organization *\
|
|
334
|
+
organizationId: string,
|
|
335
|
+
\** The name of the policy *\
|
|
336
|
+
name: string,
|
|
337
|
+
\** The version of the policy *\
|
|
338
|
+
version: string,
|
|
339
|
+
policyDocuments: ({
|
|
340
|
+
\** The id of the statement *\
|
|
341
|
+
statementId?: string,
|
|
342
|
+
\** The resource of the statement *\
|
|
343
|
+
resource: string,
|
|
344
|
+
\** The action of the statement *\
|
|
345
|
+
action: (string | (string)[]),
|
|
346
|
+
|
|
347
|
+
})[],
|
|
348
|
+
\** The description of the policy *\
|
|
349
|
+
description?: string,
|
|
350
|
+
\** The principal role that can access the resource *\
|
|
351
|
+
principal?: string,
|
|
352
|
+
\** If the policy is managed by flowcore *\
|
|
353
|
+
flowcoreManaged?: boolean,
|
|
354
|
+
|
|
355
|
+
} & {
|
|
356
|
+
\** The id of the policy *\
|
|
357
|
+
id: string,
|
|
358
|
+
\** The frn of the policy *\
|
|
359
|
+
frn: string,
|
|
360
|
+
|
|
361
|
+
}))[]`
|
|
362
|
+
*/
|
|
194
363
|
getApiV1PolicyAssociationsOrganizationByOrganizationId = (organizationId, params = {}) => this.request({
|
|
195
364
|
path: `/api/v1/policy-associations/organization/${organizationId}`,
|
|
196
365
|
method: "GET",
|
|
@@ -199,13 +368,48 @@ export class Api extends HttpClient {
|
|
|
199
368
|
...params,
|
|
200
369
|
});
|
|
201
370
|
/**
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
371
|
+
* @description Fetch policies for a user
|
|
372
|
+
*
|
|
373
|
+
* @tags policy-associations
|
|
374
|
+
* @name GetApiV1PolicyAssociationsUserByUserId
|
|
375
|
+
* @request GET:/api/v1/policy-associations/user/{userId}/
|
|
376
|
+
* @secure
|
|
377
|
+
* @response `200` `((({
|
|
378
|
+
\** The id of the organization *\
|
|
379
|
+
organizationId: string,
|
|
380
|
+
\** The name of the policy *\
|
|
381
|
+
name: string,
|
|
382
|
+
\** The version of the policy *\
|
|
383
|
+
version: string,
|
|
384
|
+
policyDocuments: ({
|
|
385
|
+
\** The id of the statement *\
|
|
386
|
+
statementId?: string,
|
|
387
|
+
\** The resource of the statement *\
|
|
388
|
+
resource: string,
|
|
389
|
+
\** The action of the statement *\
|
|
390
|
+
action: (string | (string)[]),
|
|
391
|
+
|
|
392
|
+
})[],
|
|
393
|
+
\** The description of the policy *\
|
|
394
|
+
description?: string,
|
|
395
|
+
\** The principal role that can access the resource *\
|
|
396
|
+
principal?: string,
|
|
397
|
+
\** If the policy is managed by flowcore *\
|
|
398
|
+
flowcoreManaged?: boolean,
|
|
399
|
+
|
|
400
|
+
} & {
|
|
401
|
+
\** The id of the policy *\
|
|
402
|
+
id: string,
|
|
403
|
+
\** The archived status of the policy *\
|
|
404
|
+
archived: boolean,
|
|
405
|
+
\** The frn of the policy *\
|
|
406
|
+
frn: string,
|
|
407
|
+
|
|
408
|
+
}) & {
|
|
409
|
+
frn: string,
|
|
410
|
+
|
|
411
|
+
}))[]`
|
|
412
|
+
*/
|
|
209
413
|
getApiV1PolicyAssociationsUserByUserId = (userId, query, params = {}) => this.request({
|
|
210
414
|
path: `/api/v1/policy-associations/user/${userId}/`,
|
|
211
415
|
method: "GET",
|
|
@@ -215,13 +419,22 @@ export class Api extends HttpClient {
|
|
|
215
419
|
...params,
|
|
216
420
|
});
|
|
217
421
|
/**
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
422
|
+
* @description Link a policy to a user
|
|
423
|
+
*
|
|
424
|
+
* @tags policy-associations
|
|
425
|
+
* @name PostApiV1PolicyAssociationsUserByUserId
|
|
426
|
+
* @request POST:/api/v1/policy-associations/user/{userId}/
|
|
427
|
+
* @secure
|
|
428
|
+
* @response `200` `{
|
|
429
|
+
\** The ID of the policy *\
|
|
430
|
+
policyId: string,
|
|
431
|
+
\** The ID of the organization *\
|
|
432
|
+
organizationId: string,
|
|
433
|
+
\** The ID of the user *\
|
|
434
|
+
userId: string,
|
|
435
|
+
|
|
436
|
+
}`
|
|
437
|
+
*/
|
|
225
438
|
postApiV1PolicyAssociationsUserByUserId = (userId, data, params = {}) => this.request({
|
|
226
439
|
path: `/api/v1/policy-associations/user/${userId}/`,
|
|
227
440
|
method: "POST",
|
|
@@ -232,13 +445,22 @@ export class Api extends HttpClient {
|
|
|
232
445
|
...params,
|
|
233
446
|
});
|
|
234
447
|
/**
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
448
|
+
* @description Unlink a policy from a user
|
|
449
|
+
*
|
|
450
|
+
* @tags policy-associations
|
|
451
|
+
* @name DeleteApiV1PolicyAssociationsUserByUserId
|
|
452
|
+
* @request DELETE:/api/v1/policy-associations/user/{userId}/
|
|
453
|
+
* @secure
|
|
454
|
+
* @response `200` `{
|
|
455
|
+
\** The ID of the policy *\
|
|
456
|
+
policyId: string,
|
|
457
|
+
\** The ID of the organization *\
|
|
458
|
+
organizationId: string,
|
|
459
|
+
\** The ID of the user *\
|
|
460
|
+
userId: string,
|
|
461
|
+
|
|
462
|
+
}`
|
|
463
|
+
*/
|
|
242
464
|
deleteApiV1PolicyAssociationsUserByUserId = (userId, data, params = {}) => this.request({
|
|
243
465
|
path: `/api/v1/policy-associations/user/${userId}/`,
|
|
244
466
|
method: "DELETE",
|
|
@@ -249,13 +471,48 @@ export class Api extends HttpClient {
|
|
|
249
471
|
...params,
|
|
250
472
|
});
|
|
251
473
|
/**
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
474
|
+
* @description Fetch policies for a key
|
|
475
|
+
*
|
|
476
|
+
* @tags policy-associations
|
|
477
|
+
* @name GetApiV1PolicyAssociationsKeyByKeyId
|
|
478
|
+
* @request GET:/api/v1/policy-associations/key/{keyId}/
|
|
479
|
+
* @secure
|
|
480
|
+
* @response `200` `((({
|
|
481
|
+
\** The id of the organization *\
|
|
482
|
+
organizationId: string,
|
|
483
|
+
\** The name of the policy *\
|
|
484
|
+
name: string,
|
|
485
|
+
\** The version of the policy *\
|
|
486
|
+
version: string,
|
|
487
|
+
policyDocuments: ({
|
|
488
|
+
\** The id of the statement *\
|
|
489
|
+
statementId?: string,
|
|
490
|
+
\** The resource of the statement *\
|
|
491
|
+
resource: string,
|
|
492
|
+
\** The action of the statement *\
|
|
493
|
+
action: (string | (string)[]),
|
|
494
|
+
|
|
495
|
+
})[],
|
|
496
|
+
\** The description of the policy *\
|
|
497
|
+
description?: string,
|
|
498
|
+
\** The principal role that can access the resource *\
|
|
499
|
+
principal?: string,
|
|
500
|
+
\** If the policy is managed by flowcore *\
|
|
501
|
+
flowcoreManaged?: boolean,
|
|
502
|
+
|
|
503
|
+
} & {
|
|
504
|
+
\** The id of the policy *\
|
|
505
|
+
id: string,
|
|
506
|
+
\** The archived status of the policy *\
|
|
507
|
+
archived: boolean,
|
|
508
|
+
\** The frn of the policy *\
|
|
509
|
+
frn: string,
|
|
510
|
+
|
|
511
|
+
}) & {
|
|
512
|
+
frn: string,
|
|
513
|
+
|
|
514
|
+
}))[]`
|
|
515
|
+
*/
|
|
259
516
|
getApiV1PolicyAssociationsKeyByKeyId = (keyId, params = {}) => this.request({
|
|
260
517
|
path: `/api/v1/policy-associations/key/${keyId}/`,
|
|
261
518
|
method: "GET",
|
|
@@ -264,13 +521,22 @@ export class Api extends HttpClient {
|
|
|
264
521
|
...params,
|
|
265
522
|
});
|
|
266
523
|
/**
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
524
|
+
* @description Link a policy to a key
|
|
525
|
+
*
|
|
526
|
+
* @tags policy-associations
|
|
527
|
+
* @name PostApiV1PolicyAssociationsKeyByKeyId
|
|
528
|
+
* @request POST:/api/v1/policy-associations/key/{keyId}/
|
|
529
|
+
* @secure
|
|
530
|
+
* @response `200` `{
|
|
531
|
+
\** The ID of the policy *\
|
|
532
|
+
policyId: string,
|
|
533
|
+
\** The ID of the organization *\
|
|
534
|
+
organizationId: string,
|
|
535
|
+
\** The ID of the key *\
|
|
536
|
+
keyId: string,
|
|
537
|
+
|
|
538
|
+
}`
|
|
539
|
+
*/
|
|
274
540
|
postApiV1PolicyAssociationsKeyByKeyId = (keyId, data, params = {}) => this.request({
|
|
275
541
|
path: `/api/v1/policy-associations/key/${keyId}/`,
|
|
276
542
|
method: "POST",
|
|
@@ -281,13 +547,22 @@ export class Api extends HttpClient {
|
|
|
281
547
|
...params,
|
|
282
548
|
});
|
|
283
549
|
/**
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
550
|
+
* @description Unlink a policy from a key
|
|
551
|
+
*
|
|
552
|
+
* @tags policy-associations
|
|
553
|
+
* @name DeleteApiV1PolicyAssociationsKeyByKeyId
|
|
554
|
+
* @request DELETE:/api/v1/policy-associations/key/{keyId}/
|
|
555
|
+
* @secure
|
|
556
|
+
* @response `200` `{
|
|
557
|
+
\** The ID of the policy *\
|
|
558
|
+
policyId: string,
|
|
559
|
+
\** The ID of the organization *\
|
|
560
|
+
organizationId: string,
|
|
561
|
+
\** The ID of the key *\
|
|
562
|
+
keyId: string,
|
|
563
|
+
|
|
564
|
+
}`
|
|
565
|
+
*/
|
|
291
566
|
deleteApiV1PolicyAssociationsKeyByKeyId = (keyId, data, params = {}) => this.request({
|
|
292
567
|
path: `/api/v1/policy-associations/key/${keyId}/`,
|
|
293
568
|
method: "DELETE",
|
|
@@ -298,13 +573,48 @@ export class Api extends HttpClient {
|
|
|
298
573
|
...params,
|
|
299
574
|
});
|
|
300
575
|
/**
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
576
|
+
* @description Fetch policies for a role
|
|
577
|
+
*
|
|
578
|
+
* @tags policy-associations
|
|
579
|
+
* @name GetApiV1PolicyAssociationsRoleByRoleId
|
|
580
|
+
* @request GET:/api/v1/policy-associations/role/{roleId}/
|
|
581
|
+
* @secure
|
|
582
|
+
* @response `200` `((({
|
|
583
|
+
\** The id of the organization *\
|
|
584
|
+
organizationId: string,
|
|
585
|
+
\** The name of the policy *\
|
|
586
|
+
name: string,
|
|
587
|
+
\** The version of the policy *\
|
|
588
|
+
version: string,
|
|
589
|
+
policyDocuments: ({
|
|
590
|
+
\** The id of the statement *\
|
|
591
|
+
statementId?: string,
|
|
592
|
+
\** The resource of the statement *\
|
|
593
|
+
resource: string,
|
|
594
|
+
\** The action of the statement *\
|
|
595
|
+
action: (string | (string)[]),
|
|
596
|
+
|
|
597
|
+
})[],
|
|
598
|
+
\** The description of the policy *\
|
|
599
|
+
description?: string,
|
|
600
|
+
\** The principal role that can access the resource *\
|
|
601
|
+
principal?: string,
|
|
602
|
+
\** If the policy is managed by flowcore *\
|
|
603
|
+
flowcoreManaged?: boolean,
|
|
604
|
+
|
|
605
|
+
} & {
|
|
606
|
+
\** The id of the policy *\
|
|
607
|
+
id: string,
|
|
608
|
+
\** The archived status of the policy *\
|
|
609
|
+
archived: boolean,
|
|
610
|
+
\** The frn of the policy *\
|
|
611
|
+
frn: string,
|
|
612
|
+
|
|
613
|
+
}) & {
|
|
614
|
+
frn: string,
|
|
615
|
+
|
|
616
|
+
}))[]`
|
|
617
|
+
*/
|
|
308
618
|
getApiV1PolicyAssociationsRoleByRoleId = (roleId, params = {}) => this.request({
|
|
309
619
|
path: `/api/v1/policy-associations/role/${roleId}/`,
|
|
310
620
|
method: "GET",
|
|
@@ -313,13 +623,22 @@ export class Api extends HttpClient {
|
|
|
313
623
|
...params,
|
|
314
624
|
});
|
|
315
625
|
/**
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
626
|
+
* @description Link a policy to a role
|
|
627
|
+
*
|
|
628
|
+
* @tags policy-associations
|
|
629
|
+
* @name PostApiV1PolicyAssociationsRoleByRoleId
|
|
630
|
+
* @request POST:/api/v1/policy-associations/role/{roleId}/
|
|
631
|
+
* @secure
|
|
632
|
+
* @response `200` `{
|
|
633
|
+
\** The ID of the policy *\
|
|
634
|
+
policyId: string,
|
|
635
|
+
\** The ID of the organization *\
|
|
636
|
+
organizationId: string,
|
|
637
|
+
\** The ID of the role *\
|
|
638
|
+
roleId: string,
|
|
639
|
+
|
|
640
|
+
}`
|
|
641
|
+
*/
|
|
323
642
|
postApiV1PolicyAssociationsRoleByRoleId = (roleId, data, params = {}) => this.request({
|
|
324
643
|
path: `/api/v1/policy-associations/role/${roleId}/`,
|
|
325
644
|
method: "POST",
|
|
@@ -330,13 +649,22 @@ export class Api extends HttpClient {
|
|
|
330
649
|
...params,
|
|
331
650
|
});
|
|
332
651
|
/**
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
652
|
+
* @description Unlink a policy from a role
|
|
653
|
+
*
|
|
654
|
+
* @tags policy-associations
|
|
655
|
+
* @name DeleteApiV1PolicyAssociationsRoleByRoleId
|
|
656
|
+
* @request DELETE:/api/v1/policy-associations/role/{roleId}/
|
|
657
|
+
* @secure
|
|
658
|
+
* @response `200` `{
|
|
659
|
+
\** The ID of the policy *\
|
|
660
|
+
policyId: string,
|
|
661
|
+
\** The ID of the organization *\
|
|
662
|
+
organizationId: string,
|
|
663
|
+
\** The ID of the role *\
|
|
664
|
+
roleId: string,
|
|
665
|
+
|
|
666
|
+
}`
|
|
667
|
+
*/
|
|
340
668
|
deleteApiV1PolicyAssociationsRoleByRoleId = (roleId, data, params = {}) => this.request({
|
|
341
669
|
path: `/api/v1/policy-associations/role/${roleId}/`,
|
|
342
670
|
method: "DELETE",
|
|
@@ -347,13 +675,34 @@ export class Api extends HttpClient {
|
|
|
347
675
|
...params,
|
|
348
676
|
});
|
|
349
677
|
/**
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
678
|
+
* @description Fetch associations for a role
|
|
679
|
+
*
|
|
680
|
+
* @tags role-associations
|
|
681
|
+
* @name GetApiV1RoleAssociationsByRoleId
|
|
682
|
+
* @request GET:/api/v1/role-associations/{roleId}
|
|
683
|
+
* @secure
|
|
684
|
+
* @response `200` `{
|
|
685
|
+
keys: ({
|
|
686
|
+
\** The ID of the role *\
|
|
687
|
+
roleId: string,
|
|
688
|
+
\** The ID of the organization *\
|
|
689
|
+
organizationId: string,
|
|
690
|
+
\** The ID of the key *\
|
|
691
|
+
keyId: string,
|
|
692
|
+
|
|
693
|
+
})[],
|
|
694
|
+
users: ({
|
|
695
|
+
\** The ID of the role *\
|
|
696
|
+
roleId: string,
|
|
697
|
+
\** The ID of the organization *\
|
|
698
|
+
organizationId: string,
|
|
699
|
+
\** The ID of the user *\
|
|
700
|
+
userId: string,
|
|
701
|
+
|
|
702
|
+
})[],
|
|
703
|
+
|
|
704
|
+
}`
|
|
705
|
+
*/
|
|
357
706
|
getApiV1RoleAssociationsByRoleId = (roleId, params = {}) => this.request({
|
|
358
707
|
path: `/api/v1/role-associations/${roleId}`,
|
|
359
708
|
method: "GET",
|
|
@@ -362,13 +711,30 @@ export class Api extends HttpClient {
|
|
|
362
711
|
...params,
|
|
363
712
|
});
|
|
364
713
|
/**
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
714
|
+
* @description Fetch roles for an organization
|
|
715
|
+
*
|
|
716
|
+
* @tags role-associations
|
|
717
|
+
* @name GetApiV1RoleAssociationsOrganizationByOrganizationId
|
|
718
|
+
* @request GET:/api/v1/role-associations/organization/{organizationId}
|
|
719
|
+
* @secure
|
|
720
|
+
* @response `200` `(({
|
|
721
|
+
\** Organization ID *\
|
|
722
|
+
organizationId: string,
|
|
723
|
+
\** Role name *\
|
|
724
|
+
name: string,
|
|
725
|
+
\** Role description *\
|
|
726
|
+
description?: string,
|
|
727
|
+
\** Flowcore managed role *\
|
|
728
|
+
flowcoreManaged?: boolean,
|
|
729
|
+
|
|
730
|
+
} & {
|
|
731
|
+
\** The id of the role *\
|
|
732
|
+
id: string,
|
|
733
|
+
\** The frn of the role *\
|
|
734
|
+
frn?: string,
|
|
735
|
+
|
|
736
|
+
}))[]`
|
|
737
|
+
*/
|
|
372
738
|
getApiV1RoleAssociationsOrganizationByOrganizationId = (organizationId, params = {}) => this.request({
|
|
373
739
|
path: `/api/v1/role-associations/organization/${organizationId}`,
|
|
374
740
|
method: "GET",
|
|
@@ -377,13 +743,35 @@ export class Api extends HttpClient {
|
|
|
377
743
|
...params,
|
|
378
744
|
});
|
|
379
745
|
/**
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
746
|
+
* @description Fetch roles for a user
|
|
747
|
+
*
|
|
748
|
+
* @tags role-associations
|
|
749
|
+
* @name GetApiV1RoleAssociationsUserByUserId
|
|
750
|
+
* @request GET:/api/v1/role-associations/user/{userId}/
|
|
751
|
+
* @secure
|
|
752
|
+
* @response `200` `((({
|
|
753
|
+
\** Organization ID *\
|
|
754
|
+
organizationId: string,
|
|
755
|
+
\** Role name *\
|
|
756
|
+
name: string,
|
|
757
|
+
\** Role description *\
|
|
758
|
+
description?: string,
|
|
759
|
+
\** Flowcore managed role *\
|
|
760
|
+
flowcoreManaged?: boolean,
|
|
761
|
+
|
|
762
|
+
} & {
|
|
763
|
+
\** Role ID *\
|
|
764
|
+
id: string,
|
|
765
|
+
\** The archived status of the role *\
|
|
766
|
+
archived: boolean,
|
|
767
|
+
\** The frn of the role *\
|
|
768
|
+
frn?: string,
|
|
769
|
+
|
|
770
|
+
}) & {
|
|
771
|
+
frn: string,
|
|
772
|
+
|
|
773
|
+
}))[]`
|
|
774
|
+
*/
|
|
387
775
|
getApiV1RoleAssociationsUserByUserId = (userId, query, params = {}) => this.request({
|
|
388
776
|
path: `/api/v1/role-associations/user/${userId}/`,
|
|
389
777
|
method: "GET",
|
|
@@ -393,13 +781,22 @@ export class Api extends HttpClient {
|
|
|
393
781
|
...params,
|
|
394
782
|
});
|
|
395
783
|
/**
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
784
|
+
* @description Link a role to a user
|
|
785
|
+
*
|
|
786
|
+
* @tags role-associations
|
|
787
|
+
* @name PostApiV1RoleAssociationsUserByUserId
|
|
788
|
+
* @request POST:/api/v1/role-associations/user/{userId}/
|
|
789
|
+
* @secure
|
|
790
|
+
* @response `200` `{
|
|
791
|
+
\** The ID of the role *\
|
|
792
|
+
roleId: string,
|
|
793
|
+
\** The ID of the organization *\
|
|
794
|
+
organizationId: string,
|
|
795
|
+
\** The ID of the user *\
|
|
796
|
+
userId: string,
|
|
797
|
+
|
|
798
|
+
}`
|
|
799
|
+
*/
|
|
403
800
|
postApiV1RoleAssociationsUserByUserId = (userId, data, params = {}) => this.request({
|
|
404
801
|
path: `/api/v1/role-associations/user/${userId}/`,
|
|
405
802
|
method: "POST",
|
|
@@ -410,13 +807,22 @@ export class Api extends HttpClient {
|
|
|
410
807
|
...params,
|
|
411
808
|
});
|
|
412
809
|
/**
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
810
|
+
* @description Unlink a role from a user
|
|
811
|
+
*
|
|
812
|
+
* @tags role-associations
|
|
813
|
+
* @name DeleteApiV1RoleAssociationsUserByUserId
|
|
814
|
+
* @request DELETE:/api/v1/role-associations/user/{userId}/
|
|
815
|
+
* @secure
|
|
816
|
+
* @response `200` `{
|
|
817
|
+
\** The ID of the role *\
|
|
818
|
+
roleId: string,
|
|
819
|
+
\** The ID of the organization *\
|
|
820
|
+
organizationId: string,
|
|
821
|
+
\** The ID of the user *\
|
|
822
|
+
userId: string,
|
|
823
|
+
|
|
824
|
+
}`
|
|
825
|
+
*/
|
|
420
826
|
deleteApiV1RoleAssociationsUserByUserId = (userId, data, params = {}) => this.request({
|
|
421
827
|
path: `/api/v1/role-associations/user/${userId}/`,
|
|
422
828
|
method: "DELETE",
|
|
@@ -427,13 +833,35 @@ export class Api extends HttpClient {
|
|
|
427
833
|
...params,
|
|
428
834
|
});
|
|
429
835
|
/**
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
836
|
+
* @description Fetch roles for a key
|
|
837
|
+
*
|
|
838
|
+
* @tags role-associations
|
|
839
|
+
* @name GetApiV1RoleAssociationsKeyByKeyId
|
|
840
|
+
* @request GET:/api/v1/role-associations/key/{keyId}/
|
|
841
|
+
* @secure
|
|
842
|
+
* @response `200` `((({
|
|
843
|
+
\** Organization ID *\
|
|
844
|
+
organizationId: string,
|
|
845
|
+
\** Role name *\
|
|
846
|
+
name: string,
|
|
847
|
+
\** Role description *\
|
|
848
|
+
description?: string,
|
|
849
|
+
\** Flowcore managed role *\
|
|
850
|
+
flowcoreManaged?: boolean,
|
|
851
|
+
|
|
852
|
+
} & {
|
|
853
|
+
\** Role ID *\
|
|
854
|
+
id: string,
|
|
855
|
+
\** The archived status of the role *\
|
|
856
|
+
archived: boolean,
|
|
857
|
+
\** The frn of the role *\
|
|
858
|
+
frn?: string,
|
|
859
|
+
|
|
860
|
+
}) & {
|
|
861
|
+
frn: string,
|
|
862
|
+
|
|
863
|
+
}))[]`
|
|
864
|
+
*/
|
|
437
865
|
getApiV1RoleAssociationsKeyByKeyId = (keyId, params = {}) => this.request({
|
|
438
866
|
path: `/api/v1/role-associations/key/${keyId}/`,
|
|
439
867
|
method: "GET",
|
|
@@ -442,13 +870,22 @@ export class Api extends HttpClient {
|
|
|
442
870
|
...params,
|
|
443
871
|
});
|
|
444
872
|
/**
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
873
|
+
* @description Link a role to a key
|
|
874
|
+
*
|
|
875
|
+
* @tags role-associations
|
|
876
|
+
* @name PostApiV1RoleAssociationsKeyByKeyId
|
|
877
|
+
* @request POST:/api/v1/role-associations/key/{keyId}/
|
|
878
|
+
* @secure
|
|
879
|
+
* @response `200` `{
|
|
880
|
+
\** The ID of the role *\
|
|
881
|
+
roleId: string,
|
|
882
|
+
\** The ID of the organization *\
|
|
883
|
+
organizationId: string,
|
|
884
|
+
\** The ID of the key *\
|
|
885
|
+
keyId: string,
|
|
886
|
+
|
|
887
|
+
}`
|
|
888
|
+
*/
|
|
452
889
|
postApiV1RoleAssociationsKeyByKeyId = (keyId, data, params = {}) => this.request({
|
|
453
890
|
path: `/api/v1/role-associations/key/${keyId}/`,
|
|
454
891
|
method: "POST",
|
|
@@ -459,13 +896,22 @@ export class Api extends HttpClient {
|
|
|
459
896
|
...params,
|
|
460
897
|
});
|
|
461
898
|
/**
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
899
|
+
* @description Unlink a role from a key
|
|
900
|
+
*
|
|
901
|
+
* @tags role-associations
|
|
902
|
+
* @name DeleteApiV1RoleAssociationsKeyByKeyId
|
|
903
|
+
* @request DELETE:/api/v1/role-associations/key/{keyId}/
|
|
904
|
+
* @secure
|
|
905
|
+
* @response `200` `{
|
|
906
|
+
\** The ID of the role *\
|
|
907
|
+
roleId: string,
|
|
908
|
+
\** The ID of the organization *\
|
|
909
|
+
organizationId: string,
|
|
910
|
+
\** The ID of the key *\
|
|
911
|
+
keyId: string,
|
|
912
|
+
|
|
913
|
+
}`
|
|
914
|
+
*/
|
|
469
915
|
deleteApiV1RoleAssociationsKeyByKeyId = (keyId, data, params = {}) => this.request({
|
|
470
916
|
path: `/api/v1/role-associations/key/${keyId}/`,
|
|
471
917
|
method: "DELETE",
|
|
@@ -476,13 +922,54 @@ export class Api extends HttpClient {
|
|
|
476
922
|
...params,
|
|
477
923
|
});
|
|
478
924
|
/**
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
925
|
+
* @description Validate if a user can perform actions
|
|
926
|
+
*
|
|
927
|
+
* @tags validate
|
|
928
|
+
* @name PostApiV1ValidateUsersById
|
|
929
|
+
* @request POST:/api/v1/validate/users/{id}
|
|
930
|
+
* @secure
|
|
931
|
+
* @response `200` `{
|
|
932
|
+
\**
|
|
933
|
+
* The action is valid
|
|
934
|
+
* @default true
|
|
935
|
+
*\
|
|
936
|
+
valid: true,
|
|
937
|
+
\** The hash of the policy/key/user/role association that was validated *\
|
|
938
|
+
checksum: string,
|
|
939
|
+
validPolicies: ({
|
|
940
|
+
\** The frn of the policy *\
|
|
941
|
+
policyFrn: string,
|
|
942
|
+
\** The statement id of the policy *\
|
|
943
|
+
statementId: string,
|
|
944
|
+
|
|
945
|
+
})[],
|
|
946
|
+
|
|
947
|
+
}`
|
|
948
|
+
* @response `403` `{
|
|
949
|
+
\** The error message *\
|
|
950
|
+
message: string,
|
|
951
|
+
\**
|
|
952
|
+
* The action is invalid
|
|
953
|
+
* @default false
|
|
954
|
+
*\
|
|
955
|
+
valid: false,
|
|
956
|
+
validPolicies: ({
|
|
957
|
+
\** The frn of the policy *\
|
|
958
|
+
policyFrn: string,
|
|
959
|
+
\** The statement id of the policy *\
|
|
960
|
+
statementId: string,
|
|
961
|
+
|
|
962
|
+
})[],
|
|
963
|
+
invalidRequest: ({
|
|
964
|
+
\** The resource to validate, in order of granularity. First match wins. *\
|
|
965
|
+
resource: (string)[],
|
|
966
|
+
\** The action or actions to validate against *\
|
|
967
|
+
action: (string | (string)[]),
|
|
968
|
+
|
|
969
|
+
})[],
|
|
970
|
+
|
|
971
|
+
}`
|
|
972
|
+
*/
|
|
486
973
|
postApiV1ValidateUsersById = (id, data, params = {}) => this.request({
|
|
487
974
|
path: `/api/v1/validate/users/${id}`,
|
|
488
975
|
method: "POST",
|
|
@@ -493,13 +980,54 @@ export class Api extends HttpClient {
|
|
|
493
980
|
...params,
|
|
494
981
|
});
|
|
495
982
|
/**
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
983
|
+
* @description Validate if a key can perform actions
|
|
984
|
+
*
|
|
985
|
+
* @tags validate
|
|
986
|
+
* @name PostApiV1ValidateKeysById
|
|
987
|
+
* @request POST:/api/v1/validate/keys/{id}
|
|
988
|
+
* @secure
|
|
989
|
+
* @response `200` `{
|
|
990
|
+
\**
|
|
991
|
+
* The action is valid
|
|
992
|
+
* @default true
|
|
993
|
+
*\
|
|
994
|
+
valid: true,
|
|
995
|
+
\** The hash of the policy/key/user/role association that was validated *\
|
|
996
|
+
checksum: string,
|
|
997
|
+
validPolicies: ({
|
|
998
|
+
\** The frn of the policy *\
|
|
999
|
+
policyFrn: string,
|
|
1000
|
+
\** The statement id of the policy *\
|
|
1001
|
+
statementId: string,
|
|
1002
|
+
|
|
1003
|
+
})[],
|
|
1004
|
+
|
|
1005
|
+
}`
|
|
1006
|
+
* @response `403` `{
|
|
1007
|
+
\** The error message *\
|
|
1008
|
+
message: string,
|
|
1009
|
+
\**
|
|
1010
|
+
* The action is invalid
|
|
1011
|
+
* @default false
|
|
1012
|
+
*\
|
|
1013
|
+
valid: false,
|
|
1014
|
+
validPolicies: ({
|
|
1015
|
+
\** The frn of the policy *\
|
|
1016
|
+
policyFrn: string,
|
|
1017
|
+
\** The statement id of the policy *\
|
|
1018
|
+
statementId: string,
|
|
1019
|
+
|
|
1020
|
+
})[],
|
|
1021
|
+
invalidRequest: ({
|
|
1022
|
+
\** The resource to validate, in order of granularity. First match wins. *\
|
|
1023
|
+
resource: (string)[],
|
|
1024
|
+
\** The action or actions to validate against *\
|
|
1025
|
+
action: (string | (string)[]),
|
|
1026
|
+
|
|
1027
|
+
})[],
|
|
1028
|
+
|
|
1029
|
+
}`
|
|
1030
|
+
*/
|
|
503
1031
|
postApiV1ValidateKeysById = (id, data, params = {}) => this.request({
|
|
504
1032
|
path: `/api/v1/validate/keys/${id}`,
|
|
505
1033
|
method: "POST",
|