@nodaro/sdk 2.74.0 → 2.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/chunk-3WQ4UW3C.js +3 -0
  2. package/dist/chunk-3WQ4UW3C.js.map +1 -0
  3. package/dist/{chunk-IJAJTVEW.js → chunk-4Q3XZE5O.js} +17 -3
  4. package/dist/chunk-4Q3XZE5O.js.map +1 -0
  5. package/dist/{chunk-INRVOUKE.js → chunk-66IQZPPW.js} +47 -3
  6. package/dist/chunk-66IQZPPW.js.map +1 -0
  7. package/dist/{chunk-MQQA2E6J.cjs → chunk-6NIKAVI3.cjs} +2 -2
  8. package/dist/chunk-6NIKAVI3.cjs.map +1 -0
  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-7NTMMIPC.cjs.map +1 -0
  15. package/dist/{chunk-CLBLAWH3.cjs → chunk-7PMOXQEO.cjs} +9 -9
  16. package/dist/{chunk-CLBLAWH3.cjs.map → chunk-7PMOXQEO.cjs.map} +1 -1
  17. package/dist/{chunk-BETFYVOR.cjs → chunk-7XKVBFKM.cjs} +5 -5
  18. package/dist/{chunk-BETFYVOR.cjs.map → chunk-7XKVBFKM.cjs.map} +1 -1
  19. package/dist/{chunk-HNUCPUIX.js → chunk-AOHDYZSZ.js} +3 -3
  20. package/dist/{chunk-HNUCPUIX.js.map → chunk-AOHDYZSZ.js.map} +1 -1
  21. package/dist/{chunk-TKSQCF2X.js → chunk-CSNYBGHP.js} +2 -2
  22. package/dist/chunk-CSNYBGHP.js.map +1 -0
  23. package/dist/{chunk-4AD3CBDK.cjs → chunk-E2NMFQNY.cjs} +18 -2
  24. package/dist/chunk-E2NMFQNY.cjs.map +1 -0
  25. package/dist/{chunk-NJ5ZFUWJ.js → chunk-FOC4VPGK.js} +4 -4
  26. package/dist/{chunk-NJ5ZFUWJ.js.map → chunk-FOC4VPGK.js.map} +1 -1
  27. package/dist/{chunk-KKQKJD7K.js → chunk-GWL4O3J2.js} +3 -3
  28. package/dist/chunk-GWL4O3J2.js.map +1 -0
  29. package/dist/{chunk-BNJUMQQ3.cjs → chunk-IKZIXM5C.cjs} +24 -8
  30. package/dist/{chunk-BNJUMQQ3.cjs.map → chunk-IKZIXM5C.cjs.map} +1 -1
  31. package/dist/{chunk-GU3YOOCK.cjs → chunk-IO7NEEZZ.cjs} +20 -18
  32. package/dist/chunk-IO7NEEZZ.cjs.map +1 -0
  33. package/dist/chunk-K53JD2ZC.js +187 -0
  34. package/dist/chunk-K53JD2ZC.js.map +1 -0
  35. package/dist/{chunk-6RH2SICN.cjs → chunk-KNBZFWVO.cjs} +22 -22
  36. package/dist/chunk-KNBZFWVO.cjs.map +1 -0
  37. package/dist/{chunk-UDRP64FX.js → chunk-NEGNTQLF.js} +24 -8
  38. package/dist/{chunk-UDRP64FX.js.map → chunk-NEGNTQLF.js.map} +1 -1
  39. package/dist/{chunk-VGY3WBNY.js → chunk-OO4AKYUN.js} +3 -3
  40. package/dist/{chunk-VGY3WBNY.js.map → chunk-OO4AKYUN.js.map} +1 -1
  41. package/dist/{chunk-CCXY4ZJM.js → chunk-SA7VTT7C.js} +3 -3
  42. package/dist/{chunk-CCXY4ZJM.js.map → chunk-SA7VTT7C.js.map} +1 -1
  43. package/dist/{chunk-SRL555ST.cjs → chunk-SGVJUVFD.cjs} +5 -5
  44. package/dist/{chunk-SRL555ST.cjs.map → chunk-SGVJUVFD.cjs.map} +1 -1
  45. package/dist/{chunk-VVVJW4DD.cjs → chunk-SGVTZ2J5.cjs} +31 -28
  46. package/dist/chunk-SGVTZ2J5.cjs.map +1 -0
  47. package/dist/{chunk-YUY56PT7.js → chunk-TZFZDEWI.js} +20 -19
  48. package/dist/chunk-TZFZDEWI.js.map +1 -0
  49. package/dist/{chunk-IKJNFENZ.js → chunk-U2F6IHHY.js} +20 -17
  50. package/dist/chunk-U2F6IHHY.js.map +1 -0
  51. package/dist/{chunk-C5GFDCK2.cjs → chunk-UKITRPXF.cjs} +2 -2
  52. package/dist/{chunk-C5GFDCK2.cjs.map → chunk-UKITRPXF.cjs.map} +1 -1
  53. package/dist/{chunk-VTHHSO2K.cjs → chunk-UPWAODYT.cjs} +4 -4
  54. package/dist/{chunk-VTHHSO2K.cjs.map → chunk-UPWAODYT.cjs.map} +1 -1
  55. package/dist/{chunk-YDRNPIUC.cjs → chunk-VMV5JH4U.cjs} +47 -3
  56. package/dist/chunk-VMV5JH4U.cjs.map +1 -0
  57. package/dist/{chunk-R5DTFY73.js → chunk-WY5QIOO4.js} +2 -2
  58. package/dist/{chunk-R5DTFY73.js.map → chunk-WY5QIOO4.js.map} +1 -1
  59. package/dist/{chunk-EJJIA765.cjs → chunk-XWPYN2VX.cjs} +5 -5
  60. package/dist/{chunk-EJJIA765.cjs.map → chunk-XWPYN2VX.cjs.map} +1 -1
  61. package/dist/{chunk-SZ67PDKE.js → chunk-YQ2Q4OM3.js} +3 -3
  62. package/dist/{chunk-SZ67PDKE.js.map → chunk-YQ2Q4OM3.js.map} +1 -1
  63. package/dist/{chunk-TQLOD7OL.cjs → chunk-ZJM5YBXY.cjs} +4 -4
  64. package/dist/{chunk-TQLOD7OL.cjs.map → chunk-ZJM5YBXY.cjs.map} +1 -1
  65. package/dist/entries/billing.cjs +2 -2
  66. package/dist/entries/billing.d.cts +93 -5
  67. package/dist/entries/billing.d.ts +93 -5
  68. package/dist/entries/billing.js +1 -1
  69. package/dist/entries/cast-swap.cjs +2 -2
  70. package/dist/entries/cast-swap.d.cts +2 -623
  71. package/dist/entries/cast-swap.d.ts +2 -623
  72. package/dist/entries/cast-swap.js +1 -1
  73. package/dist/entries/characters.d.cts +1 -1
  74. package/dist/entries/characters.d.ts +1 -1
  75. package/dist/entries/client.cjs +20 -20
  76. package/dist/entries/client.d.cts +7 -5
  77. package/dist/entries/client.d.ts +7 -5
  78. package/dist/entries/client.js +15 -15
  79. package/dist/entries/copilot.cjs +4 -4
  80. package/dist/entries/copilot.js +3 -3
  81. package/dist/entries/core.cjs +6 -6
  82. package/dist/entries/core.js +2 -2
  83. package/dist/entries/creatures.d.cts +1 -1
  84. package/dist/entries/creatures.d.ts +1 -1
  85. package/dist/entries/credits.cjs +2 -2
  86. package/dist/entries/credits.d.cts +49 -9
  87. package/dist/entries/credits.d.ts +49 -9
  88. package/dist/entries/credits.js +1 -1
  89. package/dist/entries/edit.cjs +7 -7
  90. package/dist/entries/edit.js +2 -2
  91. package/dist/entries/errors.cjs +36 -28
  92. package/dist/entries/errors.d.cts +24 -1
  93. package/dist/entries/errors.d.ts +24 -1
  94. package/dist/entries/errors.js +1 -1
  95. package/dist/entries/jobs.cjs +2 -2
  96. package/dist/entries/jobs.d.cts +4 -4
  97. package/dist/entries/jobs.d.ts +4 -4
  98. package/dist/entries/jobs.js +1 -1
  99. package/dist/entries/locations.d.cts +1 -1
  100. package/dist/entries/locations.d.ts +1 -1
  101. package/dist/entries/media.cjs +4 -4
  102. package/dist/entries/media.d.cts +1 -1
  103. package/dist/entries/media.d.ts +1 -1
  104. package/dist/entries/media.js +3 -3
  105. package/dist/entries/nodes.cjs +3 -3
  106. package/dist/entries/nodes.d.cts +1 -1
  107. package/dist/entries/nodes.d.ts +1 -1
  108. package/dist/entries/nodes.js +2 -2
  109. package/dist/entries/objects.d.cts +1 -1
  110. package/dist/entries/objects.d.ts +1 -1
  111. package/dist/entries/scene3d.d.cts +2 -2
  112. package/dist/entries/scene3d.d.ts +2 -2
  113. package/dist/entries/studio.cjs +5 -5
  114. package/dist/entries/studio.js +2 -2
  115. package/dist/entries/trends.cjs +2 -2
  116. package/dist/entries/trends.d.cts +26 -18
  117. package/dist/entries/trends.d.ts +26 -18
  118. package/dist/entries/trends.js +1 -1
  119. package/dist/entries/uploads.cjs +7 -2
  120. package/dist/entries/uploads.d.cts +60 -1
  121. package/dist/entries/uploads.d.ts +60 -1
  122. package/dist/entries/uploads.js +2 -1
  123. package/dist/entries/video-remake.cjs +13 -0
  124. package/dist/entries/video-remake.cjs.map +1 -0
  125. package/dist/entries/video-remake.d.cts +4 -0
  126. package/dist/entries/video-remake.d.ts +4 -0
  127. package/dist/entries/video-remake.js +4 -0
  128. package/dist/entries/video-remake.js.map +1 -0
  129. package/dist/index.cjs +82 -65
  130. package/dist/index.d.cts +6 -6
  131. package/dist/index.d.ts +6 -6
  132. package/dist/index.js +16 -15
  133. package/dist/{nodes-DEGPmZ9a.d.cts → nodes-BHtjh6gl.d.cts} +8 -5
  134. package/dist/{nodes-CHXTwiWW.d.ts → nodes-BaRqRB2Z.d.ts} +8 -5
  135. package/dist/video-remake-C-KR7YtT.d.ts +676 -0
  136. package/dist/video-remake-DTuCyhd9.d.cts +676 -0
  137. package/package.json +8 -3
  138. package/dist/chunk-4AD3CBDK.cjs.map +0 -1
  139. package/dist/chunk-6RH2SICN.cjs.map +0 -1
  140. package/dist/chunk-F6KAMECM.cjs +0 -72
  141. package/dist/chunk-F6KAMECM.cjs.map +0 -1
  142. package/dist/chunk-GU3YOOCK.cjs.map +0 -1
  143. package/dist/chunk-IJAJTVEW.js.map +0 -1
  144. package/dist/chunk-IKJNFENZ.js.map +0 -1
  145. package/dist/chunk-INRVOUKE.js.map +0 -1
  146. package/dist/chunk-KKQKJD7K.js.map +0 -1
  147. package/dist/chunk-MQQA2E6J.cjs.map +0 -1
  148. package/dist/chunk-TKSQCF2X.js.map +0 -1
  149. package/dist/chunk-VVVJW4DD.cjs.map +0 -1
  150. package/dist/chunk-YDRNPIUC.cjs.map +0 -1
  151. package/dist/chunk-YEOK5A5H.js +0 -70
  152. package/dist/chunk-YEOK5A5H.js.map +0 -1
  153. 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 { V as VideoRemakeEngine } from '../video-remake-DTuCyhd9.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
