@mixedbread/sdk 0.6.0 → 0.8.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.
Files changed (138) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +12 -24
  3. package/bin/migration-config.json +2 -2
  4. package/client.d.mts +4 -4
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +4 -4
  7. package/client.d.ts.map +1 -1
  8. package/client.js +2 -2
  9. package/client.js.map +1 -1
  10. package/client.mjs +2 -2
  11. package/client.mjs.map +1 -1
  12. package/core/pagination.d.mts +1 -1
  13. package/core/pagination.d.mts.map +1 -1
  14. package/core/pagination.d.ts +1 -1
  15. package/core/pagination.d.ts.map +1 -1
  16. package/core/resource.d.mts +1 -1
  17. package/core/resource.d.mts.map +1 -1
  18. package/core/resource.d.ts +1 -1
  19. package/core/resource.d.ts.map +1 -1
  20. package/core/resource.js.map +1 -1
  21. package/core/resource.mjs.map +1 -1
  22. package/internal/detect-platform.js +3 -3
  23. package/internal/detect-platform.js.map +1 -1
  24. package/internal/detect-platform.mjs +3 -3
  25. package/internal/detect-platform.mjs.map +1 -1
  26. package/internal/headers.d.mts.map +1 -1
  27. package/internal/headers.d.ts.map +1 -1
  28. package/internal/headers.js +4 -4
  29. package/internal/headers.js.map +1 -1
  30. package/internal/headers.mjs +4 -4
  31. package/internal/headers.mjs.map +1 -1
  32. package/internal/shim-types.d.mts +11 -22
  33. package/internal/shim-types.d.mts.map +1 -0
  34. package/internal/shim-types.d.ts +11 -22
  35. package/internal/shim-types.d.ts.map +1 -0
  36. package/internal/shim-types.js +4 -0
  37. package/internal/shim-types.js.map +1 -0
  38. package/internal/shim-types.mjs +3 -0
  39. package/internal/shim-types.mjs.map +1 -0
  40. package/internal/shims.d.mts +2 -2
  41. package/internal/shims.d.mts.map +1 -1
  42. package/internal/shims.d.ts +2 -2
  43. package/internal/shims.d.ts.map +1 -1
  44. package/internal/uploads.js +1 -1
  45. package/internal/uploads.js.map +1 -1
  46. package/internal/uploads.mjs +1 -1
  47. package/internal/uploads.mjs.map +1 -1
  48. package/internal/utils/log.js +1 -1
  49. package/internal/utils/log.js.map +1 -1
  50. package/internal/utils/log.mjs +1 -1
  51. package/internal/utils/log.mjs.map +1 -1
  52. package/internal/utils/path.d.mts.map +1 -1
  53. package/internal/utils/path.d.ts.map +1 -1
  54. package/internal/utils/path.js.map +1 -1
  55. package/internal/utils/path.mjs +1 -1
  56. package/internal/utils/path.mjs.map +1 -1
  57. package/internal/utils/values.d.mts +2 -0
  58. package/internal/utils/values.d.mts.map +1 -1
  59. package/internal/utils/values.d.ts +2 -0
  60. package/internal/utils/values.d.ts.map +1 -1
  61. package/internal/utils/values.js +4 -1
  62. package/internal/utils/values.js.map +1 -1
  63. package/internal/utils/values.mjs +2 -0
  64. package/internal/utils/values.mjs.map +1 -1
  65. package/package.json +1 -4
  66. package/resources/data-sources/connectors.d.mts +14 -4
  67. package/resources/data-sources/connectors.d.mts.map +1 -1
  68. package/resources/data-sources/connectors.d.ts +14 -4
  69. package/resources/data-sources/connectors.d.ts.map +1 -1
  70. package/resources/data-sources/data-sources.d.mts +172 -35
  71. package/resources/data-sources/data-sources.d.mts.map +1 -1
  72. package/resources/data-sources/data-sources.d.ts +172 -35
  73. package/resources/data-sources/data-sources.d.ts.map +1 -1
  74. package/resources/data-sources/data-sources.js.map +1 -1
  75. package/resources/data-sources/data-sources.mjs.map +1 -1
  76. package/resources/data-sources/index.d.mts +1 -1
  77. package/resources/data-sources/index.d.mts.map +1 -1
  78. package/resources/data-sources/index.d.ts +1 -1
  79. package/resources/data-sources/index.d.ts.map +1 -1
  80. package/resources/data-sources/index.js.map +1 -1
  81. package/resources/data-sources/index.mjs.map +1 -1
  82. package/resources/extractions/content.d.mts +4 -0
  83. package/resources/extractions/content.d.mts.map +1 -1
  84. package/resources/extractions/content.d.ts +4 -0
  85. package/resources/extractions/content.d.ts.map +1 -1
  86. package/resources/index.d.mts +1 -1
  87. package/resources/index.d.mts.map +1 -1
  88. package/resources/index.d.ts +1 -1
  89. package/resources/index.d.ts.map +1 -1
  90. package/resources/index.js.map +1 -1
  91. package/resources/index.mjs.map +1 -1
  92. package/resources/vector-stores/files.d.mts +59 -26
  93. package/resources/vector-stores/files.d.mts.map +1 -1
  94. package/resources/vector-stores/files.d.ts +59 -26
  95. package/resources/vector-stores/files.d.ts.map +1 -1
  96. package/resources/vector-stores/files.js +32 -31
  97. package/resources/vector-stores/files.js.map +1 -1
  98. package/resources/vector-stores/files.mjs +32 -31
  99. package/resources/vector-stores/files.mjs.map +1 -1
  100. package/resources/vector-stores/index.d.mts +1 -1
  101. package/resources/vector-stores/index.d.mts.map +1 -1
  102. package/resources/vector-stores/index.d.ts +1 -1
  103. package/resources/vector-stores/index.d.ts.map +1 -1
  104. package/resources/vector-stores/index.js.map +1 -1
  105. package/resources/vector-stores/index.mjs.map +1 -1
  106. package/resources/vector-stores/vector-stores.d.mts +53 -18
  107. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  108. package/resources/vector-stores/vector-stores.d.ts +53 -18
  109. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  110. package/resources/vector-stores/vector-stores.js +18 -15
  111. package/resources/vector-stores/vector-stores.js.map +1 -1
  112. package/resources/vector-stores/vector-stores.mjs +18 -15
  113. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  114. package/src/client.ts +10 -4
  115. package/src/core/pagination.ts +1 -1
  116. package/src/core/resource.ts +1 -1
  117. package/src/internal/detect-platform.ts +3 -3
  118. package/src/internal/headers.ts +5 -5
  119. package/src/internal/shim-types.ts +26 -0
  120. package/src/internal/shims.ts +2 -2
  121. package/src/internal/uploads.ts +2 -2
  122. package/src/internal/utils/log.ts +1 -1
  123. package/src/internal/utils/path.ts +1 -1
  124. package/src/internal/utils/values.ts +3 -0
  125. package/src/resources/data-sources/connectors.ts +14 -4
  126. package/src/resources/data-sources/data-sources.ts +207 -37
  127. package/src/resources/data-sources/index.ts +3 -0
  128. package/src/resources/extractions/content.ts +5 -0
  129. package/src/resources/index.ts +3 -0
  130. package/src/resources/vector-stores/files.ts +81 -39
  131. package/src/resources/vector-stores/index.ts +2 -0
  132. package/src/resources/vector-stores/vector-stores.ts +67 -20
  133. package/src/version.ts +1 -1
  134. package/version.d.mts +1 -1
  135. package/version.d.ts +1 -1
  136. package/version.js +1 -1
  137. package/version.mjs +1 -1
  138. package/src/internal/shim-types.d.ts +0 -28
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAIlD,yDAAyF;AAEzF,uDAAiD;AACjD,sEAA6C;AAG7C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CACJ,aAAqB,EACrB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,aAAa,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,eAAe,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,aAAqB,EACrB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,aAAa,QAAQ,EAC9C,CAAA,wBAA4B,CAAA,EAC5B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;I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;;;;;;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;AA7LD,sBA6LC"}
@@ -1,53 +1,54 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import { LimitOffset } from "../../core/pagination.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
4
  import * as polling from "../../lib/polling.mjs";
