@nodaro/sdk 2.54.0 → 2.55.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 (193) hide show
  1. package/dist/{chunk-BQAW4RX2.js → chunk-24JE54FQ.js} +24 -6
  2. package/dist/chunk-24JE54FQ.js.map +1 -0
  3. package/dist/{chunk-P6AM42UB.cjs → chunk-2KX5ZE6M.cjs} +2 -2
  4. package/dist/chunk-2KX5ZE6M.cjs.map +1 -0
  5. package/dist/{chunk-W5RMFTPA.cjs → chunk-57GANTLV.cjs} +2 -2
  6. package/dist/chunk-57GANTLV.cjs.map +1 -0
  7. package/dist/{chunk-HK5FSTKG.cjs → chunk-A3XA6UNM.cjs} +2 -2
  8. package/dist/chunk-A3XA6UNM.cjs.map +1 -0
  9. package/dist/{chunk-PBFODIFT.js → chunk-CBDUHYTR.js} +2 -2
  10. package/dist/chunk-CBDUHYTR.js.map +1 -0
  11. package/dist/{chunk-AN36M6HO.js → chunk-CV2ZZAUO.js} +4 -4
  12. package/dist/chunk-CV2ZZAUO.js.map +1 -0
  13. package/dist/{chunk-QGVOAPUI.js → chunk-GIQDM2MH.js} +2 -2
  14. package/dist/chunk-GIQDM2MH.js.map +1 -0
  15. package/dist/{chunk-HAVIVOLO.js → chunk-HFYNZ4SO.js} +2 -2
  16. package/dist/chunk-HFYNZ4SO.js.map +1 -0
  17. package/dist/{chunk-THLTFB6I.js → chunk-HJLSOT5C.js} +2 -2
  18. package/dist/chunk-HJLSOT5C.js.map +1 -0
  19. package/dist/{chunk-JOVJAKBT.cjs → chunk-HRV3VX22.cjs} +4 -4
  20. package/dist/chunk-HRV3VX22.cjs.map +1 -0
  21. package/dist/{chunk-HWSYNUSC.js → chunk-HUYI5G3D.js} +2 -2
  22. package/dist/chunk-HUYI5G3D.js.map +1 -0
  23. package/dist/{chunk-XZRBRXGJ.cjs → chunk-I6Q4UDS2.cjs} +18 -18
  24. package/dist/{chunk-XZRBRXGJ.cjs.map → chunk-I6Q4UDS2.cjs.map} +1 -1
  25. package/dist/{chunk-EZXFDCII.js → chunk-LUHAB7UJ.js} +10 -10
  26. package/dist/{chunk-EZXFDCII.js.map → chunk-LUHAB7UJ.js.map} +1 -1
  27. package/dist/{chunk-JVDUGVLX.cjs → chunk-MIXRL6I2.cjs} +2 -2
  28. package/dist/chunk-MIXRL6I2.cjs.map +1 -0
  29. package/dist/{chunk-DAONQZPI.cjs → chunk-PDX742CC.cjs} +2 -2
  30. package/dist/chunk-PDX742CC.cjs.map +1 -0
  31. package/dist/{chunk-22P4X3N5.cjs → chunk-XALPYUZI.cjs} +24 -6
  32. package/dist/chunk-XALPYUZI.cjs.map +1 -0
  33. package/dist/{chunk-I3MEBVLP.js → chunk-XZPSJG2X.js} +2 -2
  34. package/dist/chunk-XZPSJG2X.js.map +1 -0
  35. package/dist/{chunk-O74MSMFH.cjs → chunk-XZQ6Z4T6.cjs} +2 -2
  36. package/dist/chunk-XZQ6Z4T6.cjs.map +1 -0
  37. package/dist/{developer-apps-zSQXWmEG.d.ts → developer-apps-CMUzKpE9.d.cts} +2 -0
  38. package/dist/{developer-apps-zSQXWmEG.d.cts → developer-apps-CMUzKpE9.d.ts} +2 -0
  39. package/dist/entries/apps.d.cts +1 -1
  40. package/dist/entries/apps.d.ts +1 -1
  41. package/dist/entries/audio.d.cts +1 -1
  42. package/dist/entries/audio.d.ts +1 -1
  43. package/dist/entries/billing.d.cts +1 -1
  44. package/dist/entries/billing.d.ts +1 -1
  45. package/dist/entries/cast-swap.d.cts +1 -1
  46. package/dist/entries/cast-swap.d.ts +1 -1
  47. package/dist/entries/catalogs.d.cts +1 -1
  48. package/dist/entries/catalogs.d.ts +1 -1
  49. package/dist/entries/characters.cjs +10 -10
  50. package/dist/entries/characters.d.cts +11 -3
  51. package/dist/entries/characters.d.ts +11 -3
  52. package/dist/entries/characters.js +1 -1
  53. package/dist/entries/client.cjs +14 -14
  54. package/dist/entries/client.d.cts +5 -5
  55. package/dist/entries/client.d.ts +5 -5
  56. package/dist/entries/client.js +9 -9
  57. package/dist/entries/collections.d.cts +1 -1
  58. package/dist/entries/collections.d.ts +1 -1
  59. package/dist/entries/community.d.cts +1 -1
  60. package/dist/entries/community.d.ts +1 -1
  61. package/dist/entries/competitors.d.cts +1 -1
  62. package/dist/entries/competitors.d.ts +1 -1
  63. package/dist/entries/copilot.d.cts +1 -1
  64. package/dist/entries/copilot.d.ts +1 -1
  65. package/dist/entries/core.cjs +5 -5
  66. package/dist/entries/core.d.cts +1 -1
  67. package/dist/entries/core.d.ts +1 -1
  68. package/dist/entries/core.js +1 -1
  69. package/dist/entries/creatures.cjs +6 -6
  70. package/dist/entries/creatures.d.cts +11 -3
  71. package/dist/entries/creatures.d.ts +11 -3
  72. package/dist/entries/creatures.js +1 -1
  73. package/dist/entries/credits.d.cts +1 -1
  74. package/dist/entries/credits.d.ts +1 -1
  75. package/dist/entries/developer-apps.d.cts +1 -1
  76. package/dist/entries/developer-apps.d.ts +1 -1
  77. package/dist/entries/edit.d.cts +1 -1
  78. package/dist/entries/edit.d.ts +1 -1
  79. package/dist/entries/errors.d.cts +2 -2
  80. package/dist/entries/errors.d.ts +2 -2
  81. package/dist/entries/executions.d.cts +1 -1
  82. package/dist/entries/executions.d.ts +1 -1
  83. package/dist/entries/gallery.d.cts +1 -1
  84. package/dist/entries/gallery.d.ts +1 -1
  85. package/dist/entries/jobs.cjs +2 -2
  86. package/dist/entries/jobs.d.cts +7 -4
  87. package/dist/entries/jobs.d.ts +7 -4
  88. package/dist/entries/jobs.js +1 -1
  89. package/dist/entries/keepers.d.cts +1 -1
  90. package/dist/entries/keepers.d.ts +1 -1
  91. package/dist/entries/library.d.cts +1 -1
  92. package/dist/entries/library.d.ts +1 -1
  93. package/dist/entries/llm.d.cts +1 -1
  94. package/dist/entries/llm.d.ts +1 -1
  95. package/dist/entries/locations.cjs +5 -5
  96. package/dist/entries/locations.d.cts +11 -3
  97. package/dist/entries/locations.d.ts +11 -3
  98. package/dist/entries/locations.js +1 -1
  99. package/dist/entries/media.cjs +2 -2
  100. package/dist/entries/media.d.cts +34 -5
  101. package/dist/entries/media.d.ts +34 -5
  102. package/dist/entries/media.js +1 -1
  103. package/dist/entries/models.d.cts +1 -1
  104. package/dist/entries/models.d.ts +1 -1
  105. package/dist/entries/moodboards.d.cts +1 -1
  106. package/dist/entries/moodboards.d.ts +1 -1
  107. package/dist/entries/node-presets.d.cts +1 -1
  108. package/dist/entries/node-presets.d.ts +1 -1
  109. package/dist/entries/nodes.d.cts +3 -3
  110. package/dist/entries/nodes.d.ts +3 -3
  111. package/dist/entries/oauth.d.cts +1 -1
  112. package/dist/entries/oauth.d.ts +1 -1
  113. package/dist/entries/objects.cjs +6 -6
  114. package/dist/entries/objects.d.cts +11 -3
  115. package/dist/entries/objects.d.ts +11 -3
  116. package/dist/entries/objects.js +1 -1
  117. package/dist/entries/organizations.d.cts +1 -1
  118. package/dist/entries/organizations.d.ts +1 -1
  119. package/dist/entries/palettes.d.cts +1 -1
  120. package/dist/entries/palettes.d.ts +1 -1
  121. package/dist/entries/picker-catalogs.d.cts +1 -1
  122. package/dist/entries/picker-catalogs.d.ts +1 -1
  123. package/dist/entries/pipelines.d.cts +1 -1
  124. package/dist/entries/pipelines.d.ts +1 -1
  125. package/dist/entries/projects.d.cts +1 -1
  126. package/dist/entries/projects.d.ts +1 -1
  127. package/dist/entries/prompt-helper.d.cts +1 -1
  128. package/dist/entries/prompt-helper.d.ts +1 -1
  129. package/dist/entries/recast.d.cts +1 -1
  130. package/dist/entries/recast.d.ts +1 -1
  131. package/dist/entries/reduce.d.cts +1 -1
  132. package/dist/entries/reduce.d.ts +1 -1
  133. package/dist/entries/saved-posts.d.cts +1 -1
  134. package/dist/entries/saved-posts.d.ts +1 -1
  135. package/dist/entries/scene3d.d.cts +4 -4
  136. package/dist/entries/scene3d.d.ts +4 -4
  137. package/dist/entries/sessions.d.cts +1 -1
  138. package/dist/entries/sessions.d.ts +1 -1
  139. package/dist/entries/shots.d.cts +1 -1
  140. package/dist/entries/shots.d.ts +1 -1
  141. package/dist/entries/studio.d.cts +3 -3
  142. package/dist/entries/studio.d.ts +3 -3
  143. package/dist/entries/templates.d.cts +1 -1
  144. package/dist/entries/templates.d.ts +1 -1
  145. package/dist/entries/trash.d.cts +1 -1
  146. package/dist/entries/trash.d.ts +1 -1
  147. package/dist/entries/trends.cjs +2 -2
  148. package/dist/entries/trends.d.cts +37 -17
  149. package/dist/entries/trends.d.ts +37 -17
  150. package/dist/entries/trends.js +1 -1
  151. package/dist/entries/tutorials.d.cts +1 -1
  152. package/dist/entries/tutorials.d.ts +1 -1
  153. package/dist/entries/uploads.d.cts +1 -1
  154. package/dist/entries/uploads.d.ts +1 -1
  155. package/dist/entries/user-settings.d.cts +1 -1
  156. package/dist/entries/user-settings.d.ts +1 -1
  157. package/dist/entries/video-pro.d.cts +1 -1
  158. package/dist/entries/video-pro.d.ts +1 -1
  159. package/dist/entries/voices.d.cts +1 -1
  160. package/dist/entries/voices.d.ts +1 -1
  161. package/dist/entries/webhooks.d.cts +3 -3
  162. package/dist/entries/webhooks.d.ts +3 -3
  163. package/dist/entries/workflows.d.cts +1 -1
  164. package/dist/entries/workflows.d.ts +1 -1
  165. package/dist/entries/workspaces.d.cts +1 -1
  166. package/dist/entries/workspaces.d.ts +1 -1
  167. package/dist/index.cjs +41 -41
  168. package/dist/index.d.cts +5 -5
  169. package/dist/index.d.ts +5 -5
  170. package/dist/index.js +9 -9
  171. package/dist/{nodes-DuXF6XVv.d.ts → nodes-B74WaY9r.d.ts} +1 -1
  172. package/dist/{nodes-bY51Z1Os.d.cts → nodes-Ceetyyh0.d.cts} +1 -1
  173. package/dist/{studio-productions-r2-VZsKj.d.cts → studio-productions-CMiS827q.d.cts} +1 -1
  174. package/dist/{studio-productions-DtTE8mdl.d.ts → studio-productions-DkI51Z9M.d.ts} +1 -1
  175. package/dist/{webhooks-BJawEIz8.d.ts → webhooks-C2DZTK4n.d.ts} +1 -1
  176. package/dist/{webhooks-Dn_DtNTD.d.cts → webhooks-tg3VN39V.d.cts} +1 -1
  177. package/package.json +3 -3
  178. package/dist/chunk-22P4X3N5.cjs.map +0 -1
  179. package/dist/chunk-AN36M6HO.js.map +0 -1
  180. package/dist/chunk-BQAW4RX2.js.map +0 -1
  181. package/dist/chunk-DAONQZPI.cjs.map +0 -1
  182. package/dist/chunk-HAVIVOLO.js.map +0 -1
  183. package/dist/chunk-HK5FSTKG.cjs.map +0 -1
  184. package/dist/chunk-HWSYNUSC.js.map +0 -1
  185. package/dist/chunk-I3MEBVLP.js.map +0 -1
  186. package/dist/chunk-JOVJAKBT.cjs.map +0 -1
  187. package/dist/chunk-JVDUGVLX.cjs.map +0 -1
  188. package/dist/chunk-O74MSMFH.cjs.map +0 -1
  189. package/dist/chunk-P6AM42UB.cjs.map +0 -1
  190. package/dist/chunk-PBFODIFT.js.map +0 -1
  191. package/dist/chunk-QGVOAPUI.js.map +0 -1
  192. package/dist/chunk-THLTFB6I.js.map +0 -1
  193. package/dist/chunk-W5RMFTPA.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.cjs';