@@ -105,6 +105,14 @@ interface TrendDetailSlot {
105
105
  * never sends it.
106
106
  */
107
107
  hintImageUrl?: string;
108
+ /**
109
+ * An optional slot's original look: 1–3 pictures (https) of this role as it
110
+ * is in the original, when the trend has them; you may show them on the
111
+ * empty slot. Absent on a required slot, and on a trend that hides its
112
+ * original. Which pictures a run sends for an empty optional slot is said
113
+ * on {@link TrendDetailSlot.required}.
114
+ */
115
+ defaultImages?: string[];
108
116
  /**
109
117
  * The chips you may set on this slot, in its kind's order; `[]` = none (show
110
118
  * no chips row). A chip of the kind that is not listed is fixed by the
@@ -151,14 +159,14 @@ interface TrendDetail extends TrendCard {
151
159
  * On a trend that hides its original, its first example (see {@link TrendOriginal}).
152
160
  */
153
161
  original?: TrendOriginal;
154
- /** The engine every run of this trend uses. Absent (an older server) = `"motion-prism"`. */
162
+ /** The engine every run of this trend uses. Absent (an older server) = `"nodaro-prism"`. */
155
163
  engine?: TrendEngine;
156
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
164
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
157
165
  engineName?: string;
158
166
  /**
159
- * The resolutions a run may ask for, the default first. Nodaro Motion Prism:
167
+ * The resolutions a run may ask for, the default first. Nodaro Prism:
160
168
  * `["480p", "720p", "1080p"]`, where 480p is plain unless the run asks for a
161
- * draft ({@link TrendRunRequest.draft}); Nodaro Motion Pulse: `["720p", "1080p"]`,
169
+ * draft ({@link TrendRunRequest.draft}); Nodaro Pulse: `["720p", "1080p"]`,
162
170
  * no draft. Offer exactly these.
163
171
  */
164
172
  resolutions: TrendResolution[];
@@ -199,14 +207,14 @@ interface TrendRunRequest {
199
207
  preview?: boolean;
200
208
  /**
201
209
  * 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
210
+ * (`"480p"` on Nodaro Prism, `"720p"` on Nodaro Pulse). Another answers 400
203
211
  * `resolution_unsupported`.
204
212
  */
205
213
  resolution?: TrendResolution;
206
214
  /**
207
215
  * `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
216
+ * 1080p (Nodaro Prism trends only). Default `false`: a plain run, at
217
+ * 480p too. `true` on a Nodaro Pulse trend answers 400
210
218
  * `draft_unsupported`.
211
219
  */
212
220
  draft?: boolean;
@@ -243,7 +251,7 @@ interface TrendEstimate {
243
251
  holdCredits: number;
244
252
  /** The engine the run was priced on: the trend's own. Absent from an older server. */
245
253
  engine?: TrendEngine;
246
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
254
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
247
255
  engineName?: string;
248
256
  /**
249
257
  * The parts of the quote, by name, for display only: some are alternatives
@@ -339,9 +347,9 @@ interface TrendRun {
339
347
  preview: boolean;
340
348
  resolution: string;
341
349
  draft: boolean;
342
- /** The engine the run was made on. Absent (an older server) = `"motion-prism"`. */
350
+ /** The engine the run was made on. Absent (an older server) = `"nodaro-prism"`. */
343
351
  engine?: TrendEngine;
344
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
352
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
345
353
  engineName?: string;
346
354
  /** The result, once completed. */
347
355
  videoUrl: string | null;
@@ -358,12 +366,12 @@ interface TrendRun {
358
366
  creditsReleased?: number | null;
359
367
  /**
360
368
  * 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`
369
+ * or a Nodaro Pulse 720p run from when Pulse had Full Quality). `null`
362
370
  * for any other run.
363
371
  */
364
372
  fullQualityOf: string | null;
365
373
  /**
366
- * A draft's newest Full Quality try (or a Nodaro Motion Pulse 720p run's, made
374
+ * A draft's newest Full Quality try (or a Nodaro Pulse 720p run's, made
367
375
  * when Pulse had Full Quality), if one was started: a pointer only,
368
376
  * to know an upgrade exists and how it is going. Its video and charge are on
369
377
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
@@ -380,8 +388,8 @@ interface TrendRun {
380
388
  } | null;
381
389
  /**
382
390
  * 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.
391
+ * Prism draft only (the same take at 1080p); `null` otherwise, a plain
392
+ * run and every Nodaro Pulse run included.
385
393
  */
386
394
  fullQualityUntil: string | null;
387
395
  }
@@ -1,5 +1,5 @@
1
1
  import { N as NodaroClientCore } from '../developer-apps-D59GfAnO.js';
2
- import { CastSwapEngine } from './cast-swap.js';
2
+ import { V as VideoRemakeEngine } from '../video-remake-C-KR7YtT.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
@@ -105,6 +105,14 @@ interface TrendDetailSlot {
105
105
  * never sends it.
106
106
  */
107
107
  hintImageUrl?: string;
108
+ /**
109
+ * An optional slot's original look: 1–3 pictures (https) of this role as it
110
+ * is in the original, when the trend has them; you may show them on the
111
+ * empty slot. Absent on a required slot, and on a trend that hides its
112
+ * original. Which pictures a run sends for an empty optional slot is said
113
+ * on {@link TrendDetailSlot.required}.
114
+ */
115
+ defaultImages?: string[];
108
116
  /**
109
117
  * The chips you may set on this slot, in its kind's order; `[]` = none (show
110
118
  * no chips row). A chip of the kind that is not listed is fixed by the
@@ -151,14 +159,14 @@ interface TrendDetail extends TrendCard {
151
159
  * On a trend that hides its original, its first example (see {@link TrendOriginal}).
152
160
  */
153
161
  original?: TrendOriginal;
154
- /** The engine every run of this trend uses. Absent (an older server) = `"motion-prism"`. */
162
+ /** The engine every run of this trend uses. Absent (an older server) = `"nodaro-prism"`. */
155
163
  engine?: TrendEngine;
156
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
164
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
157
165
  engineName?: string;
158
166
  /**
159
- * The resolutions a run may ask for, the default first. Nodaro Motion Prism:
167
+ * The resolutions a run may ask for, the default first. Nodaro Prism:
160
168
  * `["480p", "720p", "1080p"]`, where 480p is plain unless the run asks for a
161
- * draft ({@link TrendRunRequest.draft}); Nodaro Motion Pulse: `["720p", "1080p"]`,
169
+ * draft ({@link TrendRunRequest.draft}); Nodaro Pulse: `["720p", "1080p"]`,
162
170
  * no draft. Offer exactly these.
163
171
  */
164
172
  resolutions: TrendResolution[];
@@ -199,14 +207,14 @@ interface TrendRunRequest {
199
207
  preview?: boolean;
200
208
  /**
201
209
  * 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
210
+ * (`"480p"` on Nodaro Prism, `"720p"` on Nodaro Pulse). Another answers 400
203
211
  * `resolution_unsupported`.
204
212
  */
205
213
  resolution?: TrendResolution;
206
214
  /**
207
215
  * `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
216
+ * 1080p (Nodaro Prism trends only). Default `false`: a plain run, at
217
+ * 480p too. `true` on a Nodaro Pulse trend answers 400
210
218
  * `draft_unsupported`.
211
219
  */
212
220
  draft?: boolean;
@@ -243,7 +251,7 @@ interface TrendEstimate {
243
251
  holdCredits: number;
244
252
  /** The engine the run was priced on: the trend's own. Absent from an older server. */
245
253
  engine?: TrendEngine;
246
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
254
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
247
255
  engineName?: string;
248
256
  /**
249
257
  * The parts of the quote, by name, for display only: some are alternatives
@@ -339,9 +347,9 @@ interface TrendRun {
339
347
  preview: boolean;
340
348
  resolution: string;
341
349
  draft: boolean;
342
- /** The engine the run was made on. Absent (an older server) = `"motion-prism"`. */
350
+ /** The engine the run was made on. Absent (an older server) = `"nodaro-prism"`. */
343
351
  engine?: TrendEngine;
344
- /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
352
+ /** Its name to show: "Nodaro Prism" or "Nodaro Pulse". Absent from an older server. */
345
353
  engineName?: string;
346
354
  /** The result, once completed. */
347
355
  videoUrl: string | null;
@@ -358,12 +366,12 @@ interface TrendRun {
358
366
  creditsReleased?: number | null;
359
367
  /**
360
368
  * 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`
369
+ * or a Nodaro Pulse 720p run from when Pulse had Full Quality). `null`
362
370
  * for any other run.
363
371
  */
364
372
  fullQualityOf: string | null;
365
373
  /**
366
- * A draft's newest Full Quality try (or a Nodaro Motion Pulse 720p run's, made
374
+ * A draft's newest Full Quality try (or a Nodaro Pulse 720p run's, made
367
375
  * when Pulse had Full Quality), if one was started: a pointer only,
368
376
  * to know an upgrade exists and how it is going. Its video and charge are on
369
377
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
@@ -380,8 +388,8 @@ interface TrendRun {
380
388
  } | null;
381
389
  /**
382
390
  * 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.
391
+ * Prism draft only (the same take at 1080p); `null` otherwise, a plain
392
+ * run and every Nodaro Pulse run included.
385
393
  */
386
394
  fullQualityUntil: string | null;
387
395
  }
@@ -1,4 +1,4 @@
1
1
  import '../chunk-YCVRQZT3.js';
2
- export { TrendsResource } from '../chunk-TKSQCF2X.js';
2
+ export { TrendsResource } from '../chunk-CSNYBGHP.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 chunkIO7NEEZZ_cjs = require('../chunk-IO7NEEZZ.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "VideoRemakeResource", {
9
+ enumerable: true,
10
+ get: function () { return chunkIO7NEEZZ_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 VideoRemakeEngine, z as VideoRemakeEngineLegacyId, A as VideoRemakeEstimate, B as VideoRemakeFaceMasking, D as VideoRemakeFaceMaskingZone, E as VideoRemakeFullQualityEstimate, F as VideoRemakeFullQualityKind, G as VideoRemakeFullQualityParams, H as VideoRemakeFullQualityRefusalCode, I as VideoRemakeFullQualityResult, J as VideoRemakeLocationRole, K as VideoRemakeMotionLength, L as VideoRemakeParams, M as VideoRemakePersonRole, N as VideoRemakePetRole, O as VideoRemakeProductRole, P as VideoRemakeReference, Q as VideoRemakeResource, R as VideoRemakeRole, S as VideoRemakeRolePreviewSettings, T as VideoRemakeRunOptions, U as VideoRemakeStyle, W as VideoRemakeStyleChoice, X as VideoRemakeStyleChoiceOption, Y as VideoRemakeTraitSource } from '../video-remake-DTuCyhd9.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 VideoRemakeEngine, z as VideoRemakeEngineLegacyId, A as VideoRemakeEstimate, B as VideoRemakeFaceMasking, D as VideoRemakeFaceMaskingZone, E as VideoRemakeFullQualityEstimate, F as VideoRemakeFullQualityKind, G as VideoRemakeFullQualityParams, H as VideoRemakeFullQualityRefusalCode, I as VideoRemakeFullQualityResult, J as VideoRemakeLocationRole, K as VideoRemakeMotionLength, L as VideoRemakeParams, M as VideoRemakePersonRole, N as VideoRemakePetRole, O as VideoRemakeProductRole, P as VideoRemakeReference, Q as VideoRemakeResource, R as VideoRemakeRole, S as VideoRemakeRolePreviewSettings, T as VideoRemakeRunOptions, U as VideoRemakeStyle, W as VideoRemakeStyleChoice, X as VideoRemakeStyleChoiceOption, Y as VideoRemakeTraitSource } from '../video-remake-C-KR7YtT.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-TZFZDEWI.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"}