@nodaro/sdk 2.47.0 → 2.49.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 (64) hide show
  1. package/dist/{chunk-I7AHLDXV.js → chunk-2JAKOBD3.js} +8 -8
  2. package/dist/{chunk-I7AHLDXV.js.map → chunk-2JAKOBD3.js.map} +1 -1
  3. package/dist/{chunk-KBHDUHKM.js → chunk-2SQ7V6EX.js} +2 -2
  4. package/dist/chunk-2SQ7V6EX.js.map +1 -0
  5. package/dist/{chunk-FCYN4N3M.js → chunk-5MZYOJCJ.js} +3 -3
  6. package/dist/{chunk-FCYN4N3M.js.map → chunk-5MZYOJCJ.js.map} +1 -1
  7. package/dist/{chunk-JTAW54UM.js → chunk-AEUPH7EE.js} +2 -2
  8. package/dist/{chunk-34PU2DAT.cjs.map → chunk-AEUPH7EE.js.map} +1 -1
  9. package/dist/{chunk-DIF7A5OH.cjs → chunk-E5MJK3W5.cjs} +2 -2
  10. package/dist/chunk-E5MJK3W5.cjs.map +1 -0
  11. package/dist/{chunk-XKDVEQVD.cjs → chunk-LTZKNAXM.cjs} +2 -2
  12. package/dist/chunk-LTZKNAXM.cjs.map +1 -0
  13. package/dist/{chunk-MYTMNPCP.cjs → chunk-NOBQQTAG.cjs} +3 -3
  14. package/dist/{chunk-MYTMNPCP.cjs.map → chunk-NOBQQTAG.cjs.map} +1 -1
  15. package/dist/{chunk-OWG3XAHQ.js → chunk-OCRUDBPG.js} +10 -6
  16. package/dist/chunk-OCRUDBPG.js.map +1 -0
  17. package/dist/{chunk-7LTVS75S.cjs → chunk-P6AM42UB.cjs} +2 -2
  18. package/dist/chunk-P6AM42UB.cjs.map +1 -0
  19. package/dist/{chunk-NP6KDFIJ.cjs → chunk-PPP6VZ3I.cjs} +14 -14
  20. package/dist/{chunk-NP6KDFIJ.cjs.map → chunk-PPP6VZ3I.cjs.map} +1 -1
  21. package/dist/{chunk-34PU2DAT.cjs → chunk-Q45PC4YD.cjs} +2 -2
  22. package/dist/chunk-Q45PC4YD.cjs.map +1 -0
  23. package/dist/{chunk-PQHZUWSL.js → chunk-THLTFB6I.js} +2 -2
  24. package/dist/chunk-THLTFB6I.js.map +1 -0
  25. package/dist/{chunk-GDDV5U32.cjs → chunk-TY2S25W5.cjs} +10 -6
  26. package/dist/chunk-TY2S25W5.cjs.map +1 -0
  27. package/dist/{chunk-XILR6TFO.js → chunk-YXVMQEJX.js} +2 -2
  28. package/dist/chunk-YXVMQEJX.js.map +1 -0
  29. package/dist/entries/cast-swap.cjs +2 -2
  30. package/dist/entries/cast-swap.d.cts +34 -31
  31. package/dist/entries/cast-swap.d.ts +34 -31
  32. package/dist/entries/cast-swap.js +1 -1
  33. package/dist/entries/client.cjs +12 -12
  34. package/dist/entries/client.js +7 -7
  35. package/dist/entries/core.cjs +5 -5
  36. package/dist/entries/core.js +1 -1
  37. package/dist/entries/jobs.cjs +2 -2
  38. package/dist/entries/jobs.d.cts +18 -7
  39. package/dist/entries/jobs.d.ts +18 -7
  40. package/dist/entries/jobs.js +1 -1
  41. package/dist/entries/node-presets.cjs +2 -2
  42. package/dist/entries/node-presets.d.cts +6 -0
  43. package/dist/entries/node-presets.d.ts +6 -0
  44. package/dist/entries/node-presets.js +1 -1
  45. package/dist/entries/trash.cjs +2 -2
  46. package/dist/entries/trash.d.cts +4 -1
  47. package/dist/entries/trash.d.ts +4 -1
  48. package/dist/entries/trash.js +1 -1
  49. package/dist/entries/trends.cjs +2 -2
  50. package/dist/entries/trends.d.cts +22 -13
  51. package/dist/entries/trends.d.ts +22 -13
  52. package/dist/entries/trends.js +1 -1
  53. package/dist/index.cjs +18 -18
  54. package/dist/index.js +7 -7
  55. package/package.json +3 -3
  56. package/dist/chunk-7LTVS75S.cjs.map +0 -1
  57. package/dist/chunk-DIF7A5OH.cjs.map +0 -1
  58. package/dist/chunk-GDDV5U32.cjs.map +0 -1
  59. package/dist/chunk-JTAW54UM.js.map +0 -1
  60. package/dist/chunk-KBHDUHKM.js.map +0 -1
  61. package/dist/chunk-OWG3XAHQ.js.map +0 -1
  62. package/dist/chunk-PQHZUWSL.js.map +0 -1
  63. package/dist/chunk-XILR6TFO.js.map +0 -1
  64. package/dist/chunk-XKDVEQVD.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNP6KDFIJ_cjs = require('../chunk-NP6KDFIJ.cjs');
