@nodaro/sdk 2.64.0 → 2.65.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 (73) hide show
  1. package/dist/{chunk-R63TTR35.cjs → chunk-3CB4WYEY.cjs} +2 -2
  2. package/dist/{chunk-R63TTR35.cjs.map → chunk-3CB4WYEY.cjs.map} +1 -1
  3. package/dist/{chunk-3OARKXWT.cjs → chunk-4DCXJ77J.cjs} +6 -4
  4. package/dist/chunk-4DCXJ77J.cjs.map +1 -0
  5. package/dist/{chunk-T7N7DFQJ.js → chunk-CRIQLLR2.js} +2 -2
  6. package/dist/{chunk-T7N7DFQJ.js.map → chunk-CRIQLLR2.js.map} +1 -1
  7. package/dist/{chunk-E3ZMKMY7.js → chunk-DHJRS65Q.js} +4 -3
  8. package/dist/chunk-DHJRS65Q.js.map +1 -0
  9. package/dist/{chunk-K2VWXAGK.js → chunk-HAS6PMQN.js} +6 -4
  10. package/dist/chunk-HAS6PMQN.js.map +1 -0
  11. package/dist/{chunk-GHVCV4S5.cjs → chunk-HVF5DRGQ.cjs} +2 -2
  12. package/dist/{chunk-GHVCV4S5.cjs.map → chunk-HVF5DRGQ.cjs.map} +1 -1
  13. package/dist/{chunk-5LI4CVJB.cjs → chunk-HW3CSUVC.cjs} +2 -2
  14. package/dist/chunk-HW3CSUVC.cjs.map +1 -0
  15. package/dist/{chunk-3QFTP5P5.js → chunk-OHC4JIUP.js} +10 -2
  16. package/dist/chunk-OHC4JIUP.js.map +1 -0
  17. package/dist/{chunk-H3HUZT3T.js → chunk-OVFH7L2T.js} +2 -2
  18. package/dist/{chunk-H3HUZT3T.js.map → chunk-OVFH7L2T.js.map} +1 -1
  19. package/dist/{chunk-GA4LZZKQ.cjs → chunk-PGT4BXR2.cjs} +10 -2
  20. package/dist/chunk-PGT4BXR2.cjs.map +1 -0
  21. package/dist/{chunk-AAUVNTWE.cjs → chunk-QTO2U6JZ.cjs} +4 -3
  22. package/dist/chunk-QTO2U6JZ.cjs.map +1 -0
  23. package/dist/{chunk-YT7HGYVO.js → chunk-QUYZCZ33.js} +9 -9
  24. package/dist/{chunk-YT7HGYVO.js.map → chunk-QUYZCZ33.js.map} +1 -1
  25. package/dist/{chunk-NODNRXHA.js → chunk-S4BERJXU.js} +3 -3
  26. package/dist/{chunk-NODNRXHA.js.map → chunk-S4BERJXU.js.map} +1 -1
  27. package/dist/{chunk-A42R7UT7.js → chunk-SVWEWBXI.js} +2 -2
  28. package/dist/chunk-SVWEWBXI.js.map +1 -0
  29. package/dist/{chunk-C7DOFDP2.cjs → chunk-XZYJBJ2K.cjs} +16 -16
  30. package/dist/{chunk-C7DOFDP2.cjs.map → chunk-XZYJBJ2K.cjs.map} +1 -1
  31. package/dist/{chunk-KBRMAEBT.cjs → chunk-ZVG5ODVY.cjs} +3 -3
  32. package/dist/{chunk-KBRMAEBT.cjs.map → chunk-ZVG5ODVY.cjs.map} +1 -1
  33. package/dist/entries/audio.cjs +2 -2
  34. package/dist/entries/audio.d.cts +10 -0
  35. package/dist/entries/audio.d.ts +10 -0
  36. package/dist/entries/audio.js +1 -1
  37. package/dist/entries/cast-swap.cjs +2 -2
  38. package/dist/entries/cast-swap.d.cts +28 -7
  39. package/dist/entries/cast-swap.d.ts +28 -7
  40. package/dist/entries/cast-swap.js +1 -1
  41. package/dist/entries/client.cjs +13 -13
  42. package/dist/entries/client.js +8 -8
  43. package/dist/entries/content-rights.cjs +2 -2
  44. package/dist/entries/content-rights.d.cts +4 -2
  45. package/dist/entries/content-rights.d.ts +4 -2
  46. package/dist/entries/content-rights.js +1 -1
  47. package/dist/entries/core.cjs +5 -5
  48. package/dist/entries/core.js +1 -1
  49. package/dist/entries/jobs.cjs +2 -2
  50. package/dist/entries/jobs.d.cts +24 -8
  51. package/dist/entries/jobs.d.ts +24 -8
  52. package/dist/entries/jobs.js +1 -1
  53. package/dist/entries/trends.cjs +2 -2
  54. package/dist/entries/trends.d.cts +11 -2
  55. package/dist/entries/trends.d.ts +11 -2
  56. package/dist/entries/trends.js +1 -1
  57. package/dist/entries/voices.cjs +2 -2
  58. package/dist/entries/voices.d.cts +16 -5
  59. package/dist/entries/voices.d.ts +16 -5
  60. package/dist/entries/voices.js +1 -1
  61. package/dist/index.cjs +20 -20
  62. package/dist/index.d.cts +1 -1
  63. package/dist/index.d.ts +1 -1
  64. package/dist/index.js +8 -8
  65. package/package.json +3 -3
  66. package/dist/chunk-3OARKXWT.cjs.map +0 -1
  67. package/dist/chunk-3QFTP5P5.js.map +0 -1
  68. package/dist/chunk-5LI4CVJB.cjs.map +0 -1
  69. package/dist/chunk-A42R7UT7.js.map +0 -1
  70. package/dist/chunk-AAUVNTWE.cjs.map +0 -1
  71. package/dist/chunk-E3ZMKMY7.js.map +0 -1
  72. package/dist/chunk-GA4LZZKQ.cjs.map +0 -1
  73. package/dist/chunk-K2VWXAGK.js.map +0 -1
@@ -32,13 +32,15 @@ type SafetyBlockHint = {
32
32
  retried: boolean;
33
33
  suggestedProvider?: string;
34
34
  /**
35
- * Present when the provider named the input it refused — not the prompt or
36
- * the output. `"input_video"`: the input video itself; sending a different
37
- * clip is the fix. `"input_image"`: one of the input images, refused as
38
- * possibly copyrighted (with `class: "copyright"`); sending a different
39
- * picture is the fix. Treat an unknown value as absent.
35
+ * Present when the provider named what it refused. `"input_video"`: the
36
+ * input video itself; sending a different clip is the fix. `"input_image"`:
37
+ * one of the input images, refused as possibly copyrighted (with
38
+ * `class: "copyright"`); sending a different picture is the fix. `"prompt"`:
39
+ * the provider's own words named the prompt; changing the prompt is the fix.
40
+ * `"audio"`: the provider's own words blamed the generated audio, not the
41
+ * picture. Treat an unknown value as absent.
40
42
  */
41
- subject?: "input_video" | "input_image";
43
+ subject?: "input_video" | "input_image" | "prompt" | "audio";
42
44
  };
