@databricks/sdk-lakeview 0.33.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,4FAA4F;AAC5F,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,oDAAoD;IACpD,oBAAoB,EAAE,sBAAsB;CACpC,CAAC;AAKX,4FAA4F;AAC5F,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,yDAAyD;IACzD,MAAM,EAAE,QAAQ;IAChB,2CAA2C;IAC3C,OAAO,EAAE,SAAS;CACV,CAAC;AAKX,4FAA4F;AAC5F,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC;AAubX,MAAM,CAAC,MAAM,mCAAmC,GAC9C,CAAC;KACE,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/C,WAAW,EAAE,CAAC;SACX,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,6CAA6C,CAAC,CAAC;SAClE,QAAQ,EAAE;CACd,CAAC;KACD,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACf,IAAI,EAAE,CAAC,CAAC,IAAI;IACZ,YAAY,EAAE,CAAC,CAAC,aAAa;IAC7B,qBAAqB,EAAE,CAAC,CAAC,wBAAwB;IACjD,U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AM;CAClB,CAAC,CAAC,CAAC"}
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,EACf,eAAe,EAAE,gBAClB,EAAE;AAE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GL,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,23 +1,25 @@
1
- import type { HttpClient } from '@databricks/sdk-core/http';
2
- import type { ClientOptions } from '@databricks/sdk-options/client';
1
+ import { HttpClient } from "@databricks/sdk-core/http";
2
+ import { ClientOptions } from "@databricks/sdk-options/client";
3
+
4
+ //#region src/v1/transport.d.ts
3
5
  /**
4
6
  * The configuration a client needs to issue requests, resolved from
5
7
  * {@link ClientOptions} and a configuration profile.
6
8
  */