3
+ var chunkPPP6VZ3I_cjs = require('../chunk-PPP6VZ3I.cjs');
4
4
  require('../chunk-JTOEHQQJ.cjs');
5
5
  require('../chunk-W5VHATSR.cjs');
6
6
  require('../chunk-R63TTR35.cjs');
@@ -12,8 +12,8 @@ require('../chunk-WMT7HEBZ.cjs');
12
12
  require('../chunk-MBFUMWI5.cjs');
13
13
  require('../chunk-NKH2UFSD.cjs');
14
14
  require('../chunk-UIBYZNDR.cjs');
15
- require('../chunk-XKDVEQVD.cjs');
16
- require('../chunk-DIF7A5OH.cjs');
15
+ require('../chunk-LTZKNAXM.cjs');
16
+ require('../chunk-E5MJK3W5.cjs');
17
17
  require('../chunk-KMNSPC72.cjs');
18
18
  require('../chunk-NBVARNVA.cjs');
19
19
  require('../chunk-7YHIFCJ4.cjs');
@@ -26,7 +26,7 @@ require('../chunk-SYVNY3AH.cjs');
26
26
  require('../chunk-22P4X3N5.cjs');
27
27
  require('../chunk-7QOCWJKD.cjs');
28
28
  require('../chunk-ZCWKX4V6.cjs');
29
- require('../chunk-34PU2DAT.cjs');
29
+ require('../chunk-Q45PC4YD.cjs');
30
30
  require('../chunk-TK2CEVSK.cjs');
31
31
  require('../chunk-GVIFLUYZ.cjs');
32
32
  require('../chunk-CR5E2SF3.cjs');
@@ -34,7 +34,7 @@ require('../chunk-J5LGGCAS.cjs');
34
34
  require('../chunk-SF2CMKWA.cjs');
35
35
  require('../chunk-SBV5MWEL.cjs');
36
36
  require('../chunk-WUKIJJG2.cjs');
37
- require('../chunk-7LTVS75S.cjs');
37
+ require('../chunk-P6AM42UB.cjs');
38
38
  require('../chunk-2DZWWIJ4.cjs');
39
39
  require('../chunk-SS3B6PHT.cjs');
40
40
  require('../chunk-MQ74AKA2.cjs');
@@ -43,7 +43,7 @@ require('../chunk-43FVH6LJ.cjs');
43
43
  require('../chunk-YFS2LMG4.cjs');
44
44
  require('../chunk-OSMKIRKI.cjs');
45
45
  require('../chunk-FRQJNGJS.cjs');
46
- var chunkMYTMNPCP_cjs = require('../chunk-MYTMNPCP.cjs');
46
+ var chunkNOBQQTAG_cjs = require('../chunk-NOBQQTAG.cjs');
47
47
  require('../chunk-FM2KM5TY.cjs');
48
48
  require('../chunk-HGCVWOGK.cjs');
49
49
  require('../chunk-FIMBPKIH.cjs');
@@ -51,7 +51,7 @@ require('../chunk-A3S55XGF.cjs');
51
51
  require('../chunk-JOXZ4ZIF.cjs');
52
52
  require('../chunk-GA4LZZKQ.cjs');
53
53
  require('../chunk-NGKODS3J.cjs');
54
- require('../chunk-GDDV5U32.cjs');
54
+ require('../chunk-TY2S25W5.cjs');
55
55
  require('../chunk-BPWUWUZ3.cjs');
56
56
  require('../chunk-HAKYPZLB.cjs');
57
57
 
@@ -59,23 +59,23 @@ require('../chunk-HAKYPZLB.cjs');
59
59
 
60
60
  Object.defineProperty(exports, "NodaroClient", {
61
61
  enumerable: true,
62
- get: function () { return chunkNP6KDFIJ_cjs.NodaroClient; }
62
+ get: function () { return chunkPPP6VZ3I_cjs.NodaroClient; }
63
63
  });
64
64
  Object.defineProperty(exports, "createClient", {
65
65
  enumerable: true,
66
- get: function () { return chunkNP6KDFIJ_cjs.createClient; }
66
+ get: function () { return chunkPPP6VZ3I_cjs.createClient; }
67
67
  });
