@databricks/appkit-ui 0.88.0 → 0.89.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/CLAUDE.md +7 -2
- package/dist/cli/commands/doctor/checks-existence.js +16 -16
- package/dist/cli/commands/doctor/checks-existence.js.map +1 -1
- package/dist/cli/commands/doctor/checks.js +15 -18
- package/dist/cli/commands/doctor/checks.js.map +1 -1
- package/dist/cli/commands/doctor/databricks-client.js +8 -6
- package/dist/cli/commands/doctor/databricks-client.js.map +1 -1
- package/dist/cli/commands/registry/workspace-picker.js +34 -24
- package/dist/cli/commands/registry/workspace-picker.js.map +1 -1
- package/dist/react/genie/genie-chart-inference.js.map +1 -1
- package/dist/react/genie/genie-query-transform.d.ts +5 -2
- package/dist/react/genie/genie-query-transform.d.ts.map +1 -1
- package/dist/react/genie/genie-query-transform.js +14 -8
- package/dist/react/genie/genie-query-transform.js.map +1 -1
- package/dist/react/table/table-wrapper.js +6 -1
- package/dist/react/table/table-wrapper.js.map +1 -1
- package/dist/react/table/types.d.ts +5 -1
- package/dist/react/table/types.d.ts.map +1 -1
- package/dist/react/ui/button.d.ts +1 -1
- package/dist/shared/src/genie.d.ts +9 -3
- package/dist/shared/src/genie.d.ts.map +1 -1
- package/dist/shared/src/workspace-client/factory.d.ts +0 -1
- package/dist/shared/src/workspace-client/index.d.ts +1 -2
- package/dist/shared/src/workspace-client/modular.d.ts +19 -0
- package/dist/shared/src/workspace-client/types.d.ts +1 -2
- package/dist/workspace-client/client.js +81 -23
- package/dist/workspace-client/client.js.map +1 -1
- package/dist/workspace-client/errors.d.ts +14 -2
- package/dist/workspace-client/errors.d.ts.map +1 -0
- package/dist/workspace-client/errors.js +45 -2
- package/dist/workspace-client/errors.js.map +1 -0
- package/dist/workspace-client/factory.d.ts +1 -1
- package/dist/workspace-client/factory.js.map +1 -1
- package/dist/workspace-client/index.d.ts +4 -3
- package/dist/workspace-client/index.js +2 -2
- package/dist/workspace-client/modular.d.ts +109 -0
- package/dist/workspace-client/modular.d.ts.map +1 -0
- package/dist/workspace-client/modular.js +447 -0
- package/dist/workspace-client/modular.js.map +1 -0
- package/dist/workspace-client/options.d.ts +29 -0
- package/dist/workspace-client/options.d.ts.map +1 -0
- package/dist/workspace-client/types.d.ts +35 -38
- package/dist/workspace-client/types.d.ts.map +1 -1
- package/docs/api/appkit/Class.ApiError.md +110 -0
- package/docs/api/appkit/Class.DatabricksAdapter.md +2 -2
- package/docs/api/appkit/Class.SupervisorApiAdapter.md +1 -1
- package/docs/api/appkit/Function.generateDatabaseCredential.md +2 -2
- package/docs/api/appkit/Function.getWorkspaceClient.md +2 -2
- package/docs/api/appkit/Interface.DirectoryEntry.md +62 -0
- package/docs/api/appkit/Interface.DownloadResponse.md +45 -0
- package/docs/api/appkit/Interface.JobAPI.md +20 -12
- package/docs/api/appkit/Interface.LakebasePoolConfig.md +1 -1
- package/docs/api/appkit/Interface.WorkspaceClient.md +168 -26
- package/docs/api/appkit/Interface.WorkspaceClientOptions.md +1 -14
- package/docs/api/appkit/TypeAlias.FilesDirectoryEntry.md +8 -0
- package/docs/api/appkit/TypeAlias.FilesDownloadResponse.md +8 -0
- package/docs/api/appkit/TypeAlias.JobsExport.md +1 -1
- package/docs/api/appkit/TypeAlias.WorkspaceClientLike.md +16 -0
- package/docs/api/appkit-ui/data/DataTable.md +16 -16
- package/docs/api/appkit.md +7 -2
- package/docs/plugins/files.md +20 -3
- package/docs/plugins/jobs.md +9 -9
- package/docs/plugins/testing.md +10 -8
- package/llms.txt +7 -2
- package/node_modules/@databricks/sdk-genie/LICENSE +203 -0
- package/node_modules/@databricks/sdk-genie/README.md +23 -0
- package/node_modules/@databricks/sdk-genie/dist/package.js +7 -0
- package/node_modules/@databricks/sdk-genie/dist/package.js.map +1 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/client.d.ts +175 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/client.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/client.js +829 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/client.js.map +1 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/index.d.ts +3 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/index.js +4 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/model.d.ts +1799 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/model.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/model.js +1097 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/model.js.map +1 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/transport.d.ts +37 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/transport.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/transport.js +73 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/transport.js.map +1 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/utils.d.ts +43 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/utils.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/utils.js +130 -0
- package/node_modules/@databricks/sdk-genie/dist/v1/utils.js.map +1 -0
- package/node_modules/@databricks/sdk-genie/package.json +46 -0
- package/node_modules/@databricks/sdk-statementexecution/LICENSE +203 -0
- package/node_modules/@databricks/sdk-statementexecution/README.md +23 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/package.js +7 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/package.js.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/client.d.ts +91 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/client.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/client.js +183 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/client.js.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/index.d.ts +3 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/index.js +4 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/model.d.ts +506 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/model.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/model.js +302 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/model.js.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/transport.d.ts +37 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/transport.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/transport.js +73 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/transport.js.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/utils.d.ts +25 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/utils.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/utils.js +87 -0
- package/node_modules/@databricks/sdk-statementexecution/dist/v1/utils.js.map +1 -0
- package/node_modules/@databricks/sdk-statementexecution/package.json +46 -0
- package/node_modules/@databricks/sdk-vectorsearch/LICENSE +203 -0
- package/node_modules/@databricks/sdk-vectorsearch/README.md +23 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/package.js +7 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/package.js.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/client.d.ts +70 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/client.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/client.js +474 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/client.js.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/index.d.ts +3 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/index.js +4 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/model.d.ts +704 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/model.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/model.js +635 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/model.js.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/transport.d.ts +37 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/transport.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/transport.js +73 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/transport.js.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/utils.d.ts +37 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/utils.d.ts.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/utils.js +104 -0
- package/node_modules/@databricks/sdk-vectorsearch/dist/v1/utils.js.map +1 -0
- package/node_modules/@databricks/sdk-vectorsearch/package.json +46 -0
- package/package.json +29 -4
- package/sbom.cdx.json +1 -1
- package/dist/shared/src/workspace-client/errors.d.ts +0 -1
- package/dist/shared/src/workspace-client/legacy.d.ts +0 -3
- package/dist/workspace-client/legacy.d.ts +0 -34
- package/dist/workspace-client/legacy.d.ts.map +0 -1
- package/dist/workspace-client/legacy.js +0 -23
- package/dist/workspace-client/legacy.js.map +0 -1
- package/docs/api/appkit/Interface.WorkspaceClientLike.md +0 -67
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {Temporal} from '@js-temporal/polyfill';\nimport type {JsonValue} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\nconst jsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>\n z.union([\n z.null(),\n z.number(),\n z.string(),\n z.boolean(),\n z.record(z.string(), jsonValueSchema),\n z.array(jsonValueSchema),\n ])\n);\n\n/** Type of endpoint. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const EndpointType = {\n STORAGE_OPTIMIZED: 'STORAGE_OPTIMIZED',\n STANDARD: 'STANDARD',\n} as const;\nexport type EndpointType =\n | (typeof EndpointType)[keyof typeof EndpointType]\n | (string & {});\n\n/**\n * The subtype of the AI Search index, determining the indexing and retrieval strategy.\n * - `VECTOR`: Not supported. Use `HYBRID` instead.\n * - `FULL_TEXT`: An index that uses full-text search without vector embeddings.\n * - `HYBRID`: An index that uses vector embeddings for similarity search and hybrid search.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const IndexSubtype = {\n VECTOR: 'VECTOR',\n FULL_TEXT: 'FULL_TEXT',\n HYBRID: 'HYBRID',\n} as const;\nexport type IndexSubtype =\n | (typeof IndexSubtype)[keyof typeof IndexSubtype]\n | (string & {});\n\n/**\n * Pipeline execution mode.\n * - `TRIGGERED`: If the pipeline uses the triggered execution mode, the system stops processing after successfully refreshing the source table in the pipeline once, ensuring the table is updated based on the data available when the update started.\n * - `CONTINUOUS`: If the pipeline uses continuous execution, the pipeline processes new data as it arrives in the source table to keep vector index fresh.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const PipelineType = {\n TRIGGERED: 'TRIGGERED',\n CONTINUOUS: 'CONTINUOUS',\n} as const;\nexport type PipelineType =\n | (typeof PipelineType)[keyof typeof PipelineType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ScalingChangeState = {\n SCALING_CHANGE_UNSPECIFIED: 'SCALING_CHANGE_UNSPECIFIED',\n SCALING_CHANGE_APPLIED: 'SCALING_CHANGE_APPLIED',\n SCALING_CHANGE_IN_PROGRESS: 'SCALING_CHANGE_IN_PROGRESS',\n} as const;\nexport type ScalingChangeState =\n | (typeof ScalingChangeState)[keyof typeof ScalingChangeState]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const UpsertDeleteDataStatus = {\n SUCCESS: 'SUCCESS',\n PARTIAL_SUCCESS: 'PARTIAL_SUCCESS',\n FAILURE: 'FAILURE',\n} as const;\nexport type UpsertDeleteDataStatus =\n | (typeof UpsertDeleteDataStatus)[keyof typeof UpsertDeleteDataStatus]\n | (string & {});\n\n/**\n * There are 2 types of AI Search indexes:\n * - `DELTA_SYNC`: An index that automatically syncs with a source Delta Table, automatically and incrementally updating the index as the underlying data in the Delta Table changes.\n * - `DIRECT_ACCESS`: An index that supports direct read and write of vectors and metadata through our REST and SDK APIs. With this model, the user manages index updates.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const VectorIndexType = {\n DELTA_SYNC: 'DELTA_SYNC',\n DIRECT_ACCESS: 'DIRECT_ACCESS',\n} as const;\nexport type VectorIndexType =\n | (typeof VectorIndexType)[keyof typeof VectorIndexType]\n | (string & {});\n\n/** Current state of the endpoint */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const EndpointStatus_State = {\n PROVISIONING: 'PROVISIONING',\n ONLINE: 'ONLINE',\n OFFLINE: 'OFFLINE',\n /**\n * After the endpoint is ready, it can be in one of the following states:\n * - RED_STATE: The endpoint is unhealthy and needs to be investigated.\n * - YELLOW_STATE: The endpoint is healthy but needs to be monitored.\n * - ONLINE: The endpoint is healthy and ready to serve traffic.\n */\n RED_STATE: 'RED_STATE',\n YELLOW_STATE: 'YELLOW_STATE',\n /**\n * The endpoint is being deleted or has been deleted. Associated resources\n * are being cleaned up; once cleanup completes the endpoint will no longer\n * be retrievable.\n */\n DELETED: 'DELETED',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type EndpointStatus_State =\n | (typeof EndpointStatus_State)[keyof typeof EndpointStatus_State]\n | (string & {});\n\nexport interface ColumnInfo {\n /** Name of the column. */\n name?: string | undefined;\n /** Data type of the column (e.g., \"string\", \"int\", \"array<float>\") */\n typeText?: string | undefined;\n}\n\nexport interface CreateEndpointRequest {\n /** Name of the AI Search endpoint */\n name?: string | undefined;\n /** Type of endpoint */\n endpointType?: EndpointType | undefined;\n /** The budget policy id to be applied */\n budgetPolicyId?: string | undefined;\n /** The usage policy id to be applied once we've migrated to usage policies */\n usagePolicyId?: string | undefined;\n /**\n * Target QPS for the endpoint. Mutually exclusive with num_replicas.\n * The actual replica count is calculated at index creation/sync time based on this value.\n * Best-effort target; the system does not guarantee this QPS will be achieved.\n */\n targetQps?: bigint | undefined;\n}\n\nexport interface CreateVectorIndexRequest {\n /** Name of the index */\n name?: string | undefined;\n /** Name of the endpoint to be used for serving the index */\n endpointName?: string | undefined;\n /** Primary key of the index */\n primaryKey?: string | undefined;\n indexType?: VectorIndexType | undefined;\n indexSpec?:\n | {\n $case: 'directAccessIndexSpec';\n /** Specification for Direct Vector Access Index. Required if `index_type` is `DIRECT_ACCESS`. */\n directAccessIndexSpec: DirectAccessVectorIndexSpec;\n }\n | {\n $case: 'deltaSyncIndexSpec';\n /** Specification for Delta Sync Index. Required if `index_type` is `DELTA_SYNC`. */\n deltaSyncIndexSpec: DeltaSyncVectorIndexSpecRequest;\n }\n | undefined;\n /** The subtype of the index. Use `HYBRID` or `FULL_TEXT`. `VECTOR` is not supported. */\n indexSubtype?: IndexSubtype | undefined;\n}\n\nexport interface CustomTag {\n /** Key field for an AI Search endpoint tag. */\n key?: string | undefined;\n /** [Optional] Value field for an AI Search endpoint tag. */\n value?: string | undefined;\n}\n\n/** Request payload for deleting data from a vector index. */\nexport interface DeleteDataVectorIndexRequest {\n /** Name of the vector index where data is to be deleted. Must be a Direct Vector Access Index. */\n name?: string | undefined;\n /** List of primary keys for the data to be deleted. */\n primaryKeys?: string[] | undefined;\n}\n\nexport interface DeleteDataVectorIndexResponse {\n /** Status of the delete operation. */\n status?: UpsertDeleteDataStatus | undefined;\n /** Result of the upsert or delete operation. */\n result?: UpsertDeleteDataResult | undefined;\n}\n\nexport interface DeleteEndpointRequest {\n /** Name of the AI Search endpoint */\n name?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DeleteEndpointResponse {}\n\nexport interface DeleteVectorIndexRequest {\n /** Name of the index */\n name?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DeleteVectorIndexResponse {}\n\nexport interface DeltaSyncVectorIndexSpec {\n /** The name of the source table. */\n sourceTable?: string | undefined;\n /** The columns that contain the embedding source. */\n embeddingSourceColumns?: EmbeddingSourceColumn[] | undefined;\n /** The columns that contain the embedding vectors. */\n embeddingVectorColumns?: EmbeddingVectorColumn[] | undefined;\n /**\n * Pipeline execution mode.\n * - `TRIGGERED`: If the pipeline uses the triggered execution mode, the system stops processing after successfully refreshing the source table in the pipeline once, ensuring the table is updated based on the data available when the update started.\n * - `CONTINUOUS`: If the pipeline uses continuous execution, the pipeline processes new data as it arrives in the source table to keep vector index fresh.\n */\n pipelineType?: PipelineType | undefined;\n /** The ID of the pipeline that is used to sync the index. */\n pipelineId?: string | undefined;\n /** [Optional] Name of the Delta table to sync the vector index contents and computed embeddings to. */\n embeddingWritebackTable?: string | undefined;\n /**\n * [Optional] Select the columns to sync with the vector index. If you leave this field blank, all columns\n * from the source table are synced with the index. The primary key column and embedding source column or\n * embedding vector column are always synced.\n */\n columnsToSync?: string[] | undefined;\n /**\n * [Optional] Alias for columns_to_sync. Select the columns to include in the vector index.\n * If you leave this field blank, all columns from the source table are included.\n * The primary key column and embedding source column or embedding vector column are always included.\n * Only one of columns_to_sync or columns_to_index may be specified.\n */\n columnsToIndex?: string[] | undefined;\n}\n\nexport interface DeltaSyncVectorIndexSpecRequest {\n /** The name of the source table. */\n sourceTable?: string | undefined;\n /** The columns that contain the embedding source. */\n embeddingSourceColumns?: EmbeddingSourceColumn[] | undefined;\n /** The columns that contain the embedding vectors. */\n embeddingVectorColumns?: EmbeddingVectorColumn[] | undefined;\n /**\n * Pipeline execution mode.\n * - `TRIGGERED`: If the pipeline uses the triggered execution mode, the system stops processing after successfully refreshing the source table in the pipeline once, ensuring the table is updated based on the data available when the update started.\n * - `CONTINUOUS`: If the pipeline uses continuous execution, the pipeline processes new data as it arrives in the source table to keep vector index fresh.\n */\n pipelineType?: PipelineType | undefined;\n /** The ID of the pipeline that is used to sync the index. */\n pipelineId?: string | undefined;\n /** [Optional] Name of the Delta table to sync the vector index contents and computed embeddings to. */\n embeddingWritebackTable?: string | undefined;\n /**\n * [Optional] Select the columns to sync with the vector index. If you leave this field blank, all columns\n * from the source table are synced with the index. The primary key column and embedding source column or\n * embedding vector column are always synced.\n */\n columnsToSync?: string[] | undefined;\n /**\n * [Optional] Alias for columns_to_sync. Select the columns to include in the vector index.\n * If you leave this field blank, all columns from the source table are included.\n * The primary key column and embedding source column or embedding vector column are always included.\n * Only one of columns_to_sync or columns_to_index may be specified.\n */\n columnsToIndex?: string[] | undefined;\n}\n\nexport interface DirectAccessVectorIndexSpec {\n /** The columns that contain the embedding vectors. The format should be array[double]. */\n embeddingVectorColumns?: EmbeddingVectorColumn[] | undefined;\n /**\n * The schema of the index in JSON format.\n * Supported types are `integer`, `long`, `float`, `double`, `boolean`, `string`, `date`, `timestamp`.\n * Supported types for vector column: `array<float>`, `array<double>`,`.\n */\n schemaJson?: string | undefined;\n /** The columns that contain the embedding source. The format should be array[double]. */\n embeddingSourceColumns?: EmbeddingSourceColumn[] | undefined;\n}\n\nexport interface EmbeddingSourceColumn {\n /** Name of the column */\n name?: string | undefined;\n /** TODO: clean up ai gateway related code. It's deprecated on ModelServing side. */\n embeddingConfig?:\n | {\n $case: 'embeddingModelEndpointName';\n /** Name of the embedding model endpoint, used by default for both ingestion and querying. */\n embeddingModelEndpointName: string;\n }\n | undefined;\n /** Name of the embedding model endpoint which, if specified, is used for querying (not ingestion). */\n modelEndpointNameForQuery?: string | undefined;\n}\n\nexport interface EmbeddingVectorColumn {\n /** Name of the column */\n name?: string | undefined;\n /** Dimension of the embedding vector */\n embeddingDimension?: number | undefined;\n}\n\nexport interface Endpoint {\n /** Name of the AI Search endpoint */\n name?: string | undefined;\n /** Creator of the endpoint */\n creator?: string | undefined;\n /** Timestamp of endpoint creation */\n creationTimestamp?: bigint | undefined;\n /** Timestamp of last update to the endpoint */\n lastUpdatedTimestamp?: bigint | undefined;\n /** Type of endpoint */\n endpointType?: EndpointType | undefined;\n /** User who last updated the endpoint */\n lastUpdatedUser?: string | undefined;\n /** Unique identifier of the endpoint */\n id?: string | undefined;\n /** Current status of the endpoint */\n endpointStatus?: EndpointStatus | undefined;\n /** Number of indexes on the endpoint */\n numIndexes?: number | undefined;\n /** The user-selected budget policy id for the endpoint. */\n budgetPolicyId?: string | undefined;\n /** The budget policy id applied to the endpoint */\n effectiveBudgetPolicyId?: string | undefined;\n /** The custom tags assigned to the endpoint */\n customTags?: CustomTag[] | undefined;\n /** Scaling information for the endpoint */\n scalingInfo?: EndpointScalingInfo | undefined;\n}\n\nexport interface EndpointScalingInfo {\n /** The current state of the scaling change request. */\n state?: ScalingChangeState | undefined;\n /**\n * The requested QPS target for the endpoint. Best-effort; the system does not\n * guarantee this QPS will be achieved.\n */\n requestedTargetQps?: bigint | undefined;\n}\n\n/** Status information of an endpoint */\nexport interface EndpointStatus {\n /** Current state of the endpoint */\n state?: EndpointStatus_State | undefined;\n /** Additional status message */\n message?: string | undefined;\n}\n\n/** Facet aggregation rows returned by a query. */\nexport interface FacetResultData {\n /** Number of facet rows returned. */\n facetRowCount?: number | undefined;\n /** Facet rows. Each row is `[facet_column_name, value_or_range, count]`. */\n facetArray?: JsonValue[][] | undefined;\n}\n\nexport interface GetEndpointRequest {\n /** Name of the endpoint */\n name?: string | undefined;\n}\n\nexport interface GetVectorIndexRequest {\n /** Name of the index */\n name?: string | undefined;\n /**\n * If true, the URL returned for the index is guaranteed to be compatible with the reranker.\n * Currently this means we return the CP URL regardless of how the index is being accessed.\n * If not set or set to false, the URL may still be compatible with the reranker depending on\n * what URL we return.\n */\n ensureRerankerCompatible?: boolean | undefined;\n}\n\nexport interface ListEndpointResponse {\n /** An array of Endpoint objects */\n endpoints?: Endpoint[] | undefined;\n /** A token that can be used to get the next page of results. If not present, there are no more results to show. */\n nextPageToken?: string | undefined;\n}\n\nexport interface ListEndpointsRequest {\n /** Token for pagination */\n pageToken?: string | undefined;\n}\n\nexport interface ListValue {\n /** Repeated field of dynamically typed values. */\n values?: Value[] | undefined;\n}\n\nexport interface ListVectorIndexRequest {\n /** Name of the endpoint */\n endpointName?: string | undefined;\n /** Token for pagination */\n pageToken?: string | undefined;\n}\n\nexport interface ListVectorIndexResponse {\n vectorIndexes?: MiniVectorIndex[] | undefined;\n /** A token that can be used to get the next page of results. If not present, there are no more results to show. */\n nextPageToken?: string | undefined;\n}\n\n/** Key-value pair. */\nexport interface MapStringValueEntry {\n /** Column name. */\n key?: string | undefined;\n /** Column value, nullable. */\n value?: Value | undefined;\n}\n\n/** Metric specification */\nexport interface Metric {\n /** Metric name */\n name?: string | undefined;\n /** Metric labels */\n labels?: MetricLabel[] | undefined;\n /** Percentile for the metric */\n percentile?: number | undefined;\n}\n\n/** Label for a metric */\nexport interface MetricLabel {\n /** Label name */\n name?: string | undefined;\n /** Label value */\n value?: string | undefined;\n}\n\n/** Single metric value at a specific timestamp */\nexport interface MetricValue {\n /** Timestamp of the metric value (milliseconds since epoch) */\n timestamp?: bigint | undefined;\n /** Metric value */\n value?: number | undefined;\n}\n\n/** Collection of metric values for a specific metric */\nexport interface MetricValues {\n /** Metric specification */\n metric?: Metric | undefined;\n /** Time series of metric values */\n values?: MetricValue[] | undefined;\n}\n\nexport interface MiniVectorIndex {\n /** Name of the index */\n name?: string | undefined;\n /** Name of the endpoint associated with the index */\n endpointName?: string | undefined;\n /** Primary key of the index */\n primaryKey?: string | undefined;\n indexType?: VectorIndexType | undefined;\n indexSpec?:\n | {\n $case: 'directAccessIndexSpec';\n directAccessIndexSpec: DirectAccessVectorIndexSpec;\n }\n | {\n $case: 'deltaSyncIndexSpec';\n deltaSyncIndexSpec: DeltaSyncVectorIndexSpec;\n }\n | undefined;\n status?: VectorIndexStatus | undefined;\n /** The user who created the index. */\n creator?: string | undefined;\n /** The subtype of the index. */\n indexSubtype?: IndexSubtype | undefined;\n /** ID of the endpoint associated with the index. */\n endpointId?: string | undefined;\n}\n\nexport interface PatchEndpointBudgetPolicyRequest {\n /** Name of the AI Search endpoint */\n name?: string | undefined;\n /** The budget policy id to be applied */\n budgetPolicyId?: string | undefined;\n}\n\nexport interface PatchEndpointBudgetPolicyResponse {\n budgetPolicyId?: string | undefined;\n /** The budget policy applied to the AI Search endpoint. */\n effectiveBudgetPolicyId?: string | undefined;\n}\n\nexport interface PatchEndpointRequest {\n /** Name of the AI Search endpoint */\n name?: string | undefined;\n /**\n * Target QPS for the endpoint. Best-effort; the system does not guarantee this QPS\n * will be achieved.\n */\n targetQps?: bigint | undefined;\n}\n\n/** Request payload for getting next page of results. */\nexport interface QueryVectorIndexNextPageRequest {\n /** Name of the vector index to query. */\n name?: string | undefined;\n /** Name of the endpoint. */\n endpointName?: string | undefined;\n /** Page token returned from previous `QueryVectorIndex` or `QueryVectorIndexNextPage` API. */\n pageToken?: string | undefined;\n}\n\nexport interface QueryVectorIndexRequest {\n /** Name of the vector index to query. */\n name?: string | undefined;\n /** Number of results to return. Defaults to 10. */\n numResults?: number | undefined;\n /** List of column names to include in the response. */\n columns?: string[] | undefined;\n /**\n * JSON string representing query filters.\n *\n * Example filters:\n *\n * - `{\"id <\": 5}`: Filter for id less than 5.\n * - `{\"id >\": 5}`: Filter for id greater than 5.\n * - `{\"id <=\": 5}`: Filter for id less than equal to 5.\n * - `{\"id >=\": 5}`: Filter for id greater than equal to 5.\n * - `{\"id\": 5}`: Filter for id equal to 5.\n */\n filtersJson?: string | undefined;\n /** Query vector. Required for Direct Vector Access Index and Delta Sync Index using self-managed vectors. */\n queryVector?: number[] | undefined;\n /** Query text. Required for Delta Sync Index using model endpoint. */\n queryText?: string | undefined;\n /** Threshold for the approximate nearest neighbor search. Defaults to 0.0. */\n scoreThreshold?: number | undefined;\n /** The query type to use. Choices are `ANN` and `HYBRID` and `FULL_TEXT`. Defaults to `ANN`. */\n queryType?: string | undefined;\n /** Column names used to retrieve data to send to the reranker. */\n columnsToRerank?: string[] | undefined;\n /**\n * If set, the top 50 results are reranked with the Databricks Reranker model before returning the `num_results` results to the user.\n * The setting `columns_to_rerank` selects which columns are used for reranking. For each datapoint, the columns selected are concatenated before\n * being sent to the reranking model. See https://docs.databricks.com/aws/en/vector-search/query-vector-search#rerank for more information.\n */\n reranker?: RerankerConfig | undefined;\n /** Text columns to search for `query_text`. When empty, all text columns are searched. */\n queryColumns?: string[] | undefined;\n /**\n * Sort results by column values instead of the default relevance ordering.\n * Each clause has the form `\"<column> ASC\"` or `\"<column> DESC\"`, for example\n * `[\"rating DESC\", \"price ASC\"]`.\n */\n sortColumns?: string[] | undefined;\n /**\n * Facets to compute over the matched results. Each entry has one of these forms:\n * `\"<column>\"` - top 10 distinct values by count\n * `\"<column> TOP <n>\"` - top n distinct values, where n > 0\n * `\"<column> BUCKETS [[from,to],...]\"` - inclusive numeric ranges\n * `TOP` and `BUCKETS` are case-insensitive. A column may appear at most once.\n */\n facets?: string[] | undefined;\n}\n\nexport interface QueryVectorIndexResponse {\n /** Metadata about the result set. */\n manifest?: ResultManifest | undefined;\n /** Data returned in the query result. */\n result?: ResultData | undefined;\n /**\n * [Optional] Token that can be used in `QueryVectorIndexNextPage` API to get next page of results.\n * If more than 1000 results satisfy the query, they are returned in groups of 1000.\n * Empty value means no more results. The maximum number of results that can be returned is 10,000.\n */\n nextPageToken?: string | undefined;\n /** Facet aggregation rows returned by a query. */\n facetResult?: FacetResultData | undefined;\n}\n\nexport interface RerankerConfig {\n /**\n * Reranker identifier:\n * - When model_type=BASE/UNSPECIFIED: must be \"databricks_reranker\".\n * - When model_type=FINETUNED: the Model Serving endpoint name hosting a finetuned reranker.\n */\n model?: string | undefined;\n /** Parameters that control how the reranker processes the query results. */\n parameters?: RerankerConfig_RerankerParameters | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface RerankerConfig_RerankerParameters {\n columnsToRerank?: string[] | undefined;\n}\n\n/** Data returned in the query result. */\nexport interface ResultData {\n /** Number of rows in the result set. */\n rowCount?: number | undefined;\n /** Data rows returned in the query. */\n dataArray?: JsonValue[][] | undefined;\n}\n\n/** Metadata about the result set. */\nexport interface ResultManifest {\n /** Number of columns in the result set. */\n columnCount?: number | undefined;\n /** Information about each column in the result set. */\n columns?: ColumnInfo[] | undefined;\n /** Number of columns in `facet_result`. */\n facetColumnCount?: number | undefined;\n /** Information about each column in `facet_result`. */\n facetColumns?: ColumnInfo[] | undefined;\n}\n\n/** Request to retrieve user-visible metrics */\nexport interface RetrieveUserVisibleMetricsRequest {\n /** AI Search endpoint name */\n name?: string | undefined;\n /** Start time for metrics query */\n startTime?: Temporal.Instant | undefined;\n /** End time for metrics query */\n endTime?: Temporal.Instant | undefined;\n /** Granularity in seconds */\n granularityInSeconds?: number | undefined;\n /** List of metrics to retrieve */\n metrics?: Metric[] | undefined;\n /** Token for pagination */\n pageToken?: string | undefined;\n}\n\n/** Response containing user-visible metrics */\nexport interface RetrieveUserVisibleMetricsResponse {\n /** Collection of metric values */\n metricValues?: MetricValues[] | undefined;\n /** A token that can be used to get the next page of results. If not present, there are no more results to show. */\n nextPageToken?: string | undefined;\n}\n\nexport interface ScanVectorIndexRequest {\n /** Name of the vector index to scan. */\n name?: string | undefined;\n /** Number of results to return. Defaults to 10. */\n numResults?: number | undefined;\n /** Primary key of the last entry returned in the previous scan. */\n lastPrimaryKey?: string | undefined;\n}\n\n/** Response to a scan vector index request. */\nexport interface ScanVectorIndexResponse {\n /** List of data entries */\n data?: Struct[] | undefined;\n /** Primary key of the last entry. */\n lastPrimaryKey?: string | undefined;\n}\n\nexport interface Struct {\n /** Data entry, corresponding to a row in a vector index. */\n fields?: MapStringValueEntry[] | undefined;\n}\n\nexport interface SyncVectorIndexRequest {\n /** Name of the vector index to synchronize. Must be a Delta Sync Index. */\n name?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface SyncVectorIndexResponse {}\n\nexport interface UpdateEndpointCustomTagsRequest {\n /** Name of the AI Search endpoint */\n name?: string | undefined;\n /** The new custom tags for the AI Search endpoint */\n customTags?: CustomTag[] | undefined;\n}\n\nexport interface UpdateEndpointCustomTagsResponse {\n /** The name of the AI Search endpoint whose custom tags were updated. */\n name?: string | undefined;\n /** All the custom tags that are applied to the AI Search endpoint. */\n customTags?: CustomTag[] | undefined;\n}\n\nexport interface UpsertDataVectorIndexRequest {\n /** Name of the vector index where data is to be upserted. Must be a Direct Vector Access Index. */\n name?: string | undefined;\n /** JSON string representing the data to be upserted. */\n inputsJson?: string | undefined;\n}\n\nexport interface UpsertDataVectorIndexResponse {\n /** Status of the upsert operation. */\n status?: UpsertDeleteDataStatus | undefined;\n /** Result of the upsert or delete operation. */\n result?: UpsertDeleteDataResult | undefined;\n}\n\nexport interface UpsertDeleteDataResult {\n /** Count of successfully processed rows. */\n successRowCount?: bigint | undefined;\n /** List of primary keys for rows that failed to process. */\n failedPrimaryKeys?: string[] | undefined;\n}\n\nexport interface Value {\n /** (--The kind of value.--) */\n kind?:\n | {$case: 'numberValue'; numberValue: number}\n | {$case: 'stringValue'; stringValue: string}\n | {$case: 'boolValue'; boolValue: boolean}\n | {$case: 'structValue'; structValue: Struct}\n | {$case: 'listValue'; listValue: ListValue}\n | undefined;\n}\n\nexport interface VectorIndex {\n /** Name of the index */\n name?: string | undefined;\n /** Name of the endpoint associated with the index */\n endpointName?: string | undefined;\n /** Primary key of the index */\n primaryKey?: string | undefined;\n indexType?: VectorIndexType | undefined;\n indexSpec?:\n | {\n $case: 'directAccessIndexSpec';\n directAccessIndexSpec: DirectAccessVectorIndexSpec;\n }\n | {\n $case: 'deltaSyncIndexSpec';\n deltaSyncIndexSpec: DeltaSyncVectorIndexSpec;\n }\n | undefined;\n status?: VectorIndexStatus | undefined;\n /** The user who created the index. */\n creator?: string | undefined;\n /** The subtype of the index. */\n indexSubtype?: IndexSubtype | undefined;\n /** ID of the endpoint associated with the index. */\n endpointId?: string | undefined;\n}\n\nexport interface VectorIndexStatus {\n /** Message associated with the index status */\n message?: string | undefined;\n /** Number of rows indexed */\n indexedRowCount?: bigint | undefined;\n /** Whether the index is ready for search */\n ready?: boolean | undefined;\n /** Index API Url to be used to perform operations on the index */\n indexUrl?: string | undefined;\n}\n\nexport const unmarshalColumnInfoSchema: z.ZodType<ColumnInfo> = z\n .object({\n name: z.string().optional(),\n type_text: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n typeText: d.type_text,\n }));\n\nexport const unmarshalCustomTagSchema: z.ZodType<CustomTag> = z\n .object({\n key: z.string().optional(),\n value: z.string().optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\nexport const unmarshalDeleteDataVectorIndexResponseSchema: z.ZodType<DeleteDataVectorIndexResponse> =\n z\n .object({\n status: z.string().optional(),\n result: z.lazy(() => unmarshalUpsertDeleteDataResultSchema).optional(),\n })\n .transform(d => ({\n status: d.status,\n result: d.result,\n }));\n\nexport const unmarshalDeleteEndpointResponseSchema: z.ZodType<DeleteEndpointResponse> =\n z.object({});\n\nexport const unmarshalDeleteVectorIndexResponseSchema: z.ZodType<DeleteVectorIndexResponse> =\n z.object({});\n\nexport const unmarshalDeltaSyncVectorIndexSpecSchema: z.ZodType<DeltaSyncVectorIndexSpec> =\n z\n .object({\n source_table: z.string().optional(),\n embedding_source_columns: z\n .array(z.lazy(() => unmarshalEmbeddingSourceColumnSchema))\n .optional(),\n embedding_vector_columns: z\n .array(z.lazy(() => unmarshalEmbeddingVectorColumnSchema))\n .optional(),\n pipeline_type: z.string().optional(),\n pipeline_id: z.string().optional(),\n embedding_writeback_table: z.string().optional(),\n columns_to_sync: z.array(z.string()).optional(),\n columns_to_index: z.array(z.string()).optional(),\n })\n .transform(d => ({\n sourceTable: d.source_table,\n embeddingSourceColumns: d.embedding_source_columns,\n embeddingVectorColumns: d.embedding_vector_columns,\n pipelineType: d.pipeline_type,\n pipelineId: d.pipeline_id,\n embeddingWritebackTable: d.embedding_writeback_table,\n columnsToSync: d.columns_to_sync,\n columnsToIndex: d.columns_to_index,\n }));\n\nexport const unmarshalDirectAccessVectorIndexSpecSchema: z.ZodType<DirectAccessVectorIndexSpec> =\n z\n .object({\n embedding_vector_columns: z\n .array(z.lazy(() => unmarshalEmbeddingVectorColumnSchema))\n .optional(),\n schema_json: z.string().optional(),\n embedding_source_columns: z\n .array(z.lazy(() => unmarshalEmbeddingSourceColumnSchema))\n .optional(),\n })\n .transform(d => ({\n embeddingVectorColumns: d.embedding_vector_columns,\n schemaJson: d.schema_json,\n embeddingSourceColumns: d.embedding_source_columns,\n }));\n\nexport const unmarshalEmbeddingSourceColumnSchema: z.ZodType<EmbeddingSourceColumn> =\n z\n .object({\n name: z.string().optional(),\n embedding_model_endpoint_name: z.string().optional(),\n model_endpoint_name_for_query: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n embeddingConfig:\n d.embedding_model_endpoint_name !== undefined\n ? {\n $case: 'embeddingModelEndpointName' as const,\n embeddingModelEndpointName: d.embedding_model_endpoint_name,\n }\n : undefined,\n modelEndpointNameForQuery: d.model_endpoint_name_for_query,\n }));\n\nexport const unmarshalEmbeddingVectorColumnSchema: z.ZodType<EmbeddingVectorColumn> =\n z\n .object({\n name: z.string().optional(),\n embedding_dimension: z.number().optional(),\n })\n .transform(d => ({\n name: d.name,\n embeddingDimension: d.embedding_dimension,\n }));\n\nexport const unmarshalEndpointSchema: z.ZodType<Endpoint> = z\n .object({\n name: z.string().optional(),\n creator: z.string().optional(),\n creation_timestamp: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n last_updated_timestamp: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n endpoint_type: z.string().optional(),\n last_updated_user: z.string().optional(),\n id: z.string().optional(),\n endpoint_status: z.lazy(() => unmarshalEndpointStatusSchema).optional(),\n num_indexes: z.number().optional(),\n budget_policy_id: z.string().optional(),\n effective_budget_policy_id: z.string().optional(),\n custom_tags: z.array(z.lazy(() => unmarshalCustomTagSchema)).optional(),\n scaling_info: z.lazy(() => unmarshalEndpointScalingInfoSchema).optional(),\n })\n .transform(d => ({\n name: d.name,\n creator: d.creator,\n creationTimestamp: d.creation_timestamp,\n lastUpdatedTimestamp: d.last_updated_timestamp,\n endpointType: d.endpoint_type,\n lastUpdatedUser: d.last_updated_user,\n id: d.id,\n endpointStatus: d.endpoint_status,\n numIndexes: d.num_indexes,\n budgetPolicyId: d.budget_policy_id,\n effectiveBudgetPolicyId: d.effective_budget_policy_id,\n customTags: d.custom_tags,\n scalingInfo: d.scaling_info,\n }));\n\nexport const unmarshalEndpointScalingInfoSchema: z.ZodType<EndpointScalingInfo> =\n z\n .object({\n state: z.string().optional(),\n requested_target_qps: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n })\n .transform(d => ({\n state: d.state,\n requestedTargetQps: d.requested_target_qps,\n }));\n\nexport const unmarshalEndpointStatusSchema: z.ZodType<EndpointStatus> = z\n .object({\n state: z.string().optional(),\n message: z.string().optional(),\n })\n .transform(d => ({\n state: d.state,\n message: d.message,\n }));\n\nexport const unmarshalFacetResultDataSchema: z.ZodType<FacetResultData> = z\n .object({\n facet_row_count: z.number().optional(),\n facet_array: z.array(z.array(jsonValueSchema)).optional(),\n })\n .transform(d => ({\n facetRowCount: d.facet_row_count,\n facetArray: d.facet_array,\n }));\n\nexport const unmarshalListEndpointResponseSchema: z.ZodType<ListEndpointResponse> =\n z\n .object({\n endpoints: z.array(z.lazy(() => unmarshalEndpointSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n endpoints: d.endpoints,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListValueSchema: z.ZodType<ListValue> = z\n .object({\n values: z.array(z.lazy(() => unmarshalValueSchema)).optional(),\n })\n .transform(d => ({\n values: d.values,\n }));\n\nexport const unmarshalListVectorIndexResponseSchema: z.ZodType<ListVectorIndexResponse> =\n z\n .object({\n vector_indexes: z\n .array(z.lazy(() => unmarshalMiniVectorIndexSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n vectorIndexes: d.vector_indexes,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalMapStringValueEntrySchema: z.ZodType<MapStringValueEntry> =\n z\n .object({\n key: z.string().optional(),\n value: z.lazy(() => unmarshalValueSchema).optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\nexport const unmarshalMetricSchema: z.ZodType<Metric> = z\n .object({\n name: z.string().optional(),\n labels: z.array(z.lazy(() => unmarshalMetricLabelSchema)).optional(),\n percentile: z.number().optional(),\n })\n .transform(d => ({\n name: d.name,\n labels: d.labels,\n percentile: d.percentile,\n }));\n\nexport const unmarshalMetricLabelSchema: z.ZodType<MetricLabel> = z\n .object({\n name: z.string().optional(),\n value: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n value: d.value,\n }));\n\nexport const unmarshalMetricValueSchema: z.ZodType<MetricValue> = z\n .object({\n timestamp: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n value: z.number().optional(),\n })\n .transform(d => ({\n timestamp: d.timestamp,\n value: d.value,\n }));\n\nexport const unmarshalMetricValuesSchema: z.ZodType<MetricValues> = z\n .object({\n metric: z.lazy(() => unmarshalMetricSchema).optional(),\n values: z.array(z.lazy(() => unmarshalMetricValueSchema)).optional(),\n })\n .transform(d => ({\n metric: d.metric,\n values: d.values,\n }));\n\nexport const unmarshalMiniVectorIndexSchema: z.ZodType<MiniVectorIndex> = z\n .object({\n name: z.string().optional(),\n endpoint_name: z.string().optional(),\n primary_key: z.string().optional(),\n index_type: z.string().optional(),\n direct_access_index_spec: z\n .lazy(() => unmarshalDirectAccessVectorIndexSpecSchema)\n .optional(),\n delta_sync_index_spec: z\n .lazy(() => unmarshalDeltaSyncVectorIndexSpecSchema)\n .optional(),\n status: z.lazy(() => unmarshalVectorIndexStatusSchema).optional(),\n creator: z.string().optional(),\n index_subtype: z.string().optional(),\n endpoint_id: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n endpointName: d.endpoint_name,\n primaryKey: d.primary_key,\n indexType: d.index_type,\n indexSpec:\n d.direct_access_index_spec !== undefined\n ? {\n $case: 'directAccessIndexSpec' as const,\n directAccessIndexSpec: d.direct_access_index_spec,\n }\n : d.delta_sync_index_spec !== undefined\n ? {\n $case: 'deltaSyncIndexSpec' as const,\n deltaSyncIndexSpec: d.delta_sync_index_spec,\n }\n : undefined,\n status: d.status,\n creator: d.creator,\n indexSubtype: d.index_subtype,\n endpointId: d.endpoint_id,\n }));\n\nexport const unmarshalPatchEndpointBudgetPolicyResponseSchema: z.ZodType<PatchEndpointBudgetPolicyResponse> =\n z\n .object({\n budget_policy_id: z.string().optional(),\n effective_budget_policy_id: z.string().optional(),\n })\n .transform(d => ({\n budgetPolicyId: d.budget_policy_id,\n effectiveBudgetPolicyId: d.effective_budget_policy_id,\n }));\n\nexport const unmarshalQueryVectorIndexResponseSchema: z.ZodType<QueryVectorIndexResponse> =\n z\n .object({\n manifest: z.lazy(() => unmarshalResultManifestSchema).optional(),\n result: z.lazy(() => unmarshalResultDataSchema).optional(),\n next_page_token: z.string().optional(),\n facet_result: z.lazy(() => unmarshalFacetResultDataSchema).optional(),\n })\n .transform(d => ({\n manifest: d.manifest,\n result: d.result,\n nextPageToken: d.next_page_token,\n facetResult: d.facet_result,\n }));\n\nexport const unmarshalResultDataSchema: z.ZodType<ResultData> = z\n .object({\n row_count: z.number().optional(),\n data_array: z.array(z.array(jsonValueSchema)).optional(),\n })\n .transform(d => ({\n rowCount: d.row_count,\n dataArray: d.data_array,\n }));\n\nexport const unmarshalResultManifestSchema: z.ZodType<ResultManifest> = z\n .object({\n column_count: z.number().optional(),\n columns: z.array(z.lazy(() => unmarshalColumnInfoSchema)).optional(),\n facet_column_count: z.number().optional(),\n facet_columns: z.array(z.lazy(() => unmarshalColumnInfoSchema)).optional(),\n })\n .transform(d => ({\n columnCount: d.column_count,\n columns: d.columns,\n facetColumnCount: d.facet_column_count,\n facetColumns: d.facet_columns,\n }));\n\nexport const unmarshalRetrieveUserVisibleMetricsResponseSchema: z.ZodType<RetrieveUserVisibleMetricsResponse> =\n z\n .object({\n metric_values: z\n .array(z.lazy(() => unmarshalMetricValuesSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n metricValues: d.metric_values,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalScanVectorIndexResponseSchema: z.ZodType<ScanVectorIndexResponse> =\n z\n .object({\n data: z.array(z.lazy(() => unmarshalStructSchema)).optional(),\n last_primary_key: z.string().optional(),\n })\n .transform(d => ({\n data: d.data,\n lastPrimaryKey: d.last_primary_key,\n }));\n\nexport const unmarshalStructSchema: z.ZodType<Struct> = z\n .object({\n fields: z\n .array(z.lazy(() => unmarshalMapStringValueEntrySchema))\n .optional(),\n })\n .transform(d => ({\n fields: d.fields,\n }));\n\nexport const unmarshalSyncVectorIndexResponseSchema: z.ZodType<SyncVectorIndexResponse> =\n z.object({});\n\nexport const unmarshalUpdateEndpointCustomTagsResponseSchema: z.ZodType<UpdateEndpointCustomTagsResponse> =\n z\n .object({\n name: z.string().optional(),\n custom_tags: z.array(z.lazy(() => unmarshalCustomTagSchema)).optional(),\n })\n .transform(d => ({\n name: d.name,\n customTags: d.custom_tags,\n }));\n\nexport const unmarshalUpsertDataVectorIndexResponseSchema: z.ZodType<UpsertDataVectorIndexResponse> =\n z\n .object({\n status: z.string().optional(),\n result: z.lazy(() => unmarshalUpsertDeleteDataResultSchema).optional(),\n })\n .transform(d => ({\n status: d.status,\n result: d.result,\n }));\n\nexport const unmarshalUpsertDeleteDataResultSchema: z.ZodType<UpsertDeleteDataResult> =\n z\n .object({\n success_row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n failed_primary_keys: z.array(z.string()).optional(),\n })\n .transform(d => ({\n successRowCount: d.success_row_count,\n failedPrimaryKeys: d.failed_primary_keys,\n }));\n\nexport const unmarshalValueSchema: z.ZodType<Value> = z\n .object({\n number_value: z.number().optional(),\n string_value: z.string().optional(),\n bool_value: z.boolean().optional(),\n struct_value: z.lazy(() => unmarshalStructSchema).optional(),\n list_value: z.lazy(() => unmarshalListValueSchema).optional(),\n })\n .transform(d => ({\n kind:\n d.number_value !== undefined\n ? {$case: 'numberValue' as const, numberValue: d.number_value}\n : d.string_value !== undefined\n ? {$case: 'stringValue' as const, stringValue: d.string_value}\n : d.bool_value !== undefined\n ? {$case: 'boolValue' as const, boolValue: d.bool_value}\n : d.struct_value !== undefined\n ? {$case: 'structValue' as const, structValue: d.struct_value}\n : d.list_value !== undefined\n ? {$case: 'listValue' as const, listValue: d.list_value}\n : undefined,\n }));\n\nexport const unmarshalVectorIndexSchema: z.ZodType<VectorIndex> = z\n .object({\n name: z.string().optional(),\n endpoint_name: z.string().optional(),\n primary_key: z.string().optional(),\n index_type: z.string().optional(),\n direct_access_index_spec: z\n .lazy(() => unmarshalDirectAccessVectorIndexSpecSchema)\n .optional(),\n delta_sync_index_spec: z\n .lazy(() => unmarshalDeltaSyncVectorIndexSpecSchema)\n .optional(),\n status: z.lazy(() => unmarshalVectorIndexStatusSchema).optional(),\n creator: z.string().optional(),\n index_subtype: z.string().optional(),\n endpoint_id: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n endpointName: d.endpoint_name,\n primaryKey: d.primary_key,\n indexType: d.index_type,\n indexSpec:\n d.direct_access_index_spec !== undefined\n ? {\n $case: 'directAccessIndexSpec' as const,\n directAccessIndexSpec: d.direct_access_index_spec,\n }\n : d.delta_sync_index_spec !== undefined\n ? {\n $case: 'deltaSyncIndexSpec' as const,\n deltaSyncIndexSpec: d.delta_sync_index_spec,\n }\n : undefined,\n status: d.status,\n creator: d.creator,\n indexSubtype: d.index_subtype,\n endpointId: d.endpoint_id,\n }));\n\nexport const unmarshalVectorIndexStatusSchema: z.ZodType<VectorIndexStatus> = z\n .object({\n message: z.string().optional(),\n indexed_row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n ready: z.boolean().optional(),\n index_url: z.string().optional(),\n })\n .transform(d => ({\n message: d.message,\n indexedRowCount: d.indexed_row_count,\n ready: d.ready,\n indexUrl: d.index_url,\n }));\n\nexport const marshalCreateEndpointRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n endpointType: z.string().optional(),\n budgetPolicyId: z.string().optional(),\n usagePolicyId: z.string().optional(),\n targetQps: z.bigint().optional(),\n })\n .transform(d => ({\n name: d.name,\n endpoint_type: d.endpointType,\n budget_policy_id: d.budgetPolicyId,\n usage_policy_id: d.usagePolicyId,\n target_qps: d.targetQps,\n }));\n\nexport const marshalCreateVectorIndexRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n endpointName: z.string().optional(),\n primaryKey: z.string().optional(),\n indexType: z.string().optional(),\n indexSpec: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('directAccessIndexSpec'),\n directAccessIndexSpec: z.lazy(\n () => marshalDirectAccessVectorIndexSpecSchema\n ),\n }),\n z.object({\n $case: z.literal('deltaSyncIndexSpec'),\n deltaSyncIndexSpec: z.lazy(\n () => marshalDeltaSyncVectorIndexSpecRequestSchema\n ),\n }),\n ])\n .optional(),\n indexSubtype: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n endpoint_name: d.endpointName,\n primary_key: d.primaryKey,\n index_type: d.indexType,\n ...(d.indexSpec?.$case === 'directAccessIndexSpec' && {\n direct_access_index_spec: d.indexSpec.directAccessIndexSpec,\n }),\n ...(d.indexSpec?.$case === 'deltaSyncIndexSpec' && {\n delta_sync_index_spec: d.indexSpec.deltaSyncIndexSpec,\n }),\n index_subtype: d.indexSubtype,\n }));\n\nexport const marshalCustomTagSchema: z.ZodType = z\n .object({\n key: z.string().optional(),\n value: z.string().optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\nexport const marshalDeltaSyncVectorIndexSpecRequestSchema: z.ZodType = z\n .object({\n sourceTable: z.string().optional(),\n embeddingSourceColumns: z\n .array(z.lazy(() => marshalEmbeddingSourceColumnSchema))\n .optional(),\n embeddingVectorColumns: z\n .array(z.lazy(() => marshalEmbeddingVectorColumnSchema))\n .optional(),\n pipelineType: z.string().optional(),\n pipelineId: z.string().optional(),\n embeddingWritebackTable: z.string().optional(),\n columnsToSync: z.array(z.string()).optional(),\n columnsToIndex: z.array(z.string()).optional(),\n })\n .transform(d => ({\n source_table: d.sourceTable,\n embedding_source_columns: d.embeddingSourceColumns,\n embedding_vector_columns: d.embeddingVectorColumns,\n pipeline_type: d.pipelineType,\n pipeline_id: d.pipelineId,\n embedding_writeback_table: d.embeddingWritebackTable,\n columns_to_sync: d.columnsToSync,\n columns_to_index: d.columnsToIndex,\n }));\n\nexport const marshalDirectAccessVectorIndexSpecSchema: z.ZodType = z\n .object({\n embeddingVectorColumns: z\n .array(z.lazy(() => marshalEmbeddingVectorColumnSchema))\n .optional(),\n schemaJson: z.string().optional(),\n embeddingSourceColumns: z\n .array(z.lazy(() => marshalEmbeddingSourceColumnSchema))\n .optional(),\n })\n .transform(d => ({\n embedding_vector_columns: d.embeddingVectorColumns,\n schema_json: d.schemaJson,\n embedding_source_columns: d.embeddingSourceColumns,\n }));\n\nexport const marshalEmbeddingSourceColumnSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n embeddingConfig: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('embeddingModelEndpointName'),\n embeddingModelEndpointName: z.string(),\n }),\n ])\n .optional(),\n modelEndpointNameForQuery: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n ...(d.embeddingConfig?.$case === 'embeddingModelEndpointName' && {\n embedding_model_endpoint_name:\n d.embeddingConfig.embeddingModelEndpointName,\n }),\n model_endpoint_name_for_query: d.modelEndpointNameForQuery,\n }));\n\nexport const marshalEmbeddingVectorColumnSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n embeddingDimension: z.number().optional(),\n })\n .transform(d => ({\n name: d.name,\n embedding_dimension: d.embeddingDimension,\n }));\n\nexport const marshalMetricSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n labels: z.array(z.lazy(() => marshalMetricLabelSchema)).optional(),\n percentile: z.number().optional(),\n })\n .transform(d => ({\n name: d.name,\n labels: d.labels,\n percentile: d.percentile,\n }));\n\nexport const marshalMetricLabelSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n value: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n value: d.value,\n }));\n\nexport const marshalPatchEndpointBudgetPolicyRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n budgetPolicyId: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n budget_policy_id: d.budgetPolicyId,\n }));\n\nexport const marshalPatchEndpointRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n targetQps: z.bigint().optional(),\n })\n .transform(d => ({\n name: d.name,\n target_qps: d.targetQps,\n }));\n\nexport const marshalQueryVectorIndexNextPageRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n endpointName: z.string().optional(),\n pageToken: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n endpoint_name: d.endpointName,\n page_token: d.pageToken,\n }));\n\nexport const marshalQueryVectorIndexRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n numResults: z.number().optional(),\n columns: z.array(z.string()).optional(),\n filtersJson: z.string().optional(),\n queryVector: z.array(z.number()).optional(),\n queryText: z.string().optional(),\n scoreThreshold: z.number().optional(),\n queryType: z.string().optional(),\n columnsToRerank: z.array(z.string()).optional(),\n reranker: z.lazy(() => marshalRerankerConfigSchema).optional(),\n queryColumns: z.array(z.string()).optional(),\n sortColumns: z.array(z.string()).optional(),\n facets: z.array(z.string()).optional(),\n })\n .transform(d => ({\n name: d.name,\n num_results: d.numResults,\n columns: d.columns,\n filters_json: d.filtersJson,\n query_vector: d.queryVector,\n query_text: d.queryText,\n score_threshold: d.scoreThreshold,\n query_type: d.queryType,\n columns_to_rerank: d.columnsToRerank,\n reranker: d.reranker,\n query_columns: d.queryColumns,\n sort_columns: d.sortColumns,\n facets: d.facets,\n }));\n\nexport const marshalRerankerConfigSchema: z.ZodType = z\n .object({\n model: z.string().optional(),\n parameters: z\n .lazy(() => marshalRerankerConfig_RerankerParametersSchema)\n .optional(),\n })\n .transform(d => ({\n model: d.model,\n parameters: d.parameters,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalRerankerConfig_RerankerParametersSchema: z.ZodType = z\n .object({\n columnsToRerank: z.array(z.string()).optional(),\n })\n .transform(d => ({\n columns_to_rerank: d.columnsToRerank,\n }));\n\nexport const marshalRetrieveUserVisibleMetricsRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n startTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n endTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n granularityInSeconds: z.number().optional(),\n metrics: z.array(z.lazy(() => marshalMetricSchema)).optional(),\n pageToken: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n start_time: d.startTime,\n end_time: d.endTime,\n granularity_in_seconds: d.granularityInSeconds,\n metrics: d.metrics,\n page_token: d.pageToken,\n }));\n\nexport const marshalScanVectorIndexRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n numResults: z.number().optional(),\n lastPrimaryKey: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n num_results: d.numResults,\n last_primary_key: d.lastPrimaryKey,\n }));\n\nexport const marshalSyncVectorIndexRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n }));\n\nexport const marshalUpdateEndpointCustomTagsRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n customTags: z.array(z.lazy(() => marshalCustomTagSchema)).optional(),\n })\n .transform(d => ({\n name: d.name,\n custom_tags: d.customTags,\n }));\n\nexport const marshalUpsertDataVectorIndexRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n inputsJson: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n inputs_json: d.inputsJson,\n }));\n"],"mappings":";;;AAMA,MAAM,kBAAwC,EAAE,WAC9C,EAAE,MAAM;CACN,EAAE,MAAM;CACR,EAAE,QAAQ;CACV,EAAE,QAAQ;CACV,EAAE,SAAS;CACX,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB;CACrC,EAAE,MAAM,gBAAgB;CACzB,CAAC,CACH;;AAID,MAAa,eAAe;CAC1B,mBAAmB;CACnB,UAAU;CACX;;;;;;;AAYD,MAAa,eAAe;CAC1B,QAAQ;CACR,WAAW;CACX,QAAQ;CACT;;;;;;AAWD,MAAa,eAAe;CAC1B,WAAW;CACX,YAAY;CACb;AAMD,MAAa,qBAAqB;CAChC,4BAA4B;CAC5B,wBAAwB;CACxB,4BAA4B;CAC7B;AAMD,MAAa,yBAAyB;CACpC,SAAS;CACT,iBAAiB;CACjB,SAAS;CACV;;;;;;AAWD,MAAa,kBAAkB;CAC7B,YAAY;CACZ,eAAe;CAChB;;AAOD,MAAa,uBAAuB;CAClC,cAAc;CACd,QAAQ;CACR,SAAS;CAOT,WAAW;CACX,cAAc;CAMd,SAAS;CACV;AA6nBD,MAAa,4BAAmD,EAC7D,OAAO;CACN,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,WAAW,EAAE,QAAQ,CAAC,UAAU;CACjC,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,UAAU,EAAE;CACb,EAAE;AAEL,MAAa,2BAAiD,EAC3D,OAAO;CACN,KAAK,EAAE,QAAQ,CAAC,UAAU;CAC1B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC7B,CAAC,CACD,WAAU,OAAM;CACf,KAAK,EAAE;CACP,OAAO,EAAE;CACV,EAAE;AAEL,MAAa,+CACX,EACG,OAAO;CACN,QA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ACrE,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,aAAa,EAAE;CAChB,EAAE;AAEL,MAAa,4CAAuD,EACjE,OAAO;CACN,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,YAAY,EAAE,QAAQ,CAAC,UAAU;CAClC,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,aAAa,EAAE;CAChB,EAAE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HttpClient } from "@databricks/sdk-core/http";
|
|
2
|
+
import { ClientOptions } from "@databricks/sdk-options/client";
|
|
3
|
+
|
|
4
|
+
//#region src/v1/transport.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The configuration a client needs to issue requests, resolved from
|
|
7
|
+
* {@link ClientOptions} and a configuration profile.
|
|
8
|
+
*/
|
|
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;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
|
|
26
|
+
*
|
|
27
|
+
* A configuration profile is always resolved from the config file and
|
|
28
|
+
* environment variables (per options.profileOptions); it supplies host,
|
|
29
|
+
* accountId, workspaceId, and credentials wherever the caller did not set them
|
|
30
|
+
* explicitly. Explicit options always take precedence.
|
|
31
|
+
*
|
|
32
|
+
* @throws if host is neither provided nor present in the resolved profile.
|
|
33
|
+
*/
|
|
34
|
+
declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { ResolvedClientConfig, resolveClientConfig };
|
|
37
|
+
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
|
6
|
+
/**
|
|
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 = normalizeHost(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
|
+
...profile,
|
|
22
|
+
host
|
|
23
|
+
} }));
|
|
24
|
+
if (options.timeout !== void 0) httpClient = new TimeoutHttpClient(httpClient, options.timeout);
|
|
25
|
+
const accountId = options.accountId ?? profile.accountId;
|
|
26
|
+
const workspaceId = options.workspaceId ?? profile.workspaceId;
|
|
27
|
+
return {
|
|
28
|
+
host,
|
|
29
|
+
httpClient,
|
|
30
|
+
...accountId !== void 0 && { accountId },
|
|
31
|
+
...workspaceId !== void 0 && { workspaceId }
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function normalizeHost(host) {
|
|
35
|
+
const trimmed = host?.trim();
|
|
36
|
+
if (trimmed === void 0 || trimmed === "") return;
|
|
37
|
+
return (/^https?:\/\//i.test(trimmed) ? trimmed : `https://${trimmed}`).replace(/\/$/, "");
|
|
38
|
+
}
|
|
39
|
+
/** Wraps an HttpClient and adds authentication headers to requests. */
|
|
40
|
+
var AuthHttpClient = class {
|
|
41
|
+
constructor(base, credentials) {
|
|
42
|
+
this.base = base;
|
|
43
|
+
this.credentials = credentials;
|
|
44
|
+
}
|
|
45
|
+
async send(request) {
|
|
46
|
+
const authHeaders = await this.credentials.authHeaders();
|
|
47
|
+
const headers = new Headers(request.headers);
|
|
48
|
+
for (const h of authHeaders) headers.set(h.key, h.value);
|
|
49
|
+
return this.base.send({
|
|
50
|
+
...request,
|
|
51
|
+
headers
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
/** Wraps an HttpClient and applies a default timeout to requests. */
|
|
56
|
+
var TimeoutHttpClient = class {
|
|
57
|
+
constructor(base, timeout) {
|
|
58
|
+
this.base = base;
|
|
59
|
+
this.timeout = timeout;
|
|
60
|
+
}
|
|
61
|
+
async send(request) {
|
|
62
|
+
const timeoutSignal = AbortSignal.timeout(this.timeout);
|
|
63
|
+
const signal = request.signal !== void 0 ? AbortSignal.any([request.signal, timeoutSignal]) : timeoutSignal;
|
|
64
|
+
return this.base.send({
|
|
65
|
+
...request,
|
|
66
|
+
signal
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { resolveClientConfig };
|
|
73
|
+
//# sourceMappingURL=transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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 = normalizeHost(options.host ?? profile.host);\n if (host === undefined) {\n throw new Error('Host is required.');\n }\n\n // The provided httpClient (or the default fetch client) is the base wire;\n // authentication and the optional timeout are layered on top of it. The\n // default credential chain reuses the profile resolved above so that the\n // same profileOptions govern host and authentication alike.\n const base = options.httpClient ?? newFetchHttpClient();\n const credentials =\n options.credentials ?? defaultCredentials({profile: {...profile, host}});\n let httpClient: HttpClient = new AuthHttpClient(base, credentials);\n if (options.timeout !== undefined) {\n httpClient = new TimeoutHttpClient(httpClient, options.timeout);\n }\n\n const accountId = options.accountId ?? profile.accountId;\n const workspaceId = options.workspaceId ?? profile.workspaceId;\n\n return {\n host,\n httpClient,\n ...(accountId !== undefined && {accountId}),\n ...(workspaceId !== undefined && {workspaceId}),\n };\n}\n\nfunction normalizeHost(host: string | undefined): string | undefined {\n const trimmed = host?.trim();\n if (trimmed === undefined || trimmed === '') {\n return undefined;\n }\n const absolute = /^https?:\\/\\//i.test(trimmed)\n ? trimmed\n : `https://${trimmed}`;\n return absolute.replace(/\\/$/, '');\n}\n\n/** Wraps an HttpClient and adds authentication headers to requests. */\nclass AuthHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly credentials: Credentials\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const authHeaders = await this.credentials.authHeaders();\n // Do not modify the original request.\n const headers = new Headers(request.headers);\n for (const h of authHeaders) {\n headers.set(h.key, h.value);\n }\n return this.base.send({...request, headers});\n }\n}\n\n/** Wraps an HttpClient and applies a default timeout to requests. */\nclass TimeoutHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly timeout: number\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const timeoutSignal = AbortSignal.timeout(this.timeout);\n const signal =\n request.signal !== undefined\n ? AbortSignal.any([request.signal, timeoutSignal])\n : timeoutSignal;\n return this.base.send({...request, signal});\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,eAAsB,oBACpB,SAC+B;CAC/B,MAAM,UAAmB,MAAM,QAAQ,QAAQ,eAAe;CAE9D,MAAM,OAAO,cAAc,QAAQ,QAAQ,QAAQ,KAAK;AACxD,KAAI,SAAS,OACX,OAAM,IAAI,MAAM,oBAAoB;CAUtC,IAAI,aAAyB,IAAI,eAHpB,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|
+
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;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Translates public CallOptions to the internal Options shape accepted by
|
|
15
|
+
* execute(). Even though the shapes match today, this isolates the public
|
|
16
|
+
* API from the executor's internal type so they can diverge.
|
|
17
|
+
*/
|
|
18
|
+
declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Sentinel thrown by a polling call to signal that the operation has not
|
|
21
|
+
* yet reached a terminal state. {@link executeWait} treats this error as
|
|
22
|
+
* retriable; any other error aborts the wait.
|
|
23
|
+
*/
|
|
24
|
+
declare class StillRunningError extends Error {}
|
|
25
|
+
/**
|
|
26
|
+
* Polls until the call returns without throwing {@link StillRunningError}.
|
|
27
|
+
* Abort and overall-deadline behavior come from the supplied LroOptions.
|
|
28
|
+
*/
|
|
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 };
|
|
37
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
|
6
|
+
const jsonBigint = JSONBig({ useNativeBigInt: true });
|
|
7
|
+
/**
|
|
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);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
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 {};
|
|
26
|
+
/**
|
|
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);
|
|
36
|
+
}
|
|
37
|
+
async function readAll(body) {
|
|
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;
|
|
54
|
+
}
|
|
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;
|
|
75
|
+
}
|
|
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;
|
|
85
|
+
}
|
|
86
|
+
function parseResponse(body, schema) {
|
|
87
|
+
const text = new TextDecoder().decode(body);
|
|
88
|
+
const parsed = text === "" ? {} : jsonBigint.parse(text);
|
|
89
|
+
return schema.parse(parsed);
|
|
90
|
+
}
|
|
91
|
+
function marshalRequest(data, schema) {
|
|
92
|
+
return jsonBigint.stringify(schema.parse(data));
|
|
93
|
+
}
|
|
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}`);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
//#endregion
|
|
103
|
+
export { StillRunningError, buildHttpRequest, executeCall, executeHttpCall, executeWait, flattenQueryParams, marshalRequest, parseResponse };
|
|
104
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../src/v1/utils.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {Options} from '@databricks/sdk-core/ops';\nimport {execute, retryOn} from '@databricks/sdk-core/ops';\nimport {ApiError} from '@databricks/sdk-core/apierror';\nimport type {\n HttpClient,\n HttpRequest,\n HttpResponse,\n} from '@databricks/sdk-core/http';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {LroOptions} from '@databricks/sdk-options/lro';\nimport JSONBig from 'json-bigint';\nimport type {z} from 'zod';\n\n// JSON codec that preserves int64 precision. On the way in, large integer\n// literals come back as bigint instead of being rounded to JS Number. On the\n// way out, bigint values are emitted as raw JSON number digits.\nconst jsonBigint = JSONBig({useNativeBigInt: true});\n\nexport interface HttpCallOptions {\n readonly request: HttpRequest;\n readonly httpClient: HttpClient;\n readonly logger: Logger;\n}\n\n/**\n * Translates public CallOptions to the internal Options shape accepted by\n * execute(). Even though the shapes match today, this isolates the public\n * API from the executor's internal type so they can diverge.\n */\nexport async function executeCall(\n call: (signal?: AbortSignal) => Promise<void>,\n options?: CallOptions\n): Promise<void> {\n const opts: Options = {\n ...(options?.retrier !== undefined && {retrier: options.retrier}),\n ...(options?.rateLimiter !== undefined && {\n rateLimiter: options.rateLimiter,\n }),\n ...(options?.timeout !== undefined && {timeout: options.timeout}),\n };\n return execute(options?.signal, call, opts);\n}\n\n/**\n * Sentinel thrown by a polling call to signal that the operation has not\n * yet reached a terminal state. {@link executeWait} treats this error as\n * retriable; any other error aborts the wait.\n */\nexport class StillRunningError extends Error {}\n\n/**\n * Polls until the call returns without throwing {@link StillRunningError}.\n * Abort and overall-deadline behavior come from the supplied LroOptions.\n */\nexport async function executeWait(\n call: (signal?: AbortSignal) => Promise<void>,\n options?: LroOptions\n): Promise<void> {\n const opts: Options = {\n ...(options?.timeout !== undefined && {timeout: options.timeout}),\n retrier: () =>\n retryOn({}, (err: Error) => err instanceof StillRunningError),\n };\n return execute(options?.signal, call, opts);\n}\n\nasync function readAll(\n body: ReadableStream<Uint8Array> | null\n): Promise<Uint8Array> {\n if (body === null) {\n return new Uint8Array(0);\n }\n const reader = body.getReader();\n const chunks: Uint8Array[] = [];\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n chunks.push(value);\n }\n const totalLength = chunks.reduce((acc, chunk) => acc + chunk.length, 0);\n const result = new Uint8Array(totalLength);\n let offset = 0;\n for (const chunk of chunks) {\n result.set(chunk, offset);\n offset += chunk.length;\n }\n return result;\n}\n\nexport async function executeHttpCall(\n opts: HttpCallOptions\n): Promise<Uint8Array> {\n opts.logger.debug('HTTP request', {\n method: opts.request.method,\n url: opts.request.url,\n });\n\n let resp: HttpResponse;\n try {\n resp = await opts.httpClient.send(opts.request);\n } catch (e: unknown) {\n opts.logger.debug('HTTP request failed');\n throw e;\n }\n\n const body = await readAll(resp.body);\n\n opts.logger.debug('HTTP response', {\n statusCode: resp.statusCode,\n body: new TextDecoder().decode(body),\n });\n\n const apiErr = ApiError.fromHttpError(resp.statusCode, resp.headers, body);\n if (apiErr !== undefined) {\n throw apiErr;\n }\n\n return body;\n}\n\nexport function buildHttpRequest(\n method: string,\n url: string,\n headers: Headers,\n signal?: AbortSignal,\n body?: string | ReadableStream<Uint8Array>\n): HttpRequest {\n const req: HttpRequest = {url, method, headers};\n if (body !== undefined) {\n req.body = body;\n }\n if (signal !== undefined) {\n req.signal = signal;\n }\n return req;\n}\n\nexport function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T {\n const text = new TextDecoder().decode(body);\n // 204 responses return an empty body; treat as `{}`.\n const parsed: unknown = text === '' ? {} : jsonBigint.parse(text);\n return schema.parse(parsed);\n}\n\nexport function marshalRequest(data: unknown, schema: z.ZodType): string {\n return jsonBigint.stringify(schema.parse(data));\n}\n\nexport function flattenQueryParams(\n prefix: string,\n value: unknown,\n params: URLSearchParams\n): void {\n if (value === null || value === undefined) {\n return;\n }\n if (Array.isArray(value)) {\n // arrays of objects are not yet supported\n for (const item of value) {\n params.append(prefix, String(item));\n }\n } else if (typeof value === 'object') {\n for (const [key, val] of Object.entries(value as Record<string, unknown>)) {\n flattenQueryParams(`${prefix}.${key}`, val, params);\n }\n } else if (\n typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean' ||\n typeof value === 'bigint'\n ) {\n params.append(prefix, String(value));\n } else {\n throw new Error(`Unsupported query parameter type: ${typeof value}`);\n }\n}\n"],"mappings":";;;;;AAmBA,MAAM,aAAa,QAAQ,EAAC,iBAAiB,MAAK,CAAC;;;;;;AAanD,eAAsB,YACpB,MACA,SACe;CACf,MAAM,OAAgB;EACpB,GAAI,SAAS,YAAY,UAAa,EAAC,SAAS,QAAQ,SAAQ;EAChE,GAAI,SAAS,gBAAgB,UAAa,EACxC,aAAa,QAAQ,aACtB;EACD,GAAI,SAAS,YAAY,UAAa,EAAC,SAAS,QAAQ,SAAQ;EACjE;AACD,QAAO,QAAQ,SAAS,QAAQ,MAAM,KAAK;;;;;;;AAQ7C,IAAa,oBAAb,cAAuC,MAAM;;;;;AAM7C,eAAsB,YACpB,MACA,SACe;CACf,MAAM,OAAgB;EACpB,GAAI,SAAS,YAAY,UAAa,EAAC,SAAS,QAAQ,SAAQ;EAChE,eACE,QAAQ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MAAkB,QAAyB;CAC1E,MAAM,OAAO,IAAI,aAAa,CAAC,OAAO,KAAK;CAE3C,MAAM,SAAkB,SAAS,KAAK,EAAE,GAAG,WAAW,MAAM,KAAK;AACjE,QAAO,OAAO,MAAM,OAAO;;AAG7B,SAAgB,eAAe,MAAe,QAA2B;AACvE,QAAO,WAAW,UAAU,OAAO,MAAM,KAAK,CAAC;;AAGjD,SAAgB,mBACd,QACA,OACA,QACM;AACN,KAAI,UAAU,QAAQ,UAAU,OAC9B;AAEF,KAAI,MAAM,QAAQ,MAAM,CAEtB,MAAK,MAAM,QAAQ,MACjB,QAAO,OAAO,QAAQ,OAAO,KAAK,CAAC;UAE5B,OAAO,UAAU,SAC1B,MAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,QAAQ,MAAiC,CACvE,oBAAmB,GAAG,OAAO,GAAG,OAAO,KAAK,OAAO;UAGrD,OAAO,UAAU,YACjB,OAAO,UAAU,YACjB,OAAO,UAAU,aACjB,OAAO,UAAU,SAEjB,QAAO,OAAO,QAAQ,OAAO,MAAM,CAAC;KAEpC,OAAM,IAAI,MAAM,qCAAqC,OAAO,QAAQ"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@databricks/sdk-vectorsearch",
|
|
3
|
+
"version": "0.51.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./v1": {
|
|
8
|
+
"types": "./dist/v1/index.d.ts",
|
|
9
|
+
"import": "./dist/v1/index.js",
|
|
10
|
+
"default": "./dist/v1/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsdown",
|
|
19
|
+
"lint": "eslint src --ext .ts",
|
|
20
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
21
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
22
|
+
"format:check": "prettier --check \"src/**/*.ts\"",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
25
|
+
"test": "echo 'no tests'",
|
|
26
|
+
"test:browser": "echo 'no tests'"
|
|
27
|
+
},
|
|
28
|
+
"author": "Databricks",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/databricks/sdk-js.git",
|
|
33
|
+
"directory": "packages/vectorsearch"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@databricks/sdk-auth": ">=0.51.0 <1.0.0",
|
|
37
|
+
"@databricks/sdk-core": ">=0.51.0 <1.0.0",
|
|
38
|
+
"@databricks/sdk-options": ">=0.51.0 <1.0.0",
|
|
39
|
+
"@js-temporal/polyfill": "^0.5.0",
|
|
40
|
+
"json-bigint": "^1.0.0",
|
|
41
|
+
"zod": "^4.3.6"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=22.0.0"
|
|
45
|
+
}
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/appkit-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.89.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css"
|
|
@@ -92,7 +92,25 @@
|
|
|
92
92
|
"vaul": "1.1.2",
|
|
93
93
|
"@ast-grep/napi": "0.37.0",
|
|
94
94
|
"@clack/prompts": "1.0.1",
|
|
95
|
-
"@databricks/sdk-
|
|
95
|
+
"@databricks/sdk-apps": "0.54.0",
|
|
96
|
+
"@databricks/sdk-auth": "0.51.0",
|
|
97
|
+
"@databricks/sdk-core": "0.51.0",
|
|
98
|
+
"@databricks/sdk-database": "0.51.0",
|
|
99
|
+
"@databricks/sdk-files": "0.52.0",
|
|
100
|
+
"@databricks/sdk-experiments": "0.52.0",
|
|
101
|
+
"@databricks/sdk-genie": "0.54.0",
|
|
102
|
+
"@databricks/sdk-uc-functions": "0.51.0",
|
|
103
|
+
"@databricks/sdk-jobs": "0.57.0",
|
|
104
|
+
"@databricks/sdk-modelserving": "0.53.0",
|
|
105
|
+
"@databricks/sdk-uc-connections": "0.52.0",
|
|
106
|
+
"@databricks/sdk-uc-tables": "0.52.0",
|
|
107
|
+
"@databricks/sdk-uc-volumes": "0.51.0",
|
|
108
|
+
"@databricks/sdk-vectorsearch": "0.51.0",
|
|
109
|
+
"@databricks/sdk-options": "0.51.0",
|
|
110
|
+
"@databricks/sdk-postgres": "0.52.0",
|
|
111
|
+
"@databricks/sdk-scim": "0.51.0",
|
|
112
|
+
"@databricks/sdk-statementexecution": "0.52.0",
|
|
113
|
+
"@databricks/sdk-warehouses": "0.53.0",
|
|
96
114
|
"@standard-schema/spec": "1.1.0",
|
|
97
115
|
"commander": "12.1.0",
|
|
98
116
|
"dotenv": "16.6.1",
|
|
@@ -100,7 +118,9 @@
|
|
|
100
118
|
"picocolors": "1.1.1",
|
|
101
119
|
"semver": "7.7.3",
|
|
102
120
|
"yaml": "2.8.2",
|
|
103
|
-
"zod": "4.3.6"
|
|
121
|
+
"zod": "4.3.6",
|
|
122
|
+
"@js-temporal/polyfill": "0.5.1",
|
|
123
|
+
"json-bigint": "1.0.0"
|
|
104
124
|
},
|
|
105
125
|
"peerDependencies": {
|
|
106
126
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -117,5 +137,10 @@
|
|
|
117
137
|
"publishConfig": {},
|
|
118
138
|
"bin": {
|
|
119
139
|
"appkit": "./bin/appkit.js"
|
|
120
|
-
}
|
|
140
|
+
},
|
|
141
|
+
"bundledDependencies": [
|
|
142
|
+
"@databricks/sdk-genie",
|
|
143
|
+
"@databricks/sdk-statementexecution",
|
|
144
|
+
"@databricks/sdk-vectorsearch"
|
|
145
|
+
]
|
|
121
146
|
}
|