@nodaro/sdk 2.43.0 → 2.44.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.
Files changed (57) hide show
  1. package/dist/{chunk-6QFTWAQQ.cjs → chunk-3ZZWCHF5.cjs} +12 -12
  2. package/dist/{chunk-6QFTWAQQ.cjs.map → chunk-3ZZWCHF5.cjs.map} +1 -1
  3. package/dist/{chunk-WK7C7TP6.js → chunk-4UPVE662.js} +2 -2
  4. package/dist/chunk-4UPVE662.js.map +1 -0
  5. package/dist/{chunk-F6GENF6R.cjs → chunk-55ZX6TE3.cjs} +12 -9
  6. package/dist/chunk-55ZX6TE3.cjs.map +1 -0
  7. package/dist/{chunk-VACAWIZT.js → chunk-6PI3CI7P.js} +7 -7
  8. package/dist/{chunk-VACAWIZT.js.map → chunk-6PI3CI7P.js.map} +1 -1
  9. package/dist/{chunk-OSX2GVZ2.cjs → chunk-7YHIFCJ4.cjs} +2 -2
  10. package/dist/chunk-7YHIFCJ4.cjs.map +1 -0
  11. package/dist/{chunk-V3KMBQMK.js → chunk-DAGJLS7W.js} +3 -3
  12. package/dist/{chunk-V3KMBQMK.js.map → chunk-DAGJLS7W.js.map} +1 -1
  13. package/dist/{chunk-RQH6IKDC.js → chunk-HKDIIFG2.js} +12 -9
  14. package/dist/chunk-HKDIIFG2.js.map +1 -0
  15. package/dist/{chunk-BLA44UCM.js → chunk-KFZOJBI5.js} +2 -2
  16. package/dist/chunk-KFZOJBI5.js.map +1 -0
  17. package/dist/{chunk-TMRRXQQL.cjs → chunk-MPQQC45L.cjs} +3 -3
  18. package/dist/{chunk-TMRRXQQL.cjs.map → chunk-MPQQC45L.cjs.map} +1 -1
  19. package/dist/{chunk-VADPSFLS.cjs → chunk-QHXLMCBR.cjs} +2 -2
  20. package/dist/chunk-QHXLMCBR.cjs.map +1 -0
  21. package/dist/{chunk-JUON5NXA.js → chunk-RETNLKOC.js} +13 -2
  22. package/dist/chunk-RETNLKOC.js.map +1 -0
  23. package/dist/{chunk-VHSMOBU7.cjs → chunk-VYEGCEZ3.cjs} +13 -2
  24. package/dist/chunk-VYEGCEZ3.cjs.map +1 -0
  25. package/dist/entries/cast-swap.cjs +2 -2
  26. package/dist/entries/cast-swap.d.cts +104 -30
  27. package/dist/entries/cast-swap.d.ts +104 -30
  28. package/dist/entries/cast-swap.js +1 -1
  29. package/dist/entries/client.cjs +11 -11
  30. package/dist/entries/client.js +6 -6
  31. package/dist/entries/core.cjs +5 -5
  32. package/dist/entries/core.js +1 -1
  33. package/dist/entries/picker-catalogs.cjs +2 -2
  34. package/dist/entries/picker-catalogs.d.cts +8 -0
  35. package/dist/entries/picker-catalogs.d.ts +8 -0
  36. package/dist/entries/picker-catalogs.js +1 -1
  37. package/dist/entries/trends.cjs +2 -2
  38. package/dist/entries/trends.d.cts +32 -6
  39. package/dist/entries/trends.d.ts +32 -6
  40. package/dist/entries/trends.js +1 -1
  41. package/dist/entries/workflows.cjs +2 -2
  42. package/dist/entries/workflows.d.cts +65 -1
  43. package/dist/entries/workflows.d.ts +65 -1
  44. package/dist/entries/workflows.js +1 -1
  45. package/dist/index.cjs +16 -16
  46. package/dist/index.d.cts +3 -3
  47. package/dist/index.d.ts +3 -3
  48. package/dist/index.js +6 -6
  49. package/package.json +3 -3
  50. package/dist/chunk-BLA44UCM.js.map +0 -1
  51. package/dist/chunk-F6GENF6R.cjs.map +0 -1
  52. package/dist/chunk-JUON5NXA.js.map +0 -1
  53. package/dist/chunk-OSX2GVZ2.cjs.map +0 -1
  54. package/dist/chunk-RQH6IKDC.js.map +0 -1
  55. package/dist/chunk-VADPSFLS.cjs.map +0 -1
  56. package/dist/chunk-VHSMOBU7.cjs.map +0 -1
  57. package/dist/chunk-WK7C7TP6.js.map +0 -1
