@nodaro/sdk 2.75.0 → 2.77.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 (144) hide show
  1. package/dist/{chunk-VGY3WBNY.js → chunk-3M7AHJG5.js} +53 -11
  2. package/dist/chunk-3M7AHJG5.js.map +1 -0
  3. package/dist/chunk-3WQ4UW3C.js +3 -0
  4. package/dist/{chunk-WFFVCGNU.js.map → chunk-3WQ4UW3C.js.map} +1 -1
  5. package/dist/{chunk-IJAJTVEW.js → chunk-4Q3XZE5O.js} +17 -3
  6. package/dist/chunk-4Q3XZE5O.js.map +1 -0
  7. package/dist/{chunk-R427LDUV.cjs → chunk-4VKV3HW3.cjs} +5 -5
  8. package/dist/{chunk-R427LDUV.cjs.map → chunk-4VKV3HW3.cjs.map} +1 -1
  9. package/dist/{chunk-YE6X5BQ2.js → chunk-6TR7QXSX.js} +3 -3
  10. package/dist/{chunk-YE6X5BQ2.js.map → chunk-6TR7QXSX.js.map} +1 -1
  11. package/dist/chunk-6YWXKDAY.cjs +190 -0
  12. package/dist/chunk-6YWXKDAY.cjs.map +1 -0
  13. package/dist/chunk-7NTMMIPC.cjs +4 -0
  14. package/dist/{chunk-D3F2BWD6.cjs.map → chunk-7NTMMIPC.cjs.map} +1 -1
  15. package/dist/{chunk-BETFYVOR.cjs → chunk-7XKVBFKM.cjs} +5 -5
  16. package/dist/{chunk-BETFYVOR.cjs.map → chunk-7XKVBFKM.cjs.map} +1 -1
  17. package/dist/{chunk-TKSQCF2X.js → chunk-D45ATYCE.js} +2 -2
  18. package/dist/chunk-D45ATYCE.js.map +1 -0
  19. package/dist/{chunk-4AD3CBDK.cjs → chunk-E2NMFQNY.cjs} +18 -2
  20. package/dist/chunk-E2NMFQNY.cjs.map +1 -0
  21. package/dist/{chunk-UX5SMJEI.js → chunk-EKVE3DBA.js} +18 -15
  22. package/dist/chunk-EKVE3DBA.js.map +1 -0
  23. package/dist/{chunk-DNONFO6S.js → chunk-GWL4O3J2.js} +3 -3
  24. package/dist/{chunk-DNONFO6S.js.map → chunk-GWL4O3J2.js.map} +1 -1
  25. package/dist/{chunk-VTHHSO2K.cjs → chunk-H6ZB7WYE.cjs} +28 -4
  26. package/dist/chunk-H6ZB7WYE.cjs.map +1 -0
  27. package/dist/chunk-K53JD2ZC.js +187 -0
  28. package/dist/chunk-K53JD2ZC.js.map +1 -0
  29. package/dist/{chunk-4GSUIOTT.cjs → chunk-KNBZFWVO.cjs} +22 -22
  30. package/dist/{chunk-4GSUIOTT.cjs.map → chunk-KNBZFWVO.cjs.map} +1 -1
  31. package/dist/{chunk-O6YXG4BM.js → chunk-M5ZXVXZL.js} +4 -4
  32. package/dist/{chunk-O6YXG4BM.js.map → chunk-M5ZXVXZL.js.map} +1 -1
  33. package/dist/{chunk-GU3YOOCK.cjs → chunk-MGVK4PJF.cjs} +33 -18
  34. package/dist/chunk-MGVK4PJF.cjs.map +1 -0
  35. package/dist/chunk-NDX4QUTI.js +3 -0
  36. package/dist/chunk-NDX4QUTI.js.map +1 -0
  37. package/dist/{chunk-HNUCPUIX.js → chunk-QV4QD6XI.js} +27 -3
  38. package/dist/chunk-QV4QD6XI.js.map +1 -0
  39. package/dist/{chunk-CCXY4ZJM.js → chunk-SA7VTT7C.js} +3 -3
  40. package/dist/{chunk-CCXY4ZJM.js.map → chunk-SA7VTT7C.js.map} +1 -1
  41. package/dist/{chunk-MQQA2E6J.cjs → chunk-STKXUHEM.cjs} +2 -2
  42. package/dist/chunk-STKXUHEM.cjs.map +1 -0
  43. package/dist/{chunk-C5GFDCK2.cjs → chunk-UKITRPXF.cjs} +2 -2
  44. package/dist/{chunk-C5GFDCK2.cjs.map → chunk-UKITRPXF.cjs.map} +1 -1
  45. package/dist/{chunk-CLBLAWH3.cjs → chunk-VKEFUXQJ.cjs} +58 -15
  46. package/dist/chunk-VKEFUXQJ.cjs.map +1 -0
  47. package/dist/{chunk-D3F2BWD6.cjs → chunk-VZCCECKW.cjs} +2 -2
  48. package/dist/chunk-VZCCECKW.cjs.map +1 -0
  49. package/dist/{chunk-YUY56PT7.js → chunk-WSOLDULF.js} +33 -19
  50. package/dist/chunk-WSOLDULF.js.map +1 -0
  51. package/dist/{chunk-R5DTFY73.js → chunk-WY5QIOO4.js} +2 -2
  52. package/dist/{chunk-R5DTFY73.js.map → chunk-WY5QIOO4.js.map} +1 -1
  53. package/dist/{chunk-QSPTSAEI.cjs → chunk-XF7IDNMR.cjs} +27 -24
  54. package/dist/chunk-XF7IDNMR.cjs.map +1 -0
  55. package/dist/{chunk-EJJIA765.cjs → chunk-XWPYN2VX.cjs} +5 -5
  56. package/dist/{chunk-EJJIA765.cjs.map → chunk-XWPYN2VX.cjs.map} +1 -1
  57. package/dist/{chunk-SZ67PDKE.js → chunk-YQ2Q4OM3.js} +3 -3
  58. package/dist/{chunk-SZ67PDKE.js.map → chunk-YQ2Q4OM3.js.map} +1 -1
  59. package/dist/{chunk-TQLOD7OL.cjs → chunk-ZJM5YBXY.cjs} +4 -4
  60. package/dist/{chunk-TQLOD7OL.cjs.map → chunk-ZJM5YBXY.cjs.map} +1 -1
  61. package/dist/entries/cast-swap.cjs +2 -2
  62. package/dist/entries/cast-swap.d.cts +2 -623
  63. package/dist/entries/cast-swap.d.ts +2 -623
  64. package/dist/entries/cast-swap.js +1 -1
  65. package/dist/entries/characters.d.cts +1 -1
  66. package/dist/entries/characters.d.ts +1 -1
  67. package/dist/entries/client.cjs +18 -18
  68. package/dist/entries/client.d.cts +7 -5
  69. package/dist/entries/client.d.ts +7 -5
  70. package/dist/entries/client.js +13 -13
  71. package/dist/entries/copilot.cjs +4 -4
  72. package/dist/entries/copilot.js +3 -3
  73. package/dist/entries/core.cjs +6 -6
  74. package/dist/entries/core.js +2 -2
  75. package/dist/entries/creatures.d.cts +1 -1
  76. package/dist/entries/creatures.d.ts +1 -1
  77. package/dist/entries/edit.cjs +13 -9
  78. package/dist/entries/edit.d.cts +265 -71
  79. package/dist/entries/edit.d.ts +265 -71
  80. package/dist/entries/edit.js +3 -3
  81. package/dist/entries/errors.cjs +36 -28
  82. package/dist/entries/errors.d.cts +24 -1
  83. package/dist/entries/errors.d.ts +24 -1
  84. package/dist/entries/errors.js +1 -1
  85. package/dist/entries/jobs.cjs +2 -2
  86. package/dist/entries/jobs.d.cts +4 -4
  87. package/dist/entries/jobs.d.ts +4 -4
  88. package/dist/entries/jobs.js +1 -1
  89. package/dist/entries/locations.d.cts +1 -1
  90. package/dist/entries/locations.d.ts +1 -1
  91. package/dist/entries/media.cjs +4 -4
  92. package/dist/entries/media.d.cts +67 -2
  93. package/dist/entries/media.d.ts +67 -2
  94. package/dist/entries/media.js +3 -3
  95. package/dist/entries/nodes.cjs +3 -3
  96. package/dist/entries/nodes.d.cts +1 -1
  97. package/dist/entries/nodes.d.ts +1 -1
  98. package/dist/entries/nodes.js +2 -2
  99. package/dist/entries/objects.d.cts +1 -1
  100. package/dist/entries/objects.d.ts +1 -1
  101. package/dist/entries/scene3d.d.cts +2 -2
  102. package/dist/entries/scene3d.d.ts +2 -2
  103. package/dist/entries/studio.cjs +5 -5
  104. package/dist/entries/studio.js +2 -2
  105. package/dist/entries/trends.cjs +2 -2
  106. package/dist/entries/trends.d.cts +57 -30
  107. package/dist/entries/trends.d.ts +57 -30
  108. package/dist/entries/trends.js +1 -1
  109. package/dist/entries/uploads.cjs +7 -2
  110. package/dist/entries/uploads.d.cts +60 -1
  111. package/dist/entries/uploads.d.ts +60 -1
  112. package/dist/entries/uploads.js +2 -1
  113. package/dist/entries/video-remake.cjs +13 -0
  114. package/dist/entries/video-remake.cjs.map +1 -0
  115. package/dist/entries/video-remake.d.cts +4 -0
  116. package/dist/entries/video-remake.d.ts +4 -0
  117. package/dist/entries/video-remake.js +4 -0
  118. package/dist/entries/video-remake.js.map +1 -0
  119. package/dist/index.cjs +84 -63
  120. package/dist/index.d.cts +7 -7
  121. package/dist/index.d.ts +7 -7
  122. package/dist/index.js +15 -14
  123. package/dist/{nodes-DtSP2yna.d.cts → nodes-BHtjh6gl.d.cts} +2 -2
  124. package/dist/{nodes-HKVmoCnt.d.ts → nodes-BaRqRB2Z.d.ts} +2 -2
  125. package/dist/video-remake-BEBbUmlY.d.ts +699 -0
  126. package/dist/video-remake-LrhEaona.d.cts +699 -0
  127. package/package.json +8 -3
  128. package/dist/chunk-4AD3CBDK.cjs.map +0 -1
  129. package/dist/chunk-CLBLAWH3.cjs.map +0 -1
  130. package/dist/chunk-F6KAMECM.cjs +0 -72
  131. package/dist/chunk-F6KAMECM.cjs.map +0 -1
  132. package/dist/chunk-GU3YOOCK.cjs.map +0 -1
  133. package/dist/chunk-HNUCPUIX.js.map +0 -1
  134. package/dist/chunk-IJAJTVEW.js.map +0 -1
  135. package/dist/chunk-MQQA2E6J.cjs.map +0 -1
  136. package/dist/chunk-QSPTSAEI.cjs.map +0 -1
  137. package/dist/chunk-TKSQCF2X.js.map +0 -1
  138. package/dist/chunk-UX5SMJEI.js.map +0 -1
  139. package/dist/chunk-VGY3WBNY.js.map +0 -1
  140. package/dist/chunk-VTHHSO2K.cjs.map +0 -1
  141. package/dist/chunk-WFFVCGNU.js +0 -3
  142. package/dist/chunk-YEOK5A5H.js +0 -70
  143. package/dist/chunk-YEOK5A5H.js.map +0 -1
  144. package/dist/chunk-YUY56PT7.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { N as NodaroClientCore } from '../developer-apps-D59GfAnO.cjs';