2
2
  import { CastSwapEngine } from './cast-swap.cjs';
3
3
  import '@nodaro/shared/apps';
4
4
  import '@nodaro/shared/organizations';
@@ -50,7 +50,8 @@ interface TrendCard {
50
50
  /**
51
51
  * The original's display copy, the same address as {@link TrendDetail.original}
52
52
  * (without its length and preview start). Absent on a version without a
53
- * display copy (and from an older server).
53
+ * display copy (and from an older server). On a trend that hides its
54
+ * original, its first example instead (then the same as {@link cover}).
54
55
  */
55
56
  original?: {
56
57
  videoUrl: string;
@@ -62,7 +63,8 @@ interface TrendCard {
62
63
  * Every example's video, in the page's order, so a list can show each clip
63
64
  * without reading the trend's page. Empty on a trend with only its original;
64
65
  * absent from an older server. The pictures each slot used are on the page
65
- * ({@link TrendDetail.examples}).
66
+ * ({@link TrendDetail.examples}). On a trend that hides its original, from
67
+ * its second example (the first is {@link original}).
66
68
  */
67
69
  examples?: Array<{
68
70
  videoUrl: string;
@@ -84,7 +86,8 @@ interface TrendDetailSlot {
84
86
  kind: TrendSlotKind;
85
87
  /**
86
88
  * A required slot needs pictures; an optional one left empty takes the
87
- * chosen example's, or, on a trend with no example, stays as in the original;
89
+ * chosen example's, or, on a trend with no example (or when that example has
90
+ * none for it), stays as in the original;
88
91
  * 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.
89
92
  */
90
93
  required: boolean;
@@ -110,20 +113,25 @@ interface TrendExample {
110
113
  posterUrl?: string;
111
114
  width: number;
112
115
  height: number;
113
- /** Slot key → the pictures this example used for it. */
116
+ /**
117
+ * Slot key → the pictures this example used for it. An optional slot the
118
+ * example kept as in the original has no key; a run that leaves that slot
119
+ * empty with this example keeps it as in the original too.
120
+ */
114
121
  slots: Record<string, string[]>;
115
122
  }
116
123
  /**
117
124
  * The clip a trend recasts, as you may show it: a browser-safe copy (H.264
118
- * MP4) of the clip every run starts from. Its fields parallel
119
- * {@link TrendExample}'s.
125
+ * MP4) of the clip every run starts from. On a trend that hides its original,
126
+ * its first example instead (the original clip is then never sent). Its fields
127
+ * parallel {@link TrendExample}'s.
120
128
  */
121
129
  interface TrendOriginal {
122
130
  videoUrl: string;
123
131
  posterUrl?: string;
124
132
  width: number;
125
133
  height: number;
126
- /** The copy's length, in seconds. */
134
+ /** The copy's length (on a trend that hides its original, the first example's), in seconds. */
127
135
  durationSec: number;
128
136
  /**
129
137
  * Where the 4-second preview starts in the clip, in seconds (`0` included),
@@ -141,6 +149,7 @@ interface TrendDetail extends TrendCard {
141
149
  /**
142
150
  * The original clip every run starts from, to show beside the examples.
143
151
  * Absent only on a version without a display copy (and from an older server).
152
+ * On a trend that hides its original, its first example (see {@link TrendOriginal}).
144
153
  */
145
154
  original?: TrendOriginal;
146
155
  /** The engine every run of this trend uses. Absent (an older server) = `"motion-prism"`. */
@@ -154,7 +163,11 @@ interface TrendDetail extends TrendCard {
154
163
  */
155
164
  resolutions: TrendResolution[];
156
165
  slots: TrendDetailSlot[];
157
- /** Finished runs to show beside the original; may be empty (a trend with only its original). */
166
+ /**
167
+ * Finished runs to show beside the original; may be empty (a trend with only
168
+ * its original). On a trend that hides its original, from its second example
169
+ * (the first is {@link original}).
170
+ */
158
171
  examples: TrendExample[];
159
172
  }
160
173
  /** What you put in one slot of a run: 1–3 pictures, and the chips the slot offers ({@link TrendDetailSlot.chips}). */
@@ -166,14 +179,18 @@ interface TrendRunRequest {
166
179
  /**
167
180
  * Slot key → what you put in it. Every required slot needs pictures; an
168
181
  * optional slot left out takes the chosen example's, or, on a trend with no
169
- * example, 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.
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.
170
183
  * 1–3 pictures per slot.
171
184
  */
172
185
  slots: Record<string, TrendRunSlot>;
173
186
  /**
174
187
  * 1-based example whose pictures fill the optional slots you leave empty
175
- * (never in a Full depth trend, which records `example: 0`). Default 1. Leave it out on a trend with no examples: sending one there
176
- * answers 400 `example_out_of_range` (and `0` is a `validation_error`).
188
+ * (never in a Full depth trend, which records `example: 0`), numbering the
189
+ * examples as {@link TrendDetail.examples} lists them. Default 1. Leave it out on a trend with no examples: sending one there
190
+ * answers 400 `example_out_of_range` (and `0` is a `validation_error`). On a
191
+ * trend that hides its original ({@link TrendDetail.original} is its first
192
+ * example), `1` is still the first entry of `examples`, and leaving it out
193
+ * fills the slots from the example shown as the original.
177
194
  */
178
195
  example?: number;
179
196
  /** Your own words, at most 1,000 characters. Mention a slot as `{slot:<key>}`. */
@@ -255,8 +272,8 @@ interface TrendRunDisplaySlot extends TrendChips {
255
272
  images: string[];
256
273
  /**
257
274
  * `true` when the slot was left empty and the example's pictures filled it.
258
- * `false` with no `images`: left empty on a trend with no example, so it
259
- * stayed as in the original.
275
+ * `false` with no `images`: left empty on a trend with no example, or the
276
+ * chosen example has no pictures for it, so it stayed as in the original.
260
277
  */
261
278
  fromExample: boolean;
262
279
  /**
@@ -298,10 +315,13 @@ interface TrendRun {
298
315
  name: string;
299
316
  };
300
317
  /**
301
- * The 1-based example used for empty optional slots; `0` = none was used (the
302
- * trend had no example, or is a Full depth trend): never show it as "Example 0".
318
+ * The 1-based example used for empty optional slots, numbered as the trend's
319
+ * page listed its examples for the version the run ran on ({@link trend}'s
320
+ * `version`); `0` = none was used (the trend had no example, or is a Full
321
+ * depth trend): never show it as "Example 0". Absent when the run used the
322
+ * example a trend that hides its original shows as its original.
303
323
  */
304
- example: number;
324
+ example?: number;
305
325
  slots: TrendRunDisplaySlot[];
306
326
  details?: string;
307
327
  preview: boolean;
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.js';
2
2
  import { CastSwapEngine } from './cast-swap.js';
3
3
  import '@nodaro/shared/apps';
4
4
  import '@nodaro/shared/organizations';
@@ -50,7 +50,8 @@ interface TrendCard {
50
50
  /**
51
51
  * The original's display copy, the same address as {@link TrendDetail.original}
52
52
  * (without its length and preview start). Absent on a version without a
53
- * display copy (and from an older server).
53
+ * display copy (and from an older server). On a trend that hides its
54
+ * original, its first example instead (then the same as {@link cover}).
54
55
  */
55
56
  original?: {
56
57
  videoUrl: string;
@@ -62,7 +63,8 @@ interface TrendCard {
62
63
  * Every example's video, in the page's order, so a list can show each clip
63
64
  * without reading the trend's page. Empty on a trend with only its original;
64
65
  * absent from an older server. The pictures each slot used are on the page
65
- * ({@link TrendDetail.examples}).
66
+ * ({@link TrendDetail.examples}). On a trend that hides its original, from
67
+ * its second example (the first is {@link original}).
66
68
  */
67
69
  examples?: Array<{
68
70
  videoUrl: string;
@@ -84,7 +86,8 @@ interface TrendDetailSlot {
84
86
  kind: TrendSlotKind;
85
87
  /**
86
88
  * A required slot needs pictures; an optional one left empty takes the
87
- * chosen example's, or, on a trend with no example, stays as in the original;
89
+ * chosen example's, or, on a trend with no example (or when that example has
90
+ * none for it), stays as in the original;
88
91
  * 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.
89
92
  */
90
93
  required: boolean;
@@ -110,20 +113,25 @@ interface TrendExample {
110
113
  posterUrl?: string;
111
114
  width: number;
112
115
  height: number;
113
- /** Slot key → the pictures this example used for it. */
116
+ /**
117
+ * Slot key → the pictures this example used for it. An optional slot the
118
+ * example kept as in the original has no key; a run that leaves that slot
119
+ * empty with this example keeps it as in the original too.
120
+ */
114
121
  slots: Record<string, string[]>;
115
122
  }
116
123
  /**
117
124
  * The clip a trend recasts, as you may show it: a browser-safe copy (H.264
118
- * MP4) of the clip every run starts from. Its fields parallel
119
- * {@link TrendExample}'s.
125
+ * MP4) of the clip every run starts from. On a trend that hides its original,
126
+ * its first example instead (the original clip is then never sent). Its fields
127
+ * parallel {@link TrendExample}'s.
120
128
  */
121
129
  interface TrendOriginal {
122
130
  videoUrl: string;
123
131
  posterUrl?: string;
124
132
  width: number;
125
133
  height: number;
126
- /** The copy's length, in seconds. */
134
+ /** The copy's length (on a trend that hides its original, the first example's), in seconds. */
127
135
  durationSec: number;
128
136
  /**
129
137
  * Where the 4-second preview starts in the clip, in seconds (`0` included),
@@ -141,6 +149,7 @@ interface TrendDetail extends TrendCard {
141
149
  /**
142
150
  * The original clip every run starts from, to show beside the examples.
143
151
  * Absent only on a version without a display copy (and from an older server).
152
+ * On a trend that hides its original, its first example (see {@link TrendOriginal}).
144
153
  */
145
154
  original?: TrendOriginal;
146
155
  /** The engine every run of this trend uses. Absent (an older server) = `"motion-prism"`. */
@@ -154,7 +163,11 @@ interface TrendDetail extends TrendCard {
154
163
  */
155
164
  resolutions: TrendResolution[];
156
165
  slots: TrendDetailSlot[];
157
- /** Finished runs to show beside the original; may be empty (a trend with only its original). */
166
+ /**
167
+ * Finished runs to show beside the original; may be empty (a trend with only
168
+ * its original). On a trend that hides its original, from its second example
169
+ * (the first is {@link original}).
170
+ */
158
171
  examples: TrendExample[];
159
172
  }
160
173
  /** What you put in one slot of a run: 1–3 pictures, and the chips the slot offers ({@link TrendDetailSlot.chips}). */
@@ -166,14 +179,18 @@ interface TrendRunRequest {
166
179
  /**
167
180
  * Slot key → what you put in it. Every required slot needs pictures; an
168
181
  * optional slot left out takes the chosen example's, or, on a trend with no
169
- * example, 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.
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.
170
183
  * 1–3 pictures per slot.
171
184
  */
172
185
  slots: Record<string, TrendRunSlot>;
173
186
  /**
174
187
  * 1-based example whose pictures fill the optional slots you leave empty
175
- * (never in a Full depth trend, which records `example: 0`). Default 1. Leave it out on a trend with no examples: sending one there
176
- * answers 400 `example_out_of_range` (and `0` is a `validation_error`).
188
+ * (never in a Full depth trend, which records `example: 0`), numbering the
189
+ * examples as {@link TrendDetail.examples} lists them. Default 1. Leave it out on a trend with no examples: sending one there
190
+ * answers 400 `example_out_of_range` (and `0` is a `validation_error`). On a
191
+ * trend that hides its original ({@link TrendDetail.original} is its first
192
+ * example), `1` is still the first entry of `examples`, and leaving it out
193
+ * fills the slots from the example shown as the original.
177
194
  */
178
195
  example?: number;
179
196
  /** Your own words, at most 1,000 characters. Mention a slot as `{slot:<key>}`. */
@@ -255,8 +272,8 @@ interface TrendRunDisplaySlot extends TrendChips {
255
272
  images: string[];
256
273
  /**
257
274
  * `true` when the slot was left empty and the example's pictures filled it.
258
- * `false` with no `images`: left empty on a trend with no example, so it
259
- * stayed as in the original.
275
+ * `false` with no `images`: left empty on a trend with no example, or the
276
+ * chosen example has no pictures for it, so it stayed as in the original.
260
277
  */
261
278
  fromExample: boolean;
262
279
  /**
@@ -298,10 +315,13 @@ interface TrendRun {
298
315
  name: string;
299
316
  };
300
317
  /**
301
- * The 1-based example used for empty optional slots; `0` = none was used (the
302
- * trend had no example, or is a Full depth trend): never show it as "Example 0".
318
+ * The 1-based example used for empty optional slots, numbered as the trend's
319
+ * page listed its examples for the version the run ran on ({@link trend}'s
320
+ * `version`); `0` = none was used (the trend had no example, or is a Full
321
+ * depth trend): never show it as "Example 0". Absent when the run used the
322
+ * example a trend that hides its original shows as its original.
303
323
  */
304
- example: number;
324
+ example?: number;
305
325
  slots: TrendRunDisplaySlot[];
306
326
  details?: string;
307
327
  preview: boolean;
@@ -1,4 +1,4 @@
1
1
  import '../chunk-YCVRQZT3.js';
2
- export { TrendsResource } from '../chunk-HAVIVOLO.js';
2
+ export { TrendsResource } from '../chunk-HFYNZ4SO.js';
3
3
  //# sourceMappingURL=trends.js.map
4
4
  //# sourceMappingURL=trends.js.map
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.cjs';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.js';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.cjs';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.js';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.cjs';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.js';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.cjs';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
@@ -1,4 +1,4 @@
1
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
1
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.js';
2
2
  import '@nodaro/shared/apps';
3
3
  import '@nodaro/shared/organizations';
4
4
 
@@ -3,7 +3,7 @@ export { SharedVoice, Voice, VoiceClone, VoiceLibraryParams, VoiceLibraryRespons
3
3
  import { AudioFxPreset } from '@nodaro/shared/media';
4
4
  export { AudioFxPreset } from '@nodaro/shared/media';
5
5
  import { DialogueProvider } from '@nodaro/shared/models';
6
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
6
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.cjs';
7
7
  import '@nodaro/shared/apps';
8
8
  import '@nodaro/shared/organizations';
9
9
 
@@ -3,7 +3,7 @@ export { SharedVoice, Voice, VoiceClone, VoiceLibraryParams, VoiceLibraryRespons
3
3
  import { AudioFxPreset } from '@nodaro/shared/media';
4
4
  export { AudioFxPreset } from '@nodaro/shared/media';
5
5
  import { DialogueProvider } from '@nodaro/shared/models';
6
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
6
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.js';
7
7
  import '@nodaro/shared/apps';
8
8
  import '@nodaro/shared/organizations';
9
9
 
@@ -1,6 +1,6 @@
1
- import { f as WebhookEvent } from '../webhooks-Dn_DtNTD.cjs';
2
- export { C as CreateWebhookEndpointInput, a as CreatedWebhookEndpoint, J as JobWebhookEvent, L as ListWebhookDeliveriesParams, P as PingWebhookEvent, R as RotateWebhookSecretInput, b as RotatedWebhookSecret, U as UpdateWebhookEndpointInput, W as WebhookDelivery, c as WebhookDeliveryPage, d as WebhookDeliveryStatus, e as WebhookEndpoint, g as WebhookEventType, h as WebhookJobEvent, i as WebhooksResource } from '../webhooks-Dn_DtNTD.cjs';
3
- import '../developer-apps-zSQXWmEG.cjs';
1
+ import { f as WebhookEvent } from '../webhooks-tg3VN39V.cjs';
2
+ export { C as CreateWebhookEndpointInput, a as CreatedWebhookEndpoint, J as JobWebhookEvent, L as ListWebhookDeliveriesParams, P as PingWebhookEvent, R as RotateWebhookSecretInput, b as RotatedWebhookSecret, U as UpdateWebhookEndpointInput, W as WebhookDelivery, c as WebhookDeliveryPage, d as WebhookDeliveryStatus, e as WebhookEndpoint, g as WebhookEventType, h as WebhookJobEvent, i as WebhooksResource } from '../webhooks-tg3VN39V.cjs';
3
+ import '../developer-apps-CMUzKpE9.cjs';
4
4
  import '@nodaro/shared/apps';
5
5
  import '@nodaro/shared/organizations';
6
6
  import './jobs.cjs';
@@ -1,6 +1,6 @@
1
- import { f as WebhookEvent } from '../webhooks-BJawEIz8.js';
2
- export { C as CreateWebhookEndpointInput, a as CreatedWebhookEndpoint, J as JobWebhookEvent, L as ListWebhookDeliveriesParams, P as PingWebhookEvent, R as RotateWebhookSecretInput, b as RotatedWebhookSecret, U as UpdateWebhookEndpointInput, W as WebhookDelivery, c as WebhookDeliveryPage, d as WebhookDeliveryStatus, e as WebhookEndpoint, g as WebhookEventType, h as WebhookJobEvent, i as WebhooksResource } from '../webhooks-BJawEIz8.js';
3
- import '../developer-apps-zSQXWmEG.js';
1
+ import { f as WebhookEvent } from '../webhooks-C2DZTK4n.js';
2
+ export { C as CreateWebhookEndpointInput, a as CreatedWebhookEndpoint, J as JobWebhookEvent, L as ListWebhookDeliveriesParams, P as PingWebhookEvent, R as RotateWebhookSecretInput, b as RotatedWebhookSecret, U as UpdateWebhookEndpointInput, W as WebhookDelivery, c as WebhookDeliveryPage, d as WebhookDeliveryStatus, e as WebhookEndpoint, g as WebhookEventType, h as WebhookJobEvent, i as WebhooksResource } from '../webhooks-C2DZTK4n.js';
3
+ import '../developer-apps-CMUzKpE9.js';
4
4
  import '@nodaro/shared/apps';
5
5
  import '@nodaro/shared/organizations';
6
6
  import './jobs.js';
@@ -2,7 +2,7 @@ import { GenericNode, GenericEdge } from '@nodaro/shared/types';
2
2
  export { GenericEdge, GenericNode } from '@nodaro/shared/types';
3
3
  import { WorkflowExport, WorkflowImportReport } from '@nodaro/shared/workflow';
4
4
  export { WorkflowExport, WorkflowExportCharacter, WorkflowExportLocation, WorkflowExportObject } from '@nodaro/shared/workflow';
5
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
5
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.cjs';
6
6
  import { CollaboratorRole, WorkflowVisibility } from '@nodaro/shared/organizations';
7
7
  import '@nodaro/shared/apps';
8
8
 
@@ -2,7 +2,7 @@ import { GenericNode, GenericEdge } from '@nodaro/shared/types';
2
2
  export { GenericEdge, GenericNode } from '@nodaro/shared/types';
3
3
  import { WorkflowExport, WorkflowImportReport } from '@nodaro/shared/workflow';
4
4
  export { WorkflowExport, WorkflowExportCharacter, WorkflowExportLocation, WorkflowExportObject } from '@nodaro/shared/workflow';
5
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
5
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.js';
6
6
  import { CollaboratorRole, WorkflowVisibility } from '@nodaro/shared/organizations';
7
7
  import '@nodaro/shared/apps';
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { WorkspaceSettings, WorkspaceSummary, WorkspaceView, OrgPage, WorkspaceMemberView, WorkspaceRole, MemberStatus, JoinCodeView, UsageQuery, UsageReport, UsageLogEntry } from '@nodaro/shared/organizations';
2
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
2
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.cjs';
3
3
  import '@nodaro/shared/apps';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { WorkspaceSettings, WorkspaceSummary, WorkspaceView, OrgPage, WorkspaceMemberView, WorkspaceRole, MemberStatus, JoinCodeView, UsageQuery, UsageReport, UsageLogEntry } from '@nodaro/shared/organizations';
2
- import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
2
+ import { N as NodaroClientCore } from '../developer-apps-CMUzKpE9.js';
3
3
  import '@nodaro/shared/apps';
4
4
 
5
5
  /**