@bitbitpress/client 1.1.4 → 1.2.2
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/README.md +8 -152
- package/dist/generated/openapi.d.ts +305 -237
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +13 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react-native-expo/BitBitView.d.ts.map +1 -1
- package/dist/react-native-expo/BitBitView.js +21 -2
- package/dist/react-native-expo/BitBitView.js.map +1 -1
- package/dist/synthesisUi/types.d.ts +3 -0
- package/dist/synthesisUi/types.d.ts.map +1 -1
- package/dist/user/index.d.ts +15 -19
- package/dist/user/index.d.ts.map +1 -1
- package/dist/user/index.js +2 -2
- package/dist/user/index.js.map +1 -1
- package/dist/user/profile.d.ts +2 -2
- package/dist/user/profile.js +2 -2
- package/dist/user/submissions.d.ts +0 -21
- package/dist/user/submissions.d.ts.map +1 -1
- package/dist/user/submissions.js +0 -39
- package/dist/user/submissions.js.map +1 -1
- package/dist/user/synthesisOutputTts.d.ts +21 -0
- package/dist/user/synthesisOutputTts.d.ts.map +1 -0
- package/dist/user/synthesisOutputTts.js +32 -0
- package/dist/user/synthesisOutputTts.js.map +1 -0
- package/package.json +1 -1
|
@@ -173,6 +173,21 @@ export interface paths {
|
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
+
/** @description Forbidden errors */
|
|
177
|
+
403: {
|
|
178
|
+
headers: {
|
|
179
|
+
[name: string]: unknown;
|
|
180
|
+
};
|
|
181
|
+
content: {
|
|
182
|
+
"application/json": {
|
|
183
|
+
/**
|
|
184
|
+
* @example Forbidden: Subscription required
|
|
185
|
+
* @enum {string}
|
|
186
|
+
*/
|
|
187
|
+
error: "Forbidden: Subscription required";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
176
191
|
/** @description Internal server error */
|
|
177
192
|
500: {
|
|
178
193
|
headers: {
|
|
@@ -275,6 +290,21 @@ export interface paths {
|
|
|
275
290
|
};
|
|
276
291
|
};
|
|
277
292
|
};
|
|
293
|
+
/** @description Forbidden errors */
|
|
294
|
+
403: {
|
|
295
|
+
headers: {
|
|
296
|
+
[name: string]: unknown;
|
|
297
|
+
};
|
|
298
|
+
content: {
|
|
299
|
+
"application/json": {
|
|
300
|
+
/**
|
|
301
|
+
* @example Forbidden: Subscription required
|
|
302
|
+
* @enum {string}
|
|
303
|
+
*/
|
|
304
|
+
error: "Forbidden: Subscription required";
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
};
|
|
278
308
|
/** @description Internal server error */
|
|
279
309
|
500: {
|
|
280
310
|
headers: {
|
|
@@ -368,6 +398,21 @@ export interface paths {
|
|
|
368
398
|
};
|
|
369
399
|
};
|
|
370
400
|
};
|
|
401
|
+
/** @description Forbidden errors */
|
|
402
|
+
403: {
|
|
403
|
+
headers: {
|
|
404
|
+
[name: string]: unknown;
|
|
405
|
+
};
|
|
406
|
+
content: {
|
|
407
|
+
"application/json": {
|
|
408
|
+
/**
|
|
409
|
+
* @example Forbidden: Subscription required
|
|
410
|
+
* @enum {string}
|
|
411
|
+
*/
|
|
412
|
+
error: "Forbidden: Subscription required";
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
371
416
|
/** @description Internal server error */
|
|
372
417
|
500: {
|
|
373
418
|
headers: {
|
|
@@ -494,6 +539,21 @@ export interface paths {
|
|
|
494
539
|
};
|
|
495
540
|
};
|
|
496
541
|
};
|
|
542
|
+
/** @description Forbidden errors */
|
|
543
|
+
403: {
|
|
544
|
+
headers: {
|
|
545
|
+
[name: string]: unknown;
|
|
546
|
+
};
|
|
547
|
+
content: {
|
|
548
|
+
"application/json": {
|
|
549
|
+
/**
|
|
550
|
+
* @example Forbidden: Subscription required
|
|
551
|
+
* @enum {string}
|
|
552
|
+
*/
|
|
553
|
+
error: "Forbidden: Subscription required";
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
};
|
|
497
557
|
/** @description Internal server error */
|
|
498
558
|
500: {
|
|
499
559
|
headers: {
|
|
@@ -590,6 +650,21 @@ export interface paths {
|
|
|
590
650
|
};
|
|
591
651
|
};
|
|
592
652
|
};
|
|
653
|
+
/** @description Forbidden errors */
|
|
654
|
+
403: {
|
|
655
|
+
headers: {
|
|
656
|
+
[name: string]: unknown;
|
|
657
|
+
};
|
|
658
|
+
content: {
|
|
659
|
+
"application/json": {
|
|
660
|
+
/**
|
|
661
|
+
* @example Forbidden: Subscription required
|
|
662
|
+
* @enum {string}
|
|
663
|
+
*/
|
|
664
|
+
error: "Forbidden: Subscription required";
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
};
|
|
593
668
|
/** @description Internal server error */
|
|
594
669
|
500: {
|
|
595
670
|
headers: {
|
|
@@ -709,6 +784,21 @@ export interface paths {
|
|
|
709
784
|
};
|
|
710
785
|
};
|
|
711
786
|
};
|
|
787
|
+
/** @description Forbidden errors */
|
|
788
|
+
403: {
|
|
789
|
+
headers: {
|
|
790
|
+
[name: string]: unknown;
|
|
791
|
+
};
|
|
792
|
+
content: {
|
|
793
|
+
"application/json": {
|
|
794
|
+
/**
|
|
795
|
+
* @example Forbidden: Subscription required
|
|
796
|
+
* @enum {string}
|
|
797
|
+
*/
|
|
798
|
+
error: "Forbidden: Subscription required";
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
};
|
|
712
802
|
/** @description Internal server error */
|
|
713
803
|
500: {
|
|
714
804
|
headers: {
|
|
@@ -825,6 +915,21 @@ export interface paths {
|
|
|
825
915
|
};
|
|
826
916
|
};
|
|
827
917
|
};
|
|
918
|
+
/** @description Forbidden errors */
|
|
919
|
+
403: {
|
|
920
|
+
headers: {
|
|
921
|
+
[name: string]: unknown;
|
|
922
|
+
};
|
|
923
|
+
content: {
|
|
924
|
+
"application/json": {
|
|
925
|
+
/**
|
|
926
|
+
* @example Forbidden: Subscription required
|
|
927
|
+
* @enum {string}
|
|
928
|
+
*/
|
|
929
|
+
error: "Forbidden: Subscription required";
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
};
|
|
828
933
|
/** @description Internal server error */
|
|
829
934
|
500: {
|
|
830
935
|
headers: {
|
|
@@ -1087,6 +1192,21 @@ export interface paths {
|
|
|
1087
1192
|
};
|
|
1088
1193
|
};
|
|
1089
1194
|
};
|
|
1195
|
+
/** @description Forbidden errors */
|
|
1196
|
+
403: {
|
|
1197
|
+
headers: {
|
|
1198
|
+
[name: string]: unknown;
|
|
1199
|
+
};
|
|
1200
|
+
content: {
|
|
1201
|
+
"application/json": {
|
|
1202
|
+
/**
|
|
1203
|
+
* @example Forbidden: Subscription required
|
|
1204
|
+
* @enum {string}
|
|
1205
|
+
*/
|
|
1206
|
+
error: "Forbidden: Subscription required";
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1090
1210
|
/** @description Internal server error */
|
|
1091
1211
|
500: {
|
|
1092
1212
|
headers: {
|
|
@@ -1239,6 +1359,21 @@ export interface paths {
|
|
|
1239
1359
|
};
|
|
1240
1360
|
};
|
|
1241
1361
|
};
|
|
1362
|
+
/** @description Forbidden errors */
|
|
1363
|
+
403: {
|
|
1364
|
+
headers: {
|
|
1365
|
+
[name: string]: unknown;
|
|
1366
|
+
};
|
|
1367
|
+
content: {
|
|
1368
|
+
"application/json": {
|
|
1369
|
+
/**
|
|
1370
|
+
* @example Forbidden: Subscription required
|
|
1371
|
+
* @enum {string}
|
|
1372
|
+
*/
|
|
1373
|
+
error: "Forbidden: Subscription required";
|
|
1374
|
+
};
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1242
1377
|
/** @description Internal server error */
|
|
1243
1378
|
500: {
|
|
1244
1379
|
headers: {
|
|
@@ -1393,7 +1528,7 @@ export interface paths {
|
|
|
1393
1528
|
* User - Synthesize Piece Audio
|
|
1394
1529
|
* @description **POST** `/v1/user/synthesis-piece/tts`
|
|
1395
1530
|
*
|
|
1396
|
-
* Mint a short-lived, self-authenticating HLS URL for a published piece's spoken content. A media player calls this when the listener presses play, then plays the returned `url` (via the SDK's `ctx.playMedia`) to stream the synthesized speech on demand. The request REFERENCES the piece's content — omit `field` for the whole piece's spoken content, pass a top-level `field` to scope to it, and/or `index` for a single turn — and the server resolves the turns from the piece itself (so the URL never carries the text). The URL is gated at issue time (
|
|
1531
|
+
* Mint a short-lived, self-authenticating HLS URL for a published piece's spoken content. A media player calls this when the listener presses play, then plays the returned `url` (via the SDK's `ctx.playMedia`) to stream the synthesized speech on demand. The request REFERENCES the piece's content — omit `field` for the whole piece's spoken content, pass a top-level `field` to scope to it, and/or `index` for a single turn — and the server resolves the turns from the piece itself (so the URL never carries the text). The URL is gated at issue time (it expires ~30 minutes after minting, and only PUBLISHED pieces), so a fresh URL can't be minted after a piece is unpublished. Note: the URL is an HLS playlist whose audio segments are content-addressed and cached long-lived — a player that already loaded a URL may keep playing that audio from cache after the URL expires or the piece is unpublished.
|
|
1397
1532
|
*/
|
|
1398
1533
|
post: {
|
|
1399
1534
|
parameters: {
|
|
@@ -1485,6 +1620,111 @@ export interface paths {
|
|
|
1485
1620
|
patch?: never;
|
|
1486
1621
|
trace?: never;
|
|
1487
1622
|
};
|
|
1623
|
+
"/v1/user/synthesis/tts": {
|
|
1624
|
+
parameters: {
|
|
1625
|
+
query?: never;
|
|
1626
|
+
header?: never;
|
|
1627
|
+
path?: never;
|
|
1628
|
+
cookie?: never;
|
|
1629
|
+
};
|
|
1630
|
+
get?: never;
|
|
1631
|
+
put?: never;
|
|
1632
|
+
/**
|
|
1633
|
+
* User - Synthesize Synthesis Output Audio
|
|
1634
|
+
* @description **POST** `/v1/user/synthesis/tts`
|
|
1635
|
+
*
|
|
1636
|
+
* Mint a short-lived, self-authenticating HLS URL for the authenticated app user's own stored synthesis output — the on-request audio entry point a rendered SynthesisUI's `ctx.tts` calls when the listener presses play. The request REFERENCES the output's spoken content by `synthesisOutputId` (the id returned with the synthesis result) — omit `field` for the whole output's spoken content, pass a top-level `field` to scope to it, and/or `index` for a single turn — and the server reloads the turns from the stored output row (so the URL never carries the text). The URL is gated at mint by OWNERSHIP (only the app user who owns the output can mint it) and expires ~30 minutes after minting. Note: the URL is an HLS playlist whose audio segments are content-addressed and cached long-lived — a player that already loaded a URL may keep playing that audio from cache after the URL expires.
|
|
1637
|
+
*/
|
|
1638
|
+
post: {
|
|
1639
|
+
parameters: {
|
|
1640
|
+
query?: never;
|
|
1641
|
+
header: {
|
|
1642
|
+
/** @description Bearer token for authentication */
|
|
1643
|
+
authorization: string;
|
|
1644
|
+
};
|
|
1645
|
+
path?: never;
|
|
1646
|
+
cookie?: never;
|
|
1647
|
+
};
|
|
1648
|
+
requestBody: {
|
|
1649
|
+
content: {
|
|
1650
|
+
"application/json": {
|
|
1651
|
+
/** @description The id of the synthesis output to voice (returned with the synthesis result). */
|
|
1652
|
+
synthesisOutputId: string;
|
|
1653
|
+
/** @description Top-level field to voice. Omit for the whole output's spoken content. */
|
|
1654
|
+
field?: string;
|
|
1655
|
+
/** @description A single turn index within the resolved content. Omit for all turns. */
|
|
1656
|
+
index?: number;
|
|
1657
|
+
};
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
responses: {
|
|
1661
|
+
/** @description Successful response */
|
|
1662
|
+
200: {
|
|
1663
|
+
headers: {
|
|
1664
|
+
[name: string]: unknown;
|
|
1665
|
+
};
|
|
1666
|
+
content: {
|
|
1667
|
+
"application/json": {
|
|
1668
|
+
/** @example true */
|
|
1669
|
+
success: boolean;
|
|
1670
|
+
data: {
|
|
1671
|
+
/** @description A short-lived streaming URL to point an `<audio>` element at. */
|
|
1672
|
+
url?: string;
|
|
1673
|
+
/** @description Set instead of `url` when audio can't be produced (output not found/not owned, or the text isn't part of the output). */
|
|
1674
|
+
error?: string;
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
/** @description Bad request - missing or invalid parameters */
|
|
1680
|
+
400: {
|
|
1681
|
+
headers: {
|
|
1682
|
+
[name: string]: unknown;
|
|
1683
|
+
};
|
|
1684
|
+
content: {
|
|
1685
|
+
"application/json": {
|
|
1686
|
+
/** @example Bad request */
|
|
1687
|
+
error?: string;
|
|
1688
|
+
};
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
/** @description Unauthorized errors */
|
|
1692
|
+
401: {
|
|
1693
|
+
headers: {
|
|
1694
|
+
[name: string]: unknown;
|
|
1695
|
+
};
|
|
1696
|
+
content: {
|
|
1697
|
+
"application/json": {
|
|
1698
|
+
/**
|
|
1699
|
+
* @example Unauthorized: No authentication token provided
|
|
1700
|
+
* @enum {string}
|
|
1701
|
+
*/
|
|
1702
|
+
error?: "Unauthorized: No authentication token provided" | "Unauthorized: Token has expired" | "Unauthorized: Invalid token" | "Unauthorized: Authentication failed";
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
};
|
|
1706
|
+
/** @description Internal server error */
|
|
1707
|
+
500: {
|
|
1708
|
+
headers: {
|
|
1709
|
+
[name: string]: unknown;
|
|
1710
|
+
};
|
|
1711
|
+
content: {
|
|
1712
|
+
"application/json": {
|
|
1713
|
+
/** @example false */
|
|
1714
|
+
success?: boolean;
|
|
1715
|
+
/** @example Internal server error: An unknown error occurred */
|
|
1716
|
+
error?: string;
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
};
|
|
1722
|
+
delete?: never;
|
|
1723
|
+
options?: never;
|
|
1724
|
+
head?: never;
|
|
1725
|
+
patch?: never;
|
|
1726
|
+
trace?: never;
|
|
1727
|
+
};
|
|
1488
1728
|
"/v1/user/interactions": {
|
|
1489
1729
|
parameters: {
|
|
1490
1730
|
query?: never;
|
|
@@ -1577,6 +1817,21 @@ export interface paths {
|
|
|
1577
1817
|
};
|
|
1578
1818
|
};
|
|
1579
1819
|
};
|
|
1820
|
+
/** @description Forbidden errors */
|
|
1821
|
+
403: {
|
|
1822
|
+
headers: {
|
|
1823
|
+
[name: string]: unknown;
|
|
1824
|
+
};
|
|
1825
|
+
content: {
|
|
1826
|
+
"application/json": {
|
|
1827
|
+
/**
|
|
1828
|
+
* @example Forbidden: Subscription required
|
|
1829
|
+
* @enum {string}
|
|
1830
|
+
*/
|
|
1831
|
+
error: "Forbidden: Subscription required";
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1834
|
+
};
|
|
1580
1835
|
/** @description Internal server error */
|
|
1581
1836
|
500: {
|
|
1582
1837
|
headers: {
|
|
@@ -1690,6 +1945,21 @@ export interface paths {
|
|
|
1690
1945
|
};
|
|
1691
1946
|
};
|
|
1692
1947
|
};
|
|
1948
|
+
/** @description Forbidden errors */
|
|
1949
|
+
403: {
|
|
1950
|
+
headers: {
|
|
1951
|
+
[name: string]: unknown;
|
|
1952
|
+
};
|
|
1953
|
+
content: {
|
|
1954
|
+
"application/json": {
|
|
1955
|
+
/**
|
|
1956
|
+
* @example Forbidden: Subscription required
|
|
1957
|
+
* @enum {string}
|
|
1958
|
+
*/
|
|
1959
|
+
error: "Forbidden: Subscription required";
|
|
1960
|
+
};
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1693
1963
|
/** @description Default Response */
|
|
1694
1964
|
404: {
|
|
1695
1965
|
headers: {
|
|
@@ -1796,6 +2066,21 @@ export interface paths {
|
|
|
1796
2066
|
};
|
|
1797
2067
|
};
|
|
1798
2068
|
};
|
|
2069
|
+
/** @description Forbidden errors */
|
|
2070
|
+
403: {
|
|
2071
|
+
headers: {
|
|
2072
|
+
[name: string]: unknown;
|
|
2073
|
+
};
|
|
2074
|
+
content: {
|
|
2075
|
+
"application/json": {
|
|
2076
|
+
/**
|
|
2077
|
+
* @example Forbidden: Subscription required
|
|
2078
|
+
* @enum {string}
|
|
2079
|
+
*/
|
|
2080
|
+
error: "Forbidden: Subscription required";
|
|
2081
|
+
};
|
|
2082
|
+
};
|
|
2083
|
+
};
|
|
1799
2084
|
/** @description Internal server error */
|
|
1800
2085
|
500: {
|
|
1801
2086
|
headers: {
|
|
@@ -1902,6 +2187,21 @@ export interface paths {
|
|
|
1902
2187
|
};
|
|
1903
2188
|
};
|
|
1904
2189
|
};
|
|
2190
|
+
/** @description Forbidden errors */
|
|
2191
|
+
403: {
|
|
2192
|
+
headers: {
|
|
2193
|
+
[name: string]: unknown;
|
|
2194
|
+
};
|
|
2195
|
+
content: {
|
|
2196
|
+
"application/json": {
|
|
2197
|
+
/**
|
|
2198
|
+
* @example Forbidden: Subscription required
|
|
2199
|
+
* @enum {string}
|
|
2200
|
+
*/
|
|
2201
|
+
error: "Forbidden: Subscription required";
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
};
|
|
1905
2205
|
/** @description Not found */
|
|
1906
2206
|
404: {
|
|
1907
2207
|
headers: {
|
|
@@ -2026,248 +2326,18 @@ export interface paths {
|
|
|
2026
2326
|
};
|
|
2027
2327
|
};
|
|
2028
2328
|
};
|
|
2029
|
-
/** @description
|
|
2030
|
-
|
|
2031
|
-
headers: {
|
|
2032
|
-
[name: string]: unknown;
|
|
2033
|
-
};
|
|
2034
|
-
content: {
|
|
2035
|
-
"application/json": {
|
|
2036
|
-
/** @example false */
|
|
2037
|
-
success?: boolean;
|
|
2038
|
-
/** @example Internal server error: An unknown error occurred */
|
|
2039
|
-
error?: string;
|
|
2040
|
-
};
|
|
2041
|
-
};
|
|
2042
|
-
};
|
|
2043
|
-
};
|
|
2044
|
-
};
|
|
2045
|
-
delete?: never;
|
|
2046
|
-
options?: never;
|
|
2047
|
-
head?: never;
|
|
2048
|
-
patch?: never;
|
|
2049
|
-
trace?: never;
|
|
2050
|
-
};
|
|
2051
|
-
"/v1/user-submissions": {
|
|
2052
|
-
parameters: {
|
|
2053
|
-
query?: never;
|
|
2054
|
-
header?: never;
|
|
2055
|
-
path?: never;
|
|
2056
|
-
cookie?: never;
|
|
2057
|
-
};
|
|
2058
|
-
get?: never;
|
|
2059
|
-
put?: never;
|
|
2060
|
-
/**
|
|
2061
|
-
* User Submissions - Create Submission
|
|
2062
|
-
* @description **POST** `/v1/user-submissions` Creates a structured user submission and optional presigned file upload URLs.
|
|
2063
|
-
*/
|
|
2064
|
-
post: {
|
|
2065
|
-
parameters: {
|
|
2066
|
-
query?: never;
|
|
2067
|
-
header: {
|
|
2068
|
-
authorization: string;
|
|
2069
|
-
};
|
|
2070
|
-
path?: never;
|
|
2071
|
-
cookie?: never;
|
|
2072
|
-
};
|
|
2073
|
-
requestBody: {
|
|
2074
|
-
content: {
|
|
2075
|
-
"application/json": {
|
|
2076
|
-
synthesisOutputId: string;
|
|
2077
|
-
synthesisOutputContentKey?: string;
|
|
2078
|
-
data: {
|
|
2079
|
-
[key: string]: unknown;
|
|
2080
|
-
};
|
|
2081
|
-
files?: {
|
|
2082
|
-
field: string;
|
|
2083
|
-
contentType: string;
|
|
2084
|
-
fileName?: string;
|
|
2085
|
-
}[];
|
|
2086
|
-
};
|
|
2087
|
-
};
|
|
2088
|
-
};
|
|
2089
|
-
responses: {
|
|
2090
|
-
/** @description Default Response */
|
|
2091
|
-
200: {
|
|
2092
|
-
headers: {
|
|
2093
|
-
[name: string]: unknown;
|
|
2094
|
-
};
|
|
2095
|
-
content: {
|
|
2096
|
-
"application/json": {
|
|
2097
|
-
success: boolean;
|
|
2098
|
-
data: {
|
|
2099
|
-
submission: {
|
|
2100
|
-
id: string;
|
|
2101
|
-
synthesisConfigId: string;
|
|
2102
|
-
synthesisOutputId: string;
|
|
2103
|
-
synthesisOutputContentKey: string;
|
|
2104
|
-
appUserId: string;
|
|
2105
|
-
state: string;
|
|
2106
|
-
createdAt: string;
|
|
2107
|
-
updatedAt?: string;
|
|
2108
|
-
} & {
|
|
2109
|
-
[key: string]: unknown;
|
|
2110
|
-
};
|
|
2111
|
-
uploads: {
|
|
2112
|
-
field: string;
|
|
2113
|
-
s3Key: string;
|
|
2114
|
-
uploadUrl: string;
|
|
2115
|
-
}[];
|
|
2116
|
-
};
|
|
2117
|
-
};
|
|
2118
|
-
};
|
|
2119
|
-
};
|
|
2120
|
-
/** @description Bad request - missing or invalid parameters */
|
|
2121
|
-
400: {
|
|
2122
|
-
headers: {
|
|
2123
|
-
[name: string]: unknown;
|
|
2124
|
-
};
|
|
2125
|
-
content: {
|
|
2126
|
-
"application/json": {
|
|
2127
|
-
/** @example Bad request */
|
|
2128
|
-
error?: string;
|
|
2129
|
-
};
|
|
2130
|
-
};
|
|
2131
|
-
};
|
|
2132
|
-
/** @description Unauthorized errors */
|
|
2133
|
-
401: {
|
|
2134
|
-
headers: {
|
|
2135
|
-
[name: string]: unknown;
|
|
2136
|
-
};
|
|
2137
|
-
content: {
|
|
2138
|
-
"application/json": {
|
|
2139
|
-
/**
|
|
2140
|
-
* @example Unauthorized: No authentication token provided
|
|
2141
|
-
* @enum {string}
|
|
2142
|
-
*/
|
|
2143
|
-
error?: "Unauthorized: No authentication token provided" | "Unauthorized: Token has expired" | "Unauthorized: Invalid token" | "Unauthorized: Authentication failed";
|
|
2144
|
-
};
|
|
2145
|
-
};
|
|
2146
|
-
};
|
|
2147
|
-
/** @description Not found */
|
|
2148
|
-
404: {
|
|
2149
|
-
headers: {
|
|
2150
|
-
[name: string]: unknown;
|
|
2151
|
-
};
|
|
2152
|
-
content: {
|
|
2153
|
-
"application/json": {
|
|
2154
|
-
/** @example Not found */
|
|
2155
|
-
error?: string;
|
|
2156
|
-
};
|
|
2157
|
-
};
|
|
2158
|
-
};
|
|
2159
|
-
/** @description Internal server error */
|
|
2160
|
-
500: {
|
|
2161
|
-
headers: {
|
|
2162
|
-
[name: string]: unknown;
|
|
2163
|
-
};
|
|
2164
|
-
content: {
|
|
2165
|
-
"application/json": {
|
|
2166
|
-
/** @example false */
|
|
2167
|
-
success?: boolean;
|
|
2168
|
-
/** @example Internal server error: An unknown error occurred */
|
|
2169
|
-
error?: string;
|
|
2170
|
-
};
|
|
2171
|
-
};
|
|
2172
|
-
};
|
|
2173
|
-
};
|
|
2174
|
-
};
|
|
2175
|
-
delete?: never;
|
|
2176
|
-
options?: never;
|
|
2177
|
-
head?: never;
|
|
2178
|
-
patch?: never;
|
|
2179
|
-
trace?: never;
|
|
2180
|
-
};
|
|
2181
|
-
"/v1/user-submission-schemas/{keyName}/submissions": {
|
|
2182
|
-
parameters: {
|
|
2183
|
-
query?: never;
|
|
2184
|
-
header?: never;
|
|
2185
|
-
path?: never;
|
|
2186
|
-
cookie?: never;
|
|
2187
|
-
};
|
|
2188
|
-
/**
|
|
2189
|
-
* User Submissions - List Live Submissions
|
|
2190
|
-
* @description **GET** `/v1/user-submission-schemas/:keyName/submissions` Lists live submissions for a schema. Customer apps cannot read non-live submissions.
|
|
2191
|
-
*/
|
|
2192
|
-
get: {
|
|
2193
|
-
parameters: {
|
|
2194
|
-
query?: {
|
|
2195
|
-
first?: number;
|
|
2196
|
-
after?: string;
|
|
2197
|
-
};
|
|
2198
|
-
header: {
|
|
2199
|
-
authorization: string;
|
|
2200
|
-
};
|
|
2201
|
-
path: {
|
|
2202
|
-
keyName: string;
|
|
2203
|
-
};
|
|
2204
|
-
cookie?: never;
|
|
2205
|
-
};
|
|
2206
|
-
requestBody?: never;
|
|
2207
|
-
responses: {
|
|
2208
|
-
/** @description Default Response */
|
|
2209
|
-
200: {
|
|
2210
|
-
headers: {
|
|
2211
|
-
[name: string]: unknown;
|
|
2212
|
-
};
|
|
2213
|
-
content: {
|
|
2214
|
-
"application/json": {
|
|
2215
|
-
success: boolean;
|
|
2216
|
-
data: {
|
|
2217
|
-
cursor: null | string;
|
|
2218
|
-
items: {
|
|
2219
|
-
id: string;
|
|
2220
|
-
data: {
|
|
2221
|
-
[key: string]: unknown;
|
|
2222
|
-
};
|
|
2223
|
-
files: {
|
|
2224
|
-
field: string;
|
|
2225
|
-
contentType: string;
|
|
2226
|
-
fileName?: string;
|
|
2227
|
-
downloadUrl: string;
|
|
2228
|
-
}[];
|
|
2229
|
-
createdAt: string;
|
|
2230
|
-
}[];
|
|
2231
|
-
};
|
|
2232
|
-
};
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
/** @description Bad request - missing or invalid parameters */
|
|
2236
|
-
400: {
|
|
2237
|
-
headers: {
|
|
2238
|
-
[name: string]: unknown;
|
|
2239
|
-
};
|
|
2240
|
-
content: {
|
|
2241
|
-
"application/json": {
|
|
2242
|
-
/** @example Bad request */
|
|
2243
|
-
error?: string;
|
|
2244
|
-
};
|
|
2245
|
-
};
|
|
2246
|
-
};
|
|
2247
|
-
/** @description Unauthorized errors */
|
|
2248
|
-
401: {
|
|
2329
|
+
/** @description Forbidden errors */
|
|
2330
|
+
403: {
|
|
2249
2331
|
headers: {
|
|
2250
2332
|
[name: string]: unknown;
|
|
2251
2333
|
};
|
|
2252
2334
|
content: {
|
|
2253
2335
|
"application/json": {
|
|
2254
2336
|
/**
|
|
2255
|
-
* @example
|
|
2337
|
+
* @example Forbidden: Subscription required
|
|
2256
2338
|
* @enum {string}
|
|
2257
2339
|
*/
|
|
2258
|
-
error
|
|
2259
|
-
};
|
|
2260
|
-
};
|
|
2261
|
-
};
|
|
2262
|
-
/** @description Not found */
|
|
2263
|
-
404: {
|
|
2264
|
-
headers: {
|
|
2265
|
-
[name: string]: unknown;
|
|
2266
|
-
};
|
|
2267
|
-
content: {
|
|
2268
|
-
"application/json": {
|
|
2269
|
-
/** @example Not found */
|
|
2270
|
-
error?: string;
|
|
2340
|
+
error: "Forbidden: Subscription required";
|
|
2271
2341
|
};
|
|
2272
2342
|
};
|
|
2273
2343
|
};
|
|
@@ -2287,8 +2357,6 @@ export interface paths {
|
|
|
2287
2357
|
};
|
|
2288
2358
|
};
|
|
2289
2359
|
};
|
|
2290
|
-
put?: never;
|
|
2291
|
-
post?: never;
|
|
2292
2360
|
delete?: never;
|
|
2293
2361
|
options?: never;
|
|
2294
2362
|
head?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type { ProfileResponse, ProfileUpdateRequest } from './user/profile.js';
|
|
|
16
16
|
export type { RecommendationsRequest, RecommendationsResponse } from './user/recommendations.js';
|
|
17
17
|
export type { ReportRequest, ReportResponse } from './user/report.js';
|
|
18
18
|
export type { Signal, SignalRequest, SignalResponse } from './user/signal.js';
|
|
19
|
-
export type {
|
|
19
|
+
export type { PublicSubmission, SubmissionAggregate, SubmissionFeed, SubmissionFile, SubmissionState, SubmitRequest, SubmitResponse, } from './user/submissions.js';
|
|
20
20
|
export type { SynthesisHistoryEntry, SynthesizeEvent, SynthesizeItemResponse, SynthesizeOptions, } from './user/synthesize.js';
|
|
21
21
|
export type { SynthesizeOnStreamingData } from './user/synthesize-batch-manager.js';
|
|
22
22
|
export type { TokenRequest, TokenResponse } from './user/token.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,mBAAmB,wBAAwB,CAAC;AAC5C,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,EACzB,WAAW,EACX,QAAQ,GACT,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,YAAY,EACV,eAAe,EACf,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACjG,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC9E,YAAY,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,mBAAmB,wBAAwB,CAAC;AAC5C,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,EACzB,WAAW,EACX,QAAQ,GACT,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,YAAY,EACV,eAAe,EACf,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACjG,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC9E,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,EACf,aAAa,EACb,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACnE,YAAY,EACV,4BAA4B,EAC5B,0BAA0B,EAC1B,eAAe,EACf,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
|