68
68
  Object.defineProperty(exports, "CallbackAuth", {
69
69
  enumerable: true,
70
- get: function () { return chunkMYTMNPCP_cjs.CallbackAuth; }
70
+ get: function () { return chunkNOBQQTAG_cjs.CallbackAuth; }
71
71
  });
72
72
  Object.defineProperty(exports, "StaticTokenAuth", {
73
73
  enumerable: true,
74
- get: function () { return chunkMYTMNPCP_cjs.StaticTokenAuth; }
74
+ get: function () { return chunkNOBQQTAG_cjs.StaticTokenAuth; }
75
75
  });
76
76
  Object.defineProperty(exports, "supabaseAuth", {
77
77
  enumerable: true,
78
- get: function () { return chunkMYTMNPCP_cjs.supabaseAuth; }
78
+ get: function () { return chunkNOBQQTAG_cjs.supabaseAuth; }
79
79
  });
80
80
  //# sourceMappingURL=client.cjs.map
81
81
  //# sourceMappingURL=client.cjs.map
@@ -1,4 +1,4 @@
1
- export { NodaroClient, createClient } from '../chunk-I7AHLDXV.js';
1
+ export { NodaroClient, createClient } from '../chunk-2JAKOBD3.js';
2
2
  import '../chunk-WY4QRJZW.js';
3
3
  import '../chunk-ERLXU47J.js';
4
4
  import '../chunk-T7N7DFQJ.js';
@@ -10,8 +10,8 @@ import '../chunk-WS4ZQ4AA.js';
10
10
  import '../chunk-WVFAQBS7.js';
11
11
  import '../chunk-AUKHMT53.js';
12
12
  import '../chunk-M7VSFZMV.js';
13
- import '../chunk-KBHDUHKM.js';
14
- import '../chunk-XILR6TFO.js';
13
+ import '../chunk-2SQ7V6EX.js';
14
+ import '../chunk-YXVMQEJX.js';
15
15
  import '../chunk-HPXE3NZW.js';
16
16
  import '../chunk-WEQWU2IC.js';
17
17
  import '../chunk-KFZOJBI5.js';
@@ -24,7 +24,7 @@ import '../chunk-NCCBS6GU.js';
24
24
  import '../chunk-BQAW4RX2.js';
25
25
  import '../chunk-Y6V6CBY5.js';
26
26
  import '../chunk-YVU2M7MI.js';
27
- import '../chunk-JTAW54UM.js';
27
+ import '../chunk-AEUPH7EE.js';
28
28
  import '../chunk-GW76IRQD.js';
29
29
  import '../chunk-Z7LGWNI7.js';
30
30
  import '../chunk-7LSFG2AF.js';
@@ -32,7 +32,7 @@ import '../chunk-ALSLZG3U.js';
32
32
  import '../chunk-RBX3QTKB.js';
33
33
  import '../chunk-Z3ZKFI2M.js';
34
34
  import '../chunk-JDEZHITT.js';
35
- import '../chunk-PQHZUWSL.js';
35
+ import '../chunk-THLTFB6I.js';
36
36
  import '../chunk-P6E4QDJN.js';
37
37
  import '../chunk-E37CVHWW.js';
38
38
  import '../chunk-TVENC6PH.js';
@@ -41,7 +41,7 @@ import '../chunk-SFB4YLCS.js';
41
41
  import '../chunk-BU5A6K4C.js';
42
42
  import '../chunk-D2ILCSOQ.js';
43
43
  import '../chunk-7CUWAVWB.js';
44
- export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-FCYN4N3M.js';
44
+ export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-5MZYOJCJ.js';
45
45
  import '../chunk-L6T44A3G.js';
46
46
  import '../chunk-CK3AMMSC.js';
47
47
  import '../chunk-5MOJSYHI.js';
@@ -49,7 +49,7 @@ import '../chunk-65E3JBFZ.js';
49
49
  import '../chunk-7LODCIQK.js';
50
50
  import '../chunk-3QFTP5P5.js';
51
51
  import '../chunk-J4WFSKY6.js';
52
- import '../chunk-OWG3XAHQ.js';
52
+ import '../chunk-OCRUDBPG.js';
53
53
  import '../chunk-KG4R454Z.js';
54
54
  import '../chunk-EJSGJDZY.js';
55
55
  //# sourceMappingURL=client.js.map
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-X7XP5WBP.cjs');
4
- var chunkMYTMNPCP_cjs = require('../chunk-MYTMNPCP.cjs');
4
+ var chunkNOBQQTAG_cjs = require('../chunk-NOBQQTAG.cjs');
5
5
  require('../chunk-FM2KM5TY.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "CallbackAuth", {
10
10
  enumerable: true,
11
- get: function () { return chunkMYTMNPCP_cjs.CallbackAuth; }
11
+ get: function () { return chunkNOBQQTAG_cjs.CallbackAuth; }
12
12
  });