@@ -1,21 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var chunk6QFTWAQQ_cjs = require('../chunk-6QFTWAQQ.cjs');
3
+ var chunk3ZZWCHF5_cjs = require('../chunk-3ZZWCHF5.cjs');
4
4
  require('../chunk-W5VHATSR.cjs');
5
5
  require('../chunk-R63TTR35.cjs');
6
6
  require('../chunk-3B47IHB3.cjs');
7
- require('../chunk-VHSMOBU7.cjs');
7
+ require('../chunk-VYEGCEZ3.cjs');
8
8
  require('../chunk-LKH5M44B.cjs');
9
9
  require('../chunk-YDRXBRW2.cjs');
10
10
  require('../chunk-PEMLIAPZ.cjs');
11
11
  require('../chunk-MBFUMWI5.cjs');
12
12
  require('../chunk-NKH2UFSD.cjs');
13
13
  require('../chunk-EK672FFM.cjs');
14
- require('../chunk-VADPSFLS.cjs');
14
+ require('../chunk-QHXLMCBR.cjs');
15
15
  require('../chunk-FHVNTS4E.cjs');
16
16
  require('../chunk-JTOEHQQJ.cjs');
17
17
  require('../chunk-NBVARNVA.cjs');
18
- require('../chunk-OSX2GVZ2.cjs');
18
+ require('../chunk-7YHIFCJ4.cjs');
19
19
  require('../chunk-COCKKMNP.cjs');
20
20
  require('../chunk-LAWYFC4G.cjs');
21
21
  require('../chunk-TCLNSVYA.cjs');
@@ -42,7 +42,7 @@ require('../chunk-43FVH6LJ.cjs');
42
42
  require('../chunk-YFS2LMG4.cjs');
43
43
  require('../chunk-OSMKIRKI.cjs');
44
44
  require('../chunk-FRQJNGJS.cjs');
45
- var chunkTMRRXQQL_cjs = require('../chunk-TMRRXQQL.cjs');
45
+ var chunkMPQQC45L_cjs = require('../chunk-MPQQC45L.cjs');
46
46
  require('../chunk-FM2KM5TY.cjs');
47
47
  require('../chunk-HGCVWOGK.cjs');
48
48
  require('../chunk-PQ7OKM3E.cjs');
@@ -50,7 +50,7 @@ require('../chunk-A3S55XGF.cjs');
50
50
  require('../chunk-OIYMTGYN.cjs');
51
51
  require('../chunk-GA4LZZKQ.cjs');
52
52
  require('../chunk-NGKODS3J.cjs');
53
- require('../chunk-F6GENF6R.cjs');
53
+ require('../chunk-55ZX6TE3.cjs');
54
54
  require('../chunk-BPWUWUZ3.cjs');
55
55
  require('../chunk-HAKYPZLB.cjs');
56
56
 
@@ -58,23 +58,23 @@ require('../chunk-HAKYPZLB.cjs');
58
58
 
59
59
  Object.defineProperty(exports, "NodaroClient", {
60
60
  enumerable: true,
61
- get: function () { return chunk6QFTWAQQ_cjs.NodaroClient; }
61
+ get: function () { return chunk3ZZWCHF5_cjs.NodaroClient; }
62
62
  });
63
63
  Object.defineProperty(exports, "createClient", {
64
64
  enumerable: true,
65
- get: function () { return chunk6QFTWAQQ_cjs.createClient; }
65
+ get: function () { return chunk3ZZWCHF5_cjs.createClient; }
66
66
  });
67
67
  Object.defineProperty(exports, "CallbackAuth", {
68
68
  enumerable: true,
69
- get: function () { return chunkTMRRXQQL_cjs.CallbackAuth; }
69
+ get: function () { return chunkMPQQC45L_cjs.CallbackAuth; }
70
70
  });
71
71
  Object.defineProperty(exports, "StaticTokenAuth", {
72
72
  enumerable: true,
73
- get: function () { return chunkTMRRXQQL_cjs.StaticTokenAuth; }
73
+ get: function () { return chunkMPQQC45L_cjs.StaticTokenAuth; }
74
74
  });
75
75
  Object.defineProperty(exports, "supabaseAuth", {
76
76
  enumerable: true,
77
- get: function () { return chunkTMRRXQQL_cjs.supabaseAuth; }
77
+ get: function () { return chunkMPQQC45L_cjs.supabaseAuth; }
78
78
  });
79
79
  //# sourceMappingURL=client.cjs.map
80
80
  //# sourceMappingURL=client.cjs.map
