@mixedbread/sdk 0.11.1 → 0.13.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 +27 -0
- package/README.md +0 -31
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +9 -5
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +9 -5
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +16 -2
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +16 -2
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/data-sources/connectors.d.mts +106 -5
- package/resources/data-sources/connectors.d.mts.map +1 -1
- package/resources/data-sources/connectors.d.ts +106 -5
- package/resources/data-sources/connectors.d.ts.map +1 -1
- package/resources/data-sources/connectors.js +1 -2
- package/resources/data-sources/connectors.js.map +1 -1
- package/resources/data-sources/connectors.mjs +1 -2
- package/resources/data-sources/connectors.mjs.map +1 -1
- package/resources/data-sources/data-sources.d.mts +108 -7
- package/resources/data-sources/data-sources.d.mts.map +1 -1
- package/resources/data-sources/data-sources.d.ts +108 -7
- package/resources/data-sources/data-sources.d.ts.map +1 -1
- package/resources/data-sources/data-sources.js +1 -2
- package/resources/data-sources/data-sources.js.map +1 -1
- package/resources/data-sources/data-sources.mjs +1 -2
- 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/files.d.mts +107 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +107 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +1 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +1 -2
- 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 +134 -29
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +134 -29
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js +1 -2
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs +1 -2
- 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 +103 -5
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +103 -5
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +1 -2
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +1 -2
- 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 +105 -7
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +105 -7
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +1 -2
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +1 -2
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/client.ts +6 -6
- package/src/core/pagination.ts +29 -8
- package/src/resources/data-sources/connectors.ts +118 -11
- package/src/resources/data-sources/data-sources.ts +120 -9
- package/src/resources/data-sources/index.ts +2 -2
- package/src/resources/files.ts +120 -7
- package/src/resources/index.ts +3 -3
- package/src/resources/parsing/index.ts +0 -1
- package/src/resources/parsing/jobs.ts +146 -34
- package/src/resources/parsing/parsing.ts +0 -2
- package/src/resources/vector-stores/files.ts +115 -11
- package/src/resources/vector-stores/index.ts +2 -2
- package/src/resources/vector-stores/vector-stores.ts +117 -9
- 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
@@ -1,9 +1,8 @@
|
|
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, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileListResponse, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus } from "./files.mjs";
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
6
|
-
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
7
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
8
7
|
export declare class VectorStores extends APIResource {
|
9
8
|
files: FilesAPI.Files;
|
@@ -42,7 +41,7 @@ export declare class VectorStores extends APIResource {
|
|
42
41
|
*
|
43
42
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
44
43
|
*/
|
45
|
-
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions):
|
44
|
+
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): APIPromise<VectorStoreListResponse>;
|
46
45
|
/**
|
47
46
|
* Delete a vector store by ID or name.
|
48
47
|
*
|
@@ -76,7 +75,6 @@ export declare class VectorStores extends APIResource {
|
|
76
75
|
*/
|
77
76
|
search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse>;
|
78
77
|
}
|
79
|
-
export type VectorStoresCursor = Cursor<VectorStore>;
|
80
78
|
/**
|
81
79
|
* Represents an expiration policy for a vector store.
|
82
80
|
*/
|
@@ -456,6 +454,88 @@ export interface VectorStoreChunkSearchOptions {
|
|
456
454
|
*/
|
457
455
|
return_metadata?: boolean;
|
458
456
|
}
|
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
|
+
}
|
459
539
|
/**
|
460
540
|
* Response model for vector store deletion.
|
461
541
|
*/
|
@@ -544,7 +624,25 @@ export interface VectorStoreUpdateParams {
|
|
544
624
|
*/
|
545
625
|
metadata?: unknown;
|
546
626
|
}
|
547
|
-
export interface VectorStoreListParams
|
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;
|
548
646
|
/**
|
549
647
|
* Search query for fuzzy matching over name and description fields
|
550
648
|
*/
|
@@ -635,7 +733,7 @@ export interface VectorStoreSearchParams {
|
|
635
733
|
search_options?: VectorStoreChunkSearchOptions;
|
636
734
|
}
|
637
735
|
export declare namespace VectorStores {
|
638
|
-
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
|
639
|
-
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
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 VectorStoreListResponse as VectorStoreListResponse, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
737
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
640
738
|
}
|
641
739
|
//# 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,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,qBAAqB,
|
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,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACtB;OACM,EAAE,UAAU,EAAE;OACd,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,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;OAMG;IACH,MAAM,CAAC,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAItG;;OAEG;IACH,iBAAiB,CACf,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oCAAoC,CAAC;IAInD;;;;;;;;;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,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,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,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,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,9 +1,8 @@
|
|
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, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileListResponse, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus } from "./files.js";
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
6
|
-
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
7
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
8
7
|
export declare class VectorStores extends APIResource {
|
9
8
|
files: FilesAPI.Files;
|
@@ -42,7 +41,7 @@ export declare class VectorStores extends APIResource {
|
|
42
41
|
*
|
43
42
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
44
43
|
*/
|
45
|
-
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions):
|
44
|
+
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): APIPromise<VectorStoreListResponse>;
|
46
45
|
/**
|
47
46
|
* Delete a vector store by ID or name.
|
48
47
|
*
|
@@ -76,7 +75,6 @@ export declare class VectorStores extends APIResource {
|
|
76
75
|
*/
|
77
76
|
search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse>;
|
78
77
|
}
|
79
|
-
export type VectorStoresCursor = Cursor<VectorStore>;
|
80
78
|
/**
|
81
79
|
* Represents an expiration policy for a vector store.
|
82
80
|
*/
|
@@ -456,6 +454,88 @@ export interface VectorStoreChunkSearchOptions {
|
|
456
454
|
*/
|
457
455
|
return_metadata?: boolean;
|
458
456
|
}
|
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
|
+
}
|
459
539
|
/**
|
460
540
|
* Response model for vector store deletion.
|
461
541
|
*/
|
@@ -544,7 +624,25 @@ export interface VectorStoreUpdateParams {
|
|
544
624
|
*/
|
545
625
|
metadata?: unknown;
|
546
626
|
}
|
547
|
-
export interface VectorStoreListParams
|
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;
|
548
646
|
/**
|
549
647
|
* Search query for fuzzy matching over name and description fields
|
550
648
|
*/
|
@@ -635,7 +733,7 @@ export interface VectorStoreSearchParams {
|
|
635
733
|
search_options?: VectorStoreChunkSearchOptions;
|
636
734
|
}
|
637
735
|
export declare namespace VectorStores {
|
638
|
-
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
|
639
|
-
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
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 VectorStoreListResponse as VectorStoreListResponse, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
737
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
640
738
|
}
|
641
739
|
//# sourceMappingURL=vector-stores.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vector-stores.d.ts","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,
|
1
|
+
{"version":3,"file":"vector-stores.d.ts","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,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACtB;OACM,EAAE,UAAU,EAAE;OACd,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,CAA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IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,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"}
|
@@ -6,7 +6,6 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
7
7
|
const FilesAPI = tslib_1.__importStar(require("./files.js"));
|
8
8
|
const files_1 = require("./files.js");
|
9
|
-
const pagination_1 = require("../../core/pagination.js");
|
10
9
|
const path_1 = require("../../internal/utils/path.js");
|
11
10
|
class VectorStores extends resource_1.APIResource {
|
12
11
|
constructor() {
|
@@ -55,7 +54,7 @@ class VectorStores extends resource_1.APIResource {
|
|
55
54
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
56
55
|
*/
|
57
56
|
list(query = {}, options) {
|
58
|
-
return this._client.
|
57
|
+
return this._client.get('/v1/vector_stores', { query, ...options });
|
59
58
|
}
|
60
59
|
/**
|
61
60
|
* Delete a vector store by ID or name.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vector-stores.js","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6DAAoC;AACpC,sCAciB;
|
1
|
+
{"version":3,"file":"vector-stores.js","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6DAAoC;AACpC,sCAciB;AAGjB,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,UAA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;;;;;;;;OAkBG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AArGD,oCAqGC;AAuxBD,YAAY,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
3
3
|
import * as FilesAPI from "./files.mjs";
|
4
4
|
import { Files, } from "./files.mjs";
|
5
|
-
import { Cursor } from "../../core/pagination.mjs";
|
6
5
|
import { path } from "../../internal/utils/path.mjs";
|
7
6
|
export class VectorStores extends APIResource {
|
8
7
|
constructor() {
|
@@ -51,7 +50,7 @@ export class VectorStores extends APIResource {
|
|
51
50
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
52
51
|
*/
|
53
52
|
list(query = {}, options) {
|
54
|
-
return this._client.
|
53
|
+
return this._client.get('/v1/vector_stores', { query, ...options });
|
55
54
|
}
|
56
55
|
/**
|
57
56
|
* Delete a vector store by ID or name.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vector-stores.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,QAAQ;OACb,
|
1
|
+
{"version":3,"file":"vector-stores.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,QAAQ;OACb,EASL,KAAK,GAKN;OAGM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoG3D,CAAC;IAlGC;;;;;;;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EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAuxBD,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
package/src/client.ts
CHANGED
@@ -50,8 +50,8 @@ import {
|
|
50
50
|
FileCreateParams,
|
51
51
|
FileDeleteResponse,
|
52
52
|
FileListParams,
|
53
|
+
FileListResponse,
|
53
54
|
FileObject,
|
54
|
-
FileObjectsCursor,
|
55
55
|
FileUpdateParams,
|
56
56
|
Files,
|
57
57
|
PaginationWithTotal,
|
@@ -61,11 +61,11 @@ import {
|
|
61
61
|
DataSourceCreateParams,
|
62
62
|
DataSourceDeleteResponse,
|
63
63
|
DataSourceListParams,
|
64
|
+
DataSourceListResponse,
|
64
65
|
DataSourceOauth2Params,
|
65
66
|
DataSourceType,
|
66
67
|
DataSourceUpdateParams,
|
67
68
|
DataSources,
|
68
|
-
DataSourcesCursor,
|
69
69
|
LinearDataSource,
|
70
70
|
NotionDataSource,
|
71
71
|
Oauth2Params,
|
@@ -83,13 +83,13 @@ import {
|
|
83
83
|
VectorStoreCreateParams,
|
84
84
|
VectorStoreDeleteResponse,
|
85
85
|
VectorStoreListParams,
|
86
|
+
VectorStoreListResponse,
|
86
87
|
VectorStoreQuestionAnsweringParams,
|
87
88
|
VectorStoreQuestionAnsweringResponse,
|
88
89
|
VectorStoreSearchParams,
|
89
90
|
VectorStoreSearchResponse,
|
90
91
|
VectorStoreUpdateParams,
|
91
92
|
VectorStores,
|
92
|
-
VectorStoresCursor,
|
93
93
|
} from './resources/vector-stores/vector-stores';
|
94
94
|
import { type Fetch } from './internal/builtin-types';
|
95
95
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
@@ -890,10 +890,10 @@ export declare namespace Mixedbread {
|
|
890
890
|
type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk,
|
891
891
|
type VectorStore as VectorStore,
|
892
892
|
type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions,
|
893
|
+
type VectorStoreListResponse as VectorStoreListResponse,
|
893
894
|
type VectorStoreDeleteResponse as VectorStoreDeleteResponse,
|
894
895
|
type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse,
|
895
896
|
type VectorStoreSearchResponse as VectorStoreSearchResponse,
|
896
|
-
type VectorStoresCursor as VectorStoresCursor,
|
897
897
|
type VectorStoreCreateParams as VectorStoreCreateParams,
|
898
898
|
type VectorStoreUpdateParams as VectorStoreUpdateParams,
|
899
899
|
type VectorStoreListParams as VectorStoreListParams,
|
@@ -907,8 +907,8 @@ export declare namespace Mixedbread {
|
|
907
907
|
Files as Files,
|
908
908
|
type FileObject as FileObject,
|
909
909
|
type PaginationWithTotal as PaginationWithTotal,
|
910
|
+
type FileListResponse as FileListResponse,
|
910
911
|
type FileDeleteResponse as FileDeleteResponse,
|
911
|
-
type FileObjectsCursor as FileObjectsCursor,
|
912
912
|
type FileCreateParams as FileCreateParams,
|
913
913
|
type FileUpdateParams as FileUpdateParams,
|
914
914
|
type FileListParams as FileListParams,
|
@@ -931,8 +931,8 @@ export declare namespace Mixedbread {
|
|
931
931
|
type LinearDataSource as LinearDataSource,
|
932
932
|
type NotionDataSource as NotionDataSource,
|
933
933
|
type Oauth2Params as Oauth2Params,
|
934
|
+
type DataSourceListResponse as DataSourceListResponse,
|
934
935
|
type DataSourceDeleteResponse as DataSourceDeleteResponse,
|
935
|
-
type DataSourcesCursor as DataSourcesCursor,
|
936
936
|
type DataSourceCreateParams as DataSourceCreateParams,
|
937
937
|
type DataSourceUpdateParams as DataSourceUpdateParams,
|
938
938
|
type DataSourceListParams as DataSourceListParams,
|
package/src/core/pagination.ts
CHANGED
@@ -190,27 +190,32 @@ export interface CursorResponse<Item> {
|
|
190
190
|
|
191
191
|
export namespace CursorResponse {
|
192
192
|
export interface Pagination {
|
193
|
-
|
193
|
+
first_cursor?: string;
|
194
194
|
|
195
|
-
|
195
|
+
last_cursor?: string;
|
196
196
|
|
197
197
|
has_more?: boolean;
|
198
198
|
|
199
|
-
has_prev?: boolean;
|
200
|
-
|
201
199
|
total?: number;
|
202
200
|
}
|
203
201
|
}
|
204
202
|
|
205
203
|
export interface CursorParams {
|
206
204
|
/**
|
207
|
-
* The cursor to base the request on.
|
205
|
+
* The cursor to base the request on for the next elements.
|
206
|
+
*/
|
207
|
+
after?: string;
|
208
|
+
|
209
|
+
/**
|
210
|
+
* The cursor to base the request on for the previous elements.
|
208
211
|
*/
|
209
|
-
|
212
|
+
before?: string;
|
210
213
|
|
211
214
|
limit?: number;
|
212
215
|
|
213
216
|
include_total?: boolean;
|
217
|
+
|
218
|
+
q?: boolean;
|
214
219
|
}
|
215
220
|
|
216
221
|
export class Cursor<Item> extends AbstractPage<Item> implements CursorResponse<Item> {
|
@@ -243,7 +248,23 @@ export class Cursor<Item> extends AbstractPage<Item> implements CursorResponse<I
|
|
243
248
|
}
|
244
249
|
|
245
250
|
nextPageRequestOptions(): PageRequestOptions | null {
|
246
|
-
|
251
|
+
if ((this.options.query as Record<string, unknown>)?.['before']) {
|
252
|
+
// in reverse
|
253
|
+
const first_cursor = this.pagination?.first_cursor;
|
254
|
+
if (!first_cursor) {
|
255
|
+
return null;
|
256
|
+
}
|
257
|
+
|
258
|
+
return {
|
259
|
+
...this.options,
|
260
|
+
query: {
|
261
|
+
...maybeObj(this.options.query),
|
262
|
+
before: first_cursor,
|
263
|
+
},
|
264
|
+
};
|
265
|
+
}
|
266
|
+
|
267
|
+
const cursor = this.pagination?.last_cursor;
|
247
268
|
if (!cursor) {
|
248
269
|
return null;
|
249
270
|
}
|
@@ -252,7 +273,7 @@ export class Cursor<Item> extends AbstractPage<Item> implements CursorResponse<I
|
|
252
273
|
...this.options,
|
253
274
|
query: {
|
254
275
|
...maybeObj(this.options.query),
|
255
|
-
cursor,
|
276
|
+
after: cursor,
|
256
277
|
},
|
257
278
|
};
|
258
279
|
}
|