@databricks/sdk-settings 0.48.0 → 0.52.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 +1 -1
- package/dist/v2/index.d.ts +2 -2
- package/dist/v2/model.d.ts +14 -1
- package/dist/v2/model.d.ts.map +1 -1
- package/dist/v2/model.js +33 -1
- package/dist/v2/model.js.map +1 -1
- package/dist/v2/transport.js +11 -3
- package/dist/v2/transport.js.map +1 -1
- package/package.json +4 -4
package/dist/package.js
CHANGED
package/dist/v2/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AibiDashboardEmbeddingAccessPolicy, AibiDashboardEmbeddingAccessPolicy_AccessPolicyType, AibiDashboardEmbeddingApprovedDomains, AllowedAppsUserApiScopesMessage, BooleanMessage, ClusterAutoRestartMessage, ClusterAutoRestartMessage_EnablementDetails, ClusterAutoRestartMessage_MaintenanceWindow, ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency, ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime, CollaborationPlatformConnectivityMessage, CollaborationPlatformConnectivityMessage_Connectivity, GetPublicAccountSettingRequest, GetPublicAccountUserPreferenceRequest, GetPublicWorkspaceSettingRequest, IntegerMessage, ListAccountSettingsMetadataRequest, ListAccountSettingsMetadataResponse, ListAccountUserPreferencesMetadataRequest, ListAccountUserPreferencesMetadataResponse, ListWorkspaceSettingsMetadataRequest, ListWorkspaceSettingsMetadataResponse, OperationalEmailCustomRecipientMessage, PatchPublicAccountSettingRequest, PatchPublicAccountUserPreferenceRequest, PatchPublicWorkspaceSettingRequest, PersonalComputeMessage, PersonalComputeMessage_PersonalComputeMessageEnum, PreviewPhase, RestrictWorkspaceAdminsMessage, RestrictWorkspaceAdminsMessage_Status, Setting, SettingsMetadata, StringMessage, UserPreference } from "./model.js";
|
|
1
|
+
import { AibiDashboardEmbeddingAccessPolicy, AibiDashboardEmbeddingAccessPolicy_AccessPolicyType, AibiDashboardEmbeddingApprovedDomains, AllowedAppsUserApiScopesMessage, BooleanMessage, ClusterAutoRestartMessage, ClusterAutoRestartMessage_EnablementDetails, ClusterAutoRestartMessage_MaintenanceWindow, ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency, ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime, CollaborationPlatformConnectivityMessage, CollaborationPlatformConnectivityMessage_Connectivity, GetPublicAccountSettingRequest, GetPublicAccountUserPreferenceRequest, GetPublicWorkspaceSettingRequest, IntegerMessage, ListAccountSettingsMetadataRequest, ListAccountSettingsMetadataResponse, ListAccountUserPreferencesMetadataRequest, ListAccountUserPreferencesMetadataResponse, ListWorkspaceSettingsMetadataRequest, ListWorkspaceSettingsMetadataResponse, OperationalEmailCustomRecipientMessage, PatchPublicAccountSettingRequest, PatchPublicAccountUserPreferenceRequest, PatchPublicWorkspaceSettingRequest, PersonalComputeMessage, PersonalComputeMessage_PersonalComputeMessageEnum, PreviewPhase, RestrictWorkspaceAdminsMessage, RestrictWorkspaceAdminsMessage_Status, Setting, SettingsMetadata, StringMessage, UserPreference, WorkspaceLabelMessage } from "./model.js";
|
|
2
2
|
import { SettingsClient } from "./client.js";
|
|
3
|
-
export { type AibiDashboardEmbeddingAccessPolicy, AibiDashboardEmbeddingAccessPolicy_AccessPolicyType, type AibiDashboardEmbeddingApprovedDomains, type AllowedAppsUserApiScopesMessage, type BooleanMessage, type ClusterAutoRestartMessage, type ClusterAutoRestartMessage_EnablementDetails, type ClusterAutoRestartMessage_MaintenanceWindow, ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek, type ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency, type ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime, type CollaborationPlatformConnectivityMessage, CollaborationPlatformConnectivityMessage_Connectivity, type GetPublicAccountSettingRequest, type GetPublicAccountUserPreferenceRequest, type GetPublicWorkspaceSettingRequest, type IntegerMessage, type ListAccountSettingsMetadataRequest, type ListAccountSettingsMetadataResponse, type ListAccountUserPreferencesMetadataRequest, type ListAccountUserPreferencesMetadataResponse, type ListWorkspaceSettingsMetadataRequest, type ListWorkspaceSettingsMetadataResponse, type OperationalEmailCustomRecipientMessage, type PatchPublicAccountSettingRequest, type PatchPublicAccountUserPreferenceRequest, type PatchPublicWorkspaceSettingRequest, type PersonalComputeMessage, PersonalComputeMessage_PersonalComputeMessageEnum, PreviewPhase, type RestrictWorkspaceAdminsMessage, RestrictWorkspaceAdminsMessage_Status, type Setting, SettingsClient, type SettingsMetadata, type StringMessage, type UserPreference };
|
|
3
|
+
export { type AibiDashboardEmbeddingAccessPolicy, AibiDashboardEmbeddingAccessPolicy_AccessPolicyType, type AibiDashboardEmbeddingApprovedDomains, type AllowedAppsUserApiScopesMessage, type BooleanMessage, type ClusterAutoRestartMessage, type ClusterAutoRestartMessage_EnablementDetails, type ClusterAutoRestartMessage_MaintenanceWindow, ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek, type ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency, type ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime, type CollaborationPlatformConnectivityMessage, CollaborationPlatformConnectivityMessage_Connectivity, type GetPublicAccountSettingRequest, type GetPublicAccountUserPreferenceRequest, type GetPublicWorkspaceSettingRequest, type IntegerMessage, type ListAccountSettingsMetadataRequest, type ListAccountSettingsMetadataResponse, type ListAccountUserPreferencesMetadataRequest, type ListAccountUserPreferencesMetadataResponse, type ListWorkspaceSettingsMetadataRequest, type ListWorkspaceSettingsMetadataResponse, type OperationalEmailCustomRecipientMessage, type PatchPublicAccountSettingRequest, type PatchPublicAccountUserPreferenceRequest, type PatchPublicWorkspaceSettingRequest, type PersonalComputeMessage, PersonalComputeMessage_PersonalComputeMessageEnum, PreviewPhase, type RestrictWorkspaceAdminsMessage, RestrictWorkspaceAdminsMessage_Status, type Setting, SettingsClient, type SettingsMetadata, type StringMessage, type UserPreference, type WorkspaceLabelMessage };
|
package/dist/v2/model.d.ts
CHANGED
|
@@ -300,6 +300,9 @@ interface Setting {
|
|
|
300
300
|
} | {
|
|
301
301
|
$case: 'personalCompute'; /** Setting value for personal_compute setting. This is the setting value set by consumers, check effective_personal_compute for final setting value. */
|
|
302
302
|
personalCompute: PersonalComputeMessage;
|
|
303
|
+
} | {
|
|
304
|
+
$case: 'workspaceLabel'; /** Setting value for workspace_label setting. This is the setting value set by consumers, check effective_workspace_label for final setting value. */
|
|
305
|
+
workspaceLabel: WorkspaceLabelMessage;
|
|
303
306
|
} | {
|
|
304
307
|
$case: 'allowedAppsUserApiScopes'; /** Setting value for allowed_apps_user_api_scopes setting. This is the setting value set by consumers, check effective_allowed_apps_user_api_scopes for final setting value. */
|
|
305
308
|
allowedAppsUserApiScopes: AllowedAppsUserApiScopesMessage;
|
|
@@ -339,6 +342,9 @@ interface Setting {
|
|
|
339
342
|
} | {
|
|
340
343
|
$case: 'effectivePersonalCompute'; /** Effective setting value for personal_compute setting. This is the final effective value of setting. To set a value use personal_compute. */
|
|
341
344
|
effectivePersonalCompute: PersonalComputeMessage;
|
|
345
|
+
} | {
|
|
346
|
+
$case: 'effectiveWorkspaceLabel'; /** Effective setting value for workspace_label setting. This is the final effective value of setting. To set a value use workspace_label. */
|
|
347
|
+
effectiveWorkspaceLabel: WorkspaceLabelMessage;
|
|
342
348
|
} | {
|
|
343
349
|
$case: 'effectiveAllowedAppsUserApiScopes'; /** Effective setting value for allowed_apps_user_api_scopes setting. This is the final effective value of setting. To set a value use allowed_apps_user_api_scopes. */
|
|
344
350
|
effectiveAllowedAppsUserApiScopes: AllowedAppsUserApiScopesMessage;
|
|
@@ -406,6 +412,11 @@ interface UserPreference {
|
|
|
406
412
|
effectiveStringVal: StringMessage;
|
|
407
413
|
} | undefined;
|
|
408
414
|
}
|
|
415
|
+
/** Workspace label and color for display (e.g. in account console). */
|
|
416
|
+
interface WorkspaceLabelMessage {
|
|
417
|
+
label?: string | undefined;
|
|
418
|
+
color?: string | undefined;
|
|
419
|
+
}
|
|
409
420
|
declare const unmarshalAibiDashboardEmbeddingAccessPolicySchema: z.ZodType<AibiDashboardEmbeddingAccessPolicy>;
|
|
410
421
|
declare const unmarshalAibiDashboardEmbeddingApprovedDomainsSchema: z.ZodType<AibiDashboardEmbeddingApprovedDomains>;
|
|
411
422
|
declare const unmarshalAllowedAppsUserApiScopesMessageSchema: z.ZodType<AllowedAppsUserApiScopesMessage>;
|
|
@@ -427,6 +438,7 @@ declare const unmarshalSettingSchema: z.ZodType<Setting>;
|
|
|
427
438
|
declare const unmarshalSettingsMetadataSchema: z.ZodType<SettingsMetadata>;
|
|
428
439
|
declare const unmarshalStringMessageSchema: z.ZodType<StringMessage>;
|
|
429
440
|
declare const unmarshalUserPreferenceSchema: z.ZodType<UserPreference>;
|
|
441
|
+
declare const unmarshalWorkspaceLabelMessageSchema: z.ZodType<WorkspaceLabelMessage>;
|
|
430
442
|
declare const marshalAibiDashboardEmbeddingAccessPolicySchema: z.ZodType;
|
|
431
443
|
declare const marshalAibiDashboardEmbeddingApprovedDomainsSchema: z.ZodType;
|
|
432
444
|
declare const marshalAllowedAppsUserApiScopesMessageSchema: z.ZodType;
|
|
@@ -444,6 +456,7 @@ declare const marshalRestrictWorkspaceAdminsMessageSchema: z.ZodType;
|
|
|
444
456
|
declare const marshalSettingSchema: z.ZodType;
|
|
445
457
|
declare const marshalStringMessageSchema: z.ZodType;
|
|
446
458
|
declare const marshalUserPreferenceSchema: z.ZodType;
|
|
459
|
+
declare const marshalWorkspaceLabelMessageSchema: z.ZodType;
|
|
447
460
|
//#endregion
|
|
448
|
-
export { AibiDashboardEmbeddingAccessPolicy, AibiDashboardEmbeddingAccessPolicy_AccessPolicyType, AibiDashboardEmbeddingApprovedDomains, AllowedAppsUserApiScopesMessage, BooleanMessage, ClusterAutoRestartMessage, ClusterAutoRestartMessage_EnablementDetails, ClusterAutoRestartMessage_MaintenanceWindow, ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency, ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime, CollaborationPlatformConnectivityMessage, CollaborationPlatformConnectivityMessage_Connectivity, GetPublicAccountSettingRequest, GetPublicAccountUserPreferenceRequest, GetPublicWorkspaceSettingRequest, IntegerMessage, ListAccountSettingsMetadataRequest, ListAccountSettingsMetadataResponse, ListAccountUserPreferencesMetadataRequest, ListAccountUserPreferencesMetadataResponse, ListWorkspaceSettingsMetadataRequest, ListWorkspaceSettingsMetadataResponse, OperationalEmailCustomRecipientMessage, PatchPublicAccountSettingRequest, PatchPublicAccountUserPreferenceRequest, PatchPublicWorkspaceSettingRequest, PersonalComputeMessage, PersonalComputeMessage_PersonalComputeMessageEnum, PreviewPhase, RestrictWorkspaceAdminsMessage, RestrictWorkspaceAdminsMessage_Status, Setting, SettingsMetadata, StringMessage, UserPreference, 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 };
|
|
461
|
+
export { AibiDashboardEmbeddingAccessPolicy, AibiDashboardEmbeddingAccessPolicy_AccessPolicyType, AibiDashboardEmbeddingApprovedDomains, AllowedAppsUserApiScopesMessage, BooleanMessage, ClusterAutoRestartMessage, ClusterAutoRestartMessage_EnablementDetails, ClusterAutoRestartMessage_MaintenanceWindow, ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule, ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency, ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime, CollaborationPlatformConnectivityMessage, CollaborationPlatformConnectivityMessage_Connectivity, GetPublicAccountSettingRequest, GetPublicAccountUserPreferenceRequest, GetPublicWorkspaceSettingRequest, IntegerMessage, ListAccountSettingsMetadataRequest, ListAccountSettingsMetadataResponse, ListAccountUserPreferencesMetadataRequest, ListAccountUserPreferencesMetadataResponse, ListWorkspaceSettingsMetadataRequest, ListWorkspaceSettingsMetadataResponse, OperationalEmailCustomRecipientMessage, PatchPublicAccountSettingRequest, PatchPublicAccountUserPreferenceRequest, PatchPublicWorkspaceSettingRequest, PersonalComputeMessage, PersonalComputeMessage_PersonalComputeMessageEnum, PreviewPhase, RestrictWorkspaceAdminsMessage, RestrictWorkspaceAdminsMessage_Status, Setting, SettingsMetadata, StringMessage, UserPreference, WorkspaceLabelMessage, marshalAibiDashboardEmbeddingAccessPolicySchema, marshalAibiDashboardEmbeddingApprovedDomainsSchema, marshalAllowedAppsUserApiScopesMessageSchema, marshalBooleanMessageSchema, marshalClusterAutoRestartMessageSchema, marshalClusterAutoRestartMessage_EnablementDetailsSchema, marshalClusterAutoRestartMessage_MaintenanceWindowSchema, marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema, marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema, marshalCollaborationPlatformConnectivityMessageSchema, marshalIntegerMessageSchema, marshalOperationalEmailCustomRecipientMessageSchema, marshalPersonalComputeMessageSchema, marshalRestrictWorkspaceAdminsMessageSchema, marshalSettingSchema, marshalStringMessageSchema, marshalUserPreferenceSchema, marshalWorkspaceLabelMessageSchema, 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, unmarshalWorkspaceLabelMessageSchema };
|
|
449
462
|
//# sourceMappingURL=model.d.ts.map
|
package/dist/v2/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v2/model.ts"],"mappings":";;;;;AAWA;;;;cAAa,YAAA;;;;;;AAiBb;;yBACmD;EAAA,6BASzC;EAAA;;KAVE,YAAA,WACA,YAAA,eAA2B,YAAA;AAAA,cAI1B,mDAAA;EAAA;;;;;KAOD,mDAAA,WACA,mDAAA,eAAkE,mDAAA;AAAA,cAIjE,qDAAA;EAAA;;;;;;;;;KAWD,qDAAA,WACA,qDAAA,eAAoE,qDAAA;AAAA,cAInE,4DAAA;EAAA;;;;;;;;;KAWD,4DAAA,WACA,4DAAA,eAA2E,4DAAA;AAAA,cAI1E,qDAAA;EAAA;;;;;;KAQD,qDAAA,WACA,qDAAA,eAAoE,qDAAA;;;;;cAQnE,iDAAA;EAAA;;;;KAOD,iDAAA,WACA,iDAAA,eAAgE,iDAAA;AAAA,cAI/D,qCAAA;EA7BA;;;;;;;;;;;;KA4CD,qCAAA,WACA,qCAAA,eAAoD,qCAAA;AAAA,UAG/C,kCAAA;EACf,gBAAA,GACI,mDAAA;AAAA;AAAA,UAIW,qCAAA;EACf,eAAA;AAAA;AAAA,UAGe,+BAAA;EACf,aAAA;AAAA;AAAA,UAGe,cAAA;EACf,KAAA;AAAA;AAAA,UAGe,yBAAA;EACf,OAAA;EACA,SAAA;EACA,iBAAA,GAAoB,2CAAA;EACpB,iBAAA,GAAoB,2CAAA;EACpB,+BAAA;AAAA;;;;;;;AA3BF;;UAuCiB,2CAAA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AE,OAAA"}
|
package/dist/v2/model.js
CHANGED
|
@@ -147,6 +147,7 @@ const unmarshalSettingSchema = z.object({
|
|
|
147
147
|
aibi_dashboard_embedding_access_policy: z.lazy(() => unmarshalAibiDashboardEmbeddingAccessPolicySchema).optional(),
|
|
148
148
|
restrict_workspace_admins: z.lazy(() => unmarshalRestrictWorkspaceAdminsMessageSchema).optional(),
|
|
149
149
|
personal_compute: z.lazy(() => unmarshalPersonalComputeMessageSchema).optional(),
|
|
150
|
+
workspace_label: z.lazy(() => unmarshalWorkspaceLabelMessageSchema).optional(),
|
|
150
151
|
allowed_apps_user_api_scopes: z.lazy(() => unmarshalAllowedAppsUserApiScopesMessageSchema).optional(),
|
|
151
152
|
operational_email_custom_recipient: z.lazy(() => unmarshalOperationalEmailCustomRecipientMessageSchema).optional(),
|
|
152
153
|
collaboration_platform_connectivity: z.lazy(() => unmarshalCollaborationPlatformConnectivityMessageSchema).optional(),
|
|
@@ -158,6 +159,7 @@ const unmarshalSettingSchema = z.object({
|
|
|
158
159
|
effective_aibi_dashboard_embedding_access_policy: z.lazy(() => unmarshalAibiDashboardEmbeddingAccessPolicySchema).optional(),
|
|
159
160
|
effective_restrict_workspace_admins: z.lazy(() => unmarshalRestrictWorkspaceAdminsMessageSchema).optional(),
|
|
160
161
|
effective_personal_compute: z.lazy(() => unmarshalPersonalComputeMessageSchema).optional(),
|
|
162
|
+
effective_workspace_label: z.lazy(() => unmarshalWorkspaceLabelMessageSchema).optional(),
|
|
161
163
|
effective_allowed_apps_user_api_scopes: z.lazy(() => unmarshalAllowedAppsUserApiScopesMessageSchema).optional(),
|
|
162
164
|
effective_operational_email_custom_recipient: z.lazy(() => unmarshalOperationalEmailCustomRecipientMessageSchema).optional(),
|
|
163
165
|
effective_collaboration_platform_connectivity: z.lazy(() => unmarshalCollaborationPlatformConnectivityMessageSchema).optional()
|
|
@@ -187,6 +189,9 @@ const unmarshalSettingSchema = z.object({
|
|
|
187
189
|
} : d.personal_compute !== void 0 ? {
|
|
188
190
|
$case: "personalCompute",
|
|
189
191
|
personalCompute: d.personal_compute
|
|
192
|
+
} : d.workspace_label !== void 0 ? {
|
|
193
|
+
$case: "workspaceLabel",
|
|
194
|
+
workspaceLabel: d.workspace_label
|
|
190
195
|
} : d.allowed_apps_user_api_scopes !== void 0 ? {
|
|
191
196
|
$case: "allowedAppsUserApiScopes",
|
|
192
197
|
allowedAppsUserApiScopes: d.allowed_apps_user_api_scopes
|
|
@@ -221,6 +226,9 @@ const unmarshalSettingSchema = z.object({
|
|
|
221
226
|
} : d.effective_personal_compute !== void 0 ? {
|
|
222
227
|
$case: "effectivePersonalCompute",
|
|
223
228
|
effectivePersonalCompute: d.effective_personal_compute
|
|
229
|
+
} : d.effective_workspace_label !== void 0 ? {
|
|
230
|
+
$case: "effectiveWorkspaceLabel",
|
|
231
|
+
effectiveWorkspaceLabel: d.effective_workspace_label
|
|
224
232
|
} : d.effective_allowed_apps_user_api_scopes !== void 0 ? {
|
|
225
233
|
$case: "effectiveAllowedAppsUserApiScopes",
|
|
226
234
|
effectiveAllowedAppsUserApiScopes: d.effective_allowed_apps_user_api_scopes
|
|
@@ -273,6 +281,13 @@ const unmarshalUserPreferenceSchema = z.object({
|
|
|
273
281
|
effectiveStringVal: d.effective_string_val
|
|
274
282
|
} : void 0
|
|
275
283
|
}));
|
|
284
|
+
const unmarshalWorkspaceLabelMessageSchema = z.object({
|
|
285
|
+
label: z.string().optional(),
|
|
286
|
+
color: z.string().optional()
|
|
287
|
+
}).transform((d) => ({
|
|
288
|
+
label: d.label,
|
|
289
|
+
color: d.color
|
|
290
|
+
}));
|
|
276
291
|
const marshalAibiDashboardEmbeddingAccessPolicySchema = z.object({ accessPolicyType: z.string().optional() }).transform((d) => ({ access_policy_type: d.accessPolicyType }));
|
|
277
292
|
const marshalAibiDashboardEmbeddingApprovedDomainsSchema = z.object({ approvedDomains: z.array(z.string()).optional() }).transform((d) => ({ approved_domains: d.approvedDomains }));
|
|
278
293
|
const marshalAllowedAppsUserApiScopesMessageSchema = z.object({ allowedScopes: z.array(z.string()).optional() }).transform((d) => ({ allowed_scopes: d.allowedScopes }));
|
|
@@ -362,6 +377,10 @@ const marshalSettingSchema = z.object({
|
|
|
362
377
|
$case: z.literal("personalCompute"),
|
|
363
378
|
personalCompute: z.lazy(() => marshalPersonalComputeMessageSchema)
|
|
364
379
|
}),
|
|
380
|
+
z.object({
|
|
381
|
+
$case: z.literal("workspaceLabel"),
|
|
382
|
+
workspaceLabel: z.lazy(() => marshalWorkspaceLabelMessageSchema)
|
|
383
|
+
}),
|
|
365
384
|
z.object({
|
|
366
385
|
$case: z.literal("allowedAppsUserApiScopes"),
|
|
367
386
|
allowedAppsUserApiScopes: z.lazy(() => marshalAllowedAppsUserApiScopesMessageSchema)
|
|
@@ -408,6 +427,10 @@ const marshalSettingSchema = z.object({
|
|
|
408
427
|
$case: z.literal("effectivePersonalCompute"),
|
|
409
428
|
effectivePersonalCompute: z.lazy(() => marshalPersonalComputeMessageSchema)
|
|
410
429
|
}),
|
|
430
|
+
z.object({
|
|
431
|
+
$case: z.literal("effectiveWorkspaceLabel"),
|
|
432
|
+
effectiveWorkspaceLabel: z.lazy(() => marshalWorkspaceLabelMessageSchema)
|
|
433
|
+
}),
|
|
411
434
|
z.object({
|
|
412
435
|
$case: z.literal("effectiveAllowedAppsUserApiScopes"),
|
|
413
436
|
effectiveAllowedAppsUserApiScopes: z.lazy(() => marshalAllowedAppsUserApiScopesMessageSchema)
|
|
@@ -431,6 +454,7 @@ const marshalSettingSchema = z.object({
|
|
|
431
454
|
...d.value?.$case === "aibiDashboardEmbeddingAccessPolicy" && { aibi_dashboard_embedding_access_policy: d.value.aibiDashboardEmbeddingAccessPolicy },
|
|
432
455
|
...d.value?.$case === "restrictWorkspaceAdmins" && { restrict_workspace_admins: d.value.restrictWorkspaceAdmins },
|
|
433
456
|
...d.value?.$case === "personalCompute" && { personal_compute: d.value.personalCompute },
|
|
457
|
+
...d.value?.$case === "workspaceLabel" && { workspace_label: d.value.workspaceLabel },
|
|
434
458
|
...d.value?.$case === "allowedAppsUserApiScopes" && { allowed_apps_user_api_scopes: d.value.allowedAppsUserApiScopes },
|
|
435
459
|
...d.value?.$case === "operationalEmailCustomRecipient" && { operational_email_custom_recipient: d.value.operationalEmailCustomRecipient },
|
|
436
460
|
...d.value?.$case === "collaborationPlatformConnectivity" && { collaboration_platform_connectivity: d.value.collaborationPlatformConnectivity },
|
|
@@ -442,6 +466,7 @@ const marshalSettingSchema = z.object({
|
|
|
442
466
|
...d.effectiveValue?.$case === "effectiveAibiDashboardEmbeddingAccessPolicy" && { effective_aibi_dashboard_embedding_access_policy: d.effectiveValue.effectiveAibiDashboardEmbeddingAccessPolicy },
|
|
443
467
|
...d.effectiveValue?.$case === "effectiveRestrictWorkspaceAdmins" && { effective_restrict_workspace_admins: d.effectiveValue.effectiveRestrictWorkspaceAdmins },
|
|
444
468
|
...d.effectiveValue?.$case === "effectivePersonalCompute" && { effective_personal_compute: d.effectiveValue.effectivePersonalCompute },
|
|
469
|
+
...d.effectiveValue?.$case === "effectiveWorkspaceLabel" && { effective_workspace_label: d.effectiveValue.effectiveWorkspaceLabel },
|
|
445
470
|
...d.effectiveValue?.$case === "effectiveAllowedAppsUserApiScopes" && { effective_allowed_apps_user_api_scopes: d.effectiveValue.effectiveAllowedAppsUserApiScopes },
|
|
446
471
|
...d.effectiveValue?.$case === "effectiveOperationalEmailCustomRecipient" && { effective_operational_email_custom_recipient: d.effectiveValue.effectiveOperationalEmailCustomRecipient },
|
|
447
472
|
...d.effectiveValue?.$case === "effectiveCollaborationPlatformConnectivity" && { effective_collaboration_platform_connectivity: d.effectiveValue.effectiveCollaborationPlatformConnectivity }
|
|
@@ -472,7 +497,14 @@ const marshalUserPreferenceSchema = z.object({
|
|
|
472
497
|
...d.effectiveValue?.$case === "effectiveBooleanVal" && { effective_boolean_val: d.effectiveValue.effectiveBooleanVal },
|
|
473
498
|
...d.effectiveValue?.$case === "effectiveStringVal" && { effective_string_val: d.effectiveValue.effectiveStringVal }
|
|
474
499
|
}));
|
|
500
|
+
const marshalWorkspaceLabelMessageSchema = z.object({
|
|
501
|
+
label: z.string().optional(),
|
|
502
|
+
color: z.string().optional()
|
|
503
|
+
}).transform((d) => ({
|
|
504
|
+
label: d.label,
|
|
505
|
+
color: d.color
|
|
506
|
+
}));
|
|
475
507
|
|
|
476
508
|
//#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 };
|
|
509
|
+
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, marshalWorkspaceLabelMessageSchema, 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, unmarshalWorkspaceLabelMessageSchema };
|
|
478
510
|
//# sourceMappingURL=model.js.map
|
package/dist/v2/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","names":[],"sources":["../../src/v2/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {z} from 'zod';\n\n/**\n * Preview phase for settings that are feature previews.\n * For settings that are not feature previews, the preview_phase field is left unset.\n * Mirrors only the customer-facing phases surfaced in the UI; internal-only phases\n * (DISABLED, DEV, UNDER_MIGRATION, LAUNCHED, etc.) are not exposed here.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const PreviewPhase = {\n /** Default value. Indicates the preview phase is unknown or the setting is not a feature preview. */\n PREVIEW_PHASE_UNSPECIFIED: 'PREVIEW_PHASE_UNSPECIFIED',\n /** The feature is in private preview, available only to specifically enrolled customers. */\n PRIVATE_PREVIEW: 'PRIVATE_PREVIEW',\n /**\n * The feature is in public preview, available to all customers. Also used for gated public\n * preview (available to customers who request access) since the distinction is internal.\n */\n PUBLIC_PREVIEW: 'PUBLIC_PREVIEW',\n /** The feature is in beta. */\n BETA: 'BETA',\n /** The feature is approaching general availability. */\n GA_SOON: 'GA_SOON',\n /** The feature has reached general availability. */\n GA: 'GA',\n} as const;\nexport type PreviewPhase =\n | (typeof PreviewPhase)[keyof typeof PreviewPhase]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AibiDashboardEmbeddingAccessPolicy_AccessPolicyType = {\n ACCESS_POLICY_TYPE_UNSPECIFIED: 'ACCESS_POLICY_TYPE_UNSPECIFIED',\n ALLOW_ALL_DOMAINS: 'ALLOW_ALL_DOMAINS',\n ALLOW_APPROVED_DOMAINS: 'ALLOW_APPROVED_DOMAINS',\n DENY_ALL_DOMAINS: 'DENY_ALL_DOMAINS',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type AibiDashboardEmbeddingAccessPolicy_AccessPolicyType =\n | (typeof AibiDashboardEmbeddingAccessPolicy_AccessPolicyType)[keyof typeof AibiDashboardEmbeddingAccessPolicy_AccessPolicyType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek = {\n DAY_OF_WEEK_UNSPECIFIED: 'DAY_OF_WEEK_UNSPECIFIED',\n MONDAY: 'MONDAY',\n TUESDAY: 'TUESDAY',\n WEDNESDAY: 'WEDNESDAY',\n THURSDAY: 'THURSDAY',\n FRIDAY: 'FRIDAY',\n SATURDAY: 'SATURDAY',\n SUNDAY: 'SUNDAY',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek =\n | (typeof ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek)[keyof typeof ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency = {\n WEEK_DAY_FREQUENCY_UNSPECIFIED: 'WEEK_DAY_FREQUENCY_UNSPECIFIED',\n FIRST_OF_MONTH: 'FIRST_OF_MONTH',\n SECOND_OF_MONTH: 'SECOND_OF_MONTH',\n THIRD_OF_MONTH: 'THIRD_OF_MONTH',\n FOURTH_OF_MONTH: 'FOURTH_OF_MONTH',\n FIRST_AND_THIRD_OF_MONTH: 'FIRST_AND_THIRD_OF_MONTH',\n SECOND_AND_FOURTH_OF_MONTH: 'SECOND_AND_FOURTH_OF_MONTH',\n EVERY_WEEK: 'EVERY_WEEK',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency =\n | (typeof ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency)[keyof typeof ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const CollaborationPlatformConnectivityMessage_Connectivity = {\n CONNECTIVITY_UNSPECIFIED: 'CONNECTIVITY_UNSPECIFIED',\n ALLOW_ALL: 'ALLOW_ALL',\n ALLOW_TEAMS: 'ALLOW_TEAMS',\n ALLOW_SLACK: 'ALLOW_SLACK',\n DENY_ALL: 'DENY_ALL',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type CollaborationPlatformConnectivityMessage_Connectivity =\n | (typeof CollaborationPlatformConnectivityMessage_Connectivity)[keyof typeof CollaborationPlatformConnectivityMessage_Connectivity]\n | (string & {});\n\n/**\n * ON: Grants all users in all workspaces access to the Personal Compute default policy, allowing all users to create single-machine compute resources.\n * 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.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const PersonalComputeMessage_PersonalComputeMessageEnum = {\n PERSONAL_COMPUTE_MESSAGE_ENUM_UNSPECIFIED:\n 'PERSONAL_COMPUTE_MESSAGE_ENUM_UNSPECIFIED',\n ON: 'ON',\n DELEGATE: 'DELEGATE',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type PersonalComputeMessage_PersonalComputeMessageEnum =\n | (typeof PersonalComputeMessage_PersonalComputeMessageEnum)[keyof typeof PersonalComputeMessage_PersonalComputeMessageEnum]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const RestrictWorkspaceAdminsMessage_Status = {\n /** Default value for proto enum */\n STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED',\n /**\n * Default value for existing workspaces\n * Allows WS admins to create OBO tokens for all SPs in the workspace without explicit permissions.\n */\n ALLOW_ALL: 'ALLOW_ALL',\n /**\n * Default value for new workspaces\n * Restrict WS admins to create OBO tokens for SPs in the workspace unless corresponding permissions are provided\n */\n RESTRICT_TOKENS_AND_JOB_RUN_AS: 'RESTRICT_TOKENS_AND_JOB_RUN_AS',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type RestrictWorkspaceAdminsMessage_Status =\n | (typeof RestrictWorkspaceAdminsMessage_Status)[keyof typeof RestrictWorkspaceAdminsMessage_Status]\n | (string & {});\n\nexport interface AibiDashboardEmbeddingAccessPolicy {\n accessPolicyType?:\n | AibiDashboardEmbeddingAccessPolicy_AccessPolicyType\n | undefined;\n}\n\nexport interface AibiDashboardEmbeddingApprovedDomains {\n approvedDomains?: string[] | undefined;\n}\n\nexport interface AllowedAppsUserApiScopesMessage {\n allowedScopes?: string[] | undefined;\n}\n\nexport interface BooleanMessage {\n value?: boolean | undefined;\n}\n\nexport interface ClusterAutoRestartMessage {\n enabled?: boolean | undefined;\n canToggle?: boolean | undefined;\n maintenanceWindow?: ClusterAutoRestartMessage_MaintenanceWindow | undefined;\n enablementDetails?: ClusterAutoRestartMessage_EnablementDetails | undefined;\n restartEvenIfNoUpdatesAvailable?: boolean | undefined;\n}\n\n/**\n * Contains an information about the enablement status judging (e.g. whether the enterprise tier\n * is enabled)\n * This is only additional information that MUST NOT be used to decide whether the setting is\n * enabled or not. This is intended to use only for purposes like showing an error message to\n * the customer with the additional details. For example, using these details we can check\n * why exactly the feature is disabled for this customer.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface ClusterAutoRestartMessage_EnablementDetails {\n /** The feature is unavailable if the customer doesn't have enterprise tier */\n unavailableForNonEnterpriseTier?: boolean | undefined;\n /** The feature is unavailable if the corresponding entitlement disabled (see getShieldEntitlementEnable) */\n unavailableForDisabledEntitlement?: boolean | undefined;\n /** The feature is force enabled if compliance mode is active */\n forcedForComplianceMode?: boolean | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface ClusterAutoRestartMessage_MaintenanceWindow {\n weekDayBasedSchedule?:\n | ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule\n | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule {\n frequency?:\n | ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency\n | undefined;\n dayOfWeek?: ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek | undefined;\n windowStartTime?:\n | ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime\n | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime {\n hours?: number | undefined;\n minutes?: number | undefined;\n}\n\n/**\n * Controls which external collaboration platforms (Slack, Microsoft Teams) can connect\n * to a workspace. Defaults to ALLOW_ALL.\n */\nexport interface CollaborationPlatformConnectivityMessage {\n connectivity?:\n | CollaborationPlatformConnectivityMessage_Connectivity\n | undefined;\n}\n\nexport interface GetPublicAccountSettingRequest {\n accountId?: string | undefined;\n name?: string | undefined;\n}\n\nexport interface GetPublicAccountUserPreferenceRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n /** User ID of the user whose setting is being retrieved. */\n userId?: string | undefined;\n /** User Setting name. */\n name?: string | undefined;\n}\n\nexport interface GetPublicWorkspaceSettingRequest {\n /** Name of the setting */\n name?: string | undefined;\n}\n\nexport interface IntegerMessage {\n value?: number | undefined;\n}\n\nexport interface ListAccountSettingsMetadataRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n /**\n * The maximum number of settings to return. The service may return fewer than this value.\n * If unspecified, at most 200 settings will be returned.\n * The maximum value is 1000; values above 1000 will be coerced to 1000.\n */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListAccountSettingsMetadataRequest` call.\n * Provide this to retrieve the subsequent page.\n *\n * When paginating, all other parameters provided to `ListAccountSettingsMetadataRequest` must match\n * the call that provided the page token.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListAccountSettingsMetadataResponse {\n /** List of all settings available via public APIs and their metadata */\n settingsMetadata?: SettingsMetadata[] | undefined;\n /**\n * A token that can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent pages.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListAccountUserPreferencesMetadataRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n /** User ID of the user whose settings metadata is being retrieved. */\n userId?: string | undefined;\n /**\n * The maximum number of settings to return. The service may return fewer than this value.\n * If unspecified, at most 200 settings will be returned.\n * The maximum value is 1000; values above 1000 will be coerced to 1000.\n */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListAccountUserPreferencesMetadataRequest` call.\n * Provide this to retrieve the subsequent page.\n *\n * When paginating, all other parameters provided to `ListAccountUserPreferencesMetadataRequest` must match\n * the call that provided the page token.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListAccountUserPreferencesMetadataResponse {\n /** List of all settings available via public APIs and their metadata */\n settingsMetadata?: SettingsMetadata[] | undefined;\n /**\n * A token that can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent pages.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListWorkspaceSettingsMetadataRequest {\n /**\n * The maximum number of settings to return. The service may return fewer than this value.\n * If unspecified, at most 200 settings will be returned.\n * The maximum value is 1000; values above 1000 will be coerced to 1000.\n */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListWorkspaceSettingsMetadataRequest` call.\n * Provide this to retrieve the subsequent page.\n *\n * When paginating, all other parameters provided to `ListWorkspaceSettingsMetadataRequest` must match\n * the call that provided the page token.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListWorkspaceSettingsMetadataResponse {\n /** List of all settings available via public APIs and their metadata */\n settingsMetadata?: SettingsMetadata[] | undefined;\n /**\n * A token that can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent pages.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface OperationalEmailCustomRecipientMessage {\n email?: string | undefined;\n}\n\nexport interface PatchPublicAccountSettingRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n name?: string | undefined;\n setting?: Setting | undefined;\n}\n\nexport interface PatchPublicAccountUserPreferenceRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n /** User ID of the user whose setting is being updated. */\n userId?: string | undefined;\n name?: string | undefined;\n setting?: UserPreference | undefined;\n}\n\nexport interface PatchPublicWorkspaceSettingRequest {\n /** Name of the setting */\n name?: string | undefined;\n setting?: Setting | undefined;\n}\n\nexport interface PersonalComputeMessage {\n value?: PersonalComputeMessage_PersonalComputeMessageEnum | undefined;\n}\n\nexport interface RestrictWorkspaceAdminsMessage {\n status?: RestrictWorkspaceAdminsMessage_Status | undefined;\n /**\n * When true, workspace admins cannot create governance tags.\n * ALLOW_ALL status does not override this; they are independent.\n */\n disableGovTagCreation?: boolean | undefined;\n}\n\nexport interface Setting {\n /** Name of the setting. */\n name?: string | undefined;\n /**\n * New fields should be added before the oneof below - unless it's a new Setting value message,\n * in that case it needs to be defined in the oneof below.\n * The user-set value that goes into storage\n */\n value?:\n | {\n $case: 'booleanVal';\n /** Setting value for boolean type setting. This is the setting value set by consumers, check effective_boolean_val for final setting value. */\n booleanVal: BooleanMessage;\n }\n | {\n $case: 'stringVal';\n /** Setting value for string type setting. This is the setting value set by consumers, check effective_string_val for final setting value. */\n stringVal: StringMessage;\n }\n | {\n $case: 'integerVal';\n /** Setting value for integer type setting. This is the setting value set by consumers, check effective_integer_val for final setting value. */\n integerVal: IntegerMessage;\n }\n | {\n $case: 'automaticClusterUpdateWorkspace';\n /** Setting value for automatic_cluster_update_workspace setting. This is the setting value set by consumers, check effective_automatic_cluster_update_workspace for final setting value. */\n automaticClusterUpdateWorkspace: ClusterAutoRestartMessage;\n }\n | {\n $case: 'aibiDashboardEmbeddingApprovedDomains';\n /** Setting value for aibi_dashboard_embedding_approved_domains setting. This is the setting value set by consumers, check effective_aibi_dashboard_embedding_approved_domains for final setting value. */\n aibiDashboardEmbeddingApprovedDomains: AibiDashboardEmbeddingApprovedDomains;\n }\n | {\n $case: 'aibiDashboardEmbeddingAccessPolicy';\n /** Setting value for aibi_dashboard_embedding_access_policy setting. This is the setting value set by consumers, check effective_aibi_dashboard_embedding_access_policy for final setting value. */\n aibiDashboardEmbeddingAccessPolicy: AibiDashboardEmbeddingAccessPolicy;\n }\n | {\n $case: 'restrictWorkspaceAdmins';\n /** Setting value for restrict_workspace_admins setting. This is the setting value set by consumers, check effective_restrict_workspace_admins for final setting value. */\n restrictWorkspaceAdmins: RestrictWorkspaceAdminsMessage;\n }\n | {\n $case: 'personalCompute';\n /** Setting value for personal_compute setting. This is the setting value set by consumers, check effective_personal_compute for final setting value. */\n personalCompute: PersonalComputeMessage;\n }\n | {\n $case: 'allowedAppsUserApiScopes';\n /** Setting value for allowed_apps_user_api_scopes setting. This is the setting value set by consumers, check effective_allowed_apps_user_api_scopes for final setting value. */\n allowedAppsUserApiScopes: AllowedAppsUserApiScopesMessage;\n }\n | {\n $case: 'operationalEmailCustomRecipient';\n /** Setting value for operational_email_custom_recipient setting. This is the setting value set by consumers, check effective_operational_email_custom_recipient for final setting value. */\n operationalEmailCustomRecipient: OperationalEmailCustomRecipientMessage;\n }\n | {\n $case: 'collaborationPlatformConnectivity';\n /** Setting value for collaboration_platform_connectivity setting. This is the setting value set by consumers, check effective_collaboration_platform_connectivity for final setting value. */\n collaborationPlatformConnectivity: CollaborationPlatformConnectivityMessage;\n }\n | undefined;\n /**\n * New fields should be added before the oneof below - unless it's a new Setting value message,\n * in that case it needs to be defined in the oneof below.\n * The final effective value from server as per the policy evaluation.\n */\n effectiveValue?:\n | {\n $case: 'effectiveBooleanVal';\n /** Effective setting value for boolean type setting. This is the final effective value of setting. To set a value use boolean_val. */\n effectiveBooleanVal: BooleanMessage;\n }\n | {\n $case: 'effectiveStringVal';\n /** Effective setting value for string type setting. This is the final effective value of setting. To set a value use string_val. */\n effectiveStringVal: StringMessage;\n }\n | {\n $case: 'effectiveIntegerVal';\n /** Effective setting value for integer type setting. This is the final effective value of setting. To set a value use integer_val. */\n effectiveIntegerVal: IntegerMessage;\n }\n | {\n $case: 'effectiveAutomaticClusterUpdateWorkspace';\n /** Effective setting value for automatic_cluster_update_workspace setting. This is the final effective value of setting. To set a value use automatic_cluster_update_workspace. */\n effectiveAutomaticClusterUpdateWorkspace: ClusterAutoRestartMessage;\n }\n | {\n $case: 'effectiveAibiDashboardEmbeddingApprovedDomains';\n /** Effective setting value for aibi_dashboard_embedding_approved_domains setting. This is the final effective value of setting. To set a value use aibi_dashboard_embedding_approved_domains. */\n effectiveAibiDashboardEmbeddingApprovedDomains: AibiDashboardEmbeddingApprovedDomains;\n }\n | {\n $case: 'effectiveAibiDashboardEmbeddingAccessPolicy';\n /** Effective setting value for aibi_dashboard_embedding_access_policy setting. This is the final effective value of setting. To set a value use aibi_dashboard_embedding_access_policy. */\n effectiveAibiDashboardEmbeddingAccessPolicy: AibiDashboardEmbeddingAccessPolicy;\n }\n | {\n $case: 'effectiveRestrictWorkspaceAdmins';\n /** Effective setting value for restrict_workspace_admins setting. This is the final effective value of setting. To set a value use restrict_workspace_admins. */\n effectiveRestrictWorkspaceAdmins: RestrictWorkspaceAdminsMessage;\n }\n | {\n $case: 'effectivePersonalCompute';\n /** Effective setting value for personal_compute setting. This is the final effective value of setting. To set a value use personal_compute. */\n effectivePersonalCompute: PersonalComputeMessage;\n }\n | {\n $case: 'effectiveAllowedAppsUserApiScopes';\n /** Effective setting value for allowed_apps_user_api_scopes setting. This is the final effective value of setting. To set a value use allowed_apps_user_api_scopes. */\n effectiveAllowedAppsUserApiScopes: AllowedAppsUserApiScopesMessage;\n }\n | {\n $case: 'effectiveOperationalEmailCustomRecipient';\n /** Effective setting value for operational_email_custom_recipient setting. This is the final effective value of setting. To set a value use operational_email_custom_recipient. */\n effectiveOperationalEmailCustomRecipient: OperationalEmailCustomRecipientMessage;\n }\n | {\n $case: 'effectiveCollaborationPlatformConnectivity';\n /** Effective setting value for collaboration_platform_connectivity setting. This is the final effective value of setting. To set a value use collaboration_platform_connectivity. */\n effectiveCollaborationPlatformConnectivity: CollaborationPlatformConnectivityMessage;\n }\n | undefined;\n}\n\nexport interface SettingsMetadata {\n /** Name of the setting. */\n name?: string | undefined;\n /** Setting description for what this setting controls */\n description?: string | undefined;\n /** Sample message depicting the type of the setting. To set this setting, the value sent must match this type. */\n type?: string | undefined;\n /** Link to databricks documentation for the setting */\n docsLink?: string | undefined;\n /** Preview phase for feature preview settings. This field is not set for non-preview settings. */\n previewPhase?: PreviewPhase | undefined;\n /**\n * Human-readable display name for the setting or feature preview.\n * This field may be unset if no display name is available.\n */\n displayName?: string | undefined;\n}\n\nexport interface StringMessage {\n /** Represents a generic string value. */\n value?: string | undefined;\n}\n\n/**\n * User Preference represents a user-specific setting scoped to an individual user within an account.\n * Unlike workspace or account settings that apply to all users, user preferences allow personal\n * customization (e.g., UI theme, editor preferences) without affecting other users.\n */\nexport interface UserPreference {\n /** Name of the setting. */\n name?: string | undefined;\n /** User ID of the user. */\n userId?: string | undefined;\n /**\n * New fields should be added before the oneof below - unless it's a new Setting value message,\n * in that case it needs to be defined in the oneof below.\n * The user-set value that goes into storage.\n */\n value?:\n | {$case: 'booleanVal'; booleanVal: BooleanMessage}\n | {$case: 'stringVal'; stringVal: StringMessage}\n | undefined;\n /**\n * New fields should be added before the oneof below - unless it's a new User Preference value message,\n * in that case it needs to be defined in the oneof below.\n * The final effective value from server as per the policy evaluation.\n */\n effectiveValue?:\n | {$case: 'effectiveBooleanVal'; effectiveBooleanVal: BooleanMessage}\n | {$case: 'effectiveStringVal'; effectiveStringVal: StringMessage}\n | undefined;\n}\n\nexport const unmarshalAibiDashboardEmbeddingAccessPolicySchema: z.ZodType<AibiDashboardEmbeddingAccessPolicy> =\n z\n .object({\n access_policy_type: z.string().optional(),\n })\n .transform(d => ({\n accessPolicyType: d.access_policy_type,\n }));\n\nexport const unmarshalAibiDashboardEmbeddingApprovedDomainsSchema: z.ZodType<AibiDashboardEmbeddingApprovedDomains> =\n z\n .object({\n approved_domains: z.array(z.string()).optional(),\n })\n .transform(d => ({\n approvedDomains: d.approved_domains,\n }));\n\nexport const unmarshalAllowedAppsUserApiScopesMessageSchema: z.ZodType<AllowedAppsUserApiScopesMessage> =\n z\n .object({\n allowed_scopes: z.array(z.string()).optional(),\n })\n .transform(d => ({\n allowedScopes: d.allowed_scopes,\n }));\n\nexport const unmarshalBooleanMessageSchema: z.ZodType<BooleanMessage> = z\n .object({\n value: z.boolean().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const unmarshalClusterAutoRestartMessageSchema: z.ZodType<ClusterAutoRestartMessage> =\n z\n .object({\n enabled: z.boolean().optional(),\n can_toggle: z.boolean().optional(),\n maintenance_window: z\n .lazy(() => unmarshalClusterAutoRestartMessage_MaintenanceWindowSchema)\n .optional(),\n enablement_details: z\n .lazy(() => unmarshalClusterAutoRestartMessage_EnablementDetailsSchema)\n .optional(),\n restart_even_if_no_updates_available: z.boolean().optional(),\n })\n .transform(d => ({\n enabled: d.enabled,\n canToggle: d.can_toggle,\n maintenanceWindow: d.maintenance_window,\n enablementDetails: d.enablement_details,\n restartEvenIfNoUpdatesAvailable: d.restart_even_if_no_updates_available,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalClusterAutoRestartMessage_EnablementDetailsSchema: z.ZodType<ClusterAutoRestartMessage_EnablementDetails> =\n z\n .object({\n unavailable_for_non_enterprise_tier: z.boolean().optional(),\n unavailable_for_disabled_entitlement: z.boolean().optional(),\n forced_for_compliance_mode: z.boolean().optional(),\n })\n .transform(d => ({\n unavailableForNonEnterpriseTier: d.unavailable_for_non_enterprise_tier,\n unavailableForDisabledEntitlement: d.unavailable_for_disabled_entitlement,\n forcedForComplianceMode: d.forced_for_compliance_mode,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalClusterAutoRestartMessage_MaintenanceWindowSchema: z.ZodType<ClusterAutoRestartMessage_MaintenanceWindow> =\n z\n .object({\n week_day_based_schedule: z\n .lazy(\n () =>\n unmarshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema\n )\n .optional(),\n })\n .transform(d => ({\n weekDayBasedSchedule: d.week_day_based_schedule,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema: z.ZodType<ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule> =\n z\n .object({\n frequency: z.string().optional(),\n day_of_week: z.string().optional(),\n window_start_time: z\n .lazy(\n () =>\n unmarshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema\n )\n .optional(),\n })\n .transform(d => ({\n frequency: d.frequency,\n dayOfWeek: d.day_of_week,\n windowStartTime: d.window_start_time,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema: z.ZodType<ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime> =\n z\n .object({\n hours: z.number().optional(),\n minutes: z.number().optional(),\n })\n .transform(d => ({\n hours: d.hours,\n minutes: d.minutes,\n }));\n\nexport const unmarshalCollaborationPlatformConnectivityMessageSchema: z.ZodType<CollaborationPlatformConnectivityMessage> =\n z\n .object({\n connectivity: z.string().optional(),\n })\n .transform(d => ({\n connectivity: d.connectivity,\n }));\n\nexport const unmarshalIntegerMessageSchema: z.ZodType<IntegerMessage> = z\n .object({\n value: z.number().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const unmarshalListAccountSettingsMetadataResponseSchema: z.ZodType<ListAccountSettingsMetadataResponse> =\n z\n .object({\n settings_metadata: z\n .array(z.lazy(() => unmarshalSettingsMetadataSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n settingsMetadata: d.settings_metadata,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListAccountUserPreferencesMetadataResponseSchema: z.ZodType<ListAccountUserPreferencesMetadataResponse> =\n z\n .object({\n settings_metadata: z\n .array(z.lazy(() => unmarshalSettingsMetadataSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n settingsMetadata: d.settings_metadata,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListWorkspaceSettingsMetadataResponseSchema: z.ZodType<ListWorkspaceSettingsMetadataResponse> =\n z\n .object({\n settings_metadata: z\n .array(z.lazy(() => unmarshalSettingsMetadataSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n settingsMetadata: d.settings_metadata,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalOperationalEmailCustomRecipientMessageSchema: z.ZodType<OperationalEmailCustomRecipientMessage> =\n z\n .object({\n email: z.string().optional(),\n })\n .transform(d => ({\n email: d.email,\n }));\n\nexport const unmarshalPersonalComputeMessageSchema: z.ZodType<PersonalComputeMessage> =\n z\n .object({\n value: z.string().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const unmarshalRestrictWorkspaceAdminsMessageSchema: z.ZodType<RestrictWorkspaceAdminsMessage> =\n z\n .object({\n status: z.string().optional(),\n disable_gov_tag_creation: z.boolean().optional(),\n })\n .transform(d => ({\n status: d.status,\n disableGovTagCreation: d.disable_gov_tag_creation,\n }));\n\nexport const unmarshalSettingSchema: z.ZodType<Setting> = z\n .object({\n name: z.string().optional(),\n boolean_val: z.lazy(() => unmarshalBooleanMessageSchema).optional(),\n string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),\n integer_val: z.lazy(() => unmarshalIntegerMessageSchema).optional(),\n automatic_cluster_update_workspace: z\n .lazy(() => unmarshalClusterAutoRestartMessageSchema)\n .optional(),\n aibi_dashboard_embedding_approved_domains: z\n .lazy(() => unmarshalAibiDashboardEmbeddingApprovedDomainsSchema)\n .optional(),\n aibi_dashboard_embedding_access_policy: z\n .lazy(() => unmarshalAibiDashboardEmbeddingAccessPolicySchema)\n .optional(),\n restrict_workspace_admins: z\n .lazy(() => unmarshalRestrictWorkspaceAdminsMessageSchema)\n .optional(),\n personal_compute: z\n .lazy(() => unmarshalPersonalComputeMessageSchema)\n .optional(),\n allowed_apps_user_api_scopes: z\n .lazy(() => unmarshalAllowedAppsUserApiScopesMessageSchema)\n .optional(),\n operational_email_custom_recipient: z\n .lazy(() => unmarshalOperationalEmailCustomRecipientMessageSchema)\n .optional(),\n collaboration_platform_connectivity: z\n .lazy(() => unmarshalCollaborationPlatformConnectivityMessageSchema)\n .optional(),\n effective_boolean_val: z\n .lazy(() => unmarshalBooleanMessageSchema)\n .optional(),\n effective_string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),\n effective_integer_val: z\n .lazy(() => unmarshalIntegerMessageSchema)\n .optional(),\n effective_automatic_cluster_update_workspace: z\n .lazy(() => unmarshalClusterAutoRestartMessageSchema)\n .optional(),\n effective_aibi_dashboard_embedding_approved_domains: z\n .lazy(() => unmarshalAibiDashboardEmbeddingApprovedDomainsSchema)\n .optional(),\n effective_aibi_dashboard_embedding_access_policy: z\n .lazy(() => unmarshalAibiDashboardEmbeddingAccessPolicySchema)\n .optional(),\n effective_restrict_workspace_admins: z\n .lazy(() => unmarshalRestrictWorkspaceAdminsMessageSchema)\n .optional(),\n effective_personal_compute: z\n .lazy(() => unmarshalPersonalComputeMessageSchema)\n .optional(),\n effective_allowed_apps_user_api_scopes: z\n .lazy(() => unmarshalAllowedAppsUserApiScopesMessageSchema)\n .optional(),\n effective_operational_email_custom_recipient: z\n .lazy(() => unmarshalOperationalEmailCustomRecipientMessageSchema)\n .optional(),\n effective_collaboration_platform_connectivity: z\n .lazy(() => unmarshalCollaborationPlatformConnectivityMessageSchema)\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n value:\n d.boolean_val !== undefined\n ? {$case: 'booleanVal' as const, booleanVal: d.boolean_val}\n : d.string_val !== undefined\n ? {$case: 'stringVal' as const, stringVal: d.string_val}\n : d.integer_val !== undefined\n ? {$case: 'integerVal' as const, integerVal: d.integer_val}\n : d.automatic_cluster_update_workspace !== undefined\n ? {\n $case: 'automaticClusterUpdateWorkspace' as const,\n automaticClusterUpdateWorkspace:\n d.automatic_cluster_update_workspace,\n }\n : d.aibi_dashboard_embedding_approved_domains !== undefined\n ? {\n $case: 'aibiDashboardEmbeddingApprovedDomains' as const,\n aibiDashboardEmbeddingApprovedDomains:\n d.aibi_dashboard_embedding_approved_domains,\n }\n : d.aibi_dashboard_embedding_access_policy !== undefined\n ? {\n $case: 'aibiDashboardEmbeddingAccessPolicy' as const,\n aibiDashboardEmbeddingAccessPolicy:\n d.aibi_dashboard_embedding_access_policy,\n }\n : d.restrict_workspace_admins !== undefined\n ? {\n $case: 'restrictWorkspaceAdmins' as const,\n restrictWorkspaceAdmins: d.restrict_workspace_admins,\n }\n : d.personal_compute !== undefined\n ? {\n $case: 'personalCompute' as const,\n personalCompute: d.personal_compute,\n }\n : d.allowed_apps_user_api_scopes !== undefined\n ? {\n $case: 'allowedAppsUserApiScopes' as const,\n allowedAppsUserApiScopes:\n d.allowed_apps_user_api_scopes,\n }\n : d.operational_email_custom_recipient !== undefined\n ? {\n $case: 'operationalEmailCustomRecipient' as const,\n operationalEmailCustomRecipient:\n d.operational_email_custom_recipient,\n }\n : d.collaboration_platform_connectivity !== undefined\n ? {\n $case:\n 'collaborationPlatformConnectivity' as const,\n collaborationPlatformConnectivity:\n d.collaboration_platform_connectivity,\n }\n : undefined,\n effectiveValue:\n d.effective_boolean_val !== undefined\n ? {\n $case: 'effectiveBooleanVal' as const,\n effectiveBooleanVal: d.effective_boolean_val,\n }\n : d.effective_string_val !== undefined\n ? {\n $case: 'effectiveStringVal' as const,\n effectiveStringVal: d.effective_string_val,\n }\n : d.effective_integer_val !== undefined\n ? {\n $case: 'effectiveIntegerVal' as const,\n effectiveIntegerVal: d.effective_integer_val,\n }\n : d.effective_automatic_cluster_update_workspace !== undefined\n ? {\n $case: 'effectiveAutomaticClusterUpdateWorkspace' as const,\n effectiveAutomaticClusterUpdateWorkspace:\n d.effective_automatic_cluster_update_workspace,\n }\n : d.effective_aibi_dashboard_embedding_approved_domains !==\n undefined\n ? {\n $case:\n 'effectiveAibiDashboardEmbeddingApprovedDomains' as const,\n effectiveAibiDashboardEmbeddingApprovedDomains:\n d.effective_aibi_dashboard_embedding_approved_domains,\n }\n : d.effective_aibi_dashboard_embedding_access_policy !==\n undefined\n ? {\n $case:\n 'effectiveAibiDashboardEmbeddingAccessPolicy' as const,\n effectiveAibiDashboardEmbeddingAccessPolicy:\n d.effective_aibi_dashboard_embedding_access_policy,\n }\n : d.effective_restrict_workspace_admins !== undefined\n ? {\n $case: 'effectiveRestrictWorkspaceAdmins' as const,\n effectiveRestrictWorkspaceAdmins:\n d.effective_restrict_workspace_admins,\n }\n : d.effective_personal_compute !== undefined\n ? {\n $case: 'effectivePersonalCompute' as const,\n effectivePersonalCompute:\n d.effective_personal_compute,\n }\n : d.effective_allowed_apps_user_api_scopes !== undefined\n ? {\n $case: 'effectiveAllowedAppsUserApiScopes' as const,\n effectiveAllowedAppsUserApiScopes:\n d.effective_allowed_apps_user_api_scopes,\n }\n : d.effective_operational_email_custom_recipient !==\n undefined\n ? {\n $case:\n 'effectiveOperationalEmailCustomRecipient' as const,\n effectiveOperationalEmailCustomRecipient:\n d.effective_operational_email_custom_recipient,\n }\n : d.effective_collaboration_platform_connectivity !==\n undefined\n ? {\n $case:\n 'effectiveCollaborationPlatformConnectivity' as const,\n effectiveCollaborationPlatformConnectivity:\n d.effective_collaboration_platform_connectivity,\n }\n : undefined,\n }));\n\nexport const unmarshalSettingsMetadataSchema: z.ZodType<SettingsMetadata> = z\n .object({\n name: z.string().optional(),\n description: z.string().optional(),\n type: z.string().optional(),\n docs_link: z.string().optional(),\n preview_phase: z.string().optional(),\n display_name: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n description: d.description,\n type: d.type,\n docsLink: d.docs_link,\n previewPhase: d.preview_phase,\n displayName: d.display_name,\n }));\n\nexport const unmarshalStringMessageSchema: z.ZodType<StringMessage> = z\n .object({\n value: z.string().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const unmarshalUserPreferenceSchema: z.ZodType<UserPreference> = z\n .object({\n name: z.string().optional(),\n user_id: z.string().optional(),\n boolean_val: z.lazy(() => unmarshalBooleanMessageSchema).optional(),\n string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),\n effective_boolean_val: z\n .lazy(() => unmarshalBooleanMessageSchema)\n .optional(),\n effective_string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),\n })\n .transform(d => ({\n name: d.name,\n userId: d.user_id,\n value:\n d.boolean_val !== undefined\n ? {$case: 'booleanVal' as const, booleanVal: d.boolean_val}\n : d.string_val !== undefined\n ? {$case: 'stringVal' as const, stringVal: d.string_val}\n : undefined,\n effectiveValue:\n d.effective_boolean_val !== undefined\n ? {\n $case: 'effectiveBooleanVal' as const,\n effectiveBooleanVal: d.effective_boolean_val,\n }\n : d.effective_string_val !== undefined\n ? {\n $case: 'effectiveStringVal' as const,\n effectiveStringVal: d.effective_string_val,\n }\n : undefined,\n }));\n\nexport const marshalAibiDashboardEmbeddingAccessPolicySchema: z.ZodType = z\n .object({\n accessPolicyType: z.string().optional(),\n })\n .transform(d => ({\n access_policy_type: d.accessPolicyType,\n }));\n\nexport const marshalAibiDashboardEmbeddingApprovedDomainsSchema: z.ZodType = z\n .object({\n approvedDomains: z.array(z.string()).optional(),\n })\n .transform(d => ({\n approved_domains: d.approvedDomains,\n }));\n\nexport const marshalAllowedAppsUserApiScopesMessageSchema: z.ZodType = z\n .object({\n allowedScopes: z.array(z.string()).optional(),\n })\n .transform(d => ({\n allowed_scopes: d.allowedScopes,\n }));\n\nexport const marshalBooleanMessageSchema: z.ZodType = z\n .object({\n value: z.boolean().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const marshalClusterAutoRestartMessageSchema: z.ZodType = z\n .object({\n enabled: z.boolean().optional(),\n canToggle: z.boolean().optional(),\n maintenanceWindow: z\n .lazy(() => marshalClusterAutoRestartMessage_MaintenanceWindowSchema)\n .optional(),\n enablementDetails: z\n .lazy(() => marshalClusterAutoRestartMessage_EnablementDetailsSchema)\n .optional(),\n restartEvenIfNoUpdatesAvailable: z.boolean().optional(),\n })\n .transform(d => ({\n enabled: d.enabled,\n can_toggle: d.canToggle,\n maintenance_window: d.maintenanceWindow,\n enablement_details: d.enablementDetails,\n restart_even_if_no_updates_available: d.restartEvenIfNoUpdatesAvailable,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalClusterAutoRestartMessage_EnablementDetailsSchema: z.ZodType =\n z\n .object({\n unavailableForNonEnterpriseTier: z.boolean().optional(),\n unavailableForDisabledEntitlement: z.boolean().optional(),\n forcedForComplianceMode: z.boolean().optional(),\n })\n .transform(d => ({\n unavailable_for_non_enterprise_tier: d.unavailableForNonEnterpriseTier,\n unavailable_for_disabled_entitlement: d.unavailableForDisabledEntitlement,\n forced_for_compliance_mode: d.forcedForComplianceMode,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalClusterAutoRestartMessage_MaintenanceWindowSchema: z.ZodType =\n z\n .object({\n weekDayBasedSchedule: z\n .lazy(\n () =>\n marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema\n )\n .optional(),\n })\n .transform(d => ({\n week_day_based_schedule: d.weekDayBasedSchedule,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema: z.ZodType =\n z\n .object({\n frequency: z.string().optional(),\n dayOfWeek: z.string().optional(),\n windowStartTime: z\n .lazy(\n () =>\n marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema\n )\n .optional(),\n })\n .transform(d => ({\n frequency: d.frequency,\n day_of_week: d.dayOfWeek,\n window_start_time: d.windowStartTime,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema: z.ZodType =\n z\n .object({\n hours: z.number().optional(),\n minutes: z.number().optional(),\n })\n .transform(d => ({\n hours: d.hours,\n minutes: d.minutes,\n }));\n\nexport const marshalCollaborationPlatformConnectivityMessageSchema: z.ZodType =\n z\n .object({\n connectivity: z.string().optional(),\n })\n .transform(d => ({\n connectivity: d.connectivity,\n }));\n\nexport const marshalIntegerMessageSchema: z.ZodType = z\n .object({\n value: z.number().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const marshalOperationalEmailCustomRecipientMessageSchema: z.ZodType = z\n .object({\n email: z.string().optional(),\n })\n .transform(d => ({\n email: d.email,\n }));\n\nexport const marshalPersonalComputeMessageSchema: z.ZodType = z\n .object({\n value: z.string().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const marshalRestrictWorkspaceAdminsMessageSchema: z.ZodType = z\n .object({\n status: z.string().optional(),\n disableGovTagCreation: z.boolean().optional(),\n })\n .transform(d => ({\n status: d.status,\n disable_gov_tag_creation: d.disableGovTagCreation,\n }));\n\nexport const marshalSettingSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n value: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('booleanVal'),\n booleanVal: z.lazy(() => marshalBooleanMessageSchema),\n }),\n z.object({\n $case: z.literal('stringVal'),\n stringVal: z.lazy(() => marshalStringMessageSchema),\n }),\n z.object({\n $case: z.literal('integerVal'),\n integerVal: z.lazy(() => marshalIntegerMessageSchema),\n }),\n z.object({\n $case: z.literal('automaticClusterUpdateWorkspace'),\n automaticClusterUpdateWorkspace: z.lazy(\n () => marshalClusterAutoRestartMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('aibiDashboardEmbeddingApprovedDomains'),\n aibiDashboardEmbeddingApprovedDomains: z.lazy(\n () => marshalAibiDashboardEmbeddingApprovedDomainsSchema\n ),\n }),\n z.object({\n $case: z.literal('aibiDashboardEmbeddingAccessPolicy'),\n aibiDashboardEmbeddingAccessPolicy: z.lazy(\n () => marshalAibiDashboardEmbeddingAccessPolicySchema\n ),\n }),\n z.object({\n $case: z.literal('restrictWorkspaceAdmins'),\n restrictWorkspaceAdmins: z.lazy(\n () => marshalRestrictWorkspaceAdminsMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('personalCompute'),\n personalCompute: z.lazy(() => marshalPersonalComputeMessageSchema),\n }),\n z.object({\n $case: z.literal('allowedAppsUserApiScopes'),\n allowedAppsUserApiScopes: z.lazy(\n () => marshalAllowedAppsUserApiScopesMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('operationalEmailCustomRecipient'),\n operationalEmailCustomRecipient: z.lazy(\n () => marshalOperationalEmailCustomRecipientMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('collaborationPlatformConnectivity'),\n collaborationPlatformConnectivity: z.lazy(\n () => marshalCollaborationPlatformConnectivityMessageSchema\n ),\n }),\n ])\n .optional(),\n effectiveValue: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('effectiveBooleanVal'),\n effectiveBooleanVal: z.lazy(() => marshalBooleanMessageSchema),\n }),\n z.object({\n $case: z.literal('effectiveStringVal'),\n effectiveStringVal: z.lazy(() => marshalStringMessageSchema),\n }),\n z.object({\n $case: z.literal('effectiveIntegerVal'),\n effectiveIntegerVal: z.lazy(() => marshalIntegerMessageSchema),\n }),\n z.object({\n $case: z.literal('effectiveAutomaticClusterUpdateWorkspace'),\n effectiveAutomaticClusterUpdateWorkspace: z.lazy(\n () => marshalClusterAutoRestartMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveAibiDashboardEmbeddingApprovedDomains'),\n effectiveAibiDashboardEmbeddingApprovedDomains: z.lazy(\n () => marshalAibiDashboardEmbeddingApprovedDomainsSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveAibiDashboardEmbeddingAccessPolicy'),\n effectiveAibiDashboardEmbeddingAccessPolicy: z.lazy(\n () => marshalAibiDashboardEmbeddingAccessPolicySchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveRestrictWorkspaceAdmins'),\n effectiveRestrictWorkspaceAdmins: z.lazy(\n () => marshalRestrictWorkspaceAdminsMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectivePersonalCompute'),\n effectivePersonalCompute: z.lazy(\n () => marshalPersonalComputeMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveAllowedAppsUserApiScopes'),\n effectiveAllowedAppsUserApiScopes: z.lazy(\n () => marshalAllowedAppsUserApiScopesMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveOperationalEmailCustomRecipient'),\n effectiveOperationalEmailCustomRecipient: z.lazy(\n () => marshalOperationalEmailCustomRecipientMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveCollaborationPlatformConnectivity'),\n effectiveCollaborationPlatformConnectivity: z.lazy(\n () => marshalCollaborationPlatformConnectivityMessageSchema\n ),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n ...(d.value?.$case === 'booleanVal' && {boolean_val: d.value.booleanVal}),\n ...(d.value?.$case === 'stringVal' && {string_val: d.value.stringVal}),\n ...(d.value?.$case === 'integerVal' && {integer_val: d.value.integerVal}),\n ...(d.value?.$case === 'automaticClusterUpdateWorkspace' && {\n automatic_cluster_update_workspace:\n d.value.automaticClusterUpdateWorkspace,\n }),\n ...(d.value?.$case === 'aibiDashboardEmbeddingApprovedDomains' && {\n aibi_dashboard_embedding_approved_domains:\n d.value.aibiDashboardEmbeddingApprovedDomains,\n }),\n ...(d.value?.$case === 'aibiDashboardEmbeddingAccessPolicy' && {\n aibi_dashboard_embedding_access_policy:\n d.value.aibiDashboardEmbeddingAccessPolicy,\n }),\n ...(d.value?.$case === 'restrictWorkspaceAdmins' && {\n restrict_workspace_admins: d.value.restrictWorkspaceAdmins,\n }),\n ...(d.value?.$case === 'personalCompute' && {\n personal_compute: d.value.personalCompute,\n }),\n ...(d.value?.$case === 'allowedAppsUserApiScopes' && {\n allowed_apps_user_api_scopes: d.value.allowedAppsUserApiScopes,\n }),\n ...(d.value?.$case === 'operationalEmailCustomRecipient' && {\n operational_email_custom_recipient:\n d.value.operationalEmailCustomRecipient,\n }),\n ...(d.value?.$case === 'collaborationPlatformConnectivity' && {\n collaboration_platform_connectivity:\n d.value.collaborationPlatformConnectivity,\n }),\n ...(d.effectiveValue?.$case === 'effectiveBooleanVal' && {\n effective_boolean_val: d.effectiveValue.effectiveBooleanVal,\n }),\n ...(d.effectiveValue?.$case === 'effectiveStringVal' && {\n effective_string_val: d.effectiveValue.effectiveStringVal,\n }),\n ...(d.effectiveValue?.$case === 'effectiveIntegerVal' && {\n effective_integer_val: d.effectiveValue.effectiveIntegerVal,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveAutomaticClusterUpdateWorkspace' && {\n effective_automatic_cluster_update_workspace:\n d.effectiveValue.effectiveAutomaticClusterUpdateWorkspace,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveAibiDashboardEmbeddingApprovedDomains' && {\n effective_aibi_dashboard_embedding_approved_domains:\n d.effectiveValue.effectiveAibiDashboardEmbeddingApprovedDomains,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveAibiDashboardEmbeddingAccessPolicy' && {\n effective_aibi_dashboard_embedding_access_policy:\n d.effectiveValue.effectiveAibiDashboardEmbeddingAccessPolicy,\n }),\n ...(d.effectiveValue?.$case === 'effectiveRestrictWorkspaceAdmins' && {\n effective_restrict_workspace_admins:\n d.effectiveValue.effectiveRestrictWorkspaceAdmins,\n }),\n ...(d.effectiveValue?.$case === 'effectivePersonalCompute' && {\n effective_personal_compute: d.effectiveValue.effectivePersonalCompute,\n }),\n ...(d.effectiveValue?.$case === 'effectiveAllowedAppsUserApiScopes' && {\n effective_allowed_apps_user_api_scopes:\n d.effectiveValue.effectiveAllowedAppsUserApiScopes,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveOperationalEmailCustomRecipient' && {\n effective_operational_email_custom_recipient:\n d.effectiveValue.effectiveOperationalEmailCustomRecipient,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveCollaborationPlatformConnectivity' && {\n effective_collaboration_platform_connectivity:\n d.effectiveValue.effectiveCollaborationPlatformConnectivity,\n }),\n }));\n\nexport const marshalStringMessageSchema: z.ZodType = z\n .object({\n value: z.string().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const marshalUserPreferenceSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n userId: z.string().optional(),\n value: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('booleanVal'),\n booleanVal: z.lazy(() => marshalBooleanMessageSchema),\n }),\n z.object({\n $case: z.literal('stringVal'),\n stringVal: z.lazy(() => marshalStringMessageSchema),\n }),\n ])\n .optional(),\n effectiveValue: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('effectiveBooleanVal'),\n effectiveBooleanVal: z.lazy(() => marshalBooleanMessageSchema),\n }),\n z.object({\n $case: z.literal('effectiveStringVal'),\n effectiveStringVal: z.lazy(() => marshalStringMessageSchema),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n user_id: d.userId,\n ...(d.value?.$case === 'booleanVal' && {boolean_val: d.value.booleanVal}),\n ...(d.value?.$case === 'stringVal' && {string_val: d.value.stringVal}),\n ...(d.effectiveValue?.$case === 'effectiveBooleanVal' && {\n effective_boolean_val: d.effectiveValue.effectiveBooleanVal,\n }),\n ...(d.effectiveValue?.$case === 'effectiveStringVal' && {\n effective_string_val: d.effectiveValue.effectiveStringVal,\n }),\n }));\n"],"mappings":";;;;;;;;;AAWA,MAAa,eAAe;CAE1B,2BAA2B;CAE3B,iBAAiB;CAKjB,gBAAgB;CAEhB,MAAM;CAEN,SAAS;CAET,IAAI;CACL;AAMD,MAAa,sDAAsD;CACjE,gCAAgC;CAChC,mBAAmB;CACnB,wBAAwB;CACxB,kBAAkB;CACnB;AAOD,MAAa,wDAAwD;CACnE,yBAAyB;CACzB,QAAQ;CACR,SAAS;CACT,WAAW;CACX,UAAU;CACV,QAAQ;CACR,UAAU;CACV,QAAQ;CACT;AAOD,MAAa,+DAA+D;CAC1E,gCAAgC;CAChC,gBAAgB;CAChB,iBAAiB;CACjB,gBAAgB;CAChB,iBAAiB;CACjB,0BAA0B;CAC1B,4BAA4B;CAC5B,YAAY;CACb;AAOD,MAAa,wDAAwD;CACnE,0BAA0B;CAC1B,WAAW;CACX,aAAa;CACb,aAAa;CACb,UAAU;CACX;;;;;AAWD,MAAa,oDAAoD;CAC/D,2CACE;CACF,IAAI;CACJ,UAAU;CACX;AAOD,MAAa,wCAAwC;CAEnD,oBAAoB;CAKpB,WAAW;CAKX,gCAAgC;CACjC;AA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AO,EAAE,QAAQ,qBAAqB;EACtC,oBAAoB,EAAE,WAAW,2BAA2B;EAC7D,CAAC,CACH,CAAC,CACD,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,SAAS,EAAE;CACX,GAAI,EAAE,OAAO,UAAU,gBAAgB,EAAC,aAAa,EAAE,MAAM,YAAW;CACxE,GAAI,EAAE,OAAO,UAAU,eAAe,EAAC,YAAY,EAAE,MAAM,WAAU;CACrE,GAAI,EAAE,gBAAgB,UAAU,yBAAyB,EACvD,uBAAuB,EAAE,eAAe,qBACzC;CACD,GAAI,EAAE,gBAAgB,UAAU,wBAAwB,EACtD,sBAAsB,EAAE,eAAe,oBACxC;CACF,EAAE"}
|
|
1
|
+
{"version":3,"file":"model.js","names":[],"sources":["../../src/v2/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {z} from 'zod';\n\n/**\n * Preview phase for settings that are feature previews.\n * For settings that are not feature previews, the preview_phase field is left unset.\n * Mirrors only the customer-facing phases surfaced in the UI; internal-only phases\n * (DISABLED, DEV, UNDER_MIGRATION, LAUNCHED, etc.) are not exposed here.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const PreviewPhase = {\n /** Default value. Indicates the preview phase is unknown or the setting is not a feature preview. */\n PREVIEW_PHASE_UNSPECIFIED: 'PREVIEW_PHASE_UNSPECIFIED',\n /** The feature is in private preview, available only to specifically enrolled customers. */\n PRIVATE_PREVIEW: 'PRIVATE_PREVIEW',\n /**\n * The feature is in public preview, available to all customers. Also used for gated public\n * preview (available to customers who request access) since the distinction is internal.\n */\n PUBLIC_PREVIEW: 'PUBLIC_PREVIEW',\n /** The feature is in beta. */\n BETA: 'BETA',\n /** The feature is approaching general availability. */\n GA_SOON: 'GA_SOON',\n /** The feature has reached general availability. */\n GA: 'GA',\n} as const;\nexport type PreviewPhase =\n | (typeof PreviewPhase)[keyof typeof PreviewPhase]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AibiDashboardEmbeddingAccessPolicy_AccessPolicyType = {\n ACCESS_POLICY_TYPE_UNSPECIFIED: 'ACCESS_POLICY_TYPE_UNSPECIFIED',\n ALLOW_ALL_DOMAINS: 'ALLOW_ALL_DOMAINS',\n ALLOW_APPROVED_DOMAINS: 'ALLOW_APPROVED_DOMAINS',\n DENY_ALL_DOMAINS: 'DENY_ALL_DOMAINS',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type AibiDashboardEmbeddingAccessPolicy_AccessPolicyType =\n | (typeof AibiDashboardEmbeddingAccessPolicy_AccessPolicyType)[keyof typeof AibiDashboardEmbeddingAccessPolicy_AccessPolicyType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek = {\n DAY_OF_WEEK_UNSPECIFIED: 'DAY_OF_WEEK_UNSPECIFIED',\n MONDAY: 'MONDAY',\n TUESDAY: 'TUESDAY',\n WEDNESDAY: 'WEDNESDAY',\n THURSDAY: 'THURSDAY',\n FRIDAY: 'FRIDAY',\n SATURDAY: 'SATURDAY',\n SUNDAY: 'SUNDAY',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek =\n | (typeof ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek)[keyof typeof ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency = {\n WEEK_DAY_FREQUENCY_UNSPECIFIED: 'WEEK_DAY_FREQUENCY_UNSPECIFIED',\n FIRST_OF_MONTH: 'FIRST_OF_MONTH',\n SECOND_OF_MONTH: 'SECOND_OF_MONTH',\n THIRD_OF_MONTH: 'THIRD_OF_MONTH',\n FOURTH_OF_MONTH: 'FOURTH_OF_MONTH',\n FIRST_AND_THIRD_OF_MONTH: 'FIRST_AND_THIRD_OF_MONTH',\n SECOND_AND_FOURTH_OF_MONTH: 'SECOND_AND_FOURTH_OF_MONTH',\n EVERY_WEEK: 'EVERY_WEEK',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency =\n | (typeof ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency)[keyof typeof ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const CollaborationPlatformConnectivityMessage_Connectivity = {\n CONNECTIVITY_UNSPECIFIED: 'CONNECTIVITY_UNSPECIFIED',\n ALLOW_ALL: 'ALLOW_ALL',\n ALLOW_TEAMS: 'ALLOW_TEAMS',\n ALLOW_SLACK: 'ALLOW_SLACK',\n DENY_ALL: 'DENY_ALL',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type CollaborationPlatformConnectivityMessage_Connectivity =\n | (typeof CollaborationPlatformConnectivityMessage_Connectivity)[keyof typeof CollaborationPlatformConnectivityMessage_Connectivity]\n | (string & {});\n\n/**\n * ON: Grants all users in all workspaces access to the Personal Compute default policy, allowing all users to create single-machine compute resources.\n * 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.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const PersonalComputeMessage_PersonalComputeMessageEnum = {\n PERSONAL_COMPUTE_MESSAGE_ENUM_UNSPECIFIED:\n 'PERSONAL_COMPUTE_MESSAGE_ENUM_UNSPECIFIED',\n ON: 'ON',\n DELEGATE: 'DELEGATE',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type PersonalComputeMessage_PersonalComputeMessageEnum =\n | (typeof PersonalComputeMessage_PersonalComputeMessageEnum)[keyof typeof PersonalComputeMessage_PersonalComputeMessageEnum]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const RestrictWorkspaceAdminsMessage_Status = {\n /** Default value for proto enum */\n STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED',\n /**\n * Default value for existing workspaces\n * Allows WS admins to create OBO tokens for all SPs in the workspace without explicit permissions.\n */\n ALLOW_ALL: 'ALLOW_ALL',\n /**\n * Default value for new workspaces\n * Restrict WS admins to create OBO tokens for SPs in the workspace unless corresponding permissions are provided\n */\n RESTRICT_TOKENS_AND_JOB_RUN_AS: 'RESTRICT_TOKENS_AND_JOB_RUN_AS',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type RestrictWorkspaceAdminsMessage_Status =\n | (typeof RestrictWorkspaceAdminsMessage_Status)[keyof typeof RestrictWorkspaceAdminsMessage_Status]\n | (string & {});\n\nexport interface AibiDashboardEmbeddingAccessPolicy {\n accessPolicyType?:\n | AibiDashboardEmbeddingAccessPolicy_AccessPolicyType\n | undefined;\n}\n\nexport interface AibiDashboardEmbeddingApprovedDomains {\n approvedDomains?: string[] | undefined;\n}\n\nexport interface AllowedAppsUserApiScopesMessage {\n allowedScopes?: string[] | undefined;\n}\n\nexport interface BooleanMessage {\n value?: boolean | undefined;\n}\n\nexport interface ClusterAutoRestartMessage {\n enabled?: boolean | undefined;\n canToggle?: boolean | undefined;\n maintenanceWindow?: ClusterAutoRestartMessage_MaintenanceWindow | undefined;\n enablementDetails?: ClusterAutoRestartMessage_EnablementDetails | undefined;\n restartEvenIfNoUpdatesAvailable?: boolean | undefined;\n}\n\n/**\n * Contains an information about the enablement status judging (e.g. whether the enterprise tier\n * is enabled)\n * This is only additional information that MUST NOT be used to decide whether the setting is\n * enabled or not. This is intended to use only for purposes like showing an error message to\n * the customer with the additional details. For example, using these details we can check\n * why exactly the feature is disabled for this customer.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface ClusterAutoRestartMessage_EnablementDetails {\n /** The feature is unavailable if the customer doesn't have enterprise tier */\n unavailableForNonEnterpriseTier?: boolean | undefined;\n /** The feature is unavailable if the corresponding entitlement disabled (see getShieldEntitlementEnable) */\n unavailableForDisabledEntitlement?: boolean | undefined;\n /** The feature is force enabled if compliance mode is active */\n forcedForComplianceMode?: boolean | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface ClusterAutoRestartMessage_MaintenanceWindow {\n weekDayBasedSchedule?:\n | ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule\n | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule {\n frequency?:\n | ClusterAutoRestartMessage_MaintenanceWindow_WeekDayFrequency\n | undefined;\n dayOfWeek?: ClusterAutoRestartMessage_MaintenanceWindow_DayOfWeek | undefined;\n windowStartTime?:\n | ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime\n | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime {\n hours?: number | undefined;\n minutes?: number | undefined;\n}\n\n/**\n * Controls which external collaboration platforms (Slack, Microsoft Teams) can connect\n * to a workspace. Defaults to ALLOW_ALL.\n */\nexport interface CollaborationPlatformConnectivityMessage {\n connectivity?:\n | CollaborationPlatformConnectivityMessage_Connectivity\n | undefined;\n}\n\nexport interface GetPublicAccountSettingRequest {\n accountId?: string | undefined;\n name?: string | undefined;\n}\n\nexport interface GetPublicAccountUserPreferenceRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n /** User ID of the user whose setting is being retrieved. */\n userId?: string | undefined;\n /** User Setting name. */\n name?: string | undefined;\n}\n\nexport interface GetPublicWorkspaceSettingRequest {\n /** Name of the setting */\n name?: string | undefined;\n}\n\nexport interface IntegerMessage {\n value?: number | undefined;\n}\n\nexport interface ListAccountSettingsMetadataRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n /**\n * The maximum number of settings to return. The service may return fewer than this value.\n * If unspecified, at most 200 settings will be returned.\n * The maximum value is 1000; values above 1000 will be coerced to 1000.\n */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListAccountSettingsMetadataRequest` call.\n * Provide this to retrieve the subsequent page.\n *\n * When paginating, all other parameters provided to `ListAccountSettingsMetadataRequest` must match\n * the call that provided the page token.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListAccountSettingsMetadataResponse {\n /** List of all settings available via public APIs and their metadata */\n settingsMetadata?: SettingsMetadata[] | undefined;\n /**\n * A token that can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent pages.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListAccountUserPreferencesMetadataRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n /** User ID of the user whose settings metadata is being retrieved. */\n userId?: string | undefined;\n /**\n * The maximum number of settings to return. The service may return fewer than this value.\n * If unspecified, at most 200 settings will be returned.\n * The maximum value is 1000; values above 1000 will be coerced to 1000.\n */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListAccountUserPreferencesMetadataRequest` call.\n * Provide this to retrieve the subsequent page.\n *\n * When paginating, all other parameters provided to `ListAccountUserPreferencesMetadataRequest` must match\n * the call that provided the page token.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListAccountUserPreferencesMetadataResponse {\n /** List of all settings available via public APIs and their metadata */\n settingsMetadata?: SettingsMetadata[] | undefined;\n /**\n * A token that can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent pages.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListWorkspaceSettingsMetadataRequest {\n /**\n * The maximum number of settings to return. The service may return fewer than this value.\n * If unspecified, at most 200 settings will be returned.\n * The maximum value is 1000; values above 1000 will be coerced to 1000.\n */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListWorkspaceSettingsMetadataRequest` call.\n * Provide this to retrieve the subsequent page.\n *\n * When paginating, all other parameters provided to `ListWorkspaceSettingsMetadataRequest` must match\n * the call that provided the page token.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListWorkspaceSettingsMetadataResponse {\n /** List of all settings available via public APIs and their metadata */\n settingsMetadata?: SettingsMetadata[] | undefined;\n /**\n * A token that can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent pages.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface OperationalEmailCustomRecipientMessage {\n email?: string | undefined;\n}\n\nexport interface PatchPublicAccountSettingRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n name?: string | undefined;\n setting?: Setting | undefined;\n}\n\nexport interface PatchPublicAccountUserPreferenceRequest {\n /** <Databricks> account ID of the account being managed. */\n accountId?: string | undefined;\n /** User ID of the user whose setting is being updated. */\n userId?: string | undefined;\n name?: string | undefined;\n setting?: UserPreference | undefined;\n}\n\nexport interface PatchPublicWorkspaceSettingRequest {\n /** Name of the setting */\n name?: string | undefined;\n setting?: Setting | undefined;\n}\n\nexport interface PersonalComputeMessage {\n value?: PersonalComputeMessage_PersonalComputeMessageEnum | undefined;\n}\n\nexport interface RestrictWorkspaceAdminsMessage {\n status?: RestrictWorkspaceAdminsMessage_Status | undefined;\n /**\n * When true, workspace admins cannot create governance tags.\n * ALLOW_ALL status does not override this; they are independent.\n */\n disableGovTagCreation?: boolean | undefined;\n}\n\nexport interface Setting {\n /** Name of the setting. */\n name?: string | undefined;\n /**\n * New fields should be added before the oneof below - unless it's a new Setting value message,\n * in that case it needs to be defined in the oneof below.\n * The user-set value that goes into storage\n */\n value?:\n | {\n $case: 'booleanVal';\n /** Setting value for boolean type setting. This is the setting value set by consumers, check effective_boolean_val for final setting value. */\n booleanVal: BooleanMessage;\n }\n | {\n $case: 'stringVal';\n /** Setting value for string type setting. This is the setting value set by consumers, check effective_string_val for final setting value. */\n stringVal: StringMessage;\n }\n | {\n $case: 'integerVal';\n /** Setting value for integer type setting. This is the setting value set by consumers, check effective_integer_val for final setting value. */\n integerVal: IntegerMessage;\n }\n | {\n $case: 'automaticClusterUpdateWorkspace';\n /** Setting value for automatic_cluster_update_workspace setting. This is the setting value set by consumers, check effective_automatic_cluster_update_workspace for final setting value. */\n automaticClusterUpdateWorkspace: ClusterAutoRestartMessage;\n }\n | {\n $case: 'aibiDashboardEmbeddingApprovedDomains';\n /** Setting value for aibi_dashboard_embedding_approved_domains setting. This is the setting value set by consumers, check effective_aibi_dashboard_embedding_approved_domains for final setting value. */\n aibiDashboardEmbeddingApprovedDomains: AibiDashboardEmbeddingApprovedDomains;\n }\n | {\n $case: 'aibiDashboardEmbeddingAccessPolicy';\n /** Setting value for aibi_dashboard_embedding_access_policy setting. This is the setting value set by consumers, check effective_aibi_dashboard_embedding_access_policy for final setting value. */\n aibiDashboardEmbeddingAccessPolicy: AibiDashboardEmbeddingAccessPolicy;\n }\n | {\n $case: 'restrictWorkspaceAdmins';\n /** Setting value for restrict_workspace_admins setting. This is the setting value set by consumers, check effective_restrict_workspace_admins for final setting value. */\n restrictWorkspaceAdmins: RestrictWorkspaceAdminsMessage;\n }\n | {\n $case: 'personalCompute';\n /** Setting value for personal_compute setting. This is the setting value set by consumers, check effective_personal_compute for final setting value. */\n personalCompute: PersonalComputeMessage;\n }\n | {\n $case: 'workspaceLabel';\n /** Setting value for workspace_label setting. This is the setting value set by consumers, check effective_workspace_label for final setting value. */\n workspaceLabel: WorkspaceLabelMessage;\n }\n | {\n $case: 'allowedAppsUserApiScopes';\n /** Setting value for allowed_apps_user_api_scopes setting. This is the setting value set by consumers, check effective_allowed_apps_user_api_scopes for final setting value. */\n allowedAppsUserApiScopes: AllowedAppsUserApiScopesMessage;\n }\n | {\n $case: 'operationalEmailCustomRecipient';\n /** Setting value for operational_email_custom_recipient setting. This is the setting value set by consumers, check effective_operational_email_custom_recipient for final setting value. */\n operationalEmailCustomRecipient: OperationalEmailCustomRecipientMessage;\n }\n | {\n $case: 'collaborationPlatformConnectivity';\n /** Setting value for collaboration_platform_connectivity setting. This is the setting value set by consumers, check effective_collaboration_platform_connectivity for final setting value. */\n collaborationPlatformConnectivity: CollaborationPlatformConnectivityMessage;\n }\n | undefined;\n /**\n * New fields should be added before the oneof below - unless it's a new Setting value message,\n * in that case it needs to be defined in the oneof below.\n * The final effective value from server as per the policy evaluation.\n */\n effectiveValue?:\n | {\n $case: 'effectiveBooleanVal';\n /** Effective setting value for boolean type setting. This is the final effective value of setting. To set a value use boolean_val. */\n effectiveBooleanVal: BooleanMessage;\n }\n | {\n $case: 'effectiveStringVal';\n /** Effective setting value for string type setting. This is the final effective value of setting. To set a value use string_val. */\n effectiveStringVal: StringMessage;\n }\n | {\n $case: 'effectiveIntegerVal';\n /** Effective setting value for integer type setting. This is the final effective value of setting. To set a value use integer_val. */\n effectiveIntegerVal: IntegerMessage;\n }\n | {\n $case: 'effectiveAutomaticClusterUpdateWorkspace';\n /** Effective setting value for automatic_cluster_update_workspace setting. This is the final effective value of setting. To set a value use automatic_cluster_update_workspace. */\n effectiveAutomaticClusterUpdateWorkspace: ClusterAutoRestartMessage;\n }\n | {\n $case: 'effectiveAibiDashboardEmbeddingApprovedDomains';\n /** Effective setting value for aibi_dashboard_embedding_approved_domains setting. This is the final effective value of setting. To set a value use aibi_dashboard_embedding_approved_domains. */\n effectiveAibiDashboardEmbeddingApprovedDomains: AibiDashboardEmbeddingApprovedDomains;\n }\n | {\n $case: 'effectiveAibiDashboardEmbeddingAccessPolicy';\n /** Effective setting value for aibi_dashboard_embedding_access_policy setting. This is the final effective value of setting. To set a value use aibi_dashboard_embedding_access_policy. */\n effectiveAibiDashboardEmbeddingAccessPolicy: AibiDashboardEmbeddingAccessPolicy;\n }\n | {\n $case: 'effectiveRestrictWorkspaceAdmins';\n /** Effective setting value for restrict_workspace_admins setting. This is the final effective value of setting. To set a value use restrict_workspace_admins. */\n effectiveRestrictWorkspaceAdmins: RestrictWorkspaceAdminsMessage;\n }\n | {\n $case: 'effectivePersonalCompute';\n /** Effective setting value for personal_compute setting. This is the final effective value of setting. To set a value use personal_compute. */\n effectivePersonalCompute: PersonalComputeMessage;\n }\n | {\n $case: 'effectiveWorkspaceLabel';\n /** Effective setting value for workspace_label setting. This is the final effective value of setting. To set a value use workspace_label. */\n effectiveWorkspaceLabel: WorkspaceLabelMessage;\n }\n | {\n $case: 'effectiveAllowedAppsUserApiScopes';\n /** Effective setting value for allowed_apps_user_api_scopes setting. This is the final effective value of setting. To set a value use allowed_apps_user_api_scopes. */\n effectiveAllowedAppsUserApiScopes: AllowedAppsUserApiScopesMessage;\n }\n | {\n $case: 'effectiveOperationalEmailCustomRecipient';\n /** Effective setting value for operational_email_custom_recipient setting. This is the final effective value of setting. To set a value use operational_email_custom_recipient. */\n effectiveOperationalEmailCustomRecipient: OperationalEmailCustomRecipientMessage;\n }\n | {\n $case: 'effectiveCollaborationPlatformConnectivity';\n /** Effective setting value for collaboration_platform_connectivity setting. This is the final effective value of setting. To set a value use collaboration_platform_connectivity. */\n effectiveCollaborationPlatformConnectivity: CollaborationPlatformConnectivityMessage;\n }\n | undefined;\n}\n\nexport interface SettingsMetadata {\n /** Name of the setting. */\n name?: string | undefined;\n /** Setting description for what this setting controls */\n description?: string | undefined;\n /** Sample message depicting the type of the setting. To set this setting, the value sent must match this type. */\n type?: string | undefined;\n /** Link to databricks documentation for the setting */\n docsLink?: string | undefined;\n /** Preview phase for feature preview settings. This field is not set for non-preview settings. */\n previewPhase?: PreviewPhase | undefined;\n /**\n * Human-readable display name for the setting or feature preview.\n * This field may be unset if no display name is available.\n */\n displayName?: string | undefined;\n}\n\nexport interface StringMessage {\n /** Represents a generic string value. */\n value?: string | undefined;\n}\n\n/**\n * User Preference represents a user-specific setting scoped to an individual user within an account.\n * Unlike workspace or account settings that apply to all users, user preferences allow personal\n * customization (e.g., UI theme, editor preferences) without affecting other users.\n */\nexport interface UserPreference {\n /** Name of the setting. */\n name?: string | undefined;\n /** User ID of the user. */\n userId?: string | undefined;\n /**\n * New fields should be added before the oneof below - unless it's a new Setting value message,\n * in that case it needs to be defined in the oneof below.\n * The user-set value that goes into storage.\n */\n value?:\n | {$case: 'booleanVal'; booleanVal: BooleanMessage}\n | {$case: 'stringVal'; stringVal: StringMessage}\n | undefined;\n /**\n * New fields should be added before the oneof below - unless it's a new User Preference value message,\n * in that case it needs to be defined in the oneof below.\n * The final effective value from server as per the policy evaluation.\n */\n effectiveValue?:\n | {$case: 'effectiveBooleanVal'; effectiveBooleanVal: BooleanMessage}\n | {$case: 'effectiveStringVal'; effectiveStringVal: StringMessage}\n | undefined;\n}\n\n/** Workspace label and color for display (e.g. in account console). */\nexport interface WorkspaceLabelMessage {\n label?: string | undefined;\n color?: string | undefined;\n}\n\nexport const unmarshalAibiDashboardEmbeddingAccessPolicySchema: z.ZodType<AibiDashboardEmbeddingAccessPolicy> =\n z\n .object({\n access_policy_type: z.string().optional(),\n })\n .transform(d => ({\n accessPolicyType: d.access_policy_type,\n }));\n\nexport const unmarshalAibiDashboardEmbeddingApprovedDomainsSchema: z.ZodType<AibiDashboardEmbeddingApprovedDomains> =\n z\n .object({\n approved_domains: z.array(z.string()).optional(),\n })\n .transform(d => ({\n approvedDomains: d.approved_domains,\n }));\n\nexport const unmarshalAllowedAppsUserApiScopesMessageSchema: z.ZodType<AllowedAppsUserApiScopesMessage> =\n z\n .object({\n allowed_scopes: z.array(z.string()).optional(),\n })\n .transform(d => ({\n allowedScopes: d.allowed_scopes,\n }));\n\nexport const unmarshalBooleanMessageSchema: z.ZodType<BooleanMessage> = z\n .object({\n value: z.boolean().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const unmarshalClusterAutoRestartMessageSchema: z.ZodType<ClusterAutoRestartMessage> =\n z\n .object({\n enabled: z.boolean().optional(),\n can_toggle: z.boolean().optional(),\n maintenance_window: z\n .lazy(() => unmarshalClusterAutoRestartMessage_MaintenanceWindowSchema)\n .optional(),\n enablement_details: z\n .lazy(() => unmarshalClusterAutoRestartMessage_EnablementDetailsSchema)\n .optional(),\n restart_even_if_no_updates_available: z.boolean().optional(),\n })\n .transform(d => ({\n enabled: d.enabled,\n canToggle: d.can_toggle,\n maintenanceWindow: d.maintenance_window,\n enablementDetails: d.enablement_details,\n restartEvenIfNoUpdatesAvailable: d.restart_even_if_no_updates_available,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalClusterAutoRestartMessage_EnablementDetailsSchema: z.ZodType<ClusterAutoRestartMessage_EnablementDetails> =\n z\n .object({\n unavailable_for_non_enterprise_tier: z.boolean().optional(),\n unavailable_for_disabled_entitlement: z.boolean().optional(),\n forced_for_compliance_mode: z.boolean().optional(),\n })\n .transform(d => ({\n unavailableForNonEnterpriseTier: d.unavailable_for_non_enterprise_tier,\n unavailableForDisabledEntitlement: d.unavailable_for_disabled_entitlement,\n forcedForComplianceMode: d.forced_for_compliance_mode,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalClusterAutoRestartMessage_MaintenanceWindowSchema: z.ZodType<ClusterAutoRestartMessage_MaintenanceWindow> =\n z\n .object({\n week_day_based_schedule: z\n .lazy(\n () =>\n unmarshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema\n )\n .optional(),\n })\n .transform(d => ({\n weekDayBasedSchedule: d.week_day_based_schedule,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema: z.ZodType<ClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedSchedule> =\n z\n .object({\n frequency: z.string().optional(),\n day_of_week: z.string().optional(),\n window_start_time: z\n .lazy(\n () =>\n unmarshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema\n )\n .optional(),\n })\n .transform(d => ({\n frequency: d.frequency,\n dayOfWeek: d.day_of_week,\n windowStartTime: d.window_start_time,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema: z.ZodType<ClusterAutoRestartMessage_MaintenanceWindow_WindowStartTime> =\n z\n .object({\n hours: z.number().optional(),\n minutes: z.number().optional(),\n })\n .transform(d => ({\n hours: d.hours,\n minutes: d.minutes,\n }));\n\nexport const unmarshalCollaborationPlatformConnectivityMessageSchema: z.ZodType<CollaborationPlatformConnectivityMessage> =\n z\n .object({\n connectivity: z.string().optional(),\n })\n .transform(d => ({\n connectivity: d.connectivity,\n }));\n\nexport const unmarshalIntegerMessageSchema: z.ZodType<IntegerMessage> = z\n .object({\n value: z.number().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const unmarshalListAccountSettingsMetadataResponseSchema: z.ZodType<ListAccountSettingsMetadataResponse> =\n z\n .object({\n settings_metadata: z\n .array(z.lazy(() => unmarshalSettingsMetadataSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n settingsMetadata: d.settings_metadata,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListAccountUserPreferencesMetadataResponseSchema: z.ZodType<ListAccountUserPreferencesMetadataResponse> =\n z\n .object({\n settings_metadata: z\n .array(z.lazy(() => unmarshalSettingsMetadataSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n settingsMetadata: d.settings_metadata,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListWorkspaceSettingsMetadataResponseSchema: z.ZodType<ListWorkspaceSettingsMetadataResponse> =\n z\n .object({\n settings_metadata: z\n .array(z.lazy(() => unmarshalSettingsMetadataSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n settingsMetadata: d.settings_metadata,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalOperationalEmailCustomRecipientMessageSchema: z.ZodType<OperationalEmailCustomRecipientMessage> =\n z\n .object({\n email: z.string().optional(),\n })\n .transform(d => ({\n email: d.email,\n }));\n\nexport const unmarshalPersonalComputeMessageSchema: z.ZodType<PersonalComputeMessage> =\n z\n .object({\n value: z.string().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const unmarshalRestrictWorkspaceAdminsMessageSchema: z.ZodType<RestrictWorkspaceAdminsMessage> =\n z\n .object({\n status: z.string().optional(),\n disable_gov_tag_creation: z.boolean().optional(),\n })\n .transform(d => ({\n status: d.status,\n disableGovTagCreation: d.disable_gov_tag_creation,\n }));\n\nexport const unmarshalSettingSchema: z.ZodType<Setting> = z\n .object({\n name: z.string().optional(),\n boolean_val: z.lazy(() => unmarshalBooleanMessageSchema).optional(),\n string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),\n integer_val: z.lazy(() => unmarshalIntegerMessageSchema).optional(),\n automatic_cluster_update_workspace: z\n .lazy(() => unmarshalClusterAutoRestartMessageSchema)\n .optional(),\n aibi_dashboard_embedding_approved_domains: z\n .lazy(() => unmarshalAibiDashboardEmbeddingApprovedDomainsSchema)\n .optional(),\n aibi_dashboard_embedding_access_policy: z\n .lazy(() => unmarshalAibiDashboardEmbeddingAccessPolicySchema)\n .optional(),\n restrict_workspace_admins: z\n .lazy(() => unmarshalRestrictWorkspaceAdminsMessageSchema)\n .optional(),\n personal_compute: z\n .lazy(() => unmarshalPersonalComputeMessageSchema)\n .optional(),\n workspace_label: z\n .lazy(() => unmarshalWorkspaceLabelMessageSchema)\n .optional(),\n allowed_apps_user_api_scopes: z\n .lazy(() => unmarshalAllowedAppsUserApiScopesMessageSchema)\n .optional(),\n operational_email_custom_recipient: z\n .lazy(() => unmarshalOperationalEmailCustomRecipientMessageSchema)\n .optional(),\n collaboration_platform_connectivity: z\n .lazy(() => unmarshalCollaborationPlatformConnectivityMessageSchema)\n .optional(),\n effective_boolean_val: z\n .lazy(() => unmarshalBooleanMessageSchema)\n .optional(),\n effective_string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),\n effective_integer_val: z\n .lazy(() => unmarshalIntegerMessageSchema)\n .optional(),\n effective_automatic_cluster_update_workspace: z\n .lazy(() => unmarshalClusterAutoRestartMessageSchema)\n .optional(),\n effective_aibi_dashboard_embedding_approved_domains: z\n .lazy(() => unmarshalAibiDashboardEmbeddingApprovedDomainsSchema)\n .optional(),\n effective_aibi_dashboard_embedding_access_policy: z\n .lazy(() => unmarshalAibiDashboardEmbeddingAccessPolicySchema)\n .optional(),\n effective_restrict_workspace_admins: z\n .lazy(() => unmarshalRestrictWorkspaceAdminsMessageSchema)\n .optional(),\n effective_personal_compute: z\n .lazy(() => unmarshalPersonalComputeMessageSchema)\n .optional(),\n effective_workspace_label: z\n .lazy(() => unmarshalWorkspaceLabelMessageSchema)\n .optional(),\n effective_allowed_apps_user_api_scopes: z\n .lazy(() => unmarshalAllowedAppsUserApiScopesMessageSchema)\n .optional(),\n effective_operational_email_custom_recipient: z\n .lazy(() => unmarshalOperationalEmailCustomRecipientMessageSchema)\n .optional(),\n effective_collaboration_platform_connectivity: z\n .lazy(() => unmarshalCollaborationPlatformConnectivityMessageSchema)\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n value:\n d.boolean_val !== undefined\n ? {$case: 'booleanVal' as const, booleanVal: d.boolean_val}\n : d.string_val !== undefined\n ? {$case: 'stringVal' as const, stringVal: d.string_val}\n : d.integer_val !== undefined\n ? {$case: 'integerVal' as const, integerVal: d.integer_val}\n : d.automatic_cluster_update_workspace !== undefined\n ? {\n $case: 'automaticClusterUpdateWorkspace' as const,\n automaticClusterUpdateWorkspace:\n d.automatic_cluster_update_workspace,\n }\n : d.aibi_dashboard_embedding_approved_domains !== undefined\n ? {\n $case: 'aibiDashboardEmbeddingApprovedDomains' as const,\n aibiDashboardEmbeddingApprovedDomains:\n d.aibi_dashboard_embedding_approved_domains,\n }\n : d.aibi_dashboard_embedding_access_policy !== undefined\n ? {\n $case: 'aibiDashboardEmbeddingAccessPolicy' as const,\n aibiDashboardEmbeddingAccessPolicy:\n d.aibi_dashboard_embedding_access_policy,\n }\n : d.restrict_workspace_admins !== undefined\n ? {\n $case: 'restrictWorkspaceAdmins' as const,\n restrictWorkspaceAdmins: d.restrict_workspace_admins,\n }\n : d.personal_compute !== undefined\n ? {\n $case: 'personalCompute' as const,\n personalCompute: d.personal_compute,\n }\n : d.workspace_label !== undefined\n ? {\n $case: 'workspaceLabel' as const,\n workspaceLabel: d.workspace_label,\n }\n : d.allowed_apps_user_api_scopes !== undefined\n ? {\n $case: 'allowedAppsUserApiScopes' as const,\n allowedAppsUserApiScopes:\n d.allowed_apps_user_api_scopes,\n }\n : d.operational_email_custom_recipient !== undefined\n ? {\n $case:\n 'operationalEmailCustomRecipient' as const,\n operationalEmailCustomRecipient:\n d.operational_email_custom_recipient,\n }\n : d.collaboration_platform_connectivity !==\n undefined\n ? {\n $case:\n 'collaborationPlatformConnectivity' as const,\n collaborationPlatformConnectivity:\n d.collaboration_platform_connectivity,\n }\n : undefined,\n effectiveValue:\n d.effective_boolean_val !== undefined\n ? {\n $case: 'effectiveBooleanVal' as const,\n effectiveBooleanVal: d.effective_boolean_val,\n }\n : d.effective_string_val !== undefined\n ? {\n $case: 'effectiveStringVal' as const,\n effectiveStringVal: d.effective_string_val,\n }\n : d.effective_integer_val !== undefined\n ? {\n $case: 'effectiveIntegerVal' as const,\n effectiveIntegerVal: d.effective_integer_val,\n }\n : d.effective_automatic_cluster_update_workspace !== undefined\n ? {\n $case: 'effectiveAutomaticClusterUpdateWorkspace' as const,\n effectiveAutomaticClusterUpdateWorkspace:\n d.effective_automatic_cluster_update_workspace,\n }\n : d.effective_aibi_dashboard_embedding_approved_domains !==\n undefined\n ? {\n $case:\n 'effectiveAibiDashboardEmbeddingApprovedDomains' as const,\n effectiveAibiDashboardEmbeddingApprovedDomains:\n d.effective_aibi_dashboard_embedding_approved_domains,\n }\n : d.effective_aibi_dashboard_embedding_access_policy !==\n undefined\n ? {\n $case:\n 'effectiveAibiDashboardEmbeddingAccessPolicy' as const,\n effectiveAibiDashboardEmbeddingAccessPolicy:\n d.effective_aibi_dashboard_embedding_access_policy,\n }\n : d.effective_restrict_workspace_admins !== undefined\n ? {\n $case: 'effectiveRestrictWorkspaceAdmins' as const,\n effectiveRestrictWorkspaceAdmins:\n d.effective_restrict_workspace_admins,\n }\n : d.effective_personal_compute !== undefined\n ? {\n $case: 'effectivePersonalCompute' as const,\n effectivePersonalCompute:\n d.effective_personal_compute,\n }\n : d.effective_workspace_label !== undefined\n ? {\n $case: 'effectiveWorkspaceLabel' as const,\n effectiveWorkspaceLabel:\n d.effective_workspace_label,\n }\n : d.effective_allowed_apps_user_api_scopes !== undefined\n ? {\n $case:\n 'effectiveAllowedAppsUserApiScopes' as const,\n effectiveAllowedAppsUserApiScopes:\n d.effective_allowed_apps_user_api_scopes,\n }\n : d.effective_operational_email_custom_recipient !==\n undefined\n ? {\n $case:\n 'effectiveOperationalEmailCustomRecipient' as const,\n effectiveOperationalEmailCustomRecipient:\n d.effective_operational_email_custom_recipient,\n }\n : d.effective_collaboration_platform_connectivity !==\n undefined\n ? {\n $case:\n 'effectiveCollaborationPlatformConnectivity' as const,\n effectiveCollaborationPlatformConnectivity:\n d.effective_collaboration_platform_connectivity,\n }\n : undefined,\n }));\n\nexport const unmarshalSettingsMetadataSchema: z.ZodType<SettingsMetadata> = z\n .object({\n name: z.string().optional(),\n description: z.string().optional(),\n type: z.string().optional(),\n docs_link: z.string().optional(),\n preview_phase: z.string().optional(),\n display_name: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n description: d.description,\n type: d.type,\n docsLink: d.docs_link,\n previewPhase: d.preview_phase,\n displayName: d.display_name,\n }));\n\nexport const unmarshalStringMessageSchema: z.ZodType<StringMessage> = z\n .object({\n value: z.string().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const unmarshalUserPreferenceSchema: z.ZodType<UserPreference> = z\n .object({\n name: z.string().optional(),\n user_id: z.string().optional(),\n boolean_val: z.lazy(() => unmarshalBooleanMessageSchema).optional(),\n string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),\n effective_boolean_val: z\n .lazy(() => unmarshalBooleanMessageSchema)\n .optional(),\n effective_string_val: z.lazy(() => unmarshalStringMessageSchema).optional(),\n })\n .transform(d => ({\n name: d.name,\n userId: d.user_id,\n value:\n d.boolean_val !== undefined\n ? {$case: 'booleanVal' as const, booleanVal: d.boolean_val}\n : d.string_val !== undefined\n ? {$case: 'stringVal' as const, stringVal: d.string_val}\n : undefined,\n effectiveValue:\n d.effective_boolean_val !== undefined\n ? {\n $case: 'effectiveBooleanVal' as const,\n effectiveBooleanVal: d.effective_boolean_val,\n }\n : d.effective_string_val !== undefined\n ? {\n $case: 'effectiveStringVal' as const,\n effectiveStringVal: d.effective_string_val,\n }\n : undefined,\n }));\n\nexport const unmarshalWorkspaceLabelMessageSchema: z.ZodType<WorkspaceLabelMessage> =\n z\n .object({\n label: z.string().optional(),\n color: z.string().optional(),\n })\n .transform(d => ({\n label: d.label,\n color: d.color,\n }));\n\nexport const marshalAibiDashboardEmbeddingAccessPolicySchema: z.ZodType = z\n .object({\n accessPolicyType: z.string().optional(),\n })\n .transform(d => ({\n access_policy_type: d.accessPolicyType,\n }));\n\nexport const marshalAibiDashboardEmbeddingApprovedDomainsSchema: z.ZodType = z\n .object({\n approvedDomains: z.array(z.string()).optional(),\n })\n .transform(d => ({\n approved_domains: d.approvedDomains,\n }));\n\nexport const marshalAllowedAppsUserApiScopesMessageSchema: z.ZodType = z\n .object({\n allowedScopes: z.array(z.string()).optional(),\n })\n .transform(d => ({\n allowed_scopes: d.allowedScopes,\n }));\n\nexport const marshalBooleanMessageSchema: z.ZodType = z\n .object({\n value: z.boolean().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const marshalClusterAutoRestartMessageSchema: z.ZodType = z\n .object({\n enabled: z.boolean().optional(),\n canToggle: z.boolean().optional(),\n maintenanceWindow: z\n .lazy(() => marshalClusterAutoRestartMessage_MaintenanceWindowSchema)\n .optional(),\n enablementDetails: z\n .lazy(() => marshalClusterAutoRestartMessage_EnablementDetailsSchema)\n .optional(),\n restartEvenIfNoUpdatesAvailable: z.boolean().optional(),\n })\n .transform(d => ({\n enabled: d.enabled,\n can_toggle: d.canToggle,\n maintenance_window: d.maintenanceWindow,\n enablement_details: d.enablementDetails,\n restart_even_if_no_updates_available: d.restartEvenIfNoUpdatesAvailable,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalClusterAutoRestartMessage_EnablementDetailsSchema: z.ZodType =\n z\n .object({\n unavailableForNonEnterpriseTier: z.boolean().optional(),\n unavailableForDisabledEntitlement: z.boolean().optional(),\n forcedForComplianceMode: z.boolean().optional(),\n })\n .transform(d => ({\n unavailable_for_non_enterprise_tier: d.unavailableForNonEnterpriseTier,\n unavailable_for_disabled_entitlement: d.unavailableForDisabledEntitlement,\n forced_for_compliance_mode: d.forcedForComplianceMode,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalClusterAutoRestartMessage_MaintenanceWindowSchema: z.ZodType =\n z\n .object({\n weekDayBasedSchedule: z\n .lazy(\n () =>\n marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema\n )\n .optional(),\n })\n .transform(d => ({\n week_day_based_schedule: d.weekDayBasedSchedule,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalClusterAutoRestartMessage_MaintenanceWindow_WeekDayBasedScheduleSchema: z.ZodType =\n z\n .object({\n frequency: z.string().optional(),\n dayOfWeek: z.string().optional(),\n windowStartTime: z\n .lazy(\n () =>\n marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema\n )\n .optional(),\n })\n .transform(d => ({\n frequency: d.frequency,\n day_of_week: d.dayOfWeek,\n window_start_time: d.windowStartTime,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalClusterAutoRestartMessage_MaintenanceWindow_WindowStartTimeSchema: z.ZodType =\n z\n .object({\n hours: z.number().optional(),\n minutes: z.number().optional(),\n })\n .transform(d => ({\n hours: d.hours,\n minutes: d.minutes,\n }));\n\nexport const marshalCollaborationPlatformConnectivityMessageSchema: z.ZodType =\n z\n .object({\n connectivity: z.string().optional(),\n })\n .transform(d => ({\n connectivity: d.connectivity,\n }));\n\nexport const marshalIntegerMessageSchema: z.ZodType = z\n .object({\n value: z.number().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const marshalOperationalEmailCustomRecipientMessageSchema: z.ZodType = z\n .object({\n email: z.string().optional(),\n })\n .transform(d => ({\n email: d.email,\n }));\n\nexport const marshalPersonalComputeMessageSchema: z.ZodType = z\n .object({\n value: z.string().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const marshalRestrictWorkspaceAdminsMessageSchema: z.ZodType = z\n .object({\n status: z.string().optional(),\n disableGovTagCreation: z.boolean().optional(),\n })\n .transform(d => ({\n status: d.status,\n disable_gov_tag_creation: d.disableGovTagCreation,\n }));\n\nexport const marshalSettingSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n value: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('booleanVal'),\n booleanVal: z.lazy(() => marshalBooleanMessageSchema),\n }),\n z.object({\n $case: z.literal('stringVal'),\n stringVal: z.lazy(() => marshalStringMessageSchema),\n }),\n z.object({\n $case: z.literal('integerVal'),\n integerVal: z.lazy(() => marshalIntegerMessageSchema),\n }),\n z.object({\n $case: z.literal('automaticClusterUpdateWorkspace'),\n automaticClusterUpdateWorkspace: z.lazy(\n () => marshalClusterAutoRestartMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('aibiDashboardEmbeddingApprovedDomains'),\n aibiDashboardEmbeddingApprovedDomains: z.lazy(\n () => marshalAibiDashboardEmbeddingApprovedDomainsSchema\n ),\n }),\n z.object({\n $case: z.literal('aibiDashboardEmbeddingAccessPolicy'),\n aibiDashboardEmbeddingAccessPolicy: z.lazy(\n () => marshalAibiDashboardEmbeddingAccessPolicySchema\n ),\n }),\n z.object({\n $case: z.literal('restrictWorkspaceAdmins'),\n restrictWorkspaceAdmins: z.lazy(\n () => marshalRestrictWorkspaceAdminsMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('personalCompute'),\n personalCompute: z.lazy(() => marshalPersonalComputeMessageSchema),\n }),\n z.object({\n $case: z.literal('workspaceLabel'),\n workspaceLabel: z.lazy(() => marshalWorkspaceLabelMessageSchema),\n }),\n z.object({\n $case: z.literal('allowedAppsUserApiScopes'),\n allowedAppsUserApiScopes: z.lazy(\n () => marshalAllowedAppsUserApiScopesMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('operationalEmailCustomRecipient'),\n operationalEmailCustomRecipient: z.lazy(\n () => marshalOperationalEmailCustomRecipientMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('collaborationPlatformConnectivity'),\n collaborationPlatformConnectivity: z.lazy(\n () => marshalCollaborationPlatformConnectivityMessageSchema\n ),\n }),\n ])\n .optional(),\n effectiveValue: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('effectiveBooleanVal'),\n effectiveBooleanVal: z.lazy(() => marshalBooleanMessageSchema),\n }),\n z.object({\n $case: z.literal('effectiveStringVal'),\n effectiveStringVal: z.lazy(() => marshalStringMessageSchema),\n }),\n z.object({\n $case: z.literal('effectiveIntegerVal'),\n effectiveIntegerVal: z.lazy(() => marshalIntegerMessageSchema),\n }),\n z.object({\n $case: z.literal('effectiveAutomaticClusterUpdateWorkspace'),\n effectiveAutomaticClusterUpdateWorkspace: z.lazy(\n () => marshalClusterAutoRestartMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveAibiDashboardEmbeddingApprovedDomains'),\n effectiveAibiDashboardEmbeddingApprovedDomains: z.lazy(\n () => marshalAibiDashboardEmbeddingApprovedDomainsSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveAibiDashboardEmbeddingAccessPolicy'),\n effectiveAibiDashboardEmbeddingAccessPolicy: z.lazy(\n () => marshalAibiDashboardEmbeddingAccessPolicySchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveRestrictWorkspaceAdmins'),\n effectiveRestrictWorkspaceAdmins: z.lazy(\n () => marshalRestrictWorkspaceAdminsMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectivePersonalCompute'),\n effectivePersonalCompute: z.lazy(\n () => marshalPersonalComputeMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveWorkspaceLabel'),\n effectiveWorkspaceLabel: z.lazy(\n () => marshalWorkspaceLabelMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveAllowedAppsUserApiScopes'),\n effectiveAllowedAppsUserApiScopes: z.lazy(\n () => marshalAllowedAppsUserApiScopesMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveOperationalEmailCustomRecipient'),\n effectiveOperationalEmailCustomRecipient: z.lazy(\n () => marshalOperationalEmailCustomRecipientMessageSchema\n ),\n }),\n z.object({\n $case: z.literal('effectiveCollaborationPlatformConnectivity'),\n effectiveCollaborationPlatformConnectivity: z.lazy(\n () => marshalCollaborationPlatformConnectivityMessageSchema\n ),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n ...(d.value?.$case === 'booleanVal' && {boolean_val: d.value.booleanVal}),\n ...(d.value?.$case === 'stringVal' && {string_val: d.value.stringVal}),\n ...(d.value?.$case === 'integerVal' && {integer_val: d.value.integerVal}),\n ...(d.value?.$case === 'automaticClusterUpdateWorkspace' && {\n automatic_cluster_update_workspace:\n d.value.automaticClusterUpdateWorkspace,\n }),\n ...(d.value?.$case === 'aibiDashboardEmbeddingApprovedDomains' && {\n aibi_dashboard_embedding_approved_domains:\n d.value.aibiDashboardEmbeddingApprovedDomains,\n }),\n ...(d.value?.$case === 'aibiDashboardEmbeddingAccessPolicy' && {\n aibi_dashboard_embedding_access_policy:\n d.value.aibiDashboardEmbeddingAccessPolicy,\n }),\n ...(d.value?.$case === 'restrictWorkspaceAdmins' && {\n restrict_workspace_admins: d.value.restrictWorkspaceAdmins,\n }),\n ...(d.value?.$case === 'personalCompute' && {\n personal_compute: d.value.personalCompute,\n }),\n ...(d.value?.$case === 'workspaceLabel' && {\n workspace_label: d.value.workspaceLabel,\n }),\n ...(d.value?.$case === 'allowedAppsUserApiScopes' && {\n allowed_apps_user_api_scopes: d.value.allowedAppsUserApiScopes,\n }),\n ...(d.value?.$case === 'operationalEmailCustomRecipient' && {\n operational_email_custom_recipient:\n d.value.operationalEmailCustomRecipient,\n }),\n ...(d.value?.$case === 'collaborationPlatformConnectivity' && {\n collaboration_platform_connectivity:\n d.value.collaborationPlatformConnectivity,\n }),\n ...(d.effectiveValue?.$case === 'effectiveBooleanVal' && {\n effective_boolean_val: d.effectiveValue.effectiveBooleanVal,\n }),\n ...(d.effectiveValue?.$case === 'effectiveStringVal' && {\n effective_string_val: d.effectiveValue.effectiveStringVal,\n }),\n ...(d.effectiveValue?.$case === 'effectiveIntegerVal' && {\n effective_integer_val: d.effectiveValue.effectiveIntegerVal,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveAutomaticClusterUpdateWorkspace' && {\n effective_automatic_cluster_update_workspace:\n d.effectiveValue.effectiveAutomaticClusterUpdateWorkspace,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveAibiDashboardEmbeddingApprovedDomains' && {\n effective_aibi_dashboard_embedding_approved_domains:\n d.effectiveValue.effectiveAibiDashboardEmbeddingApprovedDomains,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveAibiDashboardEmbeddingAccessPolicy' && {\n effective_aibi_dashboard_embedding_access_policy:\n d.effectiveValue.effectiveAibiDashboardEmbeddingAccessPolicy,\n }),\n ...(d.effectiveValue?.$case === 'effectiveRestrictWorkspaceAdmins' && {\n effective_restrict_workspace_admins:\n d.effectiveValue.effectiveRestrictWorkspaceAdmins,\n }),\n ...(d.effectiveValue?.$case === 'effectivePersonalCompute' && {\n effective_personal_compute: d.effectiveValue.effectivePersonalCompute,\n }),\n ...(d.effectiveValue?.$case === 'effectiveWorkspaceLabel' && {\n effective_workspace_label: d.effectiveValue.effectiveWorkspaceLabel,\n }),\n ...(d.effectiveValue?.$case === 'effectiveAllowedAppsUserApiScopes' && {\n effective_allowed_apps_user_api_scopes:\n d.effectiveValue.effectiveAllowedAppsUserApiScopes,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveOperationalEmailCustomRecipient' && {\n effective_operational_email_custom_recipient:\n d.effectiveValue.effectiveOperationalEmailCustomRecipient,\n }),\n ...(d.effectiveValue?.$case ===\n 'effectiveCollaborationPlatformConnectivity' && {\n effective_collaboration_platform_connectivity:\n d.effectiveValue.effectiveCollaborationPlatformConnectivity,\n }),\n }));\n\nexport const marshalStringMessageSchema: z.ZodType = z\n .object({\n value: z.string().optional(),\n })\n .transform(d => ({\n value: d.value,\n }));\n\nexport const marshalUserPreferenceSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n userId: z.string().optional(),\n value: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('booleanVal'),\n booleanVal: z.lazy(() => marshalBooleanMessageSchema),\n }),\n z.object({\n $case: z.literal('stringVal'),\n stringVal: z.lazy(() => marshalStringMessageSchema),\n }),\n ])\n .optional(),\n effectiveValue: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('effectiveBooleanVal'),\n effectiveBooleanVal: z.lazy(() => marshalBooleanMessageSchema),\n }),\n z.object({\n $case: z.literal('effectiveStringVal'),\n effectiveStringVal: z.lazy(() => marshalStringMessageSchema),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n user_id: d.userId,\n ...(d.value?.$case === 'booleanVal' && {boolean_val: d.value.booleanVal}),\n ...(d.value?.$case === 'stringVal' && {string_val: d.value.stringVal}),\n ...(d.effectiveValue?.$case === 'effectiveBooleanVal' && {\n effective_boolean_val: d.effectiveValue.effectiveBooleanVal,\n }),\n ...(d.effectiveValue?.$case === 'effectiveStringVal' && {\n effective_string_val: d.effectiveValue.effectiveStringVal,\n }),\n }));\n\nexport const marshalWorkspaceLabelMessageSchema: z.ZodType = z\n .object({\n label: z.string().optional(),\n color: z.string().optional(),\n })\n .transform(d => ({\n label: d.label,\n color: d.color,\n }));\n"],"mappings":";;;;;;;;;AAWA,MAAa,eAAe;CAE1B,2BAA2B;CAE3B,iBAAiB;CAKjB,gBAAgB;CAEhB,MAAM;CAEN,SAAS;CAET,IAAI;CACL;AAMD,MAAa,sDAAsD;CACjE,gCAAgC;CAChC,mBAAmB;CACnB,wBAAwB;CACxB,kBAAkB;CACnB;AAOD,MAAa,wDAAwD;CACnE,yBAAyB;CACzB,QAAQ;CACR,SAAS;CACT,WAAW;CACX,UAAU;CACV,QAAQ;CACR,UAAU;CACV,QAAQ;CACT;AAOD,MAAa,+DAA+D;CAC1E,gCAAgC;CAChC,gBAAgB;CAChB,iBAAiB;CACjB,gBAAgB;CAChB,iBAAiB;CACjB,0BAA0B;CAC1B,4BAA4B;CAC5B,YAAY;CACb;AAOD,MAAa,wDAAwD;CACnE,0BAA0B;CAC1B,WAAW;CACX,aAAa;CACb,aAAa;CACb,UAAU;CACX;;;;;AAWD,MAAa,oDAAoD;CAC/D,2CACE;CACF,IAAI;CACJ,UAAU;CACX;AAOD,MAAa,wCAAwC;CAEnD,oBAAoB;CAKpB,WAAW;CAKX,gCAAgC;CACjC;AA+aD,MAAa,oDACX,EACG,OAAO,EACN,oBAAoB,EAAE,QAAQ,CAAC,UAAU,EAC1C,CAAC,CACD,WAAU,OAAM,EACf,kBAAkB,EAAE,oBACrB,EAAE;AAEP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transport.js
CHANGED
|
@@ -15,19 +15,27 @@ import { resolve } from "@databricks/sdk-core/profiles";
|
|
|
15
15
|
*/
|
|
16
16
|
async function resolveClientConfig(options) {
|
|
17
17
|
const profile = await resolve(options.profileOptions);
|
|
18
|
-
const host = options.host ?? profile.host;
|
|
18
|
+
const host = normalizeHost(options.host ?? profile.host);
|
|
19
19
|
if (host === void 0) throw new Error("Host is required.");
|
|
20
|
-
let httpClient = new AuthHttpClient(options.httpClient ?? newFetchHttpClient(), options.credentials ?? defaultCredentials({ profile
|
|
20
|
+
let httpClient = new AuthHttpClient(options.httpClient ?? newFetchHttpClient(), options.credentials ?? defaultCredentials({ profile: {
|
|
21
|
+
...profile,
|
|
22
|
+
host
|
|
23
|
+
} }));
|
|
21
24
|
if (options.timeout !== void 0) httpClient = new TimeoutHttpClient(httpClient, options.timeout);
|
|
22
25
|
const accountId = options.accountId ?? profile.accountId;
|
|
23
26
|
const workspaceId = options.workspaceId ?? profile.workspaceId;
|
|
24
27
|
return {
|
|
25
|
-
host
|
|
28
|
+
host,
|
|
26
29
|
httpClient,
|
|
27
30
|
...accountId !== void 0 && { accountId },
|
|
28
31
|
...workspaceId !== void 0 && { workspaceId }
|
|
29
32
|
};
|
|
30
33
|
}
|
|
34
|
+
function normalizeHost(host) {
|
|
35
|
+
const trimmed = host?.trim();
|
|
36
|
+
if (trimmed === void 0 || trimmed === "") return;
|
|
37
|
+
return (/^https?:\/\//i.test(trimmed) ? trimmed : `https://${trimmed}`).replace(/\/$/, "");
|
|
38
|
+
}
|
|
31
39
|
/** Wraps an HttpClient and adds authentication headers to requests. */
|
|
32
40
|
var AuthHttpClient = class {
|
|
33
41
|
constructor(base, credentials) {
|
package/dist/v2/transport.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.js","names":[],"sources":["../../src/v2/transport.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {Credentials} from '@databricks/sdk-auth';\nimport {defaultCredentials} from '@databricks/sdk-auth/credentials';\nimport type {\n HttpClient,\n HttpRequest,\n HttpResponse,\n} from '@databricks/sdk-core/http';\nimport {newFetchHttpClient} from '@databricks/sdk-core/http';\nimport type {Profile} from '@databricks/sdk-core/profiles';\nimport {resolve} from '@databricks/sdk-core/profiles';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\n\n/**\n * The configuration a client needs to issue requests, resolved from\n * {@link ClientOptions} and a configuration profile.\n */\nexport interface ResolvedClientConfig {\n /** Host with any trailing slash removed. */\n host: string;\n\n /**\n * Default account ID for account-level paths that contain an account_id\n * segment. A request's own accountId still wins.\n */\n accountId?: string;\n\n /**\n * Workspace ID used to route workspace-level calls on unified hosts (SPOG).\n */\n workspaceId?: string;\n\n /** HTTP client with authentication, and any configured timeout, applied. */\n httpClient: HttpClient;\n}\n\n/**\n * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.\n *\n * A configuration profile is always resolved from the config file and\n * environment variables (per options.profileOptions); it supplies host,\n * accountId, workspaceId, and credentials wherever the caller did not set them\n * explicitly. Explicit options always take precedence.\n *\n * @throws if host is neither provided nor present in the resolved profile.\n */\nexport async function resolveClientConfig(\n options: ClientOptions\n): Promise<ResolvedClientConfig> {\n const profile: Profile = await resolve(options.profileOptions);\n\n const host = options.host ?? profile.host;\n if (host === undefined) {\n throw new Error('Host is required.');\n }\n\n // The provided httpClient (or the default fetch client) is the base wire;\n // authentication and the optional timeout are layered on top of it. The\n // default credential chain reuses the profile resolved above so that the\n // same profileOptions govern host and authentication alike.\n const base = options.httpClient ?? newFetchHttpClient();\n const credentials
|
|
1
|
+
{"version":3,"file":"transport.js","names":[],"sources":["../../src/v2/transport.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {Credentials} from '@databricks/sdk-auth';\nimport {defaultCredentials} from '@databricks/sdk-auth/credentials';\nimport type {\n HttpClient,\n HttpRequest,\n HttpResponse,\n} from '@databricks/sdk-core/http';\nimport {newFetchHttpClient} from '@databricks/sdk-core/http';\nimport type {Profile} from '@databricks/sdk-core/profiles';\nimport {resolve} from '@databricks/sdk-core/profiles';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\n\n/**\n * The configuration a client needs to issue requests, resolved from\n * {@link ClientOptions} and a configuration profile.\n */\nexport interface ResolvedClientConfig {\n /** Host with any trailing slash removed. */\n host: string;\n\n /**\n * Default account ID for account-level paths that contain an account_id\n * segment. A request's own accountId still wins.\n */\n accountId?: string;\n\n /**\n * Workspace ID used to route workspace-level calls on unified hosts (SPOG).\n */\n workspaceId?: string;\n\n /** HTTP client with authentication, and any configured timeout, applied. */\n httpClient: HttpClient;\n}\n\n/**\n * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.\n *\n * A configuration profile is always resolved from the config file and\n * environment variables (per options.profileOptions); it supplies host,\n * accountId, workspaceId, and credentials wherever the caller did not set them\n * explicitly. Explicit options always take precedence.\n *\n * @throws if host is neither provided nor present in the resolved profile.\n */\nexport async function resolveClientConfig(\n options: ClientOptions\n): Promise<ResolvedClientConfig> {\n const profile: Profile = await resolve(options.profileOptions);\n\n const host = normalizeHost(options.host ?? profile.host);\n if (host === undefined) {\n throw new Error('Host is required.');\n }\n\n // The provided httpClient (or the default fetch client) is the base wire;\n // authentication and the optional timeout are layered on top of it. The\n // default credential chain reuses the profile resolved above so that the\n // same profileOptions govern host and authentication alike.\n const base = options.httpClient ?? newFetchHttpClient();\n const credentials =\n options.credentials ?? defaultCredentials({profile: {...profile, host}});\n let httpClient: HttpClient = new AuthHttpClient(base, credentials);\n if (options.timeout !== undefined) {\n httpClient = new TimeoutHttpClient(httpClient, options.timeout);\n }\n\n const accountId = options.accountId ?? profile.accountId;\n const workspaceId = options.workspaceId ?? profile.workspaceId;\n\n return {\n host,\n httpClient,\n ...(accountId !== undefined && {accountId}),\n ...(workspaceId !== undefined && {workspaceId}),\n };\n}\n\nfunction normalizeHost(host: string | undefined): string | undefined {\n const trimmed = host?.trim();\n if (trimmed === undefined || trimmed === '') {\n return undefined;\n }\n const absolute = /^https?:\\/\\//i.test(trimmed)\n ? trimmed\n : `https://${trimmed}`;\n return absolute.replace(/\\/$/, '');\n}\n\n/** Wraps an HttpClient and adds authentication headers to requests. */\nclass AuthHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly credentials: Credentials\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const authHeaders = await this.credentials.authHeaders();\n // Do not modify the original request.\n const headers = new Headers(request.headers);\n for (const h of authHeaders) {\n headers.set(h.key, h.value);\n }\n return this.base.send({...request, headers});\n }\n}\n\n/** Wraps an HttpClient and applies a default timeout to requests. */\nclass TimeoutHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly timeout: number\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const timeoutSignal = AbortSignal.timeout(this.timeout);\n const signal =\n request.signal !== undefined\n ? AbortSignal.any([request.signal, timeoutSignal])\n : timeoutSignal;\n return this.base.send({...request, signal});\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,eAAsB,oBACpB,SAC+B;CAC/B,MAAM,UAAmB,MAAM,QAAQ,QAAQ,eAAe;CAE9D,MAAM,OAAO,cAAc,QAAQ,QAAQ,QAAQ,KAAK;AACxD,KAAI,SAAS,OACX,OAAM,IAAI,MAAM,oBAAoB;CAUtC,IAAI,aAAyB,IAAI,eAHpB,QAAQ,cAAc,oBAAoB,EAErD,QAAQ,eAAe,mBAAmB,EAAC,SAAS;EAAC,GAAG;EAAS;EAAK,EAAC,CAAC,CACR;AAClE,KAAI,QAAQ,YAAY,OACtB,cAAa,IAAI,kBAAkB,YAAY,QAAQ,QAAQ;CAGjE,MAAM,YAAY,QAAQ,aAAa,QAAQ;CAC/C,MAAM,cAAc,QAAQ,eAAe,QAAQ;AAEnD,QAAO;EACL;EACA;EACA,GAAI,cAAc,UAAa,EAAC,WAAU;EAC1C,GAAI,gBAAgB,UAAa,EAAC,aAAY;EAC/C;;AAGH,SAAS,cAAc,MAA8C;CACnE,MAAM,UAAU,MAAM,MAAM;AAC5B,KAAI,YAAY,UAAa,YAAY,GACvC;AAKF,SAHiB,gBAAgB,KAAK,QAAQ,GAC1C,UACA,WAAW,WACC,QAAQ,OAAO,GAAG;;;AAIpC,IAAM,iBAAN,MAA2C;CACzC,YACE,AAAiB,MACjB,AAAiB,aACjB;EAFiB;EACA;;CAGnB,MAAM,KAAK,SAA6C;EACtD,MAAM,cAAc,MAAM,KAAK,YAAY,aAAa;EAExD,MAAM,UAAU,IAAI,QAAQ,QAAQ,QAAQ;AAC5C,OAAK,MAAM,KAAK,YACd,SAAQ,IAAI,EAAE,KAAK,EAAE,MAAM;AAE7B,SAAO,KAAK,KAAK,KAAK;GAAC,GAAG;GAAS;GAAQ,CAAC;;;;AAKhD,IAAM,oBAAN,MAA8C;CAC5C,YACE,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;;CAGnB,MAAM,KAAK,SAA6C;EACtD,MAAM,gBAAgB,YAAY,QAAQ,KAAK,QAAQ;EACvD,MAAM,SACJ,QAAQ,WAAW,SACf,YAAY,IAAI,CAAC,QAAQ,QAAQ,cAAc,CAAC,GAChD;AACN,SAAO,KAAK,KAAK,KAAK;GAAC,GAAG;GAAS;GAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/sdk-settings",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"directory": "packages/settings"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@databricks/sdk-auth": ">=0.
|
|
37
|
-
"@databricks/sdk-core": ">=0.
|
|
38
|
-
"@databricks/sdk-options": ">=0.
|
|
36
|
+
"@databricks/sdk-auth": ">=0.51.0 <1.0.0",
|
|
37
|
+
"@databricks/sdk-core": ">=0.51.0 <1.0.0",
|
|
38
|
+
"@databricks/sdk-options": ">=0.51.0 <1.0.0",
|
|
39
39
|
"@js-temporal/polyfill": "^0.5.0",
|
|
40
40
|
"json-bigint": "^1.0.0",
|
|
41
41
|
"zod": "^4.3.6"
|