13
13
  Object.defineProperty(exports, "NodaroClientCore", {
14
14
  enumerable: true,
15
- get: function () { return chunkMYTMNPCP_cjs.NodaroClientCore; }
15
+ get: function () { return chunkNOBQQTAG_cjs.NodaroClientCore; }
16
16
  });
17
17
  Object.defineProperty(exports, "StaticTokenAuth", {
18
18
  enumerable: true,
19
- get: function () { return chunkMYTMNPCP_cjs.StaticTokenAuth; }
19
+ get: function () { return chunkNOBQQTAG_cjs.StaticTokenAuth; }
20
20
  });
21
21
  Object.defineProperty(exports, "supabaseAuth", {
22
22
  enumerable: true,
23
- get: function () { return chunkMYTMNPCP_cjs.supabaseAuth; }
23
+ get: function () { return chunkNOBQQTAG_cjs.supabaseAuth; }
24
24
  });
25
25
  //# sourceMappingURL=core.cjs.map
26
26
  //# sourceMappingURL=core.cjs.map
@@ -1,5 +1,5 @@
1
1
  import '../chunk-AUDHV3OE.js';
2
- export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-FCYN4N3M.js';
2
+ export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-5MZYOJCJ.js';
3
3
  import '../chunk-L6T44A3G.js';
4
4
  //# sourceMappingURL=core.js.map
5
5
  //# sourceMappingURL=core.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-EHRWTYGR.cjs');
4
- var chunk7LTVS75S_cjs = require('../chunk-7LTVS75S.cjs');
4
+ var chunkP6AM42UB_cjs = require('../chunk-P6AM42UB.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "JobsResource", {
9
9
  enumerable: true,
10
- get: function () { return chunk7LTVS75S_cjs.JobsResource; }
10
+ get: function () { return chunkP6AM42UB_cjs.JobsResource; }
11
11
  });
12
12
  //# sourceMappingURL=jobs.cjs.map
13
13
  //# sourceMappingURL=jobs.cjs.map