@@ -1,19 +1,19 @@
1
- export { NodaroClient, createClient } from '../chunk-VACAWIZT.js';
1
+ export { NodaroClient, createClient } from '../chunk-6PI3CI7P.js';
2
2
  import '../chunk-ERLXU47J.js';
3
3
  import '../chunk-T7N7DFQJ.js';
4
4
  import '../chunk-YN6CBIIB.js';
5
- import '../chunk-JUON5NXA.js';
5
+ import '../chunk-RETNLKOC.js';
6
6
  import '../chunk-Z5GLY4R3.js';
7
7
  import '../chunk-NNHWH7ER.js';
8
8
  import '../chunk-Y6VDCZPB.js';
9
9
  import '../chunk-WVFAQBS7.js';
10
10
  import '../chunk-AUKHMT53.js';
11
11
  import '../chunk-ILG5DHQQ.js';
12
- import '../chunk-WK7C7TP6.js';
12
+ import '../chunk-4UPVE662.js';
13
13
  import '../chunk-YSZM3N7Q.js';
14
14
  import '../chunk-WY4QRJZW.js';
15
15
  import '../chunk-WEQWU2IC.js';
16
- import '../chunk-BLA44UCM.js';
16
+ import '../chunk-KFZOJBI5.js';
17
17
  import '../chunk-K4RQOSJH.js';
18
18
  import '../chunk-H7VQTG4M.js';
19
19
  import '../chunk-OIPPTBW4.js';
@@ -40,7 +40,7 @@ import '../chunk-SFB4YLCS.js';
40
40
  import '../chunk-BU5A6K4C.js';
41
41
  import '../chunk-D2ILCSOQ.js';
42
42
  import '../chunk-7CUWAVWB.js';
43
- export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-V3KMBQMK.js';
43
+ export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-DAGJLS7W.js';
44
44
  import '../chunk-L6T44A3G.js';
45
45
  import '../chunk-CK3AMMSC.js';
46
46
  import '../chunk-IGMWFEFB.js';
@@ -48,7 +48,7 @@ import '../chunk-65E3JBFZ.js';
48
48
  import '../chunk-FQNCIP6K.js';
49
49
  import '../chunk-3QFTP5P5.js';
50
50
  import '../chunk-J4WFSKY6.js';
51
- import '../chunk-RQH6IKDC.js';
51
+ import '../chunk-HKDIIFG2.js';
52
52
  import '../chunk-KG4R454Z.js';
53
53
  import '../chunk-EJSGJDZY.js';
54
54
  //# sourceMappingURL=client.js.map
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-X7XP5WBP.cjs');
4
- var chunkTMRRXQQL_cjs = require('../chunk-TMRRXQQL.cjs');
4
+ var chunkMPQQC45L_cjs = require('../chunk-MPQQC45L.cjs');
5
5
  require('../chunk-FM2KM5TY.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "CallbackAuth", {
10
10
  enumerable: true,
11
- get: function () { return chunkTMRRXQQL_cjs.CallbackAuth; }
11
+ get: function () { return chunkMPQQC45L_cjs.CallbackAuth; }
12
12
  });
13
13
  Object.defineProperty(exports, "NodaroClientCore", {
14
14
  enumerable: true,
15
- get: function () { return chunkTMRRXQQL_cjs.NodaroClientCore; }
15
+ get: function () { return chunkMPQQC45L_cjs.NodaroClientCore; }
16
16
  });
17
17
  Object.defineProperty(exports, "StaticTokenAuth", {
18
18
  enumerable: true,
19
- get: function () { return chunkTMRRXQQL_cjs.StaticTokenAuth; }
19
+ get: function () { return chunkMPQQC45L_cjs.StaticTokenAuth; }
20
20
  });
21
21
  Object.defineProperty(exports, "supabaseAuth", {
22
22
  enumerable: true,
23
- get: function () { return chunkTMRRXQQL_cjs.supabaseAuth; }
23
+ get: function () { return chunkMPQQC45L_cjs.supabaseAuth; }
24
24
  });
25
25
  //# sourceMappingURL=core.cjs.map
26
26
  //# sourceMappingURL=core.cjs.map
@@ -1,5 +1,5 @@
1
1
  import '../chunk-AUDHV3OE.js';
2
- export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-V3KMBQMK.js';
2
+ export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-DAGJLS7W.js';
3
3
  import '../chunk-L6T44A3G.js';
4
4
  //# sourceMappingURL=core.js.map
5
5
  //# sourceMappingURL=core.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-7MYKT2L4.cjs');
