@scaleway/sdk-iam 2.7.0 → 2.9.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/dist/.vite/license.md +3 -0
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +13 -0
- package/dist/v1alpha1/api.gen.js +451 -909
- package/dist/v1alpha1/marshalling.gen.js +82 -82
- package/dist/v1alpha1/metadata.gen.js +1 -1
- package/dist/v1alpha1/validation-rules.gen.js +37 -37
- package/package.json +16 -6
- package/LICENSE +0 -191
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,921 +1,463 @@
|
|
|
1
1
|
import { marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalAddSamlCertificateRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreateJWTRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalCreateUserRequest, marshalFinishUserWebAuthnRegistrationRequest, marshalJoinUserConnectionRequest, marshalParseSamlMetadataRequest, marshalRemoveGroupMemberRequest, marshalRemoveUserConnectionRequest, marshalSetGroupMembersRequest, marshalSetOrganizationAliasRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdateOrganizationLoginMethodsRequest, marshalUpdateOrganizationSecuritySettingsRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, marshalUpdateSamlRequest, marshalUpdateUserPasswordRequest, marshalUpdateUserRequest, marshalUpdateUserUsernameRequest, marshalUpdateWebAuthnAuthenticatorRequest, marshalValidateUserMFAOTPRequest, unmarshalAPIKey, unmarshalApplication, unmarshalCreateScimTokenResponse, unmarshalEncodedJWT, unmarshalFinishUserWebAuthnRegistrationResponse, unmarshalGetUserConnectionsResponse, unmarshalGroup, unmarshalInitiateUserConnectionResponse, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGracePeriodsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListLogsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListSamlCertificatesResponse, unmarshalListScimTokensResponse, unmarshalListUserWebAuthnAuthenticatorsResponse, unmarshalListUsersResponse, unmarshalLog, unmarshalMFAOTP, unmarshalOrganization, unmarshalOrganizationSecuritySettings, unmarshalParseSamlMetadataResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSaml, unmarshalSamlCertificate, unmarshalScim, unmarshalSetRulesResponse, unmarshalStartUserWebAuthnRegistrationResponse, unmarshalUser, unmarshalValidateUserMFAOTPResponse, unmarshalWebAuthnAuthenticator } from "./marshalling.gen.js";
|
|
2
2
|
import { API as API$1, enrichForPagination, resolveOneOf, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
3
|
//#region src/v1alpha1/api.gen.ts
|
|
4
|
-
|
|
4
|
+
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
5
|
/**
|
|
6
6
|
* IAM API.
|
|
7
7
|
|
|
8
8
|
This API allows you to manage Identity and Access Management (IAM) across your Scaleway Organizations, Projects and resources.
|
|
9
9
|
*/
|
|
10
10
|
var API = class extends API$1 {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}, unmarshalPolicy);
|
|
462
|
-
/**
|
|
463
|
-
* Set rules of a given policy. Overwrite the rules of a given policy. Any information that you add using this command will overwrite the previous configuration. If you include some of the rules you already had in your previous configuration in your new one, but you change their order, the new order of display will apply. While policy rules are ordered, they have no impact on the access logic of IAM because rules are allow-only.
|
|
464
|
-
*
|
|
465
|
-
* @param request - The request {@link SetRulesRequest}
|
|
466
|
-
* @returns A Promise of SetRulesResponse
|
|
467
|
-
*/
|
|
468
|
-
setRules = (request) => this.client.fetch({
|
|
469
|
-
body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
|
|
470
|
-
headers: jsonContentHeaders,
|
|
471
|
-
method: "PUT",
|
|
472
|
-
path: `/iam/v1alpha1/rules`
|
|
473
|
-
}, unmarshalSetRulesResponse);
|
|
474
|
-
pageOfListRules = (request) => this.client.fetch({
|
|
475
|
-
method: "GET",
|
|
476
|
-
path: `/iam/v1alpha1/rules`,
|
|
477
|
-
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["policy_id", request.policyId])
|
|
478
|
-
}, unmarshalListRulesResponse);
|
|
479
|
-
/**
|
|
480
|
-
* List rules of a given policy. List the rules of a given policy. By default, the rules listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. You must define the `policy_id` in the query path of your request.
|
|
481
|
-
*
|
|
482
|
-
* @param request - The request {@link ListRulesRequest}
|
|
483
|
-
* @returns A Promise of ListRulesResponse
|
|
484
|
-
*/
|
|
485
|
-
listRules = (request) => enrichForPagination("rules", this.pageOfListRules, request);
|
|
486
|
-
pageOfListPermissionSets = (request = {}) => this.client.fetch({
|
|
487
|
-
method: "GET",
|
|
488
|
-
path: `/iam/v1alpha1/permission-sets`,
|
|
489
|
-
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
490
|
-
}, unmarshalListPermissionSetsResponse);
|
|
491
|
-
/**
|
|
492
|
-
* List permission sets. List permission sets available for given Organization. You must define the `organization_id` in the query path of your request.
|
|
493
|
-
*
|
|
494
|
-
* @param request - The request {@link ListPermissionSetsRequest}
|
|
495
|
-
* @returns A Promise of ListPermissionSetsResponse
|
|
496
|
-
*/
|
|
497
|
-
listPermissionSets = (request = {}) => enrichForPagination("permissionSets", this.pageOfListPermissionSets, request);
|
|
498
|
-
pageOfListAPIKeys = (request = {}) => this.client.fetch({
|
|
499
|
-
method: "GET",
|
|
500
|
-
path: `/iam/v1alpha1/api-keys`,
|
|
501
|
-
urlParams: urlParams(["access_key", request.accessKey], ["access_keys", request.accessKeys], ["bearer_id", request.bearerId], ["bearer_type", request.bearerType], ["description", request.description], ["editable", request.editable], ["expired", request.expired], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
|
|
502
|
-
param: "application_id",
|
|
503
|
-
value: request.applicationId
|
|
504
|
-
}, {
|
|
505
|
-
param: "user_id",
|
|
506
|
-
value: request.userId
|
|
507
|
-
}])))
|
|
508
|
-
}, unmarshalListAPIKeysResponse);
|
|
509
|
-
/**
|
|
510
|
-
* List API keys. List API keys. By default, the API keys listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. You can define additional parameters for your query such as `editable`, `expired`, `access_key` and `bearer_id`.
|
|
511
|
-
*
|
|
512
|
-
* @param request - The request {@link ListAPIKeysRequest}
|
|
513
|
-
* @returns A Promise of ListAPIKeysResponse
|
|
514
|
-
*/
|
|
515
|
-
listAPIKeys = (request = {}) => enrichForPagination("apiKeys", this.pageOfListAPIKeys, request);
|
|
516
|
-
/**
|
|
517
|
-
* Create an API key. Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id`, which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that the secret key is only shown once. Make sure that you copy and store both keys somewhere safe.
|
|
518
|
-
*
|
|
519
|
-
* @param request - The request {@link CreateAPIKeyRequest}
|
|
520
|
-
* @returns A Promise of APIKey
|
|
521
|
-
*/
|
|
522
|
-
createAPIKey = (request) => this.client.fetch({
|
|
523
|
-
body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
|
|
524
|
-
headers: jsonContentHeaders,
|
|
525
|
-
method: "POST",
|
|
526
|
-
path: `/iam/v1alpha1/api-keys`
|
|
527
|
-
}, unmarshalAPIKey);
|
|
528
|
-
/**
|
|
529
|
-
* Get an API key. Retrieve information about an API key, specified by the `access_key` parameter. The API key's details, including either the `user_id` or `application_id` of its bearer are returned in the response. Note that the string value for the `secret_key` is nullable, and therefore is not displayed in the response. The `secret_key` value is only displayed upon API key creation.
|
|
530
|
-
*
|
|
531
|
-
* @param request - The request {@link GetAPIKeyRequest}
|
|
532
|
-
* @returns A Promise of APIKey
|
|
533
|
-
*/
|
|
534
|
-
getAPIKey = (request) => this.client.fetch({
|
|
535
|
-
method: "GET",
|
|
536
|
-
path: `/iam/v1alpha1/api-keys/${validatePathParam("accessKey", request.accessKey)}`
|
|
537
|
-
}, unmarshalAPIKey);
|
|
538
|
-
/**
|
|
539
|
-
* Update an API key. Update the parameters of an API key, including `default_project_id` and `description`.
|
|
540
|
-
*
|
|
541
|
-
* @param request - The request {@link UpdateAPIKeyRequest}
|
|
542
|
-
* @returns A Promise of APIKey
|
|
543
|
-
*/
|
|
544
|
-
updateAPIKey = (request) => this.client.fetch({
|
|
545
|
-
body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
|
|
546
|
-
headers: jsonContentHeaders,
|
|
547
|
-
method: "PATCH",
|
|
548
|
-
path: `/iam/v1alpha1/api-keys/${validatePathParam("accessKey", request.accessKey)}`
|
|
549
|
-
}, unmarshalAPIKey);
|
|
550
|
-
/**
|
|
551
|
-
* Delete an API key. Delete an API key. Note that this action is irreversible and cannot be undone. Make sure you update any configurations using the API keys you delete.
|
|
552
|
-
*
|
|
553
|
-
* @param request - The request {@link DeleteAPIKeyRequest}
|
|
554
|
-
*/
|
|
555
|
-
deleteAPIKey = (request) => this.client.fetch({
|
|
556
|
-
method: "DELETE",
|
|
557
|
-
path: `/iam/v1alpha1/api-keys/${validatePathParam("accessKey", request.accessKey)}`
|
|
558
|
-
});
|
|
559
|
-
pageOfListQuota = (request = {}) => this.client.fetch({
|
|
560
|
-
method: "GET",
|
|
561
|
-
path: `/iam/v1alpha1/quota`,
|
|
562
|
-
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["quotum_names", request.quotumNames])
|
|
563
|
-
}, unmarshalListQuotaResponse);
|
|
564
|
-
/**
|
|
565
|
-
* List all quotas in the Organization. List all product and features quota for an Organization, with their associated limits. By default, the quota listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. You must define the `organization_id` in the query path of your request.
|
|
566
|
-
*
|
|
567
|
-
* @param request - The request {@link ListQuotaRequest}
|
|
568
|
-
* @returns A Promise of ListQuotaResponse
|
|
569
|
-
*/
|
|
570
|
-
listQuota = (request = {}) => enrichForPagination("quota", this.pageOfListQuota, request);
|
|
571
|
-
/**
|
|
572
|
-
* Get a quota in the Organization. Retrieve information about a resource quota, specified by the `quotum_name` parameter. The quota's `limit`, or whether it is unlimited, is returned in the response.
|
|
573
|
-
*
|
|
574
|
-
* @param request - The request {@link GetQuotumRequest}
|
|
575
|
-
* @returns A Promise of Quotum
|
|
576
|
-
*/
|
|
577
|
-
getQuotum = (request) => this.client.fetch({
|
|
578
|
-
method: "GET",
|
|
579
|
-
path: `/iam/v1alpha1/quota/${validatePathParam("quotumName", request.quotumName)}`,
|
|
580
|
-
urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId])
|
|
581
|
-
}, unmarshalQuotum);
|
|
582
|
-
pageOfListJWTs = (request) => this.client.fetch({
|
|
583
|
-
method: "GET",
|
|
584
|
-
path: `/iam/v1alpha1/jwts`,
|
|
585
|
-
urlParams: urlParams(["audience_id", request.audienceId], ["expired", request.expired], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
586
|
-
}, unmarshalListJWTsResponse);
|
|
587
|
-
/**
|
|
588
|
-
* List JWTs.
|
|
589
|
-
*
|
|
590
|
-
* @param request - The request {@link ListJWTsRequest}
|
|
591
|
-
* @returns A Promise of ListJWTsResponse
|
|
592
|
-
*/
|
|
593
|
-
listJWTs = (request) => enrichForPagination("jwts", this.pageOfListJWTs, request);
|
|
594
|
-
/**
|
|
595
|
-
* Create a JWT.
|
|
596
|
-
*
|
|
597
|
-
* @param request - The request {@link CreateJWTRequest}
|
|
598
|
-
* @returns A Promise of EncodedJWT
|
|
599
|
-
*/
|
|
600
|
-
createJWT = (request) => this.client.fetch({
|
|
601
|
-
body: JSON.stringify(marshalCreateJWTRequest(request, this.client.settings)),
|
|
602
|
-
headers: jsonContentHeaders,
|
|
603
|
-
method: "POST",
|
|
604
|
-
path: `/iam/v1alpha1/jwts`
|
|
605
|
-
}, unmarshalEncodedJWT);
|
|
606
|
-
/**
|
|
607
|
-
* Get a JWT.
|
|
608
|
-
*
|
|
609
|
-
* @param request - The request {@link GetJWTRequest}
|
|
610
|
-
* @returns A Promise of JWT
|
|
611
|
-
*/
|
|
612
|
-
getJWT = (request) => this.client.fetch({
|
|
613
|
-
method: "GET",
|
|
614
|
-
path: `/iam/v1alpha1/jwts/${validatePathParam("jti", request.jti)}`
|
|
615
|
-
}, unmarshalJWT);
|
|
616
|
-
/**
|
|
617
|
-
* Delete a JWT.
|
|
618
|
-
*
|
|
619
|
-
* @param request - The request {@link DeleteJWTRequest}
|
|
620
|
-
*/
|
|
621
|
-
deleteJWT = (request) => this.client.fetch({
|
|
622
|
-
method: "DELETE",
|
|
623
|
-
path: `/iam/v1alpha1/jwts/${validatePathParam("jti", request.jti)}`
|
|
624
|
-
});
|
|
625
|
-
pageOfListLogs = (request = {}) => this.client.fetch({
|
|
626
|
-
method: "GET",
|
|
627
|
-
path: `/iam/v1alpha1/logs`,
|
|
628
|
-
urlParams: urlParams(["action", request.action], ["created_after", request.createdAfter], ["created_before", request.createdBefore], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["resource_type", request.resourceType], ["search", request.search])
|
|
629
|
-
}, unmarshalListLogsResponse);
|
|
630
|
-
/**
|
|
631
|
-
* List logs. List logs available for given Organization. You must define the `organization_id` in the query path of your request.
|
|
632
|
-
*
|
|
633
|
-
* @param request - The request {@link ListLogsRequest}
|
|
634
|
-
* @returns A Promise of ListLogsResponse
|
|
635
|
-
*/
|
|
636
|
-
listLogs = (request = {}) => enrichForPagination("logs", this.pageOfListLogs, request);
|
|
637
|
-
/**
|
|
638
|
-
* Get a log. Retrieve information about a log, specified by the `log_id` parameter. The log's full details, including `id`, `ip`, `user_agent`, `action`, `bearer_id`, `resource_type` and `resource_id` are returned in the response.
|
|
639
|
-
*
|
|
640
|
-
* @param request - The request {@link GetLogRequest}
|
|
641
|
-
* @returns A Promise of Log
|
|
642
|
-
*/
|
|
643
|
-
getLog = (request) => this.client.fetch({
|
|
644
|
-
method: "GET",
|
|
645
|
-
path: `/iam/v1alpha1/logs/${validatePathParam("logId", request.logId)}`
|
|
646
|
-
}, unmarshalLog);
|
|
647
|
-
/**
|
|
648
|
-
* Get security settings of an Organization. Retrieve information about the security settings of an Organization, specified by the `organization_id` parameter.
|
|
649
|
-
*
|
|
650
|
-
* @param request - The request {@link GetOrganizationSecuritySettingsRequest}
|
|
651
|
-
* @returns A Promise of OrganizationSecuritySettings
|
|
652
|
-
*/
|
|
653
|
-
getOrganizationSecuritySettings = (request = {}) => this.client.fetch({
|
|
654
|
-
method: "GET",
|
|
655
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
656
|
-
}, unmarshalOrganizationSecuritySettings);
|
|
657
|
-
/**
|
|
658
|
-
* Update the security settings of an Organization.
|
|
659
|
-
*
|
|
660
|
-
* @param request - The request {@link UpdateOrganizationSecuritySettingsRequest}
|
|
661
|
-
* @returns A Promise of OrganizationSecuritySettings
|
|
662
|
-
*/
|
|
663
|
-
updateOrganizationSecuritySettings = (request = {}) => this.client.fetch({
|
|
664
|
-
body: JSON.stringify(marshalUpdateOrganizationSecuritySettingsRequest(request, this.client.settings)),
|
|
665
|
-
headers: jsonContentHeaders,
|
|
666
|
-
method: "PATCH",
|
|
667
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
668
|
-
}, unmarshalOrganizationSecuritySettings);
|
|
669
|
-
/**
|
|
670
|
-
* Set your Organization's alias.. This will fail if an alias has already been defined. Please contact support if you need to change your Organization's alias.
|
|
671
|
-
*
|
|
672
|
-
* @param request - The request {@link SetOrganizationAliasRequest}
|
|
673
|
-
* @returns A Promise of Organization
|
|
674
|
-
*/
|
|
675
|
-
setOrganizationAlias = (request) => this.client.fetch({
|
|
676
|
-
body: JSON.stringify(marshalSetOrganizationAliasRequest(request, this.client.settings)),
|
|
677
|
-
headers: jsonContentHeaders,
|
|
678
|
-
method: "PUT",
|
|
679
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/alias`
|
|
680
|
-
}, unmarshalOrganization);
|
|
681
|
-
/**
|
|
682
|
-
* Get your Organization's IAM information.
|
|
683
|
-
*
|
|
684
|
-
* @param request - The request {@link GetOrganizationRequest}
|
|
685
|
-
* @returns A Promise of Organization
|
|
686
|
-
*/
|
|
687
|
-
getOrganization = (request = {}) => this.client.fetch({
|
|
688
|
-
method: "GET",
|
|
689
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}`
|
|
690
|
-
}, unmarshalOrganization);
|
|
691
|
-
/**
|
|
692
|
-
* Set your Organization's allowed login methods.. Set your Organization's allowed login methods.
|
|
693
|
-
*
|
|
694
|
-
* @param request - The request {@link UpdateOrganizationLoginMethodsRequest}
|
|
695
|
-
* @returns A Promise of Organization
|
|
696
|
-
*/
|
|
697
|
-
updateOrganizationLoginMethods = (request = {}) => this.client.fetch({
|
|
698
|
-
body: JSON.stringify(marshalUpdateOrganizationLoginMethodsRequest(request, this.client.settings)),
|
|
699
|
-
headers: jsonContentHeaders,
|
|
700
|
-
method: "PATCH",
|
|
701
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/login-methods`
|
|
702
|
-
}, unmarshalOrganization);
|
|
703
|
-
/**
|
|
704
|
-
* Get SAML Identity Provider configuration of an Organization.
|
|
705
|
-
*
|
|
706
|
-
* @param request - The request {@link GetOrganizationSamlRequest}
|
|
707
|
-
* @returns A Promise of Saml
|
|
708
|
-
*/
|
|
709
|
-
getOrganizationSaml = (request = {}) => this.client.fetch({
|
|
710
|
-
method: "GET",
|
|
711
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/saml`
|
|
712
|
-
}, unmarshalSaml);
|
|
713
|
-
/**
|
|
714
|
-
* Enable SAML Identity Provider for an Organization.
|
|
715
|
-
*
|
|
716
|
-
* @param request - The request {@link EnableOrganizationSamlRequest}
|
|
717
|
-
* @returns A Promise of Saml
|
|
718
|
-
*/
|
|
719
|
-
enableOrganizationSaml = (request = {}) => this.client.fetch({
|
|
720
|
-
body: "{}",
|
|
721
|
-
headers: jsonContentHeaders,
|
|
722
|
-
method: "POST",
|
|
723
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/saml`
|
|
724
|
-
}, unmarshalSaml);
|
|
725
|
-
/**
|
|
726
|
-
* Update SAML Identity Provider configuration.
|
|
727
|
-
*
|
|
728
|
-
* @param request - The request {@link UpdateSamlRequest}
|
|
729
|
-
* @returns A Promise of Saml
|
|
730
|
-
*/
|
|
731
|
-
updateSaml = (request) => this.client.fetch({
|
|
732
|
-
body: JSON.stringify(marshalUpdateSamlRequest(request, this.client.settings)),
|
|
733
|
-
headers: jsonContentHeaders,
|
|
734
|
-
method: "PATCH",
|
|
735
|
-
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}`
|
|
736
|
-
}, unmarshalSaml);
|
|
737
|
-
/**
|
|
738
|
-
* Disable SAML Identity Provider for an Organization.
|
|
739
|
-
*
|
|
740
|
-
* @param request - The request {@link DeleteSamlRequest}
|
|
741
|
-
*/
|
|
742
|
-
deleteSaml = (request) => this.client.fetch({
|
|
743
|
-
method: "DELETE",
|
|
744
|
-
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}`
|
|
745
|
-
});
|
|
746
|
-
/**
|
|
747
|
-
* Parse SAML xml metadata file.
|
|
748
|
-
*
|
|
749
|
-
* @param request - The request {@link ParseSamlMetadataRequest}
|
|
750
|
-
* @returns A Promise of ParseSamlMetadataResponse
|
|
751
|
-
*/
|
|
752
|
-
parseSamlMetadata = async (request) => this.client.fetch({
|
|
753
|
-
body: JSON.stringify(await marshalParseSamlMetadataRequest(request, this.client.settings)),
|
|
754
|
-
headers: jsonContentHeaders,
|
|
755
|
-
method: "POST",
|
|
756
|
-
path: `/iam/v1alpha1/parse-saml-metadata`
|
|
757
|
-
}, unmarshalParseSamlMetadataResponse);
|
|
758
|
-
/**
|
|
759
|
-
* List SAML certificates.
|
|
760
|
-
*
|
|
761
|
-
* @param request - The request {@link ListSamlCertificatesRequest}
|
|
762
|
-
* @returns A Promise of ListSamlCertificatesResponse
|
|
763
|
-
*/
|
|
764
|
-
listSamlCertificates = (request) => this.client.fetch({
|
|
765
|
-
method: "GET",
|
|
766
|
-
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}/certificates`
|
|
767
|
-
}, unmarshalListSamlCertificatesResponse);
|
|
768
|
-
/**
|
|
769
|
-
* Add a SAML certificate.
|
|
770
|
-
*
|
|
771
|
-
* @param request - The request {@link AddSamlCertificateRequest}
|
|
772
|
-
* @returns A Promise of SamlCertificate
|
|
773
|
-
*/
|
|
774
|
-
addSamlCertificate = (request) => this.client.fetch({
|
|
775
|
-
body: JSON.stringify(marshalAddSamlCertificateRequest(request, this.client.settings)),
|
|
776
|
-
headers: jsonContentHeaders,
|
|
777
|
-
method: "POST",
|
|
778
|
-
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}/certificates`
|
|
779
|
-
}, unmarshalSamlCertificate);
|
|
780
|
-
/**
|
|
781
|
-
* Get a SAML certificate.
|
|
782
|
-
*
|
|
783
|
-
* @param request - The request {@link GetSamlCertificateRequest}
|
|
784
|
-
* @returns A Promise of SamlCertificate
|
|
785
|
-
*/
|
|
786
|
-
getSamlCertificate = (request) => this.client.fetch({
|
|
787
|
-
method: "GET",
|
|
788
|
-
path: `/iam/v1alpha1/saml-certificates/${validatePathParam("certificateId", request.certificateId)}`
|
|
789
|
-
}, unmarshalSamlCertificate);
|
|
790
|
-
/**
|
|
791
|
-
* Delete a SAML certificate.
|
|
792
|
-
*
|
|
793
|
-
* @param request - The request {@link DeleteSamlCertificateRequest}
|
|
794
|
-
*/
|
|
795
|
-
deleteSamlCertificate = (request) => this.client.fetch({
|
|
796
|
-
method: "DELETE",
|
|
797
|
-
path: `/iam/v1alpha1/saml-certificates/${validatePathParam("certificateId", request.certificateId)}`
|
|
798
|
-
});
|
|
799
|
-
/**
|
|
800
|
-
* Get SCIM configuration of an Organization.
|
|
801
|
-
*
|
|
802
|
-
* @param request - The request {@link GetOrganizationScimRequest}
|
|
803
|
-
* @returns A Promise of Scim
|
|
804
|
-
*/
|
|
805
|
-
getOrganizationScim = (request = {}) => this.client.fetch({
|
|
806
|
-
method: "GET",
|
|
807
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/scim`
|
|
808
|
-
}, unmarshalScim);
|
|
809
|
-
/**
|
|
810
|
-
* Enable SCIM for an Organization.
|
|
811
|
-
*
|
|
812
|
-
* @param request - The request {@link EnableOrganizationScimRequest}
|
|
813
|
-
* @returns A Promise of Scim
|
|
814
|
-
*/
|
|
815
|
-
enableOrganizationScim = (request = {}) => this.client.fetch({
|
|
816
|
-
body: "{}",
|
|
817
|
-
headers: jsonContentHeaders,
|
|
818
|
-
method: "POST",
|
|
819
|
-
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/scim`
|
|
820
|
-
}, unmarshalScim);
|
|
821
|
-
/**
|
|
822
|
-
* Disable SCIM for an Organization.
|
|
823
|
-
*
|
|
824
|
-
* @param request - The request {@link DeleteScimRequest}
|
|
825
|
-
*/
|
|
826
|
-
deleteScim = (request) => this.client.fetch({
|
|
827
|
-
method: "DELETE",
|
|
828
|
-
path: `/iam/v1alpha1/scim/${validatePathParam("scimId", request.scimId)}`
|
|
829
|
-
});
|
|
830
|
-
pageOfListScimTokens = (request) => this.client.fetch({
|
|
831
|
-
method: "GET",
|
|
832
|
-
path: `/iam/v1alpha1/scim/${validatePathParam("scimId", request.scimId)}/tokens`,
|
|
833
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
834
|
-
}, unmarshalListScimTokensResponse);
|
|
835
|
-
/**
|
|
836
|
-
* List SCIM tokens.
|
|
837
|
-
*
|
|
838
|
-
* @param request - The request {@link ListScimTokensRequest}
|
|
839
|
-
* @returns A Promise of ListScimTokensResponse
|
|
840
|
-
*/
|
|
841
|
-
listScimTokens = (request) => enrichForPagination("scimTokens", this.pageOfListScimTokens, request);
|
|
842
|
-
/**
|
|
843
|
-
* Create a SCIM token.
|
|
844
|
-
*
|
|
845
|
-
* @param request - The request {@link CreateScimTokenRequest}
|
|
846
|
-
* @returns A Promise of CreateScimTokenResponse
|
|
847
|
-
*/
|
|
848
|
-
createScimToken = (request) => this.client.fetch({
|
|
849
|
-
method: "POST",
|
|
850
|
-
path: `/iam/v1alpha1/scim/${validatePathParam("scimId", request.scimId)}/tokens`
|
|
851
|
-
}, unmarshalCreateScimTokenResponse);
|
|
852
|
-
/**
|
|
853
|
-
* Delete a SCIM token.
|
|
854
|
-
*
|
|
855
|
-
* @param request - The request {@link DeleteScimTokenRequest}
|
|
856
|
-
*/
|
|
857
|
-
deleteScimToken = (request) => this.client.fetch({
|
|
858
|
-
method: "DELETE",
|
|
859
|
-
path: `/iam/v1alpha1/scim-tokens/${validatePathParam("tokenId", request.tokenId)}`
|
|
860
|
-
});
|
|
861
|
-
/**
|
|
862
|
-
* Start registering a WebAuthn authenticator.
|
|
863
|
-
*
|
|
864
|
-
* @param request - The request {@link StartUserWebAuthnRegistrationRequest}
|
|
865
|
-
* @returns A Promise of StartUserWebAuthnRegistrationResponse
|
|
866
|
-
*/
|
|
867
|
-
startUserWebAuthnRegistration = (request) => this.client.fetch({
|
|
868
|
-
method: "POST",
|
|
869
|
-
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/start-webauthn-registration`,
|
|
870
|
-
urlParams: urlParams(["origin", request.origin])
|
|
871
|
-
}, unmarshalStartUserWebAuthnRegistrationResponse);
|
|
872
|
-
/**
|
|
873
|
-
* Complete a WebAuthen authenticator registration.
|
|
874
|
-
*
|
|
875
|
-
* @param request - The request {@link FinishUserWebAuthnRegistrationRequest}
|
|
876
|
-
* @returns A Promise of FinishUserWebAuthnRegistrationResponse
|
|
877
|
-
*/
|
|
878
|
-
finishUserWebAuthnRegistration = (request) => this.client.fetch({
|
|
879
|
-
body: JSON.stringify(marshalFinishUserWebAuthnRegistrationRequest(request, this.client.settings)),
|
|
880
|
-
headers: jsonContentHeaders,
|
|
881
|
-
method: "POST",
|
|
882
|
-
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/finish-webauthn-registration`
|
|
883
|
-
}, unmarshalFinishUserWebAuthnRegistrationResponse);
|
|
884
|
-
pageOfListUserWebAuthnAuthenticators = (request) => this.client.fetch({
|
|
885
|
-
method: "GET",
|
|
886
|
-
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/webauthn-authenticators`,
|
|
887
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
888
|
-
}, unmarshalListUserWebAuthnAuthenticatorsResponse);
|
|
889
|
-
/**
|
|
890
|
-
* List all of a user's WebAuthn Authenticators.
|
|
891
|
-
*
|
|
892
|
-
* @param request - The request {@link ListUserWebAuthnAuthenticatorsRequest}
|
|
893
|
-
* @returns A Promise of ListUserWebAuthnAuthenticatorsResponse
|
|
894
|
-
*/
|
|
895
|
-
listUserWebAuthnAuthenticators = (request) => enrichForPagination("authenticators", this.pageOfListUserWebAuthnAuthenticators, request);
|
|
896
|
-
/**
|
|
897
|
-
* Update a WebAuthn authenticator.
|
|
898
|
-
*
|
|
899
|
-
* @param request - The request {@link UpdateWebAuthnAuthenticatorRequest}
|
|
900
|
-
* @returns A Promise of WebAuthnAuthenticator
|
|
901
|
-
*/
|
|
902
|
-
updateWebAuthnAuthenticator = (request) => this.client.fetch({
|
|
903
|
-
body: JSON.stringify(marshalUpdateWebAuthnAuthenticatorRequest(request, this.client.settings)),
|
|
904
|
-
headers: jsonContentHeaders,
|
|
905
|
-
method: "PATCH",
|
|
906
|
-
path: `/iam/v1alpha1/webauthn-authenticator/${validatePathParam("authenticatorId", request.authenticatorId)}`
|
|
907
|
-
}, unmarshalWebAuthnAuthenticator);
|
|
908
|
-
/**
|
|
909
|
-
* Delete a WebAuthn authenticator.
|
|
910
|
-
*
|
|
911
|
-
* @param request - The request {@link DeleteWebAuthnAuthenticatorRequest}
|
|
912
|
-
*/
|
|
913
|
-
deleteWebAuthnAuthenticator = (request) => this.client.fetch({
|
|
914
|
-
body: "{}",
|
|
915
|
-
headers: jsonContentHeaders,
|
|
916
|
-
method: "DELETE",
|
|
917
|
-
path: `/iam/v1alpha1/webauthn-authenticator/${validatePathParam("authenticatorId", request.authenticatorId)}`
|
|
918
|
-
});
|
|
11
|
+
constructor(..._args) {
|
|
12
|
+
super(..._args);
|
|
13
|
+
this.pageOfListSSHKeys = (request = {}) => this.client.fetch({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: `/iam/v1alpha1/ssh-keys`,
|
|
16
|
+
urlParams: urlParams(["disabled", request.disabled], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
|
|
17
|
+
}, unmarshalListSSHKeysResponse);
|
|
18
|
+
this.listSSHKeys = (request = {}) => enrichForPagination("sshKeys", this.pageOfListSSHKeys, request);
|
|
19
|
+
this.createSSHKey = (request) => this.client.fetch({
|
|
20
|
+
body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
|
|
21
|
+
headers: jsonContentHeaders,
|
|
22
|
+
method: "POST",
|
|
23
|
+
path: `/iam/v1alpha1/ssh-keys`
|
|
24
|
+
}, unmarshalSSHKey);
|
|
25
|
+
this.getSSHKey = (request) => this.client.fetch({
|
|
26
|
+
method: "GET",
|
|
27
|
+
path: `/iam/v1alpha1/ssh-keys/${validatePathParam("sshKeyId", request.sshKeyId)}`
|
|
28
|
+
}, unmarshalSSHKey);
|
|
29
|
+
this.updateSSHKey = (request) => this.client.fetch({
|
|
30
|
+
body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
|
|
31
|
+
headers: jsonContentHeaders,
|
|
32
|
+
method: "PATCH",
|
|
33
|
+
path: `/iam/v1alpha1/ssh-keys/${validatePathParam("sshKeyId", request.sshKeyId)}`
|
|
34
|
+
}, unmarshalSSHKey);
|
|
35
|
+
this.deleteSSHKey = (request) => this.client.fetch({
|
|
36
|
+
method: "DELETE",
|
|
37
|
+
path: `/iam/v1alpha1/ssh-keys/${validatePathParam("sshKeyId", request.sshKeyId)}`
|
|
38
|
+
});
|
|
39
|
+
this.pageOfListUsers = (request = {}) => this.client.fetch({
|
|
40
|
+
method: "GET",
|
|
41
|
+
path: `/iam/v1alpha1/users`,
|
|
42
|
+
urlParams: urlParams(["mfa", request.mfa], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["tag", request.tag], ["type", request.type], ["user_ids", request.userIds])
|
|
43
|
+
}, unmarshalListUsersResponse);
|
|
44
|
+
this.listUsers = (request = {}) => enrichForPagination("users", this.pageOfListUsers, request);
|
|
45
|
+
this.getUser = (request) => this.client.fetch({
|
|
46
|
+
method: "GET",
|
|
47
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}`
|
|
48
|
+
}, unmarshalUser);
|
|
49
|
+
this.updateUser = (request) => this.client.fetch({
|
|
50
|
+
body: JSON.stringify(marshalUpdateUserRequest(request, this.client.settings)),
|
|
51
|
+
headers: jsonContentHeaders,
|
|
52
|
+
method: "PATCH",
|
|
53
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}`
|
|
54
|
+
}, unmarshalUser);
|
|
55
|
+
this.deleteUser = (request) => this.client.fetch({
|
|
56
|
+
method: "DELETE",
|
|
57
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}`
|
|
58
|
+
});
|
|
59
|
+
this.createUser = (request = {}) => this.client.fetch({
|
|
60
|
+
body: JSON.stringify(marshalCreateUserRequest(request, this.client.settings)),
|
|
61
|
+
headers: jsonContentHeaders,
|
|
62
|
+
method: "POST",
|
|
63
|
+
path: `/iam/v1alpha1/users`
|
|
64
|
+
}, unmarshalUser);
|
|
65
|
+
this.updateUserUsername = (request) => this.client.fetch({
|
|
66
|
+
body: JSON.stringify(marshalUpdateUserUsernameRequest(request, this.client.settings)),
|
|
67
|
+
headers: jsonContentHeaders,
|
|
68
|
+
method: "POST",
|
|
69
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/update-username`
|
|
70
|
+
}, unmarshalUser);
|
|
71
|
+
this.updateUserPassword = (request) => this.client.fetch({
|
|
72
|
+
body: JSON.stringify(marshalUpdateUserPasswordRequest(request, this.client.settings)),
|
|
73
|
+
headers: jsonContentHeaders,
|
|
74
|
+
method: "POST",
|
|
75
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/update-password`
|
|
76
|
+
}, unmarshalUser);
|
|
77
|
+
this.createUserMFAOTP = (request) => this.client.fetch({
|
|
78
|
+
body: "{}",
|
|
79
|
+
headers: jsonContentHeaders,
|
|
80
|
+
method: "POST",
|
|
81
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/mfa-otp`
|
|
82
|
+
}, unmarshalMFAOTP);
|
|
83
|
+
this.validateUserMFAOTP = (request) => this.client.fetch({
|
|
84
|
+
body: JSON.stringify(marshalValidateUserMFAOTPRequest(request, this.client.settings)),
|
|
85
|
+
headers: jsonContentHeaders,
|
|
86
|
+
method: "POST",
|
|
87
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/validate-mfa-otp`
|
|
88
|
+
}, unmarshalValidateUserMFAOTPResponse);
|
|
89
|
+
this.deleteUserMFAOTP = (request) => this.client.fetch({
|
|
90
|
+
body: "{}",
|
|
91
|
+
headers: jsonContentHeaders,
|
|
92
|
+
method: "DELETE",
|
|
93
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/mfa-otp`
|
|
94
|
+
});
|
|
95
|
+
this.lockUser = (request) => this.client.fetch({
|
|
96
|
+
body: "{}",
|
|
97
|
+
headers: jsonContentHeaders,
|
|
98
|
+
method: "POST",
|
|
99
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/lock`
|
|
100
|
+
}, unmarshalUser);
|
|
101
|
+
this.unlockUser = (request) => this.client.fetch({
|
|
102
|
+
body: "{}",
|
|
103
|
+
headers: jsonContentHeaders,
|
|
104
|
+
method: "POST",
|
|
105
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/unlock`
|
|
106
|
+
}, unmarshalUser);
|
|
107
|
+
this.listGracePeriods = (request = {}) => this.client.fetch({
|
|
108
|
+
method: "GET",
|
|
109
|
+
path: `/iam/v1alpha1/grace-periods`,
|
|
110
|
+
urlParams: urlParams(["user_id", request.userId])
|
|
111
|
+
}, unmarshalListGracePeriodsResponse);
|
|
112
|
+
this.getUserConnections = (request) => this.client.fetch({
|
|
113
|
+
method: "GET",
|
|
114
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/connections`
|
|
115
|
+
}, unmarshalGetUserConnectionsResponse);
|
|
116
|
+
this.initiateUserConnection = (request) => this.client.fetch({
|
|
117
|
+
body: "{}",
|
|
118
|
+
headers: jsonContentHeaders,
|
|
119
|
+
method: "POST",
|
|
120
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/initiate-connection`
|
|
121
|
+
}, unmarshalInitiateUserConnectionResponse);
|
|
122
|
+
this.joinUserConnection = (request) => this.client.fetch({
|
|
123
|
+
body: JSON.stringify(marshalJoinUserConnectionRequest(request, this.client.settings)),
|
|
124
|
+
headers: jsonContentHeaders,
|
|
125
|
+
method: "POST",
|
|
126
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/join-connection`
|
|
127
|
+
});
|
|
128
|
+
this.removeUserConnection = (request) => this.client.fetch({
|
|
129
|
+
body: JSON.stringify(marshalRemoveUserConnectionRequest(request, this.client.settings)),
|
|
130
|
+
headers: jsonContentHeaders,
|
|
131
|
+
method: "POST",
|
|
132
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/remove-connection`
|
|
133
|
+
});
|
|
134
|
+
this.pageOfListApplications = (request = {}) => this.client.fetch({
|
|
135
|
+
method: "GET",
|
|
136
|
+
path: `/iam/v1alpha1/applications`,
|
|
137
|
+
urlParams: urlParams(["application_ids", request.applicationIds], ["editable", request.editable], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["tag", request.tag])
|
|
138
|
+
}, unmarshalListApplicationsResponse);
|
|
139
|
+
this.listApplications = (request = {}) => enrichForPagination("applications", this.pageOfListApplications, request);
|
|
140
|
+
this.createApplication = (request) => this.client.fetch({
|
|
141
|
+
body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
|
|
142
|
+
headers: jsonContentHeaders,
|
|
143
|
+
method: "POST",
|
|
144
|
+
path: `/iam/v1alpha1/applications`
|
|
145
|
+
}, unmarshalApplication);
|
|
146
|
+
this.getApplication = (request) => this.client.fetch({
|
|
147
|
+
method: "GET",
|
|
148
|
+
path: `/iam/v1alpha1/applications/${validatePathParam("applicationId", request.applicationId)}`
|
|
149
|
+
}, unmarshalApplication);
|
|
150
|
+
this.updateApplication = (request) => this.client.fetch({
|
|
151
|
+
body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
|
|
152
|
+
headers: jsonContentHeaders,
|
|
153
|
+
method: "PATCH",
|
|
154
|
+
path: `/iam/v1alpha1/applications/${validatePathParam("applicationId", request.applicationId)}`
|
|
155
|
+
}, unmarshalApplication);
|
|
156
|
+
this.deleteApplication = (request) => this.client.fetch({
|
|
157
|
+
method: "DELETE",
|
|
158
|
+
path: `/iam/v1alpha1/applications/${validatePathParam("applicationId", request.applicationId)}`
|
|
159
|
+
});
|
|
160
|
+
this.pageOfListGroups = (request = {}) => this.client.fetch({
|
|
161
|
+
method: "GET",
|
|
162
|
+
path: `/iam/v1alpha1/groups`,
|
|
163
|
+
urlParams: urlParams(["application_ids", request.applicationIds], ["group_ids", request.groupIds], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["tag", request.tag], ["user_ids", request.userIds])
|
|
164
|
+
}, unmarshalListGroupsResponse);
|
|
165
|
+
this.listGroups = (request = {}) => enrichForPagination("groups", this.pageOfListGroups, request);
|
|
166
|
+
this.createGroup = (request) => this.client.fetch({
|
|
167
|
+
body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
|
|
168
|
+
headers: jsonContentHeaders,
|
|
169
|
+
method: "POST",
|
|
170
|
+
path: `/iam/v1alpha1/groups`
|
|
171
|
+
}, unmarshalGroup);
|
|
172
|
+
this.getGroup = (request) => this.client.fetch({
|
|
173
|
+
method: "GET",
|
|
174
|
+
path: `/iam/v1alpha1/groups/${validatePathParam("groupId", request.groupId)}`
|
|
175
|
+
}, unmarshalGroup);
|
|
176
|
+
this.updateGroup = (request) => this.client.fetch({
|
|
177
|
+
body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
|
|
178
|
+
headers: jsonContentHeaders,
|
|
179
|
+
method: "PATCH",
|
|
180
|
+
path: `/iam/v1alpha1/groups/${validatePathParam("groupId", request.groupId)}`
|
|
181
|
+
}, unmarshalGroup);
|
|
182
|
+
this.setGroupMembers = (request) => this.client.fetch({
|
|
183
|
+
body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
|
|
184
|
+
headers: jsonContentHeaders,
|
|
185
|
+
method: "PUT",
|
|
186
|
+
path: `/iam/v1alpha1/groups/${validatePathParam("groupId", request.groupId)}/members`
|
|
187
|
+
}, unmarshalGroup);
|
|
188
|
+
this.addGroupMember = (request) => this.client.fetch({
|
|
189
|
+
body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
|
|
190
|
+
headers: jsonContentHeaders,
|
|
191
|
+
method: "POST",
|
|
192
|
+
path: `/iam/v1alpha1/groups/${validatePathParam("groupId", request.groupId)}/add-member`
|
|
193
|
+
}, unmarshalGroup);
|
|
194
|
+
this.addGroupMembers = (request) => this.client.fetch({
|
|
195
|
+
body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
|
|
196
|
+
headers: jsonContentHeaders,
|
|
197
|
+
method: "POST",
|
|
198
|
+
path: `/iam/v1alpha1/groups/${validatePathParam("groupId", request.groupId)}/add-members`
|
|
199
|
+
}, unmarshalGroup);
|
|
200
|
+
this.removeGroupMember = (request) => this.client.fetch({
|
|
201
|
+
body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
|
|
202
|
+
headers: jsonContentHeaders,
|
|
203
|
+
method: "POST",
|
|
204
|
+
path: `/iam/v1alpha1/groups/${validatePathParam("groupId", request.groupId)}/remove-member`
|
|
205
|
+
}, unmarshalGroup);
|
|
206
|
+
this.deleteGroup = (request) => this.client.fetch({
|
|
207
|
+
method: "DELETE",
|
|
208
|
+
path: `/iam/v1alpha1/groups/${validatePathParam("groupId", request.groupId)}`
|
|
209
|
+
});
|
|
210
|
+
this.pageOfListPolicies = (request = {}) => this.client.fetch({
|
|
211
|
+
method: "GET",
|
|
212
|
+
path: `/iam/v1alpha1/policies`,
|
|
213
|
+
urlParams: urlParams(["application_ids", request.applicationIds], ["editable", request.editable], ["group_ids", request.groupIds], ["no_principal", request.noPrincipal], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["policy_ids", request.policyIds], ["policy_name", request.policyName], ["tag", request.tag], ["user_ids", request.userIds])
|
|
214
|
+
}, unmarshalListPoliciesResponse);
|
|
215
|
+
this.listPolicies = (request = {}) => enrichForPagination("policies", this.pageOfListPolicies, request);
|
|
216
|
+
this.createPolicy = (request) => this.client.fetch({
|
|
217
|
+
body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
|
|
218
|
+
headers: jsonContentHeaders,
|
|
219
|
+
method: "POST",
|
|
220
|
+
path: `/iam/v1alpha1/policies`
|
|
221
|
+
}, unmarshalPolicy);
|
|
222
|
+
this.getPolicy = (request) => this.client.fetch({
|
|
223
|
+
method: "GET",
|
|
224
|
+
path: `/iam/v1alpha1/policies/${validatePathParam("policyId", request.policyId)}`
|
|
225
|
+
}, unmarshalPolicy);
|
|
226
|
+
this.updatePolicy = (request) => this.client.fetch({
|
|
227
|
+
body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
|
|
228
|
+
headers: jsonContentHeaders,
|
|
229
|
+
method: "PATCH",
|
|
230
|
+
path: `/iam/v1alpha1/policies/${validatePathParam("policyId", request.policyId)}`
|
|
231
|
+
}, unmarshalPolicy);
|
|
232
|
+
this.deletePolicy = (request) => this.client.fetch({
|
|
233
|
+
method: "DELETE",
|
|
234
|
+
path: `/iam/v1alpha1/policies/${validatePathParam("policyId", request.policyId)}`
|
|
235
|
+
});
|
|
236
|
+
this.clonePolicy = (request) => this.client.fetch({
|
|
237
|
+
body: "{}",
|
|
238
|
+
headers: jsonContentHeaders,
|
|
239
|
+
method: "POST",
|
|
240
|
+
path: `/iam/v1alpha1/policies/${validatePathParam("policyId", request.policyId)}/clone`
|
|
241
|
+
}, unmarshalPolicy);
|
|
242
|
+
this.setRules = (request) => this.client.fetch({
|
|
243
|
+
body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
|
|
244
|
+
headers: jsonContentHeaders,
|
|
245
|
+
method: "PUT",
|
|
246
|
+
path: `/iam/v1alpha1/rules`
|
|
247
|
+
}, unmarshalSetRulesResponse);
|
|
248
|
+
this.pageOfListRules = (request) => this.client.fetch({
|
|
249
|
+
method: "GET",
|
|
250
|
+
path: `/iam/v1alpha1/rules`,
|
|
251
|
+
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["policy_id", request.policyId])
|
|
252
|
+
}, unmarshalListRulesResponse);
|
|
253
|
+
this.listRules = (request) => enrichForPagination("rules", this.pageOfListRules, request);
|
|
254
|
+
this.pageOfListPermissionSets = (request = {}) => this.client.fetch({
|
|
255
|
+
method: "GET",
|
|
256
|
+
path: `/iam/v1alpha1/permission-sets`,
|
|
257
|
+
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
258
|
+
}, unmarshalListPermissionSetsResponse);
|
|
259
|
+
this.listPermissionSets = (request = {}) => enrichForPagination("permissionSets", this.pageOfListPermissionSets, request);
|
|
260
|
+
this.pageOfListAPIKeys = (request = {}) => this.client.fetch({
|
|
261
|
+
method: "GET",
|
|
262
|
+
path: `/iam/v1alpha1/api-keys`,
|
|
263
|
+
urlParams: urlParams(["access_key", request.accessKey], ["access_keys", request.accessKeys], ["bearer_id", request.bearerId], ["bearer_type", request.bearerType], ["description", request.description], ["editable", request.editable], ["expired", request.expired], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
|
|
264
|
+
param: "application_id",
|
|
265
|
+
value: request.applicationId
|
|
266
|
+
}, {
|
|
267
|
+
param: "user_id",
|
|
268
|
+
value: request.userId
|
|
269
|
+
}])))
|
|
270
|
+
}, unmarshalListAPIKeysResponse);
|
|
271
|
+
this.listAPIKeys = (request = {}) => enrichForPagination("apiKeys", this.pageOfListAPIKeys, request);
|
|
272
|
+
this.createAPIKey = (request) => this.client.fetch({
|
|
273
|
+
body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
|
|
274
|
+
headers: jsonContentHeaders,
|
|
275
|
+
method: "POST",
|
|
276
|
+
path: `/iam/v1alpha1/api-keys`
|
|
277
|
+
}, unmarshalAPIKey);
|
|
278
|
+
this.getAPIKey = (request) => this.client.fetch({
|
|
279
|
+
method: "GET",
|
|
280
|
+
path: `/iam/v1alpha1/api-keys/${validatePathParam("accessKey", request.accessKey)}`
|
|
281
|
+
}, unmarshalAPIKey);
|
|
282
|
+
this.updateAPIKey = (request) => this.client.fetch({
|
|
283
|
+
body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
|
|
284
|
+
headers: jsonContentHeaders,
|
|
285
|
+
method: "PATCH",
|
|
286
|
+
path: `/iam/v1alpha1/api-keys/${validatePathParam("accessKey", request.accessKey)}`
|
|
287
|
+
}, unmarshalAPIKey);
|
|
288
|
+
this.deleteAPIKey = (request) => this.client.fetch({
|
|
289
|
+
method: "DELETE",
|
|
290
|
+
path: `/iam/v1alpha1/api-keys/${validatePathParam("accessKey", request.accessKey)}`
|
|
291
|
+
});
|
|
292
|
+
this.pageOfListQuota = (request = {}) => this.client.fetch({
|
|
293
|
+
method: "GET",
|
|
294
|
+
path: `/iam/v1alpha1/quota`,
|
|
295
|
+
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["quotum_names", request.quotumNames])
|
|
296
|
+
}, unmarshalListQuotaResponse);
|
|
297
|
+
this.listQuota = (request = {}) => enrichForPagination("quota", this.pageOfListQuota, request);
|
|
298
|
+
this.getQuotum = (request) => this.client.fetch({
|
|
299
|
+
method: "GET",
|
|
300
|
+
path: `/iam/v1alpha1/quota/${validatePathParam("quotumName", request.quotumName)}`,
|
|
301
|
+
urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId])
|
|
302
|
+
}, unmarshalQuotum);
|
|
303
|
+
this.pageOfListJWTs = (request) => this.client.fetch({
|
|
304
|
+
method: "GET",
|
|
305
|
+
path: `/iam/v1alpha1/jwts`,
|
|
306
|
+
urlParams: urlParams(["audience_id", request.audienceId], ["expired", request.expired], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
307
|
+
}, unmarshalListJWTsResponse);
|
|
308
|
+
this.listJWTs = (request) => enrichForPagination("jwts", this.pageOfListJWTs, request);
|
|
309
|
+
this.createJWT = (request) => this.client.fetch({
|
|
310
|
+
body: JSON.stringify(marshalCreateJWTRequest(request, this.client.settings)),
|
|
311
|
+
headers: jsonContentHeaders,
|
|
312
|
+
method: "POST",
|
|
313
|
+
path: `/iam/v1alpha1/jwts`
|
|
314
|
+
}, unmarshalEncodedJWT);
|
|
315
|
+
this.getJWT = (request) => this.client.fetch({
|
|
316
|
+
method: "GET",
|
|
317
|
+
path: `/iam/v1alpha1/jwts/${validatePathParam("jti", request.jti)}`
|
|
318
|
+
}, unmarshalJWT);
|
|
319
|
+
this.deleteJWT = (request) => this.client.fetch({
|
|
320
|
+
method: "DELETE",
|
|
321
|
+
path: `/iam/v1alpha1/jwts/${validatePathParam("jti", request.jti)}`
|
|
322
|
+
});
|
|
323
|
+
this.pageOfListLogs = (request = {}) => this.client.fetch({
|
|
324
|
+
method: "GET",
|
|
325
|
+
path: `/iam/v1alpha1/logs`,
|
|
326
|
+
urlParams: urlParams(["action", request.action], ["created_after", request.createdAfter], ["created_before", request.createdBefore], ["order_by", request.orderBy], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["resource_type", request.resourceType], ["search", request.search])
|
|
327
|
+
}, unmarshalListLogsResponse);
|
|
328
|
+
this.listLogs = (request = {}) => enrichForPagination("logs", this.pageOfListLogs, request);
|
|
329
|
+
this.getLog = (request) => this.client.fetch({
|
|
330
|
+
method: "GET",
|
|
331
|
+
path: `/iam/v1alpha1/logs/${validatePathParam("logId", request.logId)}`
|
|
332
|
+
}, unmarshalLog);
|
|
333
|
+
this.getOrganizationSecuritySettings = (request = {}) => this.client.fetch({
|
|
334
|
+
method: "GET",
|
|
335
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
336
|
+
}, unmarshalOrganizationSecuritySettings);
|
|
337
|
+
this.updateOrganizationSecuritySettings = (request = {}) => this.client.fetch({
|
|
338
|
+
body: JSON.stringify(marshalUpdateOrganizationSecuritySettingsRequest(request, this.client.settings)),
|
|
339
|
+
headers: jsonContentHeaders,
|
|
340
|
+
method: "PATCH",
|
|
341
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
342
|
+
}, unmarshalOrganizationSecuritySettings);
|
|
343
|
+
this.setOrganizationAlias = (request) => this.client.fetch({
|
|
344
|
+
body: JSON.stringify(marshalSetOrganizationAliasRequest(request, this.client.settings)),
|
|
345
|
+
headers: jsonContentHeaders,
|
|
346
|
+
method: "PUT",
|
|
347
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/alias`
|
|
348
|
+
}, unmarshalOrganization);
|
|
349
|
+
this.getOrganization = (request = {}) => this.client.fetch({
|
|
350
|
+
method: "GET",
|
|
351
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}`
|
|
352
|
+
}, unmarshalOrganization);
|
|
353
|
+
this.updateOrganizationLoginMethods = (request = {}) => this.client.fetch({
|
|
354
|
+
body: JSON.stringify(marshalUpdateOrganizationLoginMethodsRequest(request, this.client.settings)),
|
|
355
|
+
headers: jsonContentHeaders,
|
|
356
|
+
method: "PATCH",
|
|
357
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/login-methods`
|
|
358
|
+
}, unmarshalOrganization);
|
|
359
|
+
this.getOrganizationSaml = (request = {}) => this.client.fetch({
|
|
360
|
+
method: "GET",
|
|
361
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/saml`
|
|
362
|
+
}, unmarshalSaml);
|
|
363
|
+
this.enableOrganizationSaml = (request = {}) => this.client.fetch({
|
|
364
|
+
body: "{}",
|
|
365
|
+
headers: jsonContentHeaders,
|
|
366
|
+
method: "POST",
|
|
367
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/saml`
|
|
368
|
+
}, unmarshalSaml);
|
|
369
|
+
this.updateSaml = (request) => this.client.fetch({
|
|
370
|
+
body: JSON.stringify(marshalUpdateSamlRequest(request, this.client.settings)),
|
|
371
|
+
headers: jsonContentHeaders,
|
|
372
|
+
method: "PATCH",
|
|
373
|
+
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}`
|
|
374
|
+
}, unmarshalSaml);
|
|
375
|
+
this.deleteSaml = (request) => this.client.fetch({
|
|
376
|
+
method: "DELETE",
|
|
377
|
+
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}`
|
|
378
|
+
});
|
|
379
|
+
this.parseSamlMetadata = async (request) => this.client.fetch({
|
|
380
|
+
body: JSON.stringify(await marshalParseSamlMetadataRequest(request, this.client.settings)),
|
|
381
|
+
headers: jsonContentHeaders,
|
|
382
|
+
method: "POST",
|
|
383
|
+
path: `/iam/v1alpha1/parse-saml-metadata`
|
|
384
|
+
}, unmarshalParseSamlMetadataResponse);
|
|
385
|
+
this.listSamlCertificates = (request) => this.client.fetch({
|
|
386
|
+
method: "GET",
|
|
387
|
+
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}/certificates`
|
|
388
|
+
}, unmarshalListSamlCertificatesResponse);
|
|
389
|
+
this.addSamlCertificate = (request) => this.client.fetch({
|
|
390
|
+
body: JSON.stringify(marshalAddSamlCertificateRequest(request, this.client.settings)),
|
|
391
|
+
headers: jsonContentHeaders,
|
|
392
|
+
method: "POST",
|
|
393
|
+
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}/certificates`
|
|
394
|
+
}, unmarshalSamlCertificate);
|
|
395
|
+
this.getSamlCertificate = (request) => this.client.fetch({
|
|
396
|
+
method: "GET",
|
|
397
|
+
path: `/iam/v1alpha1/saml-certificates/${validatePathParam("certificateId", request.certificateId)}`
|
|
398
|
+
}, unmarshalSamlCertificate);
|
|
399
|
+
this.deleteSamlCertificate = (request) => this.client.fetch({
|
|
400
|
+
method: "DELETE",
|
|
401
|
+
path: `/iam/v1alpha1/saml-certificates/${validatePathParam("certificateId", request.certificateId)}`
|
|
402
|
+
});
|
|
403
|
+
this.getOrganizationScim = (request = {}) => this.client.fetch({
|
|
404
|
+
method: "GET",
|
|
405
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/scim`
|
|
406
|
+
}, unmarshalScim);
|
|
407
|
+
this.enableOrganizationScim = (request = {}) => this.client.fetch({
|
|
408
|
+
body: "{}",
|
|
409
|
+
headers: jsonContentHeaders,
|
|
410
|
+
method: "POST",
|
|
411
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/scim`
|
|
412
|
+
}, unmarshalScim);
|
|
413
|
+
this.deleteScim = (request) => this.client.fetch({
|
|
414
|
+
method: "DELETE",
|
|
415
|
+
path: `/iam/v1alpha1/scim/${validatePathParam("scimId", request.scimId)}`
|
|
416
|
+
});
|
|
417
|
+
this.pageOfListScimTokens = (request) => this.client.fetch({
|
|
418
|
+
method: "GET",
|
|
419
|
+
path: `/iam/v1alpha1/scim/${validatePathParam("scimId", request.scimId)}/tokens`,
|
|
420
|
+
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
421
|
+
}, unmarshalListScimTokensResponse);
|
|
422
|
+
this.listScimTokens = (request) => enrichForPagination("scimTokens", this.pageOfListScimTokens, request);
|
|
423
|
+
this.createScimToken = (request) => this.client.fetch({
|
|
424
|
+
method: "POST",
|
|
425
|
+
path: `/iam/v1alpha1/scim/${validatePathParam("scimId", request.scimId)}/tokens`
|
|
426
|
+
}, unmarshalCreateScimTokenResponse);
|
|
427
|
+
this.deleteScimToken = (request) => this.client.fetch({
|
|
428
|
+
method: "DELETE",
|
|
429
|
+
path: `/iam/v1alpha1/scim-tokens/${validatePathParam("tokenId", request.tokenId)}`
|
|
430
|
+
});
|
|
431
|
+
this.startUserWebAuthnRegistration = (request) => this.client.fetch({
|
|
432
|
+
method: "POST",
|
|
433
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/start-webauthn-registration`,
|
|
434
|
+
urlParams: urlParams(["origin", request.origin])
|
|
435
|
+
}, unmarshalStartUserWebAuthnRegistrationResponse);
|
|
436
|
+
this.finishUserWebAuthnRegistration = (request) => this.client.fetch({
|
|
437
|
+
body: JSON.stringify(marshalFinishUserWebAuthnRegistrationRequest(request, this.client.settings)),
|
|
438
|
+
headers: jsonContentHeaders,
|
|
439
|
+
method: "POST",
|
|
440
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/finish-webauthn-registration`
|
|
441
|
+
}, unmarshalFinishUserWebAuthnRegistrationResponse);
|
|
442
|
+
this.pageOfListUserWebAuthnAuthenticators = (request) => this.client.fetch({
|
|
443
|
+
method: "GET",
|
|
444
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/webauthn-authenticators`,
|
|
445
|
+
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
446
|
+
}, unmarshalListUserWebAuthnAuthenticatorsResponse);
|
|
447
|
+
this.listUserWebAuthnAuthenticators = (request) => enrichForPagination("authenticators", this.pageOfListUserWebAuthnAuthenticators, request);
|
|
448
|
+
this.updateWebAuthnAuthenticator = (request) => this.client.fetch({
|
|
449
|
+
body: JSON.stringify(marshalUpdateWebAuthnAuthenticatorRequest(request, this.client.settings)),
|
|
450
|
+
headers: jsonContentHeaders,
|
|
451
|
+
method: "PATCH",
|
|
452
|
+
path: `/iam/v1alpha1/webauthn-authenticator/${validatePathParam("authenticatorId", request.authenticatorId)}`
|
|
453
|
+
}, unmarshalWebAuthnAuthenticator);
|
|
454
|
+
this.deleteWebAuthnAuthenticator = (request) => this.client.fetch({
|
|
455
|
+
body: "{}",
|
|
456
|
+
headers: jsonContentHeaders,
|
|
457
|
+
method: "DELETE",
|
|
458
|
+
path: `/iam/v1alpha1/webauthn-authenticator/${validatePathParam("authenticatorId", request.authenticatorId)}`
|
|
459
|
+
});
|
|
460
|
+
}
|
|
919
461
|
};
|
|
920
462
|
//#endregion
|
|
921
463
|
export { API };
|