@@ -133,17 +133,28 @@ interface Job {
133
133
  * `usage_logs.status`. `null` when there is no usage log to report. Never
134
134
  * changes the meaning of `credits` (the reserved amount) below. */
135
135
  credit_status?: CreditStatus | null;
136
- /** The credits HELD when the job was accepted. Never changes — a job can
137
- * settle below it; read {@link Job.credits_charged} for what it cost. */
136
+ /** The credits the job itself HELD when it was accepted. Never changes — a
137
+ * job can settle below it; read {@link Job.credits_charged} for what it cost. */
138
138
  credits: number | null;
139
139
  /**
140
- * What the job actually cost once its hold settled. Can be lower than
141
- * `credits` (the unused part goes back to the balance), `0` when the hold was
142
- * refunded, `null` while the job is still running or when it reserved
143
- * nothing of its own. Sum this — not `credits` — to total spend. Returned by
144
- * `get()` and `list()`.
140
+ * What the job actually cost once its hold settled, INCLUDING the steps it
141
+ * ran: a job that runs other jobs for you (a Nodaro Motion run's reference
142
+ * preparation, mask and video) is charged for each, and they are not listed
143
+ * on their own. A step adds its charge once it settles. Can be lower than
144
+ * {@link Job.credits_held} (the unused part goes back to the balance). `0`
145
+ * when the run's own hold was refunded, plus any settled steps (a refunded
146
+ * Nodaro Motion run whose reference and mask steps committed reads
147
+ * `credit_status: "refunded"` with `credits_charged: 165`). `null` while the
148
+ * job's own hold is still open (even when some steps have settled), when
149
+ * nothing in the run was reserved, or when its steps could not be read for a
150
+ * moment (unknown — never a lower figure). Sum this — not `credits` — to
151
+ * total spend. Returned by `get()` and `list()`.
145
152
  */
146
153
  credits_charged?: number | null;
154
+ /** The run's hold: the job's own `credits` plus its steps' holds (equals `credits` for a job with no steps). */
155
+ credits_held?: number | null;
156
+ /** What went back from `credits_held` once every hold in the run settled; `null` until then. */
157
+ credits_released?: number | null;
147
158
  job_type: string | null;
148
159
  created_at: string;
149
160
  started_at: string | null;
@@ -133,17 +133,28 @@ interface Job {
133
133
  * `usage_logs.status`. `null` when there is no usage log to report. Never
134
134
  * changes the meaning of `credits` (the reserved amount) below. */
135
135
  credit_status?: CreditStatus | null;
136
- /** The credits HELD when the job was accepted. Never changes — a job can
137
- * settle below it; read {@link Job.credits_charged} for what it cost. */
136
+ /** The credits the job itself HELD when it was accepted. Never changes — a
137
+ * job can settle below it; read {@link Job.credits_charged} for what it cost. */
138
138
  credits: number | null;
139
139
  /**
140
- * What the job actually cost once its hold settled. Can be lower than
141
- * `credits` (the unused part goes back to the balance), `0` when the hold was
142
- * refunded, `null` while the job is still running or when it reserved
143
- * nothing of its own. Sum this — not `credits` — to total spend. Returned by
144
- * `get()` and `list()`.
140
+ * What the job actually cost once its hold settled, INCLUDING the steps it
141
+ * ran: a job that runs other jobs for you (a Nodaro Motion run's reference
142
+ * preparation, mask and video) is charged for each, and they are not listed
143
+ * on their own. A step adds its charge once it settles. Can be lower than
144
+ * {@link Job.credits_held} (the unused part goes back to the balance). `0`
145
+ * when the run's own hold was refunded, plus any settled steps (a refunded
146
+ * Nodaro Motion run whose reference and mask steps committed reads
147
+ * `credit_status: "refunded"` with `credits_charged: 165`). `null` while the
148
+ * job's own hold is still open (even when some steps have settled), when
149
+ * nothing in the run was reserved, or when its steps could not be read for a
150
+ * moment (unknown — never a lower figure). Sum this — not `credits` — to
151
+ * total spend. Returned by `get()` and `list()`.
145
152
  */
146
153
  credits_charged?: number | null;
154
+ /** The run's hold: the job's own `credits` plus its steps' holds (equals `credits` for a job with no steps). */
155
+ credits_held?: number | null;
156
+ /** What went back from `credits_held` once every hold in the run settled; `null` until then. */
157
+ credits_released?: number | null;
147
158
  job_type: string | null;
148
159
  created_at: string;
149
160
  started_at: string | null;
@@ -1,4 +1,4 @@
1
1
  import '../chunk-I3TYBAOX.js';
2
- export { JobsResource } from '../chunk-PQHZUWSL.js';
2
+ export { JobsResource } from '../chunk-THLTFB6I.js';
3
3
  //# sourceMappingURL=jobs.js.map
4
4
  //# sourceMappingURL=jobs.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-RA42NMWV.cjs');
4
- var chunk34PU2DAT_cjs = require('../chunk-34PU2DAT.cjs');
4
+ var chunkQ45PC4YD_cjs = require('../chunk-Q45PC4YD.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "PresetsResource", {
9
9
  enumerable: true,
10
- get: function () { return chunk34PU2DAT_cjs.PresetsResource; }
10
+ get: function () { return chunkQ45PC4YD_cjs.PresetsResource; }
11
11
  });
12
12
  //# sourceMappingURL=node-presets.cjs.map
13
13
  //# sourceMappingURL=node-presets.cjs.map
@@ -58,6 +58,12 @@ interface FactoryPresetEntry extends FactoryPreset {
58
58
  * server you asked — or null while the preset has none.
59
59
  */
60
60
  previewUrl?: string | null;
61
+ /**
62
+ * The same picture at its two sizes for an `<img srcset>` — the tile picture
63
+ * at 512w and the full-screen one at up to 1024w. Present only when the
64
+ * preset has both; absent from servers that predate it.
65
+ */
66
+ previewSrcSet?: string;
61
67
  }
62
68
  /**
63
69
  * Result of `GET /v1/node-presets/factory` — the built-in (factory) catalog for
@@ -58,6 +58,12 @@ interface FactoryPresetEntry extends FactoryPreset {
58
58
  * server you asked — or null while the preset has none.
59
59
  */
60
60
  previewUrl?: string | null;
61
+ /**
62
+ * The same picture at its two sizes for an `<img srcset>` — the tile picture
63
+ * at 512w and the full-screen one at up to 1024w. Present only when the
64
+ * preset has both; absent from servers that predate it.
65
+ */
66
+ previewSrcSet?: string;
61
67
  }
