@aionixone/client-iam 0.0.0-stage → 0.3.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +11 -0
  3. package/dist/generated/catalog.d.ts +906 -0
  4. package/dist/generated/catalog.d.ts.map +1 -0
  5. package/dist/generated/catalog.js +879 -0
  6. package/dist/generated/catalog.js.map +1 -0
  7. package/dist/generated/index.d.ts +6 -0
  8. package/dist/generated/index.d.ts.map +1 -0
  9. package/dist/generated/index.js +7 -0
  10. package/dist/generated/index.js.map +1 -0
  11. package/dist/generated/schema_types.d.ts +98 -0
  12. package/dist/generated/schema_types.d.ts.map +1 -0
  13. package/dist/generated/schema_types.js +3 -0
  14. package/dist/generated/schema_types.js.map +1 -0
  15. package/dist/generated/service.d.ts +943 -0
  16. package/dist/generated/service.d.ts.map +1 -0
  17. package/dist/generated/service.js +1230 -0
  18. package/dist/generated/service.js.map +1 -0
  19. package/dist/generated/trn.d.ts +76 -0
  20. package/dist/generated/trn.d.ts.map +1 -0
  21. package/dist/generated/trn.js +299 -0
  22. package/dist/generated/trn.js.map +1 -0
  23. package/dist/generated/types.d.ts +462 -0
  24. package/dist/generated/types.d.ts.map +1 -0
  25. package/dist/generated/types.js +3 -0
  26. package/dist/generated/types.js.map +1 -0
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +2 -0
  30. package/dist/index.js.map +1 -0
  31. package/package.json +30 -4
  32. package/src/generated/catalog.ts +882 -0
  33. package/src/generated/index.ts +7 -0
  34. package/src/generated/schema_types.ts +99 -0
  35. package/src/generated/service.ts +1311 -0
  36. package/src/generated/trn.ts +431 -0
  37. package/src/generated/types.ts +532 -0
  38. package/src/index.ts +1 -0
  39. package/README.md +0 -3
