@databricks/sdk-scim 0.0.0-dev → 0.1.0-dev.2
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/LICENSE +203 -0
- package/dist/v1/client.d.ts +114 -0
- package/dist/v1/client.d.ts.map +1 -0
- package/dist/v1/client.js +1185 -0
- package/dist/v1/client.js.map +1 -0
- package/dist/v1/index.d.ts +4 -0
- package/dist/v1/index.d.ts.map +1 -0
- package/dist/v1/index.js +4 -0
- package/dist/v1/index.js.map +1 -0
- package/dist/v1/model.d.ts +881 -0
- package/dist/v1/model.d.ts.map +1 -0
- package/dist/v1/model.js +907 -0
- package/dist/v1/model.js.map +1 -0
- package/dist/v1/transport.d.ts +5 -0
- package/dist/v1/transport.d.ts.map +1 -0
- package/dist/v1/transport.js +57 -0
- package/dist/v1/transport.js.map +1 -0
- package/dist/v1/utils.d.ts +21 -0
- package/dist/v1/utils.d.ts.map +1 -0
- package/dist/v1/utils.js +113 -0
- package/dist/v1/utils.js.map +1 -0
- package/package.json +38 -4
- package/src/v1/client.ts +1488 -0
- package/src/v1/index.ts +93 -0
- package/src/v1/model.ts +1809 -0
- package/src/v1/transport.ts +73 -0
- package/src/v1/utils.ts +156 -0
- package/README.md +0 -1
- package/index.js +0 -1
package/src/v1/model.ts
ADDED
|
@@ -0,0 +1,1809 @@
|
|
|
1
|
+
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type {JsonValue} from '@databricks/sdk-core/wkt';
|
|
4
|
+
import {z} from 'zod';
|
|
5
|
+
|
|
6
|
+
const jsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>
|
|
7
|
+
z.union([
|
|
8
|
+
z.null(),
|
|
9
|
+
z.number(),
|
|
10
|
+
z.string(),
|
|
11
|
+
z.boolean(),
|
|
12
|
+
z.record(z.string(), jsonValueSchema),
|
|
13
|
+
z.array(jsonValueSchema),
|
|
14
|
+
])
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
export enum GetSortOrder {
|
|
18
|
+
GET_SORT_ORDER_UNSPECIFIED = 'GET_SORT_ORDER_UNSPECIFIED',
|
|
19
|
+
ASCENDING = 'ascending',
|
|
20
|
+
DESCENDING = 'descending',
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum GroupSchema {
|
|
24
|
+
GROUP_SCHEMA_UNSPECIFIED = 'GROUP_SCHEMA_UNSPECIFIED',
|
|
25
|
+
URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP = 'urn:ietf:params:scim:schemas:core:2.0:Group',
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum ListResponseSchema {
|
|
29
|
+
LIST_RESPONSE_SCHEMA_UNSPECIFIED = 'LIST_RESPONSE_SCHEMA_UNSPECIFIED',
|
|
30
|
+
URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_LIST_RESPONSE = 'urn:ietf:params:scim:api:messages:2.0:ListResponse',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Type of patch operation. */
|
|
34
|
+
export enum PatchOp {
|
|
35
|
+
PATCH_OP_UNSPECIFIED = 'PATCH_OP_UNSPECIFIED',
|
|
36
|
+
ADD = 'add',
|
|
37
|
+
REMOVE = 'remove',
|
|
38
|
+
REPLACE = 'replace',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export enum PatchSchema {
|
|
42
|
+
PATCH_SCHEMA_UNSPECIFIED = 'PATCH_SCHEMA_UNSPECIFIED',
|
|
43
|
+
URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_PATCH_OP = 'urn:ietf:params:scim:api:messages:2.0:PatchOp',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export enum ServicePrincipalSchema {
|
|
47
|
+
SERVICE_PRINCIPAL_SCHEMA_UNSPECIFIED = 'SERVICE_PRINCIPAL_SCHEMA_UNSPECIFIED',
|
|
48
|
+
URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_SERVICE_PRINCIPAL = 'urn:ietf:params:scim:schemas:core:2.0:ServicePrincipal',
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export enum UserSchema {
|
|
52
|
+
USER_SCHEMA_UNSPECIFIED = 'USER_SCHEMA_UNSPECIFIED',
|
|
53
|
+
URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_USER = 'urn:ietf:params:scim:schemas:core:2.0:User',
|
|
54
|
+
URN_IETF_PARAMS_SCIM_SCHEMAS_EXTENSION_WORKSPACE_2_0_USER = 'urn:ietf:params:scim:schemas:extension:workspace:2.0:User',
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
58
|
+
export enum AccountGetSortOrder_GetSortOrder {
|
|
59
|
+
GET_SORT_ORDER_UNSPECIFIED = 'GET_SORT_ORDER_UNSPECIFIED',
|
|
60
|
+
ASCENDING = 'ascending',
|
|
61
|
+
DESCENDING = 'descending',
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
65
|
+
export enum AccountListSort_Order {
|
|
66
|
+
ORDER_UNSPECIFIED = 'ORDER_UNSPECIFIED',
|
|
67
|
+
ASCENDING = 'ascending',
|
|
68
|
+
DESCENDING = 'descending',
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Type of patch operation. */
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
73
|
+
export enum AccountPatchOp_PatchOp {
|
|
74
|
+
PATCH_OP_UNSPECIFIED = 'PATCH_OP_UNSPECIFIED',
|
|
75
|
+
ADD = 'add',
|
|
76
|
+
REMOVE = 'remove',
|
|
77
|
+
REPLACE = 'replace',
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
81
|
+
export enum AccountPatchSchema_PatchSchema {
|
|
82
|
+
PATCH_SCHEMA_UNSPECIFIED = 'PATCH_SCHEMA_UNSPECIFIED',
|
|
83
|
+
URN_IETF_PARAMS_SCIM_API_MESSAGES_2_0_PATCH_OP = 'urn:ietf:params:scim:api:messages:2.0:PatchOp',
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
87
|
+
export enum ListSort_Order {
|
|
88
|
+
ORDER_UNSPECIFIED = 'ORDER_UNSPECIFIED',
|
|
89
|
+
ASCENDING = 'ascending',
|
|
90
|
+
DESCENDING = 'descending',
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Permission level */
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
95
|
+
export enum PasswordPermission_Level {
|
|
96
|
+
LEVEL_UNSPECIFIED = 'LEVEL_UNSPECIFIED',
|
|
97
|
+
CAN_USE = 'CAN_USE',
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface AccountComplexValue {
|
|
101
|
+
display?: string | undefined;
|
|
102
|
+
primary?: boolean | undefined;
|
|
103
|
+
ref?: string | undefined;
|
|
104
|
+
type?: string | undefined;
|
|
105
|
+
value?: string | undefined;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
109
|
+
export interface AccountGetSortOrder {}
|
|
110
|
+
|
|
111
|
+
export interface AccountGroup {
|
|
112
|
+
/** String that represents a human-readable group name */
|
|
113
|
+
displayName?: string | undefined;
|
|
114
|
+
/** external_id should be unique for identifying groups */
|
|
115
|
+
externalId?: string | undefined;
|
|
116
|
+
/** <Databricks> group ID */
|
|
117
|
+
id?: string | undefined;
|
|
118
|
+
members?: AccountComplexValue[] | undefined;
|
|
119
|
+
/** Container for the group identifier. Workspace local versus account. */
|
|
120
|
+
meta?: AccountResourceMeta | undefined;
|
|
121
|
+
/** Indicates if the group has the admin role. */
|
|
122
|
+
roles?: AccountComplexValue[] | undefined;
|
|
123
|
+
/** <Databricks> account ID */
|
|
124
|
+
accountId?: string | undefined;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* ListSortOrder and GetSortOrder share enum values, which is not supported.
|
|
129
|
+
* We use nesting as a workaround.
|
|
130
|
+
*/
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
132
|
+
export interface AccountListSort {}
|
|
133
|
+
|
|
134
|
+
export interface AccountName {
|
|
135
|
+
/** Family name of the <Databricks> user. */
|
|
136
|
+
familyName?: string | undefined;
|
|
137
|
+
/** Given name of the <Databricks> user. */
|
|
138
|
+
givenName?: string | undefined;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface AccountPatch {
|
|
142
|
+
/** Type of patch operation. */
|
|
143
|
+
op?: AccountPatchOp_PatchOp | undefined;
|
|
144
|
+
/** Selection of patch operation */
|
|
145
|
+
path?: string | undefined;
|
|
146
|
+
/** Value to modify */
|
|
147
|
+
value?: JsonValue | undefined;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
151
|
+
export interface AccountPatchOp {}
|
|
152
|
+
|
|
153
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
154
|
+
export interface AccountPatchSchema {}
|
|
155
|
+
|
|
156
|
+
export interface AccountResourceMeta {
|
|
157
|
+
/** Identifier for group type. Can be local workspace group (`WorkspaceGroup`) or account group (`Group`). */
|
|
158
|
+
resourceType?: string | undefined;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface AccountServicePrincipal {
|
|
162
|
+
/** If this user is active */
|
|
163
|
+
active?: boolean | undefined;
|
|
164
|
+
/** UUID relating to the service principal */
|
|
165
|
+
applicationId?: string | undefined;
|
|
166
|
+
/** String that represents a concatenation of given and family names. */
|
|
167
|
+
displayName?: string | undefined;
|
|
168
|
+
externalId?: string | undefined;
|
|
169
|
+
/** <Databricks> service principal ID. */
|
|
170
|
+
id?: string | undefined;
|
|
171
|
+
/** Indicates if the group has the admin role. */
|
|
172
|
+
roles?: AccountComplexValue[] | undefined;
|
|
173
|
+
/** <Databricks> account ID */
|
|
174
|
+
accountId?: string | undefined;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface AccountUser {
|
|
178
|
+
/** If this user is active */
|
|
179
|
+
active?: boolean | undefined;
|
|
180
|
+
/** String that represents a concatenation of given and family names. For example `John Smith`. */
|
|
181
|
+
displayName?: string | undefined;
|
|
182
|
+
/** All the emails associated with the <Databricks> user. */
|
|
183
|
+
emails?: AccountComplexValue[] | undefined;
|
|
184
|
+
/** External ID is not currently supported. It is reserved for future use. */
|
|
185
|
+
externalId?: string | undefined;
|
|
186
|
+
/** <Databricks> user ID. */
|
|
187
|
+
id?: string | undefined;
|
|
188
|
+
name?: AccountName | undefined;
|
|
189
|
+
/** Indicates if the group has the admin role. */
|
|
190
|
+
roles?: AccountComplexValue[] | undefined;
|
|
191
|
+
/** Email address of the <Databricks> user. */
|
|
192
|
+
userName?: string | undefined;
|
|
193
|
+
/** <Databricks> account ID */
|
|
194
|
+
accountId?: string | undefined;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface ComplexValue {
|
|
198
|
+
display?: string | undefined;
|
|
199
|
+
primary?: boolean | undefined;
|
|
200
|
+
ref?: string | undefined;
|
|
201
|
+
type?: string | undefined;
|
|
202
|
+
value?: string | undefined;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface CreateAccountGroupRequest {
|
|
206
|
+
/** String that represents a human-readable group name */
|
|
207
|
+
displayName?: string | undefined;
|
|
208
|
+
externalId?: string | undefined;
|
|
209
|
+
/** <Databricks> group ID */
|
|
210
|
+
id?: string | undefined;
|
|
211
|
+
members?: AccountComplexValue[] | undefined;
|
|
212
|
+
/** Container for the group identifier. Workspace local versus account. */
|
|
213
|
+
meta?: AccountResourceMeta | undefined;
|
|
214
|
+
/** Indicates if the group has the admin role. */
|
|
215
|
+
roles?: AccountComplexValue[] | undefined;
|
|
216
|
+
/** <Databricks> account ID */
|
|
217
|
+
accountId?: string | undefined;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface CreateAccountServicePrincipalRequest {
|
|
221
|
+
/** If this user is active */
|
|
222
|
+
active?: boolean | undefined;
|
|
223
|
+
/** UUID relating to the service principal */
|
|
224
|
+
applicationId?: string | undefined;
|
|
225
|
+
/** String that represents a concatenation of given and family names. */
|
|
226
|
+
displayName?: string | undefined;
|
|
227
|
+
externalId?: string | undefined;
|
|
228
|
+
/** <Databricks> service principal ID. */
|
|
229
|
+
id?: string | undefined;
|
|
230
|
+
/** Indicates if the group has the admin role. */
|
|
231
|
+
roles?: AccountComplexValue[] | undefined;
|
|
232
|
+
/** <Databricks> account ID */
|
|
233
|
+
accountId?: string | undefined;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface CreateAccountUserRequest {
|
|
237
|
+
/** If this user is active */
|
|
238
|
+
active?: boolean | undefined;
|
|
239
|
+
/** String that represents a concatenation of given and family names. For example `John Smith`. */
|
|
240
|
+
displayName?: string | undefined;
|
|
241
|
+
/** All the emails associated with the <Databricks> user. */
|
|
242
|
+
emails?: AccountComplexValue[] | undefined;
|
|
243
|
+
/** External ID is not currently supported. It is reserved for future use. */
|
|
244
|
+
externalId?: string | undefined;
|
|
245
|
+
/** <Databricks> user ID. */
|
|
246
|
+
id?: string | undefined;
|
|
247
|
+
name?: AccountName | undefined;
|
|
248
|
+
/** Indicates if the group has the admin role. */
|
|
249
|
+
roles?: AccountComplexValue[] | undefined;
|
|
250
|
+
/** Email address of the <Databricks> user. */
|
|
251
|
+
userName?: string | undefined;
|
|
252
|
+
/** <Databricks> account ID */
|
|
253
|
+
accountId?: string | undefined;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface CreateGroupRequest {
|
|
257
|
+
/** String that represents a human-readable group name */
|
|
258
|
+
displayName?: string | undefined;
|
|
259
|
+
/** Entitlements assigned to the group. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
260
|
+
entitlements?: ComplexValue[] | undefined;
|
|
261
|
+
externalId?: string | undefined;
|
|
262
|
+
groups?: ComplexValue[] | undefined;
|
|
263
|
+
/** <Databricks> group ID */
|
|
264
|
+
id?: string | undefined;
|
|
265
|
+
members?: ComplexValue[] | undefined;
|
|
266
|
+
/** Container for the group identifier. Workspace local versus account. */
|
|
267
|
+
meta?: ResourceMeta | undefined;
|
|
268
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
269
|
+
roles?: ComplexValue[] | undefined;
|
|
270
|
+
/** The schema of the group. */
|
|
271
|
+
schemas?: GroupSchema[] | undefined;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface CreateServicePrincipalRequest {
|
|
275
|
+
/** If this user is active */
|
|
276
|
+
active?: boolean | undefined;
|
|
277
|
+
/** UUID relating to the service principal */
|
|
278
|
+
applicationId?: string | undefined;
|
|
279
|
+
/** String that represents a concatenation of given and family names. */
|
|
280
|
+
displayName?: string | undefined;
|
|
281
|
+
/** Entitlements assigned to the service principal. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
282
|
+
entitlements?: ComplexValue[] | undefined;
|
|
283
|
+
externalId?: string | undefined;
|
|
284
|
+
groups?: ComplexValue[] | undefined;
|
|
285
|
+
/** <Databricks> service principal ID. */
|
|
286
|
+
id?: string | undefined;
|
|
287
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
288
|
+
roles?: ComplexValue[] | undefined;
|
|
289
|
+
/** The schema of the List response. */
|
|
290
|
+
schemas?: ServicePrincipalSchema[] | undefined;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export interface CreateUserRequest {
|
|
294
|
+
/** If this user is active */
|
|
295
|
+
active?: boolean | undefined;
|
|
296
|
+
/** String that represents a concatenation of given and family names. For example `John Smith`. This field cannot be updated through the Workspace SCIM APIs when [identity federation is enabled](https://docs.databricks.com/administration-guide/users-groups/best-practices.html#enable-identity-federation). Use Account SCIM APIs to update `displayName`. */
|
|
297
|
+
displayName?: string | undefined;
|
|
298
|
+
/** All the emails associated with the <Databricks> user. */
|
|
299
|
+
emails?: ComplexValue[] | undefined;
|
|
300
|
+
/** Entitlements assigned to the user. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
301
|
+
entitlements?: ComplexValue[] | undefined;
|
|
302
|
+
/** External ID is not currently supported. It is reserved for future use. */
|
|
303
|
+
externalId?: string | undefined;
|
|
304
|
+
groups?: ComplexValue[] | undefined;
|
|
305
|
+
/** <Databricks> user ID. */
|
|
306
|
+
id?: string | undefined;
|
|
307
|
+
name?: Name | undefined;
|
|
308
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
309
|
+
roles?: ComplexValue[] | undefined;
|
|
310
|
+
/** The schema of the user. */
|
|
311
|
+
schemas?: UserSchema[] | undefined;
|
|
312
|
+
/** Email address of the <Databricks> user. */
|
|
313
|
+
userName?: string | undefined;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/** Delete a group */
|
|
317
|
+
export interface DeleteAccountGroupRequest {
|
|
318
|
+
/** Unique ID for a group in the <Databricks> account. */
|
|
319
|
+
id?: string | undefined;
|
|
320
|
+
/** <Databricks> account ID */
|
|
321
|
+
accountId?: string | undefined;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** Delete a service principal */
|
|
325
|
+
export interface DeleteAccountServicePrincipalRequest {
|
|
326
|
+
/** Unique ID for a service principal in the <Databricks> account. */
|
|
327
|
+
id?: string | undefined;
|
|
328
|
+
/** <Databricks> account ID */
|
|
329
|
+
accountId?: string | undefined;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/** Delete a user */
|
|
333
|
+
export interface DeleteAccountUserRequest {
|
|
334
|
+
/** Unique ID for a user in the <Databricks> account. */
|
|
335
|
+
id?: string | undefined;
|
|
336
|
+
/** <Databricks> account ID */
|
|
337
|
+
accountId?: string | undefined;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/** Delete a group */
|
|
341
|
+
export interface DeleteGroupRequest {
|
|
342
|
+
/** Unique ID for a group in the <Databricks> workspace. */
|
|
343
|
+
id?: string | undefined;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** Delete a service principal */
|
|
347
|
+
export interface DeleteServicePrincipalRequest {
|
|
348
|
+
/** Unique ID for a service principal in the <Databricks> workspace. */
|
|
349
|
+
id?: string | undefined;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/** Delete a user */
|
|
353
|
+
export interface DeleteUserRequest {
|
|
354
|
+
/** Unique ID for a user in the <Databricks> workspace. */
|
|
355
|
+
id?: string | undefined;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/** Get group details */
|
|
359
|
+
export interface GetAccountGroupRequest {
|
|
360
|
+
/** Unique ID for a group in the <Databricks> account. */
|
|
361
|
+
id?: string | undefined;
|
|
362
|
+
/** <Databricks> account ID */
|
|
363
|
+
accountId?: string | undefined;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/** Get service principal details */
|
|
367
|
+
export interface GetAccountServicePrincipalRequest {
|
|
368
|
+
/** Unique ID for a service principal in the <Databricks> account. */
|
|
369
|
+
id?: string | undefined;
|
|
370
|
+
/** <Databricks> account ID */
|
|
371
|
+
accountId?: string | undefined;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/** Get user details */
|
|
375
|
+
export interface GetAccountUserRequest {
|
|
376
|
+
/** Comma-separated list of attributes to return in response. */
|
|
377
|
+
attributes?: string | undefined;
|
|
378
|
+
/** Desired number of results per page. Default is 10000. */
|
|
379
|
+
count?: number | undefined;
|
|
380
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
381
|
+
excludedAttributes?: string | undefined;
|
|
382
|
+
/** Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions. */
|
|
383
|
+
filter?: string | undefined;
|
|
384
|
+
/** Unique ID for a user in the <Databricks> account. */
|
|
385
|
+
id?: string | undefined;
|
|
386
|
+
/** Attribute to sort the results. Multi-part paths are supported. For example, `userName`, `name.givenName`, and `emails`. */
|
|
387
|
+
sortBy?: string | undefined;
|
|
388
|
+
/** The order to sort the results. */
|
|
389
|
+
sortOrder?: AccountGetSortOrder_GetSortOrder | undefined;
|
|
390
|
+
/** Specifies the index of the first result. First item is number 1. */
|
|
391
|
+
startIndex?: number | undefined;
|
|
392
|
+
/** <Databricks> account ID */
|
|
393
|
+
accountId?: string | undefined;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/** Get group details */
|
|
397
|
+
export interface GetGroupRequest {
|
|
398
|
+
/** Unique ID for a group in the <Databricks> workspace. */
|
|
399
|
+
id?: string | undefined;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/** Get object permission levels */
|
|
403
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
404
|
+
export interface GetPasswordPermissionLevelsRequest {}
|
|
405
|
+
|
|
406
|
+
export interface GetPasswordPermissionLevelsResponse {
|
|
407
|
+
/** Specific permission levels */
|
|
408
|
+
permissionLevels?: PasswordPermissionsDescription[] | undefined;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
412
|
+
export interface GetPasswordPermissionsRequest {}
|
|
413
|
+
|
|
414
|
+
/** Get service principal details */
|
|
415
|
+
export interface GetServicePrincipalRequest {
|
|
416
|
+
/** Unique ID for a service principal in the <Databricks> workspace. */
|
|
417
|
+
id?: string | undefined;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/** Get user details */
|
|
421
|
+
export interface GetUserRequest {
|
|
422
|
+
/** Comma-separated list of attributes to return in response. */
|
|
423
|
+
attributes?: string | undefined;
|
|
424
|
+
/** Desired number of results per page. */
|
|
425
|
+
count?: number | undefined;
|
|
426
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
427
|
+
excludedAttributes?: string | undefined;
|
|
428
|
+
/** Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions. */
|
|
429
|
+
filter?: string | undefined;
|
|
430
|
+
/** Unique ID for a user in the <Databricks> workspace. */
|
|
431
|
+
id?: string | undefined;
|
|
432
|
+
/** Attribute to sort the results. Multi-part paths are supported. For example, `userName`, `name.givenName`, and `emails`. */
|
|
433
|
+
sortBy?: string | undefined;
|
|
434
|
+
/** The order to sort the results. */
|
|
435
|
+
sortOrder?: GetSortOrder | undefined;
|
|
436
|
+
/** Specifies the index of the first result. First item is number 1. */
|
|
437
|
+
startIndex?: number | undefined;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export interface Group {
|
|
441
|
+
/** String that represents a human-readable group name */
|
|
442
|
+
displayName?: string | undefined;
|
|
443
|
+
/** Entitlements assigned to the group. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
444
|
+
entitlements?: ComplexValue[] | undefined;
|
|
445
|
+
/** external_id should be unique for identifying groups */
|
|
446
|
+
externalId?: string | undefined;
|
|
447
|
+
groups?: ComplexValue[] | undefined;
|
|
448
|
+
/** <Databricks> group ID */
|
|
449
|
+
id?: string | undefined;
|
|
450
|
+
members?: ComplexValue[] | undefined;
|
|
451
|
+
/** Container for the group identifier. Workspace local versus account. */
|
|
452
|
+
meta?: ResourceMeta | undefined;
|
|
453
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
454
|
+
roles?: ComplexValue[] | undefined;
|
|
455
|
+
/** The schema of the group. */
|
|
456
|
+
schemas?: GroupSchema[] | undefined;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/** List group details */
|
|
460
|
+
export interface ListAccountGroupsRequest {
|
|
461
|
+
/** <Databricks> account ID */
|
|
462
|
+
accountId?: string | undefined;
|
|
463
|
+
/** Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions. */
|
|
464
|
+
filter?: string | undefined;
|
|
465
|
+
/** Comma-separated list of attributes to return in response. */
|
|
466
|
+
attributes?: string | undefined;
|
|
467
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
468
|
+
excludedAttributes?: string | undefined;
|
|
469
|
+
/** Specifies the index of the first result. First item is number 1. */
|
|
470
|
+
startIndex?: bigint | undefined;
|
|
471
|
+
/** Desired number of results per page. Default is 10000. */
|
|
472
|
+
count?: bigint | undefined;
|
|
473
|
+
/** Attribute to sort the results. */
|
|
474
|
+
sortBy?: string | undefined;
|
|
475
|
+
/** The order to sort the results. */
|
|
476
|
+
sortOrder?: AccountListSort_Order | undefined;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export interface ListAccountGroupsResponse {
|
|
480
|
+
/** Total results returned in the response. */
|
|
481
|
+
itemsPerPage?: number | undefined;
|
|
482
|
+
/** User objects returned in the response. */
|
|
483
|
+
resources?: AccountGroup[] | undefined;
|
|
484
|
+
/** Starting index of all the results that matched the request filters. First item is number 1. */
|
|
485
|
+
startIndex?: bigint | undefined;
|
|
486
|
+
/** Total results that match the request filters. */
|
|
487
|
+
totalResults?: number | undefined;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/** List service principals */
|
|
491
|
+
export interface ListAccountServicePrincipalsRequest {
|
|
492
|
+
/** Comma-separated list of attributes to return in response. */
|
|
493
|
+
attributes?: string | undefined;
|
|
494
|
+
/** Desired number of results per page. Default is 10000. */
|
|
495
|
+
count?: bigint | undefined;
|
|
496
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
497
|
+
excludedAttributes?: string | undefined;
|
|
498
|
+
/** Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions. */
|
|
499
|
+
filter?: string | undefined;
|
|
500
|
+
/** Attribute to sort the results. */
|
|
501
|
+
sortBy?: string | undefined;
|
|
502
|
+
/** The order to sort the results. */
|
|
503
|
+
sortOrder?: AccountListSort_Order | undefined;
|
|
504
|
+
/** Specifies the index of the first result. First item is number 1. */
|
|
505
|
+
startIndex?: bigint | undefined;
|
|
506
|
+
/** <Databricks> account ID */
|
|
507
|
+
accountId?: string | undefined;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export interface ListAccountServicePrincipalsResponse {
|
|
511
|
+
/** Total results returned in the response. */
|
|
512
|
+
itemsPerPage?: number | undefined;
|
|
513
|
+
/** User objects returned in the response. */
|
|
514
|
+
resources?: AccountServicePrincipal[] | undefined;
|
|
515
|
+
/** Starting index of all the results that matched the request filters. First item is number 1. */
|
|
516
|
+
startIndex?: bigint | undefined;
|
|
517
|
+
/** Total results that match the request filters. */
|
|
518
|
+
totalResults?: number | undefined;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/** List users */
|
|
522
|
+
export interface ListAccountUsersRequest {
|
|
523
|
+
/** Comma-separated list of attributes to return in response. */
|
|
524
|
+
attributes?: string | undefined;
|
|
525
|
+
/** Desired number of results per page. Default is 10000. */
|
|
526
|
+
count?: bigint | undefined;
|
|
527
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
528
|
+
excludedAttributes?: string | undefined;
|
|
529
|
+
/** Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions. */
|
|
530
|
+
filter?: string | undefined;
|
|
531
|
+
/** Attribute to sort the results. Multi-part paths are supported. For example, `userName`, `name.givenName`, and `emails`. */
|
|
532
|
+
sortBy?: string | undefined;
|
|
533
|
+
/** The order to sort the results. */
|
|
534
|
+
sortOrder?: AccountListSort_Order | undefined;
|
|
535
|
+
/** Specifies the index of the first result. First item is number 1. */
|
|
536
|
+
startIndex?: bigint | undefined;
|
|
537
|
+
/** <Databricks> account ID */
|
|
538
|
+
accountId?: string | undefined;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export interface ListAccountUsersResponse {
|
|
542
|
+
/** Total results returned in the response. */
|
|
543
|
+
itemsPerPage?: number | undefined;
|
|
544
|
+
/** User objects returned in the response. */
|
|
545
|
+
resources?: AccountUser[] | undefined;
|
|
546
|
+
/** Starting index of all the results that matched the request filters. First item is number 1. */
|
|
547
|
+
startIndex?: bigint | undefined;
|
|
548
|
+
/** Total results that match the request filters. */
|
|
549
|
+
totalResults?: number | undefined;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/** List group details */
|
|
553
|
+
export interface ListGroupsRequest {
|
|
554
|
+
/** Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions. */
|
|
555
|
+
filter?: string | undefined;
|
|
556
|
+
/** Comma-separated list of attributes to return in response. */
|
|
557
|
+
attributes?: string | undefined;
|
|
558
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
559
|
+
excludedAttributes?: string | undefined;
|
|
560
|
+
/** Specifies the index of the first result. First item is number 1. */
|
|
561
|
+
startIndex?: bigint | undefined;
|
|
562
|
+
/** Desired number of results per page. */
|
|
563
|
+
count?: bigint | undefined;
|
|
564
|
+
/** Attribute to sort the results. */
|
|
565
|
+
sortBy?: string | undefined;
|
|
566
|
+
/** The order to sort the results. */
|
|
567
|
+
sortOrder?: ListSort_Order | undefined;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export interface ListGroupsResponse {
|
|
571
|
+
/** Total results returned in the response. */
|
|
572
|
+
itemsPerPage?: number | undefined;
|
|
573
|
+
/** User objects returned in the response. */
|
|
574
|
+
resources?: Group[] | undefined;
|
|
575
|
+
/** The schema of the service principal. */
|
|
576
|
+
schemas?: ListResponseSchema[] | undefined;
|
|
577
|
+
/** Starting index of all the results that matched the request filters. First item is number 1. */
|
|
578
|
+
startIndex?: bigint | undefined;
|
|
579
|
+
/** Total results that match the request filters. */
|
|
580
|
+
totalResults?: number | undefined;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
export interface ListServicePrincipalResponse {
|
|
584
|
+
/** Total results returned in the response. */
|
|
585
|
+
itemsPerPage?: number | undefined;
|
|
586
|
+
/** User objects returned in the response. */
|
|
587
|
+
resources?: ServicePrincipal[] | undefined;
|
|
588
|
+
/** The schema of the List response. */
|
|
589
|
+
schemas?: ListResponseSchema[] | undefined;
|
|
590
|
+
/** Starting index of all the results that matched the request filters. First item is number 1. */
|
|
591
|
+
startIndex?: bigint | undefined;
|
|
592
|
+
/** Total results that match the request filters. */
|
|
593
|
+
totalResults?: number | undefined;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/** List service principals */
|
|
597
|
+
export interface ListServicePrincipalsRequest {
|
|
598
|
+
/** Comma-separated list of attributes to return in response. */
|
|
599
|
+
attributes?: string | undefined;
|
|
600
|
+
/** Desired number of results per page. */
|
|
601
|
+
count?: bigint | undefined;
|
|
602
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
603
|
+
excludedAttributes?: string | undefined;
|
|
604
|
+
/** Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions. */
|
|
605
|
+
filter?: string | undefined;
|
|
606
|
+
/** Attribute to sort the results. */
|
|
607
|
+
sortBy?: string | undefined;
|
|
608
|
+
/** The order to sort the results. */
|
|
609
|
+
sortOrder?: ListSort_Order | undefined;
|
|
610
|
+
/** Specifies the index of the first result. First item is number 1. */
|
|
611
|
+
startIndex?: bigint | undefined;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* ListSortOrder and GetSortOrder share enum values, which is not supported.
|
|
616
|
+
* We use nesting as a workaround.
|
|
617
|
+
*/
|
|
618
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
619
|
+
export interface ListSort {}
|
|
620
|
+
|
|
621
|
+
/** List users */
|
|
622
|
+
export interface ListUsersRequest {
|
|
623
|
+
/** Comma-separated list of attributes to return in response. */
|
|
624
|
+
attributes?: string | undefined;
|
|
625
|
+
/** Desired number of results per page. */
|
|
626
|
+
count?: bigint | undefined;
|
|
627
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
628
|
+
excludedAttributes?: string | undefined;
|
|
629
|
+
/** Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions. */
|
|
630
|
+
filter?: string | undefined;
|
|
631
|
+
/** Attribute to sort the results. Multi-part paths are supported. For example, `userName`, `name.givenName`, and `emails`. */
|
|
632
|
+
sortBy?: string | undefined;
|
|
633
|
+
/** The order to sort the results. */
|
|
634
|
+
sortOrder?: ListSort_Order | undefined;
|
|
635
|
+
/** Specifies the index of the first result. First item is number 1. */
|
|
636
|
+
startIndex?: bigint | undefined;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export interface ListUsersResponse {
|
|
640
|
+
/** Total results returned in the response. */
|
|
641
|
+
itemsPerPage?: number | undefined;
|
|
642
|
+
/** User objects returned in the response. */
|
|
643
|
+
resources?: User[] | undefined;
|
|
644
|
+
/** The schema of the List response. */
|
|
645
|
+
schemas?: ListResponseSchema[] | undefined;
|
|
646
|
+
/** Starting index of all the results that matched the request filters. First item is number 1. */
|
|
647
|
+
startIndex?: bigint | undefined;
|
|
648
|
+
/** Total results that match the request filters. */
|
|
649
|
+
totalResults?: number | undefined;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export interface MeRequest {
|
|
653
|
+
/** Comma-separated list of attributes to return in response. */
|
|
654
|
+
attributes?: string | undefined;
|
|
655
|
+
/** Comma-separated list of attributes to exclude in response. */
|
|
656
|
+
excludedAttributes?: string | undefined;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
export interface Name {
|
|
660
|
+
/** Family name of the <Databricks> user. */
|
|
661
|
+
familyName?: string | undefined;
|
|
662
|
+
/** Given name of the <Databricks> user. */
|
|
663
|
+
givenName?: string | undefined;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export interface PasswordAccessControlRequest {
|
|
667
|
+
/** name of the group */
|
|
668
|
+
groupName?: string | undefined;
|
|
669
|
+
/** Permission level */
|
|
670
|
+
permissionLevel?: PasswordPermission_Level | undefined;
|
|
671
|
+
/** application ID of a service principal */
|
|
672
|
+
servicePrincipalName?: string | undefined;
|
|
673
|
+
/** name of the user */
|
|
674
|
+
userName?: string | undefined;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export interface PasswordAccessControlResponse {
|
|
678
|
+
/** All permissions. */
|
|
679
|
+
allPermissions?: PasswordPermission[] | undefined;
|
|
680
|
+
/** Display name of the user or service principal. */
|
|
681
|
+
displayName?: string | undefined;
|
|
682
|
+
/** name of the group */
|
|
683
|
+
groupName?: string | undefined;
|
|
684
|
+
/** Name of the service principal. */
|
|
685
|
+
servicePrincipalName?: string | undefined;
|
|
686
|
+
/** name of the user */
|
|
687
|
+
userName?: string | undefined;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export interface PasswordPermission {
|
|
691
|
+
inherited?: boolean | undefined;
|
|
692
|
+
inheritedFromObject?: string[] | undefined;
|
|
693
|
+
/** Permission level */
|
|
694
|
+
permissionLevel?: PasswordPermission_Level | undefined;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export interface PasswordPermissions {
|
|
698
|
+
accessControlList?: PasswordAccessControlResponse[] | undefined;
|
|
699
|
+
objectId?: string | undefined;
|
|
700
|
+
objectType?: string | undefined;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export interface PasswordPermissionsDescription {
|
|
704
|
+
description?: string | undefined;
|
|
705
|
+
/** Permission level */
|
|
706
|
+
permissionLevel?: PasswordPermission_Level | undefined;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
export interface PasswordPermissionsRequest {
|
|
710
|
+
accessControlList?: PasswordAccessControlRequest[] | undefined;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export interface Patch {
|
|
714
|
+
/** Type of patch operation. */
|
|
715
|
+
op?: PatchOp | undefined;
|
|
716
|
+
/** Selection of patch operation */
|
|
717
|
+
path?: string | undefined;
|
|
718
|
+
/** Value to modify */
|
|
719
|
+
value?: JsonValue | undefined;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
export interface PatchAccountGroupRequest {
|
|
723
|
+
/** Unique ID in the <Databricks> workspace. */
|
|
724
|
+
id?: string | undefined;
|
|
725
|
+
operations?: AccountPatch[] | undefined;
|
|
726
|
+
/** The schema of the patch request. Must be ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]. */
|
|
727
|
+
schemas?: AccountPatchSchema_PatchSchema[] | undefined;
|
|
728
|
+
/** <Databricks> account ID */
|
|
729
|
+
accountId?: string | undefined;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export interface PatchAccountServicePrincipalRequest {
|
|
733
|
+
/** Unique ID in the <Databricks> workspace. */
|
|
734
|
+
id?: string | undefined;
|
|
735
|
+
operations?: AccountPatch[] | undefined;
|
|
736
|
+
/** The schema of the patch request. Must be ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]. */
|
|
737
|
+
schemas?: AccountPatchSchema_PatchSchema[] | undefined;
|
|
738
|
+
/** <Databricks> account ID */
|
|
739
|
+
accountId?: string | undefined;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export interface PatchAccountUserRequest {
|
|
743
|
+
/** Unique ID in the <Databricks> workspace. */
|
|
744
|
+
id?: string | undefined;
|
|
745
|
+
operations?: AccountPatch[] | undefined;
|
|
746
|
+
/** The schema of the patch request. Must be ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]. */
|
|
747
|
+
schemas?: AccountPatchSchema_PatchSchema[] | undefined;
|
|
748
|
+
/** <Databricks> account ID */
|
|
749
|
+
accountId?: string | undefined;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export interface PatchGroupRequest {
|
|
753
|
+
/** Unique ID in the <Databricks> workspace. */
|
|
754
|
+
id?: string | undefined;
|
|
755
|
+
operations?: Patch[] | undefined;
|
|
756
|
+
/** The schema of the patch request. Must be ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]. */
|
|
757
|
+
schemas?: PatchSchema[] | undefined;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export interface PatchServicePrincipalRequest {
|
|
761
|
+
/** Unique ID in the <Databricks> workspace. */
|
|
762
|
+
id?: string | undefined;
|
|
763
|
+
operations?: Patch[] | undefined;
|
|
764
|
+
/** The schema of the patch request. Must be ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]. */
|
|
765
|
+
schemas?: PatchSchema[] | undefined;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
export interface PatchUserRequest {
|
|
769
|
+
/** Unique ID in the <Databricks> workspace. */
|
|
770
|
+
id?: string | undefined;
|
|
771
|
+
operations?: Patch[] | undefined;
|
|
772
|
+
/** The schema of the patch request. Must be ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]. */
|
|
773
|
+
schemas?: PatchSchema[] | undefined;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export interface ResourceMeta {
|
|
777
|
+
/** Identifier for group type. Can be local workspace group (`WorkspaceGroup`) or account group (`Group`). */
|
|
778
|
+
resourceType?: string | undefined;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export interface ServicePrincipal {
|
|
782
|
+
/** If this user is active */
|
|
783
|
+
active?: boolean | undefined;
|
|
784
|
+
/** UUID relating to the service principal */
|
|
785
|
+
applicationId?: string | undefined;
|
|
786
|
+
/** String that represents a concatenation of given and family names. */
|
|
787
|
+
displayName?: string | undefined;
|
|
788
|
+
/** Entitlements assigned to the service principal. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
789
|
+
entitlements?: ComplexValue[] | undefined;
|
|
790
|
+
externalId?: string | undefined;
|
|
791
|
+
groups?: ComplexValue[] | undefined;
|
|
792
|
+
/** <Databricks> service principal ID. */
|
|
793
|
+
id?: string | undefined;
|
|
794
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
795
|
+
roles?: ComplexValue[] | undefined;
|
|
796
|
+
/** The schema of the List response. */
|
|
797
|
+
schemas?: ServicePrincipalSchema[] | undefined;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export interface UpdateAccountGroupRequest {
|
|
801
|
+
/** String that represents a human-readable group name */
|
|
802
|
+
displayName?: string | undefined;
|
|
803
|
+
externalId?: string | undefined;
|
|
804
|
+
/** <Databricks> group ID */
|
|
805
|
+
id?: string | undefined;
|
|
806
|
+
members?: AccountComplexValue[] | undefined;
|
|
807
|
+
/** Container for the group identifier. Workspace local versus account. */
|
|
808
|
+
meta?: AccountResourceMeta | undefined;
|
|
809
|
+
/** Indicates if the group has the admin role. */
|
|
810
|
+
roles?: AccountComplexValue[] | undefined;
|
|
811
|
+
/** <Databricks> account ID */
|
|
812
|
+
accountId?: string | undefined;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export interface UpdateAccountServicePrincipalRequest {
|
|
816
|
+
/** If this user is active */
|
|
817
|
+
active?: boolean | undefined;
|
|
818
|
+
/** UUID relating to the service principal */
|
|
819
|
+
applicationId?: string | undefined;
|
|
820
|
+
/** String that represents a concatenation of given and family names. */
|
|
821
|
+
displayName?: string | undefined;
|
|
822
|
+
externalId?: string | undefined;
|
|
823
|
+
/** <Databricks> service principal ID. */
|
|
824
|
+
id?: string | undefined;
|
|
825
|
+
/** Indicates if the group has the admin role. */
|
|
826
|
+
roles?: AccountComplexValue[] | undefined;
|
|
827
|
+
/** <Databricks> account ID */
|
|
828
|
+
accountId?: string | undefined;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export interface UpdateAccountUserRequest {
|
|
832
|
+
/** If this user is active */
|
|
833
|
+
active?: boolean | undefined;
|
|
834
|
+
/** String that represents a concatenation of given and family names. For example `John Smith`. */
|
|
835
|
+
displayName?: string | undefined;
|
|
836
|
+
/** All the emails associated with the <Databricks> user. */
|
|
837
|
+
emails?: AccountComplexValue[] | undefined;
|
|
838
|
+
/** External ID is not currently supported. It is reserved for future use. */
|
|
839
|
+
externalId?: string | undefined;
|
|
840
|
+
/** <Databricks> user ID. */
|
|
841
|
+
id?: string | undefined;
|
|
842
|
+
name?: AccountName | undefined;
|
|
843
|
+
/** Indicates if the group has the admin role. */
|
|
844
|
+
roles?: AccountComplexValue[] | undefined;
|
|
845
|
+
/** Email address of the <Databricks> user. */
|
|
846
|
+
userName?: string | undefined;
|
|
847
|
+
/** <Databricks> account ID */
|
|
848
|
+
accountId?: string | undefined;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
export interface UpdateGroupRequest {
|
|
852
|
+
/** String that represents a human-readable group name */
|
|
853
|
+
displayName?: string | undefined;
|
|
854
|
+
/** Entitlements assigned to the group. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
855
|
+
entitlements?: ComplexValue[] | undefined;
|
|
856
|
+
externalId?: string | undefined;
|
|
857
|
+
groups?: ComplexValue[] | undefined;
|
|
858
|
+
/** <Databricks> group ID */
|
|
859
|
+
id?: string | undefined;
|
|
860
|
+
members?: ComplexValue[] | undefined;
|
|
861
|
+
/** Container for the group identifier. Workspace local versus account. */
|
|
862
|
+
meta?: ResourceMeta | undefined;
|
|
863
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
864
|
+
roles?: ComplexValue[] | undefined;
|
|
865
|
+
/** The schema of the group. */
|
|
866
|
+
schemas?: GroupSchema[] | undefined;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export interface UpdateServicePrincipalRequest {
|
|
870
|
+
/** If this user is active */
|
|
871
|
+
active?: boolean | undefined;
|
|
872
|
+
/** UUID relating to the service principal */
|
|
873
|
+
applicationId?: string | undefined;
|
|
874
|
+
/** String that represents a concatenation of given and family names. */
|
|
875
|
+
displayName?: string | undefined;
|
|
876
|
+
/** Entitlements assigned to the service principal. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
877
|
+
entitlements?: ComplexValue[] | undefined;
|
|
878
|
+
externalId?: string | undefined;
|
|
879
|
+
groups?: ComplexValue[] | undefined;
|
|
880
|
+
/** <Databricks> service principal ID. */
|
|
881
|
+
id?: string | undefined;
|
|
882
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
883
|
+
roles?: ComplexValue[] | undefined;
|
|
884
|
+
/** The schema of the List response. */
|
|
885
|
+
schemas?: ServicePrincipalSchema[] | undefined;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export interface UpdateUserRequest {
|
|
889
|
+
/** If this user is active */
|
|
890
|
+
active?: boolean | undefined;
|
|
891
|
+
/** String that represents a concatenation of given and family names. For example `John Smith`. This field cannot be updated through the Workspace SCIM APIs when [identity federation is enabled](https://docs.databricks.com/administration-guide/users-groups/best-practices.html#enable-identity-federation). Use Account SCIM APIs to update `displayName`. */
|
|
892
|
+
displayName?: string | undefined;
|
|
893
|
+
/** All the emails associated with the <Databricks> user. */
|
|
894
|
+
emails?: ComplexValue[] | undefined;
|
|
895
|
+
/** Entitlements assigned to the user. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
896
|
+
entitlements?: ComplexValue[] | undefined;
|
|
897
|
+
/** External ID is not currently supported. It is reserved for future use. */
|
|
898
|
+
externalId?: string | undefined;
|
|
899
|
+
groups?: ComplexValue[] | undefined;
|
|
900
|
+
/** <Databricks> user ID. */
|
|
901
|
+
id?: string | undefined;
|
|
902
|
+
name?: Name | undefined;
|
|
903
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
904
|
+
roles?: ComplexValue[] | undefined;
|
|
905
|
+
/** The schema of the user. */
|
|
906
|
+
schemas?: UserSchema[] | undefined;
|
|
907
|
+
/** Email address of the <Databricks> user. */
|
|
908
|
+
userName?: string | undefined;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export interface User {
|
|
912
|
+
/** If this user is active */
|
|
913
|
+
active?: boolean | undefined;
|
|
914
|
+
/** String that represents a concatenation of given and family names. For example `John Smith`. This field cannot be updated through the Workspace SCIM APIs when [identity federation is enabled](https://docs.databricks.com/administration-guide/users-groups/best-practices.html#enable-identity-federation). Use Account SCIM APIs to update `displayName`. */
|
|
915
|
+
displayName?: string | undefined;
|
|
916
|
+
/** All the emails associated with the <Databricks> user. */
|
|
917
|
+
emails?: ComplexValue[] | undefined;
|
|
918
|
+
/** Entitlements assigned to the user. See [assigning entitlements](https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements) for a full list of supported values. */
|
|
919
|
+
entitlements?: ComplexValue[] | undefined;
|
|
920
|
+
/** External ID is not currently supported. It is reserved for future use. */
|
|
921
|
+
externalId?: string | undefined;
|
|
922
|
+
groups?: ComplexValue[] | undefined;
|
|
923
|
+
/** <Databricks> user ID. */
|
|
924
|
+
id?: string | undefined;
|
|
925
|
+
name?: Name | undefined;
|
|
926
|
+
/** Corresponds to AWS instance profile/arn role. */
|
|
927
|
+
roles?: ComplexValue[] | undefined;
|
|
928
|
+
/** The schema of the user. */
|
|
929
|
+
schemas?: UserSchema[] | undefined;
|
|
930
|
+
/** Email address of the <Databricks> user. */
|
|
931
|
+
userName?: string | undefined;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export const unmarshalAccountComplexValueSchema: z.ZodType<AccountComplexValue> =
|
|
935
|
+
z
|
|
936
|
+
.object({
|
|
937
|
+
display: z.string().optional(),
|
|
938
|
+
primary: z.boolean().optional(),
|
|
939
|
+
$ref: z.string().optional(),
|
|
940
|
+
type: z.string().optional(),
|
|
941
|
+
value: z.string().optional(),
|
|
942
|
+
})
|
|
943
|
+
.transform(d => ({
|
|
944
|
+
display: d.display,
|
|
945
|
+
primary: d.primary,
|
|
946
|
+
ref: d.$ref,
|
|
947
|
+
type: d.type,
|
|
948
|
+
value: d.value,
|
|
949
|
+
}));
|
|
950
|
+
|
|
951
|
+
export const unmarshalAccountGroupSchema: z.ZodType<AccountGroup> = z
|
|
952
|
+
.object({
|
|
953
|
+
displayName: z.string().optional(),
|
|
954
|
+
externalId: z.string().optional(),
|
|
955
|
+
id: z.string().optional(),
|
|
956
|
+
members: z
|
|
957
|
+
.array(z.lazy(() => unmarshalAccountComplexValueSchema))
|
|
958
|
+
.optional(),
|
|
959
|
+
meta: z.lazy(() => unmarshalAccountResourceMetaSchema).optional(),
|
|
960
|
+
roles: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
|
|
961
|
+
account_id: z.string().optional(),
|
|
962
|
+
})
|
|
963
|
+
.transform(d => ({
|
|
964
|
+
displayName: d.displayName,
|
|
965
|
+
externalId: d.externalId,
|
|
966
|
+
id: d.id,
|
|
967
|
+
members: d.members,
|
|
968
|
+
meta: d.meta,
|
|
969
|
+
roles: d.roles,
|
|
970
|
+
accountId: d.account_id,
|
|
971
|
+
}));
|
|
972
|
+
|
|
973
|
+
export const unmarshalAccountNameSchema: z.ZodType<AccountName> = z
|
|
974
|
+
.object({
|
|
975
|
+
familyName: z.string().optional(),
|
|
976
|
+
givenName: z.string().optional(),
|
|
977
|
+
})
|
|
978
|
+
.transform(d => ({
|
|
979
|
+
familyName: d.familyName,
|
|
980
|
+
givenName: d.givenName,
|
|
981
|
+
}));
|
|
982
|
+
|
|
983
|
+
export const unmarshalAccountResourceMetaSchema: z.ZodType<AccountResourceMeta> =
|
|
984
|
+
z
|
|
985
|
+
.object({
|
|
986
|
+
resourceType: z.string().optional(),
|
|
987
|
+
})
|
|
988
|
+
.transform(d => ({
|
|
989
|
+
resourceType: d.resourceType,
|
|
990
|
+
}));
|
|
991
|
+
|
|
992
|
+
export const unmarshalAccountServicePrincipalSchema: z.ZodType<AccountServicePrincipal> =
|
|
993
|
+
z
|
|
994
|
+
.object({
|
|
995
|
+
active: z.boolean().optional(),
|
|
996
|
+
applicationId: z.string().optional(),
|
|
997
|
+
displayName: z.string().optional(),
|
|
998
|
+
externalId: z.string().optional(),
|
|
999
|
+
id: z.string().optional(),
|
|
1000
|
+
roles: z
|
|
1001
|
+
.array(z.lazy(() => unmarshalAccountComplexValueSchema))
|
|
1002
|
+
.optional(),
|
|
1003
|
+
account_id: z.string().optional(),
|
|
1004
|
+
})
|
|
1005
|
+
.transform(d => ({
|
|
1006
|
+
active: d.active,
|
|
1007
|
+
applicationId: d.applicationId,
|
|
1008
|
+
displayName: d.displayName,
|
|
1009
|
+
externalId: d.externalId,
|
|
1010
|
+
id: d.id,
|
|
1011
|
+
roles: d.roles,
|
|
1012
|
+
accountId: d.account_id,
|
|
1013
|
+
}));
|
|
1014
|
+
|
|
1015
|
+
export const unmarshalAccountUserSchema: z.ZodType<AccountUser> = z
|
|
1016
|
+
.object({
|
|
1017
|
+
active: z.boolean().optional(),
|
|
1018
|
+
displayName: z.string().optional(),
|
|
1019
|
+
emails: z
|
|
1020
|
+
.array(z.lazy(() => unmarshalAccountComplexValueSchema))
|
|
1021
|
+
.optional(),
|
|
1022
|
+
externalId: z.string().optional(),
|
|
1023
|
+
id: z.string().optional(),
|
|
1024
|
+
name: z.lazy(() => unmarshalAccountNameSchema).optional(),
|
|
1025
|
+
roles: z.array(z.lazy(() => unmarshalAccountComplexValueSchema)).optional(),
|
|
1026
|
+
userName: z.string().optional(),
|
|
1027
|
+
account_id: z.string().optional(),
|
|
1028
|
+
})
|
|
1029
|
+
.transform(d => ({
|
|
1030
|
+
active: d.active,
|
|
1031
|
+
displayName: d.displayName,
|
|
1032
|
+
emails: d.emails,
|
|
1033
|
+
externalId: d.externalId,
|
|
1034
|
+
id: d.id,
|
|
1035
|
+
name: d.name,
|
|
1036
|
+
roles: d.roles,
|
|
1037
|
+
userName: d.userName,
|
|
1038
|
+
accountId: d.account_id,
|
|
1039
|
+
}));
|
|
1040
|
+
|
|
1041
|
+
export const unmarshalComplexValueSchema: z.ZodType<ComplexValue> = z
|
|
1042
|
+
.object({
|
|
1043
|
+
display: z.string().optional(),
|
|
1044
|
+
primary: z.boolean().optional(),
|
|
1045
|
+
$ref: z.string().optional(),
|
|
1046
|
+
type: z.string().optional(),
|
|
1047
|
+
value: z.string().optional(),
|
|
1048
|
+
})
|
|
1049
|
+
.transform(d => ({
|
|
1050
|
+
display: d.display,
|
|
1051
|
+
primary: d.primary,
|
|
1052
|
+
ref: d.$ref,
|
|
1053
|
+
type: d.type,
|
|
1054
|
+
value: d.value,
|
|
1055
|
+
}));
|
|
1056
|
+
|
|
1057
|
+
export const unmarshalGetPasswordPermissionLevelsResponseSchema: z.ZodType<GetPasswordPermissionLevelsResponse> =
|
|
1058
|
+
z
|
|
1059
|
+
.object({
|
|
1060
|
+
permission_levels: z
|
|
1061
|
+
.array(z.lazy(() => unmarshalPasswordPermissionsDescriptionSchema))
|
|
1062
|
+
.optional(),
|
|
1063
|
+
})
|
|
1064
|
+
.transform(d => ({
|
|
1065
|
+
permissionLevels: d.permission_levels,
|
|
1066
|
+
}));
|
|
1067
|
+
|
|
1068
|
+
export const unmarshalGroupSchema: z.ZodType<Group> = z
|
|
1069
|
+
.object({
|
|
1070
|
+
displayName: z.string().optional(),
|
|
1071
|
+
entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1072
|
+
externalId: z.string().optional(),
|
|
1073
|
+
groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1074
|
+
id: z.string().optional(),
|
|
1075
|
+
members: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1076
|
+
meta: z.lazy(() => unmarshalResourceMetaSchema).optional(),
|
|
1077
|
+
roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1078
|
+
schemas: z.array(z.enum(GroupSchema)).optional(),
|
|
1079
|
+
})
|
|
1080
|
+
.transform(d => ({
|
|
1081
|
+
displayName: d.displayName,
|
|
1082
|
+
entitlements: d.entitlements,
|
|
1083
|
+
externalId: d.externalId,
|
|
1084
|
+
groups: d.groups,
|
|
1085
|
+
id: d.id,
|
|
1086
|
+
members: d.members,
|
|
1087
|
+
meta: d.meta,
|
|
1088
|
+
roles: d.roles,
|
|
1089
|
+
schemas: d.schemas,
|
|
1090
|
+
}));
|
|
1091
|
+
|
|
1092
|
+
export const unmarshalListAccountGroupsResponseSchema: z.ZodType<ListAccountGroupsResponse> =
|
|
1093
|
+
z
|
|
1094
|
+
.object({
|
|
1095
|
+
itemsPerPage: z.number().optional(),
|
|
1096
|
+
Resources: z.array(z.lazy(() => unmarshalAccountGroupSchema)).optional(),
|
|
1097
|
+
startIndex: z
|
|
1098
|
+
.union([z.number(), z.bigint()])
|
|
1099
|
+
.transform(v => BigInt(v))
|
|
1100
|
+
.optional(),
|
|
1101
|
+
totalResults: z.number().optional(),
|
|
1102
|
+
})
|
|
1103
|
+
.transform(d => ({
|
|
1104
|
+
itemsPerPage: d.itemsPerPage,
|
|
1105
|
+
resources: d.Resources,
|
|
1106
|
+
startIndex: d.startIndex,
|
|
1107
|
+
totalResults: d.totalResults,
|
|
1108
|
+
}));
|
|
1109
|
+
|
|
1110
|
+
export const unmarshalListAccountServicePrincipalsResponseSchema: z.ZodType<ListAccountServicePrincipalsResponse> =
|
|
1111
|
+
z
|
|
1112
|
+
.object({
|
|
1113
|
+
itemsPerPage: z.number().optional(),
|
|
1114
|
+
Resources: z
|
|
1115
|
+
.array(z.lazy(() => unmarshalAccountServicePrincipalSchema))
|
|
1116
|
+
.optional(),
|
|
1117
|
+
startIndex: z
|
|
1118
|
+
.union([z.number(), z.bigint()])
|
|
1119
|
+
.transform(v => BigInt(v))
|
|
1120
|
+
.optional(),
|
|
1121
|
+
totalResults: z.number().optional(),
|
|
1122
|
+
})
|
|
1123
|
+
.transform(d => ({
|
|
1124
|
+
itemsPerPage: d.itemsPerPage,
|
|
1125
|
+
resources: d.Resources,
|
|
1126
|
+
startIndex: d.startIndex,
|
|
1127
|
+
totalResults: d.totalResults,
|
|
1128
|
+
}));
|
|
1129
|
+
|
|
1130
|
+
export const unmarshalListAccountUsersResponseSchema: z.ZodType<ListAccountUsersResponse> =
|
|
1131
|
+
z
|
|
1132
|
+
.object({
|
|
1133
|
+
itemsPerPage: z.number().optional(),
|
|
1134
|
+
Resources: z.array(z.lazy(() => unmarshalAccountUserSchema)).optional(),
|
|
1135
|
+
startIndex: z
|
|
1136
|
+
.union([z.number(), z.bigint()])
|
|
1137
|
+
.transform(v => BigInt(v))
|
|
1138
|
+
.optional(),
|
|
1139
|
+
totalResults: z.number().optional(),
|
|
1140
|
+
})
|
|
1141
|
+
.transform(d => ({
|
|
1142
|
+
itemsPerPage: d.itemsPerPage,
|
|
1143
|
+
resources: d.Resources,
|
|
1144
|
+
startIndex: d.startIndex,
|
|
1145
|
+
totalResults: d.totalResults,
|
|
1146
|
+
}));
|
|
1147
|
+
|
|
1148
|
+
export const unmarshalListGroupsResponseSchema: z.ZodType<ListGroupsResponse> =
|
|
1149
|
+
z
|
|
1150
|
+
.object({
|
|
1151
|
+
itemsPerPage: z.number().optional(),
|
|
1152
|
+
Resources: z.array(z.lazy(() => unmarshalGroupSchema)).optional(),
|
|
1153
|
+
schemas: z.array(z.enum(ListResponseSchema)).optional(),
|
|
1154
|
+
startIndex: z
|
|
1155
|
+
.union([z.number(), z.bigint()])
|
|
1156
|
+
.transform(v => BigInt(v))
|
|
1157
|
+
.optional(),
|
|
1158
|
+
totalResults: z.number().optional(),
|
|
1159
|
+
})
|
|
1160
|
+
.transform(d => ({
|
|
1161
|
+
itemsPerPage: d.itemsPerPage,
|
|
1162
|
+
resources: d.Resources,
|
|
1163
|
+
schemas: d.schemas,
|
|
1164
|
+
startIndex: d.startIndex,
|
|
1165
|
+
totalResults: d.totalResults,
|
|
1166
|
+
}));
|
|
1167
|
+
|
|
1168
|
+
export const unmarshalListServicePrincipalResponseSchema: z.ZodType<ListServicePrincipalResponse> =
|
|
1169
|
+
z
|
|
1170
|
+
.object({
|
|
1171
|
+
itemsPerPage: z.number().optional(),
|
|
1172
|
+
Resources: z
|
|
1173
|
+
.array(z.lazy(() => unmarshalServicePrincipalSchema))
|
|
1174
|
+
.optional(),
|
|
1175
|
+
schemas: z.array(z.enum(ListResponseSchema)).optional(),
|
|
1176
|
+
startIndex: z
|
|
1177
|
+
.union([z.number(), z.bigint()])
|
|
1178
|
+
.transform(v => BigInt(v))
|
|
1179
|
+
.optional(),
|
|
1180
|
+
totalResults: z.number().optional(),
|
|
1181
|
+
})
|
|
1182
|
+
.transform(d => ({
|
|
1183
|
+
itemsPerPage: d.itemsPerPage,
|
|
1184
|
+
resources: d.Resources,
|
|
1185
|
+
schemas: d.schemas,
|
|
1186
|
+
startIndex: d.startIndex,
|
|
1187
|
+
totalResults: d.totalResults,
|
|
1188
|
+
}));
|
|
1189
|
+
|
|
1190
|
+
export const unmarshalListUsersResponseSchema: z.ZodType<ListUsersResponse> = z
|
|
1191
|
+
.object({
|
|
1192
|
+
itemsPerPage: z.number().optional(),
|
|
1193
|
+
Resources: z.array(z.lazy(() => unmarshalUserSchema)).optional(),
|
|
1194
|
+
schemas: z.array(z.enum(ListResponseSchema)).optional(),
|
|
1195
|
+
startIndex: z
|
|
1196
|
+
.union([z.number(), z.bigint()])
|
|
1197
|
+
.transform(v => BigInt(v))
|
|
1198
|
+
.optional(),
|
|
1199
|
+
totalResults: z.number().optional(),
|
|
1200
|
+
})
|
|
1201
|
+
.transform(d => ({
|
|
1202
|
+
itemsPerPage: d.itemsPerPage,
|
|
1203
|
+
resources: d.Resources,
|
|
1204
|
+
schemas: d.schemas,
|
|
1205
|
+
startIndex: d.startIndex,
|
|
1206
|
+
totalResults: d.totalResults,
|
|
1207
|
+
}));
|
|
1208
|
+
|
|
1209
|
+
export const unmarshalNameSchema: z.ZodType<Name> = z
|
|
1210
|
+
.object({
|
|
1211
|
+
familyName: z.string().optional(),
|
|
1212
|
+
givenName: z.string().optional(),
|
|
1213
|
+
})
|
|
1214
|
+
.transform(d => ({
|
|
1215
|
+
familyName: d.familyName,
|
|
1216
|
+
givenName: d.givenName,
|
|
1217
|
+
}));
|
|
1218
|
+
|
|
1219
|
+
export const unmarshalPasswordAccessControlResponseSchema: z.ZodType<PasswordAccessControlResponse> =
|
|
1220
|
+
z
|
|
1221
|
+
.object({
|
|
1222
|
+
all_permissions: z
|
|
1223
|
+
.array(z.lazy(() => unmarshalPasswordPermissionSchema))
|
|
1224
|
+
.optional(),
|
|
1225
|
+
display_name: z.string().optional(),
|
|
1226
|
+
group_name: z.string().optional(),
|
|
1227
|
+
service_principal_name: z.string().optional(),
|
|
1228
|
+
user_name: z.string().optional(),
|
|
1229
|
+
})
|
|
1230
|
+
.transform(d => ({
|
|
1231
|
+
allPermissions: d.all_permissions,
|
|
1232
|
+
displayName: d.display_name,
|
|
1233
|
+
groupName: d.group_name,
|
|
1234
|
+
servicePrincipalName: d.service_principal_name,
|
|
1235
|
+
userName: d.user_name,
|
|
1236
|
+
}));
|
|
1237
|
+
|
|
1238
|
+
export const unmarshalPasswordPermissionSchema: z.ZodType<PasswordPermission> =
|
|
1239
|
+
z
|
|
1240
|
+
.object({
|
|
1241
|
+
inherited: z.boolean().optional(),
|
|
1242
|
+
inherited_from_object: z.array(z.string()).optional(),
|
|
1243
|
+
permission_level: z.enum(PasswordPermission_Level).optional(),
|
|
1244
|
+
})
|
|
1245
|
+
.transform(d => ({
|
|
1246
|
+
inherited: d.inherited,
|
|
1247
|
+
inheritedFromObject: d.inherited_from_object,
|
|
1248
|
+
permissionLevel: d.permission_level,
|
|
1249
|
+
}));
|
|
1250
|
+
|
|
1251
|
+
export const unmarshalPasswordPermissionsSchema: z.ZodType<PasswordPermissions> =
|
|
1252
|
+
z
|
|
1253
|
+
.object({
|
|
1254
|
+
access_control_list: z
|
|
1255
|
+
.array(z.lazy(() => unmarshalPasswordAccessControlResponseSchema))
|
|
1256
|
+
.optional(),
|
|
1257
|
+
object_id: z.string().optional(),
|
|
1258
|
+
object_type: z.string().optional(),
|
|
1259
|
+
})
|
|
1260
|
+
.transform(d => ({
|
|
1261
|
+
accessControlList: d.access_control_list,
|
|
1262
|
+
objectId: d.object_id,
|
|
1263
|
+
objectType: d.object_type,
|
|
1264
|
+
}));
|
|
1265
|
+
|
|
1266
|
+
export const unmarshalPasswordPermissionsDescriptionSchema: z.ZodType<PasswordPermissionsDescription> =
|
|
1267
|
+
z
|
|
1268
|
+
.object({
|
|
1269
|
+
description: z.string().optional(),
|
|
1270
|
+
permission_level: z.enum(PasswordPermission_Level).optional(),
|
|
1271
|
+
})
|
|
1272
|
+
.transform(d => ({
|
|
1273
|
+
description: d.description,
|
|
1274
|
+
permissionLevel: d.permission_level,
|
|
1275
|
+
}));
|
|
1276
|
+
|
|
1277
|
+
export const unmarshalResourceMetaSchema: z.ZodType<ResourceMeta> = z
|
|
1278
|
+
.object({
|
|
1279
|
+
resourceType: z.string().optional(),
|
|
1280
|
+
})
|
|
1281
|
+
.transform(d => ({
|
|
1282
|
+
resourceType: d.resourceType,
|
|
1283
|
+
}));
|
|
1284
|
+
|
|
1285
|
+
export const unmarshalServicePrincipalSchema: z.ZodType<ServicePrincipal> = z
|
|
1286
|
+
.object({
|
|
1287
|
+
active: z.boolean().optional(),
|
|
1288
|
+
applicationId: z.string().optional(),
|
|
1289
|
+
displayName: z.string().optional(),
|
|
1290
|
+
entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1291
|
+
externalId: z.string().optional(),
|
|
1292
|
+
groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1293
|
+
id: z.string().optional(),
|
|
1294
|
+
roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1295
|
+
schemas: z.array(z.enum(ServicePrincipalSchema)).optional(),
|
|
1296
|
+
})
|
|
1297
|
+
.transform(d => ({
|
|
1298
|
+
active: d.active,
|
|
1299
|
+
applicationId: d.applicationId,
|
|
1300
|
+
displayName: d.displayName,
|
|
1301
|
+
entitlements: d.entitlements,
|
|
1302
|
+
externalId: d.externalId,
|
|
1303
|
+
groups: d.groups,
|
|
1304
|
+
id: d.id,
|
|
1305
|
+
roles: d.roles,
|
|
1306
|
+
schemas: d.schemas,
|
|
1307
|
+
}));
|
|
1308
|
+
|
|
1309
|
+
export const unmarshalUserSchema: z.ZodType<User> = z
|
|
1310
|
+
.object({
|
|
1311
|
+
active: z.boolean().optional(),
|
|
1312
|
+
displayName: z.string().optional(),
|
|
1313
|
+
emails: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1314
|
+
entitlements: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1315
|
+
externalId: z.string().optional(),
|
|
1316
|
+
groups: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1317
|
+
id: z.string().optional(),
|
|
1318
|
+
name: z.lazy(() => unmarshalNameSchema).optional(),
|
|
1319
|
+
roles: z.array(z.lazy(() => unmarshalComplexValueSchema)).optional(),
|
|
1320
|
+
schemas: z.array(z.enum(UserSchema)).optional(),
|
|
1321
|
+
userName: z.string().optional(),
|
|
1322
|
+
})
|
|
1323
|
+
.transform(d => ({
|
|
1324
|
+
active: d.active,
|
|
1325
|
+
displayName: d.displayName,
|
|
1326
|
+
emails: d.emails,
|
|
1327
|
+
entitlements: d.entitlements,
|
|
1328
|
+
externalId: d.externalId,
|
|
1329
|
+
groups: d.groups,
|
|
1330
|
+
id: d.id,
|
|
1331
|
+
name: d.name,
|
|
1332
|
+
roles: d.roles,
|
|
1333
|
+
schemas: d.schemas,
|
|
1334
|
+
userName: d.userName,
|
|
1335
|
+
}));
|
|
1336
|
+
|
|
1337
|
+
export const marshalAccountComplexValueSchema: z.ZodType = z
|
|
1338
|
+
.object({
|
|
1339
|
+
display: z.string().optional(),
|
|
1340
|
+
primary: z.boolean().optional(),
|
|
1341
|
+
ref: z.string().optional(),
|
|
1342
|
+
type: z.string().optional(),
|
|
1343
|
+
value: z.string().optional(),
|
|
1344
|
+
})
|
|
1345
|
+
.transform(d => ({
|
|
1346
|
+
display: d.display,
|
|
1347
|
+
primary: d.primary,
|
|
1348
|
+
$ref: d.ref,
|
|
1349
|
+
type: d.type,
|
|
1350
|
+
value: d.value,
|
|
1351
|
+
}));
|
|
1352
|
+
|
|
1353
|
+
export const marshalAccountNameSchema: z.ZodType = z
|
|
1354
|
+
.object({
|
|
1355
|
+
familyName: z.string().optional(),
|
|
1356
|
+
givenName: z.string().optional(),
|
|
1357
|
+
})
|
|
1358
|
+
.transform(d => ({
|
|
1359
|
+
familyName: d.familyName,
|
|
1360
|
+
givenName: d.givenName,
|
|
1361
|
+
}));
|
|
1362
|
+
|
|
1363
|
+
export const marshalAccountPatchSchema: z.ZodType = z
|
|
1364
|
+
.object({
|
|
1365
|
+
op: z.enum(AccountPatchOp_PatchOp).optional(),
|
|
1366
|
+
path: z.string().optional(),
|
|
1367
|
+
value: jsonValueSchema.optional(),
|
|
1368
|
+
})
|
|
1369
|
+
.transform(d => ({
|
|
1370
|
+
op: d.op,
|
|
1371
|
+
path: d.path,
|
|
1372
|
+
value: d.value,
|
|
1373
|
+
}));
|
|
1374
|
+
|
|
1375
|
+
export const marshalAccountResourceMetaSchema: z.ZodType = z
|
|
1376
|
+
.object({
|
|
1377
|
+
resourceType: z.string().optional(),
|
|
1378
|
+
})
|
|
1379
|
+
.transform(d => ({
|
|
1380
|
+
resourceType: d.resourceType,
|
|
1381
|
+
}));
|
|
1382
|
+
|
|
1383
|
+
export const marshalComplexValueSchema: z.ZodType = z
|
|
1384
|
+
.object({
|
|
1385
|
+
display: z.string().optional(),
|
|
1386
|
+
primary: z.boolean().optional(),
|
|
1387
|
+
ref: z.string().optional(),
|
|
1388
|
+
type: z.string().optional(),
|
|
1389
|
+
value: z.string().optional(),
|
|
1390
|
+
})
|
|
1391
|
+
.transform(d => ({
|
|
1392
|
+
display: d.display,
|
|
1393
|
+
primary: d.primary,
|
|
1394
|
+
$ref: d.ref,
|
|
1395
|
+
type: d.type,
|
|
1396
|
+
value: d.value,
|
|
1397
|
+
}));
|
|
1398
|
+
|
|
1399
|
+
export const marshalCreateAccountGroupRequestSchema: z.ZodType = z
|
|
1400
|
+
.object({
|
|
1401
|
+
displayName: z.string().optional(),
|
|
1402
|
+
externalId: z.string().optional(),
|
|
1403
|
+
id: z.string().optional(),
|
|
1404
|
+
members: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1405
|
+
meta: z.lazy(() => marshalAccountResourceMetaSchema).optional(),
|
|
1406
|
+
roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1407
|
+
accountId: z.string().optional(),
|
|
1408
|
+
})
|
|
1409
|
+
.transform(d => ({
|
|
1410
|
+
displayName: d.displayName,
|
|
1411
|
+
externalId: d.externalId,
|
|
1412
|
+
id: d.id,
|
|
1413
|
+
members: d.members,
|
|
1414
|
+
meta: d.meta,
|
|
1415
|
+
roles: d.roles,
|
|
1416
|
+
account_id: d.accountId,
|
|
1417
|
+
}));
|
|
1418
|
+
|
|
1419
|
+
export const marshalCreateAccountServicePrincipalRequestSchema: z.ZodType = z
|
|
1420
|
+
.object({
|
|
1421
|
+
active: z.boolean().optional(),
|
|
1422
|
+
applicationId: z.string().optional(),
|
|
1423
|
+
displayName: z.string().optional(),
|
|
1424
|
+
externalId: z.string().optional(),
|
|
1425
|
+
id: z.string().optional(),
|
|
1426
|
+
roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1427
|
+
accountId: z.string().optional(),
|
|
1428
|
+
})
|
|
1429
|
+
.transform(d => ({
|
|
1430
|
+
active: d.active,
|
|
1431
|
+
applicationId: d.applicationId,
|
|
1432
|
+
displayName: d.displayName,
|
|
1433
|
+
externalId: d.externalId,
|
|
1434
|
+
id: d.id,
|
|
1435
|
+
roles: d.roles,
|
|
1436
|
+
account_id: d.accountId,
|
|
1437
|
+
}));
|
|
1438
|
+
|
|
1439
|
+
export const marshalCreateAccountUserRequestSchema: z.ZodType = z
|
|
1440
|
+
.object({
|
|
1441
|
+
active: z.boolean().optional(),
|
|
1442
|
+
displayName: z.string().optional(),
|
|
1443
|
+
emails: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1444
|
+
externalId: z.string().optional(),
|
|
1445
|
+
id: z.string().optional(),
|
|
1446
|
+
name: z.lazy(() => marshalAccountNameSchema).optional(),
|
|
1447
|
+
roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1448
|
+
userName: z.string().optional(),
|
|
1449
|
+
accountId: z.string().optional(),
|
|
1450
|
+
})
|
|
1451
|
+
.transform(d => ({
|
|
1452
|
+
active: d.active,
|
|
1453
|
+
displayName: d.displayName,
|
|
1454
|
+
emails: d.emails,
|
|
1455
|
+
externalId: d.externalId,
|
|
1456
|
+
id: d.id,
|
|
1457
|
+
name: d.name,
|
|
1458
|
+
roles: d.roles,
|
|
1459
|
+
userName: d.userName,
|
|
1460
|
+
account_id: d.accountId,
|
|
1461
|
+
}));
|
|
1462
|
+
|
|
1463
|
+
export const marshalCreateGroupRequestSchema: z.ZodType = z
|
|
1464
|
+
.object({
|
|
1465
|
+
displayName: z.string().optional(),
|
|
1466
|
+
entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1467
|
+
externalId: z.string().optional(),
|
|
1468
|
+
groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1469
|
+
id: z.string().optional(),
|
|
1470
|
+
members: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1471
|
+
meta: z.lazy(() => marshalResourceMetaSchema).optional(),
|
|
1472
|
+
roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1473
|
+
schemas: z.array(z.enum(GroupSchema)).optional(),
|
|
1474
|
+
})
|
|
1475
|
+
.transform(d => ({
|
|
1476
|
+
displayName: d.displayName,
|
|
1477
|
+
entitlements: d.entitlements,
|
|
1478
|
+
externalId: d.externalId,
|
|
1479
|
+
groups: d.groups,
|
|
1480
|
+
id: d.id,
|
|
1481
|
+
members: d.members,
|
|
1482
|
+
meta: d.meta,
|
|
1483
|
+
roles: d.roles,
|
|
1484
|
+
schemas: d.schemas,
|
|
1485
|
+
}));
|
|
1486
|
+
|
|
1487
|
+
export const marshalCreateServicePrincipalRequestSchema: z.ZodType = z
|
|
1488
|
+
.object({
|
|
1489
|
+
active: z.boolean().optional(),
|
|
1490
|
+
applicationId: z.string().optional(),
|
|
1491
|
+
displayName: z.string().optional(),
|
|
1492
|
+
entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1493
|
+
externalId: z.string().optional(),
|
|
1494
|
+
groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1495
|
+
id: z.string().optional(),
|
|
1496
|
+
roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1497
|
+
schemas: z.array(z.enum(ServicePrincipalSchema)).optional(),
|
|
1498
|
+
})
|
|
1499
|
+
.transform(d => ({
|
|
1500
|
+
active: d.active,
|
|
1501
|
+
applicationId: d.applicationId,
|
|
1502
|
+
displayName: d.displayName,
|
|
1503
|
+
entitlements: d.entitlements,
|
|
1504
|
+
externalId: d.externalId,
|
|
1505
|
+
groups: d.groups,
|
|
1506
|
+
id: d.id,
|
|
1507
|
+
roles: d.roles,
|
|
1508
|
+
schemas: d.schemas,
|
|
1509
|
+
}));
|
|
1510
|
+
|
|
1511
|
+
export const marshalCreateUserRequestSchema: z.ZodType = z
|
|
1512
|
+
.object({
|
|
1513
|
+
active: z.boolean().optional(),
|
|
1514
|
+
displayName: z.string().optional(),
|
|
1515
|
+
emails: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1516
|
+
entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1517
|
+
externalId: z.string().optional(),
|
|
1518
|
+
groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1519
|
+
id: z.string().optional(),
|
|
1520
|
+
name: z.lazy(() => marshalNameSchema).optional(),
|
|
1521
|
+
roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1522
|
+
schemas: z.array(z.enum(UserSchema)).optional(),
|
|
1523
|
+
userName: z.string().optional(),
|
|
1524
|
+
})
|
|
1525
|
+
.transform(d => ({
|
|
1526
|
+
active: d.active,
|
|
1527
|
+
displayName: d.displayName,
|
|
1528
|
+
emails: d.emails,
|
|
1529
|
+
entitlements: d.entitlements,
|
|
1530
|
+
externalId: d.externalId,
|
|
1531
|
+
groups: d.groups,
|
|
1532
|
+
id: d.id,
|
|
1533
|
+
name: d.name,
|
|
1534
|
+
roles: d.roles,
|
|
1535
|
+
schemas: d.schemas,
|
|
1536
|
+
userName: d.userName,
|
|
1537
|
+
}));
|
|
1538
|
+
|
|
1539
|
+
export const marshalNameSchema: z.ZodType = z
|
|
1540
|
+
.object({
|
|
1541
|
+
familyName: z.string().optional(),
|
|
1542
|
+
givenName: z.string().optional(),
|
|
1543
|
+
})
|
|
1544
|
+
.transform(d => ({
|
|
1545
|
+
familyName: d.familyName,
|
|
1546
|
+
givenName: d.givenName,
|
|
1547
|
+
}));
|
|
1548
|
+
|
|
1549
|
+
export const marshalPasswordAccessControlRequestSchema: z.ZodType = z
|
|
1550
|
+
.object({
|
|
1551
|
+
groupName: z.string().optional(),
|
|
1552
|
+
permissionLevel: z.enum(PasswordPermission_Level).optional(),
|
|
1553
|
+
servicePrincipalName: z.string().optional(),
|
|
1554
|
+
userName: z.string().optional(),
|
|
1555
|
+
})
|
|
1556
|
+
.transform(d => ({
|
|
1557
|
+
group_name: d.groupName,
|
|
1558
|
+
permission_level: d.permissionLevel,
|
|
1559
|
+
service_principal_name: d.servicePrincipalName,
|
|
1560
|
+
user_name: d.userName,
|
|
1561
|
+
}));
|
|
1562
|
+
|
|
1563
|
+
export const marshalPasswordPermissionsRequestSchema: z.ZodType = z
|
|
1564
|
+
.object({
|
|
1565
|
+
accessControlList: z
|
|
1566
|
+
.array(z.lazy(() => marshalPasswordAccessControlRequestSchema))
|
|
1567
|
+
.optional(),
|
|
1568
|
+
})
|
|
1569
|
+
.transform(d => ({
|
|
1570
|
+
access_control_list: d.accessControlList,
|
|
1571
|
+
}));
|
|
1572
|
+
|
|
1573
|
+
export const marshalPatchSchema: z.ZodType = z
|
|
1574
|
+
.object({
|
|
1575
|
+
op: z.enum(PatchOp).optional(),
|
|
1576
|
+
path: z.string().optional(),
|
|
1577
|
+
value: jsonValueSchema.optional(),
|
|
1578
|
+
})
|
|
1579
|
+
.transform(d => ({
|
|
1580
|
+
op: d.op,
|
|
1581
|
+
path: d.path,
|
|
1582
|
+
value: d.value,
|
|
1583
|
+
}));
|
|
1584
|
+
|
|
1585
|
+
export const marshalPatchAccountGroupRequestSchema: z.ZodType = z
|
|
1586
|
+
.object({
|
|
1587
|
+
id: z.string().optional(),
|
|
1588
|
+
operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
|
|
1589
|
+
schemas: z.array(z.enum(AccountPatchSchema_PatchSchema)).optional(),
|
|
1590
|
+
accountId: z.string().optional(),
|
|
1591
|
+
})
|
|
1592
|
+
.transform(d => ({
|
|
1593
|
+
id: d.id,
|
|
1594
|
+
Operations: d.operations,
|
|
1595
|
+
schemas: d.schemas,
|
|
1596
|
+
account_id: d.accountId,
|
|
1597
|
+
}));
|
|
1598
|
+
|
|
1599
|
+
export const marshalPatchAccountServicePrincipalRequestSchema: z.ZodType = z
|
|
1600
|
+
.object({
|
|
1601
|
+
id: z.string().optional(),
|
|
1602
|
+
operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
|
|
1603
|
+
schemas: z.array(z.enum(AccountPatchSchema_PatchSchema)).optional(),
|
|
1604
|
+
accountId: z.string().optional(),
|
|
1605
|
+
})
|
|
1606
|
+
.transform(d => ({
|
|
1607
|
+
id: d.id,
|
|
1608
|
+
Operations: d.operations,
|
|
1609
|
+
schemas: d.schemas,
|
|
1610
|
+
account_id: d.accountId,
|
|
1611
|
+
}));
|
|
1612
|
+
|
|
1613
|
+
export const marshalPatchAccountUserRequestSchema: z.ZodType = z
|
|
1614
|
+
.object({
|
|
1615
|
+
id: z.string().optional(),
|
|
1616
|
+
operations: z.array(z.lazy(() => marshalAccountPatchSchema)).optional(),
|
|
1617
|
+
schemas: z.array(z.enum(AccountPatchSchema_PatchSchema)).optional(),
|
|
1618
|
+
accountId: z.string().optional(),
|
|
1619
|
+
})
|
|
1620
|
+
.transform(d => ({
|
|
1621
|
+
id: d.id,
|
|
1622
|
+
Operations: d.operations,
|
|
1623
|
+
schemas: d.schemas,
|
|
1624
|
+
account_id: d.accountId,
|
|
1625
|
+
}));
|
|
1626
|
+
|
|
1627
|
+
export const marshalPatchGroupRequestSchema: z.ZodType = z
|
|
1628
|
+
.object({
|
|
1629
|
+
id: z.string().optional(),
|
|
1630
|
+
operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
|
|
1631
|
+
schemas: z.array(z.enum(PatchSchema)).optional(),
|
|
1632
|
+
})
|
|
1633
|
+
.transform(d => ({
|
|
1634
|
+
id: d.id,
|
|
1635
|
+
Operations: d.operations,
|
|
1636
|
+
schemas: d.schemas,
|
|
1637
|
+
}));
|
|
1638
|
+
|
|
1639
|
+
export const marshalPatchServicePrincipalRequestSchema: z.ZodType = z
|
|
1640
|
+
.object({
|
|
1641
|
+
id: z.string().optional(),
|
|
1642
|
+
operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
|
|
1643
|
+
schemas: z.array(z.enum(PatchSchema)).optional(),
|
|
1644
|
+
})
|
|
1645
|
+
.transform(d => ({
|
|
1646
|
+
id: d.id,
|
|
1647
|
+
Operations: d.operations,
|
|
1648
|
+
schemas: d.schemas,
|
|
1649
|
+
}));
|
|
1650
|
+
|
|
1651
|
+
export const marshalPatchUserRequestSchema: z.ZodType = z
|
|
1652
|
+
.object({
|
|
1653
|
+
id: z.string().optional(),
|
|
1654
|
+
operations: z.array(z.lazy(() => marshalPatchSchema)).optional(),
|
|
1655
|
+
schemas: z.array(z.enum(PatchSchema)).optional(),
|
|
1656
|
+
})
|
|
1657
|
+
.transform(d => ({
|
|
1658
|
+
id: d.id,
|
|
1659
|
+
Operations: d.operations,
|
|
1660
|
+
schemas: d.schemas,
|
|
1661
|
+
}));
|
|
1662
|
+
|
|
1663
|
+
export const marshalResourceMetaSchema: z.ZodType = z
|
|
1664
|
+
.object({
|
|
1665
|
+
resourceType: z.string().optional(),
|
|
1666
|
+
})
|
|
1667
|
+
.transform(d => ({
|
|
1668
|
+
resourceType: d.resourceType,
|
|
1669
|
+
}));
|
|
1670
|
+
|
|
1671
|
+
export const marshalUpdateAccountGroupRequestSchema: z.ZodType = z
|
|
1672
|
+
.object({
|
|
1673
|
+
displayName: z.string().optional(),
|
|
1674
|
+
externalId: z.string().optional(),
|
|
1675
|
+
id: z.string().optional(),
|
|
1676
|
+
members: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1677
|
+
meta: z.lazy(() => marshalAccountResourceMetaSchema).optional(),
|
|
1678
|
+
roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1679
|
+
accountId: z.string().optional(),
|
|
1680
|
+
})
|
|
1681
|
+
.transform(d => ({
|
|
1682
|
+
displayName: d.displayName,
|
|
1683
|
+
externalId: d.externalId,
|
|
1684
|
+
id: d.id,
|
|
1685
|
+
members: d.members,
|
|
1686
|
+
meta: d.meta,
|
|
1687
|
+
roles: d.roles,
|
|
1688
|
+
account_id: d.accountId,
|
|
1689
|
+
}));
|
|
1690
|
+
|
|
1691
|
+
export const marshalUpdateAccountServicePrincipalRequestSchema: z.ZodType = z
|
|
1692
|
+
.object({
|
|
1693
|
+
active: z.boolean().optional(),
|
|
1694
|
+
applicationId: z.string().optional(),
|
|
1695
|
+
displayName: z.string().optional(),
|
|
1696
|
+
externalId: z.string().optional(),
|
|
1697
|
+
id: z.string().optional(),
|
|
1698
|
+
roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1699
|
+
accountId: z.string().optional(),
|
|
1700
|
+
})
|
|
1701
|
+
.transform(d => ({
|
|
1702
|
+
active: d.active,
|
|
1703
|
+
applicationId: d.applicationId,
|
|
1704
|
+
displayName: d.displayName,
|
|
1705
|
+
externalId: d.externalId,
|
|
1706
|
+
id: d.id,
|
|
1707
|
+
roles: d.roles,
|
|
1708
|
+
account_id: d.accountId,
|
|
1709
|
+
}));
|
|
1710
|
+
|
|
1711
|
+
export const marshalUpdateAccountUserRequestSchema: z.ZodType = z
|
|
1712
|
+
.object({
|
|
1713
|
+
active: z.boolean().optional(),
|
|
1714
|
+
displayName: z.string().optional(),
|
|
1715
|
+
emails: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1716
|
+
externalId: z.string().optional(),
|
|
1717
|
+
id: z.string().optional(),
|
|
1718
|
+
name: z.lazy(() => marshalAccountNameSchema).optional(),
|
|
1719
|
+
roles: z.array(z.lazy(() => marshalAccountComplexValueSchema)).optional(),
|
|
1720
|
+
userName: z.string().optional(),
|
|
1721
|
+
accountId: z.string().optional(),
|
|
1722
|
+
})
|
|
1723
|
+
.transform(d => ({
|
|
1724
|
+
active: d.active,
|
|
1725
|
+
displayName: d.displayName,
|
|
1726
|
+
emails: d.emails,
|
|
1727
|
+
externalId: d.externalId,
|
|
1728
|
+
id: d.id,
|
|
1729
|
+
name: d.name,
|
|
1730
|
+
roles: d.roles,
|
|
1731
|
+
userName: d.userName,
|
|
1732
|
+
account_id: d.accountId,
|
|
1733
|
+
}));
|
|
1734
|
+
|
|
1735
|
+
export const marshalUpdateGroupRequestSchema: z.ZodType = z
|
|
1736
|
+
.object({
|
|
1737
|
+
displayName: z.string().optional(),
|
|
1738
|
+
entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1739
|
+
externalId: z.string().optional(),
|
|
1740
|
+
groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1741
|
+
id: z.string().optional(),
|
|
1742
|
+
members: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1743
|
+
meta: z.lazy(() => marshalResourceMetaSchema).optional(),
|
|
1744
|
+
roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1745
|
+
schemas: z.array(z.enum(GroupSchema)).optional(),
|
|
1746
|
+
})
|
|
1747
|
+
.transform(d => ({
|
|
1748
|
+
displayName: d.displayName,
|
|
1749
|
+
entitlements: d.entitlements,
|
|
1750
|
+
externalId: d.externalId,
|
|
1751
|
+
groups: d.groups,
|
|
1752
|
+
id: d.id,
|
|
1753
|
+
members: d.members,
|
|
1754
|
+
meta: d.meta,
|
|
1755
|
+
roles: d.roles,
|
|
1756
|
+
schemas: d.schemas,
|
|
1757
|
+
}));
|
|
1758
|
+
|
|
1759
|
+
export const marshalUpdateServicePrincipalRequestSchema: z.ZodType = z
|
|
1760
|
+
.object({
|
|
1761
|
+
active: z.boolean().optional(),
|
|
1762
|
+
applicationId: z.string().optional(),
|
|
1763
|
+
displayName: z.string().optional(),
|
|
1764
|
+
entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1765
|
+
externalId: z.string().optional(),
|
|
1766
|
+
groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1767
|
+
id: z.string().optional(),
|
|
1768
|
+
roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1769
|
+
schemas: z.array(z.enum(ServicePrincipalSchema)).optional(),
|
|
1770
|
+
})
|
|
1771
|
+
.transform(d => ({
|
|
1772
|
+
active: d.active,
|
|
1773
|
+
applicationId: d.applicationId,
|
|
1774
|
+
displayName: d.displayName,
|
|
1775
|
+
entitlements: d.entitlements,
|
|
1776
|
+
externalId: d.externalId,
|
|
1777
|
+
groups: d.groups,
|
|
1778
|
+
id: d.id,
|
|
1779
|
+
roles: d.roles,
|
|
1780
|
+
schemas: d.schemas,
|
|
1781
|
+
}));
|
|
1782
|
+
|
|
1783
|
+
export const marshalUpdateUserRequestSchema: z.ZodType = z
|
|
1784
|
+
.object({
|
|
1785
|
+
active: z.boolean().optional(),
|
|
1786
|
+
displayName: z.string().optional(),
|
|
1787
|
+
emails: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1788
|
+
entitlements: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1789
|
+
externalId: z.string().optional(),
|
|
1790
|
+
groups: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1791
|
+
id: z.string().optional(),
|
|
1792
|
+
name: z.lazy(() => marshalNameSchema).optional(),
|
|
1793
|
+
roles: z.array(z.lazy(() => marshalComplexValueSchema)).optional(),
|
|
1794
|
+
schemas: z.array(z.enum(UserSchema)).optional(),
|
|
1795
|
+
userName: z.string().optional(),
|
|
1796
|
+
})
|
|
1797
|
+
.transform(d => ({
|
|
1798
|
+
active: d.active,
|
|
1799
|
+
displayName: d.displayName,
|
|
1800
|
+
emails: d.emails,
|
|
1801
|
+
entitlements: d.entitlements,
|
|
1802
|
+
externalId: d.externalId,
|
|
1803
|
+
groups: d.groups,
|
|
1804
|
+
id: d.id,
|
|
1805
|
+
name: d.name,
|
|
1806
|
+
roles: d.roles,
|
|
1807
|
+
schemas: d.schemas,
|
|
1808
|
+
userName: d.userName,
|
|
1809
|
+
}));
|