62
68
  /**
63
69
  * Result of `GET /v1/node-presets/factory` — the built-in (factory) catalog for
@@ -1,4 +1,4 @@
1
1
  import '../chunk-NX67YIF3.js';
2
- export { PresetsResource } from '../chunk-JTAW54UM.js';
2
+ export { PresetsResource } from '../chunk-AEUPH7EE.js';
3
3
  //# sourceMappingURL=node-presets.js.map
4
4
  //# sourceMappingURL=node-presets.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-UANHMQ3A.cjs');
4
- var chunkXKDVEQVD_cjs = require('../chunk-XKDVEQVD.cjs');
4
+ var chunkLTZKNAXM_cjs = require('../chunk-LTZKNAXM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "TrashResource", {
9
9
  enumerable: true,
10
- get: function () { return chunkXKDVEQVD_cjs.TrashResource; }
10
+ get: function () { return chunkLTZKNAXM_cjs.TrashResource; }
11
11
  });
12
12
  //# sourceMappingURL=trash.cjs.map
13
13
  //# sourceMappingURL=trash.cjs.map
@@ -3,10 +3,13 @@ import { Job } from './jobs.cjs';
3
3
  import '@nodaro/shared/apps';
4
4
  import '@nodaro/shared/organizations';
5
5
 
6
- /** The session a removed item was removed from. */
6
+ /** The session a removed item was removed from — restore it there with
7
+ * `client.sessions.restoreItem(session.id, job.id)`. */
7
8
  interface TrashSession {
8
9
  id: string;
10
+ /** `null` = untitled; a UI may fall back to the first prompt. */
9
11
  title: string | null;
12
+ /** The session's project, or `null` when it has none. */
10
13
  projectId: string | null;
11
14
  }
12
15
  /**
@@ -3,10 +3,13 @@ import { Job } from './jobs.js';
3
3
  import '@nodaro/shared/apps';
4
4
  import '@nodaro/shared/organizations';
5
5
 
6
- /** The session a removed item was removed from. */
6
+ /** The session a removed item was removed from — restore it there with
7
+ * `client.sessions.restoreItem(session.id, job.id)`. */
7
8
  interface TrashSession {
8
9
  id: string;
10
+ /** `null` = untitled; a UI may fall back to the first prompt. */
9
11
  title: string | null;
12
+ /** The session's project, or `null` when it has none. */
10
13
  projectId: string | null;
11
14
  }
12
15
  /**
@@ -1,4 +1,4 @@
1
1
  import '../chunk-6NTKEXT5.js';
2
- export { TrashResource } from '../chunk-KBHDUHKM.js';
2
+ export { TrashResource } from '../chunk-2SQ7V6EX.js';
3
3
  //# sourceMappingURL=trash.js.map
4
4
  //# sourceMappingURL=trash.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-PG2GBS3K.cjs');
4
- var chunkDIF7A5OH_cjs = require('../chunk-DIF7A5OH.cjs');
4
+ var chunkE5MJK3W5_cjs = require('../chunk-E5MJK3W5.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "TrendsResource", {
9
9
  enumerable: true,
10
- get: function () { return chunkDIF7A5OH_cjs.TrendsResource; }
10
+ get: function () { return chunkE5MJK3W5_cjs.TrendsResource; }
11
11
  });
12
12
  //# sourceMappingURL=trends.cjs.map
13
13
  //# sourceMappingURL=trends.cjs.map
@@ -24,7 +24,7 @@ type TrendChipKey = keyof TrendChips;
24
24
  type TrendResolution = "480p" | "720p" | "1080p";
25
25
  /**
26
26
  * The engine a trend runs on, by its public id ({@link CastSwapEngine}):
27
- * `"motion-pro"` (Nodaro Motion Pro) or `"motion-lite"` (Nodaro Motion Lite).
27
+ * `"motion-prism"` (Nodaro Motion Prism) or `"motion-pulse"` (Nodaro Motion Pulse).
28
28
  * The trend chooses it, never the person running it.
29
29
  */
30
30
  type TrendEngine = CastSwapEngine;
