@mixedbread/sdk 0.36.0 → 0.37.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 +9 -0
- package/bin/migration-config.json +2 -2
- package/package.json +1 -1
- package/resources/stores/files.d.mts +21 -21
- package/resources/stores/files.d.mts.map +1 -1
- package/resources/stores/files.d.ts +21 -21
- package/resources/stores/files.d.ts.map +1 -1
- package/resources/stores/files.js +5 -2
- package/resources/stores/files.js.map +1 -1
- package/resources/stores/files.mjs +5 -2
- package/resources/stores/files.mjs.map +1 -1
- package/resources/stores/stores.d.mts +69 -1
- package/resources/stores/stores.d.mts.map +1 -1
- package/resources/stores/stores.d.ts +69 -1
- package/resources/stores/stores.d.ts.map +1 -1
- package/resources/stores/stores.js +2 -2
- package/resources/stores/stores.js.map +1 -1
- package/resources/stores/stores.mjs +2 -2
- package/resources/stores/stores.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +10 -10
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +10 -10
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/src/resources/stores/files.ts +33 -26
- package/src/resources/stores/stores.ts +80 -2
- package/src/resources/vector-stores/files.ts +12 -12
- 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
|
@@ -92,11 +92,10 @@ export class Stores extends APIResource {
|
|
|
92
92
|
* Get metadata facets
|
|
93
93
|
*/
|
|
94
94
|
metadataFacets(
|
|
95
|
-
storeIdentifier: string,
|
|
96
95
|
body: StoreMetadataFacetsParams,
|
|
97
96
|
options?: RequestOptions,
|
|
98
97
|
): APIPromise<StoreMetadataFacetsResponse> {
|
|
99
|
-
return this._client.post(
|
|
98
|
+
return this._client.post('/v1/stores/metadata-facets', { body, ...options });
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
/**
|
|
@@ -164,6 +163,11 @@ export interface Store {
|
|
|
164
163
|
*/
|
|
165
164
|
metadata?: unknown;
|
|
166
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Configuration for a store.
|
|
168
|
+
*/
|
|
169
|
+
config?: Store.Config | null;
|
|
170
|
+
|
|
167
171
|
/**
|
|
168
172
|
* Counts of files in different states
|
|
169
173
|
*/
|
|
@@ -211,6 +215,27 @@ export interface Store {
|
|
|
211
215
|
}
|
|
212
216
|
|
|
213
217
|
export namespace Store {
|
|
218
|
+
/**
|
|
219
|
+
* Configuration for a store.
|
|
220
|
+
*/
|
|
221
|
+
export interface Config {
|
|
222
|
+
/**
|
|
223
|
+
* Contextualize files with metadata
|
|
224
|
+
*/
|
|
225
|
+
contextualization?: boolean | Config.ContextualizationConfig;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export namespace Config {
|
|
229
|
+
export interface ContextualizationConfig {
|
|
230
|
+
/**
|
|
231
|
+
* Include all metadata or specific fields in the contextualization. Supports dot
|
|
232
|
+
* notation for nested fields (e.g., 'author.name'). When True, all metadata is
|
|
233
|
+
* included (flattened). When a list, only specified fields are included.
|
|
234
|
+
*/
|
|
235
|
+
with_metadata?: boolean | Array<string>;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
214
239
|
/**
|
|
215
240
|
* Counts of files in different states
|
|
216
241
|
*/
|
|
@@ -370,12 +395,40 @@ export interface StoreCreateParams {
|
|
|
370
395
|
*/
|
|
371
396
|
metadata?: unknown;
|
|
372
397
|
|
|
398
|
+
/**
|
|
399
|
+
* Configuration for a store.
|
|
400
|
+
*/
|
|
401
|
+
config?: StoreCreateParams.Config | null;
|
|
402
|
+
|
|
373
403
|
/**
|
|
374
404
|
* Optional list of file IDs
|
|
375
405
|
*/
|
|
376
406
|
file_ids?: Array<string> | null;
|
|
377
407
|
}
|
|
378
408
|
|
|
409
|
+
export namespace StoreCreateParams {
|
|
410
|
+
/**
|
|
411
|
+
* Configuration for a store.
|
|
412
|
+
*/
|
|
413
|
+
export interface Config {
|
|
414
|
+
/**
|
|
415
|
+
* Contextualize files with metadata
|
|
416
|
+
*/
|
|
417
|
+
contextualization?: boolean | Config.ContextualizationConfig;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export namespace Config {
|
|
421
|
+
export interface ContextualizationConfig {
|
|
422
|
+
/**
|
|
423
|
+
* Include all metadata or specific fields in the contextualization. Supports dot
|
|
424
|
+
* notation for nested fields (e.g., 'author.name'). When True, all metadata is
|
|
425
|
+
* included (flattened). When a list, only specified fields are included.
|
|
426
|
+
*/
|
|
427
|
+
with_metadata?: boolean | Array<string>;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
379
432
|
export interface StoreUpdateParams {
|
|
380
433
|
/**
|
|
381
434
|
* New name for the store
|
|
@@ -411,6 +464,21 @@ export interface StoreListParams extends CursorParams {
|
|
|
411
464
|
}
|
|
412
465
|
|
|
413
466
|
export interface StoreMetadataFacetsParams {
|
|
467
|
+
/**
|
|
468
|
+
* Search query text
|
|
469
|
+
*/
|
|
470
|
+
query?: string | null;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* IDs or names of stores to search
|
|
474
|
+
*/
|
|
475
|
+
store_identifiers: Array<string>;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Number of results to return
|
|
479
|
+
*/
|
|
480
|
+
top_k?: number;
|
|
481
|
+
|
|
414
482
|
/**
|
|
415
483
|
* Optional filter conditions
|
|
416
484
|
*/
|
|
@@ -420,6 +488,16 @@ export interface StoreMetadataFacetsParams {
|
|
|
420
488
|
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
421
489
|
| null;
|
|
422
490
|
|
|
491
|
+
/**
|
|
492
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
|
493
|
+
*/
|
|
494
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Search configuration options
|
|
498
|
+
*/
|
|
499
|
+
search_options?: StoreChunkSearchOptions;
|
|
500
|
+
|
|
423
501
|
/**
|
|
424
502
|
* Optional list of facets to return. Use dot for nested fields.
|
|
425
503
|
*/
|
|
@@ -1740,6 +1740,16 @@ export interface FileCreateParams {
|
|
|
1740
1740
|
*/
|
|
1741
1741
|
config?: FileCreateParams.Config;
|
|
1742
1742
|
|
|
1743
|
+
/**
|
|
1744
|
+
* External identifier for this file in the store
|
|
1745
|
+
*/
|
|
1746
|
+
external_id?: string | null;
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* If true, overwrite an existing file with the same external_id
|
|
1750
|
+
*/
|
|
1751
|
+
overwrite?: boolean;
|
|
1752
|
+
|
|
1743
1753
|
/**
|
|
1744
1754
|
* ID of the file to add
|
|
1745
1755
|
*/
|
|
@@ -1757,14 +1767,9 @@ export namespace FileCreateParams {
|
|
|
1757
1767
|
*/
|
|
1758
1768
|
export interface Config {
|
|
1759
1769
|
/**
|
|
1760
|
-
* Strategy for adding the file
|
|
1770
|
+
* Strategy for adding the file, this overrides the store-level default
|
|
1761
1771
|
*/
|
|
1762
1772
|
parsing_strategy?: 'fast' | 'high_quality';
|
|
1763
|
-
|
|
1764
|
-
/**
|
|
1765
|
-
* Whether to contextualize the file
|
|
1766
|
-
*/
|
|
1767
|
-
contextualization?: boolean;
|
|
1768
1773
|
}
|
|
1769
1774
|
|
|
1770
1775
|
/**
|
|
@@ -1772,14 +1777,9 @@ export namespace FileCreateParams {
|
|
|
1772
1777
|
*/
|
|
1773
1778
|
export interface Experimental {
|
|
1774
1779
|
/**
|
|
1775
|
-
* Strategy for adding the file
|
|
1780
|
+
* Strategy for adding the file, this overrides the store-level default
|
|
1776
1781
|
*/
|
|
1777
1782
|
parsing_strategy?: 'fast' | 'high_quality';
|
|
1778
|
-
|
|
1779
|
-
/**
|
|
1780
|
-
* Whether to contextualize the file
|
|
1781
|
-
*/
|
|
1782
|
-
contextualization?: boolean;
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
1785
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.37.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.37.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.37.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.37.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|