@databricks/sdk-uc-onlinetables 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +39 -35
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +139 -176
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -7
- package/dist/v1/index.js +4 -7
- package/dist/v1/model.d.ts +208 -214
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +233 -392
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +21 -18
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +90 -118
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/v1/model.js.map
CHANGED
|
@@ -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,oCAAoC;AACpC,4FAA4F;AAC5F,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,yEAAyE;IACzE,8BAA8B,EAAE,gCAAgC;IAChE;;;OAGG;IACH,YAAY,EAAE,cAAc;IAC5B,wFAAwF;IACxF,+BAA+B,EAAE,iCAAiC;IAClE,sEAAsE;IACtE,6BAA6B,EAAE,+BAA+B;IAC9D,+CAA+C;IAC/C,MAAM,EAAE,QAAQ;IAChB;;;OAGG;IACH,wBAAwB,EAAE,0BAA0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C,CAAC;IACf,6BAA6B,EAAE,CAAC,CAAC,0BAA0B;IAC3D,SAAS,EAAE,CAAC,CAAC,SAAS;IACtB,yBAAyB,EAAE,CAAC,CAAC,uBAAuB;CACrD,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/** The state of an online table. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const OnlineTableState = {\n /** The default state. It should not be reported by any online tables. */\n ONLINE_TABLE_STATE_UNSPECIFIED: 'ONLINE_TABLE_STATE_UNSPECIFIED',\n /**\n * The online table has just been created and resources are being provisioned. This is also the\n * catch-all state if there is not a more suitable state to report for the online table.\n */\n PROVISIONING: 'PROVISIONING',\n /** The online table is provisioning resources for the data synchronization pipeline. */\n PROVISIONING_PIPELINE_RESOURCES: 'PROVISIONING_PIPELINE_RESOURCES',\n /** The online table is executing the initial data synchronization. */\n PROVISIONING_INITIAL_SNAPSHOT: 'PROVISIONING_INITIAL_SNAPSHOT',\n /** The online table is ready to serve data. */\n ONLINE: 'ONLINE',\n /**\n * The online table is ready to serve data and is continuously updating. Only shown for online\n * tables using the \"Continuous\" sync mode.\n */\n ONLINE_CONTINUOUS_UPDATE: 'ONLINE_CONTINUOUS_UPDATE',\n /**\n * The online table is ready to serve data and an active update is in progress. Only shown for\n * online tables using the \"Triggered\" sync mode.\n */\n ONLINE_TRIGGERED_UPDATE: 'ONLINE_TRIGGERED_UPDATE',\n /**\n * The online table is ready to serve data and there are no active updates. Only shown for online\n * tables using the \"Triggered\" sync mode.\n */\n ONLINE_NO_PENDING_UPDATE: 'ONLINE_NO_PENDING_UPDATE',\n /** The online table has encountered an internal error and is not available for serving. */\n OFFLINE: 'OFFLINE',\n /**\n * The online table is not available for serving because the data synchronization pipeline has\n * failed. Please review the pipeline event logs to troubleshoot.\n */\n OFFLINE_FAILED: 'OFFLINE_FAILED',\n /**\n * The data synchronization pipeline has encountered an error but the online table is still\n * available for serving (potentially stale) data. Please review the pipeline event logs to\n * troubleshoot.\n */\n ONLINE_PIPELINE_FAILED: 'ONLINE_PIPELINE_FAILED',\n /**\n * The online table is available for serving, and is provisioning resources for a newly started\n * data synchronization pipeline.\n */\n ONLINE_UPDATING_PIPELINE_RESOURCES: 'ONLINE_UPDATING_PIPELINE_RESOURCES',\n} as const;\nexport type OnlineTableState =\n | (typeof OnlineTableState)[keyof typeof OnlineTableState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ProvisioningInfo_State = {\n STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',\n PROVISIONING: 'PROVISIONING',\n ACTIVE: 'ACTIVE',\n FAILED: 'FAILED',\n DELETING: 'DELETING',\n UPDATING: 'UPDATING',\n DEGRADED: 'DEGRADED',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type ProvisioningInfo_State =\n | (typeof ProvisioningInfo_State)[keyof typeof ProvisioningInfo_State]\n | (string & {});\n\n/**\n * Detailed status of an online table. Shown if the online table is in the ONLINE_CONTINUOUS_UPDATE\n * or the ONLINE_UPDATING_PIPELINE_RESOURCES state.\n */\nexport interface ContinuousUpdateStatus {\n /**\n * The last source table Delta version that was synced to the online table. Note that this Delta\n * version may not be completely synced to the online table yet.\n */\n lastProcessedCommitVersion?: bigint | undefined;\n /**\n * The timestamp of the last time any data was synchronized from the source table to the online\n * table.\n */\n timestamp?: Temporal.Instant | undefined;\n /** Progress of the initial data synchronization. */\n initialPipelineSyncProgress?: PipelineProgress | undefined;\n}\n\n/** Create an online table */\nexport interface CreateOnlineTableRequest {\n /** Specification of the online table to be created. */\n table?: OnlineTable | undefined;\n}\n\n/** Delete an online table. */\nexport interface DeleteOnlineTableRequest {\n /** Full three-part (catalog, schema, table) name of the table. */\n name?: string | undefined;\n}\n\n/**\n * Detailed status of an online table. Shown if the online table is in the OFFLINE_FAILED or the\n * ONLINE_PIPELINE_FAILED state.\n */\nexport interface FailedStatus {\n /**\n * The last source table Delta version that was synced to the online table. Note that this Delta\n * version may only be partially synced to the online table. Only populated if the table is still\n * online and available for serving.\n */\n lastProcessedCommitVersion?: bigint | undefined;\n /**\n * The timestamp of the last time any data was synchronized from the source table to the online\n * table. Only populated if the table is still online and available for serving.\n */\n timestamp?: Temporal.Instant | undefined;\n}\n\n/** Get information about an online table. */\nexport interface GetOnlineTableRequest {\n /** Full three-part (catalog, schema, table) name of the table. */\n name?: string | undefined;\n}\n\n/** Online Table information. */\nexport interface OnlineTable {\n /** Full three-part (catalog, schema, table) name of the table. */\n name?: string | undefined;\n /** Specification of the online table. */\n spec?: OnlineTableSpec | undefined;\n /** Online Table data synchronization status */\n status?: OnlineTableStatus | undefined;\n /** Data serving REST API URL for this table */\n tableServingUrl?: string | undefined;\n /**\n * The provisioning state of the online table entity in Unity Catalog. This is distinct from the\n * state of the data synchronization pipeline (i.e. the table may be in \"ACTIVE\" but the pipeline\n * may be in \"PROVISIONING\" as it runs asynchronously).\n */\n unityCatalogProvisioningState?: ProvisioningInfo_State | undefined;\n}\n\n/** Specification of an online table. */\nexport interface OnlineTableSpec {\n /** Exactly one type of scheduling policy should be applied. */\n schedulingPolicy?:\n | {\n $case: 'runContinuously';\n /** Pipeline runs continuously after generating the initial data. */\n runContinuously: OnlineTableSpec_ContinuousSchedulingPolicy;\n }\n | {\n $case: 'runTriggered';\n /** Pipeline stops after generating the initial data and can be triggered later (manually, through a cron job or through data triggers) */\n runTriggered: OnlineTableSpec_TriggeredSchedulingPolicy;\n }\n | undefined;\n /** Three-part (catalog, schema, table) name of the source Delta table. */\n sourceTableFullName?: string | undefined;\n /** Primary Key columns to be used for data insert/update in the destination. */\n primaryKeyColumns?: string[] | undefined;\n /** Time series key to deduplicate (tie-break) rows with the same primary key. */\n timeseriesKey?: string | undefined;\n /**\n * Whether to create a full-copy pipeline -- a pipeline that stops after creates a full copy of\n * the source table upon initialization and does not process any change data feeds (CDFs)\n * afterwards. The pipeline can still be manually triggered afterwards, but it always perform a\n * full copy of the source table and there are no incremental updates. This mode is useful for\n * syncing views or tables without CDFs to online tables.\n * Note that the full-copy pipeline only supports \"triggered\" scheduling policy.\n */\n performFullCopy?: boolean | undefined;\n /** ID of the associated pipeline. Generated by the server - cannot be set by the caller. */\n pipelineId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.\nexport interface OnlineTableSpec_ContinuousSchedulingPolicy {}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.\nexport interface OnlineTableSpec_TriggeredSchedulingPolicy {}\n\n/** Status of an online table. */\nexport interface OnlineTableStatus {\n /** The state of the online table. */\n detailedState?: OnlineTableState | undefined;\n /** A text description of the current state of the online table. */\n message?: string | undefined;\n /** The detailed status based on the online table state. */\n detailedStatus?:\n | {$case: 'provisioningStatus'; provisioningStatus: ProvisioningStatus}\n | {\n $case: 'continuousUpdateStatus';\n continuousUpdateStatus: ContinuousUpdateStatus;\n }\n | {\n $case: 'triggeredUpdateStatus';\n triggeredUpdateStatus: TriggeredUpdateStatus;\n }\n | {$case: 'failedStatus'; failedStatus: FailedStatus}\n | undefined;\n}\n\n/** Progress information of the Online Table data synchronization pipeline. */\nexport interface PipelineProgress {\n /**\n * The source table Delta version that was last processed by the pipeline. The pipeline may not\n * have completely processed this version yet.\n */\n latestVersionCurrentlyProcessing?: bigint | undefined;\n /** The number of rows that have been synced in this update. */\n syncedRowCount?: bigint | undefined;\n /** The total number of rows that need to be synced in this update. This number may be an estimate. */\n totalRowCount?: bigint | undefined;\n /** The completion ratio of this update. This is a number between 0 and 1. */\n syncProgressCompletion?: number | undefined;\n /** The estimated time remaining to complete this update in seconds. */\n estimatedCompletionTimeSeconds?: number | undefined;\n}\n\n/** Status of an asynchronously provisioned resource. */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface ProvisioningInfo {}\n\n/**\n * Detailed status of an online table. Shown if the online table is in the\n * PROVISIONING_PIPELINE_RESOURCES or the PROVISIONING_INITIAL_SNAPSHOT state.\n */\nexport interface ProvisioningStatus {\n /**\n * Details about initial data synchronization. Only populated when in the\n * PROVISIONING_INITIAL_SNAPSHOT state.\n */\n initialPipelineSyncProgress?: PipelineProgress | undefined;\n}\n\n/**\n * Detailed status of an online table. Shown if the online table is in the ONLINE_TRIGGERED_UPDATE\n * or the ONLINE_NO_PENDING_UPDATE state.\n */\nexport interface TriggeredUpdateStatus {\n /**\n * The last source table Delta version that was synced to the online table. Note that this Delta\n * version may not be completely synced to the online table yet.\n */\n lastProcessedCommitVersion?: bigint | undefined;\n /**\n * The timestamp of the last time any data was synchronized from the source table to the online\n * table.\n */\n timestamp?: Temporal.Instant | undefined;\n /** Progress of the active data synchronization pipeline. */\n triggeredUpdateProgress?: PipelineProgress | undefined;\n}\n\nexport const unmarshalContinuousUpdateStatusSchema: z.ZodType<ContinuousUpdateStatus> =\n z\n .object({\n last_processed_commit_version: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n timestamp: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n initial_pipeline_sync_progress: z\n .lazy(() => unmarshalPipelineProgressSchema)\n .optional(),\n })\n .transform(d => ({\n lastProcessedCommitVersion: d.last_processed_commit_version,\n timestamp: d.timestamp,\n initialPipelineSyncProgress: d.initial_pipeline_sync_progress,\n }));\n\nexport const unmarshalFailedStatusSchema: z.ZodType<FailedStatus> = z\n .object({\n last_processed_commit_version: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n timestamp: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n lastProcessedCommitVersion: d.last_processed_commit_version,\n timestamp: d.timestamp,\n }));\n\nexport const unmarshalOnlineTableSchema: z.ZodType<OnlineTable> = z\n .object({\n name: z.string().optional(),\n spec: z.lazy(() => unmarshalOnlineTableSpecSchema).optional(),\n status: z.lazy(() => unmarshalOnlineTableStatusSchema).optional(),\n table_serving_url: z.string().optional(),\n unity_catalog_provisioning_state: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n spec: d.spec,\n status: d.status,\n tableServingUrl: d.table_serving_url,\n unityCatalogProvisioningState: d.unity_catalog_provisioning_state,\n }));\n\nexport const unmarshalOnlineTableSpecSchema: z.ZodType<OnlineTableSpec> = z\n .object({\n run_continuously: z\n .lazy(() => unmarshalOnlineTableSpec_ContinuousSchedulingPolicySchema)\n .optional(),\n run_triggered: z\n .lazy(() => unmarshalOnlineTableSpec_TriggeredSchedulingPolicySchema)\n .optional(),\n source_table_full_name: z.string().optional(),\n primary_key_columns: z.array(z.string()).optional(),\n timeseries_key: z.string().optional(),\n perform_full_copy: z.boolean().optional(),\n pipeline_id: z.string().optional(),\n })\n .transform(d => ({\n schedulingPolicy:\n d.run_continuously !== undefined\n ? {\n $case: 'runContinuously' as const,\n runContinuously: d.run_continuously,\n }\n : d.run_triggered !== undefined\n ? {$case: 'runTriggered' as const, runTriggered: d.run_triggered}\n : undefined,\n sourceTableFullName: d.source_table_full_name,\n primaryKeyColumns: d.primary_key_columns,\n timeseriesKey: d.timeseries_key,\n performFullCopy: d.perform_full_copy,\n pipelineId: d.pipeline_id,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalOnlineTableSpec_ContinuousSchedulingPolicySchema: z.ZodType<OnlineTableSpec_ContinuousSchedulingPolicy> =\n z.object({});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalOnlineTableSpec_TriggeredSchedulingPolicySchema: z.ZodType<OnlineTableSpec_TriggeredSchedulingPolicy> =\n z.object({});\n\nexport const unmarshalOnlineTableStatusSchema: z.ZodType<OnlineTableStatus> = z\n .object({\n detailed_state: z.string().optional(),\n message: z.string().optional(),\n provisioning_status: z\n .lazy(() => unmarshalProvisioningStatusSchema)\n .optional(),\n continuous_update_status: z\n .lazy(() => unmarshalContinuousUpdateStatusSchema)\n .optional(),\n triggered_update_status: z\n .lazy(() => unmarshalTriggeredUpdateStatusSchema)\n .optional(),\n failed_status: z.lazy(() => unmarshalFailedStatusSchema).optional(),\n })\n .transform(d => ({\n detailedState: d.detailed_state,\n message: d.message,\n detailedStatus:\n d.provisioning_status !== undefined\n ? {\n $case: 'provisioningStatus' as const,\n provisioningStatus: d.provisioning_status,\n }\n : d.continuous_update_status !== undefined\n ? {\n $case: 'continuousUpdateStatus' as const,\n continuousUpdateStatus: d.continuous_update_status,\n }\n : d.triggered_update_status !== undefined\n ? {\n $case: 'triggeredUpdateStatus' as const,\n triggeredUpdateStatus: d.triggered_update_status,\n }\n : d.failed_status !== undefined\n ? {$case: 'failedStatus' as const, failedStatus: d.failed_status}\n : undefined,\n }));\n\nexport const unmarshalPipelineProgressSchema: z.ZodType<PipelineProgress> = z\n .object({\n latest_version_currently_processing: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n synced_row_count: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n total_row_count: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n sync_progress_completion: z.number().optional(),\n estimated_completion_time_seconds: z.number().optional(),\n })\n .transform(d => ({\n latestVersionCurrentlyProcessing: d.latest_version_currently_processing,\n syncedRowCount: d.synced_row_count,\n totalRowCount: d.total_row_count,\n syncProgressCompletion: d.sync_progress_completion,\n estimatedCompletionTimeSeconds: d.estimated_completion_time_seconds,\n }));\n\nexport const unmarshalProvisioningStatusSchema: z.ZodType<ProvisioningStatus> =\n z\n .object({\n initial_pipeline_sync_progress: z\n .lazy(() => unmarshalPipelineProgressSchema)\n .optional(),\n })\n .transform(d => ({\n initialPipelineSyncProgress: d.initial_pipeline_sync_progress,\n }));\n\nexport const unmarshalTriggeredUpdateStatusSchema: z.ZodType<TriggeredUpdateStatus> =\n z\n .object({\n last_processed_commit_version: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n timestamp: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n triggered_update_progress: z\n .lazy(() => unmarshalPipelineProgressSchema)\n .optional(),\n })\n .transform(d => ({\n lastProcessedCommitVersion: d.last_processed_commit_version,\n timestamp: d.timestamp,\n triggeredUpdateProgress: d.triggered_update_progress,\n }));\n\nexport const marshalContinuousUpdateStatusSchema: z.ZodType = z\n .object({\n lastProcessedCommitVersion: z.bigint().optional(),\n timestamp: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n initialPipelineSyncProgress: z\n .lazy(() => marshalPipelineProgressSchema)\n .optional(),\n })\n .transform(d => ({\n last_processed_commit_version: d.lastProcessedCommitVersion,\n timestamp: d.timestamp,\n initial_pipeline_sync_progress: d.initialPipelineSyncProgress,\n }));\n\nexport const marshalFailedStatusSchema: z.ZodType = z\n .object({\n lastProcessedCommitVersion: z.bigint().optional(),\n timestamp: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n })\n .transform(d => ({\n last_processed_commit_version: d.lastProcessedCommitVersion,\n timestamp: d.timestamp,\n }));\n\nexport const marshalOnlineTableSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n spec: z.lazy(() => marshalOnlineTableSpecSchema).optional(),\n status: z.lazy(() => marshalOnlineTableStatusSchema).optional(),\n tableServingUrl: z.string().optional(),\n unityCatalogProvisioningState: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n spec: d.spec,\n status: d.status,\n table_serving_url: d.tableServingUrl,\n unity_catalog_provisioning_state: d.unityCatalogProvisioningState,\n }));\n\nexport const marshalOnlineTableSpecSchema: z.ZodType = z\n .object({\n schedulingPolicy: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('runContinuously'),\n runContinuously: z.lazy(\n () => marshalOnlineTableSpec_ContinuousSchedulingPolicySchema\n ),\n }),\n z.object({\n $case: z.literal('runTriggered'),\n runTriggered: z.lazy(\n () => marshalOnlineTableSpec_TriggeredSchedulingPolicySchema\n ),\n }),\n ])\n .optional(),\n sourceTableFullName: z.string().optional(),\n primaryKeyColumns: z.array(z.string()).optional(),\n timeseriesKey: z.string().optional(),\n performFullCopy: z.boolean().optional(),\n pipelineId: z.string().optional(),\n })\n .transform(d => ({\n ...(d.schedulingPolicy?.$case === 'runContinuously' && {\n run_continuously: d.schedulingPolicy.runContinuously,\n }),\n ...(d.schedulingPolicy?.$case === 'runTriggered' && {\n run_triggered: d.schedulingPolicy.runTriggered,\n }),\n source_table_full_name: d.sourceTableFullName,\n primary_key_columns: d.primaryKeyColumns,\n timeseries_key: d.timeseriesKey,\n perform_full_copy: d.performFullCopy,\n pipeline_id: d.pipelineId,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalOnlineTableSpec_ContinuousSchedulingPolicySchema: z.ZodType =\n z.object({});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalOnlineTableSpec_TriggeredSchedulingPolicySchema: z.ZodType =\n z.object({});\n\nexport const marshalOnlineTableStatusSchema: z.ZodType = z\n .object({\n detailedState: z.string().optional(),\n message: z.string().optional(),\n detailedStatus: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('provisioningStatus'),\n provisioningStatus: z.lazy(() => marshalProvisioningStatusSchema),\n }),\n z.object({\n $case: z.literal('continuousUpdateStatus'),\n continuousUpdateStatus: z.lazy(\n () => marshalContinuousUpdateStatusSchema\n ),\n }),\n z.object({\n $case: z.literal('triggeredUpdateStatus'),\n triggeredUpdateStatus: z.lazy(\n () => marshalTriggeredUpdateStatusSchema\n ),\n }),\n z.object({\n $case: z.literal('failedStatus'),\n failedStatus: z.lazy(() => marshalFailedStatusSchema),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n detailed_state: d.detailedState,\n message: d.message,\n ...(d.detailedStatus?.$case === 'provisioningStatus' && {\n provisioning_status: d.detailedStatus.provisioningStatus,\n }),\n ...(d.detailedStatus?.$case === 'continuousUpdateStatus' && {\n continuous_update_status: d.detailedStatus.continuousUpdateStatus,\n }),\n ...(d.detailedStatus?.$case === 'triggeredUpdateStatus' && {\n triggered_update_status: d.detailedStatus.triggeredUpdateStatus,\n }),\n ...(d.detailedStatus?.$case === 'failedStatus' && {\n failed_status: d.detailedStatus.failedStatus,\n }),\n }));\n\nexport const marshalPipelineProgressSchema: z.ZodType = z\n .object({\n latestVersionCurrentlyProcessing: z.bigint().optional(),\n syncedRowCount: z.bigint().optional(),\n totalRowCount: z.bigint().optional(),\n syncProgressCompletion: z.number().optional(),\n estimatedCompletionTimeSeconds: z.number().optional(),\n })\n .transform(d => ({\n latest_version_currently_processing: d.latestVersionCurrentlyProcessing,\n synced_row_count: d.syncedRowCount,\n total_row_count: d.totalRowCount,\n sync_progress_completion: d.syncProgressCompletion,\n estimated_completion_time_seconds: d.estimatedCompletionTimeSeconds,\n }));\n\nexport const marshalProvisioningStatusSchema: z.ZodType = z\n .object({\n initialPipelineSyncProgress: z\n .lazy(() => marshalPipelineProgressSchema)\n .optional(),\n })\n .transform(d => ({\n initial_pipeline_sync_progress: d.initialPipelineSyncProgress,\n }));\n\nexport const marshalTriggeredUpdateStatusSchema: z.ZodType = z\n .object({\n lastProcessedCommitVersion: z.bigint().optional(),\n timestamp: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n triggeredUpdateProgress: z\n .lazy(() => marshalPipelineProgressSchema)\n .optional(),\n })\n .transform(d => ({\n last_processed_commit_version: d.lastProcessedCommitVersion,\n timestamp: d.timestamp,\n triggered_update_progress: d.triggeredUpdateProgress,\n }));\n"],"mappings":";;;;;AAOA,MAAa,mBAAmB;CAE9B,gCAAgC;CAKhC,cAAc;CAEd,iCAAiC;CAEjC,+BAA+B;CAE/B,Q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EAAE,eAAe,oBACvC;CACD,GAAI,EAAE,gBAAgB,UAAU,4BAA4B,EAC1D,0BAA0B,EAAE,eAAe,wBAC5C;CACD,GAAI,EAAE,gBAAgB,UAAU,2BAA2B,EACzD,yBAAyB,EAAE,eAAe,uBAC3C;CACD,GAAI,EAAE,gBAAgB,UAAU,kBAAkB,EAChD,eAAe,EAAE,eAAe,cACjC;CACF,EAAE;AAEL,MAAa,gCAA2C,EACrD,OAAO;CACN,kCAAkC,EAAE,QAAQ,CAAC,UAAU;CACvD,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,wBAAwB,EAAE,QAAQ,CAAC,UAAU;CAC7C,gCAAgC,EAAE,QAAQ,CAAC,UAAU;CACtD,CAAC,CACD,WAAU,OAAM;CACf,qCAAqC,EAAE;CACvC,kBAAkB,EAAE;CACpB,iBAAiB,EAAE;CACnB,0BAA0B,EAAE;CAC5B,mCAAmC,EAAE;CACtC,EAAE;AAEL,MAAa,kCAA6C,EACvD,OAAO,EACN,6BAA6B,EAC1B,WAAW,8BAA8B,CACzC,UAAU,EACd,CAAC,CACD,WAAU,OAAM,EACf,gCAAgC,EAAE,6BACnC,EAAE;AAEL,MAAa,qCAAgD,EAC1D,OAAO;CACN,4BAA4B,EAAE,QAAQ,CAAC,UAAU;CACjD,WAAW,EACR,KAAK,CACL,WAAW,MAAwB,EAAE,UAAU,CAAC,CAChD,UAAU;CACb,yBAAyB,EACtB,WAAW,8BAA8B,CACzC,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,+BAA+B,EAAE;CACjC,WAAW,EAAE;CACb,2BAA2B,EAAE;CAC9B,EAAE"}
|
package/dist/v1/transport.d.ts
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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","
|
|
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"}
|
package/dist/v1/transport.js
CHANGED
|
@@ -1,74 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
package/dist/v1/transport.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.js","
|
|
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"}
|
package/dist/v1/utils.d.ts
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
import { LroOptions } from "@databricks/sdk-options/lro";
|
|
6
|
+
|
|
7
|
+
//#region src/v1/utils.d.ts
|
|
8
|
+
interface HttpCallOptions {
|
|
9
|
+
readonly request: HttpRequest;
|
|
10
|
+
readonly httpClient: HttpClient;
|
|
11
|
+
readonly logger: Logger;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* Translates public CallOptions to the internal Options shape accepted by
|
|
13
15
|
* execute(). Even though the shapes match today, this isolates the public
|
|
14
16
|
* API from the executor's internal type so they can diverge.
|
|
15
17
|
*/
|
|
16
|
-
|
|
18
|
+
declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
|
|
17
19
|
/**
|
|
18
20
|
* Sentinel thrown by a polling call to signal that the operation has not
|
|
19
21
|
* yet reached a terminal state. {@link executeWait} treats this error as
|
|
20
22
|
* retriable; any other error aborts the wait.
|
|
21
23
|
*/
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
+
declare class StillRunningError extends Error {}
|
|
24
25
|
/**
|
|
25
26
|
* Polls until the call returns without throwing {@link StillRunningError}.
|
|
26
27
|
* Abort and overall-deadline behavior come from the supplied LroOptions.
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
declare function executeWait(call: (signal?: AbortSignal) => Promise<void>, options?: LroOptions): Promise<void>;
|
|
30
|
+
declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
|
|
31
|
+
declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
|
|
32
|
+
declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
|
|
33
|
+
declare function marshalRequest(data: unknown, schema: z.ZodType): string;
|
|
34
|
+
declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { HttpCallOptions, StillRunningError, buildHttpRequest, executeCall, executeHttpCall, executeWait, flattenQueryParams, marshalRequest, parseResponse };
|
|
34
37
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/v1/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/v1/utils.ts"],"mappings":";;;;;;;UAqBiB,eAAA;EAAA,SACN,OAAA,EAAS,WAAA;EAAA,SACT,UAAA,EAAY,UAAA;EAAA,SACZ,MAAA,EAAQ,MAAA;AAAA;;;;;;iBAQG,WAAA,CACpB,IAAA,GAAO,MAAA,GAAS,WAAA,KAAgB,OAAA,QAChC,OAAA,GAAU,WAAA,GACT,OAAA;;;;;;cAgBU,iBAAA,SAA0B,KAAA;AAnBvC;;;;AAAA,iBAyBsB,WAAA,CACpB,IAAA,GAAO,MAAA,GAAS,WAAA,KAAgB,OAAA,QAChC,OAAA,GAAU,UAAA,GACT,OAAA;AAAA,iBAkCmB,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,132 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
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, retryOn } 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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
21
|
+
* Sentinel thrown by a polling call to signal that the operation has not
|
|
22
|
+
* yet reached a terminal state. {@link executeWait} treats this error as
|
|
23
|
+
* retriable; any other error aborts the wait.
|
|
24
|
+
*/
|
|
25
|
+
var StillRunningError = class extends Error {};
|
|
31
26
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
* Polls until the call returns without throwing {@link StillRunningError}.
|
|
28
|
+
* Abort and overall-deadline behavior come from the supplied LroOptions.
|
|
29
|
+
*/
|
|
30
|
+
async function executeWait(call, options) {
|
|
31
|
+
const opts = {
|
|
32
|
+
...options?.timeout !== void 0 && { timeout: options.timeout },
|
|
33
|
+
retrier: () => retryOn({}, (err) => err instanceof StillRunningError)
|
|
34
|
+
};
|
|
35
|
+
return execute(options?.signal, call, opts);
|
|
41
36
|
}
|
|
42
37
|
async function readAll(body) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
result.set(chunk, offset);
|
|
60
|
-
offset += chunk.length;
|
|
61
|
-
}
|
|
62
|
-
return result;
|
|
38
|
+
if (body === null) return new Uint8Array(0);
|
|
39
|
+
const reader = body.getReader();
|
|
40
|
+
const chunks = [];
|
|
41
|
+
for (;;) {
|
|
42
|
+
const { done, value } = await reader.read();
|
|
43
|
+
if (done) break;
|
|
44
|
+
chunks.push(value);
|
|
45
|
+
}
|
|
46
|
+
const totalLength = chunks.reduce((acc, chunk) => acc + chunk.length, 0);
|
|
47
|
+
const result = new Uint8Array(totalLength);
|
|
48
|
+
let offset = 0;
|
|
49
|
+
for (const chunk of chunks) {
|
|
50
|
+
result.set(chunk, offset);
|
|
51
|
+
offset += chunk.length;
|
|
52
|
+
}
|
|
53
|
+
return result;
|
|
63
54
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
throw apiErr;
|
|
85
|
-
}
|
|
86
|
-
return body;
|
|
55
|
+
async function executeHttpCall(opts) {
|
|
56
|
+
opts.logger.debug("HTTP request", {
|
|
57
|
+
method: opts.request.method,
|
|
58
|
+
url: opts.request.url
|
|
59
|
+
});
|
|
60
|
+
let resp;
|
|
61
|
+
try {
|
|
62
|
+
resp = await opts.httpClient.send(opts.request);
|
|
63
|
+
} catch (e) {
|
|
64
|
+
opts.logger.debug("HTTP request failed");
|
|
65
|
+
throw e;
|
|
66
|
+
}
|
|
67
|
+
const body = await readAll(resp.body);
|
|
68
|
+
opts.logger.debug("HTTP response", {
|
|
69
|
+
statusCode: resp.statusCode,
|
|
70
|
+
body: new TextDecoder().decode(body)
|
|
71
|
+
});
|
|
72
|
+
const apiErr = ApiError.fromHttpError(resp.statusCode, resp.headers, body);
|
|
73
|
+
if (apiErr !== void 0) throw apiErr;
|
|
74
|
+
return body;
|
|
87
75
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
76
|
+
function buildHttpRequest(method, url, headers, signal, body) {
|
|
77
|
+
const req = {
|
|
78
|
+
url,
|
|
79
|
+
method,
|
|
80
|
+
headers
|
|
81
|
+
};
|
|
82
|
+
if (body !== void 0) req.body = body;
|
|
83
|
+
if (signal !== void 0) req.signal = signal;
|
|
84
|
+
return req;
|
|
97
85
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return schema.parse(parsed);
|
|
86
|
+
function parseResponse(body, schema) {
|
|
87
|
+
const text = new TextDecoder().decode(body);
|
|
88
|
+
const parsed = text === "" ? {} : jsonBigint.parse(text);
|
|
89
|
+
return schema.parse(parsed);
|
|
103
90
|
}
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
function marshalRequest(data, schema) {
|
|
92
|
+
return jsonBigint.stringify(schema.parse(data));
|
|
106
93
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
for (const item of value) {
|
|
114
|
-
params.append(prefix, String(item));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
else if (typeof value === 'object') {
|
|
118
|
-
for (const [key, val] of Object.entries(value)) {
|
|
119
|
-
flattenQueryParams(`${prefix}.${key}`, val, params);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
else if (typeof value === 'string' ||
|
|
123
|
-
typeof value === 'number' ||
|
|
124
|
-
typeof value === 'boolean' ||
|
|
125
|
-
typeof value === 'bigint') {
|
|
126
|
-
params.append(prefix, String(value));
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
throw new Error(`Unsupported query parameter type: ${typeof value}`);
|
|
130
|
-
}
|
|
94
|
+
function flattenQueryParams(prefix, value, params) {
|
|
95
|
+
if (value === null || value === void 0) return;
|
|
96
|
+
if (Array.isArray(value)) for (const item of value) params.append(prefix, String(item));
|
|
97
|
+
else if (typeof value === "object") for (const [key, val] of Object.entries(value)) flattenQueryParams(`${prefix}.${key}`, val, params);
|
|
98
|
+
else if (typeof value === "string" || typeof value === "number" || typeof value === "boolean" || typeof value === "bigint") params.append(prefix, String(value));
|
|
99
|
+
else throw new Error(`Unsupported query parameter type: ${typeof value}`);
|
|
131
100
|
}
|
|
101
|
+
|
|
102
|
+
//#endregion
|
|
103
|
+
export { StillRunningError, buildHttpRequest, executeCall, executeHttpCall, executeWait, flattenQueryParams, marshalRequest, parseResponse };
|
|
132
104
|
//# sourceMappingURL=utils.js.map
|