2
- import { CastSwapEngine } from './cast-swap.cjs';
2
+ import { z as VideoRemakeEngine } from '../video-remake-LrhEaona.cjs';
3
3
  import '@nodaro/shared/apps';
4
4
  import '@nodaro/shared/organizations';
5
5
 
@@ -23,11 +23,11 @@ interface TrendChips {
23
23
  type TrendChipKey = keyof TrendChips;
24
24
  type TrendResolution = "480p" | "720p" | "1080p";
25
25
  /**
26
- * The engine a trend runs on, by its public id ({@link CastSwapEngine}):
27
- * `"motion-prism"` (Nodaro Motion Prism) or `"motion-pulse"` (Nodaro Motion Pulse).
26
+ * The engine a trend runs on, by its public id ({@link VideoRemakeEngine}):
27
+ * `"nodaro-prism"` (Nodaro Prism) or `"nodaro-pulse"` (Nodaro Pulse).
28
28
  * The trend chooses it, never the person running it.
29
29
  */
30
- type TrendEngine = CastSwapEngine;
30
+ type TrendEngine = VideoRemakeEngine;
31
31
  /**
32
32
  * One of a trend's videos as a list or page shows it: the card's
33
33
  * {@link TrendCard.cover}, {@link TrendCard.original} and
@@ -92,10 +92,15 @@ interface TrendDetailSlot {
92
92
  label: string;
93
93
  kind: TrendSlotKind;
94
94
  /**
95
- * A required slot needs pictures; an optional one left empty takes the
96
- * chosen example's, or, on a trend with no example (or when that example has
97
- * none for it), stays as in the original;
98
- * except in Full depth trends, where it uses the trend's default image for that role if one is set, otherwise the original's look.
95
+ * A required slot needs pictures. What an optional one left empty takes is
96
+ * stated per slot as {@link TrendDetailSlot.emptyFill}. In short, it takes its
97
+ * original look ({@link TrendDetailSlot.defaultImages}) when it has one,
98
+ * whatever its kind; without one, a person takes the chosen example's (none
99
+ * on a trend with no example, or when that example has none for it), and a
100
+ * place, product or pet none: a slot with no pictures stays as in the
101
+ * original. A Full depth trend never uses an example; on a trend that hides
102
+ * its original, the original look is the shown original's (see
103
+ * {@link TrendDetailSlot.defaultImages}) and no example is used.
99
104
  */
100
105
  required: boolean;
101
106
  hint?: string;
@@ -105,6 +110,26 @@ interface TrendDetailSlot {
105
110
  * never sends it.
106
111
  */
107
112
  hintImageUrl?: string;
113
+ /**
114
+ * An optional slot's original look: 1–3 pictures (https) of this role as it
115
+ * is in the original, exactly the ones a run sends for it when you leave it
116
+ * empty (`emptyFill` `"default"`); you may show them on the empty slot. On a
117
+ * trend that hides its original they are the shown original's
118
+ * ({@link TrendDetail.original}, the trend's first example) pictures for
119
+ * this slot. Absent on a required slot, and when there are none.
120
+ */
121
+ defaultImages?: string[];
122
+ /**
123
+ * An optional slot's: what a run takes for it when you leave it empty, as
124
+ * the trend's own rule decides (absent on a required slot):
125
+ * - `"default"`: its original look ({@link TrendDetailSlot.defaultImages}; on
126
+ * a trend that hides its original, the shown original's pictures);
127
+ * - `"example"`: the chosen example's pictures for this slot
128
+ * (`examples[n].slots[key]`); when that example has none for it, the run
129
+ * sends none and the role stays as in the original;
130
+ * - `"original"`: no pictures; the role stays as in the original.
131
+ */
132
+ emptyFill?: "default" | "example" | "original";
108
133
  /**
109
134
  * The chips you may set on this slot, in its kind's order; `[]` = none (show
110
135
  * no chips row). A chip of the kind that is not listed is fixed by the
@@ -151,14 +176,14 @@ interface TrendDetail extends TrendCard {
151
176
  * On a trend that hides its original, its first example (see {@link TrendOriginal}).
152
177
  */
153
178
  original?: TrendOriginal;
154
- /** The engine every run of this trend uses. Absent (an older server) = `"motion-prism"`. */
179
+ /** The engine every run of this trend uses. Absent (an older server) = `"nodaro-prism"`. */
155
180
  engine?: TrendEngine;
156
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
181
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
157
182
  engineName?: string;
158
183
  /**
159
- * The resolutions a run may ask for, the default first. Nodaro Motion Prism:
184
+ * The resolutions a run may ask for, the default first. Nodaro Prism:
160
185
  * `["480p", "720p", "1080p"]`, where 480p is plain unless the run asks for a
161
- * draft ({@link TrendRunRequest.draft}); Nodaro Motion Pulse: `["720p", "1080p"]`,
186
+ * draft ({@link TrendRunRequest.draft}); Nodaro Pulse: `["720p", "1080p"]`,
162
187
  * no draft. Offer exactly these.
163
188
  */
164
189
  resolutions: TrendResolution[];
@@ -177,15 +202,15 @@ interface TrendRunSlot extends TrendChips {
177
202
  /** The body of `estimate()` and `run()`. */
178
203
  interface TrendRunRequest {
179
204
  /**
180
- * Slot key → what you put in it. Every required slot needs pictures; an
181
- * optional slot left out takes the chosen example's, or, on a trend with no
182
- * example (or when that example has none for it), stays as in the original; except in Full depth trends, where it uses the trend's default image for that role if one is set, otherwise the original's look.
205
+ * Slot key → what you put in it. Every required slot needs pictures; what an
206
+ * optional slot left out takes is said on {@link TrendDetailSlot.required}.
183
207
  * 1–3 pictures per slot.
184
208
  */
185
209
  slots: Record<string, TrendRunSlot>;
186
210
  /**
187
211
  * 1-based example whose pictures fill the optional slots you leave empty
188
- * (never in a Full depth trend, which records `example: 0`), numbering the
212
+ * that {@link TrendDetailSlot.required} says it fills (never in a Full depth
213
+ * trend, which records `example: 0`), numbering the
189
214
  * examples as {@link TrendDetail.examples} lists them. Default 1. Leave it out on a trend with no examples: sending one there
190
215
  * answers 400 `example_out_of_range` (and `0` is a `validation_error`). On a
191
216
  * trend that hides its original ({@link TrendDetail.original} is its first
@@ -199,14 +224,14 @@ interface TrendRunRequest {
199
224
  preview?: boolean;
200
225
  /**
201
226
  * One of the trend's {@link TrendDetail.resolutions}; default its first
202
- * (`"480p"` on Nodaro Motion Prism, `"720p"` on Nodaro Motion Pulse). Another answers 400
227
+ * (`"480p"` on Nodaro Prism, `"720p"` on Nodaro Pulse). Another answers 400
203
228
  * `resolution_unsupported`.
204
229
  */
205
230
  resolution?: TrendResolution;
206
231
  /**
207
232
  * `true` makes a draft: a 480p run whose same take Full Quality can finish at
208
- * 1080p (Nodaro Motion Prism trends only). Default `false`: a plain run, at
209
- * 480p too. `true` on a Nodaro Motion Pulse trend answers 400
233
+ * 1080p (Nodaro Prism trends only). Default `false`: a plain run, at
234
+ * 480p too. `true` on a Nodaro Pulse trend answers 400
210
235
  * `draft_unsupported`.
211
236
  */
212
237
  draft?: boolean;
@@ -243,7 +268,7 @@ interface TrendEstimate {
243
268
  holdCredits: number;
244
269
  /** The engine the run was priced on: the trend's own. Absent from an older server. */
245
270
  engine?: TrendEngine;
246
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
271
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
247
272
  engineName?: string;
248
273
  /**
249
274
  * The parts of the quote, by name, for display only: some are alternatives
@@ -278,13 +303,15 @@ interface TrendRunDisplaySlot extends TrendChips {
278
303
  images: string[];
279
304
  /**
280
305
  * `true` when the slot was left empty and the example's pictures filled it.
281
- * `false` with no `images`: left empty on a trend with no example, or the
282
- * chosen example has no pictures for it, so it stayed as in the original.
306
+ * `false` with no `images`: left empty and nothing filled it, so it stayed
307
+ * as in the original.
283
308
  */
284
309
  fromExample: boolean;
285
310
  /**
286
- * `true` when the slot was left empty and the trend's own default pictures
287
- * filled it (`fromExample` is then `false`). Absent otherwise.
311
+ * `true` when the slot was left empty and its original look
312
+ * ({@link TrendDetailSlot.defaultImages}) filled it (`fromExample` is then
313
+ * `false`); on a trend that hides its original, the shown original's
314
+ * pictures. Absent otherwise.
288
315
  */
289
316
  fromDefault?: true;
290
317
  }
@@ -339,9 +366,9 @@ interface TrendRun {
339
366
  preview: boolean;
340
367
  resolution: string;
341
368
  draft: boolean;
342
- /** The engine the run was made on. Absent (an older server) = `"motion-prism"`. */
369
+ /** The engine the run was made on. Absent (an older server) = `"nodaro-prism"`. */
343
370
  engine?: TrendEngine;
344
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
371
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
345
372
  engineName?: string;
346
373
  /** The result, once completed. */
347
374
  videoUrl: string | null;
@@ -358,12 +385,12 @@ interface TrendRun {
358
385
  creditsReleased?: number | null;
359
386
  /**
360
387
  * A Full Quality version: the job id of the run it was made from (a draft,
361
- * or a Nodaro Motion Pulse 720p run from when Pulse had Full Quality). `null`
388
+ * or a Nodaro Pulse 720p run from when Pulse had Full Quality). `null`
362
389
  * for any other run.
363
390
  */
364
391
  fullQualityOf: string | null;
365
392
  /**
366
- * A draft's newest Full Quality try (or a Nodaro Motion Pulse 720p run's, made
393
+ * A draft's newest Full Quality try (or a Nodaro Pulse 720p run's, made
367
394
  * when Pulse had Full Quality), if one was started: a pointer only,
368
395
  * to know an upgrade exists and how it is going. Its video and charge are on
369
396
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
@@ -380,8 +407,8 @@ interface TrendRun {
380
407
  } | null;
381
408
  /**
382
409
  * Until when a completed run can be finished in Full Quality — a Nodaro
383
- * Motion Prism draft only (the same take at 1080p); `null` otherwise, a plain
384
- * run and every Nodaro Motion Pulse run included.
410
+ * Prism draft only (the same take at 1080p); `null` otherwise, a plain
411
+ * run and every Nodaro Pulse run included.
385
412
  */
386
413
  fullQualityUntil: string | null;
387
414
  }
@@ -1,5 +1,5 @@
1
1
  import { N as NodaroClientCore } from '../developer-apps-D59GfAnO.js';
2
- import { CastSwapEngine } from './cast-swap.js';
2
+ import { z as VideoRemakeEngine } from '../video-remake-BEBbUmlY.js';
3
3
  import '@nodaro/shared/apps';
4
4
  import '@nodaro/shared/organizations';
5
5
 
@@ -23,11 +23,11 @@ interface TrendChips {
23
23
  type TrendChipKey = keyof TrendChips;
24
24
  type TrendResolution = "480p" | "720p" | "1080p";
25
25
  /**
26
- * The engine a trend runs on, by its public id ({@link CastSwapEngine}):
27
- * `"motion-prism"` (Nodaro Motion Prism) or `"motion-pulse"` (Nodaro Motion Pulse).
26
+ * The engine a trend runs on, by its public id ({@link VideoRemakeEngine}):
27
+ * `"nodaro-prism"` (Nodaro Prism) or `"nodaro-pulse"` (Nodaro Pulse).
28
28
  * The trend chooses it, never the person running it.
29
29
  */
30
- type TrendEngine = CastSwapEngine;
30
+ type TrendEngine = VideoRemakeEngine;
31
31
  /**
32
32
  * One of a trend's videos as a list or page shows it: the card's
33
33
  * {@link TrendCard.cover}, {@link TrendCard.original} and
@@ -92,10 +92,15 @@ interface TrendDetailSlot {
92
92
  label: string;
93
93
  kind: TrendSlotKind;
94
94
  /**
95
- * A required slot needs pictures; an optional one left empty takes the
96
- * chosen example's, or, on a trend with no example (or when that example has
97
- * none for it), stays as in the original;
98
- * except in Full depth trends, where it uses the trend's default image for that role if one is set, otherwise the original's look.
95
+ * A required slot needs pictures. What an optional one left empty takes is
96
+ * stated per slot as {@link TrendDetailSlot.emptyFill}. In short, it takes its
97
+ * original look ({@link TrendDetailSlot.defaultImages}) when it has one,
98
+ * whatever its kind; without one, a person takes the chosen example's (none
99
+ * on a trend with no example, or when that example has none for it), and a
100
+ * place, product or pet none: a slot with no pictures stays as in the
101
+ * original. A Full depth trend never uses an example; on a trend that hides
102
+ * its original, the original look is the shown original's (see
103
+ * {@link TrendDetailSlot.defaultImages}) and no example is used.
99
104
  */
100
105
  required: boolean;
101
106
  hint?: string;
@@ -105,6 +110,26 @@ interface TrendDetailSlot {
105
110
  * never sends it.
106
111
  */
107
112
  hintImageUrl?: string;
113
+ /**
114
+ * An optional slot's original look: 1–3 pictures (https) of this role as it
115
+ * is in the original, exactly the ones a run sends for it when you leave it
116
+ * empty (`emptyFill` `"default"`); you may show them on the empty slot. On a
117
+ * trend that hides its original they are the shown original's
118
+ * ({@link TrendDetail.original}, the trend's first example) pictures for
119
+ * this slot. Absent on a required slot, and when there are none.
120
+ */
121
+ defaultImages?: string[];
122
+ /**
123
+ * An optional slot's: what a run takes for it when you leave it empty, as
124
+ * the trend's own rule decides (absent on a required slot):
125
+ * - `"default"`: its original look ({@link TrendDetailSlot.defaultImages}; on
126
+ * a trend that hides its original, the shown original's pictures);
127
+ * - `"example"`: the chosen example's pictures for this slot
128
+ * (`examples[n].slots[key]`); when that example has none for it, the run
129
+ * sends none and the role stays as in the original;
130
+ * - `"original"`: no pictures; the role stays as in the original.
131
+ */
132
+ emptyFill?: "default" | "example" | "original";
108
133
  /**
109
134
  * The chips you may set on this slot, in its kind's order; `[]` = none (show
110
135
  * no chips row). A chip of the kind that is not listed is fixed by the
@@ -151,14 +176,14 @@ interface TrendDetail extends TrendCard {
151
176
  * On a trend that hides its original, its first example (see {@link TrendOriginal}).
152
177
  */
153
178
  original?: TrendOriginal;
154
- /** The engine every run of this trend uses. Absent (an older server) = `"motion-prism"`. */
179
+ /** The engine every run of this trend uses. Absent (an older server) = `"nodaro-prism"`. */
155
180
  engine?: TrendEngine;
156
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
181
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
157
182
  engineName?: string;
158
183
  /**
159
- * The resolutions a run may ask for, the default first. Nodaro Motion Prism:
184
+ * The resolutions a run may ask for, the default first. Nodaro Prism:
160
185
  * `["480p", "720p", "1080p"]`, where 480p is plain unless the run asks for a
161
- * draft ({@link TrendRunRequest.draft}); Nodaro Motion Pulse: `["720p", "1080p"]`,
186
+ * draft ({@link TrendRunRequest.draft}); Nodaro Pulse: `["720p", "1080p"]`,
162
187
  * no draft. Offer exactly these.
163
188
  */
164
189
  resolutions: TrendResolution[];
@@ -177,15 +202,15 @@ interface TrendRunSlot extends TrendChips {
177
202
  /** The body of `estimate()` and `run()`. */
178
203
  interface TrendRunRequest {
179
204
  /**
180
- * Slot key → what you put in it. Every required slot needs pictures; an
181
- * optional slot left out takes the chosen example's, or, on a trend with no
182
- * example (or when that example has none for it), stays as in the original; except in Full depth trends, where it uses the trend's default image for that role if one is set, otherwise the original's look.
205
+ * Slot key → what you put in it. Every required slot needs pictures; what an
206
+ * optional slot left out takes is said on {@link TrendDetailSlot.required}.
183
207
  * 1–3 pictures per slot.
184
208
  */
185
209
  slots: Record<string, TrendRunSlot>;
186
210
  /**
187
211
  * 1-based example whose pictures fill the optional slots you leave empty
188
- * (never in a Full depth trend, which records `example: 0`), numbering the
212
+ * that {@link TrendDetailSlot.required} says it fills (never in a Full depth
213
+ * trend, which records `example: 0`), numbering the
189
214
  * examples as {@link TrendDetail.examples} lists them. Default 1. Leave it out on a trend with no examples: sending one there
190
215
  * answers 400 `example_out_of_range` (and `0` is a `validation_error`). On a
191
216
  * trend that hides its original ({@link TrendDetail.original} is its first
@@ -199,14 +224,14 @@ interface TrendRunRequest {
199
224
  preview?: boolean;
200
225
  /**
201
226
  * One of the trend's {@link TrendDetail.resolutions}; default its first
202
- * (`"480p"` on Nodaro Motion Prism, `"720p"` on Nodaro Motion Pulse). Another answers 400
227
+ * (`"480p"` on Nodaro Prism, `"720p"` on Nodaro Pulse). Another answers 400
203
228
  * `resolution_unsupported`.
204
229
  */
205
230
  resolution?: TrendResolution;
206
231
  /**
207
232
  * `true` makes a draft: a 480p run whose same take Full Quality can finish at
208
- * 1080p (Nodaro Motion Prism trends only). Default `false`: a plain run, at
209
- * 480p too. `true` on a Nodaro Motion Pulse trend answers 400
233
+ * 1080p (Nodaro Prism trends only). Default `false`: a plain run, at
234
+ * 480p too. `true` on a Nodaro Pulse trend answers 400
210
235
  * `draft_unsupported`.
211
236
  */
212
237
  draft?: boolean;
@@ -243,7 +268,7 @@ interface TrendEstimate {
243
268
  holdCredits: number;
244
269
  /** The engine the run was priced on: the trend's own. Absent from an older server. */
245
270
  engine?: TrendEngine;
246
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
271
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
247
272
  engineName?: string;
248
273
  /**
249
274
  * The parts of the quote, by name, for display only: some are alternatives
@@ -278,13 +303,15 @@ interface TrendRunDisplaySlot extends TrendChips {
278
303
  images: string[];
279
304
  /**
280
305
  * `true` when the slot was left empty and the example's pictures filled it.
281
- * `false` with no `images`: left empty on a trend with no example, or the
282
- * chosen example has no pictures for it, so it stayed as in the original.
306
+ * `false` with no `images`: left empty and nothing filled it, so it stayed
307
+ * as in the original.
283
308
  */
284
309
  fromExample: boolean;
285
310
  /**
286
- * `true` when the slot was left empty and the trend's own default pictures
287
- * filled it (`fromExample` is then `false`). Absent otherwise.
311
+ * `true` when the slot was left empty and its original look
312
+ * ({@link TrendDetailSlot.defaultImages}) filled it (`fromExample` is then
313
+ * `false`); on a trend that hides its original, the shown original's
314
+ * pictures. Absent otherwise.
288
315
  */
289
316
  fromDefault?: true;
290
317
  }
@@ -339,9 +366,9 @@ interface TrendRun {
339
366
  preview: boolean;
340
367
  resolution: string;
341
368
  draft: boolean;
342
- /** The engine the run was made on. Absent (an older server) = `"motion-prism"`. */
369
+ /** The engine the run was made on. Absent (an older server) = `"nodaro-prism"`. */
343
370
  engine?: TrendEngine;
344
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
371
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
345
372
  engineName?: string;
346
373
  /** The result, once completed. */
347
374
  videoUrl: string | null;
@@ -358,12 +385,12 @@ interface TrendRun {
358
385
  creditsReleased?: number | null;
359
386
  /**
360
387
  * A Full Quality version: the job id of the run it was made from (a draft,
361
- * or a Nodaro Motion Pulse 720p run from when Pulse had Full Quality). `null`
388
+ * or a Nodaro Pulse 720p run from when Pulse had Full Quality). `null`
362
389
  * for any other run.
363
390
  */
364
391
  fullQualityOf: string | null;
365
392
  /**
366
- * A draft's newest Full Quality try (or a Nodaro Motion Pulse 720p run's, made
393
+ * A draft's newest Full Quality try (or a Nodaro Pulse 720p run's, made
367
394
  * when Pulse had Full Quality), if one was started: a pointer only,
368
395
  * to know an upgrade exists and how it is going. Its video and charge are on
369
396
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
@@ -380,8 +407,8 @@ interface TrendRun {
380
407
  } | null;
381
408
  /**
382
409
  * Until when a completed run can be finished in Full Quality — a Nodaro
383
- * Motion Prism draft only (the same take at 1080p); `null` otherwise, a plain
384
- * run and every Nodaro Motion Pulse run included.
410
+ * Prism draft only (the same take at 1080p); `null` otherwise, a plain
411
+ * run and every Nodaro Pulse run included.
385
412
  */
386
413
  fullQualityUntil: string | null;
387
414
  }
@@ -1,4 +1,4 @@
1
1
  import '../chunk-YCVRQZT3.js';
2
- export { TrendsResource } from '../chunk-TKSQCF2X.js';
2
+ export { TrendsResource } from '../chunk-D45ATYCE.js';
3
3
  //# sourceMappingURL=trends.js.map
4
4
  //# sourceMappingURL=trends.js.map
@@ -1,13 +1,18 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-ZE5RISBZ.cjs');
4
- var chunkF6KAMECM_cjs = require('../chunk-F6KAMECM.cjs');
4
+ var chunk6YWXKDAY_cjs = require('../chunk-6YWXKDAY.cjs');
5
+ require('../chunk-E2NMFQNY.cjs');
5
6
 
6
7
 
7
8
 
9
+ Object.defineProperty(exports, "UPLOAD_MAX_BYTES", {
10
+ enumerable: true,
11
+ get: function () { return chunk6YWXKDAY_cjs.UPLOAD_MAX_BYTES; }
12
+ });
8
13
  Object.defineProperty(exports, "UploadsResource", {
9
14
  enumerable: true,
10
- get: function () { return chunkF6KAMECM_cjs.UploadsResource; }
15
+ get: function () { return chunk6YWXKDAY_cjs.UploadsResource; }
11
16
  });
12
17
  //# sourceMappingURL=uploads.cjs.map
13
18
  //# sourceMappingURL=uploads.cjs.map
@@ -2,6 +2,23 @@ import { N as NodaroClientCore } from '../developer-apps-D59GfAnO.cjs';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
5
+ /**
6
+ * The most `POST /v1/upload` ({@link UploadsResource.upload}) takes: 500 MB.
7
+ * {@link UploadsResource.uploadLarge} sends a file of this size or less through
8
+ * that same route, and only a bigger one through the large-upload lane.
9
+ */
10
+ declare const UPLOAD_MAX_BYTES: number;
11
+ /** Options of {@link UploadsResource.uploadLarge}. */
12
+ interface UploadLargeOptions {
13
+ /** The name to store the file under; defaults to the file's own name, else `upload`. */
14
+ readonly filename?: string;
15
+ /** Called as parts finish, with the bytes sent so far and the file's size. */
16
+ readonly onProgress?: (sentBytes: number, totalBytes: number) => void;
17
+ /** Cancels the upload; the server's copy of the parts is aborted. */
18
+ readonly signal?: AbortSignal;
19
+ /** Parts sent at once (default 3). */
20
+ readonly concurrency?: number;
21
+ }
5
22
  /**
6
23
  * Result of a successful `POST /v1/upload`. Mirrors the route's `data` envelope
7
24
  * (`backend/src/routes/upload.ts`), the source of truth — keep in sync if that
@@ -39,6 +56,48 @@ declare class UploadsResource {
39
56
  * errors on the usual statuses.
40
57
  */
41
58
  upload(file: File): Promise<UploadResult>;
59
+ private uploadMultipart;
60
+ /**
61
+ * Upload a file of any size, choosing the lane by size:
62
+ *
63
+ * - **{@link UPLOAD_MAX_BYTES} (500 MB) or less:** exactly {@link upload}
64
+ * (`POST /v1/upload`) — the path every file of that size takes today, with
65
+ * everything it does on the server (faststart, HEIC conversion, upload
66
+ * policies, thumbnails). The large-upload lane is never touched.
67
+ * - **Bigger (video or audio only):** the bytes go straight from here to the
68
+ * platform's object storage in parts (`POST /v1/uploads/large/start` → one
69
+ * `PUT` per part → `POST /v1/uploads/large/complete`), never through the
70
+ * API server. What limits such a file is length: one longer than 30
71
+ * minutes is refused once it has arrived, with `MediaTooLongError` (the
72
+ * stored copy is removed and nothing counts against storage).
73
+ *
74
+ * Returns the same result as {@link upload}. Parts are sent `concurrency` at
75
+ * a time (default 3); a part that fails is tried twice more before the
76
+ * upload fails. `onProgress(sentBytes, totalBytes)` is called as parts
77
+ * finish (once at the end on the small path). Aborting `signal`, or any
78
+ * failure, aborts the upload on the server (best-effort).
79
+ *
80
+ * A file over 500 MB on a deployment without the lane — one that checks every
81
+ * upload's bytes (409 `large_upload_unavailable`), or an older server (404) —
82
+ * throws `LargeUploadUnavailableError`: `POST /v1/upload` would refuse it
83
+ * anyway. Throws `StorageExceededError` (413) when the file does not fit in
84
+ * the account's storage, and the SDK's other typed errors on the usual
85
+ * statuses.
86
+ *
87
+ * In a browser, storage must allow cross-origin `PUT` from the page's origin
88
+ * for the large lane (the platform's own deployments do).
89
+ */
90
+ uploadLarge(file: Blob & {
91
+ readonly name?: string;
92
+ }, options?: UploadLargeOptions): Promise<UploadResult>;
93
+ /**
94
+ * PUT every part, `concurrency` at a time, each tried up to
95
+ * {@link PART_ATTEMPTS} times. Each part is EXACTLY `partSize` bytes (the
96
+ * last one the remainder): its URL has that length signed in, so storage
97
+ * refuses any other. The runtime sets Content-Length from the slice itself.
98
+ */
99
+ private sendParts;
100
+ private putPart;
42
101
  /**
43
102
  * Copy a picture from a web address into your storage
44
103
  * (`POST /v1/media/import-url`, body `{ url }`). The platform fetches it
@@ -104,4 +163,4 @@ interface ImportUrlResult {
104
163
  readonly height: number;
105
164
  }
106
165
 
107
- export { type ImportUrlResult, type UploadJsonResult, type UploadResult, UploadsResource };
166
+ export { type ImportUrlResult, UPLOAD_MAX_BYTES, type UploadJsonResult, type UploadLargeOptions, type UploadResult, UploadsResource };
@@ -2,6 +2,23 @@ import { N as NodaroClientCore } from '../developer-apps-D59GfAnO.js';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
5
+ /**
6
+ * The most `POST /v1/upload` ({@link UploadsResource.upload}) takes: 500 MB.
7
+ * {@link UploadsResource.uploadLarge} sends a file of this size or less through
8
+ * that same route, and only a bigger one through the large-upload lane.
9
+ */
10
+ declare const UPLOAD_MAX_BYTES: number;
11
+ /** Options of {@link UploadsResource.uploadLarge}. */
12
+ interface UploadLargeOptions {
13
+ /** The name to store the file under; defaults to the file's own name, else `upload`. */
14
+ readonly filename?: string;
15
+ /** Called as parts finish, with the bytes sent so far and the file's size. */
16
+ readonly onProgress?: (sentBytes: number, totalBytes: number) => void;
17
+ /** Cancels the upload; the server's copy of the parts is aborted. */
18
+ readonly signal?: AbortSignal;
19
+ /** Parts sent at once (default 3). */
20
+ readonly concurrency?: number;
21
+ }
5
22
  /**
6
23
  * Result of a successful `POST /v1/upload`. Mirrors the route's `data` envelope
7
24
  * (`backend/src/routes/upload.ts`), the source of truth — keep in sync if that
@@ -39,6 +56,48 @@ declare class UploadsResource {
39
56
  * errors on the usual statuses.
40
57
  */
41
58
  upload(file: File): Promise<UploadResult>;
59
+ private uploadMultipart;
60
+ /**
61
+ * Upload a file of any size, choosing the lane by size:
62
+ *
63
+ * - **{@link UPLOAD_MAX_BYTES} (500 MB) or less:** exactly {@link upload}
64
+ * (`POST /v1/upload`) — the path every file of that size takes today, with
65
+ * everything it does on the server (faststart, HEIC conversion, upload
66
+ * policies, thumbnails). The large-upload lane is never touched.
67
+ * - **Bigger (video or audio only):** the bytes go straight from here to the
68
+ * platform's object storage in parts (`POST /v1/uploads/large/start` → one
69
+ * `PUT` per part → `POST /v1/uploads/large/complete`), never through the
70
+ * API server. What limits such a file is length: one longer than 30
71
+ * minutes is refused once it has arrived, with `MediaTooLongError` (the
72
+ * stored copy is removed and nothing counts against storage).
73
+ *
74
+ * Returns the same result as {@link upload}. Parts are sent `concurrency` at
75
+ * a time (default 3); a part that fails is tried twice more before the
76
+ * upload fails. `onProgress(sentBytes, totalBytes)` is called as parts
77
+ * finish (once at the end on the small path). Aborting `signal`, or any
78
+ * failure, aborts the upload on the server (best-effort).
79
+ *
80
+ * A file over 500 MB on a deployment without the lane — one that checks every
81
+ * upload's bytes (409 `large_upload_unavailable`), or an older server (404) —
82
+ * throws `LargeUploadUnavailableError`: `POST /v1/upload` would refuse it
83
+ * anyway. Throws `StorageExceededError` (413) when the file does not fit in
84
+ * the account's storage, and the SDK's other typed errors on the usual
85
+ * statuses.
86
+ *
87
+ * In a browser, storage must allow cross-origin `PUT` from the page's origin
88
+ * for the large lane (the platform's own deployments do).
89
+ */
90
+ uploadLarge(file: Blob & {
91
+ readonly name?: string;
92
+ }, options?: UploadLargeOptions): Promise<UploadResult>;
93
+ /**
94
+ * PUT every part, `concurrency` at a time, each tried up to
95
+ * {@link PART_ATTEMPTS} times. Each part is EXACTLY `partSize` bytes (the
96
+ * last one the remainder): its URL has that length signed in, so storage
97
+ * refuses any other. The runtime sets Content-Length from the slice itself.
98
+ */
99
+ private sendParts;
100
+ private putPart;
42
101
  /**
43
102
  * Copy a picture from a web address into your storage
44
103
  * (`POST /v1/media/import-url`, body `{ url }`). The platform fetches it
@@ -104,4 +163,4 @@ interface ImportUrlResult {
104
163
  readonly height: number;
105
164
  }
106
165
 
107
- export { type ImportUrlResult, type UploadJsonResult, type UploadResult, UploadsResource };
166
+ export { type ImportUrlResult, UPLOAD_MAX_BYTES, type UploadJsonResult, type UploadLargeOptions, type UploadResult, UploadsResource };
@@ -1,4 +1,5 @@
1
1
  import '../chunk-CGNVHN4V.js';
2
- export { UploadsResource } from '../chunk-YEOK5A5H.js';
2
+ export { UPLOAD_MAX_BYTES, UploadsResource } from '../chunk-K53JD2ZC.js';
3
+ import '../chunk-4Q3XZE5O.js';
3
4
  //# sourceMappingURL=uploads.js.map
4
5
  //# sourceMappingURL=uploads.js.map
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ require('../chunk-7NTMMIPC.cjs');
4
+ var chunkMGVK4PJF_cjs = require('../chunk-MGVK4PJF.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "VideoRemakeResource", {
9
+ enumerable: true,
10
+ get: function () { return chunkMGVK4PJF_cjs.VideoRemakeResource; }
11
+ });
12
+ //# sourceMappingURL=video-remake.cjs.map
13
+ //# sourceMappingURL=video-remake.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"video-remake.cjs"}
@@ -0,0 +1,4 @@
1
+ export { V as VideoRemakeAdvanced, z as VideoRemakeEngine, A as VideoRemakeEngineLegacyId, B as VideoRemakeEstimate, D as VideoRemakeFaceMasking, E as VideoRemakeFaceMaskingZone, F as VideoRemakeFullQualityEstimate, G as VideoRemakeFullQualityKind, H as VideoRemakeFullQualityParams, I as VideoRemakeFullQualityRefusalCode, J as VideoRemakeFullQualityResult, K as VideoRemakeLocationRole, L as VideoRemakeMotionLength, M as VideoRemakeParams, N as VideoRemakePersonRole, O as VideoRemakePetRole, P as VideoRemakeProductRole, Q as VideoRemakeReference, R as VideoRemakeResource, S as VideoRemakeRole, T as VideoRemakeRolePreviewSettings, U as VideoRemakeRunOptions, W as VideoRemakeStyle, X as VideoRemakeStyleChoice, Y as VideoRemakeStyleChoiceOption, Z as VideoRemakeTraitSource } from '../video-remake-LrhEaona.cjs';
2
+ import '../developer-apps-D59GfAnO.cjs';
3
+ import '@nodaro/shared/apps';
4
+ import '@nodaro/shared/organizations';
@@ -0,0 +1,4 @@
1
+ export { V as VideoRemakeAdvanced, z as VideoRemakeEngine, A as VideoRemakeEngineLegacyId, B as VideoRemakeEstimate, D as VideoRemakeFaceMasking, E as VideoRemakeFaceMaskingZone, F as VideoRemakeFullQualityEstimate, G as VideoRemakeFullQualityKind, H as VideoRemakeFullQualityParams, I as VideoRemakeFullQualityRefusalCode, J as VideoRemakeFullQualityResult, K as VideoRemakeLocationRole, L as VideoRemakeMotionLength, M as VideoRemakeParams, N as VideoRemakePersonRole, O as VideoRemakePetRole, P as VideoRemakeProductRole, Q as VideoRemakeReference, R as VideoRemakeResource, S as VideoRemakeRole, T as VideoRemakeRolePreviewSettings, U as VideoRemakeRunOptions, W as VideoRemakeStyle, X as VideoRemakeStyleChoice, Y as VideoRemakeStyleChoiceOption, Z as VideoRemakeTraitSource } from '../video-remake-BEBbUmlY.js';
2
+ import '../developer-apps-D59GfAnO.js';
3
+ import '@nodaro/shared/apps';
4
+ import '@nodaro/shared/organizations';
@@ -0,0 +1,4 @@
1
+ import '../chunk-3WQ4UW3C.js';
2
+ export { VideoRemakeResource } from '../chunk-WSOLDULF.js';
3
+ //# sourceMappingURL=video-remake.js.map
4
+ //# sourceMappingURL=video-remake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"video-remake.js"}