@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
@@ -5,6 +5,7 @@ import * as FilesAPI from './files';
|
|
5
5
|
import * as Shared from '../shared';
|
6
6
|
import * as VectorStoresAPI from './vector-stores';
|
7
7
|
import { APIPromise } from '../../core/api-promise';
|
8
|
+
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
8
9
|
import { RequestOptions } from '../../internal/request-options';
|
9
10
|
import * as polling from '../../lib/polling';
|
10
11
|
import { Uploadable } from '../../uploads';
|
@@ -40,8 +41,11 @@ export class Files extends APIResource {
|
|
40
41
|
params: FileRetrieveParams,
|
41
42
|
options?: RequestOptions,
|
42
43
|
): APIPromise<VectorStoreFile> {
|
43
|
-
const { vector_store_identifier } = params;
|
44
|
-
return this._client.get(path`/v1/vector_stores/${vector_store_identifier}/files/${fileID}`,
|
44
|
+
const { vector_store_identifier, ...query } = params;
|
45
|
+
return this._client.get(path`/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, {
|
46
|
+
query,
|
47
|
+
...options,
|
48
|
+
});
|
45
49
|
}
|
46
50
|
|
47
51
|
/**
|
@@ -56,8 +60,12 @@ export class Files extends APIResource {
|
|
56
60
|
vectorStoreIdentifier: string,
|
57
61
|
query: FileListParams | null | undefined = {},
|
58
62
|
options?: RequestOptions,
|
59
|
-
):
|
60
|
-
return this._client.
|
63
|
+
): PagePromise<VectorStoreFilesCursor, VectorStoreFile> {
|
64
|
+
return this._client.getAPIList(
|
65
|
+
path`/v1/vector_stores/${vectorStoreIdentifier}/files`,
|
66
|
+
Cursor<VectorStoreFile>,
|
67
|
+
{ query, ...options },
|
68
|
+
);
|
61
69
|
}
|
62
70
|
|
63
71
|
/**
|
@@ -197,6 +205,8 @@ export class Files extends APIResource {
|
|
197
205
|
}
|
198
206
|
}
|
199
207
|
|
208
|
+
export type VectorStoreFilesCursor = Cursor<VectorStoreFile>;
|
209
|
+
|
200
210
|
/**
|
201
211
|
* Represents a reranking configuration.
|
202
212
|
*/
|
@@ -272,11 +282,6 @@ export interface ScoredVectorStoreFile {
|
|
272
282
|
*/
|
273
283
|
object?: 'vector_store.file';
|
274
284
|
|
275
|
-
/**
|
276
|
-
* score of the file
|
277
|
-
*/
|
278
|
-
score: number;
|
279
|
-
|
280
285
|
/**
|
281
286
|
* chunks
|
282
287
|
*/
|
@@ -286,6 +291,11 @@ export interface ScoredVectorStoreFile {
|
|
286
291
|
| VectorStoresAPI.ScoredAudioURLInputChunk
|
287
292
|
| VectorStoresAPI.ScoredVideoURLInputChunk
|
288
293
|
> | null;
|
294
|
+
|
295
|
+
/**
|
296
|
+
* score of the file
|
297
|
+
*/
|
298
|
+
score: number;
|
289
299
|
}
|
290
300
|
|
291
301
|
export type VectorStoreFileStatus = 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
@@ -343,94 +353,165 @@ export interface VectorStoreFile {
|
|
343
353
|
* Type of the object
|
344
354
|
*/
|
345
355
|
object?: 'vector_store.file';
|
346
|
-
}
|
347
356
|
|
348
|
-
export interface FileListResponse {
|
349
357
|
/**
|
350
|
-
*
|
351
|
-
*
|
352
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
353
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
354
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
355
|
-
*
|
356
|
-
* Final page response:
|
357
|
-
* {
|
358
|
-
* "has_more": false,
|
359
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
360
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
361
|
-
* "total": 42
|
362
|
-
* }
|
363
|
-
*
|
364
|
-
* Empty results:
|
365
|
-
* {
|
366
|
-
* "has_more": false,
|
367
|
-
* "first_cursor": null,
|
368
|
-
* "last_cursor": null,
|
369
|
-
* "total": 0
|
370
|
-
* }
|
358
|
+
* chunks
|
371
359
|
*/
|
372
|
-
|
360
|
+
chunks?: Array<
|
361
|
+
| VectorStoreFile.TextInputChunk
|
362
|
+
| VectorStoreFile.ImageURLInputChunkBase
|
363
|
+
| VectorStoreFile.AudioURLInputChunkBase
|
364
|
+
| VectorStoreFile.VideoURLInputChunkBase
|
365
|
+
> | null;
|
366
|
+
}
|
373
367
|
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
368
|
+
export namespace VectorStoreFile {
|
369
|
+
export interface TextInputChunk {
|
370
|
+
/**
|
371
|
+
* position of the chunk in a file
|
372
|
+
*/
|
373
|
+
chunk_index: number;
|
378
374
|
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
375
|
+
/**
|
376
|
+
* mime type of the chunk
|
377
|
+
*/
|
378
|
+
mime_type?: string;
|
379
|
+
|
380
|
+
/**
|
381
|
+
* metadata of the chunk
|
382
|
+
*/
|
383
|
+
generated_metadata?: { [key: string]: unknown } | null;
|
384
|
+
|
385
|
+
/**
|
386
|
+
* model used for this chunk
|
387
|
+
*/
|
388
|
+
model?: string | null;
|
389
|
+
|
390
|
+
/**
|
391
|
+
* Input type identifier
|
392
|
+
*/
|
393
|
+
type?: 'text';
|
394
|
+
|
395
|
+
/**
|
396
|
+
* The offset of the text in the file relative to the start of the file.
|
397
|
+
*/
|
398
|
+
offset?: number;
|
399
|
+
|
400
|
+
/**
|
401
|
+
* Text content to process
|
402
|
+
*/
|
403
|
+
text: string;
|
404
|
+
}
|
405
|
+
|
406
|
+
export interface ImageURLInputChunkBase {
|
407
|
+
/**
|
408
|
+
* position of the chunk in a file
|
409
|
+
*/
|
410
|
+
chunk_index: number;
|
411
|
+
|
412
|
+
/**
|
413
|
+
* mime type of the chunk
|
414
|
+
*/
|
415
|
+
mime_type?: string;
|
384
416
|
|
385
|
-
export namespace FileListResponse {
|
386
|
-
/**
|
387
|
-
* Response model for cursor-based pagination.
|
388
|
-
*
|
389
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
390
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
391
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
392
|
-
*
|
393
|
-
* Final page response:
|
394
|
-
* {
|
395
|
-
* "has_more": false,
|
396
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
397
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
398
|
-
* "total": 42
|
399
|
-
* }
|
400
|
-
*
|
401
|
-
* Empty results:
|
402
|
-
* {
|
403
|
-
* "has_more": false,
|
404
|
-
* "first_cursor": null,
|
405
|
-
* "last_cursor": null,
|
406
|
-
* "total": 0
|
407
|
-
* }
|
408
|
-
*/
|
409
|
-
export interface Pagination {
|
410
417
|
/**
|
411
|
-
*
|
412
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
413
|
-
* more items before this page.
|
418
|
+
* metadata of the chunk
|
414
419
|
*/
|
415
|
-
|
420
|
+
generated_metadata?: { [key: string]: unknown } | null;
|
416
421
|
|
417
422
|
/**
|
418
|
-
*
|
419
|
-
* is empty.
|
423
|
+
* model used for this chunk
|
420
424
|
*/
|
421
|
-
|
425
|
+
model?: string | null;
|
422
426
|
|
423
427
|
/**
|
424
|
-
*
|
425
|
-
* is empty.
|
428
|
+
* Input type identifier
|
426
429
|
*/
|
427
|
-
|
430
|
+
type?: 'image_url';
|
428
431
|
|
429
432
|
/**
|
430
|
-
*
|
431
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
433
|
+
* ocr text of the image
|
432
434
|
*/
|
433
|
-
|
435
|
+
ocr_text?: string | null;
|
436
|
+
|
437
|
+
/**
|
438
|
+
* summary of the image
|
439
|
+
*/
|
440
|
+
summary?: string | null;
|
441
|
+
}
|
442
|
+
|
443
|
+
export interface AudioURLInputChunkBase {
|
444
|
+
/**
|
445
|
+
* position of the chunk in a file
|
446
|
+
*/
|
447
|
+
chunk_index: number;
|
448
|
+
|
449
|
+
/**
|
450
|
+
* mime type of the chunk
|
451
|
+
*/
|
452
|
+
mime_type?: string;
|
453
|
+
|
454
|
+
/**
|
455
|
+
* metadata of the chunk
|
456
|
+
*/
|
457
|
+
generated_metadata?: { [key: string]: unknown } | null;
|
458
|
+
|
459
|
+
/**
|
460
|
+
* model used for this chunk
|
461
|
+
*/
|
462
|
+
model?: string | null;
|
463
|
+
|
464
|
+
/**
|
465
|
+
* Input type identifier
|
466
|
+
*/
|
467
|
+
type?: 'audio_url';
|
468
|
+
|
469
|
+
/**
|
470
|
+
* speech recognition (sr) text of the audio
|
471
|
+
*/
|
472
|
+
transcription?: string | null;
|
473
|
+
|
474
|
+
/**
|
475
|
+
* summary of the audio
|
476
|
+
*/
|
477
|
+
summary?: string | null;
|
478
|
+
}
|
479
|
+
|
480
|
+
export interface VideoURLInputChunkBase {
|
481
|
+
/**
|
482
|
+
* position of the chunk in a file
|
483
|
+
*/
|
484
|
+
chunk_index: number;
|
485
|
+
|
486
|
+
/**
|
487
|
+
* mime type of the chunk
|
488
|
+
*/
|
489
|
+
mime_type?: string;
|
490
|
+
|
491
|
+
/**
|
492
|
+
* metadata of the chunk
|
493
|
+
*/
|
494
|
+
generated_metadata?: { [key: string]: unknown } | null;
|
495
|
+
|
496
|
+
/**
|
497
|
+
* model used for this chunk
|
498
|
+
*/
|
499
|
+
model?: string | null;
|
500
|
+
|
501
|
+
/**
|
502
|
+
* Input type identifier
|
503
|
+
*/
|
504
|
+
type?: 'video_url';
|
505
|
+
|
506
|
+
/**
|
507
|
+
* speech recognition (sr) text of the video
|
508
|
+
*/
|
509
|
+
transcription?: string | null;
|
510
|
+
|
511
|
+
/**
|
512
|
+
* summary of the video
|
513
|
+
*/
|
514
|
+
summary?: string | null;
|
434
515
|
}
|
435
516
|
}
|
436
517
|
|
@@ -502,34 +583,17 @@ export namespace FileCreateParams {
|
|
502
583
|
|
503
584
|
export interface FileRetrieveParams {
|
504
585
|
/**
|
505
|
-
* The ID or name of the vector store
|
586
|
+
* Path param: The ID or name of the vector store
|
506
587
|
*/
|
507
588
|
vector_store_identifier: string;
|
508
|
-
}
|
509
|
-
|
510
|
-
export interface FileListParams {
|
511
|
-
/**
|
512
|
-
* Maximum number of items to return per page (1-100)
|
513
|
-
*/
|
514
|
-
limit?: number;
|
515
589
|
|
516
590
|
/**
|
517
|
-
*
|
518
|
-
* from previous response.
|
591
|
+
* Query param: Whether to return the chunks for the file
|
519
592
|
*/
|
520
|
-
|
521
|
-
|
522
|
-
/**
|
523
|
-
* Cursor for backward pagination - get items before this position. Use
|
524
|
-
* first_cursor from previous response.
|
525
|
-
*/
|
526
|
-
before?: string | null;
|
527
|
-
|
528
|
-
/**
|
529
|
-
* Whether to include total count in response (expensive operation)
|
530
|
-
*/
|
531
|
-
include_total?: boolean;
|
593
|
+
return_chunks?: boolean;
|
594
|
+
}
|
532
595
|
|
596
|
+
export interface FileListParams extends CursorParams {
|
533
597
|
/**
|
534
598
|
* Status to filter by
|
535
599
|
*/
|
@@ -627,9 +691,9 @@ export declare namespace Files {
|
|
627
691
|
type ScoredVectorStoreFile as ScoredVectorStoreFile,
|
628
692
|
type VectorStoreFileStatus as VectorStoreFileStatus,
|
629
693
|
type VectorStoreFile as VectorStoreFile,
|
630
|
-
type FileListResponse as FileListResponse,
|
631
694
|
type FileDeleteResponse as FileDeleteResponse,
|
632
695
|
type FileSearchResponse as FileSearchResponse,
|
696
|
+
type VectorStoreFilesCursor as VectorStoreFilesCursor,
|
633
697
|
type FileCreateParams as FileCreateParams,
|
634
698
|
type FileRetrieveParams as FileRetrieveParams,
|
635
699
|
type FileListParams as FileListParams,
|
@@ -6,7 +6,6 @@ export {
|
|
6
6
|
type ScoredVectorStoreFile,
|
7
7
|
type VectorStoreFileStatus,
|
8
8
|
type VectorStoreFile,
|
9
|
-
type FileListResponse,
|
10
9
|
type FileDeleteResponse,
|
11
10
|
type FileSearchResponse,
|
12
11
|
type FileCreateParams,
|
@@ -14,6 +13,7 @@ export {
|
|
14
13
|
type FileListParams,
|
15
14
|
type FileDeleteParams,
|
16
15
|
type FileSearchParams,
|
16
|
+
type VectorStoreFilesCursor,
|
17
17
|
} from './files';
|
18
18
|
export {
|
19
19
|
VectorStores,
|
@@ -24,7 +24,6 @@ export {
|
|
24
24
|
type ScoredVideoURLInputChunk,
|
25
25
|
type VectorStore,
|
26
26
|
type VectorStoreChunkSearchOptions,
|
27
|
-
type VectorStoreListResponse,
|
28
27
|
type VectorStoreDeleteResponse,
|
29
28
|
type VectorStoreQuestionAnsweringResponse,
|
30
29
|
type VectorStoreSearchResponse,
|
@@ -33,4 +32,5 @@ export {
|
|
33
32
|
type VectorStoreListParams,
|
34
33
|
type VectorStoreQuestionAnsweringParams,
|
35
34
|
type VectorStoreSearchParams,
|
35
|
+
type VectorStoresCursor,
|
36
36
|
} from './vector-stores';
|
@@ -8,7 +8,6 @@ import {
|
|
8
8
|
FileDeleteParams,
|
9
9
|
FileDeleteResponse,
|
10
10
|
FileListParams,
|
11
|
-
FileListResponse,
|
12
11
|
FileRetrieveParams,
|
13
12
|
FileSearchParams,
|
14
13
|
FileSearchResponse,
|
@@ -17,8 +16,10 @@ import {
|
|
17
16
|
ScoredVectorStoreFile,
|
18
17
|
VectorStoreFile,
|
19
18
|
VectorStoreFileStatus,
|
19
|
+
VectorStoreFilesCursor,
|
20
20
|
} from './files';
|
21
21
|
import { APIPromise } from '../../core/api-promise';
|
22
|
+
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
22
23
|
import { RequestOptions } from '../../internal/request-options';
|
23
24
|
import { path } from '../../internal/utils/path';
|
24
25
|
|
@@ -76,8 +77,8 @@ export class VectorStores extends APIResource {
|
|
76
77
|
list(
|
77
78
|
query: VectorStoreListParams | null | undefined = {},
|
78
79
|
options?: RequestOptions,
|
79
|
-
):
|
80
|
-
return this._client.
|
80
|
+
): PagePromise<VectorStoresCursor, VectorStore> {
|
81
|
+
return this._client.getAPIList('/v1/vector_stores', Cursor<VectorStore>, { query, ...options });
|
81
82
|
}
|
82
83
|
|
83
84
|
/**
|
@@ -125,6 +126,8 @@ export class VectorStores extends APIResource {
|
|
125
126
|
}
|
126
127
|
}
|
127
128
|
|
129
|
+
export type VectorStoresCursor = Cursor<VectorStore>;
|
130
|
+
|
128
131
|
/**
|
129
132
|
* Represents an expiration policy for a vector store.
|
130
133
|
*/
|
@@ -191,11 +194,6 @@ export interface ScoredAudioURLInputChunk {
|
|
191
194
|
*/
|
192
195
|
type?: 'audio_url';
|
193
196
|
|
194
|
-
/**
|
195
|
-
* The audio input specification.
|
196
|
-
*/
|
197
|
-
audio_url: ScoredAudioURLInputChunk.AudioURL;
|
198
|
-
|
199
197
|
/**
|
200
198
|
* speech recognition (sr) text of the audio
|
201
199
|
*/
|
@@ -205,6 +203,11 @@ export interface ScoredAudioURLInputChunk {
|
|
205
203
|
* summary of the audio
|
206
204
|
*/
|
207
205
|
summary?: string | null;
|
206
|
+
|
207
|
+
/**
|
208
|
+
* The audio input specification.
|
209
|
+
*/
|
210
|
+
audio_url: ScoredAudioURLInputChunk.AudioURL;
|
208
211
|
}
|
209
212
|
|
210
213
|
export namespace ScoredAudioURLInputChunk {
|
@@ -270,11 +273,6 @@ export interface ScoredImageURLInputChunk {
|
|
270
273
|
*/
|
271
274
|
type?: 'image_url';
|
272
275
|
|
273
|
-
/**
|
274
|
-
* The image input specification.
|
275
|
-
*/
|
276
|
-
image_url: ScoredImageURLInputChunk.ImageURL;
|
277
|
-
|
278
276
|
/**
|
279
277
|
* ocr text of the image
|
280
278
|
*/
|
@@ -284,6 +282,11 @@ export interface ScoredImageURLInputChunk {
|
|
284
282
|
* summary of the image
|
285
283
|
*/
|
286
284
|
summary?: string | null;
|
285
|
+
|
286
|
+
/**
|
287
|
+
* The image input specification.
|
288
|
+
*/
|
289
|
+
image_url: ScoredImageURLInputChunk.ImageURL;
|
287
290
|
}
|
288
291
|
|
289
292
|
export namespace ScoredImageURLInputChunk {
|
@@ -354,6 +357,11 @@ export interface ScoredTextInputChunk {
|
|
354
357
|
*/
|
355
358
|
type?: 'text';
|
356
359
|
|
360
|
+
/**
|
361
|
+
* The offset of the text in the file relative to the start of the file.
|
362
|
+
*/
|
363
|
+
offset?: number;
|
364
|
+
|
357
365
|
/**
|
358
366
|
* Text content to process
|
359
367
|
*/
|
@@ -411,11 +419,6 @@ export interface ScoredVideoURLInputChunk {
|
|
411
419
|
*/
|
412
420
|
type?: 'video_url';
|
413
421
|
|
414
|
-
/**
|
415
|
-
* The video input specification.
|
416
|
-
*/
|
417
|
-
video_url: ScoredVideoURLInputChunk.VideoURL;
|
418
|
-
|
419
422
|
/**
|
420
423
|
* speech recognition (sr) text of the video
|
421
424
|
*/
|
@@ -425,6 +428,11 @@ export interface ScoredVideoURLInputChunk {
|
|
425
428
|
* summary of the video
|
426
429
|
*/
|
427
430
|
summary?: string | null;
|
431
|
+
|
432
|
+
/**
|
433
|
+
* The video input specification.
|
434
|
+
*/
|
435
|
+
video_url: ScoredVideoURLInputChunk.VideoURL;
|
428
436
|
}
|
429
437
|
|
430
438
|
export namespace ScoredVideoURLInputChunk {
|
@@ -576,95 +584,6 @@ export interface VectorStoreChunkSearchOptions {
|
|
576
584
|
return_metadata?: boolean;
|
577
585
|
}
|
578
586
|
|
579
|
-
export interface VectorStoreListResponse {
|
580
|
-
/**
|
581
|
-
* Response model for cursor-based pagination.
|
582
|
-
*
|
583
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
584
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
585
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
586
|
-
*
|
587
|
-
* Final page response:
|
588
|
-
* {
|
589
|
-
* "has_more": false,
|
590
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
591
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
592
|
-
* "total": 42
|
593
|
-
* }
|
594
|
-
*
|
595
|
-
* Empty results:
|
596
|
-
* {
|
597
|
-
* "has_more": false,
|
598
|
-
* "first_cursor": null,
|
599
|
-
* "last_cursor": null,
|
600
|
-
* "total": 0
|
601
|
-
* }
|
602
|
-
*/
|
603
|
-
pagination: VectorStoreListResponse.Pagination;
|
604
|
-
|
605
|
-
/**
|
606
|
-
* The object type of the response
|
607
|
-
*/
|
608
|
-
object?: 'list';
|
609
|
-
|
610
|
-
/**
|
611
|
-
* The list of vector stores
|
612
|
-
*/
|
613
|
-
data: Array<VectorStore>;
|
614
|
-
}
|
615
|
-
|
616
|
-
export namespace VectorStoreListResponse {
|
617
|
-
/**
|
618
|
-
* Response model for cursor-based pagination.
|
619
|
-
*
|
620
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
621
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
622
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
623
|
-
*
|
624
|
-
* Final page response:
|
625
|
-
* {
|
626
|
-
* "has_more": false,
|
627
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
628
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
629
|
-
* "total": 42
|
630
|
-
* }
|
631
|
-
*
|
632
|
-
* Empty results:
|
633
|
-
* {
|
634
|
-
* "has_more": false,
|
635
|
-
* "first_cursor": null,
|
636
|
-
* "last_cursor": null,
|
637
|
-
* "total": 0
|
638
|
-
* }
|
639
|
-
*/
|
640
|
-
export interface Pagination {
|
641
|
-
/**
|
642
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
643
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
644
|
-
* more items before this page.
|
645
|
-
*/
|
646
|
-
has_more: boolean;
|
647
|
-
|
648
|
-
/**
|
649
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
650
|
-
* is empty.
|
651
|
-
*/
|
652
|
-
first_cursor: string | null;
|
653
|
-
|
654
|
-
/**
|
655
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
656
|
-
* is empty.
|
657
|
-
*/
|
658
|
-
last_cursor: string | null;
|
659
|
-
|
660
|
-
/**
|
661
|
-
* Total number of items available across all pages. Only included when
|
662
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
663
|
-
*/
|
664
|
-
total?: number | null;
|
665
|
-
}
|
666
|
-
}
|
667
|
-
|
668
587
|
/**
|
669
588
|
* Response model for vector store deletion.
|
670
589
|
*/
|
@@ -775,29 +694,7 @@ export interface VectorStoreUpdateParams {
|
|
775
694
|
metadata?: unknown;
|
776
695
|
}
|
777
696
|
|
778
|
-
export interface VectorStoreListParams {
|
779
|
-
/**
|
780
|
-
* Maximum number of items to return per page (1-100)
|
781
|
-
*/
|
782
|
-
limit?: number;
|
783
|
-
|
784
|
-
/**
|
785
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
786
|
-
* from previous response.
|
787
|
-
*/
|
788
|
-
after?: string | null;
|
789
|
-
|
790
|
-
/**
|
791
|
-
* Cursor for backward pagination - get items before this position. Use
|
792
|
-
* first_cursor from previous response.
|
793
|
-
*/
|
794
|
-
before?: string | null;
|
795
|
-
|
796
|
-
/**
|
797
|
-
* Whether to include total count in response (expensive operation)
|
798
|
-
*/
|
799
|
-
include_total?: boolean;
|
800
|
-
|
697
|
+
export interface VectorStoreListParams extends CursorParams {
|
801
698
|
/**
|
802
699
|
* Search query for fuzzy matching over name and description fields
|
803
700
|
*/
|
@@ -925,10 +822,10 @@ export declare namespace VectorStores {
|
|
925
822
|
type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk,
|
926
823
|
type VectorStore as VectorStore,
|
927
824
|
type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions,
|
928
|
-
type VectorStoreListResponse as VectorStoreListResponse,
|
929
825
|
type VectorStoreDeleteResponse as VectorStoreDeleteResponse,
|
930
826
|
type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse,
|
931
827
|
type VectorStoreSearchResponse as VectorStoreSearchResponse,
|
828
|
+
type VectorStoresCursor as VectorStoresCursor,
|
932
829
|
type VectorStoreCreateParams as VectorStoreCreateParams,
|
933
830
|
type VectorStoreUpdateParams as VectorStoreUpdateParams,
|
934
831
|
type VectorStoreListParams as VectorStoreListParams,
|
@@ -942,9 +839,9 @@ export declare namespace VectorStores {
|
|
942
839
|
type ScoredVectorStoreFile as ScoredVectorStoreFile,
|
943
840
|
type VectorStoreFileStatus as VectorStoreFileStatus,
|
944
841
|
type VectorStoreFile as VectorStoreFile,
|
945
|
-
type FileListResponse as FileListResponse,
|
946
842
|
type FileDeleteResponse as FileDeleteResponse,
|
947
843
|
type FileSearchResponse as FileSearchResponse,
|
844
|
+
type VectorStoreFilesCursor as VectorStoreFilesCursor,
|
948
845
|
type FileCreateParams as FileCreateParams,
|
949
846
|
type FileRetrieveParams as FileRetrieveParams,
|
950
847
|
type FileListParams as FileListParams,
|
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const VERSION = '0.
|
1
|
+
export const VERSION = '0.17.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.17.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.17.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.17.0'; // x-release-please-version
|
2
2
|
//# sourceMappingURL=version.mjs.map
|