43
45
  /**
44
46
  * A NODARO-side verdict, not a provider's: a job policy registered by the
@@ -98,6 +100,20 @@ type QueueTimeoutHint = {
98
100
  reason: "timeout" | "lost" | "live-wait";
99
101
  waitedMinutes: number;
100
102
  };
103
+ /**
104
+ * The provider refused the request as it was sent, naming a fault of it (a
105
+ * setting, a file's format or size, the prompt's length). The same request is
106
+ * refused the same way, so do not run it again unchanged: change the input
107
+ * images, the video, the prompt or the settings. Not a content-policy block. On a
108
+ * job made of steps (a Nodaro Motion or trend run), one step's refusal.
109
+ * `subject: "input_video"`: the provider's words name the input video as the
110
+ * fault (its length or size, or no character found in it), so a different clip
111
+ * is what can change.
112
+ */
113
+ type RequestRefusedHint = {
114
+ kind: "request-refused";
115
+ subject?: "input_video";
116
+ };
101
117
  /**
102
118
  * A job's `jobs.error_hint` (migration 376) — a user-safe, machine-readable
103
119
  * failure verdict, so a caller can act on it without parsing `error_message`
@@ -109,7 +125,7 @@ type QueueTimeoutHint = {
109
125
  * pasted here verbatim in the same change, with a changeset.
110
126
  * `packages/client/dist/index.d.ts` is REBUILT, never hand-edited.
111
127
  */
112
- type JobErrorHint = SafetyBlockHint | PolicyBlockHint | CreditsHint | InputRefusedHint | QueueTimeoutHint;
128
+ type JobErrorHint = SafetyBlockHint | PolicyBlockHint | CreditsHint | InputRefusedHint | QueueTimeoutHint | RequestRefusedHint;
113
129
  /**
114
130
  * The billing lifecycle of a job's credit reservation — `usage_logs.status`
115
131
  * for the job's `usage_log_id`. `null` when the job has no usage log (e.g. a
@@ -456,4 +472,4 @@ declare class JobsResource {
456
472
  }>;
457
473
  }
458
474
 
459
- export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobQueueInfo, type JobRating, type JobRatingFilter, type JobSessionRef, type JobSource, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type QueueTimeoutHint, type RateJobResult, type SafetyBlockHint };
475
+ export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobQueueInfo, type JobRating, type JobRatingFilter, type JobSessionRef, type JobSource, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type QueueTimeoutHint, type RateJobResult, type RequestRefusedHint, type SafetyBlockHint };
@@ -32,13 +32,15 @@ type SafetyBlockHint = {
32
32
  retried: boolean;
33
33
  suggestedProvider?: string;
34
34
  /**
35
- * Present when the provider named the input it refused — not the prompt or
36
- * the output. `"input_video"`: the input video itself; sending a different
37
- * clip is the fix. `"input_image"`: one of the input images, refused as
38
- * possibly copyrighted (with `class: "copyright"`); sending a different
39
- * picture is the fix. Treat an unknown value as absent.
35
+ * Present when the provider named what it refused. `"input_video"`: the
36
+ * input video itself; sending a different clip is the fix. `"input_image"`:
37
+ * one of the input images, refused as possibly copyrighted (with
38
+ * `class: "copyright"`); sending a different picture is the fix. `"prompt"`:
39
+ * the provider's own words named the prompt; changing the prompt is the fix.
40
+ * `"audio"`: the provider's own words blamed the generated audio, not the
41
+ * picture. Treat an unknown value as absent.
40
42
  */
41
- subject?: "input_video" | "input_image";
43
+ subject?: "input_video" | "input_image" | "prompt" | "audio";
42
44
  };
43
45
  /**
44
46
  * A NODARO-side verdict, not a provider's: a job policy registered by the
@@ -98,6 +100,20 @@ type QueueTimeoutHint = {
98
100
  reason: "timeout" | "lost" | "live-wait";
99
101
  waitedMinutes: number;
100
102
  };
103
+ /**
104
+ * The provider refused the request as it was sent, naming a fault of it (a
105
+ * setting, a file's format or size, the prompt's length). The same request is
106
+ * refused the same way, so do not run it again unchanged: change the input
107
+ * images, the video, the prompt or the settings. Not a content-policy block. On a
108
+ * job made of steps (a Nodaro Motion or trend run), one step's refusal.
109
+ * `subject: "input_video"`: the provider's words name the input video as the
110
+ * fault (its length or size, or no character found in it), so a different clip
111
+ * is what can change.
112
+ */
113
+ type RequestRefusedHint = {
114
+ kind: "request-refused";
115
+ subject?: "input_video";
116
+ };
101
117
  /**
102
118
  * A job's `jobs.error_hint` (migration 376) — a user-safe, machine-readable
103
119
  * failure verdict, so a caller can act on it without parsing `error_message`
@@ -109,7 +125,7 @@ type QueueTimeoutHint = {
109
125
  * pasted here verbatim in the same change, with a changeset.
110
126
  * `packages/client/dist/index.d.ts` is REBUILT, never hand-edited.
111
127
  */
112
- type JobErrorHint = SafetyBlockHint | PolicyBlockHint | CreditsHint | InputRefusedHint | QueueTimeoutHint;
128
+ type JobErrorHint = SafetyBlockHint | PolicyBlockHint | CreditsHint | InputRefusedHint | QueueTimeoutHint | RequestRefusedHint;
113
129
  /**
114
130
  * The billing lifecycle of a job's credit reservation — `usage_logs.status`
115
131
  * for the job's `usage_log_id`. `null` when the job has no usage log (e.g. a
@@ -456,4 +472,4 @@ declare class JobsResource {
456
472
  }>;
457
473
  }
458
474
 
459
- export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobQueueInfo, type JobRating, type JobRatingFilter, type JobSessionRef, type JobSource, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type QueueTimeoutHint, type RateJobResult, type SafetyBlockHint };
475
+ export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobQueueInfo, type JobRating, type JobRatingFilter, type JobSessionRef, type JobSource, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type QueueTimeoutHint, type RateJobResult, type RequestRefusedHint, type SafetyBlockHint };
@@ -1,4 +1,4 @@
1
1
  import '../chunk-I3TYBAOX.js';
2
- export { JobsResource } from '../chunk-A42R7UT7.js';
2
+ export { JobsResource } from '../chunk-SVWEWBXI.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-PG2GBS3K.cjs');
4
- var chunkGHVCV4S5_cjs = require('../chunk-GHVCV4S5.cjs');
4
+ var chunkHVF5DRGQ_cjs = require('../chunk-HVF5DRGQ.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "TrendsResource", {
9
9
  enumerable: true,
10
- get: function () { return chunkGHVCV4S5_cjs.TrendsResource; }
10
+ get: function () { return chunkHVF5DRGQ_cjs.TrendsResource; }
11
11
  });
12
12
  //# sourceMappingURL=trends.cjs.map
13
13
  //# sourceMappingURL=trends.cjs.map
@@ -301,12 +301,18 @@ interface TrendRun {
301
301
  * Why a failed or cancelled run did not finish; `null` otherwise. `code` is
302
302
  * `safety-block` or `policy-block` when the job was blocked, `credits` when
303
303
  * it ran out of credits partway (it was refunded: ask the person to top up,
304
- * then run it again), else `cancelled` or `failed`. `message` is the same
304
+ * then run it again), `input-refused` when the video provider refused the
305
+ * trend's own clip, `request-refused` when it refused the run as it was sent
306
+ * (the same run is refused again: change the images or the settings), else
307
+ * `cancelled` or `failed`. `message` is the same
305
308
  * fixed sentence for every code — branch on `code`, not on the text.
309
+ * `refused: true` on a Full Quality try another try can't get past (see
310
+ * `fullQuality`): deleting it offers Full Quality again.
306
311
  */