@@ -119,14 +119,14 @@ interface TrendDetail extends TrendCard {
119
119
  * Absent only on a version without a display copy (and from an older server).
120
120
  */
121
121
  original?: TrendOriginal;
122
- /** The engine every run of this trend uses. Absent (an older server) = `"motion-pro"`. */
122
+ /** The engine every run of this trend uses. Absent (an older server) = `"motion-prism"`. */
123
123
  engine?: TrendEngine;
124
- /** Its name to show: "Nodaro Motion Pro" or "Nodaro Motion Lite". Absent from an older server. */
124
+ /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
125
125
  engineName?: string;
126
126
  /**
127
- * The resolutions a run may ask for, the default first. Nodaro Motion Pro:
127
+ * The resolutions a run may ask for, the default first. Nodaro Motion Prism:
128
128
  * `["480p", "720p", "1080p"]`, where 480p is a draft (show it as one);
129
- * Nodaro Motion Lite: `["720p", "1080p"]`, no draft. Offer exactly these.
129
+ * Nodaro Motion Pulse: `["720p", "1080p"]`, no draft. Offer exactly these.
130
130
  */
131
131
  resolutions: TrendResolution[];
132
132
  slots: TrendDetailSlot[];
@@ -157,13 +157,13 @@ interface TrendRunRequest {
157
157
  preview?: boolean;
158
158
  /**
159
159
  * One of the trend's {@link TrendDetail.resolutions}; default its first
160
- * (`"480p"` on Nodaro Motion Pro, `"720p"` on Nodaro Motion Lite). Another answers 400
160
+ * (`"480p"` on Nodaro Motion Prism, `"720p"` on Nodaro Motion Pulse). Another answers 400
161
161
  * `resolution_unsupported`.
162
162
  */
163
163
  resolution?: TrendResolution;
164
164
  /**
165
- * A draft run, only at 480p on a Nodaro Motion Pro trend. Default `true` at
166
- * 480p. `true` on a Nodaro Motion Lite trend answers 400 `draft_unsupported`.
165
+ * A draft run, only at 480p on a Nodaro Motion Prism trend. Default `true` at
166
+ * 480p. `true` on a Nodaro Motion Pulse trend answers 400 `draft_unsupported`.
167
167
  */
168
168
  draft?: boolean;
169
169
  /**
@@ -277,18 +277,27 @@ interface TrendRun {
277
277
  preview: boolean;
278
278
  resolution: string;
279
279
  draft: boolean;
280
- /** The engine the run was made on. Absent (an older server) = `"motion-pro"`. */
280
+ /** The engine the run was made on. Absent (an older server) = `"motion-prism"`. */
281
281
  engine?: TrendEngine;
282
- /** Its name to show: "Nodaro Motion Pro" or "Nodaro Motion Lite". Absent from an older server. */
282
+ /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
283
283
  engineName?: string;
284
284
  /** The result, once completed. */
285
285
  videoUrl: string | null;
286
286
  posterUrl: string | null;
287
+ /**
288
+ * What the run was charged once settled, every step it ran included (its
289
+ * reference preparation, mask and video); `null` until the run's own hold
290
+ * settles. A step adds its charge once it settles.
291
+ */
287
292
  creditsCharged: number | null;
288
- /** A Full Quality version: the job id of the run (a draft, or a Nodaro Motion Lite 720p run) it was made from. `null` for any other run. */
293
+ /** The run's hold: its own plus its steps'. Absent from an older server. */
294
+ creditsHeld?: number | null;
295
+ /** What went back from `creditsHeld` once every hold in the run settled; `null` until then. Absent from an older server. */
296
+ creditsReleased?: number | null;
297
+ /** A Full Quality version: the job id of the run (a draft, or a Nodaro Motion Pulse 720p run) it was made from. `null` for any other run. */
289
298
  fullQualityOf: string | null;
290
299
  /**
291
- * A draft's (or Nodaro Motion Lite 720p run's) newest Full Quality try, if one was started: a pointer only,
300
+ * A draft's (or Nodaro Motion Pulse 720p run's) newest Full Quality try, if one was started: a pointer only,
292
301
  * to know an upgrade exists and how it is going. Its video and charge are on
293
302
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
294
303
  * read it there (`getRun(fullQuality.jobId)`). Older tries of the draft (a
@@ -301,7 +310,7 @@ interface TrendRun {
301
310
  } | null;
302
311
  /**
303
312
  * Until when a completed run can be redone in Full Quality — a Nodaro Motion
304
- * Pro draft (the same take at 1080p) or a Nodaro Motion Lite run at 720p (a new take at
313
+ * Prism draft (the same take at 1080p) or a Nodaro Motion Pulse run at 720p (a new take at
305
314
  * 1080p); `null` otherwise.
306
315
  */
307
316
  fullQualityUntil: string | null;
@@ -24,7 +24,7 @@ type TrendChipKey = keyof TrendChips;
24
24
  type TrendResolution = "480p" | "720p" | "1080p";
25
25
  /**
26
26
  * The engine a trend runs on, by its public id ({@link CastSwapEngine}):
27
- * `"motion-pro"` (Nodaro Motion Pro) or `"motion-lite"` (Nodaro Motion Lite).
27
+ * `"motion-prism"` (Nodaro Motion Prism) or `"motion-pulse"` (Nodaro Motion Pulse).
28
28
  * The trend chooses it, never the person running it.
29
29
  */
30
30
  type TrendEngine = CastSwapEngine;
@@ -119,14 +119,14 @@ interface TrendDetail extends TrendCard {
119
119
  * Absent only on a version without a display copy (and from an older server).
120
120
  */
121
121
  original?: TrendOriginal;
122
- /** The engine every run of this trend uses. Absent (an older server) = `"motion-pro"`. */
122
+ /** The engine every run of this trend uses. Absent (an older server) = `"motion-prism"`. */
123
123
  engine?: TrendEngine;
124
- /** Its name to show: "Nodaro Motion Pro" or "Nodaro Motion Lite". Absent from an older server. */
124
+ /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
125
125
  engineName?: string;
126
126
  /**
127
- * The resolutions a run may ask for, the default first. Nodaro Motion Pro:
127
+ * The resolutions a run may ask for, the default first. Nodaro Motion Prism:
128
128
  * `["480p", "720p", "1080p"]`, where 480p is a draft (show it as one);
129
- * Nodaro Motion Lite: `["720p", "1080p"]`, no draft. Offer exactly these.
129
+ * Nodaro Motion Pulse: `["720p", "1080p"]`, no draft. Offer exactly these.
130
130
  */
131
131
  resolutions: TrendResolution[];
132
132
  slots: TrendDetailSlot[];
@@ -157,13 +157,13 @@ interface TrendRunRequest {
157
157
  preview?: boolean;
158
158
  /**
159
159
  * One of the trend's {@link TrendDetail.resolutions}; default its first
160
- * (`"480p"` on Nodaro Motion Pro, `"720p"` on Nodaro Motion Lite). Another answers 400
160
+ * (`"480p"` on Nodaro Motion Prism, `"720p"` on Nodaro Motion Pulse). Another answers 400
161
161
  * `resolution_unsupported`.
162
162
  */
163
163
  resolution?: TrendResolution;
164
164
  /**
165
- * A draft run, only at 480p on a Nodaro Motion Pro trend. Default `true` at
166
- * 480p. `true` on a Nodaro Motion Lite trend answers 400 `draft_unsupported`.
165
+ * A draft run, only at 480p on a Nodaro Motion Prism trend. Default `true` at
166
+ * 480p. `true` on a Nodaro Motion Pulse trend answers 400 `draft_unsupported`.
167
167
  */
168
168
  draft?: boolean;
169
169
  /**
@@ -277,18 +277,27 @@ interface TrendRun {
277
277
  preview: boolean;
278
278
  resolution: string;
279
279
  draft: boolean;
280
- /** The engine the run was made on. Absent (an older server) = `"motion-pro"`. */
280
+ /** The engine the run was made on. Absent (an older server) = `"motion-prism"`. */
281
281
  engine?: TrendEngine;
282
- /** Its name to show: "Nodaro Motion Pro" or "Nodaro Motion Lite". Absent from an older server. */
282
+ /** Its name to show: "Nodaro Motion Prism" or "Nodaro Motion Pulse". Absent from an older server. */
283
283
  engineName?: string;
284
284
  /** The result, once completed. */
285
285
  videoUrl: string | null;
286
286
  posterUrl: string | null;
287
+ /**
288
+ * What the run was charged once settled, every step it ran included (its
289
+ * reference preparation, mask and video); `null` until the run's own hold
290
+ * settles. A step adds its charge once it settles.
291
+ */
287
292
  creditsCharged: number | null;
288
- /** A Full Quality version: the job id of the run (a draft, or a Nodaro Motion Lite 720p run) it was made from. `null` for any other run. */
293
+ /** The run's hold: its own plus its steps'. Absent from an older server. */
294
+ creditsHeld?: number | null;
295
+ /** What went back from `creditsHeld` once every hold in the run settled; `null` until then. Absent from an older server. */
296
+ creditsReleased?: number | null;
297
+ /** A Full Quality version: the job id of the run (a draft, or a Nodaro Motion Pulse 720p run) it was made from. `null` for any other run. */
289
298
  fullQualityOf: string | null;
290
299
  /**
291
- * A draft's (or Nodaro Motion Lite 720p run's) newest Full Quality try, if one was started: a pointer only,
300
+ * A draft's (or Nodaro Motion Pulse 720p run's) newest Full Quality try, if one was started: a pointer only,
292
301
  * to know an upgrade exists and how it is going. Its video and charge are on
293
302
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
294
303
  * read it there (`getRun(fullQuality.jobId)`). Older tries of the draft (a
@@ -301,7 +310,7 @@ interface TrendRun {
301
310
  } | null;
302
311
  /**
303
312
  * Until when a completed run can be redone in Full Quality — a Nodaro Motion
304
- * Pro draft (the same take at 1080p) or a Nodaro Motion Lite run at 720p (a new take at
313
+ * Prism draft (the same take at 1080p) or a Nodaro Motion Pulse run at 720p (a new take at
305
314
  * 1080p); `null` otherwise.
306
315
  */
307
316
  fullQualityUntil: string | null;
@@ -1,4 +1,4 @@
1
1
  import '../chunk-YCVRQZT3.js';
2
- export { TrendsResource } from '../chunk-XILR6TFO.js';
2
+ export { TrendsResource } from '../chunk-YXVMQEJX.js';
3
3
  //# sourceMappingURL=trends.js.map
4
4
  //# sourceMappingURL=trends.js.map