@databricks/sdk-lakeview 0.38.0 → 0.40.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/v1/model.js +10 -2
- package/dist/v1/model.js.map +1 -1
- package/package.json +4 -4
package/dist/package.js
CHANGED
package/dist/v1/model.js
CHANGED
|
@@ -121,7 +121,11 @@ const unmarshalSubscriptionSchema = z.object({
|
|
|
121
121
|
schedule_id: z.string().optional(),
|
|
122
122
|
dashboard_id: z.string().optional(),
|
|
123
123
|
subscriber: z.lazy(() => unmarshalSubscription_SubscriberSchema).optional(),
|
|
124
|
-
created_by_user_id: z.union([
|
|
124
|
+
created_by_user_id: z.union([
|
|
125
|
+
z.number(),
|
|
126
|
+
z.bigint(),
|
|
127
|
+
z.string()
|
|
128
|
+
]).transform((v) => BigInt(v)).optional(),
|
|
125
129
|
etag: z.string().optional(),
|
|
126
130
|
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
127
131
|
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
@@ -145,7 +149,11 @@ const unmarshalSubscription_SubscriberSchema = z.object({
|
|
|
145
149
|
destinationSubscriber: d.destination_subscriber
|
|
146
150
|
}));
|
|
147
151
|
const unmarshalSubscription_Subscriber_DestinationSchema = z.object({ destination_id: z.string().optional() }).transform((d) => ({ destinationId: d.destination_id }));
|
|
148
|
-
const unmarshalSubscription_Subscriber_UserSchema = z.object({ user_id: z.union([
|
|
152
|
+
const unmarshalSubscription_Subscriber_UserSchema = z.object({ user_id: z.union([
|
|
153
|
+
z.number(),
|
|
154
|
+
z.bigint(),
|
|
155
|
+
z.string()
|
|
156
|
+
]).transform((v) => BigInt(v)).optional() }).transform((d) => ({ userId: d.user_id }));
|
|
149
157
|
const unmarshalTrashDashboardResponseSchema = z.object({});
|
|
150
158
|
const unmarshalUnpublishDashboardResponseSchema = z.object({});
|
|
151
159
|
const marshalCronScheduleSchema = z.object({
|
package/dist/v1/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const DashboardView = {\n /** Includes summary metadata from the dashboard. */\n DASHBOARD_VIEW_BASIC: 'DASHBOARD_VIEW_BASIC',\n} as const;\nexport type DashboardView =\n | (typeof DashboardView)[keyof typeof DashboardView]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const LifecycleState = {\n /** The dashboard is in an active state (not-trashed). */\n ACTIVE: 'ACTIVE',\n /** The dashboard is in a trashed state. */\n TRASHED: 'TRASHED',\n} as const;\nexport type LifecycleState =\n | (typeof LifecycleState)[keyof typeof LifecycleState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SchedulePauseStatus = {\n UNPAUSED: 'UNPAUSED',\n PAUSED: 'PAUSED',\n} as const;\nexport type SchedulePauseStatus =\n | (typeof SchedulePauseStatus)[keyof typeof SchedulePauseStatus]\n | (string & {});\n\nexport interface AuthorizationDetails {\n /**\n * The type of authorization downscoping policy.\n * Ex: `workspace_rule_set` defines access rules for a specific workspace resource\n */\n type?: string | undefined;\n /**\n * The resource name to which the authorization rule applies.\n * This field is specific to `workspace_rule_set` constraint.\n * Format: `workspaces/{workspace_id}/dashboards/{dashboard_id}`\n */\n resourceName?: string | undefined;\n /** The acl path of the tree store resource resource. */\n resourceLegacyAclPath?: string | undefined;\n /**\n * Represents downscoped permission rules with specific access rights.\n * This field is specific to `workspace_rule_set` constraint.\n */\n grantRules?: AuthorizationDetails_GrantRule[] | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface AuthorizationDetails_GrantRule {\n /**\n * Permission sets for dashboard are defined in\n * iam-common/rbac-common/permission-sets/definitions/TreeStoreBasePermissionSets\n * Ex: `permissionSets/dashboard.runner`\n */\n permissionSet?: string | undefined;\n}\n\nexport interface CreateDashboardRequest {\n dashboard?: Dashboard | undefined;\n /**\n * Sets the default catalog for all datasets in this dashboard.\n * Does not impact table references that use fully qualified catalog names (ex: samples.nyctaxi.trips).\n * Leave blank to keep each dataset’s existing configuration.\n */\n datasetCatalog?: string | undefined;\n /**\n * Sets the default schema for all datasets in this dashboard.\n * Does not impact table references that use fully qualified schema names (ex: nyctaxi.trips).\n * Leave blank to keep each dataset’s existing configuration.\n */\n datasetSchema?: string | undefined;\n}\n\nexport interface CreateScheduleRequest {\n /** The schedule to create. A dashboard is limited to 10 schedules. */\n schedule?: Schedule | undefined;\n}\n\nexport interface CreateSubscriptionRequest {\n /** The subscription to create. A schedule is limited to 100 subscriptions. */\n subscription?: Subscription | undefined;\n}\n\nexport interface CronSchedule {\n /**\n * A cron expression using quartz syntax. EX: `0 0 8 * * ?` represents everyday at 8am.\n * See [Cron Trigger](http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html) for details.\n */\n quartzCronExpression?: string | undefined;\n /**\n * A Java timezone id. The schedule will be resolved with respect to this timezone.\n * See [Java TimeZone](https://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html) for details.\n */\n timezoneId?: string | undefined;\n}\n\nexport interface Dashboard {\n /** UUID identifying the dashboard. */\n dashboardId?: string | undefined;\n /** The display name of the dashboard. */\n displayName?: string | undefined;\n /**\n * The workspace path of the dashboard asset, including the file name.\n * Exported dashboards always have the file extension `.lvdash.json`.\n * This field is excluded in List Dashboards responses.\n */\n path?: string | undefined;\n /** The timestamp of when the dashboard was created. */\n createTime?: Temporal.Instant | undefined;\n /**\n * The timestamp of when the dashboard was last updated by the user.\n * This field is excluded in List Dashboards responses.\n */\n updateTime?: Temporal.Instant | undefined;\n /** The warehouse ID used to run the dashboard. */\n warehouseId?: string | undefined;\n /**\n * The etag for the dashboard. Can be optionally provided on updates to ensure that the dashboard\n * has not been modified since the last read.\n * This field is excluded in List Dashboards responses.\n */\n etag?: string | undefined;\n /**\n * The contents of the dashboard in serialized string form.\n * This field is excluded in List Dashboards responses.\n * Use the [get dashboard API](https://docs.databricks.com/api/workspace/lakeview/get)\n * to retrieve an example response, which includes the `serialized_dashboard` field.\n * This field provides the structure of the JSON string that represents the dashboard's\n * layout and components.\n */\n serializedDashboard?: string | undefined;\n /** The state of the dashboard resource. Used for tracking trashed status. */\n lifecycleState?: LifecycleState | undefined;\n /**\n * The workspace path of the folder containing the dashboard. Includes leading slash and no\n * trailing slash.\n * This field is excluded in List Dashboards responses.\n */\n parentPath?: string | undefined;\n}\n\nexport interface DeleteScheduleRequest {\n /** UUID identifying the schedule. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard to which the schedule belongs. */\n dashboardId?: string | undefined;\n /**\n * The etag for the schedule. Optionally, it can be provided to verify that the schedule has not\n * been modified from its last retrieval.\n */\n etag?: string | undefined;\n}\n\nexport interface DeleteSubscriptionRequest {\n /** UUID identifying the subscription. */\n subscriptionId?: string | undefined;\n /** UUID identifying the schedule which the subscription belongs. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard which the subscription belongs. */\n dashboardId?: string | undefined;\n /**\n * The etag for the subscription. Can be optionally provided to ensure that the subscription has not been\n * modified since the last read.\n */\n etag?: string | undefined;\n}\n\nexport interface GetDashboardRequest {\n /** UUID identifying the dashboard. */\n dashboardId?: string | undefined;\n}\n\nexport interface GetPublishedDashboardRequest {\n /** UUID identifying the published dashboard. */\n dashboardId?: string | undefined;\n}\n\nexport interface GetPublishedDashboardTokenInfoRequest {\n /** UUID identifying the published dashboard. */\n dashboardId?: string | undefined;\n /** Provided external value to be included in the custom claim. */\n externalValue?: string | undefined;\n /** Provided external viewer id to be included in the custom claim. */\n externalViewerId?: string | undefined;\n}\n\nexport interface GetPublishedDashboardTokenInfoResponse {\n /**\n * Custom claim generated from external_value and external_viewer_id.\n * Format: `urn:aibi:external_data:<external_value>:<external_viewer_id>:<dashboard_id>`\n */\n customClaim?: string | undefined;\n /** Scope defining access permissions. */\n scope?: string | undefined;\n /**\n * Authorization constraints for accessing the published dashboard.\n * Currently includes `workspace_rule_set` and could be enriched with `unity_catalog_privileges` before\n * oAuth token generation.\n */\n authorizationDetails?: AuthorizationDetails[] | undefined;\n}\n\nexport interface GetScheduleRequest {\n /** UUID identifying the schedule. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard to which the schedule belongs. */\n dashboardId?: string | undefined;\n}\n\nexport interface GetSubscriptionRequest {\n /** UUID identifying the subscription. */\n subscriptionId?: string | undefined;\n /** UUID identifying the schedule which the subscription belongs. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard which the subscription belongs. */\n dashboardId?: string | undefined;\n}\n\nexport interface ListDashboardsRequest {\n /** The number of dashboards to return per page. */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListDashboards` call.\n * This token can be used to retrieve the subsequent page.\n */\n pageToken?: string | undefined;\n /**\n * The flag to include dashboards located in the trash.\n * If unspecified, only active dashboards will be returned.\n */\n showTrashed?: boolean | undefined;\n /** `DASHBOARD_VIEW_BASIC` only includes summary metadata from the dashboard. */\n view?: DashboardView | undefined;\n}\n\nexport interface ListDashboardsResponse {\n dashboards?: Dashboard[] | undefined;\n /**\n * A token, which can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent dashboards.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListSchedulesRequest {\n /** UUID identifying the dashboard to which the schedules belongs. */\n dashboardId?: string | undefined;\n /** The number of schedules to return per page. */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListSchedules` call.\n * Use this to retrieve the subsequent page.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListSchedulesResponse {\n schedules?: Schedule[] | undefined;\n /**\n * A token that can be used as a `page_token` in subsequent requests to retrieve the next page of results.\n * If this field is omitted, there are no subsequent schedules.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListSubscriptionsRequest {\n /** UUID identifying the dashboard which the subscriptions belongs. */\n dashboardId?: string | undefined;\n /** UUID identifying the schedule which the subscriptions belongs. */\n scheduleId?: string | undefined;\n /** The number of subscriptions to return per page. */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListSubscriptions` call.\n * Use this to retrieve the subsequent page.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListSubscriptionsResponse {\n subscriptions?: Subscription[] | undefined;\n /**\n * A token that can be used as a `page_token` in subsequent requests to retrieve the next page of results.\n * If this field is omitted, there are no subsequent subscriptions.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface MigrateDashboardRequest {\n /** UUID of the dashboard to be migrated. */\n sourceDashboardId?: string | undefined;\n /** Display name for the new Lakeview dashboard. */\n displayName?: string | undefined;\n /** The workspace path of the folder to contain the migrated Lakeview dashboard. */\n parentPath?: string | undefined;\n /**\n * Flag to indicate if mustache parameter syntax ({{ param }}) should be auto-updated\n * to named syntax (:param) when converting datasets in the dashboard.\n */\n updateParameterSyntax?: boolean | undefined;\n}\n\nexport interface PublishDashboardRequest {\n /** UUID identifying the dashboard to be published. */\n dashboardId?: string | undefined;\n /**\n * Flag to indicate if the publisher's credentials should be embedded in the\n * published dashboard. These embedded credentials will be used to execute the\n * published dashboard's queries.\n */\n embedCredentials?: boolean | undefined;\n /**\n * The ID of the warehouse that can be used to override the warehouse which\n * was set in the draft.\n */\n warehouseId?: string | undefined;\n}\n\nexport interface PublishedDashboard {\n /** The display name of the published dashboard. */\n displayName?: string | undefined;\n /** The warehouse ID used to run the published dashboard. */\n warehouseId?: string | undefined;\n /** Indicates whether credentials are embedded in the published dashboard. */\n embedCredentials?: boolean | undefined;\n /** The timestamp of when the published dashboard was last revised. */\n revisionCreateTime?: Temporal.Instant | undefined;\n}\n\n/** Request to revert a dashboard draft to its last published state. */\nexport interface RevertDashboardRequest {\n /** UUID identifying the dashboard. */\n dashboardId?: string | undefined;\n /**\n * The etag for the dashboard. Optionally, it can be provided to verify that the dashboard\n * has not been modified from its last retrieval.\n */\n etag?: string | undefined;\n}\n\n/** Response to revert a dashboard draft to its last published state. */\nexport interface RevertDashboardResponse {\n /** The reverted dashboard. */\n dashboard?: Dashboard | undefined;\n}\n\nexport interface Schedule {\n /** UUID identifying the schedule. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard to which the schedule belongs. */\n dashboardId?: string | undefined;\n /** The cron expression describing the frequency of the periodic refresh for this schedule. */\n cronSchedule?: CronSchedule | undefined;\n /** The status indicates whether this schedule is paused or not. */\n pauseStatus?: SchedulePauseStatus | undefined;\n /** The display name for schedule. */\n displayName?: string | undefined;\n /**\n * The etag for the schedule. Must be left empty on create, must be provided on updates to ensure\n * that the schedule has not been modified since the last read, and can be optionally provided on delete.\n */\n etag?: string | undefined;\n /** A timestamp indicating when the schedule was created. */\n createTime?: Temporal.Instant | undefined;\n /** A timestamp indicating when the schedule was last updated. */\n updateTime?: Temporal.Instant | undefined;\n /** The warehouse id to run the dashboard with for the schedule. */\n warehouseId?: string | undefined;\n}\n\nexport interface Subscription {\n /** UUID identifying the subscription. */\n subscriptionId?: string | undefined;\n /** UUID identifying the schedule to which the subscription belongs. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard to which the subscription belongs. */\n dashboardId?: string | undefined;\n /** Subscriber details for users and destinations to be added as subscribers to the schedule. */\n subscriber?: Subscription_Subscriber | undefined;\n /** UserId of the user who adds subscribers (users or notification destinations) to the dashboard's schedule. */\n createdByUserId?: bigint | undefined;\n /**\n * The etag for the subscription. Must be left empty on create, can be optionally provided on delete\n * to ensure that the subscription has not been deleted since the last read.\n */\n etag?: string | undefined;\n /** A timestamp indicating when the subscription was created. */\n createTime?: Temporal.Instant | undefined;\n /** A timestamp indicating when the subscription was last updated. */\n updateTime?: Temporal.Instant | undefined;\n /**\n * Controls whether notifications are sent to the subscriber for scheduled dashboard refreshes.\n * If not defined, defaults to false in the backend to match the current behavior (refresh and notify)\n */\n skipNotify?: boolean | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface Subscription_Subscriber {\n /**\n * The user to receive the subscription email.\n * This parameter is mutually exclusive with `destination_subscriber`.\n */\n userSubscriber?: Subscription_Subscriber_User | undefined;\n /**\n * The destination to receive the subscription email.\n * This parameter is mutually exclusive with `user_subscriber`.\n */\n destinationSubscriber?: Subscription_Subscriber_Destination | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface Subscription_Subscriber_Destination {\n /** The canonical identifier of the destination to receive email notification. */\n destinationId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface Subscription_Subscriber_User {\n /** UserId of the subscriber. */\n userId?: bigint | undefined;\n}\n\nexport interface TrashDashboardRequest {\n /** UUID identifying the dashboard. */\n dashboardId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface TrashDashboardResponse {}\n\nexport interface UnpublishDashboardRequest {\n /** UUID identifying the published dashboard. */\n dashboardId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface UnpublishDashboardResponse {}\n\nexport interface UpdateDashboardRequest {\n dashboard?: Dashboard | undefined;\n /**\n * Sets the default catalog for all datasets in this dashboard.\n * Does not impact table references that use fully qualified catalog names (ex: samples.nyctaxi.trips).\n * Leave blank to keep each dataset’s existing configuration.\n */\n datasetCatalog?: string | undefined;\n /**\n * Sets the default schema for all datasets in this dashboard.\n * Does not impact table references that use fully qualified schema names (ex: nyctaxi.trips).\n * Leave blank to keep each dataset’s existing configuration.\n */\n datasetSchema?: string | undefined;\n}\n\nexport interface UpdateScheduleRequest {\n /** The schedule to update. */\n schedule?: Schedule | undefined;\n}\n\nexport const unmarshalAuthorizationDetailsSchema: z.ZodType<AuthorizationDetails> =\n z\n .object({\n type: z.string().optional(),\n resource_name: z.string().optional(),\n resource_legacy_acl_path: z.string().optional(),\n grant_rules: z\n .array(z.lazy(() => unmarshalAuthorizationDetails_GrantRuleSchema))\n .optional(),\n })\n .transform(d => ({\n type: d.type,\n resourceName: d.resource_name,\n resourceLegacyAclPath: d.resource_legacy_acl_path,\n grantRules: d.grant_rules,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalAuthorizationDetails_GrantRuleSchema: z.ZodType<AuthorizationDetails_GrantRule> =\n z\n .object({\n permission_set: z.string().optional(),\n })\n .transform(d => ({\n permissionSet: d.permission_set,\n }));\n\nexport const unmarshalCronScheduleSchema: z.ZodType<CronSchedule> = z\n .object({\n quartz_cron_expression: z.string().optional(),\n timezone_id: z.string().optional(),\n })\n .transform(d => ({\n quartzCronExpression: d.quartz_cron_expression,\n timezoneId: d.timezone_id,\n }));\n\nexport const unmarshalDashboardSchema: z.ZodType<Dashboard> = z\n .object({\n dashboard_id: z.string().optional(),\n display_name: z.string().optional(),\n path: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n warehouse_id: z.string().optional(),\n etag: z.string().optional(),\n serialized_dashboard: z.string().optional(),\n lifecycle_state: z.string().optional(),\n parent_path: z.string().optional(),\n })\n .transform(d => ({\n dashboardId: d.dashboard_id,\n displayName: d.display_name,\n path: d.path,\n createTime: d.create_time,\n updateTime: d.update_time,\n warehouseId: d.warehouse_id,\n etag: d.etag,\n serializedDashboard: d.serialized_dashboard,\n lifecycleState: d.lifecycle_state,\n parentPath: d.parent_path,\n }));\n\nexport const unmarshalGetPublishedDashboardTokenInfoResponseSchema: z.ZodType<GetPublishedDashboardTokenInfoResponse> =\n z\n .object({\n custom_claim: z.string().optional(),\n scope: z.string().optional(),\n authorization_details: z\n .array(z.lazy(() => unmarshalAuthorizationDetailsSchema))\n .optional(),\n })\n .transform(d => ({\n customClaim: d.custom_claim,\n scope: d.scope,\n authorizationDetails: d.authorization_details,\n }));\n\nexport const unmarshalListDashboardsResponseSchema: z.ZodType<ListDashboardsResponse> =\n z\n .object({\n dashboards: z.array(z.lazy(() => unmarshalDashboardSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n dashboards: d.dashboards,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSchedulesResponseSchema: z.ZodType<ListSchedulesResponse> =\n z\n .object({\n schedules: z.array(z.lazy(() => unmarshalScheduleSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n schedules: d.schedules,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSubscriptionsResponseSchema: z.ZodType<ListSubscriptionsResponse> =\n z\n .object({\n subscriptions: z\n .array(z.lazy(() => unmarshalSubscriptionSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n subscriptions: d.subscriptions,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalPublishedDashboardSchema: z.ZodType<PublishedDashboard> =\n z\n .object({\n display_name: z.string().optional(),\n warehouse_id: z.string().optional(),\n embed_credentials: z.boolean().optional(),\n revision_create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n displayName: d.display_name,\n warehouseId: d.warehouse_id,\n embedCredentials: d.embed_credentials,\n revisionCreateTime: d.revision_create_time,\n }));\n\nexport const unmarshalRevertDashboardResponseSchema: z.ZodType<RevertDashboardResponse> =\n z\n .object({\n dashboard: z.lazy(() => unmarshalDashboardSchema).optional(),\n })\n .transform(d => ({\n dashboard: d.dashboard,\n }));\n\nexport const unmarshalScheduleSchema: z.ZodType<Schedule> = z\n .object({\n schedule_id: z.string().optional(),\n dashboard_id: z.string().optional(),\n cron_schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),\n pause_status: z.string().optional(),\n display_name: z.string().optional(),\n etag: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n warehouse_id: z.string().optional(),\n })\n .transform(d => ({\n scheduleId: d.schedule_id,\n dashboardId: d.dashboard_id,\n cronSchedule: d.cron_schedule,\n pauseStatus: d.pause_status,\n displayName: d.display_name,\n etag: d.etag,\n createTime: d.create_time,\n updateTime: d.update_time,\n warehouseId: d.warehouse_id,\n }));\n\nexport const unmarshalSubscriptionSchema: z.ZodType<Subscription> = z\n .object({\n subscription_id: z.string().optional(),\n schedule_id: z.string().optional(),\n dashboard_id: z.string().optional(),\n subscriber: z.lazy(() => unmarshalSubscription_SubscriberSchema).optional(),\n created_by_user_id: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n etag: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n skip_notify: z.boolean().optional(),\n })\n .transform(d => ({\n subscriptionId: d.subscription_id,\n scheduleId: d.schedule_id,\n dashboardId: d.dashboard_id,\n subscriber: d.subscriber,\n createdByUserId: d.created_by_user_id,\n etag: d.etag,\n createTime: d.create_time,\n updateTime: d.update_time,\n skipNotify: d.skip_notify,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalSubscription_SubscriberSchema: z.ZodType<Subscription_Subscriber> =\n z\n .object({\n user_subscriber: z\n .lazy(() => unmarshalSubscription_Subscriber_UserSchema)\n .optional(),\n destination_subscriber: z\n .lazy(() => unmarshalSubscription_Subscriber_DestinationSchema)\n .optional(),\n })\n .transform(d => ({\n userSubscriber: d.user_subscriber,\n destinationSubscriber: d.destination_subscriber,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalSubscription_Subscriber_DestinationSchema: z.ZodType<Subscription_Subscriber_Destination> =\n z\n .object({\n destination_id: z.string().optional(),\n })\n .transform(d => ({\n destinationId: d.destination_id,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalSubscription_Subscriber_UserSchema: z.ZodType<Subscription_Subscriber_User> =\n z\n .object({\n user_id: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n })\n .transform(d => ({\n userId: d.user_id,\n }));\n\nexport const unmarshalTrashDashboardResponseSchema: z.ZodType<TrashDashboardResponse> =\n z.object({});\n\nexport const unmarshalUnpublishDashboardResponseSchema: z.ZodType<UnpublishDashboardResponse> =\n z.object({});\n\nexport const marshalCronScheduleSchema: z.ZodType = z\n .object({\n quartzCronExpression: z.string().optional(),\n timezoneId: z.string().optional(),\n })\n .transform(d => ({\n quartz_cron_expression: d.quartzCronExpression,\n timezone_id: d.timezoneId,\n }));\n\nexport const marshalDashboardSchema: z.ZodType = z\n .object({\n dashboardId: z.string().optional(),\n displayName: z.string().optional(),\n path: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n warehouseId: z.string().optional(),\n etag: z.string().optional(),\n serializedDashboard: z.string().optional(),\n lifecycleState: z.string().optional(),\n parentPath: z.string().optional(),\n })\n .transform(d => ({\n dashboard_id: d.dashboardId,\n display_name: d.displayName,\n path: d.path,\n create_time: d.createTime,\n update_time: d.updateTime,\n warehouse_id: d.warehouseId,\n etag: d.etag,\n serialized_dashboard: d.serializedDashboard,\n lifecycle_state: d.lifecycleState,\n parent_path: d.parentPath,\n }));\n\nexport const marshalMigrateDashboardRequestSchema: z.ZodType = z\n .object({\n sourceDashboardId: z.string().optional(),\n displayName: z.string().optional(),\n parentPath: z.string().optional(),\n updateParameterSyntax: z.boolean().optional(),\n })\n .transform(d => ({\n source_dashboard_id: d.sourceDashboardId,\n display_name: d.displayName,\n parent_path: d.parentPath,\n update_parameter_syntax: d.updateParameterSyntax,\n }));\n\nexport const marshalPublishDashboardRequestSchema: z.ZodType = z\n .object({\n dashboardId: z.string().optional(),\n embedCredentials: z.boolean().optional(),\n warehouseId: z.string().optional(),\n })\n .transform(d => ({\n dashboard_id: d.dashboardId,\n embed_credentials: d.embedCredentials,\n warehouse_id: d.warehouseId,\n }));\n\nexport const marshalRevertDashboardRequestSchema: z.ZodType = z\n .object({\n dashboardId: z.string().optional(),\n etag: z.string().optional(),\n })\n .transform(d => ({\n dashboard_id: d.dashboardId,\n etag: d.etag,\n }));\n\nexport const marshalScheduleSchema: z.ZodType = z\n .object({\n scheduleId: z.string().optional(),\n dashboardId: z.string().optional(),\n cronSchedule: z.lazy(() => marshalCronScheduleSchema).optional(),\n pauseStatus: z.string().optional(),\n displayName: z.string().optional(),\n etag: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n warehouseId: z.string().optional(),\n })\n .transform(d => ({\n schedule_id: d.scheduleId,\n dashboard_id: d.dashboardId,\n cron_schedule: d.cronSchedule,\n pause_status: d.pauseStatus,\n display_name: d.displayName,\n etag: d.etag,\n create_time: d.createTime,\n update_time: d.updateTime,\n warehouse_id: d.warehouseId,\n }));\n\nexport const marshalSubscriptionSchema: z.ZodType = z\n .object({\n subscriptionId: z.string().optional(),\n scheduleId: z.string().optional(),\n dashboardId: z.string().optional(),\n subscriber: z.lazy(() => marshalSubscription_SubscriberSchema).optional(),\n createdByUserId: z.bigint().optional(),\n etag: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n skipNotify: z.boolean().optional(),\n })\n .transform(d => ({\n subscription_id: d.subscriptionId,\n schedule_id: d.scheduleId,\n dashboard_id: d.dashboardId,\n subscriber: d.subscriber,\n created_by_user_id: d.createdByUserId,\n etag: d.etag,\n create_time: d.createTime,\n update_time: d.updateTime,\n skip_notify: d.skipNotify,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalSubscription_SubscriberSchema: z.ZodType = z\n .object({\n userSubscriber: z\n .lazy(() => marshalSubscription_Subscriber_UserSchema)\n .optional(),\n destinationSubscriber: z\n .lazy(() => marshalSubscription_Subscriber_DestinationSchema)\n .optional(),\n })\n .transform(d => ({\n user_subscriber: d.userSubscriber,\n destination_subscriber: d.destinationSubscriber,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalSubscription_Subscriber_DestinationSchema: z.ZodType = z\n .object({\n destinationId: z.string().optional(),\n })\n .transform(d => ({\n destination_id: d.destinationId,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalSubscription_Subscriber_UserSchema: z.ZodType = z\n .object({\n userId: z.bigint().optional(),\n })\n .transform(d => ({\n user_id: d.userId,\n }));\n"],"mappings":";;;;AAMA,MAAa,gBAAgB,EAE3B,sBAAsB,wBACvB;AAMD,MAAa,iBAAiB;CAE5B,QAAQ;CAER,SAAS;CACV;AAMD,MAAa,sBAAsB;CACjC,UAAU;CACV,QAAQ;CACT;AAubD,MAAa,sCACX,EACG,OAAO;CACN,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,0BAA0B,EAAE,QAAQ,CAAC,UAAU;CAC/C,aAAa,EACV,MAAM,EAAE,WAAW,8CAA8C,CAAC,CAClE,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,cAAc,EAAE;CAChB,uBAAuB,EAAE;CACzB,YAAY,EAAE;CACf,EAAE;AAGP,MAAa,gDACX,EACG,OAAO,EACN,gBAAgB,EAAE,QAAQ,CAAC,UAAU,EACtC,CAAC,CACD,WAAU,OAAM,EAC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,wBAAwB,EAAE;CAC3B,EAAE;AAGL,MAAa,mDAA8D,EACxE,OAAO,EACN,eAAe,EAAE,QAAQ,CAAC,UAAU,EACrC,CAAC,CACD,WAAU,OAAM,EACf,gBAAgB,EAAE,eACnB,EAAE;AAGL,MAAa,4CAAuD,EACjE,OAAO,EACN,QAAQ,EAAE,QAAQ,CAAC,UAAU,EAC9B,CAAC,CACD,WAAU,OAAM,EACf,SAAS,EAAE,QACZ,EAAE"}
|
|
1
|
+
{"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const DashboardView = {\n /** Includes summary metadata from the dashboard. */\n DASHBOARD_VIEW_BASIC: 'DASHBOARD_VIEW_BASIC',\n} as const;\nexport type DashboardView =\n | (typeof DashboardView)[keyof typeof DashboardView]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const LifecycleState = {\n /** The dashboard is in an active state (not-trashed). */\n ACTIVE: 'ACTIVE',\n /** The dashboard is in a trashed state. */\n TRASHED: 'TRASHED',\n} as const;\nexport type LifecycleState =\n | (typeof LifecycleState)[keyof typeof LifecycleState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SchedulePauseStatus = {\n UNPAUSED: 'UNPAUSED',\n PAUSED: 'PAUSED',\n} as const;\nexport type SchedulePauseStatus =\n | (typeof SchedulePauseStatus)[keyof typeof SchedulePauseStatus]\n | (string & {});\n\nexport interface AuthorizationDetails {\n /**\n * The type of authorization downscoping policy.\n * Ex: `workspace_rule_set` defines access rules for a specific workspace resource\n */\n type?: string | undefined;\n /**\n * The resource name to which the authorization rule applies.\n * This field is specific to `workspace_rule_set` constraint.\n * Format: `workspaces/{workspace_id}/dashboards/{dashboard_id}`\n */\n resourceName?: string | undefined;\n /** The acl path of the tree store resource resource. */\n resourceLegacyAclPath?: string | undefined;\n /**\n * Represents downscoped permission rules with specific access rights.\n * This field is specific to `workspace_rule_set` constraint.\n */\n grantRules?: AuthorizationDetails_GrantRule[] | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface AuthorizationDetails_GrantRule {\n /**\n * Permission sets for dashboard are defined in\n * iam-common/rbac-common/permission-sets/definitions/TreeStoreBasePermissionSets\n * Ex: `permissionSets/dashboard.runner`\n */\n permissionSet?: string | undefined;\n}\n\nexport interface CreateDashboardRequest {\n dashboard?: Dashboard | undefined;\n /**\n * Sets the default catalog for all datasets in this dashboard.\n * Does not impact table references that use fully qualified catalog names (ex: samples.nyctaxi.trips).\n * Leave blank to keep each dataset’s existing configuration.\n */\n datasetCatalog?: string | undefined;\n /**\n * Sets the default schema for all datasets in this dashboard.\n * Does not impact table references that use fully qualified schema names (ex: nyctaxi.trips).\n * Leave blank to keep each dataset’s existing configuration.\n */\n datasetSchema?: string | undefined;\n}\n\nexport interface CreateScheduleRequest {\n /** The schedule to create. A dashboard is limited to 10 schedules. */\n schedule?: Schedule | undefined;\n}\n\nexport interface CreateSubscriptionRequest {\n /** The subscription to create. A schedule is limited to 100 subscriptions. */\n subscription?: Subscription | undefined;\n}\n\nexport interface CronSchedule {\n /**\n * A cron expression using quartz syntax. EX: `0 0 8 * * ?` represents everyday at 8am.\n * See [Cron Trigger](http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html) for details.\n */\n quartzCronExpression?: string | undefined;\n /**\n * A Java timezone id. The schedule will be resolved with respect to this timezone.\n * See [Java TimeZone](https://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html) for details.\n */\n timezoneId?: string | undefined;\n}\n\nexport interface Dashboard {\n /** UUID identifying the dashboard. */\n dashboardId?: string | undefined;\n /** The display name of the dashboard. */\n displayName?: string | undefined;\n /**\n * The workspace path of the dashboard asset, including the file name.\n * Exported dashboards always have the file extension `.lvdash.json`.\n * This field is excluded in List Dashboards responses.\n */\n path?: string | undefined;\n /** The timestamp of when the dashboard was created. */\n createTime?: Temporal.Instant | undefined;\n /**\n * The timestamp of when the dashboard was last updated by the user.\n * This field is excluded in List Dashboards responses.\n */\n updateTime?: Temporal.Instant | undefined;\n /** The warehouse ID used to run the dashboard. */\n warehouseId?: string | undefined;\n /**\n * The etag for the dashboard. Can be optionally provided on updates to ensure that the dashboard\n * has not been modified since the last read.\n * This field is excluded in List Dashboards responses.\n */\n etag?: string | undefined;\n /**\n * The contents of the dashboard in serialized string form.\n * This field is excluded in List Dashboards responses.\n * Use the [get dashboard API](https://docs.databricks.com/api/workspace/lakeview/get)\n * to retrieve an example response, which includes the `serialized_dashboard` field.\n * This field provides the structure of the JSON string that represents the dashboard's\n * layout and components.\n */\n serializedDashboard?: string | undefined;\n /** The state of the dashboard resource. Used for tracking trashed status. */\n lifecycleState?: LifecycleState | undefined;\n /**\n * The workspace path of the folder containing the dashboard. Includes leading slash and no\n * trailing slash.\n * This field is excluded in List Dashboards responses.\n */\n parentPath?: string | undefined;\n}\n\nexport interface DeleteScheduleRequest {\n /** UUID identifying the schedule. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard to which the schedule belongs. */\n dashboardId?: string | undefined;\n /**\n * The etag for the schedule. Optionally, it can be provided to verify that the schedule has not\n * been modified from its last retrieval.\n */\n etag?: string | undefined;\n}\n\nexport interface DeleteSubscriptionRequest {\n /** UUID identifying the subscription. */\n subscriptionId?: string | undefined;\n /** UUID identifying the schedule which the subscription belongs. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard which the subscription belongs. */\n dashboardId?: string | undefined;\n /**\n * The etag for the subscription. Can be optionally provided to ensure that the subscription has not been\n * modified since the last read.\n */\n etag?: string | undefined;\n}\n\nexport interface GetDashboardRequest {\n /** UUID identifying the dashboard. */\n dashboardId?: string | undefined;\n}\n\nexport interface GetPublishedDashboardRequest {\n /** UUID identifying the published dashboard. */\n dashboardId?: string | undefined;\n}\n\nexport interface GetPublishedDashboardTokenInfoRequest {\n /** UUID identifying the published dashboard. */\n dashboardId?: string | undefined;\n /** Provided external value to be included in the custom claim. */\n externalValue?: string | undefined;\n /** Provided external viewer id to be included in the custom claim. */\n externalViewerId?: string | undefined;\n}\n\nexport interface GetPublishedDashboardTokenInfoResponse {\n /**\n * Custom claim generated from external_value and external_viewer_id.\n * Format: `urn:aibi:external_data:<external_value>:<external_viewer_id>:<dashboard_id>`\n */\n customClaim?: string | undefined;\n /** Scope defining access permissions. */\n scope?: string | undefined;\n /**\n * Authorization constraints for accessing the published dashboard.\n * Currently includes `workspace_rule_set` and could be enriched with `unity_catalog_privileges` before\n * oAuth token generation.\n */\n authorizationDetails?: AuthorizationDetails[] | undefined;\n}\n\nexport interface GetScheduleRequest {\n /** UUID identifying the schedule. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard to which the schedule belongs. */\n dashboardId?: string | undefined;\n}\n\nexport interface GetSubscriptionRequest {\n /** UUID identifying the subscription. */\n subscriptionId?: string | undefined;\n /** UUID identifying the schedule which the subscription belongs. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard which the subscription belongs. */\n dashboardId?: string | undefined;\n}\n\nexport interface ListDashboardsRequest {\n /** The number of dashboards to return per page. */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListDashboards` call.\n * This token can be used to retrieve the subsequent page.\n */\n pageToken?: string | undefined;\n /**\n * The flag to include dashboards located in the trash.\n * If unspecified, only active dashboards will be returned.\n */\n showTrashed?: boolean | undefined;\n /** `DASHBOARD_VIEW_BASIC` only includes summary metadata from the dashboard. */\n view?: DashboardView | undefined;\n}\n\nexport interface ListDashboardsResponse {\n dashboards?: Dashboard[] | undefined;\n /**\n * A token, which can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent dashboards.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListSchedulesRequest {\n /** UUID identifying the dashboard to which the schedules belongs. */\n dashboardId?: string | undefined;\n /** The number of schedules to return per page. */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListSchedules` call.\n * Use this to retrieve the subsequent page.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListSchedulesResponse {\n schedules?: Schedule[] | undefined;\n /**\n * A token that can be used as a `page_token` in subsequent requests to retrieve the next page of results.\n * If this field is omitted, there are no subsequent schedules.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListSubscriptionsRequest {\n /** UUID identifying the dashboard which the subscriptions belongs. */\n dashboardId?: string | undefined;\n /** UUID identifying the schedule which the subscriptions belongs. */\n scheduleId?: string | undefined;\n /** The number of subscriptions to return per page. */\n pageSize?: number | undefined;\n /**\n * A page token, received from a previous `ListSubscriptions` call.\n * Use this to retrieve the subsequent page.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListSubscriptionsResponse {\n subscriptions?: Subscription[] | undefined;\n /**\n * A token that can be used as a `page_token` in subsequent requests to retrieve the next page of results.\n * If this field is omitted, there are no subsequent subscriptions.\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface MigrateDashboardRequest {\n /** UUID of the dashboard to be migrated. */\n sourceDashboardId?: string | undefined;\n /** Display name for the new Lakeview dashboard. */\n displayName?: string | undefined;\n /** The workspace path of the folder to contain the migrated Lakeview dashboard. */\n parentPath?: string | undefined;\n /**\n * Flag to indicate if mustache parameter syntax ({{ param }}) should be auto-updated\n * to named syntax (:param) when converting datasets in the dashboard.\n */\n updateParameterSyntax?: boolean | undefined;\n}\n\nexport interface PublishDashboardRequest {\n /** UUID identifying the dashboard to be published. */\n dashboardId?: string | undefined;\n /**\n * Flag to indicate if the publisher's credentials should be embedded in the\n * published dashboard. These embedded credentials will be used to execute the\n * published dashboard's queries.\n */\n embedCredentials?: boolean | undefined;\n /**\n * The ID of the warehouse that can be used to override the warehouse which\n * was set in the draft.\n */\n warehouseId?: string | undefined;\n}\n\nexport interface PublishedDashboard {\n /** The display name of the published dashboard. */\n displayName?: string | undefined;\n /** The warehouse ID used to run the published dashboard. */\n warehouseId?: string | undefined;\n /** Indicates whether credentials are embedded in the published dashboard. */\n embedCredentials?: boolean | undefined;\n /** The timestamp of when the published dashboard was last revised. */\n revisionCreateTime?: Temporal.Instant | undefined;\n}\n\n/** Request to revert a dashboard draft to its last published state. */\nexport interface RevertDashboardRequest {\n /** UUID identifying the dashboard. */\n dashboardId?: string | undefined;\n /**\n * The etag for the dashboard. Optionally, it can be provided to verify that the dashboard\n * has not been modified from its last retrieval.\n */\n etag?: string | undefined;\n}\n\n/** Response to revert a dashboard draft to its last published state. */\nexport interface RevertDashboardResponse {\n /** The reverted dashboard. */\n dashboard?: Dashboard | undefined;\n}\n\nexport interface Schedule {\n /** UUID identifying the schedule. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard to which the schedule belongs. */\n dashboardId?: string | undefined;\n /** The cron expression describing the frequency of the periodic refresh for this schedule. */\n cronSchedule?: CronSchedule | undefined;\n /** The status indicates whether this schedule is paused or not. */\n pauseStatus?: SchedulePauseStatus | undefined;\n /** The display name for schedule. */\n displayName?: string | undefined;\n /**\n * The etag for the schedule. Must be left empty on create, must be provided on updates to ensure\n * that the schedule has not been modified since the last read, and can be optionally provided on delete.\n */\n etag?: string | undefined;\n /** A timestamp indicating when the schedule was created. */\n createTime?: Temporal.Instant | undefined;\n /** A timestamp indicating when the schedule was last updated. */\n updateTime?: Temporal.Instant | undefined;\n /** The warehouse id to run the dashboard with for the schedule. */\n warehouseId?: string | undefined;\n}\n\nexport interface Subscription {\n /** UUID identifying the subscription. */\n subscriptionId?: string | undefined;\n /** UUID identifying the schedule to which the subscription belongs. */\n scheduleId?: string | undefined;\n /** UUID identifying the dashboard to which the subscription belongs. */\n dashboardId?: string | undefined;\n /** Subscriber details for users and destinations to be added as subscribers to the schedule. */\n subscriber?: Subscription_Subscriber | undefined;\n /** UserId of the user who adds subscribers (users or notification destinations) to the dashboard's schedule. */\n createdByUserId?: bigint | undefined;\n /**\n * The etag for the subscription. Must be left empty on create, can be optionally provided on delete\n * to ensure that the subscription has not been deleted since the last read.\n */\n etag?: string | undefined;\n /** A timestamp indicating when the subscription was created. */\n createTime?: Temporal.Instant | undefined;\n /** A timestamp indicating when the subscription was last updated. */\n updateTime?: Temporal.Instant | undefined;\n /**\n * Controls whether notifications are sent to the subscriber for scheduled dashboard refreshes.\n * If not defined, defaults to false in the backend to match the current behavior (refresh and notify)\n */\n skipNotify?: boolean | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface Subscription_Subscriber {\n /**\n * The user to receive the subscription email.\n * This parameter is mutually exclusive with `destination_subscriber`.\n */\n userSubscriber?: Subscription_Subscriber_User | undefined;\n /**\n * The destination to receive the subscription email.\n * This parameter is mutually exclusive with `user_subscriber`.\n */\n destinationSubscriber?: Subscription_Subscriber_Destination | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface Subscription_Subscriber_Destination {\n /** The canonical identifier of the destination to receive email notification. */\n destinationId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface Subscription_Subscriber_User {\n /** UserId of the subscriber. */\n userId?: bigint | undefined;\n}\n\nexport interface TrashDashboardRequest {\n /** UUID identifying the dashboard. */\n dashboardId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface TrashDashboardResponse {}\n\nexport interface UnpublishDashboardRequest {\n /** UUID identifying the published dashboard. */\n dashboardId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface UnpublishDashboardResponse {}\n\nexport interface UpdateDashboardRequest {\n dashboard?: Dashboard | undefined;\n /**\n * Sets the default catalog for all datasets in this dashboard.\n * Does not impact table references that use fully qualified catalog names (ex: samples.nyctaxi.trips).\n * Leave blank to keep each dataset’s existing configuration.\n */\n datasetCatalog?: string | undefined;\n /**\n * Sets the default schema for all datasets in this dashboard.\n * Does not impact table references that use fully qualified schema names (ex: nyctaxi.trips).\n * Leave blank to keep each dataset’s existing configuration.\n */\n datasetSchema?: string | undefined;\n}\n\nexport interface UpdateScheduleRequest {\n /** The schedule to update. */\n schedule?: Schedule | undefined;\n}\n\nexport const unmarshalAuthorizationDetailsSchema: z.ZodType<AuthorizationDetails> =\n z\n .object({\n type: z.string().optional(),\n resource_name: z.string().optional(),\n resource_legacy_acl_path: z.string().optional(),\n grant_rules: z\n .array(z.lazy(() => unmarshalAuthorizationDetails_GrantRuleSchema))\n .optional(),\n })\n .transform(d => ({\n type: d.type,\n resourceName: d.resource_name,\n resourceLegacyAclPath: d.resource_legacy_acl_path,\n grantRules: d.grant_rules,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalAuthorizationDetails_GrantRuleSchema: z.ZodType<AuthorizationDetails_GrantRule> =\n z\n .object({\n permission_set: z.string().optional(),\n })\n .transform(d => ({\n permissionSet: d.permission_set,\n }));\n\nexport const unmarshalCronScheduleSchema: z.ZodType<CronSchedule> = z\n .object({\n quartz_cron_expression: z.string().optional(),\n timezone_id: z.string().optional(),\n })\n .transform(d => ({\n quartzCronExpression: d.quartz_cron_expression,\n timezoneId: d.timezone_id,\n }));\n\nexport const unmarshalDashboardSchema: z.ZodType<Dashboard> = z\n .object({\n dashboard_id: z.string().optional(),\n display_name: z.string().optional(),\n path: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n warehouse_id: z.string().optional(),\n etag: z.string().optional(),\n serialized_dashboard: z.string().optional(),\n lifecycle_state: z.string().optional(),\n parent_path: z.string().optional(),\n })\n .transform(d => ({\n dashboardId: d.dashboard_id,\n displayName: d.display_name,\n path: d.path,\n createTime: d.create_time,\n updateTime: d.update_time,\n warehouseId: d.warehouse_id,\n etag: d.etag,\n serializedDashboard: d.serialized_dashboard,\n lifecycleState: d.lifecycle_state,\n parentPath: d.parent_path,\n }));\n\nexport const unmarshalGetPublishedDashboardTokenInfoResponseSchema: z.ZodType<GetPublishedDashboardTokenInfoResponse> =\n z\n .object({\n custom_claim: z.string().optional(),\n scope: z.string().optional(),\n authorization_details: z\n .array(z.lazy(() => unmarshalAuthorizationDetailsSchema))\n .optional(),\n })\n .transform(d => ({\n customClaim: d.custom_claim,\n scope: d.scope,\n authorizationDetails: d.authorization_details,\n }));\n\nexport const unmarshalListDashboardsResponseSchema: z.ZodType<ListDashboardsResponse> =\n z\n .object({\n dashboards: z.array(z.lazy(() => unmarshalDashboardSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n dashboards: d.dashboards,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSchedulesResponseSchema: z.ZodType<ListSchedulesResponse> =\n z\n .object({\n schedules: z.array(z.lazy(() => unmarshalScheduleSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n schedules: d.schedules,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSubscriptionsResponseSchema: z.ZodType<ListSubscriptionsResponse> =\n z\n .object({\n subscriptions: z\n .array(z.lazy(() => unmarshalSubscriptionSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n subscriptions: d.subscriptions,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalPublishedDashboardSchema: z.ZodType<PublishedDashboard> =\n z\n .object({\n display_name: z.string().optional(),\n warehouse_id: z.string().optional(),\n embed_credentials: z.boolean().optional(),\n revision_create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n displayName: d.display_name,\n warehouseId: d.warehouse_id,\n embedCredentials: d.embed_credentials,\n revisionCreateTime: d.revision_create_time,\n }));\n\nexport const unmarshalRevertDashboardResponseSchema: z.ZodType<RevertDashboardResponse> =\n z\n .object({\n dashboard: z.lazy(() => unmarshalDashboardSchema).optional(),\n })\n .transform(d => ({\n dashboard: d.dashboard,\n }));\n\nexport const unmarshalScheduleSchema: z.ZodType<Schedule> = z\n .object({\n schedule_id: z.string().optional(),\n dashboard_id: z.string().optional(),\n cron_schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),\n pause_status: z.string().optional(),\n display_name: z.string().optional(),\n etag: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n warehouse_id: z.string().optional(),\n })\n .transform(d => ({\n scheduleId: d.schedule_id,\n dashboardId: d.dashboard_id,\n cronSchedule: d.cron_schedule,\n pauseStatus: d.pause_status,\n displayName: d.display_name,\n etag: d.etag,\n createTime: d.create_time,\n updateTime: d.update_time,\n warehouseId: d.warehouse_id,\n }));\n\nexport const unmarshalSubscriptionSchema: z.ZodType<Subscription> = z\n .object({\n subscription_id: z.string().optional(),\n schedule_id: z.string().optional(),\n dashboard_id: z.string().optional(),\n subscriber: z.lazy(() => unmarshalSubscription_SubscriberSchema).optional(),\n created_by_user_id: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n etag: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n skip_notify: z.boolean().optional(),\n })\n .transform(d => ({\n subscriptionId: d.subscription_id,\n scheduleId: d.schedule_id,\n dashboardId: d.dashboard_id,\n subscriber: d.subscriber,\n createdByUserId: d.created_by_user_id,\n etag: d.etag,\n createTime: d.create_time,\n updateTime: d.update_time,\n skipNotify: d.skip_notify,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalSubscription_SubscriberSchema: z.ZodType<Subscription_Subscriber> =\n z\n .object({\n user_subscriber: z\n .lazy(() => unmarshalSubscription_Subscriber_UserSchema)\n .optional(),\n destination_subscriber: z\n .lazy(() => unmarshalSubscription_Subscriber_DestinationSchema)\n .optional(),\n })\n .transform(d => ({\n userSubscriber: d.user_subscriber,\n destinationSubscriber: d.destination_subscriber,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalSubscription_Subscriber_DestinationSchema: z.ZodType<Subscription_Subscriber_Destination> =\n z\n .object({\n destination_id: z.string().optional(),\n })\n .transform(d => ({\n destinationId: d.destination_id,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalSubscription_Subscriber_UserSchema: z.ZodType<Subscription_Subscriber_User> =\n z\n .object({\n user_id: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n })\n .transform(d => ({\n userId: d.user_id,\n }));\n\nexport const unmarshalTrashDashboardResponseSchema: z.ZodType<TrashDashboardResponse> =\n z.object({});\n\nexport const unmarshalUnpublishDashboardResponseSchema: z.ZodType<UnpublishDashboardResponse> =\n z.object({});\n\nexport const marshalCronScheduleSchema: z.ZodType = z\n .object({\n quartzCronExpression: z.string().optional(),\n timezoneId: z.string().optional(),\n })\n .transform(d => ({\n quartz_cron_expression: d.quartzCronExpression,\n timezone_id: d.timezoneId,\n }));\n\nexport const marshalDashboardSchema: z.ZodType = z\n .object({\n dashboardId: z.string().optional(),\n displayName: z.string().optional(),\n path: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n warehouseId: z.string().optional(),\n etag: z.string().optional(),\n serializedDashboard: z.string().optional(),\n lifecycleState: z.string().optional(),\n parentPath: z.string().optional(),\n })\n .transform(d => ({\n dashboard_id: d.dashboardId,\n display_name: d.displayName,\n path: d.path,\n create_time: d.createTime,\n update_time: d.updateTime,\n warehouse_id: d.warehouseId,\n etag: d.etag,\n serialized_dashboard: d.serializedDashboard,\n lifecycle_state: d.lifecycleState,\n parent_path: d.parentPath,\n }));\n\nexport const marshalMigrateDashboardRequestSchema: z.ZodType = z\n .object({\n sourceDashboardId: z.string().optional(),\n displayName: z.string().optional(),\n parentPath: z.string().optional(),\n updateParameterSyntax: z.boolean().optional(),\n })\n .transform(d => ({\n source_dashboard_id: d.sourceDashboardId,\n display_name: d.displayName,\n parent_path: d.parentPath,\n update_parameter_syntax: d.updateParameterSyntax,\n }));\n\nexport const marshalPublishDashboardRequestSchema: z.ZodType = z\n .object({\n dashboardId: z.string().optional(),\n embedCredentials: z.boolean().optional(),\n warehouseId: z.string().optional(),\n })\n .transform(d => ({\n dashboard_id: d.dashboardId,\n embed_credentials: d.embedCredentials,\n warehouse_id: d.warehouseId,\n }));\n\nexport const marshalRevertDashboardRequestSchema: z.ZodType = z\n .object({\n dashboardId: z.string().optional(),\n etag: z.string().optional(),\n })\n .transform(d => ({\n dashboard_id: d.dashboardId,\n etag: d.etag,\n }));\n\nexport const marshalScheduleSchema: z.ZodType = z\n .object({\n scheduleId: z.string().optional(),\n dashboardId: z.string().optional(),\n cronSchedule: z.lazy(() => marshalCronScheduleSchema).optional(),\n pauseStatus: z.string().optional(),\n displayName: z.string().optional(),\n etag: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n warehouseId: z.string().optional(),\n })\n .transform(d => ({\n schedule_id: d.scheduleId,\n dashboard_id: d.dashboardId,\n cron_schedule: d.cronSchedule,\n pause_status: d.pauseStatus,\n display_name: d.displayName,\n etag: d.etag,\n create_time: d.createTime,\n update_time: d.updateTime,\n warehouse_id: d.warehouseId,\n }));\n\nexport const marshalSubscriptionSchema: z.ZodType = z\n .object({\n subscriptionId: z.string().optional(),\n scheduleId: z.string().optional(),\n dashboardId: z.string().optional(),\n subscriber: z.lazy(() => marshalSubscription_SubscriberSchema).optional(),\n createdByUserId: z.bigint().optional(),\n etag: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n skipNotify: z.boolean().optional(),\n })\n .transform(d => ({\n subscription_id: d.subscriptionId,\n schedule_id: d.scheduleId,\n dashboard_id: d.dashboardId,\n subscriber: d.subscriber,\n created_by_user_id: d.createdByUserId,\n etag: d.etag,\n create_time: d.createTime,\n update_time: d.updateTime,\n skip_notify: d.skipNotify,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalSubscription_SubscriberSchema: z.ZodType = z\n .object({\n userSubscriber: z\n .lazy(() => marshalSubscription_Subscriber_UserSchema)\n .optional(),\n destinationSubscriber: z\n .lazy(() => marshalSubscription_Subscriber_DestinationSchema)\n .optional(),\n })\n .transform(d => ({\n user_subscriber: d.userSubscriber,\n destination_subscriber: d.destinationSubscriber,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalSubscription_Subscriber_DestinationSchema: z.ZodType = z\n .object({\n destinationId: z.string().optional(),\n })\n .transform(d => ({\n destination_id: d.destinationId,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalSubscription_Subscriber_UserSchema: z.ZodType = z\n .object({\n userId: z.bigint().optional(),\n })\n .transform(d => ({\n user_id: d.userId,\n }));\n"],"mappings":";;;;AAMA,MAAa,gBAAgB,EAE3B,sBAAsB,wBACvB;AAMD,MAAa,iBAAiB;CAE5B,QAAQ;CAER,SAAS;CACV;AAMD,MAAa,sBAAsB;CACjC,UAAU;CACV,QAAQ;CACT;AAubD,MAAa,sCACX,EACG,OAAO;CACN,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,0BAA0B,EAAE,QAAQ,CAAC,UAAU;CAC/C,aAAa,EACV,MAAM,E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Y,EAAE;CACd,oBAAoB,EAAE;CACtB,MAAM,EAAE;CACR,aAAa,EAAE;CACf,aAAa,EAAE;CACf,aAAa,EAAE;CAChB,EAAE;AAGL,MAAa,uCAAkD,EAC5D,OAAO;CACN,gBAAgB,EACb,WAAW,0CAA0C,CACrD,UAAU;CACb,uBAAuB,EACpB,WAAW,iDAAiD,CAC5D,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,iBAAiB,EAAE;CACnB,wBAAwB,EAAE;CAC3B,EAAE;AAGL,MAAa,mDAA8D,EACxE,OAAO,EACN,eAAe,EAAE,QAAQ,CAAC,UAAU,EACrC,CAAC,CACD,WAAU,OAAM,EACf,gBAAgB,EAAE,eACnB,EAAE;AAGL,MAAa,4CAAuD,EACjE,OAAO,EACN,QAAQ,EAAE,QAAQ,CAAC,UAAU,EAC9B,CAAC,CACD,WAAU,OAAM,EACf,SAAS,EAAE,QACZ,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/sdk-lakeview",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"directory": "packages/lakeview"
|
|
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.40.0 <1.0.0",
|
|
37
|
+
"@databricks/sdk-core": ">=0.40.0 <1.0.0",
|
|
38
|
+
"@databricks/sdk-options": ">=0.40.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"
|