@databricks/appkit-ui 0.88.1 → 0.90.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/add.js +6 -9
- package/dist/cli/commands/registry/add.js.map +1 -1
- package/dist/cli/commands/registry/client.js +9 -31
- package/dist/cli/commands/registry/client.js.map +1 -1
- package/dist/cli/commands/registry/constants.js +2 -41
- package/dist/cli/commands/registry/constants.js.map +1 -1
- package/dist/cli/commands/registry/info.js +1 -3
- package/dist/cli/commands/registry/info.js.map +1 -1
- package/dist/cli/commands/registry/list.js +5 -13
- package/dist/cli/commands/registry/list.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/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.IDatabaseConfig.md +12 -0
- package/docs/api/appkit/TypeAlias.JobsExport.md +1 -1
- package/docs/api/appkit/TypeAlias.WorkspaceClientLike.md +16 -0
- package/docs/api/appkit.md +7 -2
- package/docs/plugins/database.md +11 -0
- package/docs/plugins/files.md +20 -3
- package/docs/plugins/jobs.md +9 -9
- package/docs/plugins/lakebase.md +3 -1
- 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,474 @@
|
|
|
1
|
+
import { resolveClientConfig } from "./transport.js";
|
|
2
|
+
import { StillRunningError, buildHttpRequest, executeCall, executeHttpCall, executeWait, flattenQueryParams, marshalRequest, parseResponse } from "./utils.js";
|
|
3
|
+
import { name, version } from "../package.js";
|
|
4
|
+
import { EndpointStatus_State, marshalCreateEndpointRequestSchema, marshalCreateVectorIndexRequestSchema, marshalPatchEndpointBudgetPolicyRequestSchema, marshalPatchEndpointRequestSchema, marshalQueryVectorIndexNextPageRequestSchema, marshalQueryVectorIndexRequestSchema, marshalRetrieveUserVisibleMetricsRequestSchema, marshalScanVectorIndexRequestSchema, marshalSyncVectorIndexRequestSchema, marshalUpdateEndpointCustomTagsRequestSchema, marshalUpsertDataVectorIndexRequestSchema, unmarshalDeleteDataVectorIndexResponseSchema, unmarshalDeleteEndpointResponseSchema, unmarshalDeleteVectorIndexResponseSchema, unmarshalEndpointSchema, unmarshalListEndpointResponseSchema, unmarshalListVectorIndexResponseSchema, unmarshalPatchEndpointBudgetPolicyResponseSchema, unmarshalQueryVectorIndexResponseSchema, unmarshalRetrieveUserVisibleMetricsResponseSchema, unmarshalScanVectorIndexResponseSchema, unmarshalSyncVectorIndexResponseSchema, unmarshalUpdateEndpointCustomTagsResponseSchema, unmarshalUpsertDataVectorIndexResponseSchema, unmarshalVectorIndexSchema } from "./model.js";
|
|
5
|
+
import { VERSION } from "@databricks/sdk-auth";
|
|
6
|
+
import { createDefault } from "@databricks/sdk-core/clientinfo";
|
|
7
|
+
import { NoOpLogger } from "@databricks/sdk-core/logger";
|
|
8
|
+
|
|
9
|
+
//#region src/v1/client.ts
|
|
10
|
+
const PACKAGE_SEGMENT = {
|
|
11
|
+
key: "sdk-js-" + name.replace(/^@[^/]+\/sdk-/, ""),
|
|
12
|
+
value: version
|
|
13
|
+
};
|
|
14
|
+
var VectorSearchClient = class {
|
|
15
|
+
options;
|
|
16
|
+
logger;
|
|
17
|
+
userAgent;
|
|
18
|
+
config;
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this.options = options;
|
|
21
|
+
this.logger = options.logger ?? new NoOpLogger();
|
|
22
|
+
this.userAgent = createDefault().with(PACKAGE_SEGMENT).with({
|
|
23
|
+
key: "sdk-js-auth",
|
|
24
|
+
value: VERSION
|
|
25
|
+
}).with({
|
|
26
|
+
key: "auth",
|
|
27
|
+
value: options.credentials?.name() ?? "default"
|
|
28
|
+
}).toString();
|
|
29
|
+
}
|
|
30
|
+
resolveConfig() {
|
|
31
|
+
this.config ??= resolveClientConfig(this.options);
|
|
32
|
+
return this.config;
|
|
33
|
+
}
|
|
34
|
+
/** Create a new endpoint. */
|
|
35
|
+
async createEndpointBase(req, options) {
|
|
36
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
37
|
+
const url = `${host}/api/2.0/vector-search/endpoints`;
|
|
38
|
+
const body = marshalRequest(req, marshalCreateEndpointRequestSchema);
|
|
39
|
+
let resp;
|
|
40
|
+
const call = async (callSignal) => {
|
|
41
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
42
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
43
|
+
headers.set("User-Agent", this.userAgent);
|
|
44
|
+
resp = parseResponse(await executeHttpCall({
|
|
45
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
46
|
+
httpClient,
|
|
47
|
+
logger: this.logger
|
|
48
|
+
}), unmarshalEndpointSchema);
|
|
49
|
+
};
|
|
50
|
+
await executeCall(call, options);
|
|
51
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
52
|
+
return resp;
|
|
53
|
+
}
|
|
54
|
+
/** Create a new endpoint. */
|
|
55
|
+
async createEndpoint(req, options) {
|
|
56
|
+
const resp = await this.createEndpointBase(req, options);
|
|
57
|
+
if (resp.name === void 0) throw new Error("response field name required for polling is missing");
|
|
58
|
+
return new CreateEndpointWaiter(this, resp.name);
|
|
59
|
+
}
|
|
60
|
+
/** Create a new index. */
|
|
61
|
+
async createVectorIndex(req, options) {
|
|
62
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
63
|
+
const url = `${host}/api/2.0/vector-search/indexes`;
|
|
64
|
+
const body = marshalRequest(req, marshalCreateVectorIndexRequestSchema);
|
|
65
|
+
let resp;
|
|
66
|
+
const call = async (callSignal) => {
|
|
67
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
68
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
69
|
+
headers.set("User-Agent", this.userAgent);
|
|
70
|
+
resp = parseResponse(await executeHttpCall({
|
|
71
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
72
|
+
httpClient,
|
|
73
|
+
logger: this.logger
|
|
74
|
+
}), unmarshalVectorIndexSchema);
|
|
75
|
+
};
|
|
76
|
+
await executeCall(call, options);
|
|
77
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
78
|
+
return resp;
|
|
79
|
+
}
|
|
80
|
+
/** Handles the deletion of data from a specified vector index. */
|
|
81
|
+
async deleteDataVectorIndex(req, options) {
|
|
82
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
83
|
+
const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ""}/delete-data`;
|
|
84
|
+
const params = new URLSearchParams();
|
|
85
|
+
if (req.primaryKeys !== void 0) flattenQueryParams("primary_keys", req.primaryKeys, params);
|
|
86
|
+
const query = params.toString();
|
|
87
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
88
|
+
let resp;
|
|
89
|
+
const call = async (callSignal) => {
|
|
90
|
+
const headers = new Headers();
|
|
91
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
92
|
+
headers.set("User-Agent", this.userAgent);
|
|
93
|
+
resp = parseResponse(await executeHttpCall({
|
|
94
|
+
request: buildHttpRequest("DELETE", fullUrl, headers, callSignal),
|
|
95
|
+
httpClient,
|
|
96
|
+
logger: this.logger
|
|
97
|
+
}), unmarshalDeleteDataVectorIndexResponseSchema);
|
|
98
|
+
};
|
|
99
|
+
await executeCall(call, options);
|
|
100
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
101
|
+
return resp;
|
|
102
|
+
}
|
|
103
|
+
/** Delete an AI Search endpoint. */
|
|
104
|
+
async deleteEndpoint(req, options) {
|
|
105
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
106
|
+
const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ""}`;
|
|
107
|
+
let resp;
|
|
108
|
+
const call = async (callSignal) => {
|
|
109
|
+
const headers = new Headers();
|
|
110
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
111
|
+
headers.set("User-Agent", this.userAgent);
|
|
112
|
+
resp = parseResponse(await executeHttpCall({
|
|
113
|
+
request: buildHttpRequest("DELETE", url, headers, callSignal),
|
|
114
|
+
httpClient,
|
|
115
|
+
logger: this.logger
|
|
116
|
+
}), unmarshalDeleteEndpointResponseSchema);
|
|
117
|
+
};
|
|
118
|
+
await executeCall(call, options);
|
|
119
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
120
|
+
return resp;
|
|
121
|
+
}
|
|
122
|
+
/** Delete an index. */
|
|
123
|
+
async deleteVectorIndex(req, options) {
|
|
124
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
125
|
+
const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ""}`;
|
|
126
|
+
let resp;
|
|
127
|
+
const call = async (callSignal) => {
|
|
128
|
+
const headers = new Headers();
|
|
129
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
130
|
+
headers.set("User-Agent", this.userAgent);
|
|
131
|
+
resp = parseResponse(await executeHttpCall({
|
|
132
|
+
request: buildHttpRequest("DELETE", url, headers, callSignal),
|
|
133
|
+
httpClient,
|
|
134
|
+
logger: this.logger
|
|
135
|
+
}), unmarshalDeleteVectorIndexResponseSchema);
|
|
136
|
+
};
|
|
137
|
+
await executeCall(call, options);
|
|
138
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
139
|
+
return resp;
|
|
140
|
+
}
|
|
141
|
+
/** Get details for a single AI Search endpoint. */
|
|
142
|
+
async getEndpoint(req, options) {
|
|
143
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
144
|
+
const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ""}`;
|
|
145
|
+
let resp;
|
|
146
|
+
const call = async (callSignal) => {
|
|
147
|
+
const headers = new Headers();
|
|
148
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
149
|
+
headers.set("User-Agent", this.userAgent);
|
|
150
|
+
resp = parseResponse(await executeHttpCall({
|
|
151
|
+
request: buildHttpRequest("GET", url, headers, callSignal),
|
|
152
|
+
httpClient,
|
|
153
|
+
logger: this.logger
|
|
154
|
+
}), unmarshalEndpointSchema);
|
|
155
|
+
};
|
|
156
|
+
await executeCall(call, options);
|
|
157
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
158
|
+
return resp;
|
|
159
|
+
}
|
|
160
|
+
/** Get an index. */
|
|
161
|
+
async getVectorIndex(req, options) {
|
|
162
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
163
|
+
const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ""}`;
|
|
164
|
+
const params = new URLSearchParams();
|
|
165
|
+
if (req.ensureRerankerCompatible !== void 0) params.append("ensure_reranker_compatible", String(req.ensureRerankerCompatible));
|
|
166
|
+
const query = params.toString();
|
|
167
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
168
|
+
let resp;
|
|
169
|
+
const call = async (callSignal) => {
|
|
170
|
+
const headers = new Headers();
|
|
171
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
172
|
+
headers.set("User-Agent", this.userAgent);
|
|
173
|
+
resp = parseResponse(await executeHttpCall({
|
|
174
|
+
request: buildHttpRequest("GET", fullUrl, headers, callSignal),
|
|
175
|
+
httpClient,
|
|
176
|
+
logger: this.logger
|
|
177
|
+
}), unmarshalVectorIndexSchema);
|
|
178
|
+
};
|
|
179
|
+
await executeCall(call, options);
|
|
180
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
181
|
+
return resp;
|
|
182
|
+
}
|
|
183
|
+
/** List all AI Search endpoints in the workspace. */
|
|
184
|
+
async listEndpoints(req, options) {
|
|
185
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
186
|
+
const url = `${host}/api/2.0/vector-search/endpoints`;
|
|
187
|
+
const params = new URLSearchParams();
|
|
188
|
+
if (req.pageToken !== void 0) params.append("page_token", req.pageToken);
|
|
189
|
+
const query = params.toString();
|
|
190
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
191
|
+
let resp;
|
|
192
|
+
const call = async (callSignal) => {
|
|
193
|
+
const headers = new Headers();
|
|
194
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
195
|
+
headers.set("User-Agent", this.userAgent);
|
|
196
|
+
resp = parseResponse(await executeHttpCall({
|
|
197
|
+
request: buildHttpRequest("GET", fullUrl, headers, callSignal),
|
|
198
|
+
httpClient,
|
|
199
|
+
logger: this.logger
|
|
200
|
+
}), unmarshalListEndpointResponseSchema);
|
|
201
|
+
};
|
|
202
|
+
await executeCall(call, options);
|
|
203
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
204
|
+
return resp;
|
|
205
|
+
}
|
|
206
|
+
async *listEndpointsIter(req, options) {
|
|
207
|
+
const pageReq = { ...req };
|
|
208
|
+
for (;;) {
|
|
209
|
+
const resp = await this.listEndpoints(pageReq, options);
|
|
210
|
+
for (const item of resp.endpoints ?? []) yield item;
|
|
211
|
+
if (resp.nextPageToken === void 0 || resp.nextPageToken === "") return;
|
|
212
|
+
pageReq.pageToken = resp.nextPageToken;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/** List all indexes in the given endpoint. */
|
|
216
|
+
async listVectorIndex(req, options) {
|
|
217
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
218
|
+
const url = `${host}/api/2.0/vector-search/indexes`;
|
|
219
|
+
const params = new URLSearchParams();
|
|
220
|
+
if (req.endpointName !== void 0) params.append("endpoint_name", req.endpointName);
|
|
221
|
+
if (req.pageToken !== void 0) params.append("page_token", req.pageToken);
|
|
222
|
+
const query = params.toString();
|
|
223
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
224
|
+
let resp;
|
|
225
|
+
const call = async (callSignal) => {
|
|
226
|
+
const headers = new Headers();
|
|
227
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
228
|
+
headers.set("User-Agent", this.userAgent);
|
|
229
|
+
resp = parseResponse(await executeHttpCall({
|
|
230
|
+
request: buildHttpRequest("GET", fullUrl, headers, callSignal),
|
|
231
|
+
httpClient,
|
|
232
|
+
logger: this.logger
|
|
233
|
+
}), unmarshalListVectorIndexResponseSchema);
|
|
234
|
+
};
|
|
235
|
+
await executeCall(call, options);
|
|
236
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
237
|
+
return resp;
|
|
238
|
+
}
|
|
239
|
+
async *listVectorIndexIter(req, options) {
|
|
240
|
+
const pageReq = { ...req };
|
|
241
|
+
for (;;) {
|
|
242
|
+
const resp = await this.listVectorIndex(pageReq, options);
|
|
243
|
+
for (const item of resp.vectorIndexes ?? []) yield item;
|
|
244
|
+
if (resp.nextPageToken === void 0 || resp.nextPageToken === "") return;
|
|
245
|
+
pageReq.pageToken = resp.nextPageToken;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/** Update an endpoint */
|
|
249
|
+
async patchEndpoint(req, options) {
|
|
250
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
251
|
+
const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ""}`;
|
|
252
|
+
const body = marshalRequest(req, marshalPatchEndpointRequestSchema);
|
|
253
|
+
let resp;
|
|
254
|
+
const call = async (callSignal) => {
|
|
255
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
256
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
257
|
+
headers.set("User-Agent", this.userAgent);
|
|
258
|
+
resp = parseResponse(await executeHttpCall({
|
|
259
|
+
request: buildHttpRequest("PATCH", url, headers, callSignal, body),
|
|
260
|
+
httpClient,
|
|
261
|
+
logger: this.logger
|
|
262
|
+
}), unmarshalEndpointSchema);
|
|
263
|
+
};
|
|
264
|
+
await executeCall(call, options);
|
|
265
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
266
|
+
return resp;
|
|
267
|
+
}
|
|
268
|
+
/** Update the budget policy of an endpoint */
|
|
269
|
+
async patchEndpointBudgetPolicy(req, options) {
|
|
270
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
271
|
+
const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ""}/budget-policy`;
|
|
272
|
+
const body = marshalRequest(req, marshalPatchEndpointBudgetPolicyRequestSchema);
|
|
273
|
+
let resp;
|
|
274
|
+
const call = async (callSignal) => {
|
|
275
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
276
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
277
|
+
headers.set("User-Agent", this.userAgent);
|
|
278
|
+
resp = parseResponse(await executeHttpCall({
|
|
279
|
+
request: buildHttpRequest("PATCH", url, headers, callSignal, body),
|
|
280
|
+
httpClient,
|
|
281
|
+
logger: this.logger
|
|
282
|
+
}), unmarshalPatchEndpointBudgetPolicyResponseSchema);
|
|
283
|
+
};
|
|
284
|
+
await executeCall(call, options);
|
|
285
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
286
|
+
return resp;
|
|
287
|
+
}
|
|
288
|
+
/** Query the specified vector index. */
|
|
289
|
+
async queryVectorIndex(req, options) {
|
|
290
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
291
|
+
const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ""}/query`;
|
|
292
|
+
const body = marshalRequest(req, marshalQueryVectorIndexRequestSchema);
|
|
293
|
+
let resp;
|
|
294
|
+
const call = async (callSignal) => {
|
|
295
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
296
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
297
|
+
headers.set("User-Agent", this.userAgent);
|
|
298
|
+
resp = parseResponse(await executeHttpCall({
|
|
299
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
300
|
+
httpClient,
|
|
301
|
+
logger: this.logger
|
|
302
|
+
}), unmarshalQueryVectorIndexResponseSchema);
|
|
303
|
+
};
|
|
304
|
+
await executeCall(call, options);
|
|
305
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
306
|
+
return resp;
|
|
307
|
+
}
|
|
308
|
+
/** Use `next_page_token` returned from previous `QueryVectorIndex` or `QueryVectorIndexNextPage` request to fetch next page of results. */
|
|
309
|
+
async queryVectorIndexNextPage(req, options) {
|
|
310
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
311
|
+
const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ""}/query-next-page`;
|
|
312
|
+
const body = marshalRequest(req, marshalQueryVectorIndexNextPageRequestSchema);
|
|
313
|
+
let resp;
|
|
314
|
+
const call = async (callSignal) => {
|
|
315
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
316
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
317
|
+
headers.set("User-Agent", this.userAgent);
|
|
318
|
+
resp = parseResponse(await executeHttpCall({
|
|
319
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
320
|
+
httpClient,
|
|
321
|
+
logger: this.logger
|
|
322
|
+
}), unmarshalQueryVectorIndexResponseSchema);
|
|
323
|
+
};
|
|
324
|
+
await executeCall(call, options);
|
|
325
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
326
|
+
return resp;
|
|
327
|
+
}
|
|
328
|
+
/** Retrieve user-visible metrics for an endpoint */
|
|
329
|
+
async retrieveUserVisibleMetrics(req, options) {
|
|
330
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
331
|
+
const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ""}/metrics`;
|
|
332
|
+
const body = marshalRequest(req, marshalRetrieveUserVisibleMetricsRequestSchema);
|
|
333
|
+
let resp;
|
|
334
|
+
const call = async (callSignal) => {
|
|
335
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
336
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
337
|
+
headers.set("User-Agent", this.userAgent);
|
|
338
|
+
resp = parseResponse(await executeHttpCall({
|
|
339
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
340
|
+
httpClient,
|
|
341
|
+
logger: this.logger
|
|
342
|
+
}), unmarshalRetrieveUserVisibleMetricsResponseSchema);
|
|
343
|
+
};
|
|
344
|
+
await executeCall(call, options);
|
|
345
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
346
|
+
return resp;
|
|
347
|
+
}
|
|
348
|
+
/** Scan the specified vector index and return the first `num_results` entries after the exclusive `primary_key`. */
|
|
349
|
+
async scanVectorIndex(req, options) {
|
|
350
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
351
|
+
const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ""}/scan`;
|
|
352
|
+
const body = marshalRequest(req, marshalScanVectorIndexRequestSchema);
|
|
353
|
+
let resp;
|
|
354
|
+
const call = async (callSignal) => {
|
|
355
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
356
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
357
|
+
headers.set("User-Agent", this.userAgent);
|
|
358
|
+
resp = parseResponse(await executeHttpCall({
|
|
359
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
360
|
+
httpClient,
|
|
361
|
+
logger: this.logger
|
|
362
|
+
}), unmarshalScanVectorIndexResponseSchema);
|
|
363
|
+
};
|
|
364
|
+
await executeCall(call, options);
|
|
365
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
366
|
+
return resp;
|
|
367
|
+
}
|
|
368
|
+
/** Triggers a synchronization process for a specified vector index. */
|
|
369
|
+
async syncVectorIndex(req, options) {
|
|
370
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
371
|
+
const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ""}/sync`;
|
|
372
|
+
const body = marshalRequest(req, marshalSyncVectorIndexRequestSchema);
|
|
373
|
+
let resp;
|
|
374
|
+
const call = async (callSignal) => {
|
|
375
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
376
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
377
|
+
headers.set("User-Agent", this.userAgent);
|
|
378
|
+
resp = parseResponse(await executeHttpCall({
|
|
379
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
380
|
+
httpClient,
|
|
381
|
+
logger: this.logger
|
|
382
|
+
}), unmarshalSyncVectorIndexResponseSchema);
|
|
383
|
+
};
|
|
384
|
+
await executeCall(call, options);
|
|
385
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
386
|
+
return resp;
|
|
387
|
+
}
|
|
388
|
+
/** Update the custom tags of an endpoint. */
|
|
389
|
+
async updateEndpointCustomTags(req, options) {
|
|
390
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
391
|
+
const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ""}/tags`;
|
|
392
|
+
const body = marshalRequest(req, marshalUpdateEndpointCustomTagsRequestSchema);
|
|
393
|
+
let resp;
|
|
394
|
+
const call = async (callSignal) => {
|
|
395
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
396
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
397
|
+
headers.set("User-Agent", this.userAgent);
|
|
398
|
+
resp = parseResponse(await executeHttpCall({
|
|
399
|
+
request: buildHttpRequest("PATCH", url, headers, callSignal, body),
|
|
400
|
+
httpClient,
|
|
401
|
+
logger: this.logger
|
|
402
|
+
}), unmarshalUpdateEndpointCustomTagsResponseSchema);
|
|
403
|
+
};
|
|
404
|
+
await executeCall(call, options);
|
|
405
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
406
|
+
return resp;
|
|
407
|
+
}
|
|
408
|
+
/** Handles the upserting of data into a specified vector index. */
|
|
409
|
+
async upsertDataVectorIndex(req, options) {
|
|
410
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
411
|
+
const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ""}/upsert-data`;
|
|
412
|
+
const body = marshalRequest(req, marshalUpsertDataVectorIndexRequestSchema);
|
|
413
|
+
let resp;
|
|
414
|
+
const call = async (callSignal) => {
|
|
415
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
416
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
417
|
+
headers.set("User-Agent", this.userAgent);
|
|
418
|
+
resp = parseResponse(await executeHttpCall({
|
|
419
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
420
|
+
httpClient,
|
|
421
|
+
logger: this.logger
|
|
422
|
+
}), unmarshalUpsertDataVectorIndexResponseSchema);
|
|
423
|
+
};
|
|
424
|
+
await executeCall(call, options);
|
|
425
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
426
|
+
return resp;
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
var CreateEndpointWaiter = class {
|
|
430
|
+
constructor(client, name) {
|
|
431
|
+
this.client = client;
|
|
432
|
+
this.name = name;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Polls until the operation reaches a terminal state.
|
|
436
|
+
*
|
|
437
|
+
* Throws if a failure state is reached.
|
|
438
|
+
*/
|
|
439
|
+
async wait(options) {
|
|
440
|
+
let result;
|
|
441
|
+
const call = async (callSignal) => {
|
|
442
|
+
const pollResp = await this.client.getEndpoint({ name: this.name }, callSignal !== void 0 ? { signal: callSignal } : void 0);
|
|
443
|
+
const status = pollResp.endpointStatus?.state;
|
|
444
|
+
if (status === void 0) throw new Error("response missing required status field");
|
|
445
|
+
switch (status) {
|
|
446
|
+
case EndpointStatus_State.ONLINE:
|
|
447
|
+
result = pollResp;
|
|
448
|
+
return;
|
|
449
|
+
case EndpointStatus_State.OFFLINE: {
|
|
450
|
+
const msg = pollResp.endpointStatus?.message ?? "(no message)";
|
|
451
|
+
throw new Error(`terminal state ${status}: ${msg}`);
|
|
452
|
+
}
|
|
453
|
+
default: throw new StillRunningError();
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
await executeWait(call, options);
|
|
457
|
+
if (result === void 0) throw new Error("operation completed without a result.");
|
|
458
|
+
return result;
|
|
459
|
+
}
|
|
460
|
+
/** Checks whether the operation has reached a terminal state. */
|
|
461
|
+
async done(options) {
|
|
462
|
+
const status = (await this.client.getEndpoint({ name: this.name }, options)).endpointStatus?.state;
|
|
463
|
+
if (status === void 0) throw new Error("response missing required status field");
|
|
464
|
+
switch (status) {
|
|
465
|
+
case EndpointStatus_State.ONLINE:
|
|
466
|
+
case EndpointStatus_State.OFFLINE: return true;
|
|
467
|
+
default: return false;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
//#endregion
|
|
473
|
+
export { CreateEndpointWaiter, VectorSearchClient };
|
|
474
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {LroOptions} from '@databricks/sdk-options/lro';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n flattenQueryParams,\n executeWait,\n StillRunningError,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n CreateEndpointRequest,\n CreateVectorIndexRequest,\n DeleteDataVectorIndexRequest,\n DeleteDataVectorIndexResponse,\n DeleteEndpointRequest,\n DeleteEndpointResponse,\n DeleteVectorIndexRequest,\n DeleteVectorIndexResponse,\n Endpoint,\n GetEndpointRequest,\n GetVectorIndexRequest,\n ListEndpointResponse,\n ListEndpointsRequest,\n ListVectorIndexRequest,\n ListVectorIndexResponse,\n MiniVectorIndex,\n PatchEndpointBudgetPolicyRequest,\n PatchEndpointBudgetPolicyResponse,\n PatchEndpointRequest,\n QueryVectorIndexNextPageRequest,\n QueryVectorIndexRequest,\n QueryVectorIndexResponse,\n RetrieveUserVisibleMetricsRequest,\n RetrieveUserVisibleMetricsResponse,\n ScanVectorIndexRequest,\n ScanVectorIndexResponse,\n SyncVectorIndexRequest,\n SyncVectorIndexResponse,\n UpdateEndpointCustomTagsRequest,\n UpdateEndpointCustomTagsResponse,\n UpsertDataVectorIndexRequest,\n UpsertDataVectorIndexResponse,\n VectorIndex,\n} from './model';\nimport {\n EndpointStatus_State,\n marshalCreateEndpointRequestSchema,\n marshalCreateVectorIndexRequestSchema,\n marshalPatchEndpointBudgetPolicyRequestSchema,\n marshalPatchEndpointRequestSchema,\n marshalQueryVectorIndexNextPageRequestSchema,\n marshalQueryVectorIndexRequestSchema,\n marshalRetrieveUserVisibleMetricsRequestSchema,\n marshalScanVectorIndexRequestSchema,\n marshalSyncVectorIndexRequestSchema,\n marshalUpdateEndpointCustomTagsRequestSchema,\n marshalUpsertDataVectorIndexRequestSchema,\n unmarshalDeleteDataVectorIndexResponseSchema,\n unmarshalDeleteEndpointResponseSchema,\n unmarshalDeleteVectorIndexResponseSchema,\n unmarshalEndpointSchema,\n unmarshalListEndpointResponseSchema,\n unmarshalListVectorIndexResponseSchema,\n unmarshalPatchEndpointBudgetPolicyResponseSchema,\n unmarshalQueryVectorIndexResponseSchema,\n unmarshalRetrieveUserVisibleMetricsResponseSchema,\n unmarshalScanVectorIndexResponseSchema,\n unmarshalSyncVectorIndexResponseSchema,\n unmarshalUpdateEndpointCustomTagsResponseSchema,\n unmarshalUpsertDataVectorIndexResponseSchema,\n unmarshalVectorIndexSchema,\n} from './model';\n\n// Package identity segment for this client to be used in the User-Agent header.\nconst PACKAGE_SEGMENT = {\n key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\\/sdk-/, ''),\n value: pkgJson.version,\n};\n\nexport class VectorSearchClient {\n private readonly options: ClientOptions;\n private readonly logger: Logger;\n // User-Agent header value. Composed once at construction from\n // createDefault() merged with this package's identity and the active\n // credential's name.\n private readonly userAgent: string;\n // Memoized configuration. The profile is resolved once, lazily, on the first\n // request, then reused; host, workspaceId/accountId, and credentials are\n // filled from it when not set explicitly on the options.\n private config: Promise<ResolvedClientConfig> | undefined;\n\n constructor(options: ClientOptions) {\n this.options = options;\n this.logger = options.logger ?? new NoOpLogger();\n const info = createDefault()\n .with(PACKAGE_SEGMENT)\n .with({key: 'sdk-js-auth', value: AUTH_VERSION})\n .with({key: 'auth', value: options.credentials?.name() ?? 'default'});\n this.userAgent = info.toString();\n }\n\n private resolveConfig(): Promise<ResolvedClientConfig> {\n this.config ??= resolveClientConfig(this.options);\n return this.config;\n }\n\n /** Create a new endpoint. */\n private async createEndpointBase(\n req: CreateEndpointRequest,\n options?: CallOptions\n ): Promise<Endpoint> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/endpoints`;\n const body = marshalRequest(req, marshalCreateEndpointRequestSchema);\n let resp: Endpoint | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalEndpointSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Create a new endpoint. */\n async createEndpoint(\n req: CreateEndpointRequest,\n options?: CallOptions\n ): Promise<CreateEndpointWaiter> {\n const resp = await this.createEndpointBase(req, options);\n if (resp.name === undefined) {\n throw new Error('response field name required for polling is missing');\n }\n return new CreateEndpointWaiter(this, resp.name);\n }\n\n /** Create a new index. */\n async createVectorIndex(\n req: CreateVectorIndexRequest,\n options?: CallOptions\n ): Promise<VectorIndex> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes`;\n const body = marshalRequest(req, marshalCreateVectorIndexRequestSchema);\n let resp: VectorIndex | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalVectorIndexSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Handles the deletion of data from a specified vector index. */\n async deleteDataVectorIndex(\n req: DeleteDataVectorIndexRequest,\n options?: CallOptions\n ): Promise<DeleteDataVectorIndexResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ''}/delete-data`;\n const params = new URLSearchParams();\n if (req.primaryKeys !== undefined) {\n flattenQueryParams('primary_keys', req.primaryKeys, params);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: DeleteDataVectorIndexResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalDeleteDataVectorIndexResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Delete an AI Search endpoint. */\n async deleteEndpoint(\n req: DeleteEndpointRequest,\n options?: CallOptions\n ): Promise<DeleteEndpointResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ''}`;\n let resp: DeleteEndpointResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalDeleteEndpointResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Delete an index. */\n async deleteVectorIndex(\n req: DeleteVectorIndexRequest,\n options?: CallOptions\n ): Promise<DeleteVectorIndexResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ''}`;\n let resp: DeleteVectorIndexResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalDeleteVectorIndexResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Get details for a single AI Search endpoint. */\n async getEndpoint(\n req: GetEndpointRequest,\n options?: CallOptions\n ): Promise<Endpoint> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ''}`;\n let resp: Endpoint | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalEndpointSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Get an index. */\n async getVectorIndex(\n req: GetVectorIndexRequest,\n options?: CallOptions\n ): Promise<VectorIndex> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.ensureRerankerCompatible !== undefined) {\n params.append(\n 'ensure_reranker_compatible',\n String(req.ensureRerankerCompatible)\n );\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: VectorIndex | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalVectorIndexSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** List all AI Search endpoints in the workspace. */\n async listEndpoints(\n req: ListEndpointsRequest,\n options?: CallOptions\n ): Promise<ListEndpointResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/endpoints`;\n const params = new URLSearchParams();\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListEndpointResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListEndpointResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listEndpointsIter(\n req: ListEndpointsRequest,\n options?: CallOptions\n ): AsyncGenerator<Endpoint> {\n const pageReq: ListEndpointsRequest = {...req};\n for (;;) {\n const resp = await this.listEndpoints(pageReq, options);\n for (const item of resp.endpoints ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** List all indexes in the given endpoint. */\n async listVectorIndex(\n req: ListVectorIndexRequest,\n options?: CallOptions\n ): Promise<ListVectorIndexResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes`;\n const params = new URLSearchParams();\n if (req.endpointName !== undefined) {\n params.append('endpoint_name', req.endpointName);\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListVectorIndexResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListVectorIndexResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listVectorIndexIter(\n req: ListVectorIndexRequest,\n options?: CallOptions\n ): AsyncGenerator<MiniVectorIndex> {\n const pageReq: ListVectorIndexRequest = {...req};\n for (;;) {\n const resp = await this.listVectorIndex(pageReq, options);\n for (const item of resp.vectorIndexes ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Update an endpoint */\n async patchEndpoint(\n req: PatchEndpointRequest,\n options?: CallOptions\n ): Promise<Endpoint> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ''}`;\n const body = marshalRequest(req, marshalPatchEndpointRequestSchema);\n let resp: Endpoint | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalEndpointSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Update the budget policy of an endpoint */\n async patchEndpointBudgetPolicy(\n req: PatchEndpointBudgetPolicyRequest,\n options?: CallOptions\n ): Promise<PatchEndpointBudgetPolicyResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ''}/budget-policy`;\n const body = marshalRequest(\n req,\n marshalPatchEndpointBudgetPolicyRequestSchema\n );\n let resp: PatchEndpointBudgetPolicyResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalPatchEndpointBudgetPolicyResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Query the specified vector index. */\n async queryVectorIndex(\n req: QueryVectorIndexRequest,\n options?: CallOptions\n ): Promise<QueryVectorIndexResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ''}/query`;\n const body = marshalRequest(req, marshalQueryVectorIndexRequestSchema);\n let resp: QueryVectorIndexResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalQueryVectorIndexResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Use `next_page_token` returned from previous `QueryVectorIndex` or `QueryVectorIndexNextPage` request to fetch next page of results. */\n async queryVectorIndexNextPage(\n req: QueryVectorIndexNextPageRequest,\n options?: CallOptions\n ): Promise<QueryVectorIndexResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ''}/query-next-page`;\n const body = marshalRequest(\n req,\n marshalQueryVectorIndexNextPageRequestSchema\n );\n let resp: QueryVectorIndexResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalQueryVectorIndexResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Retrieve user-visible metrics for an endpoint */\n async retrieveUserVisibleMetrics(\n req: RetrieveUserVisibleMetricsRequest,\n options?: CallOptions\n ): Promise<RetrieveUserVisibleMetricsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ''}/metrics`;\n const body = marshalRequest(\n req,\n marshalRetrieveUserVisibleMetricsRequestSchema\n );\n let resp: RetrieveUserVisibleMetricsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalRetrieveUserVisibleMetricsResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Scan the specified vector index and return the first `num_results` entries after the exclusive `primary_key`. */\n async scanVectorIndex(\n req: ScanVectorIndexRequest,\n options?: CallOptions\n ): Promise<ScanVectorIndexResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ''}/scan`;\n const body = marshalRequest(req, marshalScanVectorIndexRequestSchema);\n let resp: ScanVectorIndexResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalScanVectorIndexResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Triggers a synchronization process for a specified vector index. */\n async syncVectorIndex(\n req: SyncVectorIndexRequest,\n options?: CallOptions\n ): Promise<SyncVectorIndexResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ''}/sync`;\n const body = marshalRequest(req, marshalSyncVectorIndexRequestSchema);\n let resp: SyncVectorIndexResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSyncVectorIndexResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Update the custom tags of an endpoint. */\n async updateEndpointCustomTags(\n req: UpdateEndpointCustomTagsRequest,\n options?: CallOptions\n ): Promise<UpdateEndpointCustomTagsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/endpoints/${req.name ?? ''}/tags`;\n const body = marshalRequest(\n req,\n marshalUpdateEndpointCustomTagsRequestSchema\n );\n let resp: UpdateEndpointCustomTagsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalUpdateEndpointCustomTagsResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Handles the upserting of data into a specified vector index. */\n async upsertDataVectorIndex(\n req: UpsertDataVectorIndexRequest,\n options?: CallOptions\n ): Promise<UpsertDataVectorIndexResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/vector-search/indexes/${req.name ?? ''}/upsert-data`;\n const body = marshalRequest(req, marshalUpsertDataVectorIndexRequestSchema);\n let resp: UpsertDataVectorIndexResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalUpsertDataVectorIndexResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n}\n\nexport class CreateEndpointWaiter {\n constructor(\n private readonly client: VectorSearchClient,\n readonly name: string\n ) {}\n\n /**\n * Polls until the operation reaches a terminal state.\n *\n * Throws if a failure state is reached.\n */\n async wait(options?: LroOptions): Promise<Endpoint> {\n let result: Endpoint | undefined;\n\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const pollResp = await this.client.getEndpoint(\n {\n name: this.name,\n },\n callSignal !== undefined ? {signal: callSignal} : undefined\n );\n\n const status = pollResp.endpointStatus?.state;\n if (status === undefined) {\n throw new Error('response missing required status field');\n }\n\n switch (status) {\n case EndpointStatus_State.ONLINE:\n result = pollResp;\n return;\n case EndpointStatus_State.OFFLINE: {\n const msg = pollResp.endpointStatus?.message ?? '(no message)';\n throw new Error(`terminal state ${status}: ${msg}`);\n }\n default:\n throw new StillRunningError();\n }\n };\n\n await executeWait(call, options);\n if (result === undefined) {\n throw new Error('operation completed without a result.');\n }\n return result;\n }\n\n /** Checks whether the operation has reached a terminal state. */\n async done(options?: CallOptions): Promise<boolean> {\n const pollResp = await this.client.getEndpoint(\n {\n name: this.name,\n },\n options\n );\n\n const status = pollResp.endpointStatus?.state;\n if (status === undefined) {\n throw new Error('response missing required status field');\n }\n\n switch (status) {\n case EndpointStatus_State.ONLINE:\n case EndpointStatus_State.OFFLINE:\n return true;\n default:\n return false;\n }\n }\n}\n"],"mappings":";;;;;;;;;AAuFA,MAAM,kBAAkB;CACtB,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;;AAIX,IAAa,uBAAb,MAAkC;CAChC,YACE,AAAiB,QACjB,AAAS,MACT;EAFiB;EACR;;;;;;;CAQX,MAAM,KAAK,SAAyC;EAClD,IAAI;EAEJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,WAAW,MAAM,KAAK,OAAO,YACjC,EACE,MAAM,KAAK,MACZ,EACD,eAAe,SAAY,EAAC,QAAQ,YAAW,GAAG,OACnD;GAED,MAAM,SAAS,SAAS,gBAAgB;AACxC,OAAI,WAAW,OACb,OAAM,IAAI,MAAM,yCAAyC;AAG3D,WAAQ,QAAR;IACE,KAAK,qBAAqB;AACxB,cAAS;AACT;IACF,KAAK,qBAAqB,SAAS;KACjC,MAAM,MAAM,SAAS,gBAAgB,WAAW;AAChD,WAAM,IAAI,MAAM,kBAAkB,OAAO,IAAI,MAAM;;IAErD,QACE,OAAM,IAAI,mBAAmB;;;AAInC,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,WAAW,OACb,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO;;;CAIT,MAAM,KAAK,SAAyC;EAQlD,MAAM,UAPW,MAAM,KAAK,OAAO,YACjC,EACE,MAAM,KAAK,MACZ,EACD,QACD,EAEuB,gBAAgB;AACxC,MAAI,WAAW,OACb,OAAM,IAAI,MAAM,yCAAyC;AAG3D,UAAQ,QAAR;GACE,KAAK,qBAAqB;GAC1B,KAAK,qBAAqB,QACxB,QAAO;GACT,QACE,QAAO"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ColumnInfo, CreateEndpointRequest, CreateVectorIndexRequest, CustomTag, DeleteDataVectorIndexRequest, DeleteDataVectorIndexResponse, DeleteEndpointRequest, DeleteEndpointResponse, DeleteVectorIndexRequest, DeleteVectorIndexResponse, DeltaSyncVectorIndexSpec, DeltaSyncVectorIndexSpecRequest, DirectAccessVectorIndexSpec, EmbeddingSourceColumn, EmbeddingVectorColumn, Endpoint, EndpointScalingInfo, EndpointStatus, EndpointStatus_State, EndpointType, FacetResultData, GetEndpointRequest, GetVectorIndexRequest, IndexSubtype, ListEndpointResponse, ListEndpointsRequest, ListValue, ListVectorIndexRequest, ListVectorIndexResponse, MapStringValueEntry, Metric, MetricLabel, MetricValue, MetricValues, MiniVectorIndex, PatchEndpointBudgetPolicyRequest, PatchEndpointBudgetPolicyResponse, PatchEndpointRequest, PipelineType, QueryVectorIndexNextPageRequest, QueryVectorIndexRequest, QueryVectorIndexResponse, RerankerConfig, RerankerConfig_RerankerParameters, ResultData, ResultManifest, RetrieveUserVisibleMetricsRequest, RetrieveUserVisibleMetricsResponse, ScalingChangeState, ScanVectorIndexRequest, ScanVectorIndexResponse, Struct, SyncVectorIndexRequest, SyncVectorIndexResponse, UpdateEndpointCustomTagsRequest, UpdateEndpointCustomTagsResponse, UpsertDataVectorIndexRequest, UpsertDataVectorIndexResponse, UpsertDeleteDataResult, UpsertDeleteDataStatus, Value, VectorIndex, VectorIndexStatus, VectorIndexType } from "./model.js";
|
|
2
|
+
import { CreateEndpointWaiter, VectorSearchClient } from "./client.js";
|
|
3
|
+
export { type ColumnInfo, type CreateEndpointRequest, CreateEndpointWaiter, type CreateVectorIndexRequest, type CustomTag, type DeleteDataVectorIndexRequest, type DeleteDataVectorIndexResponse, type DeleteEndpointRequest, type DeleteEndpointResponse, type DeleteVectorIndexRequest, type DeleteVectorIndexResponse, type DeltaSyncVectorIndexSpec, type DeltaSyncVectorIndexSpecRequest, type DirectAccessVectorIndexSpec, type EmbeddingSourceColumn, type EmbeddingVectorColumn, type Endpoint, type EndpointScalingInfo, type EndpointStatus, EndpointStatus_State, EndpointType, type FacetResultData, type GetEndpointRequest, type GetVectorIndexRequest, IndexSubtype, type ListEndpointResponse, type ListEndpointsRequest, type ListValue, type ListVectorIndexRequest, type ListVectorIndexResponse, type MapStringValueEntry, type Metric, type MetricLabel, type MetricValue, type MetricValues, type MiniVectorIndex, type PatchEndpointBudgetPolicyRequest, type PatchEndpointBudgetPolicyResponse, type PatchEndpointRequest, PipelineType, type QueryVectorIndexNextPageRequest, type QueryVectorIndexRequest, type QueryVectorIndexResponse, type RerankerConfig, type RerankerConfig_RerankerParameters, type ResultData, type ResultManifest, type RetrieveUserVisibleMetricsRequest, type RetrieveUserVisibleMetricsResponse, ScalingChangeState, type ScanVectorIndexRequest, type ScanVectorIndexResponse, type Struct, type SyncVectorIndexRequest, type SyncVectorIndexResponse, type UpdateEndpointCustomTagsRequest, type UpdateEndpointCustomTagsResponse, type UpsertDataVectorIndexRequest, type UpsertDataVectorIndexResponse, type UpsertDeleteDataResult, UpsertDeleteDataStatus, type Value, type VectorIndex, type VectorIndexStatus, VectorIndexType, VectorSearchClient };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EndpointStatus_State, EndpointType, IndexSubtype, PipelineType, ScalingChangeState, UpsertDeleteDataStatus, VectorIndexType } from "./model.js";
|
|
2
|
+
import { CreateEndpointWaiter, VectorSearchClient } from "./client.js";
|
|
3
|
+
|
|
4
|
+
export { CreateEndpointWaiter, EndpointStatus_State, EndpointType, IndexSubtype, PipelineType, ScalingChangeState, UpsertDeleteDataStatus, VectorIndexType, VectorSearchClient };
|