4
- var chunkOSX2GVZ2_cjs = require('../chunk-OSX2GVZ2.cjs');
4
+ var chunk7YHIFCJ4_cjs = require('../chunk-7YHIFCJ4.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "PickerCatalogsResource", {
9
9
  enumerable: true,
10
- get: function () { return chunkOSX2GVZ2_cjs.PickerCatalogsResource; }
10
+ get: function () { return chunk7YHIFCJ4_cjs.PickerCatalogsResource; }
11
11
  });
12
12
  //# sourceMappingURL=picker-catalogs.cjs.map
13
13
  //# sourceMappingURL=picker-catalogs.cjs.map
@@ -39,6 +39,14 @@ interface PickerOption {
39
39
  * as given: file names carry a content hash, so it can be cached for good.
40
40
  */
41
41
  imageUrl?: string;
42
+ /**
43
+ * The same picture at several widths, as an HTML `srcset` value
44
+ * (`<url> 240w, <url> 480w, <url> 960w, <url> 1920w`) — present only for a
45
+ * render the Nodaro CDN resizes (Nodaro Cloud: the look previews and the
46
+ * music pickers' pictures). Pass it to `<img srcset>` with a `sizes` so a
47
+ * large tile stays sharp; `imageUrl` is its 480px member.
48
+ */
49
+ imageSrcSet?: string;
42
50
  }
