@databricks/sdk-settings 0.34.0 → 0.36.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/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v2/client.d.ts +69 -65
- package/dist/v2/client.d.ts.map +1 -1
- package/dist/v2/client.js +279 -346
- package/dist/v2/client.js.map +1 -1
- package/dist/v2/index.d.ts +3 -7
- package/dist/v2/index.js +4 -7
- package/dist/v2/model.d.ts +384 -408
- package/dist/v2/model.d.ts.map +1 -1
- package/dist/v2/model.js +468 -815
- package/dist/v2/model.js.map +1 -1
- package/dist/v2/transport.d.ts +21 -17
- package/dist/v2/transport.d.ts.map +1 -1
- package/dist/v2/transport.js +60 -69
- package/dist/v2/transport.js.map +1 -1
- package/dist/v2/utils.d.ts +18 -14
- package/dist/v2/utils.d.ts.map +1 -1
- package/dist/v2/utils.js +76 -103
- package/dist/v2/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v2/index.d.ts.map +0 -1
- package/dist/v2/index.js.map +0 -1
package/dist/v2/model.js
CHANGED
|
@@ -1,825 +1,478 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/v2/model.ts
|
|
3
4
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* The feature is in public preview, available to all customers. Also used for gated public
|
|
17
|
-
* preview (available to customers who request access) since the distinction is internal.
|
|
18
|
-
*/
|
|
19
|
-
PUBLIC_PREVIEW: 'PUBLIC_PREVIEW',
|
|
20
|
-
/** The feature is in beta. */
|
|
21
|
-
BETA: 'BETA',
|
|
22
|
-
/** The feature is approaching general availability. */
|
|
23
|
-
GA_SOON: 'GA_SOON',
|
|
24
|
-
/** The feature has reached general availability. */
|
|
25
|
-
GA: 'GA',
|
|
5
|
+
* Preview phase for settings that are feature previews.
|
|
6
|
+
* For settings that are not feature previews, the preview_phase field is left unset.
|
|
7
|
+
* Mirrors only the customer-facing phases surfaced in the UI; internal-only phases
|
|
8
|
+
* (DISABLED, DEV, UNDER_MIGRATION, LAUNCHED, etc.) are not exposed here.
|
|
9
|
+
*/
|
|
10
|
+
const PreviewPhase = {
|
|
11
|
+
PREVIEW_PHASE_UNSPECIFIED: "PREVIEW_PHASE_UNSPECIFIED",
|
|
12
|
+
PRIVATE_PREVIEW: "PRIVATE_PREVIEW",
|
|
13
|
+
PUBLIC_PREVIEW: "PUBLIC_PREVIEW",
|
|
14
|
+
BETA: "BETA",
|
|
15
|
+
GA_SOON: "GA_SOON",
|
|
16
|
+
GA: "GA"
|
|
26
17
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DENY_ALL_DOMAINS: 'DENY_ALL_DOMAINS',
|
|
18
|
+
const AibiDashboardEmbeddingAccessPolicy_AccessPolicyType = {
|
|
19
|
+
ACCESS_POLICY_TYPE_UNSPECIFIED: "ACCESS_POLICY_TYPE_UNSPECIFIED",
|
|
20
|
+
ALLOW_ALL_DOMAINS: "ALLOW_ALL_DOMAINS",
|
|
21
|
+
ALLOW_APPROVED_DOMAINS: "ALLOW_APPROVED_DOMAINS",
|
|
22
|
+
DENY_ALL_DOMAINS: "DENY_ALL_DOMAINS"
|
|
33
23
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
SUNDAY: 'SUNDAY',
|
|
24
|
+
const ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek = {
|
|
25
|
+
DAY_OF_WEEK_UNSPECIFIED: "DAY_OF_WEEK_UNSPECIFIED",
|
|
26
|
+
MONDAY: "MONDAY",
|
|
27
|
+
TUESDAY: "TUESDAY",
|
|
28
|
+
WEDNESDAY: "WEDNESDAY",
|
|
29
|
+
THURSDAY: "THURSDAY",
|
|
30
|
+
FRIDAY: "FRIDAY",
|
|
31
|
+
SATURDAY: "SATURDAY",
|
|
32
|
+
SUNDAY: "SUNDAY"
|
|
44
33
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
EVERY_WEEK: 'EVERY_WEEK',
|
|
34
|
+
const ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency = {
|
|
35
|
+
WEEK_DAY_FREQUENCY_UNSPECIFIED: "WEEK_DAY_FREQUENCY_UNSPECIFIED",
|
|
36
|
+
FIRST_OF_MONTH: "FIRST_OF_MONTH",
|
|
37
|
+
SECOND_OF_MONTH: "SECOND_OF_MONTH",
|
|
38
|
+
THIRD_OF_MONTH: "THIRD_OF_MONTH",
|
|
39
|
+
FOURTH_OF_MONTH: "FOURTH_OF_MONTH",
|
|
40
|
+
FIRST_AND_THIRD_OF_MONTH: "FIRST_AND_THIRD_OF_MONTH",
|
|
41
|
+
SECOND_AND_FOURTH_OF_MONTH: "SECOND_AND_FOURTH_OF_MONTH",
|
|
42
|
+
EVERY_WEEK: "EVERY_WEEK"
|
|
55
43
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
DENY_ALL: 'DENY_ALL',
|
|
44
|
+
const CollaborationPlatformConnectivityMessage_Connectivity = {
|
|
45
|
+
CONNECTIVITY_UNSPECIFIED: "CONNECTIVITY_UNSPECIFIED",
|
|
46
|
+
ALLOW_ALL: "ALLOW_ALL",
|
|
47
|
+
ALLOW_TEAMS: "ALLOW_TEAMS",
|
|
48
|
+
ALLOW_SLACK: "ALLOW_SLACK",
|
|
49
|
+
DENY_ALL: "DENY_ALL"
|
|
63
50
|
};
|
|
64
51
|
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
DELEGATE: 'DELEGATE',
|
|
52
|
+
* ON: Grants all users in all workspaces access to the Personal Compute default policy, allowing all users to create single-machine compute resources.
|
|
53
|
+
* DELEGATE: Moves access control for the Personal Compute default policy to individual workspaces and requires a workspace’s users or groups to be added to the ACLs of that workspace’s Personal Compute default policy before they will be able to create compute resources through that policy.
|
|
54
|
+
*/
|
|
55
|
+
const PersonalComputeMessage_PersonalComputeMessageEnum = {
|
|
56
|
+
PERSONAL_COMPUTE_MESSAGE_ENUM_UNSPECIFIED: "PERSONAL_COMPUTE_MESSAGE_ENUM_UNSPECIFIED",
|
|
57
|
+
ON: "ON",
|
|
58
|
+
DELEGATE: "DELEGATE"
|
|
73
59
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Default value for existing workspaces
|
|
80
|
-
* Allows WS admins to create OBO tokens for all SPs in the workspace without explicit permissions.
|
|
81
|
-
*/
|
|
82
|
-
ALLOW_ALL: 'ALLOW_ALL',
|
|
83
|
-
/**
|
|
84
|
-
* Default value for new workspaces
|
|
85
|
-
* Restrict WS admins to create OBO tokens for SPs in the workspace unless corresponding permissions are provided
|
|
86
|
-
*/
|
|
87
|
-
RESTRICT_TOKENS_AND_JOB_RUN_AS: 'RESTRICT_TOKENS_AND_JOB_RUN_AS',
|
|
60
|
+
const RestrictWorkspaceAdminsMessage_Status = {
|
|
61
|
+
STATUS_UNSPECIFIED: "STATUS_UNSPECIFIED",
|
|
62
|
+
ALLOW_ALL: "ALLOW_ALL",
|
|
63
|
+
RESTRICT_TOKENS_AND_JOB_RUN_AS: "RESTRICT_TOKENS_AND_JOB_RUN_AS"
|
|
88
64
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
})
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}));
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
})
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}))
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
value: z.boolean().optional(),
|
|
503
|
-
})
|
|
504
|
-
.transform(d => ({
|
|
505
|
-
value: d.value,
|
|
506
|
-
}));
|
|
507
|
-
export const marshalClusterAutoRestartMessageSchema = z
|
|
508
|
-
.object({
|
|
509
|
-
enabled: z.boolean().optional(),
|
|
510
|
-
canToggle: z.boolean().optional(),
|
|
511
|
-
maintenanceWindow: z
|
|
512
|
-
.lazy(() => marshalClusterAutoRestartMessage_MaintenanceWindowSchema)
|
|
513
|
-
.optional(),
|
|
514
|
-
enablementDetails: z
|
|
515
|
-
.lazy(() => marshalClusterAutoRestartMessage_EnablementDetailsSchema)
|
|
516
|
-
.optional(),
|
|
517
|
-
restartEvenIfNoUpdatesAvailable: z.boolean().optional(),
|
|
518
|
-
})
|
|
519
|
-
.transform(d => ({
|
|
520
|
-
enabled: d.enabled,
|
|
521
|
-
can_toggle: d.canToggle,
|
|
522
|
-
maintenance_window: d.maintenanceWindow,
|
|
523
|
-
enablement_details: d.enablementDetails,
|
|
524
|
-
restart_even_if_no_updates_available: d.restartEvenIfNoUpdatesAvailable,
|
|
525
|
-
}));
|
|
526
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
527
|
-
export const marshalClusterAutoRestartMessage_EnablementDetailsSchema = z
|
|
528
|
-
.object({
|
|
529
|
-
unavailableForNonEnterpriseTier: z.boolean().optional(),
|
|
530
|
-
unavailableForDisabledEntitlement: z.boolean().optional(),
|
|
531
|
-
forcedForComplianceMode: z.boolean().optional(),
|
|
532
|
-
})
|
|
533
|
-
.transform(d => ({
|
|
534
|
-
unavailable_for_non_enterprise_tier: d.unavailableForNonEnterpriseTier,
|
|
535
|
-
unavailable_for_disabled_entitlement: d.unavailableForDisabledEntitlement,
|
|
536
|
-
forced_for_compliance_mode: d.forcedForComplianceMode,
|
|
537
|
-
}));
|
|
538
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
539
|
-
export const marshalClusterAutoRestartMessage_MaintenanceWindowSchema = z
|
|
540
|
-
.object({
|
|
541
|
-
weekDayBasedSchedule: z
|
|
542
|
-
.lazy(() => marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema)
|
|
543
|
-
.optional(),
|
|
544
|
-
})
|
|
545
|
-
.transform(d => ({
|
|
546
|
-
week_day_based_schedule: d.weekDayBasedSchedule,
|
|
547
|
-
}));
|
|
548
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
549
|
-
export const marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema = z
|
|
550
|
-
.object({
|
|
551
|
-
frequency: z.string().optional(),
|
|
552
|
-
dayOfWeek: z.string().optional(),
|
|
553
|
-
windowStartTime: z
|
|
554
|
-
.lazy(() => marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema)
|
|
555
|
-
.optional(),
|
|
556
|
-
})
|
|
557
|
-
.transform(d => ({
|
|
558
|
-
frequency: d.frequency,
|
|
559
|
-
day_of_week: d.dayOfWeek,
|
|
560
|
-
window_start_time: d.windowStartTime,
|
|
561
|
-
}));
|
|
562
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
563
|
-
export const marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema = z
|
|
564
|
-
.object({
|
|
565
|
-
hours: z.number().optional(),
|
|
566
|
-
minutes: z.number().optional(),
|
|
567
|
-
})
|
|
568
|
-
.transform(d => ({
|
|
569
|
-
hours: d.hours,
|
|
570
|
-
minutes: d.minutes,
|
|
571
|
-
}));
|
|
572
|
-
export const marshalCollaborationPlatformConnectivityMessageSchema = z
|
|
573
|
-
.object({
|
|
574
|
-
connectivity: z.string().optional(),
|
|
575
|
-
})
|
|
576
|
-
.transform(d => ({
|
|
577
|
-
connectivity: d.connectivity,
|
|
578
|
-
}));
|
|
579
|
-
export const marshalIntegerMessageSchema = z
|
|
580
|
-
.object({
|
|
581
|
-
value: z.number().optional(),
|
|
582
|
-
})
|
|
583
|
-
.transform(d => ({
|
|
584
|
-
value: d.value,
|
|
585
|
-
}));
|
|
586
|
-
export const marshalOperationalEmailCustomRecipientMessageSchema = z
|
|
587
|
-
.object({
|
|
588
|
-
email: z.string().optional(),
|
|
589
|
-
})
|
|
590
|
-
.transform(d => ({
|
|
591
|
-
email: d.email,
|
|
592
|
-
}));
|
|
593
|
-
export const marshalPersonalComputeMessageSchema = z
|
|
594
|
-
.object({
|
|
595
|
-
value: z.string().optional(),
|
|
596
|
-
})
|
|
597
|
-
.transform(d => ({
|
|
598
|
-
value: d.value,
|
|
599
|
-
}));
|
|
600
|
-
export const marshalRestrictWorkspaceAdminsMessageSchema = z
|
|
601
|
-
.object({
|
|
602
|
-
status: z.string().optional(),
|
|
603
|
-
disableGovTagCreation: z.boolean().optional(),
|
|
604
|
-
})
|
|
605
|
-
.transform(d => ({
|
|
606
|
-
status: d.status,
|
|
607
|
-
disable_gov_tag_creation: d.disableGovTagCreation,
|
|
608
|
-
}));
|
|
609
|
-
export const marshalSettingSchema = z
|
|
610
|
-
.object({
|
|
611
|
-
name: z.string().optional(),
|
|
612
|
-
value: z
|
|
613
|
-
.discriminatedUnion('$case', [
|
|
614
|
-
z.object({
|
|
615
|
-
$case: z.literal('booleanVal'),
|
|
616
|
-
booleanVal: z.lazy(() => marshalBooleanMessageSchema),
|
|
617
|
-
}),
|
|
618
|
-
z.object({
|
|
619
|
-
$case: z.literal('stringVal'),
|
|
620
|
-
stringVal: z.lazy(() => marshalStringMessageSchema),
|
|
621
|
-
}),
|
|
622
|
-
z.object({
|
|
623
|
-
$case: z.literal('integerVal'),
|
|
624
|
-
integerVal: z.lazy(() => marshalIntegerMessageSchema),
|
|
625
|
-
}),
|
|
626
|
-
z.object({
|
|
627
|
-
$case: z.literal('automaticClusterUpdateWorkspace'),
|
|
628
|
-
automaticClusterUpdateWorkspace: z.lazy(() => marshalClusterAutoRestartMessageSchema),
|
|
629
|
-
}),
|
|
630
|
-
z.object({
|
|
631
|
-
$case: z.literal('aibiDashboardEmbeddingApprovedDomains'),
|
|
632
|
-
aibiDashboardEmbeddingApprovedDomains: z.lazy(() => marshalAibiDashboardEmbeddingApprovedDomainsSchema),
|
|
633
|
-
}),
|
|
634
|
-
z.object({
|
|
635
|
-
$case: z.literal('aibiDashboardEmbeddingAccessPolicy'),
|
|
636
|
-
aibiDashboardEmbeddingAccessPolicy: z.lazy(() => marshalAibiDashboardEmbeddingAccessPolicySchema),
|
|
637
|
-
}),
|
|
638
|
-
z.object({
|
|
639
|
-
$case: z.literal('restrictWorkspaceAdmins'),
|
|
640
|
-
restrictWorkspaceAdmins: z.lazy(() => marshalRestrictWorkspaceAdminsMessageSchema),
|
|
641
|
-
}),
|
|
642
|
-
z.object({
|
|
643
|
-
$case: z.literal('personalCompute'),
|
|
644
|
-
personalCompute: z.lazy(() => marshalPersonalComputeMessageSchema),
|
|
645
|
-
}),
|
|
646
|
-
z.object({
|
|
647
|
-
$case: z.literal('allowedAppsUserApiScopes'),
|
|
648
|
-
allowedAppsUserApiScopes: z.lazy(() => marshalAllowedAppsUserApiScopesMessageSchema),
|
|
649
|
-
}),
|
|
650
|
-
z.object({
|
|
651
|
-
$case: z.literal('operationalEmailCustomRecipient'),
|
|
652
|
-
operationalEmailCustomRecipient: z.lazy(() => marshalOperationalEmailCustomRecipientMessageSchema),
|
|
653
|
-
}),
|
|
654
|
-
z.object({
|
|
655
|
-
$case: z.literal('collaborationPlatformConnectivity'),
|
|
656
|
-
collaborationPlatformConnectivity: z.lazy(() => marshalCollaborationPlatformConnectivityMessageSchema),
|
|
657
|
-
}),
|
|
658
|
-
])
|
|
659
|
-
.optional(),
|
|
660
|
-
effectiveValue: z
|
|
661
|
-
.discriminatedUnion('$case', [
|
|
662
|
-
z.object({
|
|
663
|
-
$case: z.literal('effectiveBooleanVal'),
|
|
664
|
-
effectiveBooleanVal: z.lazy(() => marshalBooleanMessageSchema),
|
|
665
|
-
}),
|
|
666
|
-
z.object({
|
|
667
|
-
$case: z.literal('effectiveStringVal'),
|
|
668
|
-
effectiveStringVal: z.lazy(() => marshalStringMessageSchema),
|
|
669
|
-
}),
|
|
670
|
-
z.object({
|
|
671
|
-
$case: z.literal('effectiveIntegerVal'),
|
|
672
|
-
effectiveIntegerVal: z.lazy(() => marshalIntegerMessageSchema),
|
|
673
|
-
}),
|
|
674
|
-
z.object({
|
|
675
|
-
$case: z.literal('effectiveAutomaticClusterUpdateWorkspace'),
|
|
676
|
-
effectiveAutomaticClusterUpdateWorkspace: z.lazy(() => marshalClusterAutoRestartMessageSchema),
|
|
677
|
-
}),
|
|
678
|
-
z.object({
|
|
679
|
-
$case: z.literal('effectiveAibiDashboardEmbeddingApprovedDomains'),
|
|
680
|
-
effectiveAibiDashboardEmbeddingApprovedDomains: z.lazy(() => marshalAibiDashboardEmbeddingApprovedDomainsSchema),
|
|
681
|
-
}),
|
|
682
|
-
z.object({
|
|
683
|
-
$case: z.literal('effectiveAibiDashboardEmbeddingAccessPolicy'),
|
|
684
|
-
effectiveAibiDashboardEmbeddingAccessPolicy: z.lazy(() => marshalAibiDashboardEmbeddingAccessPolicySchema),
|
|
685
|
-
}),
|
|
686
|
-
z.object({
|
|
687
|
-
$case: z.literal('effectiveRestrictWorkspaceAdmins'),
|
|
688
|
-
effectiveRestrictWorkspaceAdmins: z.lazy(() => marshalRestrictWorkspaceAdminsMessageSchema),
|
|
689
|
-
}),
|
|
690
|
-
z.object({
|
|
691
|
-
$case: z.literal('effectivePersonalCompute'),
|
|
692
|
-
effectivePersonalCompute: z.lazy(() => marshalPersonalComputeMessageSchema),
|
|
693
|
-
}),
|
|
694
|
-
z.object({
|
|
695
|
-
$case: z.literal('effectiveAllowedAppsUserApiScopes'),
|
|
696
|
-
effectiveAllowedAppsUserApiScopes: z.lazy(() => marshalAllowedAppsUserApiScopesMessageSchema),
|
|
697
|
-
}),
|
|
698
|
-
z.object({
|
|
699
|
-
$case: z.literal('effectiveOperationalEmailCustomRecipient'),
|
|
700
|
-
effectiveOperationalEmailCustomRecipient: z.lazy(() => marshalOperationalEmailCustomRecipientMessageSchema),
|
|
701
|
-
}),
|
|
702
|
-
z.object({
|
|
703
|
-
$case: z.literal('effectiveCollaborationPlatformConnectivity'),
|
|
704
|
-
effectiveCollaborationPlatformConnectivity: z.lazy(() => marshalCollaborationPlatformConnectivityMessageSchema),
|
|
705
|
-
}),
|
|
706
|
-
])
|
|
707
|
-
.optional(),
|
|
708
|
-
})
|
|
709
|
-
.transform(d => ({
|
|
710
|
-
name: d.name,
|
|
711
|
-
...(d.value?.$case === 'booleanVal' && { boolean_val: d.value.booleanVal }),
|
|
712
|
-
...(d.value?.$case === 'stringVal' && { string_val: d.value.stringVal }),
|
|
713
|
-
...(d.value?.$case === 'integerVal' && { integer_val: d.value.integerVal }),
|
|
714
|
-
...(d.value?.$case === 'automaticClusterUpdateWorkspace' && {
|
|
715
|
-
automatic_cluster_update_workspace: d.value.automaticClusterUpdateWorkspace,
|
|
716
|
-
}),
|
|
717
|
-
...(d.value?.$case === 'aibiDashboardEmbeddingApprovedDomains' && {
|
|
718
|
-
aibi_dashboard_embedding_approved_domains: d.value.aibiDashboardEmbeddingApprovedDomains,
|
|
719
|
-
}),
|
|
720
|
-
...(d.value?.$case === 'aibiDashboardEmbeddingAccessPolicy' && {
|
|
721
|
-
aibi_dashboard_embedding_access_policy: d.value.aibiDashboardEmbeddingAccessPolicy,
|
|
722
|
-
}),
|
|
723
|
-
...(d.value?.$case === 'restrictWorkspaceAdmins' && {
|
|
724
|
-
restrict_workspace_admins: d.value.restrictWorkspaceAdmins,
|
|
725
|
-
}),
|
|
726
|
-
...(d.value?.$case === 'personalCompute' && {
|
|
727
|
-
personal_compute: d.value.personalCompute,
|
|
728
|
-
}),
|
|
729
|
-
...(d.value?.$case === 'allowedAppsUserApiScopes' && {
|
|
730
|
-
allowed_apps_user_api_scopes: d.value.allowedAppsUserApiScopes,
|
|
731
|
-
}),
|
|
732
|
-
...(d.value?.$case === 'operationalEmailCustomRecipient' && {
|
|
733
|
-
operational_email_custom_recipient: d.value.operationalEmailCustomRecipient,
|
|
734
|
-
}),
|
|
735
|
-
...(d.value?.$case === 'collaborationPlatformConnectivity' && {
|
|
736
|
-
collaboration_platform_connectivity: d.value.collaborationPlatformConnectivity,
|
|
737
|
-
}),
|
|
738
|
-
...(d.effectiveValue?.$case === 'effectiveBooleanVal' && {
|
|
739
|
-
effective_boolean_val: d.effectiveValue.effectiveBooleanVal,
|
|
740
|
-
}),
|
|
741
|
-
...(d.effectiveValue?.$case === 'effectiveStringVal' && {
|
|
742
|
-
effective_string_val: d.effectiveValue.effectiveStringVal,
|
|
743
|
-
}),
|
|
744
|
-
...(d.effectiveValue?.$case === 'effectiveIntegerVal' && {
|
|
745
|
-
effective_integer_val: d.effectiveValue.effectiveIntegerVal,
|
|
746
|
-
}),
|
|
747
|
-
...(d.effectiveValue?.$case ===
|
|
748
|
-
'effectiveAutomaticClusterUpdateWorkspace' && {
|
|
749
|
-
effective_automatic_cluster_update_workspace: d.effectiveValue.effectiveAutomaticClusterUpdateWorkspace,
|
|
750
|
-
}),
|
|
751
|
-
...(d.effectiveValue?.$case ===
|
|
752
|
-
'effectiveAibiDashboardEmbeddingApprovedDomains' && {
|
|
753
|
-
effective_aibi_dashboard_embedding_approved_domains: d.effectiveValue.effectiveAibiDashboardEmbeddingApprovedDomains,
|
|
754
|
-
}),
|
|
755
|
-
...(d.effectiveValue?.$case ===
|
|
756
|
-
'effectiveAibiDashboardEmbeddingAccessPolicy' && {
|
|
757
|
-
effective_aibi_dashboard_embedding_access_policy: d.effectiveValue.effectiveAibiDashboardEmbeddingAccessPolicy,
|
|
758
|
-
}),
|
|
759
|
-
...(d.effectiveValue?.$case === 'effectiveRestrictWorkspaceAdmins' && {
|
|
760
|
-
effective_restrict_workspace_admins: d.effectiveValue.effectiveRestrictWorkspaceAdmins,
|
|
761
|
-
}),
|
|
762
|
-
...(d.effectiveValue?.$case === 'effectivePersonalCompute' && {
|
|
763
|
-
effective_personal_compute: d.effectiveValue.effectivePersonalCompute,
|
|
764
|
-
}),
|
|
765
|
-
...(d.effectiveValue?.$case === 'effectiveAllowedAppsUserApiScopes' && {
|
|
766
|
-
effective_allowed_apps_user_api_scopes: d.effectiveValue.effectiveAllowedAppsUserApiScopes,
|
|
767
|
-
}),
|
|
768
|
-
...(d.effectiveValue?.$case ===
|
|
769
|
-
'effectiveOperationalEmailCustomRecipient' && {
|
|
770
|
-
effective_operational_email_custom_recipient: d.effectiveValue.effectiveOperationalEmailCustomRecipient,
|
|
771
|
-
}),
|
|
772
|
-
...(d.effectiveValue?.$case ===
|
|
773
|
-
'effectiveCollaborationPlatformConnectivity' && {
|
|
774
|
-
effective_collaboration_platform_connectivity: d.effectiveValue.effectiveCollaborationPlatformConnectivity,
|
|
775
|
-
}),
|
|
776
|
-
}));
|
|
777
|
-
export const marshalStringMessageSchema = z
|
|
778
|
-
.object({
|
|
779
|
-
value: z.string().optional(),
|
|
780
|
-
})
|
|
781
|
-
.transform(d => ({
|
|
782
|
-
value: d.value,
|
|
783
|
-
}));
|
|
784
|
-
export const marshalUserPreferenceSchema = z
|
|
785
|
-
.object({
|
|
786
|
-
name: z.string().optional(),
|
|
787
|
-
userId: z.string().optional(),
|
|
788
|
-
value: z
|
|
789
|
-
.discriminatedUnion('$case', [
|
|
790
|
-
z.object({
|
|
791
|
-
$case: z.literal('booleanVal'),
|
|
792
|
-
booleanVal: z.lazy(() => marshalBooleanMessageSchema),
|
|
793
|
-
}),
|
|
794
|
-
z.object({
|
|
795
|
-
$case: z.literal('stringVal'),
|
|
796
|
-
stringVal: z.lazy(() => marshalStringMessageSchema),
|
|
797
|
-
}),
|
|
798
|
-
])
|
|
799
|
-
.optional(),
|
|
800
|
-
effectiveValue: z
|
|
801
|
-
.discriminatedUnion('$case', [
|
|
802
|
-
z.object({
|
|
803
|
-
$case: z.literal('effectiveBooleanVal'),
|
|
804
|
-
effectiveBooleanVal: z.lazy(() => marshalBooleanMessageSchema),
|
|
805
|
-
}),
|
|
806
|
-
z.object({
|
|
807
|
-
$case: z.literal('effectiveStringVal'),
|
|
808
|
-
effectiveStringVal: z.lazy(() => marshalStringMessageSchema),
|
|
809
|
-
}),
|
|
810
|
-
])
|
|
811
|
-
.optional(),
|
|
812
|
-
})
|
|
813
|
-
.transform(d => ({
|
|
814
|
-
name: d.name,
|
|
815
|
-
user_id: d.userId,
|
|
816
|
-
...(d.value?.$case === 'booleanVal' && { boolean_val: d.value.booleanVal }),
|
|
817
|
-
...(d.value?.$case === 'stringVal' && { string_val: d.value.stringVal }),
|
|
818
|
-
...(d.effectiveValue?.$case === 'effectiveBooleanVal' && {
|
|
819
|
-
effective_boolean_val: d.effectiveValue.effectiveBooleanVal,
|
|
820
|
-
}),
|
|
821
|
-
...(d.effectiveValue?.$case === 'effectiveStringVal' && {
|
|
822
|
-
effective_string_val: d.effectiveValue.effectiveStringVal,
|
|
823
|
-
}),
|
|
824
|
-
}));
|
|
65
|
+
const unmarshalAibiDashboardEmbeddingAccessPolicySchema = z.object({ access_policy_type: z.string().optional() }).transform((d) => ({ accessPolicyType: d.access_policy_type }));
|
|
66
|
+
const unmarshalAibiDashboardEmbeddingApprovedDomainsSchema = z.object({ approved_domains: z.array(z.string()).optional() }).transform((d) => ({ approvedDomains: d.approved_domains }));
|
|
67
|
+
const unmarshalAllowedAppsUserApiScopesMessageSchema = z.object({ allowed_scopes: z.array(z.string()).optional() }).transform((d) => ({ allowedScopes: d.allowed_scopes }));
|
|
68
|
+
const unmarshalBooleanMessageSchema = z.object({ value: z.boolean().optional() }).transform((d) => ({ value: d.value }));
|
|
69
|
+
const unmarshalClusterAutoRestartMessageSchema = z.object({
|
|
70
|
+
enabled: z.boolean().optional(),
|
|
71
|
+
can_toggle: z.boolean().optional(),
|
|
72
|
+
maintenance_window: z.lazy(() => unmarshalClusterAutoRestartMessage_MaintenanceWindowSchema).optional(),
|
|
73
|
+
enablement_details: z.lazy(() => unmarshalClusterAutoRestartMessage_EnablementDetailsSchema).optional(),
|
|
74
|
+
restart_even_if_no_updates_available: z.boolean().optional()
|
|
75
|
+
}).transform((d) => ({
|
|
76
|
+
enabled: d.enabled,
|
|
77
|
+
canToggle: d.can_toggle,
|
|
78
|
+
maintenanceWindow: d.maintenance_window,
|
|
79
|
+
enablementDetails: d.enablement_details,
|
|
80
|
+
restartEvenIfNoUpdatesAvailable: d.restart_even_if_no_updates_available
|
|
81
|
+
}));
|
|
82
|
+
const unmarshalClusterAutoRestartMessage_EnablementDetailsSchema = z.object({
|
|
83
|
+
unavailable_for_non_enterprise_tier: z.boolean().optional(),
|
|
84
|
+
unavailable_for_disabled_entitlement: z.boolean().optional(),
|
|
85
|
+
forced_for_compliance_mode: z.boolean().optional()
|
|
86
|
+
}).transform((d) => ({
|
|
87
|
+
unavailableForNonEnterpriseTier: d.unavailable_for_non_enterprise_tier,
|
|
88
|
+
unavailableForDisabledEntitlement: d.unavailable_for_disabled_entitlement,
|
|
89
|
+
forcedForComplianceMode: d.forced_for_compliance_mode
|
|
90
|
+
}));
|
|
91
|
+
const unmarshalClusterAutoRestartMessage_MaintenanceWindowSchema = z.object({ week_day_based_schedule: z.lazy(() => unmarshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema).optional() }).transform((d) => ({ weekDayBasedSchedule: d.week_day_based_schedule }));
|
|
92
|
+
const unmarshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema = z.object({
|
|
93
|
+
frequency: z.string().optional(),
|
|
94
|
+
day_of_week: z.string().optional(),
|
|
95
|
+
window_start_time: z.lazy(() => unmarshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema).optional()
|
|
96
|
+
}).transform((d) => ({
|
|
97
|
+
frequency: d.frequency,
|
|
98
|
+
dayOfWeek: d.day_of_week,
|
|
99
|
+
windowStartTime: d.window_start_time
|
|
100
|
+
}));
|
|
101
|
+
const unmarshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema = z.object({
|
|
102
|
+
hours: z.number().optional(),
|
|
103
|
+
minutes: z.number().optional()
|
|
104
|
+
}).transform((d) => ({
|
|
105
|
+
hours: d.hours,
|
|
106
|
+
minutes: d.minutes
|
|
107
|
+
}));
|
|
108
|
+
const unmarshalCollaborationPlatformConnectivityMessageSchema = z.object({ connectivity: z.string().optional() }).transform((d) => ({ connectivity: d.connectivity }));
|
|
109
|
+
const unmarshalIntegerMessageSchema = z.object({ value: z.number().optional() }).transform((d) => ({ value: d.value }));
|
|
110
|
+
const unmarshalListAccountSettingsMetadataResponseSchema = z.object({
|
|
111
|
+
settings_metadata: z.array(z.lazy(() => unmarshalSettingsMetadataSchema)).optional(),
|
|
112
|
+
next_page_token: z.string().optional()
|
|
113
|
+
}).transform((d) => ({
|
|
114
|
+
settingsMetadata: d.settings_metadata,
|
|
115
|
+
nextPageToken: d.next_page_token
|
|
116
|
+
}));
|
|
117
|
+
const unmarshalListAccountUserPreferencesMetadataResponseSchema = z.object({
|
|
118
|
+
settings_metadata: z.array(z.lazy(() => unmarshalSettingsMetadataSchema)).optional(),
|
|
119
|
+
next_page_token: z.string().optional()
|
|
120
|
+
}).transform((d) => ({
|
|
121
|
+
settingsMetadata: d.settings_metadata,
|
|
122
|
+
nextPageToken: d.next_page_token
|
|
123
|
+
}));
|
|
124
|
+
const unmarshalListWorkspaceSettingsMetadataResponseSchema = z.object({
|
|
125
|
+
settings_metadata: z.array(z.lazy(() => unmarshalSettingsMetadataSchema)).optional(),
|
|
126
|
+
next_page_token: z.string().optional()
|
|
127
|
+
}).transform((d) => ({
|
|
128
|
+
settingsMetadata: d.settings_metadata,
|
|
129
|
+
nextPageToken: d.next_page_token
|
|
130
|
+
}));
|
|
131
|
+
const unmarshalOperationalEmailCustomRecipientMessageSchema = z.object({ email: z.string().optional() }).transform((d) => ({ email: d.email }));
|
|
132
|
+
const unmarshalPersonalComputeMessageSchema = z.object({ value: z.string().optional() }).transform((d) => ({ value: d.value }));
|
|
133
|
+
const unmarshalRestrictWorkspaceAdminsMessageSchema = z.object({
|
|
134
|
+
status: z.string().optional(),
|
|
135
|
+
disable_gov_tag_creation: z.boolean().optional()
|
|
136
|
+
}).transform((d) => ({
|
|
137
|
+
status: d.status,
|
|
138
|
+
disableGovTagCreation: d.disable_gov_tag_creation
|
|
139
|
+
}));
|
|
140
|
+
const unmarshalSettingSchema = z.object({
|
|
141
|
+
name: z.string().optional(),
|
|
142
|
+
boolean_val: z.lazy(() => unmarshalBooleanMessageSchema).optional(),
|
|
143
|
+
string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),
|
|
144
|
+
integer_val: z.lazy(() => unmarshalIntegerMessageSchema).optional(),
|
|
145
|
+
automatic_cluster_update_workspace: z.lazy(() => unmarshalClusterAutoRestartMessageSchema).optional(),
|
|
146
|
+
aibi_dashboard_embedding_approved_domains: z.lazy(() => unmarshalAibiDashboardEmbeddingApprovedDomainsSchema).optional(),
|
|
147
|
+
aibi_dashboard_embedding_access_policy: z.lazy(() => unmarshalAibiDashboardEmbeddingAccessPolicySchema).optional(),
|
|
148
|
+
restrict_workspace_admins: z.lazy(() => unmarshalRestrictWorkspaceAdminsMessageSchema).optional(),
|
|
149
|
+
personal_compute: z.lazy(() => unmarshalPersonalComputeMessageSchema).optional(),
|
|
150
|
+
allowed_apps_user_api_scopes: z.lazy(() => unmarshalAllowedAppsUserApiScopesMessageSchema).optional(),
|
|
151
|
+
operational_email_custom_recipient: z.lazy(() => unmarshalOperationalEmailCustomRecipientMessageSchema).optional(),
|
|
152
|
+
collaboration_platform_connectivity: z.lazy(() => unmarshalCollaborationPlatformConnectivityMessageSchema).optional(),
|
|
153
|
+
effective_boolean_val: z.lazy(() => unmarshalBooleanMessageSchema).optional(),
|
|
154
|
+
effective_string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),
|
|
155
|
+
effective_integer_val: z.lazy(() => unmarshalIntegerMessageSchema).optional(),
|
|
156
|
+
effective_automatic_cluster_update_workspace: z.lazy(() => unmarshalClusterAutoRestartMessageSchema).optional(),
|
|
157
|
+
effective_aibi_dashboard_embedding_approved_domains: z.lazy(() => unmarshalAibiDashboardEmbeddingApprovedDomainsSchema).optional(),
|
|
158
|
+
effective_aibi_dashboard_embedding_access_policy: z.lazy(() => unmarshalAibiDashboardEmbeddingAccessPolicySchema).optional(),
|
|
159
|
+
effective_restrict_workspace_admins: z.lazy(() => unmarshalRestrictWorkspaceAdminsMessageSchema).optional(),
|
|
160
|
+
effective_personal_compute: z.lazy(() => unmarshalPersonalComputeMessageSchema).optional(),
|
|
161
|
+
effective_allowed_apps_user_api_scopes: z.lazy(() => unmarshalAllowedAppsUserApiScopesMessageSchema).optional(),
|
|
162
|
+
effective_operational_email_custom_recipient: z.lazy(() => unmarshalOperationalEmailCustomRecipientMessageSchema).optional(),
|
|
163
|
+
effective_collaboration_platform_connectivity: z.lazy(() => unmarshalCollaborationPlatformConnectivityMessageSchema).optional()
|
|
164
|
+
}).transform((d) => ({
|
|
165
|
+
name: d.name,
|
|
166
|
+
value: d.boolean_val !== void 0 ? {
|
|
167
|
+
$case: "booleanVal",
|
|
168
|
+
booleanVal: d.boolean_val
|
|
169
|
+
} : d.string_val !== void 0 ? {
|
|
170
|
+
$case: "stringVal",
|
|
171
|
+
stringVal: d.string_val
|
|
172
|
+
} : d.integer_val !== void 0 ? {
|
|
173
|
+
$case: "integerVal",
|
|
174
|
+
integerVal: d.integer_val
|
|
175
|
+
} : d.automatic_cluster_update_workspace !== void 0 ? {
|
|
176
|
+
$case: "automaticClusterUpdateWorkspace",
|
|
177
|
+
automaticClusterUpdateWorkspace: d.automatic_cluster_update_workspace
|
|
178
|
+
} : d.aibi_dashboard_embedding_approved_domains !== void 0 ? {
|
|
179
|
+
$case: "aibiDashboardEmbeddingApprovedDomains",
|
|
180
|
+
aibiDashboardEmbeddingApprovedDomains: d.aibi_dashboard_embedding_approved_domains
|
|
181
|
+
} : d.aibi_dashboard_embedding_access_policy !== void 0 ? {
|
|
182
|
+
$case: "aibiDashboardEmbeddingAccessPolicy",
|
|
183
|
+
aibiDashboardEmbeddingAccessPolicy: d.aibi_dashboard_embedding_access_policy
|
|
184
|
+
} : d.restrict_workspace_admins !== void 0 ? {
|
|
185
|
+
$case: "restrictWorkspaceAdmins",
|
|
186
|
+
restrictWorkspaceAdmins: d.restrict_workspace_admins
|
|
187
|
+
} : d.personal_compute !== void 0 ? {
|
|
188
|
+
$case: "personalCompute",
|
|
189
|
+
personalCompute: d.personal_compute
|
|
190
|
+
} : d.allowed_apps_user_api_scopes !== void 0 ? {
|
|
191
|
+
$case: "allowedAppsUserApiScopes",
|
|
192
|
+
allowedAppsUserApiScopes: d.allowed_apps_user_api_scopes
|
|
193
|
+
} : d.operational_email_custom_recipient !== void 0 ? {
|
|
194
|
+
$case: "operationalEmailCustomRecipient",
|
|
195
|
+
operationalEmailCustomRecipient: d.operational_email_custom_recipient
|
|
196
|
+
} : d.collaboration_platform_connectivity !== void 0 ? {
|
|
197
|
+
$case: "collaborationPlatformConnectivity",
|
|
198
|
+
collaborationPlatformConnectivity: d.collaboration_platform_connectivity
|
|
199
|
+
} : void 0,
|
|
200
|
+
effectiveValue: d.effective_boolean_val !== void 0 ? {
|
|
201
|
+
$case: "effectiveBooleanVal",
|
|
202
|
+
effectiveBooleanVal: d.effective_boolean_val
|
|
203
|
+
} : d.effective_string_val !== void 0 ? {
|
|
204
|
+
$case: "effectiveStringVal",
|
|
205
|
+
effectiveStringVal: d.effective_string_val
|
|
206
|
+
} : d.effective_integer_val !== void 0 ? {
|
|
207
|
+
$case: "effectiveIntegerVal",
|
|
208
|
+
effectiveIntegerVal: d.effective_integer_val
|
|
209
|
+
} : d.effective_automatic_cluster_update_workspace !== void 0 ? {
|
|
210
|
+
$case: "effectiveAutomaticClusterUpdateWorkspace",
|
|
211
|
+
effectiveAutomaticClusterUpdateWorkspace: d.effective_automatic_cluster_update_workspace
|
|
212
|
+
} : d.effective_aibi_dashboard_embedding_approved_domains !== void 0 ? {
|
|
213
|
+
$case: "effectiveAibiDashboardEmbeddingApprovedDomains",
|
|
214
|
+
effectiveAibiDashboardEmbeddingApprovedDomains: d.effective_aibi_dashboard_embedding_approved_domains
|
|
215
|
+
} : d.effective_aibi_dashboard_embedding_access_policy !== void 0 ? {
|
|
216
|
+
$case: "effectiveAibiDashboardEmbeddingAccessPolicy",
|
|
217
|
+
effectiveAibiDashboardEmbeddingAccessPolicy: d.effective_aibi_dashboard_embedding_access_policy
|
|
218
|
+
} : d.effective_restrict_workspace_admins !== void 0 ? {
|
|
219
|
+
$case: "effectiveRestrictWorkspaceAdmins",
|
|
220
|
+
effectiveRestrictWorkspaceAdmins: d.effective_restrict_workspace_admins
|
|
221
|
+
} : d.effective_personal_compute !== void 0 ? {
|
|
222
|
+
$case: "effectivePersonalCompute",
|
|
223
|
+
effectivePersonalCompute: d.effective_personal_compute
|
|
224
|
+
} : d.effective_allowed_apps_user_api_scopes !== void 0 ? {
|
|
225
|
+
$case: "effectiveAllowedAppsUserApiScopes",
|
|
226
|
+
effectiveAllowedAppsUserApiScopes: d.effective_allowed_apps_user_api_scopes
|
|
227
|
+
} : d.effective_operational_email_custom_recipient !== void 0 ? {
|
|
228
|
+
$case: "effectiveOperationalEmailCustomRecipient",
|
|
229
|
+
effectiveOperationalEmailCustomRecipient: d.effective_operational_email_custom_recipient
|
|
230
|
+
} : d.effective_collaboration_platform_connectivity !== void 0 ? {
|
|
231
|
+
$case: "effectiveCollaborationPlatformConnectivity",
|
|
232
|
+
effectiveCollaborationPlatformConnectivity: d.effective_collaboration_platform_connectivity
|
|
233
|
+
} : void 0
|
|
234
|
+
}));
|
|
235
|
+
const unmarshalSettingsMetadataSchema = z.object({
|
|
236
|
+
name: z.string().optional(),
|
|
237
|
+
description: z.string().optional(),
|
|
238
|
+
type: z.string().optional(),
|
|
239
|
+
docs_link: z.string().optional(),
|
|
240
|
+
preview_phase: z.string().optional(),
|
|
241
|
+
display_name: z.string().optional()
|
|
242
|
+
}).transform((d) => ({
|
|
243
|
+
name: d.name,
|
|
244
|
+
description: d.description,
|
|
245
|
+
type: d.type,
|
|
246
|
+
docsLink: d.docs_link,
|
|
247
|
+
previewPhase: d.preview_phase,
|
|
248
|
+
displayName: d.display_name
|
|
249
|
+
}));
|
|
250
|
+
const unmarshalStringMessageSchema = z.object({ value: z.string().optional() }).transform((d) => ({ value: d.value }));
|
|
251
|
+
const unmarshalUserPreferenceSchema = z.object({
|
|
252
|
+
name: z.string().optional(),
|
|
253
|
+
user_id: z.string().optional(),
|
|
254
|
+
boolean_val: z.lazy(() => unmarshalBooleanMessageSchema).optional(),
|
|
255
|
+
string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),
|
|
256
|
+
effective_boolean_val: z.lazy(() => unmarshalBooleanMessageSchema).optional(),
|
|
257
|
+
effective_string_val: z.lazy(() => unmarshalStringMessageSchema).optional()
|
|
258
|
+
}).transform((d) => ({
|
|
259
|
+
name: d.name,
|
|
260
|
+
userId: d.user_id,
|
|
261
|
+
value: d.boolean_val !== void 0 ? {
|
|
262
|
+
$case: "booleanVal",
|
|
263
|
+
booleanVal: d.boolean_val
|
|
264
|
+
} : d.string_val !== void 0 ? {
|
|
265
|
+
$case: "stringVal",
|
|
266
|
+
stringVal: d.string_val
|
|
267
|
+
} : void 0,
|
|
268
|
+
effectiveValue: d.effective_boolean_val !== void 0 ? {
|
|
269
|
+
$case: "effectiveBooleanVal",
|
|
270
|
+
effectiveBooleanVal: d.effective_boolean_val
|
|
271
|
+
} : d.effective_string_val !== void 0 ? {
|
|
272
|
+
$case: "effectiveStringVal",
|
|
273
|
+
effectiveStringVal: d.effective_string_val
|
|
274
|
+
} : void 0
|
|
275
|
+
}));
|
|
276
|
+
const marshalAibiDashboardEmbeddingAccessPolicySchema = z.object({ accessPolicyType: z.string().optional() }).transform((d) => ({ access_policy_type: d.accessPolicyType }));
|
|
277
|
+
const marshalAibiDashboardEmbeddingApprovedDomainsSchema = z.object({ approvedDomains: z.array(z.string()).optional() }).transform((d) => ({ approved_domains: d.approvedDomains }));
|
|
278
|
+
const marshalAllowedAppsUserApiScopesMessageSchema = z.object({ allowedScopes: z.array(z.string()).optional() }).transform((d) => ({ allowed_scopes: d.allowedScopes }));
|
|
279
|
+
const marshalBooleanMessageSchema = z.object({ value: z.boolean().optional() }).transform((d) => ({ value: d.value }));
|
|
280
|
+
const marshalClusterAutoRestartMessageSchema = z.object({
|
|
281
|
+
enabled: z.boolean().optional(),
|
|
282
|
+
canToggle: z.boolean().optional(),
|
|
283
|
+
maintenanceWindow: z.lazy(() => marshalClusterAutoRestartMessage_MaintenanceWindowSchema).optional(),
|
|
284
|
+
enablementDetails: z.lazy(() => marshalClusterAutoRestartMessage_EnablementDetailsSchema).optional(),
|
|
285
|
+
restartEvenIfNoUpdatesAvailable: z.boolean().optional()
|
|
286
|
+
}).transform((d) => ({
|
|
287
|
+
enabled: d.enabled,
|
|
288
|
+
can_toggle: d.canToggle,
|
|
289
|
+
maintenance_window: d.maintenanceWindow,
|
|
290
|
+
enablement_details: d.enablementDetails,
|
|
291
|
+
restart_even_if_no_updates_available: d.restartEvenIfNoUpdatesAvailable
|
|
292
|
+
}));
|
|
293
|
+
const marshalClusterAutoRestartMessage_EnablementDetailsSchema = z.object({
|
|
294
|
+
unavailableForNonEnterpriseTier: z.boolean().optional(),
|
|
295
|
+
unavailableForDisabledEntitlement: z.boolean().optional(),
|
|
296
|
+
forcedForComplianceMode: z.boolean().optional()
|
|
297
|
+
}).transform((d) => ({
|
|
298
|
+
unavailable_for_non_enterprise_tier: d.unavailableForNonEnterpriseTier,
|
|
299
|
+
unavailable_for_disabled_entitlement: d.unavailableForDisabledEntitlement,
|
|
300
|
+
forced_for_compliance_mode: d.forcedForComplianceMode
|
|
301
|
+
}));
|
|
302
|
+
const marshalClusterAutoRestartMessage_MaintenanceWindowSchema = z.object({ weekDayBasedSchedule: z.lazy(() => marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema).optional() }).transform((d) => ({ week_day_based_schedule: d.weekDayBasedSchedule }));
|
|
303
|
+
const marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema = z.object({
|
|
304
|
+
frequency: z.string().optional(),
|
|
305
|
+
dayOfWeek: z.string().optional(),
|
|
306
|
+
windowStartTime: z.lazy(() => marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema).optional()
|
|
307
|
+
}).transform((d) => ({
|
|
308
|
+
frequency: d.frequency,
|
|
309
|
+
day_of_week: d.dayOfWeek,
|
|
310
|
+
window_start_time: d.windowStartTime
|
|
311
|
+
}));
|
|
312
|
+
const marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema = z.object({
|
|
313
|
+
hours: z.number().optional(),
|
|
314
|
+
minutes: z.number().optional()
|
|
315
|
+
}).transform((d) => ({
|
|
316
|
+
hours: d.hours,
|
|
317
|
+
minutes: d.minutes
|
|
318
|
+
}));
|
|
319
|
+
const marshalCollaborationPlatformConnectivityMessageSchema = z.object({ connectivity: z.string().optional() }).transform((d) => ({ connectivity: d.connectivity }));
|
|
320
|
+
const marshalIntegerMessageSchema = z.object({ value: z.number().optional() }).transform((d) => ({ value: d.value }));
|
|
321
|
+
const marshalOperationalEmailCustomRecipientMessageSchema = z.object({ email: z.string().optional() }).transform((d) => ({ email: d.email }));
|
|
322
|
+
const marshalPersonalComputeMessageSchema = z.object({ value: z.string().optional() }).transform((d) => ({ value: d.value }));
|
|
323
|
+
const marshalRestrictWorkspaceAdminsMessageSchema = z.object({
|
|
324
|
+
status: z.string().optional(),
|
|
325
|
+
disableGovTagCreation: z.boolean().optional()
|
|
326
|
+
}).transform((d) => ({
|
|
327
|
+
status: d.status,
|
|
328
|
+
disable_gov_tag_creation: d.disableGovTagCreation
|
|
329
|
+
}));
|
|
330
|
+
const marshalSettingSchema = z.object({
|
|
331
|
+
name: z.string().optional(),
|
|
332
|
+
value: z.discriminatedUnion("$case", [
|
|
333
|
+
z.object({
|
|
334
|
+
$case: z.literal("booleanVal"),
|
|
335
|
+
booleanVal: z.lazy(() => marshalBooleanMessageSchema)
|
|
336
|
+
}),
|
|
337
|
+
z.object({
|
|
338
|
+
$case: z.literal("stringVal"),
|
|
339
|
+
stringVal: z.lazy(() => marshalStringMessageSchema)
|
|
340
|
+
}),
|
|
341
|
+
z.object({
|
|
342
|
+
$case: z.literal("integerVal"),
|
|
343
|
+
integerVal: z.lazy(() => marshalIntegerMessageSchema)
|
|
344
|
+
}),
|
|
345
|
+
z.object({
|
|
346
|
+
$case: z.literal("automaticClusterUpdateWorkspace"),
|
|
347
|
+
automaticClusterUpdateWorkspace: z.lazy(() => marshalClusterAutoRestartMessageSchema)
|
|
348
|
+
}),
|
|
349
|
+
z.object({
|
|
350
|
+
$case: z.literal("aibiDashboardEmbeddingApprovedDomains"),
|
|
351
|
+
aibiDashboardEmbeddingApprovedDomains: z.lazy(() => marshalAibiDashboardEmbeddingApprovedDomainsSchema)
|
|
352
|
+
}),
|
|
353
|
+
z.object({
|
|
354
|
+
$case: z.literal("aibiDashboardEmbeddingAccessPolicy"),
|
|
355
|
+
aibiDashboardEmbeddingAccessPolicy: z.lazy(() => marshalAibiDashboardEmbeddingAccessPolicySchema)
|
|
356
|
+
}),
|
|
357
|
+
z.object({
|
|
358
|
+
$case: z.literal("restrictWorkspaceAdmins"),
|
|
359
|
+
restrictWorkspaceAdmins: z.lazy(() => marshalRestrictWorkspaceAdminsMessageSchema)
|
|
360
|
+
}),
|
|
361
|
+
z.object({
|
|
362
|
+
$case: z.literal("personalCompute"),
|
|
363
|
+
personalCompute: z.lazy(() => marshalPersonalComputeMessageSchema)
|
|
364
|
+
}),
|
|
365
|
+
z.object({
|
|
366
|
+
$case: z.literal("allowedAppsUserApiScopes"),
|
|
367
|
+
allowedAppsUserApiScopes: z.lazy(() => marshalAllowedAppsUserApiScopesMessageSchema)
|
|
368
|
+
}),
|
|
369
|
+
z.object({
|
|
370
|
+
$case: z.literal("operationalEmailCustomRecipient"),
|
|
371
|
+
operationalEmailCustomRecipient: z.lazy(() => marshalOperationalEmailCustomRecipientMessageSchema)
|
|
372
|
+
}),
|
|
373
|
+
z.object({
|
|
374
|
+
$case: z.literal("collaborationPlatformConnectivity"),
|
|
375
|
+
collaborationPlatformConnectivity: z.lazy(() => marshalCollaborationPlatformConnectivityMessageSchema)
|
|
376
|
+
})
|
|
377
|
+
]).optional(),
|
|
378
|
+
effectiveValue: z.discriminatedUnion("$case", [
|
|
379
|
+
z.object({
|
|
380
|
+
$case: z.literal("effectiveBooleanVal"),
|
|
381
|
+
effectiveBooleanVal: z.lazy(() => marshalBooleanMessageSchema)
|
|
382
|
+
}),
|
|
383
|
+
z.object({
|
|
384
|
+
$case: z.literal("effectiveStringVal"),
|
|
385
|
+
effectiveStringVal: z.lazy(() => marshalStringMessageSchema)
|
|
386
|
+
}),
|
|
387
|
+
z.object({
|
|
388
|
+
$case: z.literal("effectiveIntegerVal"),
|
|
389
|
+
effectiveIntegerVal: z.lazy(() => marshalIntegerMessageSchema)
|
|
390
|
+
}),
|
|
391
|
+
z.object({
|
|
392
|
+
$case: z.literal("effectiveAutomaticClusterUpdateWorkspace"),
|
|
393
|
+
effectiveAutomaticClusterUpdateWorkspace: z.lazy(() => marshalClusterAutoRestartMessageSchema)
|
|
394
|
+
}),
|
|
395
|
+
z.object({
|
|
396
|
+
$case: z.literal("effectiveAibiDashboardEmbeddingApprovedDomains"),
|
|
397
|
+
effectiveAibiDashboardEmbeddingApprovedDomains: z.lazy(() => marshalAibiDashboardEmbeddingApprovedDomainsSchema)
|
|
398
|
+
}),
|
|
399
|
+
z.object({
|
|
400
|
+
$case: z.literal("effectiveAibiDashboardEmbeddingAccessPolicy"),
|
|
401
|
+
effectiveAibiDashboardEmbeddingAccessPolicy: z.lazy(() => marshalAibiDashboardEmbeddingAccessPolicySchema)
|
|
402
|
+
}),
|
|
403
|
+
z.object({
|
|
404
|
+
$case: z.literal("effectiveRestrictWorkspaceAdmins"),
|
|
405
|
+
effectiveRestrictWorkspaceAdmins: z.lazy(() => marshalRestrictWorkspaceAdminsMessageSchema)
|
|
406
|
+
}),
|
|
407
|
+
z.object({
|
|
408
|
+
$case: z.literal("effectivePersonalCompute"),
|
|
409
|
+
effectivePersonalCompute: z.lazy(() => marshalPersonalComputeMessageSchema)
|
|
410
|
+
}),
|
|
411
|
+
z.object({
|
|
412
|
+
$case: z.literal("effectiveAllowedAppsUserApiScopes"),
|
|
413
|
+
effectiveAllowedAppsUserApiScopes: z.lazy(() => marshalAllowedAppsUserApiScopesMessageSchema)
|
|
414
|
+
}),
|
|
415
|
+
z.object({
|
|
416
|
+
$case: z.literal("effectiveOperationalEmailCustomRecipient"),
|
|
417
|
+
effectiveOperationalEmailCustomRecipient: z.lazy(() => marshalOperationalEmailCustomRecipientMessageSchema)
|
|
418
|
+
}),
|
|
419
|
+
z.object({
|
|
420
|
+
$case: z.literal("effectiveCollaborationPlatformConnectivity"),
|
|
421
|
+
effectiveCollaborationPlatformConnectivity: z.lazy(() => marshalCollaborationPlatformConnectivityMessageSchema)
|
|
422
|
+
})
|
|
423
|
+
]).optional()
|
|
424
|
+
}).transform((d) => ({
|
|
425
|
+
name: d.name,
|
|
426
|
+
...d.value?.$case === "booleanVal" && { boolean_val: d.value.booleanVal },
|
|
427
|
+
...d.value?.$case === "stringVal" && { string_val: d.value.stringVal },
|
|
428
|
+
...d.value?.$case === "integerVal" && { integer_val: d.value.integerVal },
|
|
429
|
+
...d.value?.$case === "automaticClusterUpdateWorkspace" && { automatic_cluster_update_workspace: d.value.automaticClusterUpdateWorkspace },
|
|
430
|
+
...d.value?.$case === "aibiDashboardEmbeddingApprovedDomains" && { aibi_dashboard_embedding_approved_domains: d.value.aibiDashboardEmbeddingApprovedDomains },
|
|
431
|
+
...d.value?.$case === "aibiDashboardEmbeddingAccessPolicy" && { aibi_dashboard_embedding_access_policy: d.value.aibiDashboardEmbeddingAccessPolicy },
|
|
432
|
+
...d.value?.$case === "restrictWorkspaceAdmins" && { restrict_workspace_admins: d.value.restrictWorkspaceAdmins },
|
|
433
|
+
...d.value?.$case === "personalCompute" && { personal_compute: d.value.personalCompute },
|
|
434
|
+
...d.value?.$case === "allowedAppsUserApiScopes" && { allowed_apps_user_api_scopes: d.value.allowedAppsUserApiScopes },
|
|
435
|
+
...d.value?.$case === "operationalEmailCustomRecipient" && { operational_email_custom_recipient: d.value.operationalEmailCustomRecipient },
|
|
436
|
+
...d.value?.$case === "collaborationPlatformConnectivity" && { collaboration_platform_connectivity: d.value.collaborationPlatformConnectivity },
|
|
437
|
+
...d.effectiveValue?.$case === "effectiveBooleanVal" && { effective_boolean_val: d.effectiveValue.effectiveBooleanVal },
|
|
438
|
+
...d.effectiveValue?.$case === "effectiveStringVal" && { effective_string_val: d.effectiveValue.effectiveStringVal },
|
|
439
|
+
...d.effectiveValue?.$case === "effectiveIntegerVal" && { effective_integer_val: d.effectiveValue.effectiveIntegerVal },
|
|
440
|
+
...d.effectiveValue?.$case === "effectiveAutomaticClusterUpdateWorkspace" && { effective_automatic_cluster_update_workspace: d.effectiveValue.effectiveAutomaticClusterUpdateWorkspace },
|
|
441
|
+
...d.effectiveValue?.$case === "effectiveAibiDashboardEmbeddingApprovedDomains" && { effective_aibi_dashboard_embedding_approved_domains: d.effectiveValue.effectiveAibiDashboardEmbeddingApprovedDomains },
|
|
442
|
+
...d.effectiveValue?.$case === "effectiveAibiDashboardEmbeddingAccessPolicy" && { effective_aibi_dashboard_embedding_access_policy: d.effectiveValue.effectiveAibiDashboardEmbeddingAccessPolicy },
|
|
443
|
+
...d.effectiveValue?.$case === "effectiveRestrictWorkspaceAdmins" && { effective_restrict_workspace_admins: d.effectiveValue.effectiveRestrictWorkspaceAdmins },
|
|
444
|
+
...d.effectiveValue?.$case === "effectivePersonalCompute" && { effective_personal_compute: d.effectiveValue.effectivePersonalCompute },
|
|
445
|
+
...d.effectiveValue?.$case === "effectiveAllowedAppsUserApiScopes" && { effective_allowed_apps_user_api_scopes: d.effectiveValue.effectiveAllowedAppsUserApiScopes },
|
|
446
|
+
...d.effectiveValue?.$case === "effectiveOperationalEmailCustomRecipient" && { effective_operational_email_custom_recipient: d.effectiveValue.effectiveOperationalEmailCustomRecipient },
|
|
447
|
+
...d.effectiveValue?.$case === "effectiveCollaborationPlatformConnectivity" && { effective_collaboration_platform_connectivity: d.effectiveValue.effectiveCollaborationPlatformConnectivity }
|
|
448
|
+
}));
|
|
449
|
+
const marshalStringMessageSchema = z.object({ value: z.string().optional() }).transform((d) => ({ value: d.value }));
|
|
450
|
+
const marshalUserPreferenceSchema = z.object({
|
|
451
|
+
name: z.string().optional(),
|
|
452
|
+
userId: z.string().optional(),
|
|
453
|
+
value: z.discriminatedUnion("$case", [z.object({
|
|
454
|
+
$case: z.literal("booleanVal"),
|
|
455
|
+
booleanVal: z.lazy(() => marshalBooleanMessageSchema)
|
|
456
|
+
}), z.object({
|
|
457
|
+
$case: z.literal("stringVal"),
|
|
458
|
+
stringVal: z.lazy(() => marshalStringMessageSchema)
|
|
459
|
+
})]).optional(),
|
|
460
|
+
effectiveValue: z.discriminatedUnion("$case", [z.object({
|
|
461
|
+
$case: z.literal("effectiveBooleanVal"),
|
|
462
|
+
effectiveBooleanVal: z.lazy(() => marshalBooleanMessageSchema)
|
|
463
|
+
}), z.object({
|
|
464
|
+
$case: z.literal("effectiveStringVal"),
|
|
465
|
+
effectiveStringVal: z.lazy(() => marshalStringMessageSchema)
|
|
466
|
+
})]).optional()
|
|
467
|
+
}).transform((d) => ({
|
|
468
|
+
name: d.name,
|
|
469
|
+
user_id: d.userId,
|
|
470
|
+
...d.value?.$case === "booleanVal" && { boolean_val: d.value.booleanVal },
|
|
471
|
+
...d.value?.$case === "stringVal" && { string_val: d.value.stringVal },
|
|
472
|
+
...d.effectiveValue?.$case === "effectiveBooleanVal" && { effective_boolean_val: d.effectiveValue.effectiveBooleanVal },
|
|
473
|
+
...d.effectiveValue?.$case === "effectiveStringVal" && { effective_string_val: d.effectiveValue.effectiveStringVal }
|
|
474
|
+
}));
|
|
475
|
+
|
|
476
|
+
//#endregion
|
|
477
|
+
export { AibiDashboardEmbeddingAccessPolicy_AccessPolicyType, ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency, CollaborationPlatformConnectivityMessage_Connectivity, PersonalComputeMessage_PersonalComputeMessageEnum, PreviewPhase, RestrictWorkspaceAdminsMessage_Status, marshalAibiDashboardEmbeddingAccessPolicySchema, marshalAibiDashboardEmbeddingApprovedDomainsSchema, marshalAllowedAppsUserApiScopesMessageSchema, marshalBooleanMessageSchema, marshalClusterAutoRestartMessageSchema, marshalClusterAutoRestartMessage_EnablementDetailsSchema, marshalClusterAutoRestartMessage_MaintenanceWindowSchema, marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema, marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema, marshalCollaborationPlatformConnectivityMessageSchema, marshalIntegerMessageSchema, marshalOperationalEmailCustomRecipientMessageSchema, marshalPersonalComputeMessageSchema, marshalRestrictWorkspaceAdminsMessageSchema, marshalSettingSchema, marshalStringMessageSchema, marshalUserPreferenceSchema, unmarshalAibiDashboardEmbeddingAccessPolicySchema, unmarshalAibiDashboardEmbeddingApprovedDomainsSchema, unmarshalAllowedAppsUserApiScopesMessageSchema, unmarshalBooleanMessageSchema, unmarshalClusterAutoRestartMessageSchema, unmarshalClusterAutoRestartMessage_EnablementDetailsSchema, unmarshalClusterAutoRestartMessage_MaintenanceWindowSchema, unmarshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema, unmarshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema, unmarshalCollaborationPlatformConnectivityMessageSchema, unmarshalIntegerMessageSchema, unmarshalListAccountSettingsMetadataResponseSchema, unmarshalListAccountUserPreferencesMetadataResponseSchema, unmarshalListWorkspaceSettingsMetadataResponseSchema, unmarshalOperationalEmailCustomRecipientMessageSchema, unmarshalPersonalComputeMessageSchema, unmarshalRestrictWorkspaceAdminsMessageSchema, unmarshalSettingSchema, unmarshalSettingsMetadataSchema, unmarshalStringMessageSchema, unmarshalUserPreferenceSchema };
|
|
825
478
|
//# sourceMappingURL=model.js.map
|