7
- export interface ResolvedClientConfig {
8
- /** Host with any trailing slash removed. */
9
- host: string;
10
- /**
11
- * Default account ID for account-level paths that contain an account_id
12
- * segment. A request's own accountId still wins.
13
- */
14
- accountId?: string;
15
- /**
16
- * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
17
- */
18
- workspaceId?: string;
19
- /** HTTP client with authentication, and any configured timeout, applied. */
20
- httpClient: HttpClient;
9
+ interface ResolvedClientConfig {
10
+ /** Host with any trailing slash removed. */
11
+ host: string;
12
+ /**
13
+ * Default account ID for account-level paths that contain an account_id
14
+ * segment. A request's own accountId still wins.
15
+ */
16
+ accountId?: string;
17
+ /**
18
+ * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
19
+ */
20
+ workspaceId?: string;
21
+ /** HTTP client with authentication, and any configured timeout, applied. */
22
+ httpClient: HttpClient;
21
23
  }
22
24
  /**
23
25
  * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
@@ -29,5 +31,7 @@ export interface ResolvedClientConfig {
29
31
  *
30
32
  * @throws if host is neither provided nor present in the resolved profile.
31
33
  */
32
- export declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
34
+ declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
35
+ //#endregion
36
+ export { ResolvedClientConfig, resolveClientConfig };
33
37
  //# sourceMappingURL=transport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EAGX,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,4EAA4E;IAC5E,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,oBAAoB,CAAC,CA4B/B"}
1
+ {"version":3,"file":"transport.d.ts","names":[],"sources":["../../src/v1/transport.ts"],"mappings":";;;;;;AAkBA;;UAAiB,oBAAA;EAgBO;EAdtB,IAAA;EAMA;;;;EAAA,SAAA;EAQsB;AAaxB;;EAhBE,WAAA;EAiBS;EAdT,UAAA,EAAY,UAAA;AAAA;;;;;;;;;;;iBAaQ,mBAAA,CACpB,OAAA,EAAS,aAAA,GACR,OAAA,CAAQ,oBAAA"}
@@ -1,74 +1,65 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { defaultCredentials } from '@databricks/sdk-auth/credentials';
3
- import { newFetchHttpClient } from '@databricks/sdk-core/http';
4
- import { resolve } from '@databricks/sdk-core/profiles';
1
+ import { defaultCredentials } from "@databricks/sdk-auth/credentials";
2
+ import { newFetchHttpClient } from "@databricks/sdk-core/http";
3
+ import { resolve } from "@databricks/sdk-core/profiles";
4
+
5
+ //#region src/v1/transport.ts
5
6
  /**
6
- * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
7
- *
8
- * A configuration profile is always resolved from the config file and
9
- * environment variables (per options.profileOptions); it supplies host,
10
- * accountId, workspaceId, and credentials wherever the caller did not set them
11
- * explicitly. Explicit options always take precedence.
12
- *
13
- * @throws if host is neither provided nor present in the resolved profile.
14
- */
15
- export async function resolveClientConfig(options) {
16
- const profile = await resolve(options.profileOptions);
17
- const host = options.host ?? profile.host;
18
- if (host === undefined) {
19
- throw new Error('Host is required.');
20
- }
21
- // The provided httpClient (or the default fetch client) is the base wire;
22
- // authentication and the optional timeout are layered on top of it. The
23
- // default credential chain reuses the profile resolved above so that the
24
- // same profileOptions govern host and authentication alike.
25
- const base = options.httpClient ?? newFetchHttpClient();
26
- const credentials = options.credentials ?? defaultCredentials({ profile });
27
- let httpClient = new AuthHttpClient(base, credentials);
28
- if (options.timeout !== undefined) {
29
- httpClient = new TimeoutHttpClient(httpClient, options.timeout);
30
- }
31
- const accountId = options.accountId ?? profile.accountId;
32
- const workspaceId = options.workspaceId ?? profile.workspaceId;
33
- return {
34
- host: host.replace(/\/$/, ''),
35
- httpClient,
36
- ...(accountId !== undefined && { accountId }),
37
- ...(workspaceId !== undefined && { workspaceId }),
38
- };
7
+ * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
8
+ *
9
+ * A configuration profile is always resolved from the config file and
10
+ * environment variables (per options.profileOptions); it supplies host,
11
+ * accountId, workspaceId, and credentials wherever the caller did not set them
12
+ * explicitly. Explicit options always take precedence.
13
+ *
14
+ * @throws if host is neither provided nor present in the resolved profile.
15
+ */
16
+ async function resolveClientConfig(options) {
17
+ const profile = await resolve(options.profileOptions);
18
+ const host = options.host ?? profile.host;
19
+ if (host === void 0) throw new Error("Host is required.");
20
+ let httpClient = new AuthHttpClient(options.httpClient ?? newFetchHttpClient(), options.credentials ?? defaultCredentials({ profile }));
21
+ if (options.timeout !== void 0) httpClient = new TimeoutHttpClient(httpClient, options.timeout);
22
+ const accountId = options.accountId ?? profile.accountId;
23
+ const workspaceId = options.workspaceId ?? profile.workspaceId;
24
+ return {
25
+ host: host.replace(/\/$/, ""),
26
+ httpClient,
27
+ ...accountId !== void 0 && { accountId },
28
+ ...workspaceId !== void 0 && { workspaceId }
29
+ };
39
30
  }
40
31
  /** Wraps an HttpClient and adds authentication headers to requests. */
41
- class AuthHttpClient {
42
- base;
43
- credentials;
44
- constructor(base, credentials) {
45
- this.base = base;
46
- this.credentials = credentials;
47
- }
48
- async send(request) {
49
- const authHeaders = await this.credentials.authHeaders();
50
- // Do not modify the original request.
51
- const headers = new Headers(request.headers);
52
- for (const h of authHeaders) {
53
- headers.set(h.key, h.value);
54
- }
55
- return this.base.send({ ...request, headers });
56
- }
57
- }
32
+ var AuthHttpClient = class {
33
+ constructor(base, credentials) {
34
+ this.base = base;
35
+ this.credentials = credentials;
36
+ }
37
+ async send(request) {
38
+ const authHeaders = await this.credentials.authHeaders();
39
+ const headers = new Headers(request.headers);
40
+ for (const h of authHeaders) headers.set(h.key, h.value);
41
+ return this.base.send({
42
+ ...request,
43
+ headers
44
+ });
45
+ }
46
+ };
58
47
  /** Wraps an HttpClient and applies a default timeout to requests. */
59
- class TimeoutHttpClient {
60
- base;
61
- timeout;
62
- constructor(base, timeout) {
63
- this.base = base;
64
- this.timeout = timeout;
65
- }
66
- async send(request) {
67
- const timeoutSignal = AbortSignal.timeout(this.timeout);
68
- const signal = request.signal !== undefined
69
- ? AbortSignal.any([request.signal, timeoutSignal])
70
- : timeoutSignal;
71
- return this.base.send({ ...request, signal });
72
- }
73
- }
48
+ var TimeoutHttpClient = class {
49
+ constructor(base, timeout) {
50
+ this.base = base;
51
+ this.timeout = timeout;
52
+ }
53
+ async send(request) {
54
+ const timeoutSignal = AbortSignal.timeout(this.timeout);
55
+ const signal = request.signal !== void 0 ? AbortSignal.any([request.signal, timeoutSignal]) : timeoutSignal;
56
+ return this.base.send({
57
+ ...request,
58
+ signal
59
+ });
60
+ }
61
+ };
62
+
63
+ //#endregion
64
+ export { resolveClientConfig };
74
65
  //# sourceMappingURL=transport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAG/E,OAAO,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAMpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,+BAA+B,CAAC;AA0BtD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAsB;IAEtB,MAAM,OAAO,GAAY,MAAM,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE/D,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAC1C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,0EAA0E;IAC1E,wEAAwE;IACxE,yEAAyE;IACzE,4DAA4D;IAC5D,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,IAAI,kBAAkB,EAAE,CAAC;IACxD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,kBAAkB,CAAC,EAAC,OAAO,EAAC,CAAC,CAAC;IACzE,IAAI,UAAU,GAAe,IAAI,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IACnE,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAClC,UAAU,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC;IACzD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAA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CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;YAClD,CAAC,CAAC,aAAa,CAAC;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,GAAG,OAAO,EAAE,MAAM,EAAC,CAAC,CAAC;IAC9C,CAAC;CACF"}
1
+ {"version":3,"file":"transport.js","names":[],"sources":["../../src/v1/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 = options.credentials ?? defaultCredentials({profile});\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: host.replace(/\\/$/, ''),\n httpClient,\n ...(accountId !== undefined && {accountId}),\n ...(workspaceId !== undefined && {workspaceId}),\n };\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,QAAQ,QAAQ,QAAQ;AACrC,KAAI,SAAS,OACX,OAAM,IAAI,MAAM,oBAAoB;CAStC,IAAI,aAAyB,IAAI,eAFpB,QAAQ,cAAc,oBAAoB,EACnC,QAAQ,eAAe,mBAAmB,EAAC,SAAQ,CAAC,CACN;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,MAAM,KAAK,QAAQ,OAAO,GAAG;EAC7B;EACA,GAAI,cAAc,UAAa,EAAC,WAAU;EAC1C,GAAI,gBAAgB,UAAa,EAAC,aAAY;EAC/C;;;AAIH,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"}
@@ -1,21 +1,25 @@
1
- import type { HttpClient, HttpRequest } from '@databricks/sdk-core/http';
2
- import type { Logger } from '@databricks/sdk-core/logger';
3
- import type { CallOptions } from '@databricks/sdk-options/call';
4
- import type { z } from 'zod';
5
- export interface HttpCallOptions {
6
- readonly request: HttpRequest;
7
- readonly httpClient: HttpClient;
8
- readonly logger: Logger;
1
+ import { Logger } from "@databricks/sdk-core/logger";
2
+ import { HttpClient, HttpRequest } from "@databricks/sdk-core/http";
3
+ import { z } from "zod";
4
+ import { CallOptions } from "@databricks/sdk-options/call";
5
+
6
+ //#region src/v1/utils.d.ts
7
+ interface HttpCallOptions {
8
+ readonly request: HttpRequest;
9
+ readonly httpClient: HttpClient;
10
+ readonly logger: Logger;
9
11
  }
10
12
  /**
11
13
  * Translates public CallOptions to the internal Options shape accepted by
12
14
  * execute(). Even though the shapes match today, this isolates the public
13
15
  * API from the executor's internal type so they can diverge.
14
16
  */
15
- export declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
16
- export declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
17
- export declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
18
- export declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
19
- export declare function marshalRequest(data: unknown, schema: z.ZodType): string;
20
- export declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
17
+ declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
18
+ declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
19
+ declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
20
+ declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
21
+ declare function marshalRequest(data: unknown, schema: z.ZodType): string;
22
+ declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
23
+ //#endregion
24
+ export { HttpCallOptions, buildHttpRequest, executeCall, executeHttpCall, flattenQueryParams, marshalRequest, parseResponse };
21
25
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/v1/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EAEZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,6BAA6B,C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Z,MAAA,EAAQ,MAAA;AAAA;;;;;;iBAQG,WAAA,CACpB,IAAA,GAAO,MAAA,GAAS,WAAA,KAAgB,OAAA,QAChC,OAAA,GAAU,WAAA,GACT,OAAA;AAAA,iBAoCmB,eAAA,CACpB,IAAA,EAAM,eAAA,GACL,OAAA,CAAQ,UAAA;AAAA,iBA6BK,gBAAA,CACd,MAAA,UACA,GAAA,UACA,OAAA,EAAS,OAAA,EACT,MAAA,GAAS,WAAA,EACT,IAAA,YAAgB,cAAA,CAAe,UAAA,IAC9B,WAAA;AAAA,iBAWa,aAAA,GAAA,CAAiB,IAAA,EAAM,UAAA,EAAY,MAAA,EAAQ,CAAA,CAAE,OAAA,CAAQ,CAAA,IAAK,CAAA;AAAA,iBAO1D,cAAA,CAAe,IAAA,WAAe,MAAA,EAAQ,CAAA,CAAE,OAAA;AAAA,iBAIxC,kBAAA,CACd,MAAA,UACA,KAAA,WACA,MAAA,EAAQ,eAAA"}
package/dist/v1/utils.js CHANGED
@@ -1,114 +1,87 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { execute } from '@databricks/sdk-core/ops';
3
- import { ApiError } from '@databricks/sdk-core/apierror';
4
- import JSONBig from 'json-bigint';
5
- // JSON codec that preserves int64 precision. On the way in, large integer
6
- // literals come back as bigint instead of being rounded to JS Number. On the
7
- // way out, bigint values are emitted as raw JSON number digits.
1
+ import { execute } from "@databricks/sdk-core/ops";
2
+ import { ApiError } from "@databricks/sdk-core/apierror";
3
+ import JSONBig from "json-bigint";
4
+
5
+ //#region src/v1/utils.ts
8
6
  const jsonBigint = JSONBig({ useNativeBigInt: true });
9
7
  /**
10
- * Translates public CallOptions to the internal Options shape accepted by
11
- * execute(). Even though the shapes match today, this isolates the public
12
- * API from the executor's internal type so they can diverge.
13
- */
14
- export async function executeCall(call, options) {
15
- const opts = {
16
- ...(options?.retrier !== undefined && { retrier: options.retrier }),
17
- ...(options?.rateLimiter !== undefined && {
18
- rateLimiter: options.rateLimiter,
19
- }),
20
- ...(options?.timeout !== undefined && { timeout: options.timeout }),
21
- };
22
- return execute(options?.signal, call, opts);
8
+ * Translates public CallOptions to the internal Options shape accepted by
9
+ * execute(). Even though the shapes match today, this isolates the public
10
+ * API from the executor's internal type so they can diverge.
11
+ */
12
+ async function executeCall(call, options) {
13
+ const opts = {
14
+ ...options?.retrier !== void 0 && { retrier: options.retrier },
15
+ ...options?.rateLimiter !== void 0 && { rateLimiter: options.rateLimiter },
16
+ ...options?.timeout !== void 0 && { timeout: options.timeout }
17
+ };
18
+ return execute(options?.signal, call, opts);
23
19
  }
24
20
  async function readAll(body) {
25
- if (body === null) {
26
- return new Uint8Array(0);
27
- }
28
- const reader = body.getReader();
29
- const chunks = [];
30
- for (;;) {
31
- const { done, value } = await reader.read();
32
- if (done) {
33
- break;
34
- }
35
- chunks.push(value);
36
- }
37
- const totalLength = chunks.reduce((acc, chunk) => acc + chunk.length, 0);
38
- const result = new Uint8Array(totalLength);
39
- let offset = 0;
40
- for (const chunk of chunks) {
41
- result.set(chunk, offset);
42
- offset += chunk.length;
43
- }
44
- return result;
21
+ if (body === null) return new Uint8Array(0);
22
+ const reader = body.getReader();
23
+ const chunks = [];
24
+ for (;;) {
25
+ const { done, value } = await reader.read();
26
+ if (done) break;
27
+ chunks.push(value);
28
+ }
29
+ const totalLength = chunks.reduce((acc, chunk) => acc + chunk.length, 0);
30
+ const result = new Uint8Array(totalLength);
31
+ let offset = 0;
32
+ for (const chunk of chunks) {
33
+ result.set(chunk, offset);
34
+ offset += chunk.length;
35
+ }
36
+ return result;
45
37
  }
46
- export async function executeHttpCall(opts) {
47
- opts.logger.debug('HTTP request', {
48
- method: opts.request.method,
49
- url: opts.request.url,
50
- });
51
- let resp;
52
- try {
53
- resp = await opts.httpClient.send(opts.request);
54
- }
55
- catch (e) {
56
- opts.logger.debug('HTTP request failed');
57
- throw e;
58
- }
59
- const body = await readAll(resp.body);
60
- opts.logger.debug('HTTP response', {
61
- statusCode: resp.statusCode,
62
- body: new TextDecoder().decode(body),
63
- });
64
- const apiErr = ApiError.fromHttpError(resp.statusCode, resp.headers, body);
65
- if (apiErr !== undefined) {
66
- throw apiErr;
67
- }
68
- return body;
38
+ async function executeHttpCall(opts) {
39
+ opts.logger.debug("HTTP request", {
40
+ method: opts.request.method,
41
+ url: opts.request.url
42
+ });
43
+ let resp;
44
+ try {
45
+ resp = await opts.httpClient.send(opts.request);
46
+ } catch (e) {
47
+ opts.logger.debug("HTTP request failed");
48
+ throw e;
49
+ }
50
+ const body = await readAll(resp.body);
51
+ opts.logger.debug("HTTP response", {
52
+ statusCode: resp.statusCode,
53
+ body: new TextDecoder().decode(body)
54
+ });
55
+ const apiErr = ApiError.fromHttpError(resp.statusCode, resp.headers, body);
56
+ if (apiErr !== void 0) throw apiErr;
57
+ return body;
69
58
  }
70
- export function buildHttpRequest(method, url, headers, signal, body) {
71
- const req = { url, method, headers };
72
- if (body !== undefined) {
73
- req.body = body;
74
- }
75
- if (signal !== undefined) {
76
- req.signal = signal;
77
- }
78
- return req;
59
+ function buildHttpRequest(method, url, headers, signal, body) {
60
+ const req = {
61
+ url,
62
+ method,
63
+ headers
64
+ };
65
+ if (body !== void 0) req.body = body;
66
+ if (signal !== void 0) req.signal = signal;
67
+ return req;
79
68
  }
80
- export function parseResponse(body, schema) {
81
- const text = new TextDecoder().decode(body);
82
- // 204 responses return an empty body; treat as `{}`.
83
- const parsed = text === '' ? {} : jsonBigint.parse(text);
84
- return schema.parse(parsed);
69
+ function parseResponse(body, schema) {
70
+ const text = new TextDecoder().decode(body);
71
+ const parsed = text === "" ? {} : jsonBigint.parse(text);
72
+ return schema.parse(parsed);
85
73
  }
86
- export function marshalRequest(data, schema) {
87
- return jsonBigint.stringify(schema.parse(data));
74
+ function marshalRequest(data, schema) {
75
+ return jsonBigint.stringify(schema.parse(data));
88
76
  }
89
- export function flattenQueryParams(prefix, value, params) {
90
- if (value === null || value === undefined) {
91
- return;
92
- }
93
- if (Array.isArray(value)) {
94
- // arrays of objects are not yet supported
95
- for (const item of value) {
96
- params.append(prefix, String(item));
97
- }
98
- }
99
- else if (typeof value === 'object') {
100
- for (const [key, val] of Object.entries(value)) {
101
- flattenQueryParams(`${prefix}.${key}`, val, params);
102
- }
103
- }
104
- else if (typeof value === 'string' ||
105
- typeof value === 'number' ||
106
- typeof value === 'boolean' ||
107
- typeof value === 'bigint') {
108
- params.append(prefix, String(value));
109
- }
110
- else {
111
- throw new Error(`Unsupported query parameter type: ${typeof value}`);
112
- }
77
+ function flattenQueryParams(prefix, value, params) {
78
+ if (value === null || value === void 0) return;
79
+ if (Array.isArray(value)) for (const item of value) params.append(prefix, String(item));
80
+ else if (typeof value === "object") for (const [key, val] of Object.entries(value)) flattenQueryParams(`${prefix}.${key}`, val, params);
81
+ else if (typeof value === "string" || typeof value === "number" || typeof value === "boolean" || typeof value === "bigint") params.append(prefix, String(value));
82
+ else throw new Error(`Unsupported query parameter type: ${typeof value}`);
113
83
  }
84
+
85
+ //#endregion
86
+ export { buildHttpRequest, executeCall, executeHttpCall, flattenQueryParams, marshalRequest, parseResponse };
114
87
  //# sourceMappingURL=utils.js.map