@databricks/sdk-scim 0.34.0 → 0.35.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/v1/model.js CHANGED
@@ -1,901 +1,730 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { z } from 'zod';
1
+ import { z } from "zod";
2
+
3
+ //#region src/v1/model.ts
3
4
  const jsonValueSchema = z.lazy(() => z.union([
4
- z.null(),
5
- z.number(),
6
- z.string(),
7
- z.boolean(),
8
- z.record(z.string(), jsonValueSchema),
9
- z.array(jsonValueSchema),
5
+ z.null(),
6
+ z.number(),
7
+ z.string(),
8
+ z.boolean(),
9
+ z.record(z.string(), jsonValueSchema),
10
+ z.array(jsonValueSchema)
10
11
  ]));
11
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
12
- export const GetSortOrder = {
13
- GET_SORT_ORDER_UNSPECIFIED: 'GET_SORT_ORDER_UNSPECIFIED',
14
- ASCENDING: 'ascending',
15
- DESCENDING: 'descending',
12
+ const GetSortOrder = {
13
+ GET_SORT_ORDER_UNSPECIFIED: "GET_SORT_ORDER_UNSPECIFIED",
14
+ ASCENDING: "ascending",
15
+ DESCENDING: "descending"
16
16
  };
17
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
18
- export const GroupSchema = {
19
- GROUP_SCHEMA_UNSPECIFIED: 'GROUP_SCHEMA_UNSPECIFIED',
20
- URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: 'urn:ietf:params:scim:schemas:core:2.0:Group',
17
+ const GroupSchema = {
18
+ GROUP_SCHEMA_UNSPECIFIED: "GROUP_SCHEMA_UNSPECIFIED",
19
+ URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: "urn:ietf:params:scim:schemas:core:2.0:Group"
21
20
  };
22
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
23
- export const ListResponseSchema = {
24
- LIST_RESPONSE_SCHEMA_UNSPECIFIED: 'LIST_RESPONSE_SCHEMA_UNSPECIFIED',
25
- URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_LIST_RESPONSE: 'urn:ietf:params:scim:api:messages:2.0:ListResponse',
21
+ const ListResponseSchema = {
22
+ LIST_RESPONSE_SCHEMA_UNSPECIFIED: "LIST_RESPONSE_SCHEMA_UNSPECIFIED",
23
+ URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_LIST_RESPONSE: "urn:ietf:params:scim:api:messages:2.0:ListResponse"
26
24
  };
27
25
  /** Type of patch operation. */
28
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
29
- export const PatchOp = {
30
- PATCH_OP_UNSPECIFIED: 'PATCH_OP_UNSPECIFIED',
31
- ADD: 'add',
32
- REMOVE: 'remove',
33
- REPLACE: 'replace',
26
+ const PatchOp = {
27
+ PATCH_OP_UNSPECIFIED: "PATCH_OP_UNSPECIFIED",
28
+ ADD: "add",
29
+ REMOVE: "remove",
30
+ REPLACE: "replace"
34
31
  };
35
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
36
- export const PatchSchema = {
37
- PATCH_SCHEMA_UNSPECIFIED: 'PATCH_SCHEMA_UNSPECIFIED',
38
- URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_PATCH_OP: 'urn:ietf:params:scim:api:messages:2.0:PatchOp',
32
+ const PatchSchema = {
33
+ PATCH_SCHEMA_UNSPECIFIED: "PATCH_SCHEMA_UNSPECIFIED",
34
+ URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_PATCH_OP: "urn:ietf:params:scim:api:messages:2.0:PatchOp"
39
35
  };
40
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
41
- export const ServicePrincipalSchema = {
42
- SERVICE_PRINCIPAL_SCHEMA_UNSPECIFIED: 'SERVICE_PRINCIPAL_SCHEMA_UNSPECIFIED',
43
- URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_SERVICE_PRINCIPAL: 'urn:ietf:params:scim:schemas:core:2.0:ServicePrincipal',
36
+ const ServicePrincipalSchema = {
37
+ SERVICE_PRINCIPAL_SCHEMA_UNSPECIFIED: "SERVICE_PRINCIPAL_SCHEMA_UNSPECIFIED",
38
+ URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_SERVICE_PRINCIPAL: "urn:ietf:params:scim:schemas:core:2.0:ServicePrincipal"
44
39
  };
45
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
46
- export const UserSchema = {
47
- USER_SCHEMA_UNSPECIFIED: 'USER_SCHEMA_UNSPECIFIED',
48
- URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_USER: 'urn:ietf:params:scim:schemas:core:2.0:User',
49
- URN_IETF_PARAMS_SCIM_SCHEMAS_EXTENSION_WORKSPACE_2_0_USER: 'urn:ietf:params:scim:schemas:extension:workspace:2.0:User',
40
+ const UserSchema = {
41
+ USER_SCHEMA_UNSPECIFIED: "USER_SCHEMA_UNSPECIFIED",
42
+ URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_USER: "urn:ietf:params:scim:schemas:core:2.0:User",
43
+ URN_IETF_PARAMS_SCIM_SCHEMAS_EXTENSION_WORKSPACE_2_0_USER: "urn:ietf:params:scim:schemas:extension:workspace:2.0:User"
50
44
  };
51
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
52
- export const AccountGetSortOrder_GetSortOrder = {
53
- GET_SORT_ORDER_UNSPECIFIED: 'GET_SORT_ORDER_UNSPECIFIED',
54
- ASCENDING: 'ascending',
55
- DESCENDING: 'descending',
45
+ const AccountGetSortOrder_GetSortOrder = {
46
+ GET_SORT_ORDER_UNSPECIFIED: "GET_SORT_ORDER_UNSPECIFIED",
47
+ ASCENDING: "ascending",
48
+ DESCENDING: "descending"
56
49
  };
57
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
58
- export const AccountListSort_Order = {
59
- ORDER_UNSPECIFIED: 'ORDER_UNSPECIFIED',
60
- ASCENDING: 'ascending',
61
- DESCENDING: 'descending',
50
+ const AccountListSort_Order = {
51
+ ORDER_UNSPECIFIED: "ORDER_UNSPECIFIED",
52
+ ASCENDING: "ascending",
53
+ DESCENDING: "descending"
62
54
  };
63
55
  /** Type of patch operation. */
64
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
65
- export const AccountPatchOp_PatchOp = {
66
- PATCH_OP_UNSPECIFIED: 'PATCH_OP_UNSPECIFIED',
67
- ADD: 'add',
68
- REMOVE: 'remove',
69
- REPLACE: 'replace',
56
+ const AccountPatchOp_PatchOp = {
57
+ PATCH_OP_UNSPECIFIED: "PATCH_OP_UNSPECIFIED",
58
+ ADD: "add",
59
+ REMOVE: "remove",
60
+ REPLACE: "replace"
70
61
  };
71
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
72
- export const AccountPatchSchema_PatchSchema = {
73
- PATCH_SCHEMA_UNSPECIFIED: 'PATCH_SCHEMA_UNSPECIFIED',
74
- URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_PATCH_OP: 'urn:ietf:params:scim:api:messages:2.0:PatchOp',
62
+ const AccountPatchSchema_PatchSchema = {
63
+ PATCH_SCHEMA_UNSPECIFIED: "PATCH_SCHEMA_UNSPECIFIED",
64
+ URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_PATCH_OP: "urn:ietf:params:scim:api:messages:2.0:PatchOp"
75
65
  };
76
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
77
- export const ListSort_Order = {
78
- ORDER_UNSPECIFIED: 'ORDER_UNSPECIFIED',
79
- ASCENDING: 'ascending',
80
- DESCENDING: 'descending',
66
+ const ListSort_Order = {
67
+ ORDER_UNSPECIFIED: "ORDER_UNSPECIFIED",
68
+ ASCENDING: "ascending",
69
+ DESCENDING: "descending"
81
70
  };
82
71
  /** Permission level */
83
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
84
- export const PasswordPermission_Level = {
85
- LEVEL_UNSPECIFIED: 'LEVEL_UNSPECIFIED',
86
- CAN_USE: 'CAN_USE',
72
+ const PasswordPermission_Level = {
73
+ LEVEL_UNSPECIFIED: "LEVEL_UNSPECIFIED",
74
+ CAN_USE: "CAN_USE"
87
75
  };
88
- export const unmarshalAccountComplexValueSchema = z
89
- .object({
90
- display: z.string().optional(),
91
- primary: z.boolean().optional(),
92
- $ref: z.string().optional(),
93
- type: z.string().optional(),
94
- value: z.string().optional(),
95
- })
96
- .transform(d => ({
97
- display: d.display,
98
- primary: d.primary,
99
- ref: d.$ref,
100
- type: d.type,
101
- value: d.value,
102
- }));
103
- export const unmarshalAccountGroupSchema = z
104
- .object({
105
- displayName: z.string().optional(),
106
- externalId: z.string().optional(),
107
- id: z.string().optional(),
108
- members: z
109
- .array(z.lazy(() => unmarshalAccountComplexValueSchema))
110
- .optional(),
111
- meta: z.lazy(() => unmarshalAccountResourceMetaSchema).optional(),
112
- roles: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
113
- account_id: z.string().optional(),
114
- })
115
- .transform(d => ({
116
- displayName: d.displayName,
117
- externalId: d.externalId,
118
- id: d.id,
119
- members: d.members,
120
- meta: d.meta,
121
- roles: d.roles,
122
- accountId: d.account_id,
123
- }));
124
- export const unmarshalAccountNameSchema = z
125
- .object({
126
- familyName: z.string().optional(),
127
- givenName: z.string().optional(),
128
- })
129
- .transform(d => ({
130
- familyName: d.familyName,
131
- givenName: d.givenName,
132
- }));
133
- export const unmarshalAccountResourceMetaSchema = z
134
- .object({
135
- resourceType: z.string().optional(),
136
- })
137
- .transform(d => ({
138
- resourceType: d.resourceType,
139
- }));
140
- export const unmarshalAccountServicePrincipalSchema = z
141
- .object({
142
- active: z.boolean().optional(),
143
- applicationId: z.string().optional(),
144
- displayName: z.string().optional(),
145
- externalId: z.string().optional(),
146
- id: z.string().optional(),
147
- roles: z
148
- .array(z.lazy(() => unmarshalAccountComplexValueSchema))
149
- .optional(),
150
- account_id: z.string().optional(),
151
- })
152
- .transform(d => ({
153
- active: d.active,
154
- applicationId: d.applicationId,
155
- displayName: d.displayName,
156
- externalId: d.externalId,
157
- id: d.id,
158
- roles: d.roles,
159
- accountId: d.account_id,
160
- }));
161
- export const unmarshalAccountUserSchema = z
162
- .object({
163
- active: z.boolean().optional(),
164
- displayName: z.string().optional(),
165
- emails: z
166
- .array(z.lazy(() => unmarshalAccountComplexValueSchema))
167
- .optional(),
168
- externalId: z.string().optional(),
169
- id: z.string().optional(),
170
- name: z.lazy(() => unmarshalAccountNameSchema).optional(),
171
- roles: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
172
- userName: z.string().optional(),
173
- account_id: z.string().optional(),
174
- })
175
- .transform(d => ({
176
- active: d.active,
177
- displayName: d.displayName,
178
- emails: d.emails,
179
- externalId: d.externalId,
180
- id: d.id,
181
- name: d.name,
182
- roles: d.roles,
183
- userName: d.userName,
184
- accountId: d.account_id,
185
- }));
186
- export const unmarshalComplexValueSchema = z
187
- .object({
188
- display: z.string().optional(),
189
- primary: z.boolean().optional(),
190
- $ref: z.string().optional(),
191
- type: z.string().optional(),
192
- value: z.string().optional(),
193
- })
194
- .transform(d => ({
195
- display: d.display,
196
- primary: d.primary,
197
- ref: d.$ref,
198
- type: d.type,
199
- value: d.value,
200
- }));
201
- export const unmarshalGetPasswordPermissionLevelsResponseSchema = z
202
- .object({
203
- permission_levels: z
204
- .array(z.lazy(() => unmarshalPasswordPermissionsDescriptionSchema))
205
- .optional(),
206
- })
207
- .transform(d => ({
208
- permissionLevels: d.permission_levels,
209
- }));
210
- export const unmarshalGroupSchema = z
211
- .object({
212
- displayName: z.string().optional(),
213
- entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
214
- externalId: z.string().optional(),
215
- groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
216
- id: z.string().optional(),
217
- members: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
218
- meta: z.lazy(() => unmarshalResourceMetaSchema).optional(),
219
- roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
220
- schemas: z.array(z.string()).optional(),
221
- })
222
- .transform(d => ({
223
- displayName: d.displayName,
224
- entitlements: d.entitlements,
225
- externalId: d.externalId,
226
- groups: d.groups,
227
- id: d.id,
228
- members: d.members,
229
- meta: d.meta,
230
- roles: d.roles,
231
- schemas: d.schemas,
232
- }));
233
- export const unmarshalListAccountGroupsResponseSchema = z
234
- .object({
235
- itemsPerPage: z.number().optional(),
236
- Resources: z.array(z.lazy(() => unmarshalAccountGroupSchema)).optional(),
237
- startIndex: z
238
- .union([z.number(), z.bigint()])
239
- .transform(v => BigInt(v))
240
- .optional(),
241
- totalResults: z.number().optional(),
242
- })
243
- .transform(d => ({
244
- itemsPerPage: d.itemsPerPage,
245
- resources: d.Resources,
246
- startIndex: d.startIndex,
247
- totalResults: d.totalResults,
248
- }));
249
- export const unmarshalListAccountServicePrincipalsResponseSchema = z
250
- .object({
251
- itemsPerPage: z.number().optional(),
252
- Resources: z
253
- .array(z.lazy(() => unmarshalAccountServicePrincipalSchema))
254
- .optional(),
255
- startIndex: z
256
- .union([z.number(), z.bigint()])
257
- .transform(v => BigInt(v))
258
- .optional(),
259
- totalResults: z.number().optional(),
260
- })
261
- .transform(d => ({
262
- itemsPerPage: d.itemsPerPage,
263
- resources: d.Resources,
264
- startIndex: d.startIndex,
265
- totalResults: d.totalResults,
266
- }));
267
- export const unmarshalListAccountUsersResponseSchema = z
268
- .object({
269
- itemsPerPage: z.number().optional(),
270
- Resources: z.array(z.lazy(() => unmarshalAccountUserSchema)).optional(),
271
- startIndex: z
272
- .union([z.number(), z.bigint()])
273
- .transform(v => BigInt(v))
274
- .optional(),
275
- totalResults: z.number().optional(),
276
- })
277
- .transform(d => ({
278
- itemsPerPage: d.itemsPerPage,
279
- resources: d.Resources,
280
- startIndex: d.startIndex,
281
- totalResults: d.totalResults,
282
- }));
283
- export const unmarshalListGroupsResponseSchema = z
284
- .object({
285
- itemsPerPage: z.number().optional(),
286
- Resources: z.array(z.lazy(() => unmarshalGroupSchema)).optional(),
287
- schemas: z.array(z.string()).optional(),
288
- startIndex: z
289
- .union([z.number(), z.bigint()])
290
- .transform(v => BigInt(v))
291
- .optional(),
292
- totalResults: z.number().optional(),
293
- })
294
- .transform(d => ({
295
- itemsPerPage: d.itemsPerPage,
296
- resources: d.Resources,
297
- schemas: d.schemas,
298
- startIndex: d.startIndex,
299
- totalResults: d.totalResults,
300
- }));
301
- export const unmarshalListServicePrincipalResponseSchema = z
302
- .object({
303
- itemsPerPage: z.number().optional(),
304
- Resources: z
305
- .array(z.lazy(() => unmarshalServicePrincipalSchema))
306
- .optional(),
307
- schemas: z.array(z.string()).optional(),
308
- startIndex: z
309
- .union([z.number(), z.bigint()])
310
- .transform(v => BigInt(v))
311
- .optional(),
312
- totalResults: z.number().optional(),
313
- })
314
- .transform(d => ({
315
- itemsPerPage: d.itemsPerPage,
316
- resources: d.Resources,
317
- schemas: d.schemas,
318
- startIndex: d.startIndex,
319
- totalResults: d.totalResults,
320
- }));
321
- export const unmarshalListUsersResponseSchema = z
322
- .object({
323
- itemsPerPage: z.number().optional(),
324
- Resources: z.array(z.lazy(() => unmarshalUserSchema)).optional(),
325
- schemas: z.array(z.string()).optional(),
326
- startIndex: z
327
- .union([z.number(), z.bigint()])
328
- .transform(v => BigInt(v))
329
- .optional(),
330
- totalResults: z.number().optional(),
331
- })
332
- .transform(d => ({
333
- itemsPerPage: d.itemsPerPage,
334
- resources: d.Resources,
335
- schemas: d.schemas,
336
- startIndex: d.startIndex,
337
- totalResults: d.totalResults,
338
- }));
339
- export const unmarshalNameSchema = z
340
- .object({
341
- familyName: z.string().optional(),
342
- givenName: z.string().optional(),
343
- })
344
- .transform(d => ({
345
- familyName: d.familyName,
346
- givenName: d.givenName,
347
- }));
348
- export const unmarshalPasswordAccessControlResponseSchema = z
349
- .object({
350
- all_permissions: z
351
- .array(z.lazy(() => unmarshalPasswordPermissionSchema))
352
- .optional(),
353
- display_name: z.string().optional(),
354
- group_name: z.string().optional(),
355
- service_principal_name: z.string().optional(),
356
- user_name: z.string().optional(),
357
- })
358
- .transform(d => ({
359
- allPermissions: d.all_permissions,
360
- displayName: d.display_name,
361
- groupName: d.group_name,
362
- servicePrincipalName: d.service_principal_name,
363
- userName: d.user_name,
364
- }));
365
- export const unmarshalPasswordPermissionSchema = z
366
- .object({
367
- inherited: z.boolean().optional(),
368
- inherited_from_object: z.array(z.string()).optional(),
369
- permission_level: z.string().optional(),
370
- })
371
- .transform(d => ({
372
- inherited: d.inherited,
373
- inheritedFromObject: d.inherited_from_object,
374
- permissionLevel: d.permission_level,
375
- }));
376
- export const unmarshalPasswordPermissionsSchema = z
377
- .object({
378
- access_control_list: z
379
- .array(z.lazy(() => unmarshalPasswordAccessControlResponseSchema))
380
- .optional(),
381
- object_id: z.string().optional(),
382
- object_type: z.string().optional(),
383
- })
384
- .transform(d => ({
385
- accessControlList: d.access_control_list,
386
- objectId: d.object_id,
387
- objectType: d.object_type,
388
- }));
389
- export const unmarshalPasswordPermissionsDescriptionSchema = z
390
- .object({
391
- description: z.string().optional(),
392
- permission_level: z.string().optional(),
393
- })
394
- .transform(d => ({
395
- description: d.description,
396
- permissionLevel: d.permission_level,
397
- }));
398
- export const unmarshalResourceMetaSchema = z
399
- .object({
400
- resourceType: z.string().optional(),
401
- })
402
- .transform(d => ({
403
- resourceType: d.resourceType,
404
- }));
405
- export const unmarshalServicePrincipalSchema = z
406
- .object({
407
- active: z.boolean().optional(),
408
- applicationId: z.string().optional(),
409
- displayName: z.string().optional(),
410
- entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
411
- externalId: z.string().optional(),
412
- groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
413
- id: z.string().optional(),
414
- roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
415
- schemas: z.array(z.string()).optional(),
416
- })
417
- .transform(d => ({
418
- active: d.active,
419
- applicationId: d.applicationId,
420
- displayName: d.displayName,
421
- entitlements: d.entitlements,
422
- externalId: d.externalId,
423
- groups: d.groups,
424
- id: d.id,
425
- roles: d.roles,
426
- schemas: d.schemas,
427
- }));
428
- export const unmarshalUserSchema = z
429
- .object({
430
- active: z.boolean().optional(),
431
- displayName: z.string().optional(),
432
- emails: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
433
- entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
434
- externalId: z.string().optional(),
435
- groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
436
- id: z.string().optional(),
437
- name: z.lazy(() => unmarshalNameSchema).optional(),
438
- roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
439
- schemas: z.array(z.string()).optional(),
440
- userName: z.string().optional(),
441
- })
442
- .transform(d => ({
443
- active: d.active,
444
- displayName: d.displayName,
445
- emails: d.emails,
446
- entitlements: d.entitlements,
447
- externalId: d.externalId,
448
- groups: d.groups,
449
- id: d.id,
450
- name: d.name,
451
- roles: d.roles,
452
- schemas: d.schemas,
453
- userName: d.userName,
454
- }));
455
- export const marshalAccountComplexValueSchema = z
456
- .object({
457
- display: z.string().optional(),
458
- primary: z.boolean().optional(),
459
- ref: z.string().optional(),
460
- type: z.string().optional(),
461
- value: z.string().optional(),
462
- })
463
- .transform(d => ({
464
- display: d.display,
465
- primary: d.primary,
466
- $ref: d.ref,
467
- type: d.type,
468
- value: d.value,
469
- }));
470
- export const marshalAccountNameSchema = z
471
- .object({
472
- familyName: z.string().optional(),
473
- givenName: z.string().optional(),
474
- })
475
- .transform(d => ({
476
- familyName: d.familyName,
477
- givenName: d.givenName,
478
- }));
479
- export const marshalAccountPatchSchema = z
480
- .object({
481
- op: z.string().optional(),
482
- path: z.string().optional(),
483
- value: jsonValueSchema.optional(),
484
- })
485
- .transform(d => ({
486
- op: d.op,
487
- path: d.path,
488
- value: d.value,
489
- }));
490
- export const marshalAccountResourceMetaSchema = z
491
- .object({
492
- resourceType: z.string().optional(),
493
- })
494
- .transform(d => ({
495
- resourceType: d.resourceType,
496
- }));
497
- export const marshalComplexValueSchema = z
498
- .object({
499
- display: z.string().optional(),
500
- primary: z.boolean().optional(),
501
- ref: z.string().optional(),
502
- type: z.string().optional(),
503
- value: z.string().optional(),
504
- })
505
- .transform(d => ({
506
- display: d.display,
507
- primary: d.primary,
508
- $ref: d.ref,
509
- type: d.type,
510
- value: d.value,
511
- }));
512
- export const marshalCreateAccountGroupRequestSchema = z
513
- .object({
514
- displayName: z.string().optional(),
515
- externalId: z.string().optional(),
516
- id: z.string().optional(),
517
- members: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
518
- meta: z.lazy(() => marshalAccountResourceMetaSchema).optional(),
519
- roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
520
- accountId: z.string().optional(),
521
- })
522
- .transform(d => ({
523
- displayName: d.displayName,
524
- externalId: d.externalId,
525
- id: d.id,
526
- members: d.members,
527
- meta: d.meta,
528
- roles: d.roles,
529
- account_id: d.accountId,
530
- }));
531
- export const marshalCreateAccountServicePrincipalRequestSchema = z
532
- .object({
533
- active: z.boolean().optional(),
534
- applicationId: z.string().optional(),
535
- displayName: z.string().optional(),
536
- externalId: z.string().optional(),
537
- id: z.string().optional(),
538
- roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
539
- accountId: z.string().optional(),
540
- })
541
- .transform(d => ({
542
- active: d.active,
543
- applicationId: d.applicationId,
544
- displayName: d.displayName,
545
- externalId: d.externalId,
546
- id: d.id,
547
- roles: d.roles,
548
- account_id: d.accountId,
549
- }));
550
- export const marshalCreateAccountUserRequestSchema = z
551
- .object({
552
- active: z.boolean().optional(),
553
- displayName: z.string().optional(),
554
- emails: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
555
- externalId: z.string().optional(),
556
- id: z.string().optional(),
557
- name: z.lazy(() => marshalAccountNameSchema).optional(),
558
- roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
559
- userName: z.string().optional(),
560
- accountId: z.string().optional(),
561
- })
562
- .transform(d => ({
563
- active: d.active,
564
- displayName: d.displayName,
565
- emails: d.emails,
566
- externalId: d.externalId,
567
- id: d.id,
568
- name: d.name,
569
- roles: d.roles,
570
- userName: d.userName,
571
- account_id: d.accountId,
572
- }));
573
- export const marshalCreateGroupRequestSchema = z
574
- .object({
575
- displayName: z.string().optional(),
576
- entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
577
- externalId: z.string().optional(),
578
- groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
579
- id: z.string().optional(),
580
- members: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
581
- meta: z.lazy(() => marshalResourceMetaSchema).optional(),
582
- roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
583
- schemas: z.array(z.string()).optional(),
584
- })
585
- .transform(d => ({
586
- displayName: d.displayName,
587
- entitlements: d.entitlements,
588
- externalId: d.externalId,
589
- groups: d.groups,
590
- id: d.id,
591
- members: d.members,
592
- meta: d.meta,
593
- roles: d.roles,
594
- schemas: d.schemas,
595
- }));
596
- export const marshalCreateServicePrincipalRequestSchema = z
597
- .object({
598
- active: z.boolean().optional(),
599
- applicationId: z.string().optional(),
600
- displayName: z.string().optional(),
601
- entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
602
- externalId: z.string().optional(),
603
- groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
604
- id: z.string().optional(),
605
- roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
606
- schemas: z.array(z.string()).optional(),
607
- })
608
- .transform(d => ({
609
- active: d.active,
610
- applicationId: d.applicationId,
611
- displayName: d.displayName,
612
- entitlements: d.entitlements,
613
- externalId: d.externalId,
614
- groups: d.groups,
615
- id: d.id,
616
- roles: d.roles,
617
- schemas: d.schemas,
618
- }));
619
- export const marshalCreateUserRequestSchema = z
620
- .object({
621
- active: z.boolean().optional(),
622
- displayName: z.string().optional(),
623
- emails: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
624
- entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
625
- externalId: z.string().optional(),
626
- groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
627
- id: z.string().optional(),
628
- name: z.lazy(() => marshalNameSchema).optional(),
629
- roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
630
- schemas: z.array(z.string()).optional(),
631
- userName: z.string().optional(),
632
- })
633
- .transform(d => ({
634
- active: d.active,
635
- displayName: d.displayName,
636
- emails: d.emails,
637
- entitlements: d.entitlements,
638
- externalId: d.externalId,
639
- groups: d.groups,
640
- id: d.id,
641
- name: d.name,
642
- roles: d.roles,
643
- schemas: d.schemas,
644
- userName: d.userName,
645
- }));
646
- export const marshalNameSchema = z
647
- .object({
648
- familyName: z.string().optional(),
649
- givenName: z.string().optional(),
650
- })
651
- .transform(d => ({
652
- familyName: d.familyName,
653
- givenName: d.givenName,
654
- }));
655
- export const marshalPasswordAccessControlRequestSchema = z
656
- .object({
657
- groupName: z.string().optional(),
658
- permissionLevel: z.string().optional(),
659
- servicePrincipalName: z.string().optional(),
660
- userName: z.string().optional(),
661
- })
662
- .transform(d => ({
663
- group_name: d.groupName,
664
- permission_level: d.permissionLevel,
665
- service_principal_name: d.servicePrincipalName,
666
- user_name: d.userName,
667
- }));
668
- export const marshalPasswordPermissionsRequestSchema = z
669
- .object({
670
- accessControlList: z
671
- .array(z.lazy(() => marshalPasswordAccessControlRequestSchema))
672
- .optional(),
673
- })
674
- .transform(d => ({
675
- access_control_list: d.accessControlList,
676
- }));
677
- export const marshalPatchSchema = z
678
- .object({
679
- op: z.string().optional(),
680
- path: z.string().optional(),
681
- value: jsonValueSchema.optional(),
682
- })
683
- .transform(d => ({
684
- op: d.op,
685
- path: d.path,
686
- value: d.value,
687
- }));
688
- export const marshalPatchAccountGroupRequestSchema = z
689
- .object({
690
- id: z.string().optional(),
691
- operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
692
- schemas: z.array(z.string()).optional(),
693
- accountId: z.string().optional(),
694
- })
695
- .transform(d => ({
696
- id: d.id,
697
- Operations: d.operations,
698
- schemas: d.schemas,
699
- account_id: d.accountId,
700
- }));
701
- export const marshalPatchAccountServicePrincipalRequestSchema = z
702
- .object({
703
- id: z.string().optional(),
704
- operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
705
- schemas: z.array(z.string()).optional(),
706
- accountId: z.string().optional(),
707
- })
708
- .transform(d => ({
709
- id: d.id,
710
- Operations: d.operations,
711
- schemas: d.schemas,
712
- account_id: d.accountId,
713
- }));
714
- export const marshalPatchAccountUserRequestSchema = z
715
- .object({
716
- id: z.string().optional(),
717
- operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
718
- schemas: z.array(z.string()).optional(),
719
- accountId: z.string().optional(),
720
- })
721
- .transform(d => ({
722
- id: d.id,
723
- Operations: d.operations,
724
- schemas: d.schemas,
725
- account_id: d.accountId,
726
- }));
727
- export const marshalPatchGroupRequestSchema = z
728
- .object({
729
- id: z.string().optional(),
730
- operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
731
- schemas: z.array(z.string()).optional(),
732
- })
733
- .transform(d => ({
734
- id: d.id,
735
- Operations: d.operations,
736
- schemas: d.schemas,
737
- }));
738
- export const marshalPatchServicePrincipalRequestSchema = z
739
- .object({
740
- id: z.string().optional(),
741
- operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
742
- schemas: z.array(z.string()).optional(),
743
- })
744
- .transform(d => ({
745
- id: d.id,
746
- Operations: d.operations,
747
- schemas: d.schemas,
748
- }));
749
- export const marshalPatchUserRequestSchema = z
750
- .object({
751
- id: z.string().optional(),
752
- operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
753
- schemas: z.array(z.string()).optional(),
754
- })
755
- .transform(d => ({
756
- id: d.id,
757
- Operations: d.operations,
758
- schemas: d.schemas,
759
- }));
760
- export const marshalResourceMetaSchema = z
761
- .object({
762
- resourceType: z.string().optional(),
763
- })
764
- .transform(d => ({
765
- resourceType: d.resourceType,
766
- }));
767
- export const marshalUpdateAccountGroupRequestSchema = z
768
- .object({
769
- displayName: z.string().optional(),
770
- externalId: z.string().optional(),
771
- id: z.string().optional(),
772
- members: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
773
- meta: z.lazy(() => marshalAccountResourceMetaSchema).optional(),
774
- roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
775
- accountId: z.string().optional(),
776
- })
777
- .transform(d => ({
778
- displayName: d.displayName,
779
- externalId: d.externalId,
780
- id: d.id,
781
- members: d.members,
782
- meta: d.meta,
783
- roles: d.roles,
784
- account_id: d.accountId,
785
- }));
786
- export const marshalUpdateAccountServicePrincipalRequestSchema = z
787
- .object({
788
- active: z.boolean().optional(),
789
- applicationId: z.string().optional(),
790
- displayName: z.string().optional(),
791
- externalId: z.string().optional(),
792
- id: z.string().optional(),
793
- roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
794
- accountId: z.string().optional(),
795
- })
796
- .transform(d => ({
797
- active: d.active,
798
- applicationId: d.applicationId,
799
- displayName: d.displayName,
800
- externalId: d.externalId,
801
- id: d.id,
802
- roles: d.roles,
803
- account_id: d.accountId,
804
- }));
805
- export const marshalUpdateAccountUserRequestSchema = z
806
- .object({
807
- active: z.boolean().optional(),
808
- displayName: z.string().optional(),
809
- emails: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
810
- externalId: z.string().optional(),
811
- id: z.string().optional(),
812
- name: z.lazy(() => marshalAccountNameSchema).optional(),
813
- roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
814
- userName: z.string().optional(),
815
- accountId: z.string().optional(),
816
- })
817
- .transform(d => ({
818
- active: d.active,
819
- displayName: d.displayName,
820
- emails: d.emails,
821
- externalId: d.externalId,
822
- id: d.id,
823
- name: d.name,
824
- roles: d.roles,
825
- userName: d.userName,
826
- account_id: d.accountId,
827
- }));
828
- export const marshalUpdateGroupRequestSchema = z
829
- .object({
830
- displayName: z.string().optional(),
831
- entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
832
- externalId: z.string().optional(),
833
- groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
834
- id: z.string().optional(),
835
- members: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
836
- meta: z.lazy(() => marshalResourceMetaSchema).optional(),
837
- roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
838
- schemas: z.array(z.string()).optional(),
839
- })
840
- .transform(d => ({
841
- displayName: d.displayName,
842
- entitlements: d.entitlements,
843
- externalId: d.externalId,
844
- groups: d.groups,
845
- id: d.id,
846
- members: d.members,
847
- meta: d.meta,
848
- roles: d.roles,
849
- schemas: d.schemas,
850
- }));
851
- export const marshalUpdateServicePrincipalRequestSchema = z
852
- .object({
853
- active: z.boolean().optional(),
854
- applicationId: z.string().optional(),
855
- displayName: z.string().optional(),
856
- entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
857
- externalId: z.string().optional(),
858
- groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
859
- id: z.string().optional(),
860
- roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
861
- schemas: z.array(z.string()).optional(),
862
- })
863
- .transform(d => ({
864
- active: d.active,
865
- applicationId: d.applicationId,
866
- displayName: d.displayName,
867
- entitlements: d.entitlements,
868
- externalId: d.externalId,
869
- groups: d.groups,
870
- id: d.id,
871
- roles: d.roles,
872
- schemas: d.schemas,
873
- }));
874
- export const marshalUpdateUserRequestSchema = z
875
- .object({
876
- active: z.boolean().optional(),
877
- displayName: z.string().optional(),
878
- emails: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
879
- entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
880
- externalId: z.string().optional(),
881
- groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
882
- id: z.string().optional(),
883
- name: z.lazy(() => marshalNameSchema).optional(),
884
- roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
885
- schemas: z.array(z.string()).optional(),
886
- userName: z.string().optional(),
887
- })
888
- .transform(d => ({
889
- active: d.active,
890
- displayName: d.displayName,
891
- emails: d.emails,
892
- entitlements: d.entitlements,
893
- externalId: d.externalId,
894
- groups: d.groups,
895
- id: d.id,
896
- name: d.name,
897
- roles: d.roles,
898
- schemas: d.schemas,
899
- userName: d.userName,
900
- }));
76
+ const unmarshalAccountComplexValueSchema = z.object({
77
+ display: z.string().optional(),
78
+ primary: z.boolean().optional(),
79
+ $ref: z.string().optional(),
80
+ type: z.string().optional(),
81
+ value: z.string().optional()
82
+ }).transform((d) => ({
83
+ display: d.display,
84
+ primary: d.primary,
85
+ ref: d.$ref,
86
+ type: d.type,
87
+ value: d.value
88
+ }));
89
+ const unmarshalAccountGroupSchema = z.object({
90
+ displayName: z.string().optional(),
91
+ externalId: z.string().optional(),
92
+ id: z.string().optional(),
93
+ members: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
94
+ meta: z.lazy(() => unmarshalAccountResourceMetaSchema).optional(),
95
+ roles: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
96
+ account_id: z.string().optional()
97
+ }).transform((d) => ({
98
+ displayName: d.displayName,
99
+ externalId: d.externalId,
100
+ id: d.id,
101
+ members: d.members,
102
+ meta: d.meta,
103
+ roles: d.roles,
104
+ accountId: d.account_id
105
+ }));
106
+ const unmarshalAccountNameSchema = z.object({
107
+ familyName: z.string().optional(),
108
+ givenName: z.string().optional()
109
+ }).transform((d) => ({
110
+ familyName: d.familyName,
111
+ givenName: d.givenName
112
+ }));
113
+ const unmarshalAccountResourceMetaSchema = z.object({ resourceType: z.string().optional() }).transform((d) => ({ resourceType: d.resourceType }));
114
+ const unmarshalAccountServicePrincipalSchema = z.object({
115
+ active: z.boolean().optional(),
116
+ applicationId: z.string().optional(),
117
+ displayName: z.string().optional(),
118
+ externalId: z.string().optional(),
119
+ id: z.string().optional(),
120
+ roles: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
121
+ account_id: z.string().optional()
122
+ }).transform((d) => ({
123
+ active: d.active,
124
+ applicationId: d.applicationId,
125
+ displayName: d.displayName,
126
+ externalId: d.externalId,
127
+ id: d.id,
128
+ roles: d.roles,
129
+ accountId: d.account_id
130
+ }));
131
+ const unmarshalAccountUserSchema = z.object({
132
+ active: z.boolean().optional(),
133
+ displayName: z.string().optional(),
134
+ emails: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
135
+ externalId: z.string().optional(),
136
+ id: z.string().optional(),
137
+ name: z.lazy(() => unmarshalAccountNameSchema).optional(),
138
+ roles: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
139
+ userName: z.string().optional(),
140
+ account_id: z.string().optional()
141
+ }).transform((d) => ({
142
+ active: d.active,
143
+ displayName: d.displayName,
144
+ emails: d.emails,
145
+ externalId: d.externalId,
146
+ id: d.id,
147
+ name: d.name,
148
+ roles: d.roles,
149
+ userName: d.userName,
150
+ accountId: d.account_id
151
+ }));
152
+ const unmarshalComplexValueSchema = z.object({
153
+ display: z.string().optional(),
154
+ primary: z.boolean().optional(),
155
+ $ref: z.string().optional(),
156
+ type: z.string().optional(),
157
+ value: z.string().optional()
158
+ }).transform((d) => ({
159
+ display: d.display,
160
+ primary: d.primary,
161
+ ref: d.$ref,
162
+ type: d.type,
163
+ value: d.value
164
+ }));
165
+ const unmarshalGetPasswordPermissionLevelsResponseSchema = z.object({ permission_levels: z.array(z.lazy(() => unmarshalPasswordPermissionsDescriptionSchema)).optional() }).transform((d) => ({ permissionLevels: d.permission_levels }));
166
+ const unmarshalGroupSchema = z.object({
167
+ displayName: z.string().optional(),
168
+ entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
169
+ externalId: z.string().optional(),
170
+ groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
171
+ id: z.string().optional(),
172
+ members: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
173
+ meta: z.lazy(() => unmarshalResourceMetaSchema).optional(),
174
+ roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
175
+ schemas: z.array(z.string()).optional()
176
+ }).transform((d) => ({
177
+ displayName: d.displayName,
178
+ entitlements: d.entitlements,
179
+ externalId: d.externalId,
180
+ groups: d.groups,
181
+ id: d.id,
182
+ members: d.members,
183
+ meta: d.meta,
184
+ roles: d.roles,
185
+ schemas: d.schemas
186
+ }));
187
+ const unmarshalListAccountGroupsResponseSchema = z.object({
188
+ itemsPerPage: z.number().optional(),
189
+ Resources: z.array(z.lazy(() => unmarshalAccountGroupSchema)).optional(),
190
+ startIndex: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
191
+ totalResults: z.number().optional()
192
+ }).transform((d) => ({
193
+ itemsPerPage: d.itemsPerPage,
194
+ resources: d.Resources,
195
+ startIndex: d.startIndex,
196
+ totalResults: d.totalResults
197
+ }));
198
+ const unmarshalListAccountServicePrincipalsResponseSchema = z.object({
199
+ itemsPerPage: z.number().optional(),
200
+ Resources: z.array(z.lazy(() => unmarshalAccountServicePrincipalSchema)).optional(),
201
+ startIndex: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
202
+ totalResults: z.number().optional()
203
+ }).transform((d) => ({
204
+ itemsPerPage: d.itemsPerPage,
205
+ resources: d.Resources,
206
+ startIndex: d.startIndex,
207
+ totalResults: d.totalResults
208
+ }));
209
+ const unmarshalListAccountUsersResponseSchema = z.object({
210
+ itemsPerPage: z.number().optional(),
211
+ Resources: z.array(z.lazy(() => unmarshalAccountUserSchema)).optional(),
212
+ startIndex: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
213
+ totalResults: z.number().optional()
214
+ }).transform((d) => ({
215
+ itemsPerPage: d.itemsPerPage,
216
+ resources: d.Resources,
217
+ startIndex: d.startIndex,
218
+ totalResults: d.totalResults
219
+ }));
220
+ const unmarshalListGroupsResponseSchema = z.object({
221
+ itemsPerPage: z.number().optional(),
222
+ Resources: z.array(z.lazy(() => unmarshalGroupSchema)).optional(),
223
+ schemas: z.array(z.string()).optional(),
224
+ startIndex: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
225
+ totalResults: z.number().optional()
226
+ }).transform((d) => ({
227
+ itemsPerPage: d.itemsPerPage,
228
+ resources: d.Resources,
229
+ schemas: d.schemas,
230
+ startIndex: d.startIndex,
231
+ totalResults: d.totalResults
232
+ }));
233
+ const unmarshalListServicePrincipalResponseSchema = z.object({
234
+ itemsPerPage: z.number().optional(),
235
+ Resources: z.array(z.lazy(() => unmarshalServicePrincipalSchema)).optional(),
236
+ schemas: z.array(z.string()).optional(),
237
+ startIndex: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
238
+ totalResults: z.number().optional()
239
+ }).transform((d) => ({
240
+ itemsPerPage: d.itemsPerPage,
241
+ resources: d.Resources,
242
+ schemas: d.schemas,
243
+ startIndex: d.startIndex,
244
+ totalResults: d.totalResults
245
+ }));
246
+ const unmarshalListUsersResponseSchema = z.object({
247
+ itemsPerPage: z.number().optional(),
248
+ Resources: z.array(z.lazy(() => unmarshalUserSchema)).optional(),
249
+ schemas: z.array(z.string()).optional(),
250
+ startIndex: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
251
+ totalResults: z.number().optional()
252
+ }).transform((d) => ({
253
+ itemsPerPage: d.itemsPerPage,
254
+ resources: d.Resources,
255
+ schemas: d.schemas,
256
+ startIndex: d.startIndex,
257
+ totalResults: d.totalResults
258
+ }));
259
+ const unmarshalNameSchema = z.object({
260
+ familyName: z.string().optional(),
261
+ givenName: z.string().optional()
262
+ }).transform((d) => ({
263
+ familyName: d.familyName,
264
+ givenName: d.givenName
265
+ }));
266
+ const unmarshalPasswordAccessControlResponseSchema = z.object({
267
+ all_permissions: z.array(z.lazy(() => unmarshalPasswordPermissionSchema)).optional(),
268
+ display_name: z.string().optional(),
269
+ group_name: z.string().optional(),
270
+ service_principal_name: z.string().optional(),
271
+ user_name: z.string().optional()
272
+ }).transform((d) => ({
273
+ allPermissions: d.all_permissions,
274
+ displayName: d.display_name,
275
+ groupName: d.group_name,
276
+ servicePrincipalName: d.service_principal_name,
277
+ userName: d.user_name
278
+ }));
279
+ const unmarshalPasswordPermissionSchema = z.object({
280
+ inherited: z.boolean().optional(),
281
+ inherited_from_object: z.array(z.string()).optional(),
282
+ permission_level: z.string().optional()
283
+ }).transform((d) => ({
284
+ inherited: d.inherited,
285
+ inheritedFromObject: d.inherited_from_object,
286
+ permissionLevel: d.permission_level
287
+ }));
288
+ const unmarshalPasswordPermissionsSchema = z.object({
289
+ access_control_list: z.array(z.lazy(() => unmarshalPasswordAccessControlResponseSchema)).optional(),
290
+ object_id: z.string().optional(),
291
+ object_type: z.string().optional()
292
+ }).transform((d) => ({
293
+ accessControlList: d.access_control_list,
294
+ objectId: d.object_id,
295
+ objectType: d.object_type
296
+ }));
297
+ const unmarshalPasswordPermissionsDescriptionSchema = z.object({
298
+ description: z.string().optional(),
299
+ permission_level: z.string().optional()
300
+ }).transform((d) => ({
301
+ description: d.description,
302
+ permissionLevel: d.permission_level
303
+ }));
304
+ const unmarshalResourceMetaSchema = z.object({ resourceType: z.string().optional() }).transform((d) => ({ resourceType: d.resourceType }));
305
+ const unmarshalServicePrincipalSchema = z.object({
306
+ active: z.boolean().optional(),
307
+ applicationId: z.string().optional(),
308
+ displayName: z.string().optional(),
309
+ entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
310
+ externalId: z.string().optional(),
311
+ groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
312
+ id: z.string().optional(),
313
+ roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
314
+ schemas: z.array(z.string()).optional()
315
+ }).transform((d) => ({
316
+ active: d.active,
317
+ applicationId: d.applicationId,
318
+ displayName: d.displayName,
319
+ entitlements: d.entitlements,
320
+ externalId: d.externalId,
321
+ groups: d.groups,
322
+ id: d.id,
323
+ roles: d.roles,
324
+ schemas: d.schemas
325
+ }));
326
+ const unmarshalUserSchema = z.object({
327
+ active: z.boolean().optional(),
328
+ displayName: z.string().optional(),
329
+ emails: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
330
+ entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
331
+ externalId: z.string().optional(),
332
+ groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
333
+ id: z.string().optional(),
334
+ name: z.lazy(() => unmarshalNameSchema).optional(),
335
+ roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
336
+ schemas: z.array(z.string()).optional(),
337
+ userName: z.string().optional()
338
+ }).transform((d) => ({
339
+ active: d.active,
340
+ displayName: d.displayName,
341
+ emails: d.emails,
342
+ entitlements: d.entitlements,
343
+ externalId: d.externalId,
344
+ groups: d.groups,
345
+ id: d.id,
346
+ name: d.name,
347
+ roles: d.roles,
348
+ schemas: d.schemas,
349
+ userName: d.userName
350
+ }));
351
+ const marshalAccountComplexValueSchema = z.object({
352
+ display: z.string().optional(),
353
+ primary: z.boolean().optional(),
354
+ ref: z.string().optional(),
355
+ type: z.string().optional(),
356
+ value: z.string().optional()
357
+ }).transform((d) => ({
358
+ display: d.display,
359
+ primary: d.primary,
360
+ $ref: d.ref,
361
+ type: d.type,
362
+ value: d.value
363
+ }));
364
+ const marshalAccountNameSchema = z.object({
365
+ familyName: z.string().optional(),
366
+ givenName: z.string().optional()
367
+ }).transform((d) => ({
368
+ familyName: d.familyName,
369
+ givenName: d.givenName
370
+ }));
371
+ const marshalAccountPatchSchema = z.object({
372
+ op: z.string().optional(),
373
+ path: z.string().optional(),
374
+ value: jsonValueSchema.optional()
375
+ }).transform((d) => ({
376
+ op: d.op,
377
+ path: d.path,
378
+ value: d.value
379
+ }));
380
+ const marshalAccountResourceMetaSchema = z.object({ resourceType: z.string().optional() }).transform((d) => ({ resourceType: d.resourceType }));
381
+ const marshalComplexValueSchema = z.object({
382
+ display: z.string().optional(),
383
+ primary: z.boolean().optional(),
384
+ ref: z.string().optional(),
385
+ type: z.string().optional(),
386
+ value: z.string().optional()
387
+ }).transform((d) => ({
388
+ display: d.display,
389
+ primary: d.primary,
390
+ $ref: d.ref,
391
+ type: d.type,
392
+ value: d.value
393
+ }));
394
+ const marshalCreateAccountGroupRequestSchema = z.object({
395
+ displayName: z.string().optional(),
396
+ externalId: z.string().optional(),
397
+ id: z.string().optional(),
398
+ members: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
399
+ meta: z.lazy(() => marshalAccountResourceMetaSchema).optional(),
400
+ roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
401
+ accountId: z.string().optional()
402
+ }).transform((d) => ({
403
+ displayName: d.displayName,
404
+ externalId: d.externalId,
405
+ id: d.id,
406
+ members: d.members,
407
+ meta: d.meta,
408
+ roles: d.roles,
409
+ account_id: d.accountId
410
+ }));
411
+ const marshalCreateAccountServicePrincipalRequestSchema = z.object({
412
+ active: z.boolean().optional(),
413
+ applicationId: z.string().optional(),
414
+ displayName: z.string().optional(),
415
+ externalId: z.string().optional(),
416
+ id: z.string().optional(),
417
+ roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
418
+ accountId: z.string().optional()
419
+ }).transform((d) => ({
420
+ active: d.active,
421
+ applicationId: d.applicationId,
422
+ displayName: d.displayName,
423
+ externalId: d.externalId,
424
+ id: d.id,
425
+ roles: d.roles,
426
+ account_id: d.accountId
427
+ }));
428
+ const marshalCreateAccountUserRequestSchema = z.object({
429
+ active: z.boolean().optional(),
430
+ displayName: z.string().optional(),
431
+ emails: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
432
+ externalId: z.string().optional(),
433
+ id: z.string().optional(),
434
+ name: z.lazy(() => marshalAccountNameSchema).optional(),
435
+ roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
436
+ userName: z.string().optional(),
437
+ accountId: z.string().optional()
438
+ }).transform((d) => ({
439
+ active: d.active,
440
+ displayName: d.displayName,
441
+ emails: d.emails,
442
+ externalId: d.externalId,
443
+ id: d.id,
444
+ name: d.name,
445
+ roles: d.roles,
446
+ userName: d.userName,
447
+ account_id: d.accountId
448
+ }));
449
+ const marshalCreateGroupRequestSchema = z.object({
450
+ displayName: z.string().optional(),
451
+ entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
452
+ externalId: z.string().optional(),
453
+ groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
454
+ id: z.string().optional(),
455
+ members: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
456
+ meta: z.lazy(() => marshalResourceMetaSchema).optional(),
457
+ roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
458
+ schemas: z.array(z.string()).optional()
459
+ }).transform((d) => ({
460
+ displayName: d.displayName,
461
+ entitlements: d.entitlements,
462
+ externalId: d.externalId,
463
+ groups: d.groups,
464
+ id: d.id,
465
+ members: d.members,
466
+ meta: d.meta,
467
+ roles: d.roles,
468
+ schemas: d.schemas
469
+ }));
470
+ const marshalCreateServicePrincipalRequestSchema = z.object({
471
+ active: z.boolean().optional(),
472
+ applicationId: z.string().optional(),
473
+ displayName: z.string().optional(),
474
+ entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
475
+ externalId: z.string().optional(),
476
+ groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
477
+ id: z.string().optional(),
478
+ roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
479
+ schemas: z.array(z.string()).optional()
480
+ }).transform((d) => ({
481
+ active: d.active,
482
+ applicationId: d.applicationId,
483
+ displayName: d.displayName,
484
+ entitlements: d.entitlements,
485
+ externalId: d.externalId,
486
+ groups: d.groups,
487
+ id: d.id,
488
+ roles: d.roles,
489
+ schemas: d.schemas
490
+ }));
491
+ const marshalCreateUserRequestSchema = z.object({
492
+ active: z.boolean().optional(),
493
+ displayName: z.string().optional(),
494
+ emails: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
495
+ entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
496
+ externalId: z.string().optional(),
497
+ groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
498
+ id: z.string().optional(),
499
+ name: z.lazy(() => marshalNameSchema).optional(),
500
+ roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
501
+ schemas: z.array(z.string()).optional(),
502
+ userName: z.string().optional()
503
+ }).transform((d) => ({
504
+ active: d.active,
505
+ displayName: d.displayName,
506
+ emails: d.emails,
507
+ entitlements: d.entitlements,
508
+ externalId: d.externalId,
509
+ groups: d.groups,
510
+ id: d.id,
511
+ name: d.name,
512
+ roles: d.roles,
513
+ schemas: d.schemas,
514
+ userName: d.userName
515
+ }));
516
+ const marshalNameSchema = z.object({
517
+ familyName: z.string().optional(),
518
+ givenName: z.string().optional()
519
+ }).transform((d) => ({
520
+ familyName: d.familyName,
521
+ givenName: d.givenName
522
+ }));
523
+ const marshalPasswordAccessControlRequestSchema = z.object({
524
+ groupName: z.string().optional(),
525
+ permissionLevel: z.string().optional(),
526
+ servicePrincipalName: z.string().optional(),
527
+ userName: z.string().optional()
528
+ }).transform((d) => ({
529
+ group_name: d.groupName,
530
+ permission_level: d.permissionLevel,
531
+ service_principal_name: d.servicePrincipalName,
532
+ user_name: d.userName
533
+ }));
534
+ const marshalPasswordPermissionsRequestSchema = z.object({ accessControlList: z.array(z.lazy(() => marshalPasswordAccessControlRequestSchema)).optional() }).transform((d) => ({ access_control_list: d.accessControlList }));
535
+ const marshalPatchSchema = z.object({
536
+ op: z.string().optional(),
537
+ path: z.string().optional(),
538
+ value: jsonValueSchema.optional()
539
+ }).transform((d) => ({
540
+ op: d.op,
541
+ path: d.path,
542
+ value: d.value
543
+ }));
544
+ const marshalPatchAccountGroupRequestSchema = z.object({
545
+ id: z.string().optional(),
546
+ operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
547
+ schemas: z.array(z.string()).optional(),
548
+ accountId: z.string().optional()
549
+ }).transform((d) => ({
550
+ id: d.id,
551
+ Operations: d.operations,
552
+ schemas: d.schemas,
553
+ account_id: d.accountId
554
+ }));
555
+ const marshalPatchAccountServicePrincipalRequestSchema = z.object({
556
+ id: z.string().optional(),
557
+ operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
558
+ schemas: z.array(z.string()).optional(),
559
+ accountId: z.string().optional()
560
+ }).transform((d) => ({
561
+ id: d.id,
562
+ Operations: d.operations,
563
+ schemas: d.schemas,
564
+ account_id: d.accountId
565
+ }));
566
+ const marshalPatchAccountUserRequestSchema = z.object({
567
+ id: z.string().optional(),
568
+ operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
569
+ schemas: z.array(z.string()).optional(),
570
+ accountId: z.string().optional()
571
+ }).transform((d) => ({
572
+ id: d.id,
573
+ Operations: d.operations,
574
+ schemas: d.schemas,
575
+ account_id: d.accountId
576
+ }));
577
+ const marshalPatchGroupRequestSchema = z.object({
578
+ id: z.string().optional(),
579
+ operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
580
+ schemas: z.array(z.string()).optional()
581
+ }).transform((d) => ({
582
+ id: d.id,
583
+ Operations: d.operations,
584
+ schemas: d.schemas
585
+ }));
586
+ const marshalPatchServicePrincipalRequestSchema = z.object({
587
+ id: z.string().optional(),
588
+ operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
589
+ schemas: z.array(z.string()).optional()
590
+ }).transform((d) => ({
591
+ id: d.id,
592
+ Operations: d.operations,
593
+ schemas: d.schemas
594
+ }));
595
+ const marshalPatchUserRequestSchema = z.object({
596
+ id: z.string().optional(),
597
+ operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
598
+ schemas: z.array(z.string()).optional()
599
+ }).transform((d) => ({
600
+ id: d.id,
601
+ Operations: d.operations,
602
+ schemas: d.schemas
603
+ }));
604
+ const marshalResourceMetaSchema = z.object({ resourceType: z.string().optional() }).transform((d) => ({ resourceType: d.resourceType }));
605
+ const marshalUpdateAccountGroupRequestSchema = z.object({
606
+ displayName: z.string().optional(),
607
+ externalId: z.string().optional(),
608
+ id: z.string().optional(),
609
+ members: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
610
+ meta: z.lazy(() => marshalAccountResourceMetaSchema).optional(),
611
+ roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
612
+ accountId: z.string().optional()
613
+ }).transform((d) => ({
614
+ displayName: d.displayName,
615
+ externalId: d.externalId,
616
+ id: d.id,
617
+ members: d.members,
618
+ meta: d.meta,
619
+ roles: d.roles,
620
+ account_id: d.accountId
621
+ }));
622
+ const marshalUpdateAccountServicePrincipalRequestSchema = z.object({
623
+ active: z.boolean().optional(),
624
+ applicationId: z.string().optional(),
625
+ displayName: z.string().optional(),
626
+ externalId: z.string().optional(),
627
+ id: z.string().optional(),
628
+ roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
629
+ accountId: z.string().optional()
630
+ }).transform((d) => ({
631
+ active: d.active,
632
+ applicationId: d.applicationId,
633
+ displayName: d.displayName,
634
+ externalId: d.externalId,
635
+ id: d.id,
636
+ roles: d.roles,
637
+ account_id: d.accountId
638
+ }));
639
+ const marshalUpdateAccountUserRequestSchema = z.object({
640
+ active: z.boolean().optional(),
641
+ displayName: z.string().optional(),
642
+ emails: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
643
+ externalId: z.string().optional(),
644
+ id: z.string().optional(),
645
+ name: z.lazy(() => marshalAccountNameSchema).optional(),
646
+ roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
647
+ userName: z.string().optional(),
648
+ accountId: z.string().optional()
649
+ }).transform((d) => ({
650
+ active: d.active,
651
+ displayName: d.displayName,
652
+ emails: d.emails,
653
+ externalId: d.externalId,
654
+ id: d.id,
655
+ name: d.name,
656
+ roles: d.roles,
657
+ userName: d.userName,
658
+ account_id: d.accountId
659
+ }));
660
+ const marshalUpdateGroupRequestSchema = z.object({
661
+ displayName: z.string().optional(),
662
+ entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
663
+ externalId: z.string().optional(),
664
+ groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
665
+ id: z.string().optional(),
666
+ members: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
667
+ meta: z.lazy(() => marshalResourceMetaSchema).optional(),
668
+ roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
669
+ schemas: z.array(z.string()).optional()
670
+ }).transform((d) => ({
671
+ displayName: d.displayName,
672
+ entitlements: d.entitlements,
673
+ externalId: d.externalId,
674
+ groups: d.groups,
675
+ id: d.id,
676
+ members: d.members,
677
+ meta: d.meta,
678
+ roles: d.roles,
679
+ schemas: d.schemas
680
+ }));
681
+ const marshalUpdateServicePrincipalRequestSchema = z.object({
682
+ active: z.boolean().optional(),
683
+ applicationId: z.string().optional(),
684
+ displayName: z.string().optional(),
685
+ entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
686
+ externalId: z.string().optional(),
687
+ groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
688
+ id: z.string().optional(),
689
+ roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
690
+ schemas: z.array(z.string()).optional()
691
+ }).transform((d) => ({
692
+ active: d.active,
693
+ applicationId: d.applicationId,
694
+ displayName: d.displayName,
695
+ entitlements: d.entitlements,
696
+ externalId: d.externalId,
697
+ groups: d.groups,
698
+ id: d.id,
699
+ roles: d.roles,
700
+ schemas: d.schemas
701
+ }));
702
+ const marshalUpdateUserRequestSchema = z.object({
703
+ active: z.boolean().optional(),
704
+ displayName: z.string().optional(),
705
+ emails: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
706
+ entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
707
+ externalId: z.string().optional(),
708
+ groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
709
+ id: z.string().optional(),
710
+ name: z.lazy(() => marshalNameSchema).optional(),
711
+ roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
712
+ schemas: z.array(z.string()).optional(),
713
+ userName: z.string().optional()
714
+ }).transform((d) => ({
715
+ active: d.active,
716
+ displayName: d.displayName,
717
+ emails: d.emails,
718
+ entitlements: d.entitlements,
719
+ externalId: d.externalId,
720
+ groups: d.groups,
721
+ id: d.id,
722
+ name: d.name,
723
+ roles: d.roles,
724
+ schemas: d.schemas,
725
+ userName: d.userName
726
+ }));
727
+
728
+ //#endregion
729
+ export { AccountGetSortOrder_GetSortOrder, AccountListSort_Order, AccountPatchOp_PatchOp, AccountPatchSchema_PatchSchema, GetSortOrder, GroupSchema, ListResponseSchema, ListSort_Order, PasswordPermission_Level, PatchOp, PatchSchema, ServicePrincipalSchema, UserSchema, marshalAccountComplexValueSchema, marshalAccountNameSchema, marshalAccountPatchSchema, marshalAccountResourceMetaSchema, marshalComplexValueSchema, marshalCreateAccountGroupRequestSchema, marshalCreateAccountServicePrincipalRequestSchema, marshalCreateAccountUserRequestSchema, marshalCreateGroupRequestSchema, marshalCreateServicePrincipalRequestSchema, marshalCreateUserRequestSchema, marshalNameSchema, marshalPasswordAccessControlRequestSchema, marshalPasswordPermissionsRequestSchema, marshalPatchAccountGroupRequestSchema, marshalPatchAccountServicePrincipalRequestSchema, marshalPatchAccountUserRequestSchema, marshalPatchGroupRequestSchema, marshalPatchSchema, marshalPatchServicePrincipalRequestSchema, marshalPatchUserRequestSchema, marshalResourceMetaSchema, marshalUpdateAccountGroupRequestSchema, marshalUpdateAccountServicePrincipalRequestSchema, marshalUpdateAccountUserRequestSchema, marshalUpdateGroupRequestSchema, marshalUpdateServicePrincipalRequestSchema, marshalUpdateUserRequestSchema, unmarshalAccountComplexValueSchema, unmarshalAccountGroupSchema, unmarshalAccountNameSchema, unmarshalAccountResourceMetaSchema, unmarshalAccountServicePrincipalSchema, unmarshalAccountUserSchema, unmarshalComplexValueSchema, unmarshalGetPasswordPermissionLevelsResponseSchema, unmarshalGroupSchema, unmarshalListAccountGroupsResponseSchema, unmarshalListAccountServicePrincipalsResponseSchema, unmarshalListAccountUsersResponseSchema, unmarshalListGroupsResponseSchema, unmarshalListServicePrincipalResponseSchema, unmarshalListUsersResponseSchema, unmarshalNameSchema, unmarshalPasswordAccessControlResponseSchema, unmarshalPasswordPermissionSchema, unmarshalPasswordPermissionsDescriptionSchema, unmarshalPasswordPermissionsSchema, unmarshalResourceMetaSchema, unmarshalServicePrincipalSchema, unmarshalUserSchema };
901
730
  //# sourceMappingURL=model.js.map