307
312
  error: {
308
313
  code?: string;
309
314
  message: string;
315
+ refused?: true;
310
316
  } | null;
311
317
  createdAt: string;
312
318
  completedAt: string | null;
@@ -355,11 +361,14 @@ interface TrendRun {
355
361
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
356
362
  * read it there (`getRun(fullQuality.jobId)`). Older tries of the draft (a
357
363
  * failed or cancelled one tried again) are not listed by `runs()`;
358
- * `getRun()` still reads one by its id.
364
+ * `getRun()` still reads one by its id. `refused`: the provider refused that
365
+ * try as it was sent, or its clip, or blocked it for a copyright or a likeness,
366
+ * so another try fails the same way.
359
367
  */
360
368
  fullQuality: {
361
369
  jobId: string;
362
370
  status: string;
371
+ refused?: true;
363
372
  } | null;
364
373
  /**
365
374
  * Until when a completed run can be redone in Full Quality — a Nodaro Motion
@@ -301,12 +301,18 @@ interface TrendRun {
301
301
  * Why a failed or cancelled run did not finish; `null` otherwise. `code` is
302
302
  * `safety-block` or `policy-block` when the job was blocked, `credits` when
303
303
  * it ran out of credits partway (it was refunded: ask the person to top up,
304
- * then run it again), else `cancelled` or `failed`. `message` is the same
304
+ * then run it again), `input-refused` when the video provider refused the
305
+ * trend's own clip, `request-refused` when it refused the run as it was sent
306
+ * (the same run is refused again: change the images or the settings), else
307
+ * `cancelled` or `failed`. `message` is the same
305
308
  * fixed sentence for every code — branch on `code`, not on the text.
309
+ * `refused: true` on a Full Quality try another try can't get past (see
310
+ * `fullQuality`): deleting it offers Full Quality again.
306
311
  */
307
312
  error: {
308
313
  code?: string;
309
314
  message: string;
315
+ refused?: true;
310
316
  } | null;
311
317
  createdAt: string;
312
318
  completedAt: string | null;
@@ -355,11 +361,14 @@ interface TrendRun {
355
361
  * that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
356
362
  * read it there (`getRun(fullQuality.jobId)`). Older tries of the draft (a
357
363
  * failed or cancelled one tried again) are not listed by `runs()`;
358
- * `getRun()` still reads one by its id.
364
+ * `getRun()` still reads one by its id. `refused`: the provider refused that
365
+ * try as it was sent, or its clip, or blocked it for a copyright or a likeness,
366
+ * so another try fails the same way.
359
367
  */
360
368
  fullQuality: {
361
369
  jobId: string;
362
370
  status: string;
371
+ refused?: true;
363
372
  } | null;
364
373
  /**
365
374
  * Until when a completed run can be redone in Full Quality — a Nodaro Motion
@@ -1,4 +1,4 @@
1
1
  import '../chunk-YCVRQZT3.js';
2
- export { TrendsResource } from '../chunk-H3HUZT3T.js';
2
+ export { TrendsResource } from '../chunk-OVFH7L2T.js';
3
3
  //# sourceMappingURL=trends.js.map
4
4
  //# sourceMappingURL=trends.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-KTTL7BND.cjs');
4
- var chunkR63TTR35_cjs = require('../chunk-R63TTR35.cjs');
4
+ var chunk3CB4WYEY_cjs = require('../chunk-3CB4WYEY.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "VoicesResource", {
9
9
  enumerable: true,
10
- get: function () { return chunkR63TTR35_cjs.VoicesResource; }
10
+ get: function () { return chunk3CB4WYEY_cjs.VoicesResource; }
11
11
  });
12
12
  //# sourceMappingURL=voices.cjs.map
13
13
  //# sourceMappingURL=voices.cjs.map
@@ -462,17 +462,28 @@ interface VoiceRemixInput {
462
462
  }
463
463
  /** Input for {@link VoicesResource.dub}. Provide exactly ONE source:
464
464
  * `audioUrl` (dubbed audio out), `videoUrl` (the dubbed VIDEO out, plus the
465
- * dubbed audio track as `output_data.audioUrl`), or `sourceUrl` (a public
466
- * YouTube/TikTok/direct link ElevenLabs fetches itself). Priced per minute
467
- * of the dubbed span; the span is capped at 30 minutes — use
468
- * `startTime`/`endTime` to dub part of a longer source. */
465
+ * dubbed audio track as `output_data.audioUrl`), or `sourceUrl` (a link to
466
+ * a video's page, or a direct link to a file, that the dubbing service
467
+ * fetches itself). Priced per minute of the dubbed span; the span is capped
468
+ * at 30 minutes — use `startTime`/`endTime` to dub part of a longer source. */
469
469
  interface DubbingInput {
470
470
  /** URL of the audio to dub (audio mode). */
471
471
  audioUrl?: string;
472
472
  /** URL of the video to dub — the result is the dubbed VIDEO (+ audio track). */
473
473
  videoUrl?: string;
474
- /** Public page/media URL (YouTube, TikTok, or a direct link) — ElevenLabs fetches it directly. */
474
+ /**
475
+ * A link to a video's page, or a direct link to a file, that the dubbing
476
+ * service fetches itself: an import of that link, made under the content
477
+ * rights declaration (see `confirmationId`).
478
+ */
475
479
  sourceUrl?: string;
480
+ /**
481
+ * The content rights confirmation for `sourceUrl` (`contentRights.confirm()`).
482
+ * Without one, a deployment that requires a confirmation refuses the dub with
483
+ * `403`, unless the request comes through a key or an agent whose account
484
+ * holds a standing authorization.
485
+ */
486
+ confirmationId?: string;
476
487
  /** Target language ISO code (2–10 chars), e.g. `"es"`, `"pt-BR"`. */
477
488
  targetLanguage: string;
478
489
  /** Source language ISO code; auto-detected when omitted. */
@@ -462,17 +462,28 @@ interface VoiceRemixInput {
462
462
  }
463
463
  /** Input for {@link VoicesResource.dub}. Provide exactly ONE source:
464
464
  * `audioUrl` (dubbed audio out), `videoUrl` (the dubbed VIDEO out, plus the
465
- * dubbed audio track as `output_data.audioUrl`), or `sourceUrl` (a public
466
- * YouTube/TikTok/direct link ElevenLabs fetches itself). Priced per minute
467
- * of the dubbed span; the span is capped at 30 minutes — use
468
- * `startTime`/`endTime` to dub part of a longer source. */
465
+ * dubbed audio track as `output_data.audioUrl`), or `sourceUrl` (a link to
466
+ * a video's page, or a direct link to a file, that the dubbing service
467
+ * fetches itself). Priced per minute of the dubbed span; the span is capped
468
+ * at 30 minutes — use `startTime`/`endTime` to dub part of a longer source. */
469
469
  interface DubbingInput {
470
470
  /** URL of the audio to dub (audio mode). */
471
471
  audioUrl?: string;
472
472
  /** URL of the video to dub — the result is the dubbed VIDEO (+ audio track). */
473
473
  videoUrl?: string;
474
- /** Public page/media URL (YouTube, TikTok, or a direct link) — ElevenLabs fetches it directly. */
474
+ /**
475
+ * A link to a video's page, or a direct link to a file, that the dubbing
476
+ * service fetches itself: an import of that link, made under the content
477
+ * rights declaration (see `confirmationId`).
478
+ */
475
479
  sourceUrl?: string;
480
+ /**
481
+ * The content rights confirmation for `sourceUrl` (`contentRights.confirm()`).
482
+ * Without one, a deployment that requires a confirmation refuses the dub with
483
+ * `403`, unless the request comes through a key or an agent whose account
484
+ * holds a standing authorization.
485
+ */
486
+ confirmationId?: string;
476
487
  /** Target language ISO code (2–10 chars), e.g. `"es"`, `"pt-BR"`. */
477
488
  targetLanguage: string;
478
489
  /** Source language ISO code; auto-detected when omitted. */
@@ -1,4 +1,4 @@
1
1
  import '../chunk-MEKI37WI.js';
2
- export { VoicesResource } from '../chunk-T7N7DFQJ.js';
2
+ export { VoicesResource } from '../chunk-CRIQLLR2.js';
3
3
  //# sourceMappingURL=voices.js.map
4
4
  //# sourceMappingURL=voices.js.map
package/dist/index.cjs CHANGED
@@ -56,16 +56,16 @@ require('./chunk-IS26FJO7.cjs');
56
56
  require('./chunk-RQSGS7ZK.cjs');
57
57
  require('./chunk-43NO4SGC.cjs');
58
58
  require('./chunk-JOX5BJ6K.cjs');
59
- var chunkC7DOFDP2_cjs = require('./chunk-C7DOFDP2.cjs');
59
+ var chunkXZYJBJ2K_cjs = require('./chunk-XZYJBJ2K.cjs');
60
60
  var chunkWUM6CWTE_cjs = require('./chunk-WUM6CWTE.cjs');
61
61
  var chunkLKH5M44B_cjs = require('./chunk-LKH5M44B.cjs');
62
62
  var chunkRKW3N463_cjs = require('./chunk-RKW3N463.cjs');
63
- var chunkGHVCV4S5_cjs = require('./chunk-GHVCV4S5.cjs');
63
+ var chunkHVF5DRGQ_cjs = require('./chunk-HVF5DRGQ.cjs');
64
64
  var chunkKMNSPC72_cjs = require('./chunk-KMNSPC72.cjs');
65
65
  var chunkUPGZTLK7_cjs = require('./chunk-UPGZTLK7.cjs');
66
66
  var chunkUIDVH3GP_cjs = require('./chunk-UIDVH3GP.cjs');
67
67
  var chunkW5VHATSR_cjs = require('./chunk-W5VHATSR.cjs');
68
- var chunkR63TTR35_cjs = require('./chunk-R63TTR35.cjs');
68
+ var chunk3CB4WYEY_cjs = require('./chunk-3CB4WYEY.cjs');
69
69
  var chunk3B47IHB3_cjs = require('./chunk-3B47IHB3.cjs');
70
70
  var chunkGB6C5OEZ_cjs = require('./chunk-GB6C5OEZ.cjs');
71
71
  var chunkSYVNY3AH_cjs = require('./chunk-SYVNY3AH.cjs');
@@ -95,23 +95,23 @@ var chunkA3S55XGF_cjs = require('./chunk-A3S55XGF.cjs');
95
95
  var chunkGRATHB3C_cjs = require('./chunk-GRATHB3C.cjs');
96
96
  var chunkVUTNNRDW_cjs = require('./chunk-VUTNNRDW.cjs');
97
97
  var chunkWUKIJJG2_cjs = require('./chunk-WUKIJJG2.cjs');
98
- var chunk5LI4CVJB_cjs = require('./chunk-5LI4CVJB.cjs');
98
+ var chunkHW3CSUVC_cjs = require('./chunk-HW3CSUVC.cjs');
99
99
  var chunkRR45WBME_cjs = require('./chunk-RR45WBME.cjs');
100
100
  var chunk2DZWWIJ4_cjs = require('./chunk-2DZWWIJ4.cjs');
101
101
  var chunkWK4VXPPZ_cjs = require('./chunk-WK4VXPPZ.cjs');
102
102
  var chunk43FVH6LJ_cjs = require('./chunk-43FVH6LJ.cjs');
103
103
  var chunkYFS2LMG4_cjs = require('./chunk-YFS2LMG4.cjs');
104
- var chunk3OARKXWT_cjs = require('./chunk-3OARKXWT.cjs');
104
+ var chunk4DCXJ77J_cjs = require('./chunk-4DCXJ77J.cjs');
105
105
  var chunkTBFA6QPH_cjs = require('./chunk-TBFA6QPH.cjs');
106
106
  require('./chunk-KP2DIIKO.cjs');
107
- var chunkKBRMAEBT_cjs = require('./chunk-KBRMAEBT.cjs');
107
+ var chunkZVG5ODVY_cjs = require('./chunk-ZVG5ODVY.cjs');
108
108
  var chunkP2JYDWZT_cjs = require('./chunk-P2JYDWZT.cjs');
109
109
  var chunkA3XA6UNM_cjs = require('./chunk-A3XA6UNM.cjs');
110
110
  var chunk4BAHF762_cjs = require('./chunk-4BAHF762.cjs');
111
111
  var chunkJOXZ4ZIF_cjs = require('./chunk-JOXZ4ZIF.cjs');
112
- var chunkGA4LZZKQ_cjs = require('./chunk-GA4LZZKQ.cjs');
112
+ var chunkPGT4BXR2_cjs = require('./chunk-PGT4BXR2.cjs');
113
113
  var chunkGGIWDFER_cjs = require('./chunk-GGIWDFER.cjs');
114
- var chunkAAUVNTWE_cjs = require('./chunk-AAUVNTWE.cjs');
114
+ var chunkQTO2U6JZ_cjs = require('./chunk-QTO2U6JZ.cjs');
115
115
  var chunkBPWUWUZ3_cjs = require('./chunk-BPWUWUZ3.cjs');
116
116
  var chunkXZQ6Z4T6_cjs = require('./chunk-XZQ6Z4T6.cjs');
117
117
 
@@ -151,11 +151,11 @@ Object.defineProperty(exports, "unwrapEditPlanOutput", {
151
151
  });
152
152
  Object.defineProperty(exports, "NodaroClient", {
153
153
  enumerable: true,
154
- get: function () { return chunkC7DOFDP2_cjs.NodaroClient; }
154
+ get: function () { return chunkXZYJBJ2K_cjs.NodaroClient; }
155
155
  });
156
156
  Object.defineProperty(exports, "createClient", {
157
157
  enumerable: true,
158
- get: function () { return chunkC7DOFDP2_cjs.createClient; }
158
+ get: function () { return chunkXZYJBJ2K_cjs.createClient; }
159
159
  });
160
160
  Object.defineProperty(exports, "WorkflowsResource", {
161
161
  enumerable: true,
@@ -171,7 +171,7 @@ Object.defineProperty(exports, "TrendRadarResource", {
171
171
  });
172
172
  Object.defineProperty(exports, "TrendsResource", {
173
173
  enumerable: true,
174
- get: function () { return chunkGHVCV4S5_cjs.TrendsResource; }
174
+ get: function () { return chunkHVF5DRGQ_cjs.TrendsResource; }
175
175
  });
176
176
  Object.defineProperty(exports, "TutorialsResource", {
177
177
  enumerable: true,
@@ -191,7 +191,7 @@ Object.defineProperty(exports, "VideoProResource", {
191
191
  });
192
192
  Object.defineProperty(exports, "VoicesResource", {
193
193
  enumerable: true,
194
- get: function () { return chunkR63TTR35_cjs.VoicesResource; }
194
+ get: function () { return chunk3CB4WYEY_cjs.VoicesResource; }
195
195
  });
196
196
  Object.defineProperty(exports, "WebhooksResource", {
197
197
  enumerable: true,
@@ -391,7 +391,7 @@ Object.defineProperty(exports, "GalleryResource", {
391
391
  });
392
392
  Object.defineProperty(exports, "JobsResource", {
393
393
  enumerable: true,
394
- get: function () { return chunk5LI4CVJB_cjs.JobsResource; }
394
+ get: function () { return chunkHW3CSUVC_cjs.JobsResource; }
395
395
  });
396
396
  Object.defineProperty(exports, "KEEPER_KINDS", {
397
397
  enumerable: true,
@@ -419,7 +419,7 @@ Object.defineProperty(exports, "CompetitorsResource", {
419
419
  });
420
420
  Object.defineProperty(exports, "ContentRightsResource", {
421
421
  enumerable: true,
422
- get: function () { return chunk3OARKXWT_cjs.ContentRightsResource; }
422
+ get: function () { return chunk4DCXJ77J_cjs.ContentRightsResource; }
423
423
  });
424
424
  Object.defineProperty(exports, "CopilotResource", {
425
425
  enumerable: true,
@@ -427,19 +427,19 @@ Object.defineProperty(exports, "CopilotResource", {
427
427
  });
428
428
  Object.defineProperty(exports, "CallbackAuth", {
429
429
  enumerable: true,
430
- get: function () { return chunkKBRMAEBT_cjs.CallbackAuth; }
430
+ get: function () { return chunkZVG5ODVY_cjs.CallbackAuth; }
431
431
  });
432
432
  Object.defineProperty(exports, "NodaroClientCore", {
433
433
  enumerable: true,
434
- get: function () { return chunkKBRMAEBT_cjs.NodaroClientCore; }
434
+ get: function () { return chunkZVG5ODVY_cjs.NodaroClientCore; }
435
435
  });
436
436
  Object.defineProperty(exports, "StaticTokenAuth", {
437
437
  enumerable: true,
438
- get: function () { return chunkKBRMAEBT_cjs.StaticTokenAuth; }
438
+ get: function () { return chunkZVG5ODVY_cjs.StaticTokenAuth; }
439
439
  });
440
440
  Object.defineProperty(exports, "supabaseAuth", {
441
441
  enumerable: true,
442
- get: function () { return chunkKBRMAEBT_cjs.supabaseAuth; }
442
+ get: function () { return chunkZVG5ODVY_cjs.supabaseAuth; }
443
443
  });
444
444
  Object.defineProperty(exports, "AlreadyRunningError", {
445
445
  enumerable: true,
@@ -579,7 +579,7 @@ Object.defineProperty(exports, "AppsResource", {
579
579
  });
580
580
  Object.defineProperty(exports, "AudioResource", {
581
581
  enumerable: true,
582
- get: function () { return chunkGA4LZZKQ_cjs.AudioResource; }
582
+ get: function () { return chunkPGT4BXR2_cjs.AudioResource; }
583
583
  });
584
584
  Object.defineProperty(exports, "BillingResource", {
585
585
  enumerable: true,
@@ -587,7 +587,7 @@ Object.defineProperty(exports, "BillingResource", {
587
587
  });
588
588
  Object.defineProperty(exports, "CastSwapResource", {
589
589
  enumerable: true,
590
- get: function () { return chunkAAUVNTWE_cjs.CastSwapResource; }
590
+ get: function () { return chunkQTO2U6JZ_cjs.CastSwapResource; }
591
591
  });
592
592
  Object.defineProperty(exports, "CatalogsResource", {
593
593
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -20,7 +20,7 @@ export { ApplyEdlInput, AudioSyncInput, AudioSyncOffset, AudioSyncResult, AudioS
20
20
  export { AlreadyRunningError, AppRunVersionChangedError, CREDIT_CAP_CODES, ContinuationPreviewPendingError, ContinuationRefusedError, CreditCapCode, CreditCapExceededError, ForbiddenError, HeldFinalRun, IMPORT_REFUSAL_CODES, ImportRefusalCode, ImportRefusedError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, MODEL_UNAVAILABLE_CODES, ModelUnavailableCode, ModelUnavailableError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictCode, WorkflowConflictError, throwFromResponse } from './entries/errors.cjs';
21
21
  export { CancelExecutionParams, ExecutionStatus, ExecutionTriggerType, ExecutionsResource, ListExecutionsForWorkflowParams, ListExecutionsPage, NodeExecutionState, WorkflowExecution, WorkflowExecutionSummary } from './entries/executions.cjs';
22
22
  export { BrowseGalleryParams, GalleryItem, GalleryMediaType, GalleryPage, GalleryResource, ToggleFavoriteResult } from './entries/gallery.cjs';
23
- export { CancelJobResult, CreditStatus, CreditsHint, DeleteJobResult, InputRefusedHint, Job, JobErrorHint, JobFromUploadParams, JobQueueInfo, JobRating, JobRatingFilter, JobSessionRef, JobSource, JobStatus, JobStatusResult, JobsResource, ListJobsPage, ListJobsParams, PolicyBlockHint, QueueTimeoutHint, RateJobResult, SafetyBlockHint } from './entries/jobs.cjs';
23
+ export { CancelJobResult, CreditStatus, CreditsHint, DeleteJobResult, InputRefusedHint, Job, JobErrorHint, JobFromUploadParams, JobQueueInfo, JobRating, JobRatingFilter, JobSessionRef, JobSource, JobStatus, JobStatusResult, JobsResource, ListJobsPage, ListJobsParams, PolicyBlockHint, QueueTimeoutHint, RateJobResult, RequestRefusedHint, SafetyBlockHint } from './entries/jobs.cjs';
24
24
  export { CopyKeeperResult, KEEPER_KINDS, KeeperCatalogItem, KeeperCatalogPage, KeeperCatalogParams, KeeperKind, KeepersResource, SetKeeperCatalogInput, SetKeeperCatalogResult } from './entries/keepers.cjs';
25
25
  export { LibraryAsset, LibraryResource, ListLibraryParams, ListLibraryResult } from './entries/library.cjs';
26
26
  export { LlmResource, LlmStructuredInput, LlmStructuredJobInput, LlmStructuredJobOutput, LlmStructuredResult } from './entries/llm.cjs';
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export { ApplyEdlInput, AudioSyncInput, AudioSyncOffset, AudioSyncResult, AudioS
20
20
  export { AlreadyRunningError, AppRunVersionChangedError, CREDIT_CAP_CODES, ContinuationPreviewPendingError, ContinuationRefusedError, CreditCapCode, CreditCapExceededError, ForbiddenError, HeldFinalRun, IMPORT_REFUSAL_CODES, ImportRefusalCode, ImportRefusedError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, MODEL_UNAVAILABLE_CODES, ModelUnavailableCode, ModelUnavailableError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictCode, WorkflowConflictError, throwFromResponse } from './entries/errors.js';
21
21
  export { CancelExecutionParams, ExecutionStatus, ExecutionTriggerType, ExecutionsResource, ListExecutionsForWorkflowParams, ListExecutionsPage, NodeExecutionState, WorkflowExecution, WorkflowExecutionSummary } from './entries/executions.js';
22
22
  export { BrowseGalleryParams, GalleryItem, GalleryMediaType, GalleryPage, GalleryResource, ToggleFavoriteResult } from './entries/gallery.js';
23
- export { CancelJobResult, CreditStatus, CreditsHint, DeleteJobResult, InputRefusedHint, Job, JobErrorHint, JobFromUploadParams, JobQueueInfo, JobRating, JobRatingFilter, JobSessionRef, JobSource, JobStatus, JobStatusResult, JobsResource, ListJobsPage, ListJobsParams, PolicyBlockHint, QueueTimeoutHint, RateJobResult, SafetyBlockHint } from './entries/jobs.js';
23
+ export { CancelJobResult, CreditStatus, CreditsHint, DeleteJobResult, InputRefusedHint, Job, JobErrorHint, JobFromUploadParams, JobQueueInfo, JobRating, JobRatingFilter, JobSessionRef, JobSource, JobStatus, JobStatusResult, JobsResource, ListJobsPage, ListJobsParams, PolicyBlockHint, QueueTimeoutHint, RateJobResult, RequestRefusedHint, SafetyBlockHint } from './entries/jobs.js';
24
24
  export { CopyKeeperResult, KEEPER_KINDS, KeeperCatalogItem, KeeperCatalogPage, KeeperCatalogParams, KeeperKind, KeepersResource, SetKeeperCatalogInput, SetKeeperCatalogResult } from './entries/keepers.js';
25
25
  export { LibraryAsset, LibraryResource, ListLibraryParams, ListLibraryResult } from './entries/library.js';
26
26
  export { LlmResource, LlmStructuredInput, LlmStructuredJobInput, LlmStructuredJobOutput, LlmStructuredResult } from './entries/llm.js';
package/dist/index.js CHANGED
@@ -54,16 +54,16 @@ import './chunk-M6Y5TOYE.js';
54
54
  import './chunk-KARJ7P7Y.js';
55
55
  import './chunk-SUCHGNYT.js';
56
56
  import './chunk-SLPD47SR.js';
57
- export { NodaroClient, createClient } from './chunk-YT7HGYVO.js';
57
+ export { NodaroClient, createClient } from './chunk-QUYZCZ33.js';
58
58
  export { WorkflowsResource } from './chunk-33HT46A3.js';
59
59
  export { WorkspacesResource } from './chunk-Z5GLY4R3.js';
60
60
  export { TrendRadarResource } from './chunk-TLTPIS2A.js';
61
- export { TrendsResource } from './chunk-H3HUZT3T.js';
61
+ export { TrendsResource } from './chunk-OVFH7L2T.js';
62
62
  export { TutorialsResource } from './chunk-HPXE3NZW.js';
63
63
  export { UploadsResource } from './chunk-P2C33IOF.js';
64
64
  export { UserSettingsResource } from './chunk-LR5TGCJP.js';
65
65
  export { VideoProResource } from './chunk-ERLXU47J.js';
66
- export { VoicesResource } from './chunk-T7N7DFQJ.js';
66
+ export { VoicesResource } from './chunk-CRIQLLR2.js';
67
67
  export { WebhooksResource } from './chunk-YN6CBIIB.js';
68
68
  export { ReduceResource } from './chunk-IHKIYVZQ.js';
69
69
  export { SavedPostsResource } from './chunk-NCCBS6GU.js';
@@ -93,23 +93,23 @@ export { DeveloperAppsResource } from './chunk-65E3JBFZ.js';
93
93
  export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from './chunk-T23YD5BR.js';
94
94
  export { ExecutionsResource, OUTPUT_BEARING_NODE_STATUSES, nodeStateMayCarryOutput } from './chunk-22XXTB2R.js';
95
95
  export { GalleryResource } from './chunk-JDEZHITT.js';
96
- export { JobsResource } from './chunk-A42R7UT7.js';
96
+ export { JobsResource } from './chunk-SVWEWBXI.js';
97
97
  export { KEEPER_KINDS, KeepersResource } from './chunk-MQWZFWHE.js';
98
98
  export { LibraryResource } from './chunk-P6E4QDJN.js';
99
99
  export { CollectionsResource } from './chunk-4WRDR4GN.js';
100
100
  export { CommunityResource } from './chunk-SFB4YLCS.js';
101
101
  export { CompetitorsResource } from './chunk-BU5A6K4C.js';
102
- export { ContentRightsResource } from './chunk-K2VWXAGK.js';
102
+ export { ContentRightsResource } from './chunk-HAS6PMQN.js';
103
103
  export { CopilotResource } from './chunk-MQRPXZW5.js';
104
104
  import './chunk-A75Q7UEU.js';
105
- export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from './chunk-NODNRXHA.js';
105
+ export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from './chunk-S4BERJXU.js';
106
106
  export { AlreadyRunningError, AppRunVersionChangedError, CREDIT_CAP_CODES, ContinuationPreviewPendingError, ContinuationRefusedError, CreditCapExceededError, ForbiddenError, IMPORT_REFUSAL_CODES, ImportRefusedError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, MODEL_UNAVAILABLE_CODES, ModelUnavailableError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictError, throwFromResponse } from './chunk-WNXX3B2A.js';
107
107
  export { OBJECT_ASPECT_DEFAULTS as CREATURE_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS as CREATURE_ASPECT_OPTIONS, CREATURE_ASSET_TYPES, CREATURE_ATTACH_COLUMNS, CreaturesResource } from './chunk-HUYI5G3D.js';
108
108
  export { CreditsResource } from './chunk-7QK2NXJA.js';
109
109
  export { AppsResource } from './chunk-7LODCIQK.js';
110
- export { AudioResource } from './chunk-3QFTP5P5.js';
110
+ export { AudioResource } from './chunk-OHC4JIUP.js';
111
111
  export { BillingResource } from './chunk-VQOUF4F5.js';
112
- export { CastSwapResource } from './chunk-E3ZMKMY7.js';
112
+ export { CastSwapResource } from './chunk-DHJRS65Q.js';
113
113
  export { CatalogsResource } from './chunk-KG4R454Z.js';
114
114
  export { CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, CharactersResource, PEOPLE, PERSON_DIMENSION_LABELS, PERSON_DIMENSION_ORDER, buildPersonHints, buildPersonSeedPrompt } from './chunk-CBDUHYTR.js';
115
115
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodaro/sdk",
3
- "version": "2.64.0",
3
+ "version": "2.65.0",
4
4
  "description": "Typed REST client for the Nodaro API — workflows, jobs, executions, apps, characters, and more.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -332,8 +332,8 @@
332
332
  "test:watch": "vitest"
333
333
  },
334
334
  "dependencies": {
335
- "@nodaro/shared": "^3.54.0",
336
- "@nodaro/prompts": "^1.49.0"
335
+ "@nodaro/shared": "^3.54.1",
336
+ "@nodaro/prompts": "^1.50.0"
337
337
  },
338
338
  "peerDependencies": {
339
339
  "@fingerprintjs/fingerprintjs": "^5.2.0",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/content-rights.ts"],"names":[],"mappings":";;;AA8CO,IAAM,wBAAN,MAA4B;AAAA,EACjC,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA,EAGpB,MAAM,WAAA,GAAiD;AACrD,IAAA,MAAM,MAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAA4C,OAAO,gCAAgC,CAAA;AACjH,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,QAAQ,KAAA,EAAwF;AACpG,IAAA,MAAM,GAAA,GAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAA6C,QAAQ,4BAAA,EAA8B,EAAE,IAAA,EAAM,KAAA,EAAO,CAAA;AAChI,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAM,aAAA,GAA4D;AAChE,IAAA,MAAM,MAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAAqD,OAAO,kCAAkC,CAAA;AAC5H,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,UAAU,KAAA,EAA4E;AAC1F,IAAA,MAAM,GAAA,GAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAA8C,QAAQ,kCAAA,EAAoC,EAAE,IAAA,EAAM,KAAA,EAAO,CAAA;AACvI,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AAAA;AAAA,EAGA,MAAM,mBAAA,GAAqD;AACzD,IAAA,MAAM,MAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAAwC,UAAU,kCAAkC,CAAA;AAClH,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AACF","file":"chunk-3OARKXWT.cjs","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\n\n/**\n * Content rights — the declaration a person confirms before a link is\n * imported, and the confirmation a download then carries. Mirrors\n * `/v1/content-rights/*` (`backend/src/routes/content-rights.ts`).\n *\n * The flow: show {@link ContentRightsResource.declaration}'s text with a\n * checkbox, call {@link ContentRightsResource.confirm} with the link once it\n * is ticked, and pass the answered `id` as `confirmationId` to\n * `media.downloadVideo`. One confirmation is good for one download of that\n * link, by the same account, within an hour. Whether a download WITHOUT a\n * confirmation is refused is the deployment's setting\n * (`content_rights_required`); a client always sends one.\n *\n * An import through an API key or an AI agent has nobody to tick a box: the\n * person authorizes those imports ONCE, in their own session, with\n * {@link ContentRightsResource.authorize} (the standing authorization), and\n * every such import is then recorded as a confirmation derived from it.\n * {@link ContentRightsResource.authorization} reads the current one and\n * {@link ContentRightsResource.revokeAuthorization} ends it.\n */\n\nexport interface ContentRightsDeclaration {\n /** The declaration's version; a confirmation names the version it agreed to. */\n version: number\n /** The text the person confirms, verbatim. */\n text: string\n}\n\nexport interface ContentRightsConfirmation {\n /** The id a download carries as `confirmationId`. */\n id: string\n declarationVersion: number\n /** After this the confirmation no longer opens a download (ISO 8601). */\n expiresAt: string\n}\n\nexport interface ContentRightsAuthorization {\n id: string\n /** The declaration version the person authorized; a newer declaration asks for a new authorization. */\n declarationVersion: number\n /** When it was given (ISO 8601). */\n createdAt: string\n}\n\nexport class ContentRightsResource {\n constructor(private client: NodaroClientCore) {}\n\n /** `GET /v1/content-rights/declaration` → the current text and its version. Public: needs no credential. */\n async declaration(): Promise<ContentRightsDeclaration> {\n const res = await this.client.request<{ data: ContentRightsDeclaration }>(\"GET\", \"/v1/content-rights/declaration\")\n return res.data\n }\n\n /**\n * `POST /v1/content-rights/confirm` → the confirmation for one link, under\n * the declaration version the person saw. `409 rights_confirmation_stale`\n * when the declaration changed since: read it again and ask again.\n */\n async confirm(input: { url: string; declarationVersion: number }): Promise<ContentRightsConfirmation> {\n const res = await this.client.request<{ data: ContentRightsConfirmation }>(\"POST\", \"/v1/content-rights/confirm\", { body: input })\n return res.data\n }\n\n /**\n * `GET /v1/content-rights/authorization` → the account's standing\n * authorization for imports through its API keys and AI agents, or `null`\n * when there is none (never given, revoked, or given under an older\n * declaration than the current one).\n */\n async authorization(): Promise<ContentRightsAuthorization | null> {\n const res = await this.client.request<{ data: ContentRightsAuthorization | null }>(\"GET\", \"/v1/content-rights/authorization\")\n return res.data\n }\n\n /**\n * `POST /v1/content-rights/authorization` → records that the person\n * authorized imports through their keys and agents under the declaration\n * version they saw. The person's own session only: a key or an agent\n * answers `403 forbidden`. `409 rights_confirmation_stale` when the\n * declaration changed since: read it again and ask again.\n */\n async authorize(input: { declarationVersion: number }): Promise<ContentRightsAuthorization> {\n const res = await this.client.request<{ data: ContentRightsAuthorization }>(\"POST\", \"/v1/content-rights/authorization\", { body: input })\n return res.data\n }\n\n /** `DELETE /v1/content-rights/authorization` → revokes the standing authorization (the record stays). The person's own session only. */\n async revokeAuthorization(): Promise<{ revoked: boolean }> {\n const res = await this.client.request<{ data: { revoked: boolean } }>(\"DELETE\", \"/v1/content-rights/authorization\")\n return res.data\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/audio.ts"],"names":[],"mappings":";AA+CO,IAAM,gBAAN,MAAoB;AAAA,EACzB,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQpB,SAAS,KAAA,EAAoI;AAC3I,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA2B,MAAA,EAAQ,wBAAwB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EAC/F;AAAA;AAAA,EAGA,QAAQ,KAAA,EAAyD;AAC/D,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA2B,MAAA,EAAQ,uBAAuB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EAC9F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,QAAQ,KAAA,EAQuB;AAC7B,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA2B,MAAA,EAAQ,gBAAgB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EACvF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBA,IAAI,KAAA,EAY2B;AAC7B,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA2B,MAAA,EAAQ,iBAAiB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EACxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,aAAa,KAAA,EAOkB;AAC7B,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA2B,MAAA,EAAQ,qBAAqB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EAC5F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,WAAW,KAAA,EAMoB;AAC7B,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA2B,MAAA,EAAQ,mBAAmB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EAC1F;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,QAAQ,KAAA,EAA+G;AACrH,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA2B,MAAA,EAAQ,qBAAqB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EAC5F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAyBA,WAAW,KAAA,EAOoB;AAC7B,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA2B,MAAA,EAAQ,kBAAkB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EACzF;AACF","file":"chunk-3QFTP5P5.js","sourcesContent":["import type { AudioFxPreset } from \"@nodaro/shared/media\"\nimport type { TranscribeProvider } from \"@nodaro/shared/models\"\nimport type { Transcript } from \"@nodaro/shared/edl\"\nexport type { TranscribeProvider } from \"@nodaro/shared/models\"\nimport type { NodaroClientCore } from \"../core.js\"\n\n/**\n * One word of a {@link AudioResource.transcribe} result — caption-shaped, in\n * MILLISECONDS, and structurally the `captions[]` entry `media.addCaptions()`\n * takes, so a word list can be passed straight through. `speaker` is present\n * only on a diarized `elevenlabs-stt` run.\n */\nexport interface TranscribeWord {\n text: string\n startMs: number\n endMs: number\n timestampMs?: number | null\n confidence?: number | null\n speaker?: string\n}\n\n/**\n * A completed transcribe job's `output_data` (read it off `jobs.get(jobId)`).\n *\n * Mind the units: `words` and `json.words` are in MILLISECONDS, while the\n * top-level `segments` are in SECONDS (the raw per-utterance ranges) — present\n * only on the legacy lanes; `elevenlabs-stt` returns none, so read `words`.\n */\nexport interface TranscribeJobOutput {\n /** The full transcript as one string. */\n text: string\n /** Detected (or requested) language code. */\n language?: string\n /** Per-word timings, ms — present on the word-level lanes. */\n words?: TranscribeWord[]\n /** The normalized {@link Transcript} (ms), the shape `edit.*` consumes. */\n json?: Transcript\n /** Per-utterance ranges in SECONDS — not ms, unlike everything above. */\n segments?: Array<{ start: number; end: number; text: string }>\n}\n\n/**\n * Audio primitives — the building blocks Voice Changer Pro composes internally\n * (separation, isolation, effect, mix, level) plus speech-to-text, exposed\n * standalone so a consumer can run any single step or assemble its own\n * pipeline. Each returns a job id to poll (`jobs.get(jobId)`).\n */\nexport class AudioResource {\n constructor(private client: NodaroClientCore) {}\n\n /**\n * Separate an audio track into stems (`POST /v1/audio-separation`, Demucs).\n * `mode` `\"vocal_instrumental\"` (default) splits voice from music/SFX;\n * `\"stems\"` returns the full drums/bass/other/… breakdown. `quality`\n * `auto` (default) / `fast` / `best`.\n */\n separate(input: { audioUrl: string; mode?: \"vocal_instrumental\" | \"stems\"; quality?: \"auto\" | \"fast\" | \"best\" }): Promise<{ jobId: string }> {\n return this.client.request<{ jobId: string }>(\"POST\", \"/v1/audio-separation\", { body: input })\n }\n\n /** Isolate the primary voice and strip background noise (`POST /v1/audio-isolation`, ElevenLabs). */\n isolate(input: { audioUrl: string }): Promise<{ jobId: string }> {\n return this.client.request<{ jobId: string }>(\"POST\", \"/v1/audio-isolation\", { body: input })\n }\n\n /**\n * Apply a reverb / echo / telephone / megaphone effect to an audio track\n * (`POST /v1/audio-fx`) — the same presets VCP's `voiceFx` uses, standalone.\n * `mix` (0–100) is the reverb wet/dry; `delayMs` + `decay` drive `echo`/`custom`;\n * `eqLow`/`eqHigh` (dB) shape telephone/megaphone.\n */\n applyFx(input: {\n audioUrl: string\n preset?: AudioFxPreset\n mix?: number\n delayMs?: number\n decay?: number\n eqLow?: number\n eqHigh?: number\n }): Promise<{ jobId: string }> {\n return this.client.request<{ jobId: string }>(\"POST\", \"/v1/audio-fx\", { body: input })\n }\n\n /**\n * Layer multiple audio tracks into one (`POST /v1/mix-audio`). `audioUrls`\n * (2–20) are summed; optional `trackVolumes` (0–200% each, positionally) set\n * per-track level. `duck` puts a music bed under speech: every track EXCEPT\n * `duck.under` (the 0-based index of the voice track) dips while that track\n * is loud and rises back in its pauses (sidechain compression). `amount`\n * (0–100, default 75) is how hard; `thresholdDb` (-60–0, default -30),\n * `ratio` (1–20, overrides `amount`), `attackMs` (1–2000, default 20) and\n * `releaseMs` (10–9000, default 500) are optional fine controls. A ducked mix\n * sums its tracks rather than averaging them, so the voice keeps its level;\n * the price is the same with or without a duck. `endAt` (`\"longest\"`, the\n * default, or `\"voice\"`) says where the mix ends: `\"voice\"` ends it when the\n * voice (the `duck.under` track) ends (needs `duck`). A video URL is a track\n * too: its audio is mixed, and a video with no sound is a silent track.\n */\n mix(input: {\n audioUrls: string[]\n trackVolumes?: number[]\n duck?: {\n under: number\n amount?: number\n thresholdDb?: number\n ratio?: number\n attackMs?: number\n releaseMs?: number\n }\n endAt?: \"longest\" | \"voice\"\n }): Promise<{ jobId: string }> {\n return this.client.request<{ jobId: string }>(\"POST\", \"/v1/mix-audio\", { body: input })\n }\n\n /**\n * Adjust an audio (or a video's audio) level (`POST /v1/adjust-volume`):\n * `volume` % (default 100), `normalize` to loudnorm, and `fadeIn`/`fadeOut`\n * seconds. Provide `audioUrl` or `videoUrl`.\n */\n adjustVolume(input: {\n audioUrl?: string\n videoUrl?: string\n volume?: number\n normalize?: boolean\n fadeIn?: number\n fadeOut?: number\n }): Promise<{ jobId: string }> {\n return this.client.request<{ jobId: string }>(\"POST\", \"/v1/adjust-volume\", { body: input })\n }\n\n /**\n * Shift pitch and/or change tempo with Rubber Band (`POST /v1/pitch-tempo`):\n * `semitones` −12…+12 (default 0), `tempo` 0.5…2 with the pitch kept\n * (default 1; fixed at 1 for a video), `preserveFormants` (default true).\n * Provide exactly one of `audioUrl` or `videoUrl` — a video keeps its picture.\n * Input up to 30 minutes, priced per started minute.\n */\n pitchTempo(input: {\n audioUrl?: string\n videoUrl?: string\n semitones?: number\n tempo?: number\n preserveFormants?: boolean\n }): Promise<{ jobId: string }> {\n return this.client.request<{ jobId: string }>(\"POST\", \"/v1/pitch-tempo\", { body: input })\n }\n\n /**\n * Concatenate audio segments end-to-end (`POST /v1/combine-audio`). Each\n * segment is a `url` with an optional `[startTime, endTime]` sub-range.\n */\n combine(input: { segments: Array<{ url: string; startTime?: number; endTime?: number }> }): Promise<{ jobId: string }> {\n return this.client.request<{ jobId: string }>(\"POST\", \"/v1/combine-audio\", { body: input })\n }\n\n /**\n * Transcribe an audio (or video) track to text (`POST /v1/transcribe`).\n *\n * Three engines are accepted. `elevenlabs-stt` (Scribe) is always word-level,\n * flag or not, and is the only lane that honours `diarize` (who spoke) and\n * `tagAudioEvents` (laughter, applause, …); `incredibly-fast-whisper` returns\n * word timings when you ask for them. `whisper` returns NO word timings at\n * all — named explicitly or reached by OMITTING `provider`, which still falls\n * back to it — so asking it for them (`wordTimestamps: true`) is rejected with\n * a `400 validation_error` at ingress, before any credit is spent. A kinetic\n * caption render therefore has to name one of the other two.\n *\n * Poll `jobs.get(jobId)`; the finished job's `output_data` is a\n * {@link TranscribeJobOutput}: `text` (the whole transcript), `words`\n * (caption-shaped, in MILLISECONDS), `json` (the normalized\n * {@link Transcript}, also ms) — and a top-level `segments` array that is in\n * SECONDS, not ms.\n *\n * `words` is the caption source for a kinetic burn-in: hand it to\n * `media.addCaptions()` as `captions` with `autoTranscribe: false` and the\n * render uses those exact words (correct the `text` of an entry in between\n * and the fix is what burns in).\n */\n transcribe(input: {\n audioUrl: string\n provider?: TranscribeProvider\n language?: string\n diarize?: boolean\n tagAudioEvents?: boolean\n wordTimestamps?: boolean\n }): Promise<{ jobId: string }> {\n return this.client.request<{ jobId: string }>(\"POST\", \"/v1/transcribe\", { body: input })\n }\n}\n"]}