43
51
  interface PickerDimension {
44
52
  field: string;
@@ -39,6 +39,14 @@ interface PickerOption {
39
39
  * as given: file names carry a content hash, so it can be cached for good.
40
40
  */
41
41
  imageUrl?: string;
42
+ /**
43
+ * The same picture at several widths, as an HTML `srcset` value
44
+ * (`<url> 240w, <url> 480w, <url> 960w, <url> 1920w`) — present only for a
45
+ * render the Nodaro CDN resizes (Nodaro Cloud: the look previews and the
46
+ * music pickers' pictures). Pass it to `<img srcset>` with a `sizes` so a
47
+ * large tile stays sharp; `imageUrl` is its 480px member.
48
+ */
49
+ imageSrcSet?: string;
42
50
  }
43
51
  interface PickerDimension {
44
52
  field: string;
@@ -1,4 +1,4 @@
1
1
  import '../chunk-QVQCKOBM.js';
2
- export { PickerCatalogsResource } from '../chunk-BLA44UCM.js';
2
+ export { PickerCatalogsResource } from '../chunk-KFZOJBI5.js';
3
3
  //# sourceMappingURL=picker-catalogs.js.map
4
4
  //# sourceMappingURL=picker-catalogs.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-PG2GBS3K.cjs');
4
- var chunkVADPSFLS_cjs = require('../chunk-VADPSFLS.cjs');
4
+ var chunkQHXLMCBR_cjs = require('../chunk-QHXLMCBR.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "TrendsResource", {
9
9
  enumerable: true,
10
- get: function () { return chunkVADPSFLS_cjs.TrendsResource; }
10
+ get: function () { return chunkQHXLMCBR_cjs.TrendsResource; }
11
11
  });
12
12
  //# sourceMappingURL=trends.cjs.map
13
13
  //# sourceMappingURL=trends.cjs.map
@@ -1,4 +1,5 @@
1
1
  import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
2
+ import { CastSwapEngine } from './cast-swap.cjs';
2
3
  import '@nodaro/shared/apps';
3
4
  import '@nodaro/shared/organizations';
4
5
 
@@ -21,6 +22,11 @@ interface TrendChips {
21
22
  /** A chip's name: `body`, `outfit`, `hair`, `coat`, `shape` or `finish`. */
22
23
  type TrendChipKey = keyof TrendChips;
23
24
  type TrendResolution = "480p" | "720p" | "1080p";
25
+ /**
26
+ * The video engine a trend runs on ({@link CastSwapEngine}): the trend
27
+ * chooses it, never the person running it.
28
+ */
29
+ type TrendEngine = CastSwapEngine;
24
30
  /** A trend in the catalog (`list()`). Text is in the resolved locale. */
25
31
  interface TrendCard {
26
32
  id: string;
@@ -76,6 +82,13 @@ interface TrendDetail extends TrendCard {
76
82
  version: number;
77
83
  /** `4` when the trend offers a 4-second preview run, else `null`. */
78
84
  previewSec: 4 | null;
85
+ /** The video engine every run of this trend uses. Absent (an older server) = `"seedance-2-5"`. */
86
+ engine?: TrendEngine;
87
+ /**
88
+ * The resolutions a run may ask for, the default first. Seedance 2.5:
89
+ * `["480p", "720p", "1080p"]`, where 480p is a draft (show it as one);
90
+ * Kling 4: `["720p", "1080p"]`, no draft. Offer exactly these.
91
+ */
79
92
  resolutions: TrendResolution[];
80
93
  slots: TrendDetailSlot[];
81
94
  examples: TrendExample[];
@@ -97,9 +110,16 @@ interface TrendRunRequest {
97
110
  details?: string;
98
111
  /** `true` runs a 4-second preview (only when the trend's `previewSec` is `4`). */
99
112
  preview?: boolean;
100
- /** Default `"480p"`. */
113
+ /**
114
+ * One of the trend's {@link TrendDetail.resolutions}; default its first
115
+ * (`"480p"` on Seedance 2.5, `"720p"` on Kling 4). Another answers 400
116
+ * `resolution_unsupported`.
117
+ */
101
118
  resolution?: TrendResolution;
102
- /** A draft run, only at 480p. Default `true` at 480p. */
119
+ /**
120
+ * A draft run, only at 480p on a Seedance 2.5 trend. Default `true` at
121
+ * 480p. `true` on a Kling 4 trend answers 400 `draft_unsupported`.
122
+ */
103
123
  draft?: boolean;
104
124
  /**
105
125
  * A generation session of yours. Accepted (and checked: one you may not use
@@ -201,14 +221,16 @@ interface TrendRun {
201
221
  preview: boolean;
202
222
  resolution: string;
203
223
  draft: boolean;
224
+ /** The video engine the run was made on. Absent (an older server) = `"seedance-2-5"`. */
225
+ engine?: TrendEngine;
204
226
  /** The result, once completed. */
205
227
  videoUrl: string | null;
206
228
  posterUrl: string | null;
207
229
  creditsCharged: number | null;
208
- /** A Full Quality version: the job id of the draft run it was made from. `null` for any other run. */
230
+ /** A Full Quality version: the job id of the run (a draft, or a Kling 4 720p run) it was made from. `null` for any other run. */
209
231
  fullQualityOf: string | null;
210
232
  /**
211
- * A draft's newest Full Quality try, if one was started: a pointer only,
233
+ * A draft's (or Kling 4 720p run's) newest Full Quality try, if one was started: a pointer only,
212
234
  * to know an upgrade exists and how it is going. Its video and charge are on
213
235
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
214
236
  * read it there (`getRun(fullQuality.jobId)`). Older tries of the draft (a
@@ -219,7 +241,11 @@ interface TrendRun {
219
241
  jobId: string;
220
242
  status: string;
221
243
  } | null;
222
- /** Until when a completed draft can be redone in Full Quality; `null` otherwise. */
244
+ /**
245
+ * Until when a completed run can be redone in Full Quality — a Seedance 2.5
246
+ * draft (the same take at 1080p) or a Kling 4 run at 720p (a new take at
247
+ * 1080p); `null` otherwise.
248
+ */
223
249
  fullQualityUntil: string | null;
224
250
  }
225
251
  interface ListTrendsParams {
@@ -300,4 +326,4 @@ declare class TrendsResource {
300
326
  unfavorite(slug: string): Promise<void>;
301
327
  }
302
328
 
303
- export { type ListTrendRunsParams, type ListTrendsParams, type TrendCard, type TrendChipKey, type TrendChips, type TrendChoice, type TrendDetail, type TrendDetailSlot, type TrendEstimate, type TrendExample, type TrendPage, type TrendResolution, type TrendRun, type TrendRunDisplaySlot, type TrendRunOptions, type TrendRunRequest, type TrendRunSlot, type TrendSlotKind, type TrendTag, TrendsResource };
329
+ export { type ListTrendRunsParams, type ListTrendsParams, type TrendCard, type TrendChipKey, type TrendChips, type TrendChoice, type TrendDetail, type TrendDetailSlot, type TrendEngine, type TrendEstimate, type TrendExample, type TrendPage, type TrendResolution, type TrendRun, type TrendRunDisplaySlot, type TrendRunOptions, type TrendRunRequest, type TrendRunSlot, type TrendSlotKind, type TrendTag, TrendsResource };
@@ -1,4 +1,5 @@
1
1
  import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
2
+ import { CastSwapEngine } from './cast-swap.js';
2
3
  import '@nodaro/shared/apps';
3
4
  import '@nodaro/shared/organizations';
4
5
 
@@ -21,6 +22,11 @@ interface TrendChips {
21
22
  /** A chip's name: `body`, `outfit`, `hair`, `coat`, `shape` or `finish`. */
22
23
  type TrendChipKey = keyof TrendChips;
23
24
  type TrendResolution = "480p" | "720p" | "1080p";
25
+ /**
26
+ * The video engine a trend runs on ({@link CastSwapEngine}): the trend
27
+ * chooses it, never the person running it.
28
+ */
29
+ type TrendEngine = CastSwapEngine;
24
30
  /** A trend in the catalog (`list()`). Text is in the resolved locale. */
25
31
  interface TrendCard {
26
32
  id: string;
@@ -76,6 +82,13 @@ interface TrendDetail extends TrendCard {
76
82
  version: number;
77
83
  /** `4` when the trend offers a 4-second preview run, else `null`. */
78
84
  previewSec: 4 | null;
85
+ /** The video engine every run of this trend uses. Absent (an older server) = `"seedance-2-5"`. */
86
+ engine?: TrendEngine;
87
+ /**
88
+ * The resolutions a run may ask for, the default first. Seedance 2.5:
89
+ * `["480p", "720p", "1080p"]`, where 480p is a draft (show it as one);
90
+ * Kling 4: `["720p", "1080p"]`, no draft. Offer exactly these.
91
+ */
79
92
  resolutions: TrendResolution[];
80
93
  slots: TrendDetailSlot[];
81
94
  examples: TrendExample[];
@@ -97,9 +110,16 @@ interface TrendRunRequest {
97
110
  details?: string;
98
111
  /** `true` runs a 4-second preview (only when the trend's `previewSec` is `4`). */
99
112
  preview?: boolean;
100
- /** Default `"480p"`. */
113
+ /**
114
+ * One of the trend's {@link TrendDetail.resolutions}; default its first
115
+ * (`"480p"` on Seedance 2.5, `"720p"` on Kling 4). Another answers 400
116
+ * `resolution_unsupported`.
117
+ */
101
118
  resolution?: TrendResolution;
102
- /** A draft run, only at 480p. Default `true` at 480p. */
119
+ /**
120
+ * A draft run, only at 480p on a Seedance 2.5 trend. Default `true` at
121
+ * 480p. `true` on a Kling 4 trend answers 400 `draft_unsupported`.
122
+ */
103
123
  draft?: boolean;
104
124
  /**
105
125
  * A generation session of yours. Accepted (and checked: one you may not use
@@ -201,14 +221,16 @@ interface TrendRun {
201
221
  preview: boolean;
202
222
  resolution: string;
203
223
  draft: boolean;
224
+ /** The video engine the run was made on. Absent (an older server) = `"seedance-2-5"`. */
225
+ engine?: TrendEngine;
204
226
  /** The result, once completed. */
205
227
  videoUrl: string | null;
206
228
  posterUrl: string | null;
207
229
  creditsCharged: number | null;
208
- /** A Full Quality version: the job id of the draft run it was made from. `null` for any other run. */
230
+ /** A Full Quality version: the job id of the run (a draft, or a Kling 4 720p run) it was made from. `null` for any other run. */
209
231
  fullQualityOf: string | null;
210
232
  /**
211
- * A draft's newest Full Quality try, if one was started: a pointer only,
233
+ * A draft's (or Kling 4 720p run's) newest Full Quality try, if one was started: a pointer only,
212
234
  * to know an upgrade exists and how it is going. Its video and charge are on
213
235
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
214
236
  * read it there (`getRun(fullQuality.jobId)`). Older tries of the draft (a
@@ -219,7 +241,11 @@ interface TrendRun {
219
241
  jobId: string;
220
242
  status: string;
221
243
  } | null;
222
- /** Until when a completed draft can be redone in Full Quality; `null` otherwise. */
244
+ /**
245
+ * Until when a completed run can be redone in Full Quality — a Seedance 2.5
246
+ * draft (the same take at 1080p) or a Kling 4 run at 720p (a new take at
247
+ * 1080p); `null` otherwise.
248
+ */
223
249
  fullQualityUntil: string | null;
224
250
  }
225
251
  interface ListTrendsParams {
@@ -300,4 +326,4 @@ declare class TrendsResource {
300
326
  unfavorite(slug: string): Promise<void>;
301
327
  }
302
328
 
303
- export { type ListTrendRunsParams, type ListTrendsParams, type TrendCard, type TrendChipKey, type TrendChips, type TrendChoice, type TrendDetail, type TrendDetailSlot, type TrendEstimate, type TrendExample, type TrendPage, type TrendResolution, type TrendRun, type TrendRunDisplaySlot, type TrendRunOptions, type TrendRunRequest, type TrendRunSlot, type TrendSlotKind, type TrendTag, TrendsResource };
329
+ export { type ListTrendRunsParams, type ListTrendsParams, type TrendCard, type TrendChipKey, type TrendChips, type TrendChoice, type TrendDetail, type TrendDetailSlot, type TrendEngine, type TrendEstimate, type TrendExample, type TrendPage, type TrendResolution, type TrendRun, type TrendRunDisplaySlot, type TrendRunOptions, type TrendRunRequest, type TrendRunSlot, type TrendSlotKind, type TrendTag, TrendsResource };
@@ -1,4 +1,4 @@
1
1
  import '../chunk-YCVRQZT3.js';
2
- export { TrendsResource } from '../chunk-WK7C7TP6.js';
2
+ export { TrendsResource } from '../chunk-4UPVE662.js';
3
3
  //# sourceMappingURL=trends.js.map
4
4
  //# sourceMappingURL=trends.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-45CK55BH.cjs');
4
- var chunkVHSMOBU7_cjs = require('../chunk-VHSMOBU7.cjs');
4
+ var chunkVYEGCEZ3_cjs = require('../chunk-VYEGCEZ3.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "WorkflowsResource", {
9
9
  enumerable: true,
10
- get: function () { return chunkVHSMOBU7_cjs.WorkflowsResource; }
10
+ get: function () { return chunkVYEGCEZ3_cjs.WorkflowsResource; }
11
11
  });
12
12
  //# sourceMappingURL=workflows.cjs.map
13
13
  //# sourceMappingURL=workflows.cjs.map
@@ -272,6 +272,64 @@ declare class WorkflowCollaboratorsResource {
272
272
  success: true;
273
273
  }>;
274
274
  }
275
+ /** One MCP conversation: a flow its assistant built step by step (`GET /v1/mcp-conversations`). */
276
+ interface McpConversation {
277
+ /** The conversation's workflow id — open it with {@link WorkflowsResource.get}. */
278
+ id: string;
279
+ projectId: string;
280
+ name: string;
281
+ /** The source: "claude", "claude-code", "chatgpt", or another client's name in lower case. */
282
+ client: string;
283
+ clientLabel: string;
284
+ /** The connection's own name, as the connector was named. */
285
+ clientName: string;
286
+ startedAt: string;
287
+ lastActivityAt: string;
288
+ /** Still receiving steps: its last step is less than 30 minutes old. */
289
+ live: boolean;
290
+ /** The user's first request, when the assistant passed it. */
291
+ firstRequest: string | null;
292
+ nodeCount: number;
293
+ counts: {
294
+ image: number;
295
+ video: number;
296
+ audio: number;
297
+ };
298
+ /** Credits charged for its jobs; null where credits are not billed. */
299
+ credits: number | null;
300
+ cover: {
301
+ url: string;
302
+ kind: "image" | "video";
303
+ setByUser: boolean;
304
+ } | null;
305
+ updatedAt: string;
306
+ }
307
+ interface ListMcpConversationsParams {
308
+ /** "YYYY-MM". Default: the latest month that has conversations. */
309
+ month?: string;
310
+ /** Keep only these sources ("claude", "claude-code", "chatgpt", …). */
311
+ sources?: readonly string[];
312
+ }
313
+ interface McpConversationList {
314
+ /** The month listed. */
315
+ month: string;
316
+ /** Every month that has conversations, newest first, with its count. */
317
+ months: Array<{
318
+ month: string;
319
+ conversations: number;
320
+ }>;
321
+ /** The month's sources, with the connection names each one folds in. */
322
+ sources: Array<{
323
+ client: string;
324
+ label: string;
325
+ conversations: number;
326
+ connections: Array<{
327
+ clientName: string;
328
+ conversations: number;
329
+ }>;
330
+ }>;
331
+ data: McpConversation[];
332
+ }
275
333
  declare class WorkflowsResource {
276
334
  private client;
277
335
  /** The people this workflow is shared with. See {@link WorkflowCollaboratorsResource}. */
@@ -394,6 +452,12 @@ declare class WorkflowsResource {
394
452
  sharedWithMe(): Promise<{
395
453
  data: SharedWorkflow[];
396
454
  }>;
455
+ /**
456
+ * Your MCP conversations of one month (`GET /v1/mcp-conversations`): each is a
457
+ * flow an assistant built from its steps, newest first. A conversation is a
458
+ * workflow, so open, rename, export or delete it with the other methods here.
459
+ */
460
+ listMcpConversations(params?: ListMcpConversationsParams): Promise<McpConversationList>;
397
461
  }
398
462
 
399
- export { type AddCollaboratorInput, type Collaborator, type CreateWorkflowInput, type DroppedCollaborator, type ListWorkflowsParams, type RenderFinalParams, type RenderFinalQuote, type RunWorkflowOptions, type RunWorkflowParams, type RunWorkflowResult, type SharedWorkflow, type UpdateWorkflowInput, type Workflow, WorkflowsResource };
463
+ export { type AddCollaboratorInput, type Collaborator, type CreateWorkflowInput, type DroppedCollaborator, type ListMcpConversationsParams, type ListWorkflowsParams, type McpConversation, type McpConversationList, type RenderFinalParams, type RenderFinalQuote, type RunWorkflowOptions, type RunWorkflowParams, type RunWorkflowResult, type SharedWorkflow, type UpdateWorkflowInput, type Workflow, WorkflowsResource };
@@ -272,6 +272,64 @@ declare class WorkflowCollaboratorsResource {
272
272
  success: true;
273
273
  }>;
274
274
  }
275
+ /** One MCP conversation: a flow its assistant built step by step (`GET /v1/mcp-conversations`). */
276
+ interface McpConversation {
277
+ /** The conversation's workflow id — open it with {@link WorkflowsResource.get}. */
278
+ id: string;
279
+ projectId: string;
280
+ name: string;
281
+ /** The source: "claude", "claude-code", "chatgpt", or another client's name in lower case. */
282
+ client: string;
283
+ clientLabel: string;
284
+ /** The connection's own name, as the connector was named. */
285
+ clientName: string;
286
+ startedAt: string;
287
+ lastActivityAt: string;
288
+ /** Still receiving steps: its last step is less than 30 minutes old. */
289
+ live: boolean;
290
+ /** The user's first request, when the assistant passed it. */
291
+ firstRequest: string | null;
292
+ nodeCount: number;
293
+ counts: {
294
+ image: number;
295
+ video: number;
296
+ audio: number;
297
+ };
298
+ /** Credits charged for its jobs; null where credits are not billed. */
299
+ credits: number | null;
300
+ cover: {
301
+ url: string;
302
+ kind: "image" | "video";
303
+ setByUser: boolean;
304
+ } | null;
305
+ updatedAt: string;
306
+ }
307
+ interface ListMcpConversationsParams {
308
+ /** "YYYY-MM". Default: the latest month that has conversations. */
309
+ month?: string;
310
+ /** Keep only these sources ("claude", "claude-code", "chatgpt", …). */
311
+ sources?: readonly string[];
312
+ }
313
+ interface McpConversationList {
314
+ /** The month listed. */
315
+ month: string;
316
+ /** Every month that has conversations, newest first, with its count. */
317
+ months: Array<{
318
+ month: string;
319
+ conversations: number;
320
+ }>;
321
+ /** The month's sources, with the connection names each one folds in. */
322
+ sources: Array<{
323
+ client: string;
324
+ label: string;
325
+ conversations: number;
326
+ connections: Array<{
327
+ clientName: string;
328
+ conversations: number;
329
+ }>;
330
+ }>;
331
+ data: McpConversation[];
332
+ }
275
333
  declare class WorkflowsResource {
276
334
  private client;
277
335
  /** The people this workflow is shared with. See {@link WorkflowCollaboratorsResource}. */
@@ -394,6 +452,12 @@ declare class WorkflowsResource {
394
452
  sharedWithMe(): Promise<{
395
453
  data: SharedWorkflow[];
396
454
  }>;
455
+ /**
456
+ * Your MCP conversations of one month (`GET /v1/mcp-conversations`): each is a
457
+ * flow an assistant built from its steps, newest first. A conversation is a
458
+ * workflow, so open, rename, export or delete it with the other methods here.
459
+ */
460
+ listMcpConversations(params?: ListMcpConversationsParams): Promise<McpConversationList>;
397
461
  }
398
462
 
399
- export { type AddCollaboratorInput, type Collaborator, type CreateWorkflowInput, type DroppedCollaborator, type ListWorkflowsParams, type RenderFinalParams, type RenderFinalQuote, type RunWorkflowOptions, type RunWorkflowParams, type RunWorkflowResult, type SharedWorkflow, type UpdateWorkflowInput, type Workflow, WorkflowsResource };
463
+ export { type AddCollaboratorInput, type Collaborator, type CreateWorkflowInput, type DroppedCollaborator, type ListMcpConversationsParams, type ListWorkflowsParams, type McpConversation, type McpConversationList, type RenderFinalParams, type RenderFinalQuote, type RunWorkflowOptions, type RunWorkflowParams, type RunWorkflowResult, type SharedWorkflow, type UpdateWorkflowInput, type Workflow, WorkflowsResource };
@@ -1,4 +1,4 @@
1
1
  import '../chunk-PGYQ754I.js';
2
- export { WorkflowsResource } from '../chunk-JUON5NXA.js';
2
+ export { WorkflowsResource } from '../chunk-RETNLKOC.js';
3
3
  //# sourceMappingURL=workflows.js.map
4
4
  //# sourceMappingURL=workflows.js.map