@mixedbread/sdk 0.15.0 → 0.17.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/CHANGELOG.md +22 -0
- package/README.md +31 -0
- package/bin/migration-config.json +4 -0
- package/client.d.mts +8 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +10 -16
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +10 -16
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/internal/request-options.d.mts +42 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +42 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/data-sources/connectors.d.mts +5 -106
- package/resources/data-sources/connectors.d.mts.map +1 -1
- package/resources/data-sources/connectors.d.ts +5 -106
- package/resources/data-sources/connectors.d.ts.map +1 -1
- package/resources/data-sources/connectors.js +2 -1
- package/resources/data-sources/connectors.js.map +1 -1
- package/resources/data-sources/connectors.mjs +2 -1
- package/resources/data-sources/connectors.mjs.map +1 -1
- package/resources/data-sources/data-sources.d.mts +7 -108
- package/resources/data-sources/data-sources.d.mts.map +1 -1
- package/resources/data-sources/data-sources.d.ts +7 -108
- package/resources/data-sources/data-sources.d.ts.map +1 -1
- package/resources/data-sources/data-sources.js +2 -1
- package/resources/data-sources/data-sources.js.map +1 -1
- package/resources/data-sources/data-sources.mjs +2 -1
- package/resources/data-sources/data-sources.mjs.map +1 -1
- package/resources/data-sources/index.d.mts +2 -2
- package/resources/data-sources/index.d.mts.map +1 -1
- package/resources/data-sources/index.d.ts +2 -2
- package/resources/data-sources/index.d.ts.map +1 -1
- package/resources/embeddings.d.mts +1 -1
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts +1 -1
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/files.d.mts +5 -103
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +5 -103
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -1
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -1
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/parsing/index.d.mts +1 -1
- package/resources/parsing/index.d.mts.map +1 -1
- package/resources/parsing/index.d.ts +1 -1
- package/resources/parsing/index.d.ts.map +1 -1
- package/resources/parsing/index.js.map +1 -1
- package/resources/parsing/index.mjs.map +1 -1
- package/resources/parsing/jobs.d.mts +33 -134
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +33 -134
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js +2 -1
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs +2 -1
- package/resources/parsing/jobs.mjs.map +1 -1
- package/resources/parsing/parsing.d.mts +2 -2
- package/resources/parsing/parsing.d.mts.map +1 -1
- package/resources/parsing/parsing.d.ts +2 -2
- package/resources/parsing/parsing.d.ts.map +1 -1
- package/resources/parsing/parsing.js.map +1 -1
- package/resources/parsing/parsing.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +135 -95
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +135 -95
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +7 -3
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +7 -3
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.mts +2 -2
- package/resources/vector-stores/index.d.mts.map +1 -1
- package/resources/vector-stores/index.d.ts +2 -2
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +23 -117
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +23 -117
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +2 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +2 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/client.ts +8 -6
- package/src/core/pagination.ts +10 -18
- package/src/internal/request-options.ts +53 -0
- package/src/resources/data-sources/connectors.ts +11 -118
- package/src/resources/data-sources/data-sources.ts +9 -120
- package/src/resources/data-sources/index.ts +2 -2
- package/src/resources/embeddings.ts +2 -1
- package/src/resources/files.ts +7 -115
- package/src/resources/index.ts +3 -3
- package/src/resources/parsing/index.ts +1 -0
- package/src/resources/parsing/jobs.ts +38 -145
- package/src/resources/parsing/parsing.ts +2 -0
- package/src/resources/vector-stores/files.ts +167 -103
- package/src/resources/vector-stores/index.ts +2 -2
- package/src/resources/vector-stores/vector-stores.ts +29 -132
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Files = void 0;
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
7
|
+
const pagination_1 = require("../../core/pagination.js");
|
7
8
|
const polling = tslib_1.__importStar(require("../../lib/polling.js"));
|
8
9
|
const path_1 = require("../../internal/utils/path.js");
|
9
10
|
class Files extends resource_1.APIResource {
|
@@ -27,8 +28,11 @@ class Files extends resource_1.APIResource {
|
|
27
28
|
* Returns: VectorStoreFile: Details of the vector store file
|
28
29
|
*/
|
29
30
|
retrieve(fileID, params, options) {
|
30
|
-
const { vector_store_identifier } = params;
|
31
|
-
return this._client.get((0, path_1.path) `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`,
|
31
|
+
const { vector_store_identifier, ...query } = params;
|
32
|
+
return this._client.get((0, path_1.path) `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, {
|
33
|
+
query,
|
34
|
+
...options,
|
35
|
+
});
|
32
36
|
}
|
33
37
|
/**
|
34
38
|
* List files indexed in a vector store with pagination.
|
@@ -39,7 +43,7 @@ class Files extends resource_1.APIResource {
|
|
39
43
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
40
44
|
*/
|
41
45
|
list(vectorStoreIdentifier, query = {}, options) {
|
42
|
-
return this._client.
|
46
|
+
return this._client.getAPIList((0, path_1.path) `/v1/vector_stores/${vectorStoreIdentifier}/files`, (pagination_1.Cursor), { query, ...options });
|
43
47
|
}
|
44
48
|
/**
|
45
49
|
* Delete a file from a vector store.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAKlD,yDAA+E;AAE/E,sEAA6C;AAE7C,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CACJ,qBAA6B,EAC7B,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,qBAAqB,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,uBAAuB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACr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,OAAO,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,eAAe,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;CACF;AAhMD,sBAgMC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
3
|
+
import { Cursor } from "../../core/pagination.mjs";
|
3
4
|
import * as polling from "../../lib/polling.mjs";
|
4
5
|
import { path } from "../../internal/utils/path.mjs";
|
5
6
|
export class Files extends APIResource {
|
@@ -23,8 +24,11 @@ export class Files extends APIResource {
|
|
23
24
|
* Returns: VectorStoreFile: Details of the vector store file
|
24
25
|
*/
|
25
26
|
retrieve(fileID, params, options) {
|
26
|
-
const { vector_store_identifier } = params;
|
27
|
-
return this._client.get(path `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`,
|
27
|
+
const { vector_store_identifier, ...query } = params;
|
28
|
+
return this._client.get(path `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, {
|
29
|
+
query,
|
30
|
+
...options,
|
31
|
+
});
|
28
32
|
}
|
29
33
|
/**
|
30
34
|
* List files indexed in a vector store with pagination.
|
@@ -35,7 +39,7 @@ export class Files extends APIResource {
|
|
35
39
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
36
40
|
*/
|
37
41
|
list(vectorStoreIdentifier, query = {}, options) {
|
38
|
-
return this._client.
|
42
|
+
return this._client.getAPIList(path `/v1/vector_stores/${vectorStoreIdentifier}/files`, (Cursor), { query, ...options });
|
39
43
|
}
|
40
44
|
/**
|
41
45
|
* Delete a file from a vector store.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
1
|
+
{"version":3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,CAAC,MAAM,CACV,qBAA6B,EAC7B,IAAgB,EAChB,IAAwC,EACxC,OAAwB;QAExB,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;QAE9E,OAAO,IAAI,CAAC,MAAM,CAChB,qBAAqB,EACrB;YACE,OAAO,EAAE,kBAAkB,CAAC,EAAE;YAC9B,GAAG,IAAI;SACR,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,aAAa,CACjB,qBAA6B,EAC7B,IAAgB,EAChB,IAAwC,EACxC,cAAuB,EACvB,aAAsB,EACtB,OAAwB;QAExB,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,eAAe,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;CACF"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type
|
2
|
-
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type
|
1
|
+
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesCursor, } from "./files.mjs";
|
2
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, type VectorStoresCursor, } from "./vector-stores.mjs";
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type
|
2
|
-
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type
|
1
|
+
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesCursor, } from "./files.js";
|
2
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, type VectorStoresCursor, } from "./vector-stores.js";
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
2
2
|
import * as Shared from "../shared.mjs";
|
3
3
|
import * as FilesAPI from "./files.mjs";
|
4
|
-
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams,
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFilesCursor } from "./files.mjs";
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
6
7
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
7
8
|
export declare class VectorStores extends APIResource {
|
8
9
|
files: FilesAPI.Files;
|
@@ -41,7 +42,7 @@ export declare class VectorStores extends APIResource {
|
|
41
42
|
*
|
42
43
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
43
44
|
*/
|
44
|
-
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions):
|
45
|
+
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresCursor, VectorStore>;
|
45
46
|
/**
|
46
47
|
* Delete a vector store by ID or name.
|
47
48
|
*
|
@@ -75,6 +76,7 @@ export declare class VectorStores extends APIResource {
|
|
75
76
|
*/
|
76
77
|
search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse>;
|
77
78
|
}
|
79
|
+
export type VectorStoresCursor = Cursor<VectorStore>;
|
78
80
|
/**
|
79
81
|
* Represents an expiration policy for a vector store.
|
80
82
|
*/
|
@@ -131,10 +133,6 @@ export interface ScoredAudioURLInputChunk {
|
|
131
133
|
* Input type identifier
|
132
134
|
*/
|
133
135
|
type?: 'audio_url';
|
134
|
-
/**
|
135
|
-
* The audio input specification.
|
136
|
-
*/
|
137
|
-
audio_url: ScoredAudioURLInputChunk.AudioURL;
|
138
136
|
/**
|
139
137
|
* speech recognition (sr) text of the audio
|
140
138
|
*/
|
@@ -143,6 +141,10 @@ export interface ScoredAudioURLInputChunk {
|
|
143
141
|
* summary of the audio
|
144
142
|
*/
|
145
143
|
summary?: string | null;
|
144
|
+
/**
|
145
|
+
* The audio input specification.
|
146
|
+
*/
|
147
|
+
audio_url: ScoredAudioURLInputChunk.AudioURL;
|
146
148
|
}
|
147
149
|
export declare namespace ScoredAudioURLInputChunk {
|
148
150
|
/**
|
@@ -198,10 +200,6 @@ export interface ScoredImageURLInputChunk {
|
|
198
200
|
* Input type identifier
|
199
201
|
*/
|
200
202
|
type?: 'image_url';
|
201
|
-
/**
|
202
|
-
* The image input specification.
|
203
|
-
*/
|
204
|
-
image_url: ScoredImageURLInputChunk.ImageURL;
|
205
203
|
/**
|
206
204
|
* ocr text of the image
|
207
205
|
*/
|
@@ -210,6 +208,10 @@ export interface ScoredImageURLInputChunk {
|
|
210
208
|
* summary of the image
|
211
209
|
*/
|
212
210
|
summary?: string | null;
|
211
|
+
/**
|
212
|
+
* The image input specification.
|
213
|
+
*/
|
214
|
+
image_url: ScoredImageURLInputChunk.ImageURL;
|
213
215
|
}
|
214
216
|
export declare namespace ScoredImageURLInputChunk {
|
215
217
|
/**
|
@@ -269,6 +271,10 @@ export interface ScoredTextInputChunk {
|
|
269
271
|
* Input type identifier
|
270
272
|
*/
|
271
273
|
type?: 'text';
|
274
|
+
/**
|
275
|
+
* The offset of the text in the file relative to the start of the file.
|
276
|
+
*/
|
277
|
+
offset?: number;
|
272
278
|
/**
|
273
279
|
* Text content to process
|
274
280
|
*/
|
@@ -317,10 +323,6 @@ export interface ScoredVideoURLInputChunk {
|
|
317
323
|
* Input type identifier
|
318
324
|
*/
|
319
325
|
type?: 'video_url';
|
320
|
-
/**
|
321
|
-
* The video input specification.
|
322
|
-
*/
|
323
|
-
video_url: ScoredVideoURLInputChunk.VideoURL;
|
324
326
|
/**
|
325
327
|
* speech recognition (sr) text of the video
|
326
328
|
*/
|
@@ -329,6 +331,10 @@ export interface ScoredVideoURLInputChunk {
|
|
329
331
|
* summary of the video
|
330
332
|
*/
|
331
333
|
summary?: string | null;
|
334
|
+
/**
|
335
|
+
* The video input specification.
|
336
|
+
*/
|
337
|
+
video_url: ScoredVideoURLInputChunk.VideoURL;
|
332
338
|
}
|
333
339
|
export declare namespace ScoredVideoURLInputChunk {
|
334
340
|
/**
|
@@ -454,88 +460,6 @@ export interface VectorStoreChunkSearchOptions {
|
|
454
460
|
*/
|
455
461
|
return_metadata?: boolean;
|
456
462
|
}
|
457
|
-
export interface VectorStoreListResponse {
|
458
|
-
/**
|
459
|
-
* Response model for cursor-based pagination.
|
460
|
-
*
|
461
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
462
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
463
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
464
|
-
*
|
465
|
-
* Final page response:
|
466
|
-
* {
|
467
|
-
* "has_more": false,
|
468
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
469
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
470
|
-
* "total": 42
|
471
|
-
* }
|
472
|
-
*
|
473
|
-
* Empty results:
|
474
|
-
* {
|
475
|
-
* "has_more": false,
|
476
|
-
* "first_cursor": null,
|
477
|
-
* "last_cursor": null,
|
478
|
-
* "total": 0
|
479
|
-
* }
|
480
|
-
*/
|
481
|
-
pagination: VectorStoreListResponse.Pagination;
|
482
|
-
/**
|
483
|
-
* The object type of the response
|
484
|
-
*/
|
485
|
-
object?: 'list';
|
486
|
-
/**
|
487
|
-
* The list of vector stores
|
488
|
-
*/
|
489
|
-
data: Array<VectorStore>;
|
490
|
-
}
|
491
|
-
export declare namespace VectorStoreListResponse {
|
492
|
-
/**
|
493
|
-
* Response model for cursor-based pagination.
|
494
|
-
*
|
495
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
496
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
497
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
498
|
-
*
|
499
|
-
* Final page response:
|
500
|
-
* {
|
501
|
-
* "has_more": false,
|
502
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
503
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
504
|
-
* "total": 42
|
505
|
-
* }
|
506
|
-
*
|
507
|
-
* Empty results:
|
508
|
-
* {
|
509
|
-
* "has_more": false,
|
510
|
-
* "first_cursor": null,
|
511
|
-
* "last_cursor": null,
|
512
|
-
* "total": 0
|
513
|
-
* }
|
514
|
-
*/
|
515
|
-
interface Pagination {
|
516
|
-
/**
|
517
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
518
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
519
|
-
* more items before this page.
|
520
|
-
*/
|
521
|
-
has_more: boolean;
|
522
|
-
/**
|
523
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
524
|
-
* is empty.
|
525
|
-
*/
|
526
|
-
first_cursor: string | null;
|
527
|
-
/**
|
528
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
529
|
-
* is empty.
|
530
|
-
*/
|
531
|
-
last_cursor: string | null;
|
532
|
-
/**
|
533
|
-
* Total number of items available across all pages. Only included when
|
534
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
535
|
-
*/
|
536
|
-
total?: number | null;
|
537
|
-
}
|
538
|
-
}
|
539
463
|
/**
|
540
464
|
* Response model for vector store deletion.
|
541
465
|
*/
|
@@ -624,25 +548,7 @@ export interface VectorStoreUpdateParams {
|
|
624
548
|
*/
|
625
549
|
metadata?: unknown;
|
626
550
|
}
|
627
|
-
export interface VectorStoreListParams {
|
628
|
-
/**
|
629
|
-
* Maximum number of items to return per page (1-100)
|
630
|
-
*/
|
631
|
-
limit?: number;
|
632
|
-
/**
|
633
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
634
|
-
* from previous response.
|
635
|
-
*/
|
636
|
-
after?: string | null;
|
637
|
-
/**
|
638
|
-
* Cursor for backward pagination - get items before this position. Use
|
639
|
-
* first_cursor from previous response.
|
640
|
-
*/
|
641
|
-
before?: string | null;
|
642
|
-
/**
|
643
|
-
* Whether to include total count in response (expensive operation)
|
644
|
-
*/
|
645
|
-
include_total?: boolean;
|
551
|
+
export interface VectorStoreListParams extends CursorParams {
|
646
552
|
/**
|
647
553
|
* Search query for fuzzy matching over name and description fields
|
648
554
|
*/
|
@@ -733,7 +639,7 @@ export interface VectorStoreSearchParams {
|
|
733
639
|
search_options?: VectorStoreChunkSearchOptions;
|
734
640
|
}
|
735
641
|
export declare namespace VectorStores {
|
736
|
-
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type
|
737
|
-
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
642
|
+
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresCursor as VectorStoresCursor, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
643
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesCursor as VectorStoreFilesCursor, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
738
644
|
}
|
739
645
|
//# sourceMappingURL=vector-stores.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vector-stores.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,
|
1
|
+
{"version":3,"file":"vector-stores.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACvB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxF;;;;;;OAMG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAI1F;;;;;;;;OAQG;IACH,MAAM,CACJ,qBAAqB,EAAE,MAAM,EAC7B,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC;IAI1B;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,WAAW,CAAC;IAI/C;;;;;;OAMG;IAC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I,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
2
2
|
import * as Shared from "../shared.js";
|
3
3
|
import * as FilesAPI from "./files.js";
|
4
|
-
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams,
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFilesCursor } from "./files.js";
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
6
7
|
import { RequestOptions } from "../../internal/request-options.js";
|
7
8
|
export declare class VectorStores extends APIResource {
|
8
9
|
files: FilesAPI.Files;
|
@@ -41,7 +42,7 @@ export declare class VectorStores extends APIResource {
|
|
41
42
|
*
|
42
43
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
43
44
|
*/
|
44
|
-
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions):
|
45
|
+
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresCursor, VectorStore>;
|
45
46
|
/**
|
46
47
|
* Delete a vector store by ID or name.
|
47
48
|
*
|
@@ -75,6 +76,7 @@ export declare class VectorStores extends APIResource {
|
|
75
76
|
*/
|
76
77
|
search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse>;
|
77
78
|
}
|
79
|
+
export type VectorStoresCursor = Cursor<VectorStore>;
|
78
80
|
/**
|
79
81
|
* Represents an expiration policy for a vector store.
|
80
82
|
*/
|
@@ -131,10 +133,6 @@ export interface ScoredAudioURLInputChunk {
|
|
131
133
|
* Input type identifier
|
132
134
|
*/
|
133
135
|
type?: 'audio_url';
|
134
|
-
/**
|
135
|
-
* The audio input specification.
|
136
|
-
*/
|
137
|
-
audio_url: ScoredAudioURLInputChunk.AudioURL;
|
138
136
|
/**
|
139
137
|
* speech recognition (sr) text of the audio
|
140
138
|
*/
|
@@ -143,6 +141,10 @@ export interface ScoredAudioURLInputChunk {
|
|
143
141
|
* summary of the audio
|
144
142
|
*/
|
145
143
|
summary?: string | null;
|
144
|
+
/**
|
145
|
+
* The audio input specification.
|
146
|
+
*/
|
147
|
+
audio_url: ScoredAudioURLInputChunk.AudioURL;
|
146
148
|
}
|
147
149
|
export declare namespace ScoredAudioURLInputChunk {
|
148
150
|
/**
|
@@ -198,10 +200,6 @@ export interface ScoredImageURLInputChunk {
|
|
198
200
|
* Input type identifier
|
199
201
|
*/
|
200
202
|
type?: 'image_url';
|
201
|
-
/**
|
202
|
-
* The image input specification.
|
203
|
-
*/
|
204
|
-
image_url: ScoredImageURLInputChunk.ImageURL;
|
205
203
|
/**
|
206
204
|
* ocr text of the image
|
207
205
|
*/
|
@@ -210,6 +208,10 @@ export interface ScoredImageURLInputChunk {
|
|
210
208
|
* summary of the image
|
211
209
|
*/
|
212
210
|
summary?: string | null;
|
211
|
+
/**
|
212
|
+
* The image input specification.
|
213
|
+
*/
|
214
|
+
image_url: ScoredImageURLInputChunk.ImageURL;
|
213
215
|
}
|
214
216
|
export declare namespace ScoredImageURLInputChunk {
|
215
217
|
/**
|
@@ -269,6 +271,10 @@ export interface ScoredTextInputChunk {
|
|
269
271
|
* Input type identifier
|
270
272
|
*/
|
271
273
|
type?: 'text';
|
274
|
+
/**
|
275
|
+
* The offset of the text in the file relative to the start of the file.
|
276
|
+
*/
|
277
|
+
offset?: number;
|
272
278
|
/**
|
273
279
|
* Text content to process
|
274
280
|
*/
|
@@ -317,10 +323,6 @@ export interface ScoredVideoURLInputChunk {
|
|
317
323
|
* Input type identifier
|
318
324
|
*/
|
319
325
|
type?: 'video_url';
|
320
|
-
/**
|
321
|
-
* The video input specification.
|
322
|
-
*/
|
323
|
-
video_url: ScoredVideoURLInputChunk.VideoURL;
|
324
326
|
/**
|
325
327
|
* speech recognition (sr) text of the video
|
326
328
|
*/
|
@@ -329,6 +331,10 @@ export interface ScoredVideoURLInputChunk {
|
|
329
331
|
* summary of the video
|
330
332
|
*/
|
331
333
|
summary?: string | null;
|
334
|
+
/**
|
335
|
+
* The video input specification.
|
336
|
+
*/
|
337
|
+
video_url: ScoredVideoURLInputChunk.VideoURL;
|
332
338
|
}
|
333
339
|
export declare namespace ScoredVideoURLInputChunk {
|
334
340
|
/**
|
@@ -454,88 +460,6 @@ export interface VectorStoreChunkSearchOptions {
|
|
454
460
|
*/
|
455
461
|
return_metadata?: boolean;
|
456
462
|
}
|
457
|
-
export interface VectorStoreListResponse {
|
458
|
-
/**
|
459
|
-
* Response model for cursor-based pagination.
|
460
|
-
*
|
461
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
462
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
463
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
464
|
-
*
|
465
|
-
* Final page response:
|
466
|
-
* {
|
467
|
-
* "has_more": false,
|
468
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
469
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
470
|
-
* "total": 42
|
471
|
-
* }
|
472
|
-
*
|
473
|
-
* Empty results:
|
474
|
-
* {
|
475
|
-
* "has_more": false,
|
476
|
-
* "first_cursor": null,
|
477
|
-
* "last_cursor": null,
|
478
|
-
* "total": 0
|
479
|
-
* }
|
480
|
-
*/
|
481
|
-
pagination: VectorStoreListResponse.Pagination;
|
482
|
-
/**
|
483
|
-
* The object type of the response
|
484
|
-
*/
|
485
|
-
object?: 'list';
|
486
|
-
/**
|
487
|
-
* The list of vector stores
|
488
|
-
*/
|
489
|
-
data: Array<VectorStore>;
|
490
|
-
}
|
491
|
-
export declare namespace VectorStoreListResponse {
|
492
|
-
/**
|
493
|
-
* Response model for cursor-based pagination.
|
494
|
-
*
|
495
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
496
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
497
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
498
|
-
*
|
499
|
-
* Final page response:
|
500
|
-
* {
|
501
|
-
* "has_more": false,
|
502
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
503
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
504
|
-
* "total": 42
|
505
|
-
* }
|
506
|
-
*
|
507
|
-
* Empty results:
|
508
|
-
* {
|
509
|
-
* "has_more": false,
|
510
|
-
* "first_cursor": null,
|
511
|
-
* "last_cursor": null,
|
512
|
-
* "total": 0
|
513
|
-
* }
|
514
|
-
*/
|
515
|
-
interface Pagination {
|
516
|
-
/**
|
517
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
518
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
519
|
-
* more items before this page.
|
520
|
-
*/
|
521
|
-
has_more: boolean;
|
522
|
-
/**
|
523
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
524
|
-
* is empty.
|
525
|
-
*/
|
526
|
-
first_cursor: string | null;
|
527
|
-
/**
|
528
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
529
|
-
* is empty.
|
530
|
-
*/
|
531
|
-
last_cursor: string | null;
|
532
|
-
/**
|
533
|
-
* Total number of items available across all pages. Only included when
|
534
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
535
|
-
*/
|
536
|
-
total?: number | null;
|
537
|
-
}
|
538
|
-
}
|
539
463
|
/**
|
540
464
|
* Response model for vector store deletion.
|
541
465
|
*/
|
@@ -624,25 +548,7 @@ export interface VectorStoreUpdateParams {
|
|
624
548
|
*/
|
625
549
|
metadata?: unknown;
|
626
550
|
}
|
627
|
-
export interface VectorStoreListParams {
|
628
|
-
/**
|
629
|
-
* Maximum number of items to return per page (1-100)
|
630
|
-
*/
|
631
|
-
limit?: number;
|
632
|
-
/**
|
633
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
634
|
-
* from previous response.
|
635
|
-
*/
|
636
|
-
after?: string | null;
|
637
|
-
/**
|
638
|
-
* Cursor for backward pagination - get items before this position. Use
|
639
|
-
* first_cursor from previous response.
|
640
|
-
*/
|
641
|
-
before?: string | null;
|
642
|
-
/**
|
643
|
-
* Whether to include total count in response (expensive operation)
|
644
|
-
*/
|
645
|
-
include_total?: boolean;
|
551
|
+
export interface VectorStoreListParams extends CursorParams {
|
646
552
|
/**
|
647
553
|
* Search query for fuzzy matching over name and description fields
|
648
554
|
*/
|
@@ -733,7 +639,7 @@ export interface VectorStoreSearchParams {
|
|
733
639
|
search_options?: VectorStoreChunkSearchOptions;
|
734
640
|
}
|
735
641
|
export declare namespace VectorStores {
|
736
|
-
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type
|
737
|
-
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
642
|
+
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresCursor as VectorStoresCursor, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
643
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesCursor as VectorStoreFilesCursor, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
738
644
|
}
|
739
645
|
//# sourceMappingURL=vector-stores.d.ts.map
|