@@ -0,0 +1,1230 @@
1
+ // @generated by xtask ts-client-export; DO NOT EDIT
2
+ import { encodePathParam, withQuery } from '@aionixone/client-core';
3
+ import { OPERATIONS } from './catalog.js';
4
+ /** The `iam` service. */
5
+ export class IamService {
6
+ accessGroup;
7
+ accessPolicy;
8
+ authentication;
9
+ authorization;
10
+ identityProvider;
11
+ role;
12
+ roleBinding;
13
+ serviceAccount;
14
+ tenant;
15
+ user;
16
+ /** Not part of the public API: `AionixOne` constructs every service. */
17
+ constructor(engine) {
18
+ this.accessGroup = new IamAccessGroupResource(engine);
19
+ this.accessPolicy = new IamAccessPolicyResource(engine);
20
+ this.authentication = new IamAuthenticationResource(engine);
21
+ this.authorization = new IamAuthorizationResource(engine);
22
+ this.identityProvider = new IamIdentityProviderResource(engine);
23
+ this.role = new IamRoleResource(engine);
24
+ this.roleBinding = new IamRoleBindingResource(engine);
25
+ this.serviceAccount = new IamServiceAccountResource(engine);
26
+ this.tenant = new IamTenantResource(engine);
27
+ this.user = new IamUserResource(engine);
28
+ }
29
+ }
30
+ /** The `accessGroup` operations of the `iam` service. */
31
+ export class IamAccessGroupResource {
32
+ #engine;
33
+ /** Not part of the public API. */
34
+ constructor(engine) {
35
+ this.#engine = engine;
36
+ }
37
+ /**
38
+ * List AccessGroup access grants
39
+ *
40
+ * List one bounded page of the access grants that apply to one AccessGroup
41
+ *
42
+ * Replay: has no effect; retried after an attempt with an unknown result.
43
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`, `Auth_IamTenantRevisionConflict`.
44
+ *
45
+ * @param trn IAM resource TRN in the route path
46
+ * @param query The query, by wire names.
47
+ * @param options Call options.
48
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
49
+ */
50
+ accessGrantList(trn, query, options) {
51
+ return this.#engine.call(OPERATIONS.iam_access_group_access_grant_list, { path: withQuery(`/access-groups/${encodePathParam(trn)}/access-grants`, query), primaryResourceTrn: trn }, options);
52
+ }
53
+ /**
54
+ * Every item of `iam.access-group.access_grant_list`, page after page, starting from `query`.
55
+ * Each page is one call with its own time budget and retries.
56
+ *
57
+ * @param trn IAM resource TRN in the route path
58
+ * @param query The query of the first page; `limit` is the size of every page.
59
+ * @param options Call options of every page.
60
+ */
61
+ async *accessGrantListIter(trn, query, options) {
62
+ let cursor = query?.cursor;
63
+ for (;;) {
64
+ const response = await this.accessGrantList(trn, { ...query, cursor }, options);
65
+ const page = response.page;
66
+ yield* page.items;
67
+ if (page.nextCursor == null)
68
+ return;
69
+ cursor = page.nextCursor;
70
+ }
71
+ }
72
+ /**
73
+ * List AccessGroup resources
74
+ *
75
+ * List the tenant's reconciled AccessGroup occurrences.
76
+ *
77
+ * Replay: has no effect; retried after an attempt with an unknown result.
78
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamTenantRevisionConflict`.
79
+ *
80
+ * @param query The query, by wire names.
81
+ * @param options Call options.
82
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
83
+ */
84
+ list(query, options) {
85
+ return this.#engine.call(OPERATIONS.iam_access_group_list, { path: withQuery(`/access-groups`, query) }, options);
86
+ }
87
+ /**
88
+ * Every item of `iam.access-group.list`, page after page, starting from `query`.
89
+ * Each page is one call with its own time budget and retries.
90
+ *
91
+ * @param query The query of the first page; `limit` is the size of every page.
92
+ * @param options Call options of every page.
93
+ */
94
+ async *listIter(query, options) {
95
+ let cursor = query?.cursor;
96
+ for (;;) {
97
+ const response = await this.list({ ...query, cursor }, options);
98
+ const page = response.page;
99
+ yield* page.items;
100
+ if (page.nextCursor == null)
101
+ return;
102
+ cursor = page.nextCursor;
103
+ }
104
+ }
105
+ /**
106
+ * Read one AccessGroup
107
+ *
108
+ * Read one reconciled AccessGroup occurrence by TRN.
109
+ *
110
+ * Replay: has no effect; retried after an attempt with an unknown result.
111
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`.
112
+ *
113
+ * @param trn IAM resource TRN in the route path
114
+ * @param options Call options.
115
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
116
+ */
117
+ read(trn, options) {
118
+ return this.#engine.call(OPERATIONS.iam_access_group_read, { path: `/access-groups/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
119
+ }
120
+ /**
121
+ * List AccessGroup references
122
+ *
123
+ * List one bounded page of the active references that name one AccessGroup; they do not block deleting it
124
+ *
125
+ * Replay: has no effect; retried after an attempt with an unknown result.
126
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`, `Auth_IamTenantRevisionConflict`.
127
+ *
128
+ * @param trn IAM resource TRN in the route path
129
+ * @param query The query, by wire names.
130
+ * @param options Call options.
131
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
132
+ */
133
+ referenceList(trn, query, options) {
134
+ return this.#engine.call(OPERATIONS.iam_access_group_reference_list, { path: withQuery(`/access-groups/${encodePathParam(trn)}/references`, query), primaryResourceTrn: trn }, options);
135
+ }
136
+ /**
137
+ * Every item of `iam.access-group.reference_list`, page after page, starting from `query`.
138
+ * Each page is one call with its own time budget and retries.
139
+ *
140
+ * @param trn IAM resource TRN in the route path
141
+ * @param query The query of the first page; `limit` is the size of every page.
142
+ * @param options Call options of every page.
143
+ */
144
+ async *referenceListIter(trn, query, options) {
145
+ let cursor = query?.cursor;
146
+ for (;;) {
147
+ const response = await this.referenceList(trn, { ...query, cursor }, options);
148
+ const page = response.page;
149
+ yield* page.items;
150
+ if (page.nextCursor == null)
151
+ return;
152
+ cursor = page.nextCursor;
153
+ }
154
+ }
155
+ }
156
+ /** The `accessPolicy` operations of the `iam` service. */
157
+ export class IamAccessPolicyResource {
158
+ #engine;
159
+ /** Not part of the public API. */
160
+ constructor(engine) {
161
+ this.#engine = engine;
162
+ }
163
+ /**
164
+ * List AccessPolicy resources
165
+ *
166
+ * List the tenant's reconciled AccessPolicy occurrences.
167
+ *
168
+ * Replay: has no effect; retried after an attempt with an unknown result.
169
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamTenantRevisionConflict`.
170
+ *
171
+ * @param query The query, by wire names.
172
+ * @param options Call options.
173
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
174
+ */
175
+ list(query, options) {
176
+ return this.#engine.call(OPERATIONS.iam_access_policy_list, { path: withQuery(`/access-policies`, query) }, options);
177
+ }
178
+ /**
179
+ * Every item of `iam.access-policy.list`, page after page, starting from `query`.
180
+ * Each page is one call with its own time budget and retries.
181
+ *
182
+ * @param query The query of the first page; `limit` is the size of every page.
183
+ * @param options Call options of every page.
184
+ */
185
+ async *listIter(query, options) {
186
+ let cursor = query?.cursor;
187
+ for (;;) {
188
+ const response = await this.list({ ...query, cursor }, options);
189
+ const page = response.page;
190
+ yield* page.items;
191
+ if (page.nextCursor == null)
192
+ return;
193
+ cursor = page.nextCursor;
194
+ }
195
+ }
196
+ /**
197
+ * Read one AccessPolicy
198
+ *
199
+ * Read one reconciled AccessPolicy occurrence by TRN.
200
+ *
201
+ * Replay: has no effect; retried after an attempt with an unknown result.
202
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`.
203
+ *
204
+ * @param trn IAM resource TRN in the route path
205
+ * @param options Call options.
206
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
207
+ */
208
+ read(trn, options) {
209
+ return this.#engine.call(OPERATIONS.iam_access_policy_read, { path: `/access-policies/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
210
+ }
211
+ }
212
+ /** The `authentication` operations of the `iam` service. */
213
+ export class IamAuthenticationResource {
214
+ #engine;
215
+ /** Not part of the public API. */
216
+ constructor(engine) {
217
+ this.#engine = engine;
218
+ }
219
+ /**
220
+ * Exchange OIDC authorization code
221
+ *
222
+ * Consume one browser-bound or PKCE-bound IAM authorization code and issue the canonical credential
223
+ *
224
+ * Replay: not declared; an attempt with an unknown result is not retried.
225
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamAuthenticationProofInvalid`, `Internal_RateLimited`, `Product_CapabilityUnavailable`.
226
+ *
227
+ * @param body The request body.
228
+ * @param options Call options.
229
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
230
+ */
231
+ oidcCodeExchange(body, options) {
232
+ return this.#engine.call(OPERATIONS.iam_authentication_oidc_code_exchange, { path: `/authentication/oidc/code-exchange`, body }, options);
233
+ }
234
+ /**
235
+ * List OIDC login Providers
236
+ *
237
+ * List enabled human OIDC login Providers for one Tenant hint
238
+ *
239
+ * Replay: has no effect; retried after an attempt with an unknown result.
240
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`.
241
+ *
242
+ * @param tenantId Untrusted Tenant routing hint verified against IAM proof state
243
+ * @param options Call options.
244
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
245
+ */
246
+ oidcProviderList(tenantId, options) {
247
+ return this.#engine.call(OPERATIONS.iam_authentication_oidc_provider_list, { path: `/tenants/${encodePathParam(tenantId)}/authentication/oidc/providers` }, options);
248
+ }
249
+ /**
250
+ * Start OIDC login
251
+ *
252
+ * Create one purpose-bound human OIDC login attempt
253
+ *
254
+ * Replay: not declared; an attempt with an unknown result is not retried.
255
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamAuthenticationProofInvalid`, `Internal_RateLimited`, `Product_CapabilityUnavailable`.
256
+ *
257
+ * @param tenantId Untrusted Tenant routing hint verified against IAM proof state
258
+ * @param body The request body.
259
+ * @param options Call options.
260
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
261
+ */
262
+ oidcStart(tenantId, body, options) {
263
+ return this.#engine.call(OPERATIONS.iam_authentication_oidc_start, { path: `/tenants/${encodePathParam(tenantId)}/authentication/oidc/start`, body }, options);
264
+ }
265
+ /**
266
+ * Sign in with password
267
+ *
268
+ * Authenticate an active IAM User with its password
269
+ *
270
+ * Replay: not declared; an attempt with an unknown result is not retried.
271
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamAuthenticationProofInvalid`, `Auth_IamPasswordPolicyViolation`, `Internal_RateLimited`, `Product_CapabilityUnavailable`.
272
+ *
273
+ * @param tenantId Untrusted Tenant routing hint verified against IAM proof state
274
+ * @param body The request body.
275
+ * @param options Call options.
276
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
277
+ */
278
+ passwordLogin(tenantId, body, options) {
279
+ return this.#engine.call(OPERATIONS.iam_authentication_password_login, { path: `/tenants/${encodePathParam(tenantId)}/authentication/password`, body }, options);
280
+ }
281
+ /**
282
+ * Read password policy
283
+ *
284
+ * Read the deployment password-policy bounds stated to password-authoring surfaces
285
+ *
286
+ * Replay: has no effect; retried after an attempt with an unknown result.
287
+ * Declared errors: `Internal_ServiceUnavailable`, `Internal_SystemError`.
288
+ *
289
+ * @param options Call options.
290
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
291
+ */
292
+ passwordPolicyRead(options) {
293
+ return this.#engine.call(OPERATIONS.iam_authentication_password_policy_read, { path: `/authentication/password-policy` }, options);
294
+ }
295
+ /**
296
+ * Complete password reset
297
+ *
298
+ * Consume a password-reset proof and replace the User authenticator
299
+ *
300
+ * Replay: not declared; an attempt with an unknown result is not retried.
301
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamAuthenticationProofInvalid`, `Auth_IamPasswordPolicyViolation`, `Internal_RateLimited`, `Product_CapabilityUnavailable`.
302
+ *
303
+ * @param tenantId Untrusted Tenant routing hint verified against IAM proof state
304
+ * @param body The request body.
305
+ * @param options Call options.
306
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
307
+ */
308
+ passwordResetComplete(tenantId, body, options) {
309
+ return this.#engine.call(OPERATIONS.iam_authentication_password_reset_complete, { path: `/tenants/${encodePathParam(tenantId)}/authentication/password-reset`, body }, options);
310
+ }
311
+ }
312
+ /** The `authorization` operations of the `iam` service. */
313
+ export class IamAuthorizationResource {
314
+ #engine;
315
+ /** Not part of the public API. */
316
+ constructor(engine) {
317
+ this.#engine = engine;
318
+ }
319
+ /**
320
+ * List AccessPolicy targets
321
+ *
322
+ * List the contract-derived AccessPolicy target catalog
323
+ *
324
+ * Replay: has no effect; retried after an attempt with an unknown result.
325
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`.
326
+ *
327
+ * @param query The query, by wire names.
328
+ * @param options Call options.
329
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
330
+ */
331
+ accessPolicyTargetList(query, options) {
332
+ return this.#engine.call(OPERATIONS.iam_authorization_access_policy_target_list, { path: withQuery(`/authorization/access-policy-targets`, query) }, options);
333
+ }
334
+ /**
335
+ * Every item of `iam.authorization.access_policy_target_list`, page after page, starting from `query`.
336
+ * Each page is one call with its own time budget and retries.
337
+ *
338
+ * @param query The query of the first page; `limit` is the size of every page.
339
+ * @param options Call options of every page.
340
+ */
341
+ async *accessPolicyTargetListIter(query, options) {
342
+ let cursor = query?.cursor;
343
+ for (;;) {
344
+ const response = await this.accessPolicyTargetList({ ...query, cursor }, options);
345
+ const page = response.page;
346
+ yield* page.items;
347
+ if (page.nextCursor == null)
348
+ return;
349
+ cursor = page.nextCursor;
350
+ }
351
+ }
352
+ }
353
+ /** The `identityProvider` operations of the `iam` service. */
354
+ export class IamIdentityProviderResource {
355
+ #engine;
356
+ /** Not part of the public API. */
357
+ constructor(engine) {
358
+ this.#engine = engine;
359
+ }
360
+ /**
361
+ * Read the sign-in callback URL to register with identity providers
362
+ *
363
+ * Replay: has no effect; retried after an attempt with an unknown result.
364
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`.
365
+ *
366
+ * @param options Call options.
367
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
368
+ */
369
+ callbackEndpointRead(options) {
370
+ return this.#engine.call(OPERATIONS.iam_identity_provider_callback_endpoint_read, { path: `/identity-providers/callback-endpoint` }, options);
371
+ }
372
+ /**
373
+ * List IdentityProvider resources
374
+ *
375
+ * List the tenant's reconciled IdentityProvider occurrences.
376
+ *
377
+ * Replay: has no effect; retried after an attempt with an unknown result.
378
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamTenantRevisionConflict`.
379
+ *
380
+ * @param query The query, by wire names.
381
+ * @param options Call options.
382
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
383
+ */
384
+ list(query, options) {
385
+ return this.#engine.call(OPERATIONS.iam_identity_provider_list, { path: withQuery(`/identity-providers`, query) }, options);
386
+ }
387
+ /**
388
+ * Every item of `iam.identity-provider.list`, page after page, starting from `query`.
389
+ * Each page is one call with its own time budget and retries.
390
+ *
391
+ * @param query The query of the first page; `limit` is the size of every page.
392
+ * @param options Call options of every page.
393
+ */
394
+ async *listIter(query, options) {
395
+ let cursor = query?.cursor;
396
+ for (;;) {
397
+ const response = await this.list({ ...query, cursor }, options);
398
+ const page = response.page;
399
+ yield* page.items;
400
+ if (page.nextCursor == null)
401
+ return;
402
+ cursor = page.nextCursor;
403
+ }
404
+ }
405
+ /**
406
+ * Read one IdentityProvider
407
+ *
408
+ * Read one reconciled IdentityProvider occurrence by TRN.
409
+ *
410
+ * Replay: has no effect; retried after an attempt with an unknown result.
411
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`.
412
+ *
413
+ * @param trn IAM resource TRN in the route path
414
+ * @param options Call options.
415
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
416
+ */
417
+ read(trn, options) {
418
+ return this.#engine.call(OPERATIONS.iam_identity_provider_read, { path: `/identity-providers/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
419
+ }
420
+ /**
421
+ * Replace IdentityProvider client secret
422
+ *
423
+ * Replace encrypted client-secret material for one exact IdentityProvider occurrence
424
+ *
425
+ * Replay: not declared; an attempt with an unknown result is not retried.
426
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Internal_PreconditionFailed`.
427
+ *
428
+ * @param trn IAM resource TRN in the route path
429
+ * @param body The request body.
430
+ * @param options Call options.
431
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
432
+ */
433
+ secretReplace(trn, body, options) {
434
+ return this.#engine.call(OPERATIONS.iam_identity_provider_secret_replace, { path: `/identity-providers/${encodePathParam(trn)}/client-secret/replace`, body, primaryResourceTrn: trn }, options);
435
+ }
436
+ /**
437
+ * Revoke IdentityProvider client secret
438
+ *
439
+ * Revoke encrypted client-secret material for one exact IdentityProvider occurrence
440
+ *
441
+ * Replay: not declared; an attempt with an unknown result is not retried.
442
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Internal_PreconditionFailed`, `Auth_IamLastHumanAdmin`.
443
+ *
444
+ * @param trn IAM resource TRN in the route path
445
+ * @param body The request body.
446
+ * @param options Call options.
447
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
448
+ */
449
+ secretRevoke(trn, body, options) {
450
+ return this.#engine.call(OPERATIONS.iam_identity_provider_secret_revoke, { path: `/identity-providers/${encodePathParam(trn)}/client-secret/revoke`, body, primaryResourceTrn: trn }, options);
451
+ }
452
+ }
453
+ /** The `role` operations of the `iam` service. */
454
+ export class IamRoleResource {
455
+ #engine;
456
+ /** Not part of the public API. */
457
+ constructor(engine) {
458
+ this.#engine = engine;
459
+ }
460
+ /**
461
+ * List system Roles
462
+ *
463
+ * List system Role definitions
464
+ *
465
+ * List the revisioned system Role catalog.
466
+ *
467
+ * Replay: has no effect; retried after an attempt with an unknown result.
468
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_SystemError`.
469
+ *
470
+ * @param options Call options.
471
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
472
+ */
473
+ list(options) {
474
+ return this.#engine.call(OPERATIONS.iam_role_list, { path: `/roles` }, options);
475
+ }
476
+ /**
477
+ * Read a system Role
478
+ *
479
+ * Read one system Role definition
480
+ *
481
+ * Read one immutable system Role definition by name.
482
+ *
483
+ * Replay: has no effect; retried after an attempt with an unknown result.
484
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_SystemError`, `Auth_RoleNotFound`.
485
+ *
486
+ * @param name System Role name such as tenant-admin or viewer
487
+ * @param options Call options.
488
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
489
+ */
490
+ read(name, options) {
491
+ return this.#engine.call(OPERATIONS.iam_role_read, { path: `/roles/${encodePathParam(name)}` }, options);
492
+ }
493
+ }
494
+ /** The `roleBinding` operations of the `iam` service. */
495
+ export class IamRoleBindingResource {
496
+ #engine;
497
+ /** Not part of the public API. */
498
+ constructor(engine) {
499
+ this.#engine = engine;
500
+ }
501
+ /**
502
+ * List RoleBinding resources
503
+ *
504
+ * List the tenant's reconciled RoleBinding occurrences.
505
+ *
506
+ * Replay: has no effect; retried after an attempt with an unknown result.
507
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamTenantRevisionConflict`.
508
+ *
509
+ * @param query The query, by wire names.
510
+ * @param options Call options.
511
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
512
+ */
513
+ list(query, options) {
514
+ return this.#engine.call(OPERATIONS.iam_role_binding_list, { path: withQuery(`/role-bindings`, query) }, options);
515
+ }
516
+ /**
517
+ * Every item of `iam.role-binding.list`, page after page, starting from `query`.
518
+ * Each page is one call with its own time budget and retries.
519
+ *
520
+ * @param query The query of the first page; `limit` is the size of every page.
521
+ * @param options Call options of every page.
522
+ */
523
+ async *listIter(query, options) {
524
+ let cursor = query?.cursor;
525
+ for (;;) {
526
+ const response = await this.list({ ...query, cursor }, options);
527
+ const page = response.page;
528
+ yield* page.items;
529
+ if (page.nextCursor == null)
530
+ return;
531
+ cursor = page.nextCursor;
532
+ }
533
+ }
534
+ /**
535
+ * Read one RoleBinding
536
+ *
537
+ * Read one reconciled RoleBinding occurrence by TRN.
538
+ *
539
+ * Replay: has no effect; retried after an attempt with an unknown result.
540
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`.
541
+ *
542
+ * @param trn IAM resource TRN in the route path
543
+ * @param options Call options.
544
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
545
+ */
546
+ read(trn, options) {
547
+ return this.#engine.call(OPERATIONS.iam_role_binding_read, { path: `/role-bindings/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
548
+ }
549
+ }
550
+ /** The `serviceAccount` operations of the `iam` service. */
551
+ export class IamServiceAccountResource {
552
+ #engine;
553
+ /** Not part of the public API. */
554
+ constructor(engine) {
555
+ this.#engine = engine;
556
+ }
557
+ /**
558
+ * List ServiceAccount access grants
559
+ *
560
+ * List one bounded page of the access grants that apply to one ServiceAccount
561
+ *
562
+ * Replay: has no effect; retried after an attempt with an unknown result.
563
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`, `Auth_IamTenantRevisionConflict`.
564
+ *
565
+ * @param trn IAM resource TRN in the route path
566
+ * @param query The query, by wire names.
567
+ * @param options Call options.
568
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
569
+ */
570
+ accessGrantList(trn, query, options) {
571
+ return this.#engine.call(OPERATIONS.iam_service_account_access_grant_list, { path: withQuery(`/service-accounts/${encodePathParam(trn)}/access-grants`, query), primaryResourceTrn: trn }, options);
572
+ }
573
+ /**
574
+ * Every item of `iam.service-account.access_grant_list`, page after page, starting from `query`.
575
+ * Each page is one call with its own time budget and retries.
576
+ *
577
+ * @param trn IAM resource TRN in the route path
578
+ * @param query The query of the first page; `limit` is the size of every page.
579
+ * @param options Call options of every page.
580
+ */
581
+ async *accessGrantListIter(trn, query, options) {
582
+ let cursor = query?.cursor;
583
+ for (;;) {
584
+ const response = await this.accessGrantList(trn, { ...query, cursor }, options);
585
+ const page = response.page;
586
+ yield* page.items;
587
+ if (page.nextCursor == null)
588
+ return;
589
+ cursor = page.nextCursor;
590
+ }
591
+ }
592
+ /**
593
+ * Issue one ServiceAccount access key
594
+ *
595
+ * Issue service account access key
596
+ *
597
+ * Create one canonical IAM credential for an exact ServiceAccount occurrence and disclose its bearer secret once.
598
+ *
599
+ * Replay: not declared; an attempt with an unknown result is not retried.
600
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamResourceNotFound`, `Auth_AuthProtectedResource`, `Auth_IamTenantRevisionConflict`, `Internal_PreconditionFailed`, `Product_CapabilityUnavailable`.
601
+ *
602
+ * @param trn IAM resource TRN in the route path
603
+ * @param body The request body.
604
+ * @param options Call options.
605
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
606
+ */
607
+ accessKeyIssue(trn, body, options) {
608
+ return this.#engine.call(OPERATIONS.iam_service_account_access_key_issue, { path: `/service-accounts/${encodePathParam(trn)}/access-keys`, body, primaryResourceTrn: trn }, options);
609
+ }
610
+ /**
611
+ * List ServiceAccount access keys
612
+ *
613
+ * List non-secret access-key metadata for one ServiceAccount occurrence
614
+ *
615
+ * List non-secret credential metadata for the current ServiceAccount occurrence.
616
+ *
617
+ * Replay: has no effect; retried after an attempt with an unknown result.
618
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`.
619
+ *
620
+ * @param trn IAM ServiceAccount TRN in the route path
621
+ * @param query The query, by wire names.
622
+ * @param options Call options.
623
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
624
+ */
625
+ accessKeyList(trn, query, options) {
626
+ return this.#engine.call(OPERATIONS.iam_service_account_access_key_list, { path: withQuery(`/service-accounts/${encodePathParam(trn)}/access-keys`, query), primaryResourceTrn: trn }, options);
627
+ }
628
+ /**
629
+ * Every item of `iam.service-account.access_key_list`, page after page, starting from `query`.
630
+ * Each page is one call with its own time budget and retries.
631
+ *
632
+ * @param trn IAM ServiceAccount TRN in the route path
633
+ * @param query The query of the first page; `limit` is the size of every page.
634
+ * @param options Call options of every page.
635
+ */
636
+ async *accessKeyListIter(trn, query, options) {
637
+ let offset = query?.offset ?? 0;
638
+ for (;;) {
639
+ const response = await this.accessKeyList(trn, { ...query, offset }, options);
640
+ const page = response;
641
+ yield* page.items;
642
+ if (!page.hasMore)
643
+ return;
644
+ offset += page.items.length;
645
+ }
646
+ }
647
+ /**
648
+ * Revoke one ServiceAccount access key
649
+ *
650
+ * Revoke service account access key
651
+ *
652
+ * Irreversibly revoke one canonical IAM credential without returning its secret.
653
+ *
654
+ * Replay: repeating it has no further effect; retried after an attempt with an unknown result.
655
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamResourceNotFound`, `Auth_AuthProtectedResource`, `Auth_IamTenantRevisionConflict`, `Internal_PreconditionFailed`, `Product_CapabilityUnavailable`.
656
+ *
657
+ * @param trn IAM ServiceAccount TRN in the route path
658
+ * @param credentialId Non-secret IAM access credential selector
659
+ * @param body The request body.
660
+ * @param options Call options.
661
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
662
+ */
663
+ accessKeyRevoke(trn, credentialId, body, options) {
664
+ return this.#engine.call(OPERATIONS.iam_service_account_access_key_revoke, { path: `/service-accounts/${encodePathParam(trn)}/access-keys/${encodePathParam(credentialId)}/revoke`, body, primaryResourceTrn: trn }, options);
665
+ }
666
+ /**
667
+ * Revoke ServiceAccount credentials
668
+ *
669
+ * Revoke service account credentials
670
+ *
671
+ * Advance the security epoch of one exact ServiceAccount occurrence; the client supplies its ResourceUid, never an epoch.
672
+ *
673
+ * Replay: not declared; an attempt with an unknown result is not retried.
674
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamResourceNotFound`, `Auth_AuthProtectedResource`, `Auth_IamTenantRevisionConflict`, `Internal_PreconditionFailed`, `Product_CapabilityUnavailable`.
675
+ *
676
+ * @param trn IAM resource TRN in the route path
677
+ * @param body The request body.
678
+ * @param options Call options.
679
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
680
+ */
681
+ credentialRevoke(trn, body, options) {
682
+ return this.#engine.call(OPERATIONS.iam_service_account_credential_revoke, { path: `/service-accounts/${encodePathParam(trn)}/credentials/revoke`, body, primaryResourceTrn: trn }, options);
683
+ }
684
+ /**
685
+ * List ServiceAccount resources
686
+ *
687
+ * List the tenant's reconciled ServiceAccount occurrences.
688
+ *
689
+ * Replay: has no effect; retried after an attempt with an unknown result.
690
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamTenantRevisionConflict`.
691
+ *
692
+ * @param query The query, by wire names.
693
+ * @param options Call options.
694
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
695
+ */
696
+ list(query, options) {
697
+ return this.#engine.call(OPERATIONS.iam_service_account_list, { path: withQuery(`/service-accounts`, query) }, options);
698
+ }
699
+ /**
700
+ * Every item of `iam.service-account.list`, page after page, starting from `query`.
701
+ * Each page is one call with its own time budget and retries.
702
+ *
703
+ * @param query The query of the first page; `limit` is the size of every page.
704
+ * @param options Call options of every page.
705
+ */
706
+ async *listIter(query, options) {
707
+ let cursor = query?.cursor;
708
+ for (;;) {
709
+ const response = await this.list({ ...query, cursor }, options);
710
+ const page = response.page;
711
+ yield* page.items;
712
+ if (page.nextCursor == null)
713
+ return;
714
+ cursor = page.nextCursor;
715
+ }
716
+ }
717
+ /**
718
+ * Read one ServiceAccount
719
+ *
720
+ * Read one reconciled ServiceAccount occurrence by TRN.
721
+ *
722
+ * Replay: has no effect; retried after an attempt with an unknown result.
723
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`.
724
+ *
725
+ * @param trn IAM resource TRN in the route path
726
+ * @param options Call options.
727
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
728
+ */
729
+ read(trn, options) {
730
+ return this.#engine.call(OPERATIONS.iam_service_account_read, { path: `/service-accounts/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
731
+ }
732
+ /**
733
+ * List ServiceAccount references
734
+ *
735
+ * List one bounded page of the active references that name one ServiceAccount; they do not block deleting it
736
+ *
737
+ * Replay: has no effect; retried after an attempt with an unknown result.
738
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`, `Auth_IamTenantRevisionConflict`.
739
+ *
740
+ * @param trn IAM resource TRN in the route path
741
+ * @param query The query, by wire names.
742
+ * @param options Call options.
743
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
744
+ */
745
+ referenceList(trn, query, options) {
746
+ return this.#engine.call(OPERATIONS.iam_service_account_reference_list, { path: withQuery(`/service-accounts/${encodePathParam(trn)}/references`, query), primaryResourceTrn: trn }, options);
747
+ }
748
+ /**
749
+ * Every item of `iam.service-account.reference_list`, page after page, starting from `query`.
750
+ * Each page is one call with its own time budget and retries.
751
+ *
752
+ * @param trn IAM resource TRN in the route path
753
+ * @param query The query of the first page; `limit` is the size of every page.
754
+ * @param options Call options of every page.
755
+ */
756
+ async *referenceListIter(trn, query, options) {
757
+ let cursor = query?.cursor;
758
+ for (;;) {
759
+ const response = await this.referenceList(trn, { ...query, cursor }, options);
760
+ const page = response.page;
761
+ yield* page.items;
762
+ if (page.nextCursor == null)
763
+ return;
764
+ cursor = page.nextCursor;
765
+ }
766
+ }
767
+ }
768
+ /** The `tenant` operations of the `iam` service. */
769
+ export class IamTenantResource {
770
+ #engine;
771
+ /** Not part of the public API. */
772
+ constructor(engine) {
773
+ this.#engine = engine;
774
+ }
775
+ /**
776
+ * Check service account access
777
+ *
778
+ * Check what one ServiceAccount is currently allowed against a list of requirements
779
+ *
780
+ * Check what one ServiceAccount is currently allowed against a list of operations and targets, through the same evaluator real authorization uses.
781
+ *
782
+ * Replay: has no effect; retried after an attempt with an unknown result.
783
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamTenantNotInitialized`.
784
+ *
785
+ * @param body The request body.
786
+ * @param options Call options.
787
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
788
+ */
789
+ accessCheck(body, options) {
790
+ return this.#engine.call(OPERATIONS.iam_tenant_access_check, { path: `/iam/access/check`, body }, options);
791
+ }
792
+ /**
793
+ * Generate service account access
794
+ *
795
+ * Calculate the account and access policy drafts for a list of requirements
796
+ *
797
+ * Calculate the account and access policy drafts for a list of requirements. Writes nothing; apply the drafts through the existing resource path with their preconditions.
798
+ *
799
+ * Replay: has no effect; retried after an attempt with an unknown result.
800
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamTenantNotInitialized`.
801
+ *
802
+ * @param body The request body.
803
+ * @param options Call options.
804
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
805
+ */
806
+ accessGenerate(body, options) {
807
+ return this.#engine.call(OPERATIONS.iam_tenant_access_generate, { path: `/iam/access/generate`, body }, options);
808
+ }
809
+ /**
810
+ * Explain current authorization
811
+ *
812
+ * Explain the authenticated caller's current authorization
813
+ *
814
+ * Explain the authenticated caller's current authorization for one operation and target; no caller-selected principal or snapshot is accepted.
815
+ *
816
+ * Replay: has no effect; retried after an attempt with an unknown result.
817
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamTenantNotInitialized`.
818
+ *
819
+ * @param body The request body.
820
+ * @param options Call options.
821
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
822
+ */
823
+ authorizationExplain(body, options) {
824
+ return this.#engine.call(OPERATIONS.iam_tenant_authorization_explain, { path: `/iam/explain`, body }, options);
825
+ }
826
+ /**
827
+ * Read IAM snapshot status
828
+ *
829
+ * Read the complete current IAM snapshot observation for audit and operations. Never a write precondition.
830
+ *
831
+ * Replay: has no effect; retried after an attempt with an unknown result.
832
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamTenantNotInitialized`.
833
+ *
834
+ * @param options Call options.
835
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
836
+ */
837
+ iamStatusRead(options) {
838
+ return this.#engine.call(OPERATIONS.iam_tenant_iam_status_read, { path: `/iam/status` }, options);
839
+ }
840
+ /**
841
+ * Rename tenant
842
+ *
843
+ * Replay: not idempotent; an attempt answered with `Internal_IdempotencyKeyReused` did not run.
844
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Internal_IdempotencyKeyReused`.
845
+ *
846
+ * @param body The request body.
847
+ * @param options Call options.
848
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
849
+ */
850
+ rename(body, options) {
851
+ return this.#engine.call(OPERATIONS.iam_tenant_rename, { path: `/tenant/display-name`, body }, options);
852
+ }
853
+ }
854
+ /** The `user` operations of the `iam` service. */
855
+ export class IamUserResource {
856
+ #engine;
857
+ /** Not part of the public API. */
858
+ constructor(engine) {
859
+ this.#engine = engine;
860
+ }
861
+ /**
862
+ * List IAM User access grants
863
+ *
864
+ * List one bounded page of the access grants that apply to one IAM User
865
+ *
866
+ * Replay: has no effect; retried after an attempt with an unknown result.
867
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`, `Auth_IamTenantRevisionConflict`.
868
+ *
869
+ * @param trn IAM User TRN in the route path
870
+ * @param query The query, by wire names.
871
+ * @param options Call options.
872
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
873
+ */
874
+ accessGrantList(trn, query, options) {
875
+ return this.#engine.call(OPERATIONS.iam_user_access_grant_list, { path: withQuery(`/users/${encodePathParam(trn)}/access-grants`, query), primaryResourceTrn: trn }, options);
876
+ }
877
+ /**
878
+ * Every item of `iam.user.access_grant_list`, page after page, starting from `query`.
879
+ * Each page is one call with its own time budget and retries.
880
+ *
881
+ * @param trn IAM User TRN in the route path
882
+ * @param query The query of the first page; `limit` is the size of every page.
883
+ * @param options Call options of every page.
884
+ */
885
+ async *accessGrantListIter(trn, query, options) {
886
+ let cursor = query?.cursor;
887
+ for (;;) {
888
+ const response = await this.accessGrantList(trn, { ...query, cursor }, options);
889
+ const page = response.page;
890
+ yield* page.items;
891
+ if (page.nextCursor == null)
892
+ return;
893
+ cursor = page.nextCursor;
894
+ }
895
+ }
896
+ /**
897
+ * Activate IAM User
898
+ *
899
+ * Consume an activation proof and activate one pending IAM User
900
+ *
901
+ * Replay: not declared; an attempt with an unknown result is not retried.
902
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamAuthenticationProofInvalid`, `Auth_IamPasswordPolicyViolation`, `Internal_RateLimited`, `Product_CapabilityUnavailable`.
903
+ *
904
+ * @param tenantId Untrusted Tenant routing hint verified against IAM proof state
905
+ * @param body The request body.
906
+ * @param options Call options.
907
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
908
+ */
909
+ activate(tenantId, body, options) {
910
+ return this.#engine.call(OPERATIONS.iam_user_activate, { path: `/tenants/${encodePathParam(tenantId)}/authentication/activation/password`, body }, options);
911
+ }
912
+ /**
913
+ * Reissue IAM User activation
914
+ *
915
+ * Reissue user activation
916
+ *
917
+ * Replay: not declared; an attempt with an unknown result is not retried.
918
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamUserStateConflict`, `Internal_PreconditionFailed`, `Internal_IdempotencyKeyReused`.
919
+ *
920
+ * @param trn IAM User TRN in the route path
921
+ * @param body The request body.
922
+ * @param options Call options.
923
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
924
+ */
925
+ activationReissue(trn, body, options) {
926
+ return this.#engine.call(OPERATIONS.iam_user_activation_reissue, { path: `/users/${encodePathParam(trn)}/activation/reissue`, body, primaryResourceTrn: trn }, options);
927
+ }
928
+ /**
929
+ * Create pending IAM User
930
+ *
931
+ * Create pending user
932
+ *
933
+ * Replay: not declared; an attempt with an unknown result is not retried.
934
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_UserAlreadyExists`, `Auth_IamTenantRevisionConflict`, `Internal_IdempotencyKeyReused`, `License_UserCapacityExceeded`.
935
+ *
936
+ * @param body The request body.
937
+ * @param options Call options.
938
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
939
+ */
940
+ create(body, options) {
941
+ return this.#engine.call(OPERATIONS.iam_user_create, { path: `/users`, body }, options);
942
+ }
943
+ /**
944
+ * Revoke IAM User credentials
945
+ *
946
+ * Revoke user credentials
947
+ *
948
+ * Replay: not declared; an attempt with an unknown result is not retried.
949
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamUserStateConflict`, `Internal_PreconditionFailed`, `Internal_IdempotencyKeyReused`.
950
+ *
951
+ * @param trn IAM User TRN in the route path
952
+ * @param body The request body.
953
+ * @param options Call options.
954
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
955
+ */
956
+ credentialRevoke(trn, body, options) {
957
+ return this.#engine.call(OPERATIONS.iam_user_credential_revoke, { path: `/users/${encodePathParam(trn)}/credentials/revoke`, body, primaryResourceTrn: trn }, options);
958
+ }
959
+ /**
960
+ * List current IAM User access grants
961
+ *
962
+ * List one bounded page of the access grants that apply to the authenticated IAM User
963
+ *
964
+ * Replay: has no effect; retried after an attempt with an unknown result.
965
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`, `Auth_IamTenantRevisionConflict`.
966
+ *
967
+ * @param query The query, by wire names.
968
+ * @param options Call options.
969
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
970
+ */
971
+ currentAccessGrantList(query, options) {
972
+ return this.#engine.call(OPERATIONS.iam_user_current_access_grant_list, { path: withQuery(`/users/current/access-grants`, query) }, options);
973
+ }
974
+ /**
975
+ * Every item of `iam.user.current_access_grant_list`, page after page, starting from `query`.
976
+ * Each page is one call with its own time budget and retries.
977
+ *
978
+ * @param query The query of the first page; `limit` is the size of every page.
979
+ * @param options Call options of every page.
980
+ */
981
+ async *currentAccessGrantListIter(query, options) {
982
+ let cursor = query?.cursor;
983
+ for (;;) {
984
+ const response = await this.currentAccessGrantList({ ...query, cursor }, options);
985
+ const page = response.page;
986
+ yield* page.items;
987
+ if (page.nextCursor == null)
988
+ return;
989
+ cursor = page.nextCursor;
990
+ }
991
+ }
992
+ /**
993
+ * Read current IAM User
994
+ *
995
+ * Read the authenticated IAM User
996
+ *
997
+ * Replay: has no effect; retried after an attempt with an unknown result.
998
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`.
999
+ *
1000
+ * @param options Call options.
1001
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1002
+ */
1003
+ currentRead(options) {
1004
+ return this.#engine.call(OPERATIONS.iam_user_current_read, { path: `/users/current` }, options);
1005
+ }
1006
+ /**
1007
+ * Disable IAM User
1008
+ *
1009
+ * Disable user
1010
+ *
1011
+ * Replay: not declared; an attempt with an unknown result is not retried.
1012
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamUserStateConflict`, `Auth_IamLastHumanAdmin`, `Auth_IamTenantRevisionConflict`, `Internal_PreconditionFailed`, `Internal_IdempotencyKeyReused`, `License_UserCapacityExceeded`.
1013
+ *
1014
+ * @param trn IAM User TRN in the route path
1015
+ * @param body The request body.
1016
+ * @param options Call options.
1017
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1018
+ */
1019
+ disable(trn, body, options) {
1020
+ return this.#engine.call(OPERATIONS.iam_user_disable, { path: `/users/${encodePathParam(trn)}/disable`, body, primaryResourceTrn: trn }, options);
1021
+ }
1022
+ /**
1023
+ * Enable IAM User
1024
+ *
1025
+ * Enable user
1026
+ *
1027
+ * Replay: not declared; an attempt with an unknown result is not retried.
1028
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamUserStateConflict`, `Auth_IamLastHumanAdmin`, `Auth_IamTenantRevisionConflict`, `Internal_PreconditionFailed`, `Internal_IdempotencyKeyReused`, `License_UserCapacityExceeded`.
1029
+ *
1030
+ * @param trn IAM User TRN in the route path
1031
+ * @param body The request body.
1032
+ * @param options Call options.
1033
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1034
+ */
1035
+ enable(trn, body, options) {
1036
+ return this.#engine.call(OPERATIONS.iam_user_enable, { path: `/users/${encodePathParam(trn)}/enable`, body, primaryResourceTrn: trn }, options);
1037
+ }
1038
+ /**
1039
+ * Disable external identity
1040
+ *
1041
+ * Irreversibly disable one proof-created ExternalUserBinding occurrence
1042
+ *
1043
+ * Replay: repeating it has no further effect; retried after an attempt with an unknown result.
1044
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_UserNotFound`, `Auth_IamResourceNotFound`, `Auth_IamLastHumanAdmin`, `Internal_PreconditionFailed`.
1045
+ *
1046
+ * @param trn IAM User TRN in the route path
1047
+ * @param bindingResourceUid Non-reusable ExternalUserBinding occurrence identifier
1048
+ * @param options Call options.
1049
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1050
+ */
1051
+ externalIdentityDisable(trn, bindingResourceUid, options) {
1052
+ return this.#engine.call(OPERATIONS.iam_user_external_identity_disable, { path: `/users/${encodePathParam(trn)}/external-identities/${encodePathParam(bindingResourceUid)}/disable`, primaryResourceTrn: trn }, options);
1053
+ }
1054
+ /**
1055
+ * Start external identity link
1056
+ *
1057
+ * Start one proof-bound OIDC link attempt for an exact IAM User occurrence
1058
+ *
1059
+ * Replay: not declared; an attempt with an unknown result is not retried.
1060
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_UserNotFound`, `Auth_IamResourceNotFound`, `Auth_IamAuthenticationProofInvalid`, `Internal_RateLimited`.
1061
+ *
1062
+ * @param trn IAM User TRN in the route path
1063
+ * @param body The request body.
1064
+ * @param options Call options.
1065
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1066
+ */
1067
+ externalIdentityLinkStart(trn, body, options) {
1068
+ return this.#engine.call(OPERATIONS.iam_user_external_identity_link_start, { path: `/users/${encodePathParam(trn)}/external-identities/oidc/link`, body, primaryResourceTrn: trn }, options);
1069
+ }
1070
+ /**
1071
+ * List external identities
1072
+ *
1073
+ * List proof-created external identities for one exact IAM User
1074
+ *
1075
+ * Replay: has no effect; retried after an attempt with an unknown result.
1076
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_UserNotFound`.
1077
+ *
1078
+ * @param trn IAM User TRN in the route path
1079
+ * @param options Call options.
1080
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1081
+ */
1082
+ externalIdentityList(trn, options) {
1083
+ return this.#engine.call(OPERATIONS.iam_user_external_identity_list, { path: `/users/${encodePathParam(trn)}/external-identities`, primaryResourceTrn: trn }, options);
1084
+ }
1085
+ /**
1086
+ * List IAM Users
1087
+ *
1088
+ * List one bounded page of managed IAM Users
1089
+ *
1090
+ * Replay: has no effect; retried after an attempt with an unknown result.
1091
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamTenantRevisionConflict`.
1092
+ *
1093
+ * @param query The query, by wire names.
1094
+ * @param options Call options.
1095
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1096
+ */
1097
+ list(query, options) {
1098
+ return this.#engine.call(OPERATIONS.iam_user_list, { path: withQuery(`/users`, query) }, options);
1099
+ }
1100
+ /**
1101
+ * Every item of `iam.user.list`, page after page, starting from `query`.
1102
+ * Each page is one call with its own time budget and retries.
1103
+ *
1104
+ * @param query The query of the first page; `limit` is the size of every page.
1105
+ * @param options Call options of every page.
1106
+ */
1107
+ async *listIter(query, options) {
1108
+ let cursor = query?.cursor;
1109
+ for (;;) {
1110
+ const response = await this.list({ ...query, cursor }, options);
1111
+ const page = response.page;
1112
+ yield* page.items;
1113
+ if (page.nextCursor == null)
1114
+ return;
1115
+ cursor = page.nextCursor;
1116
+ }
1117
+ }
1118
+ /**
1119
+ * Sign out
1120
+ *
1121
+ * Revoke the authenticated User's current IAM credential
1122
+ *
1123
+ * Replay: not declared; an attempt with an unknown result is not retried.
1124
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamAuthenticationProofInvalid`.
1125
+ *
1126
+ * @param options Call options.
1127
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1128
+ */
1129
+ logout(options) {
1130
+ return this.#engine.call(OPERATIONS.iam_user_logout, { path: `/users/current/logout` }, options);
1131
+ }
1132
+ /**
1133
+ * Change password
1134
+ *
1135
+ * Replace the authenticated User password and its current credential
1136
+ *
1137
+ * Replay: not declared; an attempt with an unknown result is not retried.
1138
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamAuthenticationProofInvalid`, `Auth_IamPasswordPolicyViolation`, `Internal_RateLimited`, `Product_CapabilityUnavailable`.
1139
+ *
1140
+ * @param body The request body.
1141
+ * @param options Call options.
1142
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1143
+ */
1144
+ passwordReplace(body, options) {
1145
+ return this.#engine.call(OPERATIONS.iam_user_password_replace, { path: `/users/current/password`, body }, options);
1146
+ }
1147
+ /**
1148
+ * Start password reset
1149
+ *
1150
+ * Request user password reset
1151
+ *
1152
+ * Replay: not declared; an attempt with an unknown result is not retried.
1153
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamUserStateConflict`, `Internal_PreconditionFailed`, `Internal_IdempotencyKeyReused`.
1154
+ *
1155
+ * @param trn IAM User TRN in the route path
1156
+ * @param body The request body.
1157
+ * @param options Call options.
1158
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1159
+ */
1160
+ passwordResetStart(trn, body, options) {
1161
+ return this.#engine.call(OPERATIONS.iam_user_password_reset_start, { path: `/users/${encodePathParam(trn)}/password-reset`, body, primaryResourceTrn: trn }, options);
1162
+ }
1163
+ /**
1164
+ * Read IAM User
1165
+ *
1166
+ * Read one exact managed IAM User
1167
+ *
1168
+ * Replay: has no effect; retried after an attempt with an unknown result.
1169
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_UserNotFound`, `Auth_IamTenantRevisionConflict`.
1170
+ *
1171
+ * @param trn IAM User TRN in the route path
1172
+ * @param options Call options.
1173
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1174
+ */
1175
+ read(trn, options) {
1176
+ return this.#engine.call(OPERATIONS.iam_user_read, { path: `/users/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
1177
+ }
1178
+ /**
1179
+ * List IAM User removal blockers
1180
+ *
1181
+ * List one bounded page of the active references that block retiring one IAM User
1182
+ *
1183
+ * Replay: has no effect; retried after an attempt with an unknown result.
1184
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Auth_IamResourceNotFound`, `Auth_IamTenantRevisionConflict`.
1185
+ *
1186
+ * @param trn IAM User TRN in the route path
1187
+ * @param query The query, by wire names.
1188
+ * @param options Call options.
1189
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1190
+ */
1191
+ removalBlockerList(trn, query, options) {
1192
+ return this.#engine.call(OPERATIONS.iam_user_removal_blocker_list, { path: withQuery(`/users/${encodePathParam(trn)}/removal-blockers`, query), primaryResourceTrn: trn }, options);
1193
+ }
1194
+ /**
1195
+ * Every item of `iam.user.removal_blocker_list`, page after page, starting from `query`.
1196
+ * Each page is one call with its own time budget and retries.
1197
+ *
1198
+ * @param trn IAM User TRN in the route path
1199
+ * @param query The query of the first page; `limit` is the size of every page.
1200
+ * @param options Call options of every page.
1201
+ */
1202
+ async *removalBlockerListIter(trn, query, options) {
1203
+ let cursor = query?.cursor;
1204
+ for (;;) {
1205
+ const response = await this.removalBlockerList(trn, { ...query, cursor }, options);
1206
+ const page = response.page;
1207
+ yield* page.items;
1208
+ if (page.nextCursor == null)
1209
+ return;
1210
+ cursor = page.nextCursor;
1211
+ }
1212
+ }
1213
+ /**
1214
+ * Retire IAM User
1215
+ *
1216
+ * Retire user
1217
+ *
1218
+ * Replay: not declared; an attempt with an unknown result is not retried.
1219
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_DatabaseError`, `Internal_DatabaseConnectionError`, `Internal_InvalidState`, `Internal_Conflict`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Auth_IamUserStateConflict`, `Auth_IamLastHumanAdmin`, `Auth_IamTenantRevisionConflict`, `Declarative_RemovalBlocked`, `Internal_PreconditionFailed`, `Internal_IdempotencyKeyReused`.
1220
+ *
1221
+ * @param trn IAM User TRN in the route path
1222
+ * @param body The request body.
1223
+ * @param options Call options.
1224
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
1225
+ */
1226
+ retire(trn, body, options) {
1227
+ return this.#engine.call(OPERATIONS.iam_user_retire, { path: `/users/${encodePathParam(trn)}/retire`, body, primaryResourceTrn: trn }, options);
1228
+ }
1229
+ }
1230
+ //# sourceMappingURL=service.js.map