@mixedbread/sdk 0.74.1 → 0.76.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 +17 -0
- package/client.d.mts +1 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -0
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/shared.d.mts +18 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +18 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/stores/files.d.mts +1 -37
- package/resources/stores/files.d.mts.map +1 -1
- package/resources/stores/files.d.ts +1 -37
- package/resources/stores/files.d.ts.map +1 -1
- package/resources/stores/stores.d.mts +79 -183
- package/resources/stores/stores.d.mts.map +1 -1
- package/resources/stores/stores.d.ts +79 -183
- package/resources/stores/stores.d.ts.map +1 -1
- package/resources/stores/stores.js.map +1 -1
- package/resources/stores/stores.mjs.map +1 -1
- package/src/client.ts +1 -0
- package/src/resources/shared.ts +21 -0
- package/src/resources/stores/files.ts +2 -44
- package/src/resources/stores/stores.ts +96 -218
- 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
|
@@ -436,9 +436,52 @@ export interface ImageChunkGeneratedMetadata {
|
|
|
436
436
|
|
|
437
437
|
file_extension?: string | null;
|
|
438
438
|
|
|
439
|
+
/**
|
|
440
|
+
* Per-page layout for chunks parsed in high-quality (visual) mode.
|
|
441
|
+
*
|
|
442
|
+
* `elements` are ordered by reading order (list position == reading order).
|
|
443
|
+
* `width`/`height` are the page-image dimensions the `bbox` coords are relative
|
|
444
|
+
* to, so consumers can normalize/render without a second fetch.
|
|
445
|
+
*
|
|
446
|
+
* Layout is part of the generated metadata payload and is returned with the chunk
|
|
447
|
+
* whenever present.
|
|
448
|
+
*/
|
|
449
|
+
layout?: ImageChunkGeneratedMetadata.Layout | null;
|
|
450
|
+
|
|
439
451
|
[k: string]: unknown;
|
|
440
452
|
}
|
|
441
453
|
|
|
454
|
+
export namespace ImageChunkGeneratedMetadata {
|
|
455
|
+
/**
|
|
456
|
+
* Per-page layout for chunks parsed in high-quality (visual) mode.
|
|
457
|
+
*
|
|
458
|
+
* `elements` are ordered by reading order (list position == reading order).
|
|
459
|
+
* `width`/`height` are the page-image dimensions the `bbox` coords are relative
|
|
460
|
+
* to, so consumers can normalize/render without a second fetch.
|
|
461
|
+
*
|
|
462
|
+
* Layout is part of the generated metadata payload and is returned with the chunk
|
|
463
|
+
* whenever present.
|
|
464
|
+
*/
|
|
465
|
+
export interface Layout {
|
|
466
|
+
width?: number | null;
|
|
467
|
+
|
|
468
|
+
height?: number | null;
|
|
469
|
+
|
|
470
|
+
elements?: Array<Layout.Element>;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export namespace Layout {
|
|
474
|
+
/**
|
|
475
|
+
* A single detected layout element and its location on the page image.
|
|
476
|
+
*/
|
|
477
|
+
export interface Element {
|
|
478
|
+
bbox: Array<unknown>;
|
|
479
|
+
|
|
480
|
+
type: string;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
442
485
|
/**
|
|
443
486
|
* Model for image URL validation.
|
|
444
487
|
*/
|
|
@@ -497,9 +540,52 @@ export interface PdfChunkGeneratedMetadata {
|
|
|
497
540
|
|
|
498
541
|
file_extension?: string | null;
|
|
499
542
|
|
|
543
|
+
/**
|
|
544
|
+
* Per-page layout for chunks parsed in high-quality (visual) mode.
|
|
545
|
+
*
|
|
546
|
+
* `elements` are ordered by reading order (list position == reading order).
|
|
547
|
+
* `width`/`height` are the page-image dimensions the `bbox` coords are relative
|
|
548
|
+
* to, so consumers can normalize/render without a second fetch.
|
|
549
|
+
*
|
|
550
|
+
* Layout is part of the generated metadata payload and is returned with the chunk
|
|
551
|
+
* whenever present.
|
|
552
|
+
*/
|
|
553
|
+
layout?: PdfChunkGeneratedMetadata.Layout | null;
|
|
554
|
+
|
|
500
555
|
[k: string]: unknown;
|
|
501
556
|
}
|
|
502
557
|
|
|
558
|
+
export namespace PdfChunkGeneratedMetadata {
|
|
559
|
+
/**
|
|
560
|
+
* Per-page layout for chunks parsed in high-quality (visual) mode.
|
|
561
|
+
*
|
|
562
|
+
* `elements` are ordered by reading order (list position == reading order).
|
|
563
|
+
* `width`/`height` are the page-image dimensions the `bbox` coords are relative
|
|
564
|
+
* to, so consumers can normalize/render without a second fetch.
|
|
565
|
+
*
|
|
566
|
+
* Layout is part of the generated metadata payload and is returned with the chunk
|
|
567
|
+
* whenever present.
|
|
568
|
+
*/
|
|
569
|
+
export interface Layout {
|
|
570
|
+
width?: number | null;
|
|
571
|
+
|
|
572
|
+
height?: number | null;
|
|
573
|
+
|
|
574
|
+
elements?: Array<Layout.Element>;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export namespace Layout {
|
|
578
|
+
/**
|
|
579
|
+
* A single detected layout element and its location on the page image.
|
|
580
|
+
*/
|
|
581
|
+
export interface Element {
|
|
582
|
+
bbox: Array<unknown>;
|
|
583
|
+
|
|
584
|
+
type: string;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
503
589
|
/**
|
|
504
590
|
* Represents a reranking configuration.
|
|
505
591
|
*/
|
|
@@ -1246,9 +1332,9 @@ export interface StoreGrepParams {
|
|
|
1246
1332
|
* Optional filter conditions
|
|
1247
1333
|
*/
|
|
1248
1334
|
filters?:
|
|
1249
|
-
|
|
|
1335
|
+
| Shared.SearchFilter
|
|
1250
1336
|
| Shared.SearchFilterCondition
|
|
1251
|
-
| Array<
|
|
1337
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
1252
1338
|
| null;
|
|
1253
1339
|
|
|
1254
1340
|
/**
|
|
@@ -1279,48 +1365,6 @@ export interface StoreGrepParams {
|
|
|
1279
1365
|
return_metadata?: boolean;
|
|
1280
1366
|
}
|
|
1281
1367
|
|
|
1282
|
-
export namespace StoreGrepParams {
|
|
1283
|
-
/**
|
|
1284
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1285
|
-
*/
|
|
1286
|
-
export interface SearchFilterInput {
|
|
1287
|
-
/**
|
|
1288
|
-
* List of conditions or filters to be ANDed together
|
|
1289
|
-
*/
|
|
1290
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1291
|
-
|
|
1292
|
-
/**
|
|
1293
|
-
* List of conditions or filters to be ORed together
|
|
1294
|
-
*/
|
|
1295
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1296
|
-
|
|
1297
|
-
/**
|
|
1298
|
-
* List of conditions or filters to be NOTed
|
|
1299
|
-
*/
|
|
1300
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1305
|
-
*/
|
|
1306
|
-
export interface SearchFilterInput {
|
|
1307
|
-
/**
|
|
1308
|
-
* List of conditions or filters to be ANDed together
|
|
1309
|
-
*/
|
|
1310
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1311
|
-
|
|
1312
|
-
/**
|
|
1313
|
-
* List of conditions or filters to be ORed together
|
|
1314
|
-
*/
|
|
1315
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
* List of conditions or filters to be NOTed
|
|
1319
|
-
*/
|
|
1320
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
1368
|
export interface StoreListChunksParams {
|
|
1325
1369
|
/**
|
|
1326
1370
|
* IDs or names of stores
|
|
@@ -1336,9 +1380,9 @@ export interface StoreListChunksParams {
|
|
|
1336
1380
|
* Optional filter conditions
|
|
1337
1381
|
*/
|
|
1338
1382
|
filters?:
|
|
1339
|
-
|
|
|
1383
|
+
| Shared.SearchFilter
|
|
1340
1384
|
| Shared.SearchFilterCondition
|
|
1341
|
-
| Array<
|
|
1385
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
1342
1386
|
| null;
|
|
1343
1387
|
|
|
1344
1388
|
/**
|
|
@@ -1359,48 +1403,6 @@ export interface StoreListChunksParams {
|
|
|
1359
1403
|
search_options?: StoreChunkSearchOptions;
|
|
1360
1404
|
}
|
|
1361
1405
|
|
|
1362
|
-
export namespace StoreListChunksParams {
|
|
1363
|
-
/**
|
|
1364
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1365
|
-
*/
|
|
1366
|
-
export interface SearchFilterInput {
|
|
1367
|
-
/**
|
|
1368
|
-
* List of conditions or filters to be ANDed together
|
|
1369
|
-
*/
|
|
1370
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* List of conditions or filters to be ORed together
|
|
1374
|
-
*/
|
|
1375
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
* List of conditions or filters to be NOTed
|
|
1379
|
-
*/
|
|
1380
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
/**
|
|
1384
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1385
|
-
*/
|
|
1386
|
-
export interface SearchFilterInput {
|
|
1387
|
-
/**
|
|
1388
|
-
* List of conditions or filters to be ANDed together
|
|
1389
|
-
*/
|
|
1390
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1391
|
-
|
|
1392
|
-
/**
|
|
1393
|
-
* List of conditions or filters to be ORed together
|
|
1394
|
-
*/
|
|
1395
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1396
|
-
|
|
1397
|
-
/**
|
|
1398
|
-
* List of conditions or filters to be NOTed
|
|
1399
|
-
*/
|
|
1400
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
1406
|
export interface StoreMetadataFacetsParams {
|
|
1405
1407
|
/**
|
|
1406
1408
|
* IDs or names of stores
|
|
@@ -1416,9 +1418,9 @@ export interface StoreMetadataFacetsParams {
|
|
|
1416
1418
|
* Optional filter conditions
|
|
1417
1419
|
*/
|
|
1418
1420
|
filters?:
|
|
1419
|
-
|
|
|
1421
|
+
| Shared.SearchFilter
|
|
1420
1422
|
| Shared.SearchFilterCondition
|
|
1421
|
-
| Array<
|
|
1423
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
1422
1424
|
| null;
|
|
1423
1425
|
|
|
1424
1426
|
/**
|
|
@@ -1457,48 +1459,6 @@ export interface StoreMetadataFacetsParams {
|
|
|
1457
1459
|
max_files?: number;
|
|
1458
1460
|
}
|
|
1459
1461
|
|
|
1460
|
-
export namespace StoreMetadataFacetsParams {
|
|
1461
|
-
/**
|
|
1462
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1463
|
-
*/
|
|
1464
|
-
export interface SearchFilterInput {
|
|
1465
|
-
/**
|
|
1466
|
-
* List of conditions or filters to be ANDed together
|
|
1467
|
-
*/
|
|
1468
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1469
|
-
|
|
1470
|
-
/**
|
|
1471
|
-
* List of conditions or filters to be ORed together
|
|
1472
|
-
*/
|
|
1473
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1474
|
-
|
|
1475
|
-
/**
|
|
1476
|
-
* List of conditions or filters to be NOTed
|
|
1477
|
-
*/
|
|
1478
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
/**
|
|
1482
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1483
|
-
*/
|
|
1484
|
-
export interface SearchFilterInput {
|
|
1485
|
-
/**
|
|
1486
|
-
* List of conditions or filters to be ANDed together
|
|
1487
|
-
*/
|
|
1488
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1489
|
-
|
|
1490
|
-
/**
|
|
1491
|
-
* List of conditions or filters to be ORed together
|
|
1492
|
-
*/
|
|
1493
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1494
|
-
|
|
1495
|
-
/**
|
|
1496
|
-
* List of conditions or filters to be NOTed
|
|
1497
|
-
*/
|
|
1498
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
1462
|
export interface StoreQuestionAnsweringParams {
|
|
1503
1463
|
/**
|
|
1504
1464
|
* IDs or names of stores
|
|
@@ -1514,9 +1474,9 @@ export interface StoreQuestionAnsweringParams {
|
|
|
1514
1474
|
* Optional filter conditions
|
|
1515
1475
|
*/
|
|
1516
1476
|
filters?:
|
|
1517
|
-
|
|
|
1477
|
+
| Shared.SearchFilter
|
|
1518
1478
|
| Shared.SearchFilterCondition
|
|
1519
|
-
| Array<
|
|
1479
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
1520
1480
|
| null;
|
|
1521
1481
|
|
|
1522
1482
|
/**
|
|
@@ -1553,46 +1513,6 @@ export interface StoreQuestionAnsweringParams {
|
|
|
1553
1513
|
}
|
|
1554
1514
|
|
|
1555
1515
|
export namespace StoreQuestionAnsweringParams {
|
|
1556
|
-
/**
|
|
1557
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1558
|
-
*/
|
|
1559
|
-
export interface SearchFilterInput {
|
|
1560
|
-
/**
|
|
1561
|
-
* List of conditions or filters to be ANDed together
|
|
1562
|
-
*/
|
|
1563
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1564
|
-
|
|
1565
|
-
/**
|
|
1566
|
-
* List of conditions or filters to be ORed together
|
|
1567
|
-
*/
|
|
1568
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1569
|
-
|
|
1570
|
-
/**
|
|
1571
|
-
* List of conditions or filters to be NOTed
|
|
1572
|
-
*/
|
|
1573
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
/**
|
|
1577
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1578
|
-
*/
|
|
1579
|
-
export interface SearchFilterInput {
|
|
1580
|
-
/**
|
|
1581
|
-
* List of conditions or filters to be ANDed together
|
|
1582
|
-
*/
|
|
1583
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1584
|
-
|
|
1585
|
-
/**
|
|
1586
|
-
* List of conditions or filters to be ORed together
|
|
1587
|
-
*/
|
|
1588
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1589
|
-
|
|
1590
|
-
/**
|
|
1591
|
-
* List of conditions or filters to be NOTed
|
|
1592
|
-
*/
|
|
1593
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
1516
|
/**
|
|
1597
1517
|
* Question answering configuration options
|
|
1598
1518
|
*/
|
|
@@ -1624,9 +1544,9 @@ export interface StoreSearchParams {
|
|
|
1624
1544
|
* Optional filter conditions
|
|
1625
1545
|
*/
|
|
1626
1546
|
filters?:
|
|
1627
|
-
|
|
|
1547
|
+
| Shared.SearchFilter
|
|
1628
1548
|
| Shared.SearchFilterCondition
|
|
1629
|
-
| Array<
|
|
1549
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
1630
1550
|
| null;
|
|
1631
1551
|
|
|
1632
1552
|
/**
|
|
@@ -1645,48 +1565,6 @@ export interface StoreSearchParams {
|
|
|
1645
1565
|
search_options?: StoreChunkSearchOptions;
|
|
1646
1566
|
}
|
|
1647
1567
|
|
|
1648
|
-
export namespace StoreSearchParams {
|
|
1649
|
-
/**
|
|
1650
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1651
|
-
*/
|
|
1652
|
-
export interface SearchFilterInput {
|
|
1653
|
-
/**
|
|
1654
|
-
* List of conditions or filters to be ANDed together
|
|
1655
|
-
*/
|
|
1656
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1657
|
-
|
|
1658
|
-
/**
|
|
1659
|
-
* List of conditions or filters to be ORed together
|
|
1660
|
-
*/
|
|
1661
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1662
|
-
|
|
1663
|
-
/**
|
|
1664
|
-
* List of conditions or filters to be NOTed
|
|
1665
|
-
*/
|
|
1666
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
1671
|
-
*/
|
|
1672
|
-
export interface SearchFilterInput {
|
|
1673
|
-
/**
|
|
1674
|
-
* List of conditions or filters to be ANDed together
|
|
1675
|
-
*/
|
|
1676
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* List of conditions or filters to be ORed together
|
|
1680
|
-
*/
|
|
1681
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1682
|
-
|
|
1683
|
-
/**
|
|
1684
|
-
* List of conditions or filters to be NOTed
|
|
1685
|
-
*/
|
|
1686
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
1687
|
-
}
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
1568
|
Stores.Files = Files;
|
|
1691
1569
|
|
|
1692
1570
|
export declare namespace Stores {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.76.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.76.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.76.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.76.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|