5
+ import { path } from "../../internal/utils/path.mjs";
6
6
  export class Files extends APIResource {
7
7
  /**
8
8
  * Upload a new file to a vector store for indexing.
9
9
  *
10
- * Args: vector_store_id: The ID of the vector store to upload to file: The file to
11
- * upload and index
10
+ * Args: vector_store_identifier: The ID or name of the vector store to upload to
11
+ * file: The file to upload and index
12
12
  *
13
13
  * Returns: VectorStoreFile: Details of the uploaded and indexed file
14
14
  */
15
- create(vectorStoreID, body, options) {
16
- return this._client.post(path `/v1/vector_stores/${vectorStoreID}/files`, { body, ...options });
15
+ create(vectorStoreIdentifier, body, options) {
16
+ return this._client.post(path `/v1/vector_stores/${vectorStoreIdentifier}/files`, { body, ...options });
17
17
  }
18
18
  /**
19
19
  * Get details of a specific file in a vector store.
20
20
  *
21
- * Args: vector_store_id: The ID of the vector store file_id: The ID of the file
21
+ * Args: vector_store_identifier: The ID or name of the vector store file_id: The
22
+ * ID of the file
22
23
  *
23
24
  * Returns: VectorStoreFile: Details of the vector store file
24
25
  */
25
26
  retrieve(fileID, params, options) {
26
- const { vector_store_id } = params;
27
- return this._client.get(path `/v1/vector_stores/${vector_store_id}/files/${fileID}`, options);
27
+ const { vector_store_identifier } = params;
28
+ return this._client.get(path `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, options);
28
29
  }
29
30
  /**
30
31
  * List files indexed in a vector store with pagination.
31
32
  *
32
- * Args: vector_store_id: The ID of the vector store pagination: Pagination
33
- * parameters
33
+ * Args: vector_store_identifier: The ID or name of the vector store pagination:
34
+ * Pagination parameters
34
35
  *
35
36
  * Returns: VectorStoreFileListResponse: Paginated list of vector store files
36
37
  */
37
- list(vectorStoreID, query = {}, options) {
38
- return this._client.getAPIList(path `/v1/vector_stores/${vectorStoreID}/files`, (LimitOffset), { query, ...options });
38
+ list(vectorStoreIdentifier, query = {}, options) {
39
+ return this._client.getAPIList(path `/v1/vector_stores/${vectorStoreIdentifier}/files`, (LimitOffset), { query, ...options });
39
40
  }
40
41
  /**
41
42
  * Delete a file from a vector store.
42
43
  *
43
- * Args: vector_store_id: The ID of the vector store file_id: The ID of the file to
44
- * delete
44
+ * Args: vector_store_identifier: The ID or name of the vector store file_id: The
45
+ * ID of the file to delete
45
46
  *
46
47
  * Returns: VectorStoreFileDeleted: The deleted file
47
48
  */
48
49
  delete(fileID, params, options) {
49
- const { vector_store_id } = params;
50
- return this._client.delete(path `/v1/vector_stores/${vector_store_id}/files/${fileID}`, options);
50
+ const { vector_store_identifier } = params;
51
+ return this._client.delete(path `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, options);
51
52
  }
52
53
  /**
53
54
  * Perform semantic search across complete vector store files.
@@ -73,19 +74,19 @@ export class Files extends APIResource {
73
74
  /**
74
75
  * Poll for a file's processing status until it reaches a terminal state.
75
76
  *
76
- * @param vectorStoreId - The ID of the vector store
77
+ * @param vectorStoreIdentifier - The identifier of the vector store
77
78
  * @param fileId - The ID of the file to poll
78
79
  * @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
79
80
  * @param pollTimeoutMs - The maximum time to poll for in milliseconds (default: no timeout)
80
81
  * @param options - Additional request options
81
82
  * @returns The file object once it reaches a terminal state
82
83
  */
83
- async poll(vectorStoreId, fileId, pollIntervalMs, pollTimeoutMs, options) {
84
+ async poll(vectorStoreIdentifier, fileId, pollIntervalMs, pollTimeoutMs, options) {
84
85
  const pollingIntervalMs = pollIntervalMs || 500;
85
86
  const pollingTimeoutMs = pollTimeoutMs;
86
87
  return polling.poll({
87
- fn: () => this.retrieve(fileId, { vector_store_id: vectorStoreId, ...options }),
88
- condition: (result) => result.status === 'completed' || result.status === 'failed' || result.status === 'error',
88
+ fn: () => this.retrieve(fileId, { vector_store_identifier: vectorStoreIdentifier, ...options }),
89
+ condition: (result) => result.status === 'completed' || result.status === 'failed' || result.status === 'cancelled',
89
90
  intervalSeconds: pollingIntervalMs / 1000,
90
91
  ...(pollingTimeoutMs && { timeoutSeconds: pollingTimeoutMs / 1000 }),
91
92
  });
@@ -93,30 +94,30 @@ export class Files extends APIResource {
93
94
  /**
94
95
  * Create a file in a vector store and wait for it to be processed.
95
96
  *
96
- * @param vectorStoreId - The ID of the vector store to upload to
97
+ * @param vectorStoreIdentifier - The identifier of the vector store to upload to
97
98
  * @param body - The file creation parameters
98
99
  * @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
99
100
  * @param pollTimeoutMs - The maximum time to poll for in milliseconds (default: no timeout)
100
101
  * @param options - Additional request options
101
102
  * @returns The file object once it reaches a terminal state
102
103
  */
103
- async createAndPoll(vectorStoreId, body, pollIntervalMs, pollTimeoutMs, options) {
104
- const file = await this.create(vectorStoreId, body, options);
105
- return this.poll(vectorStoreId, file.id, pollIntervalMs, pollTimeoutMs, options);
104
+ async createAndPoll(vectorStoreIdentifier, body, pollIntervalMs, pollTimeoutMs, options) {
105
+ const file = await this.create(vectorStoreIdentifier, body, options);
106
+ return this.poll(vectorStoreIdentifier, file.id, pollIntervalMs, pollTimeoutMs, options);
106
107
  }
107
108
  /**
108
109
  * Upload a file to the files API and then create a file in a vector store.
109
110
  * Note the file will be asynchronously processed.
110
111
  *
111
- * @param vectorStoreId - The ID of the vector store to add the file to
112
+ * @param vectorStoreIdentifier - The identifier of the vector store to add the file to
112
113
  * @param file - The file to upload
113
114
  * @param body - Additional parameters for the vector store file
114
115
  * @param options - Additional request options
115
116
  * @returns The created vector store file
116
117
  */
117
- async upload(vectorStoreId, file, body, options) {
118
+ async upload(vectorStoreIdentifier, file, body, options) {
118
119
  const fileUploadResponse = await this._client.files.create({ file }, options);
119
- return this.create(vectorStoreId, {
120
+ return this.create(vectorStoreIdentifier, {
120
121
  file_id: fileUploadResponse.id,
121
122
  ...body,
122
123
  }, options);
@@ -124,7 +125,7 @@ export class Files extends APIResource {
124
125
  /**
125
126
  * Upload a file to files API, create a file in a vector store, and poll until processing is complete.
126
127
  *
127
- * @param vectorStoreId - The ID of the vector store to add the file to
128
+ * @param vectorStoreIdentifier - The identifier of the vector store to add the file to
128
129
  * @param file - The file to upload
129
130
  * @param body - Additional parameters for the vector store file
130
131
  * @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
@@ -132,9 +133,9 @@ export class Files extends APIResource {
132
133
  * @param options - Additional request options
133
134
  * @returns The vector store file object once it reaches a terminal state
134
135
  */
135
- async uploadAndPoll(vectorStoreId, file, body, pollIntervalMs, pollTimeoutMs, options) {
136
- const vectorStoreFile = await this.upload(vectorStoreId, file, body, options);
137
- return this.poll(vectorStoreId, vectorStoreFile.id, pollIntervalMs, pollTimeoutMs, options);
136
+ async uploadAndPoll(vectorStoreIdentifier, file, body, pollIntervalMs, pollTimeoutMs, options) {
137
+ const vectorStoreFile = await this.upload(vectorStoreIdentifier, file, body, options);
138
+ return this.poll(vectorStoreIdentifier, vectorStoreFile.id, pollIntervalMs, pollTimeoutMs, options);
138
139
  }
139
140
  }
140
141
  //# sourceMappingURL=files.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAA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oredVectorStoreFile, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesLimitOffset, } from "./files.mjs";
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 VectorStoreFilesLimitOffset, } from "./files.mjs";
2
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 VectorStoresLimitOffset, } 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,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,2BAA2B,GACjC;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,uBAAuB,GAC7B"}
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,2BAA2B,GACjC;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,uBAAuB,GAC7B"}
@@ -1,3 +1,3 @@
1
- export { Files, type ScoredVectorStoreFile, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesLimitOffset, } from "./files.js";
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 VectorStoreFilesLimitOffset, } from "./files.js";
2
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 VectorStoresLimitOffset, } 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,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,2BAA2B,GACjC;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,uBAAuB,GAC7B"}
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,2BAA2B,GACjC;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,uBAAuB,GAC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAYiB;AAXf,8FAAA,KAAK,OAAA;AAYP,oDAkByB;AAjBvB,6GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAciB;AAbf,8FAAA,KAAK,OAAA;AAcP,oDAkByB;AAjBvB,6GAAA,YAAY,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAWN;OACM,EACL,YAAY,GAiBb"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAaN;OACM,EACL,YAAY,GAiBb"}
@@ -1,7 +1,7 @@
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, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFilesLimitOffset } from "./files.mjs";
4
+ import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFilesLimitOffset } from "./files.mjs";
5
5
  import { APIPromise } from "../../core/api-promise.mjs";
6
6
  import { LimitOffset, type LimitOffsetParams, PagePromise } from "../../core/pagination.mjs";
7
7
  import { RequestOptions } from "../../internal/request-options.mjs";
@@ -17,39 +17,40 @@ export declare class VectorStores extends APIResource {
17
17
  */
18
18
  create(body: VectorStoreCreateParams, options?: RequestOptions): APIPromise<VectorStore>;
19
19
  /**
20
- * Get a vector store by ID.
20
+ * Get a vector store by ID or name.
21
21
  *
22
- * Args: vector_store_id: The ID of the vector store to retrieve.
22
+ * Args: vector_store_identifier: The ID or name of the vector store to retrieve.
23
23
  *
24
24
  * Returns: VectorStore: The response containing the vector store details.
25
25
  */
26
- retrieve(vectorStoreID: string, options?: RequestOptions): APIPromise<VectorStore>;
26
+ retrieve(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStore>;
27
27
  /**
28
- * Update a vector store by ID.
28
+ * Update a vector store by ID or name.
29
29
  *
30
- * Args: vector_store_id: The ID of the vector store to update.
30
+ * Args: vector_store_identifier: The ID or name of the vector store to update.
31
31
  * vector_store_update: VectorStoreCreate object containing the name, description,
32
32
  * and metadata.
33
33
  *
34
34
  * Returns: VectorStore: The response containing the updated vector store details.
35
35
  */
36
- update(vectorStoreID: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise<VectorStore>;
36
+ update(vectorStoreIdentifier: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise<VectorStore>;
37
37
  /**
38
- * List all vector stores.
38
+ * List all vector stores with optional search.
39
39
  *
40
- * Args: pagination: The pagination options.
40
+ * Args: pagination: The pagination options. q: Optional search query to filter
41
+ * vector stores.
41
42
  *
42
43
  * Returns: VectorStoreListResponse: The list of vector stores.
43
44
  */
44
45
  list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresLimitOffset, VectorStore>;
45
46
  /**
46
- * Delete a vector store by ID.
47
+ * Delete a vector store by ID or name.
47
48
  *
48
- * Args: vector_store_id: The ID of the vector store to delete.
49
+ * Args: vector_store_identifier: The ID or name of the vector store to delete.
49
50
  *
50
51
  * Returns: VectorStore: The response containing the deleted vector store details.
51
52
  */
52
- delete(vectorStoreID: string, options?: RequestOptions): APIPromise<VectorStoreDeleteResponse>;
53
+ delete(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStoreDeleteResponse>;
53
54
  /**
54
55
  * Question answering
55
56
  */
@@ -62,7 +63,9 @@ export declare class VectorStores extends APIResource {
62
63
  * relevance-scored results.
63
64
  *
64
65
  * Args: search_params: Search configuration including: - query text or
65
- * embeddings - metadata filters - pagination parameters - sorting preferences
66
+ * embeddings - vector_store_ids: List of vector stores to search - file_ids:
67
+ * Optional list of file IDs to filter chunks by (or tuple of list and condition
68
+ * operator) - metadata filters - pagination parameters - sorting preferences
66
69
  * \_state: API state dependency \_ctx: Service context dependency
67
70
  *
68
71
  * Returns: VectorStoreSearchChunkResponse containing: - List of matched chunks
@@ -207,6 +210,10 @@ export declare namespace ScoredImageURLInputChunk {
207
210
  * The image URL. Can be either a URL or a Data URI.
208
211
  */
209
212
  url: string;
213
+ /**
214
+ * The image format/mimetype
215
+ */
216
+ format?: string;
210
217
  }
211
218
  }
212
219
  export interface ScoredTextInputChunk {
@@ -374,6 +381,10 @@ export declare namespace VectorStore {
374
381
  * Counts of files in different states
375
382
  */
376
383
  interface FileCounts {
384
+ /**
385
+ * Number of files waiting to be processed
386
+ */
387
+ pending?: number;
377
388
  /**
378
389
  * Number of files currently being processed
379
390
  */
@@ -408,6 +419,10 @@ export interface VectorStoreChunkSearchOptions {
408
419
  * Whether to rewrite the query
409
420
  */
410
421
  rewrite_query?: boolean;
422
+ /**
423
+ * Whether to rerank results and optional reranking configuration
424
+ */
425
+ rerank?: boolean | FilesAPI.RerankConfig | null;
411
426
  /**
412
427
  * Whether to return file metadata
413
428
  */
@@ -494,6 +509,10 @@ export interface VectorStoreUpdateParams {
494
509
  metadata?: unknown;
495
510
  }
496
511
  export interface VectorStoreListParams extends LimitOffsetParams {
512
+ /**
513
+ * Search query for fuzzy matching over name and description fields
514
+ */
515
+ q?: string | null;
497
516
  }
498
517
  export interface VectorStoreQuestionAnsweringParams {
499
518
  /**
@@ -502,9 +521,13 @@ export interface VectorStoreQuestionAnsweringParams {
502
521
  */
503
522
  query?: string;
504
523
  /**
505
- * IDs of vector stores to search
524
+ * IDs or names of vector stores to search
506
525
  */
507
- vector_store_ids: Array<string>;
526
+ vector_store_identifiers?: Array<string> | null;
527
+ /**
528
+ * @deprecated
529
+ */
530
+ vector_store_ids?: Array<string> | null;
508
531
  /**
509
532
  * Number of results to return
510
533
  */
@@ -513,6 +536,10 @@ export interface VectorStoreQuestionAnsweringParams {
513
536
  * Optional filter conditions
514
537
  */
515
538
  filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
539
+ /**
540
+ * Optional list of file IDs to filter chunks by (inclusion filter)
541
+ */
542
+ file_ids?: Array<unknown> | Array<string> | null;
516
543
  /**
517
544
  * Search configuration options
518
545
  */
@@ -547,9 +574,13 @@ export interface VectorStoreSearchParams {
547
574
  */
548
575
  query: string;
549
576
  /**
550
- * IDs of vector stores to search
577
+ * IDs or names of vector stores to search
551
578
  */
552
- vector_store_ids: Array<string>;
579
+ vector_store_identifiers?: Array<string> | null;
580
+ /**
581
+ * @deprecated
582
+ */
583
+ vector_store_ids?: Array<string> | null;
553
584
  /**
554
585
  * Number of results to return
555
586
  */
@@ -558,6 +589,10 @@ export interface VectorStoreSearchParams {
558
589
  * Optional filter conditions
559
590
  */
560
591
  filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
592
+ /**
593
+ * Optional list of file IDs to filter chunks by (inclusion filter)
594
+ */
595
+ file_ids?: Array<unknown> | Array<string> | null;
561
596
  /**
562
597
  * Search configuration options
563
598
  */
@@ -565,6 +600,6 @@ export interface VectorStoreSearchParams {
565
600
  }
566
601
  export declare namespace VectorStores {
567
602
  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 VectorStoresLimitOffset as VectorStoresLimitOffset, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
568
- export { Files as Files, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesLimitOffset as VectorStoreFilesLimitOffset, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
603
+ 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 VectorStoreFilesLimitOffset as VectorStoreFilesLimitOffset, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
569
604
  }
570
605
  //# 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,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,qBAAqB,EACrB,eAAe,EACf,2BAA2B,EAC5B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,WAAW,EAAE;OACpD,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,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIlF;;;;;;;;OAQG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC;IAI1B;;;;;;OAMG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uBAAuB,EAAE,WAAW,CAAC;IAIpD;;;;;;OAMG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,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uB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,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
+ {"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,2BAA2B,EAC5B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,WAAW,EAAE;OACpD,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,MA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IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,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,7 +1,7 @@
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, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFilesLimitOffset } from "./files.js";
4
+ import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFilesLimitOffset } from "./files.js";
5
5
  import { APIPromise } from "../../core/api-promise.js";
6
6
  import { LimitOffset, type LimitOffsetParams, PagePromise } from "../../core/pagination.js";
7
7
  import { RequestOptions } from "../../internal/request-options.js";
@@ -17,39 +17,40 @@ export declare class VectorStores extends APIResource {
17
17
  */
18
18
  create(body: VectorStoreCreateParams, options?: RequestOptions): APIPromise<VectorStore>;
19
19
  /**
20
- * Get a vector store by ID.
20
+ * Get a vector store by ID or name.
21
21
  *
22
- * Args: vector_store_id: The ID of the vector store to retrieve.
22
+ * Args: vector_store_identifier: The ID or name of the vector store to retrieve.
23
23
  *
24
24
  * Returns: VectorStore: The response containing the vector store details.
25
25
  */
26
- retrieve(vectorStoreID: string, options?: RequestOptions): APIPromise<VectorStore>;
26
+ retrieve(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStore>;
27
27
  /**
28
- * Update a vector store by ID.
28
+ * Update a vector store by ID or name.
29
29
  *
30
- * Args: vector_store_id: The ID of the vector store to update.
30
+ * Args: vector_store_identifier: The ID or name of the vector store to update.
31
31
  * vector_store_update: VectorStoreCreate object containing the name, description,
32
32
  * and metadata.
33
33
  *
34
34
  * Returns: VectorStore: The response containing the updated vector store details.
35
35
  */
36
- update(vectorStoreID: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise<VectorStore>;
36
+ update(vectorStoreIdentifier: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise<VectorStore>;
37
37
  /**
38
- * List all vector stores.
38
+ * List all vector stores with optional search.
39
39
  *
40
- * Args: pagination: The pagination options.
40
+ * Args: pagination: The pagination options. q: Optional search query to filter
41
+ * vector stores.
41
42
  *
42
43
  * Returns: VectorStoreListResponse: The list of vector stores.
43
44
  */
44
45
  list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresLimitOffset, VectorStore>;
45
46
  /**
46
- * Delete a vector store by ID.
47
+ * Delete a vector store by ID or name.
47
48
  *
48
- * Args: vector_store_id: The ID of the vector store to delete.
49
+ * Args: vector_store_identifier: The ID or name of the vector store to delete.
49
50
  *
50
51
  * Returns: VectorStore: The response containing the deleted vector store details.
51
52
  */
52
- delete(vectorStoreID: string, options?: RequestOptions): APIPromise<VectorStoreDeleteResponse>;
53
+ delete(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStoreDeleteResponse>;
53
54
  /**
54
55
  * Question answering
55
56
  */
@@ -62,7 +63,9 @@ export declare class VectorStores extends APIResource {
62
63
  * relevance-scored results.
63
64
  *
64
65
  * Args: search_params: Search configuration including: - query text or
65
- * embeddings - metadata filters - pagination parameters - sorting preferences
66
+ * embeddings - vector_store_ids: List of vector stores to search - file_ids:
67
+ * Optional list of file IDs to filter chunks by (or tuple of list and condition
68
+ * operator) - metadata filters - pagination parameters - sorting preferences
66
69
  * \_state: API state dependency \_ctx: Service context dependency
67
70
  *
68
71
  * Returns: VectorStoreSearchChunkResponse containing: - List of matched chunks
@@ -207,6 +210,10 @@ export declare namespace ScoredImageURLInputChunk {
207
210
  * The image URL. Can be either a URL or a Data URI.
208
211
  */
209
212
  url: string;
213
+ /**
214
+ * The image format/mimetype
215
+ */
216
+ format?: string;
210
217
  }
211
218
  }
212
219
  export interface ScoredTextInputChunk {
@@ -374,6 +381,10 @@ export declare namespace VectorStore {
374
381
  * Counts of files in different states
375
382
  */
376
383
  interface FileCounts {
384
+ /**
385
+ * Number of files waiting to be processed
386
+ */
387
+ pending?: number;
377
388
  /**
378
389
  * Number of files currently being processed
379
390
  */
@@ -408,6 +419,10 @@ export interface VectorStoreChunkSearchOptions {
408
419
  * Whether to rewrite the query
409
420
  */
410
421
  rewrite_query?: boolean;
422
+ /**
423
+ * Whether to rerank results and optional reranking configuration
424
+ */
425
+ rerank?: boolean | FilesAPI.RerankConfig | null;
411
426
  /**
412
427
  * Whether to return file metadata
413
428
  */
@@ -494,6 +509,10 @@ export interface VectorStoreUpdateParams {
494
509
  metadata?: unknown;
495
510
  }
496
511
  export interface VectorStoreListParams extends LimitOffsetParams {
512
+ /**
513
+ * Search query for fuzzy matching over name and description fields
514
+ */
515
+ q?: string | null;
497
516
  }
498
517
  export interface VectorStoreQuestionAnsweringParams {
499
518
  /**
@@ -502,9 +521,13 @@ export interface VectorStoreQuestionAnsweringParams {
502
521
  */
503
522
  query?: string;
504
523
  /**
505
- * IDs of vector stores to search
524
+ * IDs or names of vector stores to search
506
525
  */
507
- vector_store_ids: Array<string>;
526
+ vector_store_identifiers?: Array<string> | null;
527
+ /**
528
+ * @deprecated
529
+ */
530
+ vector_store_ids?: Array<string> | null;
508
531
  /**
509
532
  * Number of results to return
510
533
  */
@@ -513,6 +536,10 @@ export interface VectorStoreQuestionAnsweringParams {
513
536
  * Optional filter conditions
514
537
  */
515
538
  filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
539
+ /**
540
+ * Optional list of file IDs to filter chunks by (inclusion filter)
541
+ */
542
+ file_ids?: Array<unknown> | Array<string> | null;
516
543
  /**
517
544
  * Search configuration options
518
545
  */
@@ -547,9 +574,13 @@ export interface VectorStoreSearchParams {
547
574
  */
548
575
  query: string;
549
576
  /**
550
- * IDs of vector stores to search
577
+ * IDs or names of vector stores to search
551
578
  */
552
- vector_store_ids: Array<string>;
579
+ vector_store_identifiers?: Array<string> | null;
580
+ /**
581
+ * @deprecated
582
+ */
583
+ vector_store_ids?: Array<string> | null;
553
584
  /**
554
585
  * Number of results to return
555
586
  */
@@ -558,6 +589,10 @@ export interface VectorStoreSearchParams {
558
589
  * Optional filter conditions
559
590
  */
560
591
  filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
592
+ /**
593
+ * Optional list of file IDs to filter chunks by (inclusion filter)
594
+ */
595
+ file_ids?: Array<unknown> | Array<string> | null;
561
596
  /**
562
597
  * Search configuration options
563
598
  */
@@ -565,6 +600,6 @@ export interface VectorStoreSearchParams {
565
600
  }
566
601
  export declare namespace VectorStores {
567
602
  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 VectorStoresLimitOffset as VectorStoresLimitOffset, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
568
- export { Files as Files, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesLimitOffset as VectorStoreFilesLimitOffset, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
603
+ 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 VectorStoreFilesLimitOffset as VectorStoreFilesLimitOffset, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
569
604
  }
570
605
  //# sourceMappingURL=vector-stores.d.ts.map