@nodaro/sdk 2.41.0 → 2.44.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.
- package/dist/{chunk-A7QSOD2S.cjs → chunk-34JMD6ZO.cjs} +6 -5
- package/dist/chunk-34JMD6ZO.cjs.map +1 -0
- package/dist/{chunk-F6ZAAB2C.cjs → chunk-3ZZWCHF5.cjs} +14 -14
- package/dist/{chunk-F6ZAAB2C.cjs.map → chunk-3ZZWCHF5.cjs.map} +1 -1
- package/dist/{chunk-QGOEQGAE.js → chunk-4UPVE662.js} +2 -2
- package/dist/chunk-4UPVE662.js.map +1 -0
- package/dist/{chunk-F6GENF6R.cjs → chunk-55ZX6TE3.cjs} +12 -9
- package/dist/chunk-55ZX6TE3.cjs.map +1 -0
- package/dist/{chunk-7IWVDWSP.js → chunk-6MQ2LTJZ.js} +6 -5
- package/dist/chunk-6MQ2LTJZ.js.map +1 -0
- package/dist/{chunk-WSSP544Y.js → chunk-6PI3CI7P.js} +8 -8
- package/dist/{chunk-WSSP544Y.js.map → chunk-6PI3CI7P.js.map} +1 -1
- package/dist/{chunk-OSX2GVZ2.cjs → chunk-7YHIFCJ4.cjs} +2 -2
- package/dist/chunk-7YHIFCJ4.cjs.map +1 -0
- package/dist/{chunk-PHY4SBOK.js → chunk-DAGJLS7W.js} +3 -3
- package/dist/{chunk-PHY4SBOK.js.map → chunk-DAGJLS7W.js.map} +1 -1
- package/dist/{chunk-RQH6IKDC.js → chunk-HKDIIFG2.js} +12 -9
- package/dist/chunk-HKDIIFG2.js.map +1 -0
- package/dist/{chunk-BLA44UCM.js → chunk-KFZOJBI5.js} +2 -2
- package/dist/chunk-KFZOJBI5.js.map +1 -0
- package/dist/{chunk-HAWVF6O4.cjs → chunk-MPQQC45L.cjs} +3 -3
- package/dist/{chunk-HAWVF6O4.cjs.map → chunk-MPQQC45L.cjs.map} +1 -1
- package/dist/{chunk-VCEYLJ2Q.cjs → chunk-QHXLMCBR.cjs} +2 -2
- package/dist/chunk-QHXLMCBR.cjs.map +1 -0
- package/dist/{chunk-JUON5NXA.js → chunk-RETNLKOC.js} +13 -2
- package/dist/chunk-RETNLKOC.js.map +1 -0
- package/dist/{chunk-VHSMOBU7.cjs → chunk-VYEGCEZ3.cjs} +13 -2
- package/dist/chunk-VYEGCEZ3.cjs.map +1 -0
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +104 -30
- package/dist/entries/cast-swap.d.ts +104 -30
- package/dist/entries/cast-swap.js +1 -1
- package/dist/entries/client.cjs +12 -12
- package/dist/entries/client.js +7 -7
- package/dist/entries/core.cjs +5 -5
- package/dist/entries/core.js +1 -1
- package/dist/entries/jobs.cjs +2 -2
- package/dist/entries/jobs.d.cts +11 -2
- package/dist/entries/jobs.d.ts +11 -2
- package/dist/entries/jobs.js +1 -1
- package/dist/entries/picker-catalogs.cjs +2 -2
- package/dist/entries/picker-catalogs.d.cts +8 -0
- package/dist/entries/picker-catalogs.d.ts +8 -0
- package/dist/entries/picker-catalogs.js +1 -1
- package/dist/entries/trends.cjs +2 -2
- package/dist/entries/trends.d.cts +42 -8
- package/dist/entries/trends.d.ts +42 -8
- package/dist/entries/trends.js +1 -1
- package/dist/entries/workflows.cjs +2 -2
- package/dist/entries/workflows.d.cts +65 -1
- package/dist/entries/workflows.d.ts +65 -1
- package/dist/entries/workflows.js +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -7
- package/package.json +3 -3
- package/dist/chunk-7IWVDWSP.js.map +0 -1
- package/dist/chunk-A7QSOD2S.cjs.map +0 -1
- package/dist/chunk-BLA44UCM.js.map +0 -1
- package/dist/chunk-F6GENF6R.cjs.map +0 -1
- package/dist/chunk-JUON5NXA.js.map +0 -1
- package/dist/chunk-OSX2GVZ2.cjs.map +0 -1
- package/dist/chunk-QGOEQGAE.js.map +0 -1
- package/dist/chunk-RQH6IKDC.js.map +0 -1
- package/dist/chunk-VCEYLJ2Q.cjs.map +0 -1
- package/dist/chunk-VHSMOBU7.cjs.map +0 -1
|
@@ -14,6 +14,12 @@ import '@nodaro/shared/organizations';
|
|
|
14
14
|
* photos if it fails, and is turned off with `prepareReferences: false`.
|
|
15
15
|
* Locations are not prepared.
|
|
16
16
|
*
|
|
17
|
+
* Engines: a run is made on Seedance 2.5 (`engine` left out, or
|
|
18
|
+
* `"seedance-2-5"`) or Kling 4 (`"kling-4"`). Kling 4 renders 720p (its
|
|
19
|
+
* default) or 1080p and has no draft; it makes a new take guided by the clip
|
|
20
|
+
* and pictures, so its Full Quality is a new take at 1080p rather than the
|
|
21
|
+
* same take re-rendered (`CastSwapFullQualityEstimate.kind`).
|
|
22
|
+
*
|
|
17
23
|
* Cloud edition only: `/v1/cast-swap` is served by the cloud plugin and 404s
|
|
18
24
|
* on self-hosted installs. `run()` answers 202 with a job id; follow it with
|
|
19
25
|
* `client.jobs.get(jobId)` / `client.jobs.getStatus(jobId)` like any other job.
|
|
@@ -29,18 +35,39 @@ import '@nodaro/shared/organizations';
|
|
|
29
35
|
* no reference and no `prePrompt` or `postPrompt`, more roles of a kind
|
|
30
36
|
* than allowed, more than 30 images in all, `draft: true` above 480p, a
|
|
31
37
|
* `prePrompt` or `postPrompt` over 4,000 characters, a `faceMasking` setting
|
|
32
|
-
* out of range), `
|
|
38
|
+
* out of range); on Kling 4, `draft_unsupported` (`draft: true`),
|
|
39
|
+
* `resolution_unsupported` (480p), `output_format_unsupported` (a MOV edit
|
|
40
|
+
* output) and `too_many_images` (more than 10 images in the run, across every
|
|
41
|
+
* role and fixed reference); `raw_reference_token` (also in a reference's `line`),
|
|
33
42
|
* `invalid_role_mention` (also any `{role:N}` in a reference's `line`),
|
|
34
43
|
* `unsafe_url`, `video_unreadable`, `clip_out_of_range` (4–30 s),
|
|
35
44
|
* `preview_out_of_range`, `no_roles_in_preview` (a preview with every role
|
|
36
45
|
* `inPreview: false`, always refused even with a prompt, or with no role kept
|
|
37
46
|
* in it that has images and no `prePrompt` or `postPrompt`), `prompt_too_long`
|
|
38
47
|
* (the prompt would build too long: a `{role:N}` reads as the role's name when
|
|
39
|
-
* it sends no images); 401; 402 `insufficient_credits` (`run()` only); 404
|
|
48
|
+
* it sends no images; Kling 4's cap is 8,000 characters); 401; 402 `insufficient_credits` (`run()` only); 404
|
|
40
49
|
* (a `sessionId` you may not use, `run()` only); 422 `job_blocked` (`run()`
|
|
41
50
|
* only); 503 `host_too_old` (both); 503 `estimate_unavailable` (`estimate()`
|
|
42
51
|
* only).
|
|
43
52
|
*/
|
|
53
|
+
/**
|
|
54
|
+
* The video engine a Cast Swap run is made on. Left out = `"seedance-2-5"`.
|
|
55
|
+
*
|
|
56
|
+
* - `"seedance-2-5"`: 480p (the default, a draft unless `draft: false`), 720p
|
|
57
|
+
* or 1080p; Full Quality re-renders a draft's own take at 1080p.
|
|
58
|
+
* - `"kling-4"`: 720p (the default) or 1080p, never a draft (`draft: true`
|
|
59
|
+
* answers 400 `draft_unsupported`); Full Quality makes a new take at 1080p
|
|
60
|
+
* from a completed 720p run's inputs. A preview is still 4 s from
|
|
61
|
+
* `previewStart`.
|
|
62
|
+
*/
|
|
63
|
+
type CastSwapEngine = "seedance-2-5" | "kling-4";
|
|
64
|
+
/**
|
|
65
|
+
* Where a Kling 4 run cuts the clip to whole seconds (Kling renders whole
|
|
66
|
+
* seconds; asked for more than the clip, it would stretch the motion):
|
|
67
|
+
* - `"cut-end"` (the default): drop the fraction of a second at its end;
|
|
68
|
+
* - `"cut-start"`: drop it at its start.
|
|
69
|
+
*/
|
|
70
|
+
type CastSwapKlingLength = "cut-end" | "cut-start";
|
|
44
71
|
/** Whether a swapped subject takes this trait from the references (`"new"`) or keeps the video's (`"original"`). */
|
|
45
72
|
type CastSwapTraitSource = "new" | "original";
|
|
46
73
|
/**
|
|
@@ -220,11 +247,28 @@ interface CastSwapParams {
|
|
|
220
247
|
preview?: boolean;
|
|
221
248
|
/** Where the preview starts, in seconds. Default 0. */
|
|
222
249
|
previewStart?: number;
|
|
223
|
-
/**
|
|
250
|
+
/**
|
|
251
|
+
* The video engine (see {@link CastSwapEngine}). Default `"seedance-2-5"`.
|
|
252
|
+
* The job records it in `input_data.engine`, and a completed job's output
|
|
253
|
+
* in its `engine`. A Cast Swap engine older than Kling 4 support ignores
|
|
254
|
+
* the field and runs Seedance 2.5: a Kling 4 quote names `engine:
|
|
255
|
+
* "kling-4"`, so check the estimate's `engine` before running.
|
|
256
|
+
*/
|
|
257
|
+
engine?: CastSwapEngine;
|
|
258
|
+
/**
|
|
259
|
+
* Kling 4 only (Seedance 2.5 ignores it): which end of the clip is cut to
|
|
260
|
+
* whole seconds (see {@link CastSwapKlingLength}). Default `"cut-end"`.
|
|
261
|
+
*/
|
|
262
|
+
klingLength?: CastSwapKlingLength;
|
|
263
|
+
/**
|
|
264
|
+
* The output resolution. Seedance 2.5: `"480p"` (default), `"720p"` or
|
|
265
|
+
* `"1080p"`. Kling 4: `"720p"` (default) or `"1080p"`; `"480p"` answers 400.
|
|
266
|
+
*/
|
|
224
267
|
resolution?: "480p" | "720p" | "1080p";
|
|
225
268
|
/**
|
|
226
|
-
* Render as a draft. Defaults to `true` at 480p and
|
|
227
|
-
* with `"720p"` or `"1080p"` answers 400 (draft is
|
|
269
|
+
* Render as a draft (Seedance 2.5 only). Defaults to `true` at 480p and
|
|
270
|
+
* `false` above it; `true` with `"720p"` or `"1080p"` answers 400 (draft is
|
|
271
|
+
* 480p only). Kling 4 has no draft: `true` answers 400 `draft_unsupported`.
|
|
228
272
|
*/
|
|
229
273
|
draft?: boolean;
|
|
230
274
|
/**
|
|
@@ -248,10 +292,16 @@ interface CastSwapParams {
|
|
|
248
292
|
}
|
|
249
293
|
/** What a run would cost, in credits. */
|
|
250
294
|
interface CastSwapEstimate {
|
|
295
|
+
/**
|
|
296
|
+
* The engine the run would use. Sent by an engine that knows Kling 4 on a
|
|
297
|
+
* Kling 4 quote (`"kling-4"`); absent = Seedance 2.5.
|
|
298
|
+
*/
|
|
299
|
+
engine?: CastSwapEngine;
|
|
251
300
|
/**
|
|
252
301
|
* What is held when the run starts: `breakdown.castSwap +
|
|
253
|
-
* breakdown.seedance + breakdown.references
|
|
254
|
-
*
|
|
302
|
+
* breakdown.seedance + breakdown.references` (on Kling 4,
|
|
303
|
+
* `breakdown.kling` in place of `breakdown.seedance`), plus
|
|
304
|
+
* `breakdown.masking` with face masking `"always"`. The run is charged what it actually costs, which
|
|
255
305
|
* is expected to be `expectedCredits`.
|
|
256
306
|
*/
|
|
257
307
|
totalCredits: number;
|
|
@@ -264,7 +314,9 @@ interface CastSwapEstimate {
|
|
|
264
314
|
* `totalCredits` is what is held when the run starts; the run is charged
|
|
265
315
|
* what it actually costs.
|
|
266
316
|
*
|
|
267
|
-
* Absent from an older Cast Swap engine: read `totalCredits` then.
|
|
317
|
+
* Absent from an older Cast Swap engine: read `totalCredits` then. On
|
|
318
|
+
* Kling 4 it equals `totalCredits` (Kling renders exactly the length asked
|
|
319
|
+
* for, so the hold is what it settles at).
|
|
268
320
|
*/
|
|
269
321
|
expectedCredits?: number;
|
|
270
322
|
/**
|
|
@@ -276,6 +328,8 @@ interface CastSwapEstimate {
|
|
|
276
328
|
* clip in and about as much out), never above `seedance`. It takes
|
|
277
329
|
* `seedance`'s place in `expectedCredits`; it is not added to it. Absent
|
|
278
330
|
* from an older Cast Swap engine, like `expectedCredits`;
|
|
331
|
+
* - `kling`: Kling 4 only, in place of `seedance` and `seedanceExpected`:
|
|
332
|
+
* what the Kling take costs (held and charged alike);
|
|
279
333
|
* - `references`: preparing the reference pictures (0 when
|
|
280
334
|
* `prepareReferences` is off or there is nothing to prepare);
|
|
281
335
|
* - `masking`: masking the faces, present only when `faceMasking` is on.
|
|
@@ -287,9 +341,10 @@ interface CastSwapEstimate {
|
|
|
287
341
|
*/
|
|
288
342
|
breakdown: {
|
|
289
343
|
castSwap: number;
|
|
290
|
-
seedance
|
|
344
|
+
seedance?: number;
|
|
291
345
|
references: number;
|
|
292
346
|
seedanceExpected?: number;
|
|
347
|
+
kling?: number;
|
|
293
348
|
masking?: number;
|
|
294
349
|
};
|
|
295
350
|
/**
|
|
@@ -300,9 +355,9 @@ interface CastSwapEstimate {
|
|
|
300
355
|
*/
|
|
301
356
|
maskingCredits?: number;
|
|
302
357
|
/**
|
|
303
|
-
* `true` when the video is made at Auto length (every run
|
|
304
|
-
* charge is expected to come out lower than `totalCredits`, at about
|
|
305
|
-
* `expectedCredits`.
|
|
358
|
+
* `true` when the video is made at Auto length (every Seedance 2.5 run): the
|
|
359
|
+
* final charge is expected to come out lower than `totalCredits`, at about
|
|
360
|
+
* `expectedCredits`. `false` on Kling 4.
|
|
306
361
|
*/
|
|
307
362
|
settlesLower: boolean;
|
|
308
363
|
}
|
|
@@ -319,22 +374,37 @@ interface CastSwapRunOptions {
|
|
|
319
374
|
idempotencyKey?: string;
|
|
320
375
|
}
|
|
321
376
|
/**
|
|
322
|
-
* What
|
|
323
|
-
*
|
|
377
|
+
* What a Full Quality version would be: `"same-take"` re-renders a Seedance
|
|
378
|
+
* 2.5 draft's own take at 1080p; `"new-take"` makes a new Kling 4 take at
|
|
379
|
+
* 1080p from a 720p run's inputs (it will not match the 720p run frame for
|
|
380
|
+
* frame). The 720p run or draft stays either way.
|
|
381
|
+
*/
|
|
382
|
+
type CastSwapFullQualityKind = "same-take" | "new-take";
|
|
383
|
+
/**
|
|
384
|
+
* What a Full Quality version of a run would cost
|
|
385
|
+
* (`POST /v1/cast-swap/:jobId/full-quality/estimate`): a Seedance 2.5 draft,
|
|
386
|
+
* or a completed Kling 4 run at 720p.
|
|
324
387
|
*/
|
|
325
388
|
interface CastSwapFullQualityEstimate {
|
|
326
|
-
/**
|
|
389
|
+
/**
|
|
390
|
+
* Which Full Quality this is ({@link CastSwapFullQualityKind}), so it can
|
|
391
|
+
* be worded right. Absent from an older Cast Swap engine: `"same-take"`.
|
|
392
|
+
*/
|
|
393
|
+
kind?: CastSwapFullQualityKind;
|
|
394
|
+
/** The quote in credits: `breakdown.castSwap` + `breakdown.seedanceHd` (same take) or `breakdown.kling` (new take). */
|
|
327
395
|
totalCredits: number;
|
|
328
396
|
/**
|
|
329
|
-
* `castSwap`: the Full Quality job's own steps; `seedanceHd
|
|
330
|
-
* render of the draft's take (0 when an earlier try of this draft
|
|
331
|
-
* finished that render, which is then reused)
|
|
397
|
+
* `castSwap`: the Full Quality job's own steps; `seedanceHd` (a same take):
|
|
398
|
+
* the 1080p render of the draft's take (0 when an earlier try of this draft
|
|
399
|
+
* already finished that render, which is then reused); `kling` (a new take,
|
|
400
|
+
* in place of `seedanceHd`): the new Kling 4 take at 1080p.
|
|
332
401
|
*/
|
|
333
402
|
breakdown: {
|
|
334
403
|
castSwap: number;
|
|
335
|
-
seedanceHd
|
|
404
|
+
seedanceHd?: number;
|
|
405
|
+
kling?: number;
|
|
336
406
|
};
|
|
337
|
-
/** ISO time until which the
|
|
407
|
+
/** ISO time until which the run can be finished at Full Quality (7 days after it completed). */
|
|
338
408
|
availableUntil: string;
|
|
339
409
|
}
|
|
340
410
|
/** Options for {@link CastSwapResource.fullQuality}. */
|
|
@@ -345,7 +415,7 @@ interface CastSwapFullQualityParams {
|
|
|
345
415
|
/** The Full Quality job (`POST /v1/cast-swap/:jobId/full-quality`). */
|
|
346
416
|
interface CastSwapFullQualityResult {
|
|
347
417
|
jobId: string;
|
|
348
|
-
/** `true` when this
|
|
418
|
+
/** `true` when this run's Full Quality was already running or done: that job is answered, nothing new is started or charged. */
|
|
349
419
|
existing?: boolean;
|
|
350
420
|
}
|
|
351
421
|
/**
|
|
@@ -355,7 +425,8 @@ interface CastSwapFullQualityResult {
|
|
|
355
425
|
* - `not_found` (404): not your job, or not a Cast Swap run; also a
|
|
356
426
|
* `sessionId` you may not use;
|
|
357
427
|
* - `not_completed` (409): the run has not finished;
|
|
358
|
-
* - `not_a_draft` (409): the run
|
|
428
|
+
* - `not_a_draft` (409): the run is neither a Seedance 2.5 draft nor a
|
|
429
|
+
* Kling 4 run at 720p (a Kling 4 run at 1080p is already Full Quality);
|
|
359
430
|
* - `draft_expired` (410): more than 7 days after the draft completed, or
|
|
360
431
|
* the draft can no longer be finished at Full Quality;
|
|
361
432
|
* - `full_quality_pending` (409, `details.retryable: true`): not final — an
|
|
@@ -392,21 +463,24 @@ declare class CastSwapResource {
|
|
|
392
463
|
/** Quote a run before starting it (`POST /v1/cast-swap/estimate`); spends nothing. */
|
|
393
464
|
estimate(params: CastSwapParams): Promise<CastSwapEstimate>;
|
|
394
465
|
/**
|
|
395
|
-
* Quote finishing a
|
|
466
|
+
* Quote finishing a run at Full Quality (`POST
|
|
396
467
|
* /v1/cast-swap/:jobId/full-quality/estimate`); spends nothing. `jobId` is a
|
|
397
|
-
* finished DRAFT run
|
|
468
|
+
* finished Seedance 2.5 DRAFT run, or a finished Kling 4 run at 720p (a Cast
|
|
469
|
+
* Swap or trend run); the quote's `kind` says whether it is the same take
|
|
470
|
+
* re-rendered or a new take. The quote
|
|
398
471
|
* does not look for a Full Quality already running: when one is,
|
|
399
472
|
* {@link fullQuality} answers it (`existing: true`) and charges nothing.
|
|
400
473
|
* Refusals: {@link CastSwapFullQualityRefusalCode}.
|
|
401
474
|
*/
|
|
402
475
|
fullQualityEstimate(jobId: string): Promise<CastSwapFullQualityEstimate>;
|
|
403
476
|
/**
|
|
404
|
-
* Finish a
|
|
405
|
-
*
|
|
406
|
-
*
|
|
477
|
+
* Finish a run at Full Quality (`POST /v1/cast-swap/:jobId/full-quality`):
|
|
478
|
+
* at 1080p, with the clip's audio, as a new job linked to the run — a
|
|
479
|
+
* Seedance 2.5 draft's own take re-rendered, or a new Kling 4 take from a
|
|
480
|
+
* 720p run's inputs (the quote's `kind`). SPENDS CREDITS: quote it first with
|
|
407
481
|
* {@link fullQualityEstimate}. Answers 202 `{ jobId }`, or 200
|
|
408
|
-
* `{ jobId, existing: true }` when this
|
|
409
|
-
* running or done (one per
|
|
482
|
+
* `{ jobId, existing: true }` when this run's Full Quality is already
|
|
483
|
+
* running or done (one per run; a failed one may be asked again). Follow
|
|
410
484
|
* the job with `client.jobs.get(jobId)`. No `Idempotency-Key` is taken: the
|
|
411
485
|
* server keys the job by the draft. The new job keeps the draft's origin.
|
|
412
486
|
* Refusals: {@link CastSwapFullQualityRefusalCode}.
|
|
@@ -414,4 +488,4 @@ declare class CastSwapResource {
|
|
|
414
488
|
fullQuality(jobId: string, params?: CastSwapFullQualityParams): Promise<CastSwapFullQualityResult>;
|
|
415
489
|
}
|
|
416
490
|
|
|
417
|
-
export { type CastSwapEstimate, type CastSwapFaceMasking, type CastSwapFaceMaskingZone, type CastSwapFullQualityEstimate, type CastSwapFullQualityParams, type CastSwapFullQualityRefusalCode, type CastSwapFullQualityResult, type CastSwapLocationRole, type CastSwapParams, type CastSwapPersonRole, type CastSwapPetRole, type CastSwapProductRole, type CastSwapReference, CastSwapResource, type CastSwapRole, type CastSwapRolePreviewSettings, type CastSwapRunOptions, type CastSwapTraitSource };
|
|
491
|
+
export { type CastSwapEngine, type CastSwapEstimate, type CastSwapFaceMasking, type CastSwapFaceMaskingZone, type CastSwapFullQualityEstimate, type CastSwapFullQualityKind, type CastSwapFullQualityParams, type CastSwapFullQualityRefusalCode, type CastSwapFullQualityResult, type CastSwapKlingLength, type CastSwapLocationRole, type CastSwapParams, type CastSwapPersonRole, type CastSwapPetRole, type CastSwapProductRole, type CastSwapReference, CastSwapResource, type CastSwapRole, type CastSwapRolePreviewSettings, type CastSwapRunOptions, type CastSwapTraitSource };
|
package/dist/entries/client.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3ZZWCHF5_cjs = require('../chunk-3ZZWCHF5.cjs');
|
|
4
4
|
require('../chunk-W5VHATSR.cjs');
|
|
5
5
|
require('../chunk-R63TTR35.cjs');
|
|
6
6
|
require('../chunk-3B47IHB3.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-VYEGCEZ3.cjs');
|
|
8
8
|
require('../chunk-LKH5M44B.cjs');
|
|
9
9
|
require('../chunk-YDRXBRW2.cjs');
|
|
10
10
|
require('../chunk-PEMLIAPZ.cjs');
|
|
11
11
|
require('../chunk-MBFUMWI5.cjs');
|
|
12
12
|
require('../chunk-NKH2UFSD.cjs');
|
|
13
13
|
require('../chunk-EK672FFM.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-QHXLMCBR.cjs');
|
|
15
15
|
require('../chunk-FHVNTS4E.cjs');
|
|
16
16
|
require('../chunk-JTOEHQQJ.cjs');
|
|
17
17
|
require('../chunk-NBVARNVA.cjs');
|
|
18
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-7YHIFCJ4.cjs');
|
|
19
19
|
require('../chunk-COCKKMNP.cjs');
|
|
20
20
|
require('../chunk-LAWYFC4G.cjs');
|
|
21
21
|
require('../chunk-TCLNSVYA.cjs');
|
|
@@ -33,7 +33,7 @@ require('../chunk-J5LGGCAS.cjs');
|
|
|
33
33
|
require('../chunk-7XOK277W.cjs');
|
|
34
34
|
require('../chunk-SBV5MWEL.cjs');
|
|
35
35
|
require('../chunk-WUKIJJG2.cjs');
|
|
36
|
-
require('../chunk-
|
|
36
|
+
require('../chunk-34JMD6ZO.cjs');
|
|
37
37
|
require('../chunk-2DZWWIJ4.cjs');
|
|
38
38
|
require('../chunk-SS3B6PHT.cjs');
|
|
39
39
|
require('../chunk-MQ74AKA2.cjs');
|
|
@@ -42,7 +42,7 @@ require('../chunk-43FVH6LJ.cjs');
|
|
|
42
42
|
require('../chunk-YFS2LMG4.cjs');
|
|
43
43
|
require('../chunk-OSMKIRKI.cjs');
|
|
44
44
|
require('../chunk-FRQJNGJS.cjs');
|
|
45
|
-
var
|
|
45
|
+
var chunkMPQQC45L_cjs = require('../chunk-MPQQC45L.cjs');
|
|
46
46
|
require('../chunk-FM2KM5TY.cjs');
|
|
47
47
|
require('../chunk-HGCVWOGK.cjs');
|
|
48
48
|
require('../chunk-PQ7OKM3E.cjs');
|
|
@@ -50,7 +50,7 @@ require('../chunk-A3S55XGF.cjs');
|
|
|
50
50
|
require('../chunk-OIYMTGYN.cjs');
|
|
51
51
|
require('../chunk-GA4LZZKQ.cjs');
|
|
52
52
|
require('../chunk-NGKODS3J.cjs');
|
|
53
|
-
require('../chunk-
|
|
53
|
+
require('../chunk-55ZX6TE3.cjs');
|
|
54
54
|
require('../chunk-BPWUWUZ3.cjs');
|
|
55
55
|
require('../chunk-HAKYPZLB.cjs');
|
|
56
56
|
|
|
@@ -58,23 +58,23 @@ require('../chunk-HAKYPZLB.cjs');
|
|
|
58
58
|
|
|
59
59
|
Object.defineProperty(exports, "NodaroClient", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk3ZZWCHF5_cjs.NodaroClient; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "createClient", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk3ZZWCHF5_cjs.createClient; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "CallbackAuth", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkMPQQC45L_cjs.CallbackAuth; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "StaticTokenAuth", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMPQQC45L_cjs.StaticTokenAuth; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "supabaseAuth", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMPQQC45L_cjs.supabaseAuth; }
|
|
78
78
|
});
|
|
79
79
|
//# sourceMappingURL=client.cjs.map
|
|
80
80
|
//# sourceMappingURL=client.cjs.map
|
package/dist/entries/client.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { NodaroClient, createClient } from '../chunk-
|
|
1
|
+
export { NodaroClient, createClient } from '../chunk-6PI3CI7P.js';
|
|
2
2
|
import '../chunk-ERLXU47J.js';
|
|
3
3
|
import '../chunk-T7N7DFQJ.js';
|
|
4
4
|
import '../chunk-YN6CBIIB.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-RETNLKOC.js';
|
|
6
6
|
import '../chunk-Z5GLY4R3.js';
|
|
7
7
|
import '../chunk-NNHWH7ER.js';
|
|
8
8
|
import '../chunk-Y6VDCZPB.js';
|
|
9
9
|
import '../chunk-WVFAQBS7.js';
|
|
10
10
|
import '../chunk-AUKHMT53.js';
|
|
11
11
|
import '../chunk-ILG5DHQQ.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-4UPVE662.js';
|
|
13
13
|
import '../chunk-YSZM3N7Q.js';
|
|
14
14
|
import '../chunk-WY4QRJZW.js';
|
|
15
15
|
import '../chunk-WEQWU2IC.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-KFZOJBI5.js';
|
|
17
17
|
import '../chunk-K4RQOSJH.js';
|
|
18
18
|
import '../chunk-H7VQTG4M.js';
|
|
19
19
|
import '../chunk-OIPPTBW4.js';
|
|
@@ -31,7 +31,7 @@ import '../chunk-ALSLZG3U.js';
|
|
|
31
31
|
import '../chunk-Z7UZ3FD3.js';
|
|
32
32
|
import '../chunk-Z3ZKFI2M.js';
|
|
33
33
|
import '../chunk-JDEZHITT.js';
|
|
34
|
-
import '../chunk-
|
|
34
|
+
import '../chunk-6MQ2LTJZ.js';
|
|
35
35
|
import '../chunk-P6E4QDJN.js';
|
|
36
36
|
import '../chunk-E37CVHWW.js';
|
|
37
37
|
import '../chunk-TVENC6PH.js';
|
|
@@ -40,7 +40,7 @@ import '../chunk-SFB4YLCS.js';
|
|
|
40
40
|
import '../chunk-BU5A6K4C.js';
|
|
41
41
|
import '../chunk-D2ILCSOQ.js';
|
|
42
42
|
import '../chunk-7CUWAVWB.js';
|
|
43
|
-
export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-
|
|
43
|
+
export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-DAGJLS7W.js';
|
|
44
44
|
import '../chunk-L6T44A3G.js';
|
|
45
45
|
import '../chunk-CK3AMMSC.js';
|
|
46
46
|
import '../chunk-IGMWFEFB.js';
|
|
@@ -48,7 +48,7 @@ import '../chunk-65E3JBFZ.js';
|
|
|
48
48
|
import '../chunk-FQNCIP6K.js';
|
|
49
49
|
import '../chunk-3QFTP5P5.js';
|
|
50
50
|
import '../chunk-J4WFSKY6.js';
|
|
51
|
-
import '../chunk-
|
|
51
|
+
import '../chunk-HKDIIFG2.js';
|
|
52
52
|
import '../chunk-KG4R454Z.js';
|
|
53
53
|
import '../chunk-EJSGJDZY.js';
|
|
54
54
|
//# sourceMappingURL=client.js.map
|
package/dist/entries/core.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-X7XP5WBP.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkMPQQC45L_cjs = require('../chunk-MPQQC45L.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
|
|
11
|
+
get: function () { return chunkMPQQC45L_cjs.CallbackAuth; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "NodaroClientCore", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkMPQQC45L_cjs.NodaroClientCore; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "StaticTokenAuth", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkMPQQC45L_cjs.StaticTokenAuth; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "supabaseAuth", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkMPQQC45L_cjs.supabaseAuth; }
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=core.cjs.map
|
|
26
26
|
//# sourceMappingURL=core.cjs.map
|
package/dist/entries/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-AUDHV3OE.js';
|
|
2
|
-
export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-
|
|
2
|
+
export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-DAGJLS7W.js';
|
|
3
3
|
import '../chunk-L6T44A3G.js';
|
|
4
4
|
//# sourceMappingURL=core.js.map
|
|
5
5
|
//# sourceMappingURL=core.js.map
|
package/dist/entries/jobs.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-EHRWTYGR.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk34JMD6ZO_cjs = require('../chunk-34JMD6ZO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "JobsResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk34JMD6ZO_cjs.JobsResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=jobs.cjs.map
|
|
13
13
|
//# sourceMappingURL=jobs.cjs.map
|
package/dist/entries/jobs.d.cts
CHANGED
|
@@ -183,6 +183,11 @@ interface CancelJobResult {
|
|
|
183
183
|
*/
|
|
184
184
|
inFlight?: boolean;
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* The kind of caller that created a job (`Job.source`). Hand-copied mirror of
|
|
188
|
+
* `JOB_SOURCES` in the platform's `backend/src/lib/job-source.ts`.
|
|
189
|
+
*/
|
|
190
|
+
type JobSource = "internal" | "mcp" | "app" | "cli" | "sdk" | "extension" | "web" | "api";
|
|
186
191
|
interface DeleteJobResult {
|
|
187
192
|
success: true;
|
|
188
193
|
}
|
|
@@ -194,6 +199,9 @@ interface ListJobsParams {
|
|
|
194
199
|
type?: string | readonly string[];
|
|
195
200
|
/** Exact match on `input_data.origin` — the client app that sent it. */
|
|
196
201
|
origin?: string;
|
|
202
|
+
/** The surface that created the job (`Job.source`): `"mcp"` lists what your
|
|
203
|
+
* MCP clients (Claude, ChatGPT, …) made. One value or several. */
|
|
204
|
+
source?: JobSource | readonly JobSource[];
|
|
197
205
|
/** `true`: only jobs you favorited; `false`: only jobs you did not. */
|
|
198
206
|
favorited?: boolean;
|
|
199
207
|
/** Your rating: `"good"`, `"bad"`, any (`"rated"`) or none (`"unrated"`). */
|
|
@@ -270,7 +278,8 @@ declare class JobsResource {
|
|
|
270
278
|
* `origin` filter on the job's own `input_data`, which every job carries —
|
|
271
279
|
* a client app lists its runs with `{ type: "llm-structured", origin: "studio" }`.
|
|
272
280
|
* `status` and `type` take one value or a list; `favorited` and `rating`
|
|
273
|
-
* filter on your own marks
|
|
281
|
+
* filter on your own marks, `source` on the surface that created the job.
|
|
282
|
+
* Every filter combines with AND, and each job
|
|
274
283
|
* carries `favorited` and `rating`.
|
|
275
284
|
*/
|
|
276
285
|
list(params?: ListJobsParams): Promise<ListJobsPage>;
|
|
@@ -321,4 +330,4 @@ declare class JobsResource {
|
|
|
321
330
|
delete(id: string): Promise<DeleteJobResult>;
|
|
322
331
|
}
|
|
323
332
|
|
|
324
|
-
export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobRating, type JobRatingFilter, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type RateJobResult, type SafetyBlockHint };
|
|
333
|
+
export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobRating, type JobRatingFilter, type JobSource, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type RateJobResult, type SafetyBlockHint };
|
package/dist/entries/jobs.d.ts
CHANGED
|
@@ -183,6 +183,11 @@ interface CancelJobResult {
|
|
|
183
183
|
*/
|
|
184
184
|
inFlight?: boolean;
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* The kind of caller that created a job (`Job.source`). Hand-copied mirror of
|
|
188
|
+
* `JOB_SOURCES` in the platform's `backend/src/lib/job-source.ts`.
|
|
189
|
+
*/
|
|
190
|
+
type JobSource = "internal" | "mcp" | "app" | "cli" | "sdk" | "extension" | "web" | "api";
|
|
186
191
|
interface DeleteJobResult {
|
|
187
192
|
success: true;
|
|
188
193
|
}
|
|
@@ -194,6 +199,9 @@ interface ListJobsParams {
|
|
|
194
199
|
type?: string | readonly string[];
|
|
195
200
|
/** Exact match on `input_data.origin` — the client app that sent it. */
|
|
196
201
|
origin?: string;
|
|
202
|
+
/** The surface that created the job (`Job.source`): `"mcp"` lists what your
|
|
203
|
+
* MCP clients (Claude, ChatGPT, …) made. One value or several. */
|
|
204
|
+
source?: JobSource | readonly JobSource[];
|
|
197
205
|
/** `true`: only jobs you favorited; `false`: only jobs you did not. */
|
|
198
206
|
favorited?: boolean;
|
|
199
207
|
/** Your rating: `"good"`, `"bad"`, any (`"rated"`) or none (`"unrated"`). */
|
|
@@ -270,7 +278,8 @@ declare class JobsResource {
|
|
|
270
278
|
* `origin` filter on the job's own `input_data`, which every job carries —
|
|
271
279
|
* a client app lists its runs with `{ type: "llm-structured", origin: "studio" }`.
|
|
272
280
|
* `status` and `type` take one value or a list; `favorited` and `rating`
|
|
273
|
-
* filter on your own marks
|
|
281
|
+
* filter on your own marks, `source` on the surface that created the job.
|
|
282
|
+
* Every filter combines with AND, and each job
|
|
274
283
|
* carries `favorited` and `rating`.
|
|
275
284
|
*/
|
|
276
285
|
list(params?: ListJobsParams): Promise<ListJobsPage>;
|
|
@@ -321,4 +330,4 @@ declare class JobsResource {
|
|
|
321
330
|
delete(id: string): Promise<DeleteJobResult>;
|
|
322
331
|
}
|
|
323
332
|
|
|
324
|
-
export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobRating, type JobRatingFilter, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type RateJobResult, type SafetyBlockHint };
|
|
333
|
+
export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobRating, type JobRatingFilter, type JobSource, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type RateJobResult, type SafetyBlockHint };
|
package/dist/entries/jobs.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-7MYKT2L4.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk7YHIFCJ4_cjs = require('../chunk-7YHIFCJ4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "PickerCatalogsResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk7YHIFCJ4_cjs.PickerCatalogsResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=picker-catalogs.cjs.map
|
|
13
13
|
//# sourceMappingURL=picker-catalogs.cjs.map
|
|
@@ -39,6 +39,14 @@ interface PickerOption {
|
|
|
39
39
|
* as given: file names carry a content hash, so it can be cached for good.
|
|
40
40
|
*/
|
|
41
41
|
imageUrl?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The same picture at several widths, as an HTML `srcset` value
|
|
44
|
+
* (`<url> 240w, <url> 480w, <url> 960w, <url> 1920w`) — present only for a
|
|
45
|
+
* render the Nodaro CDN resizes (Nodaro Cloud: the look previews and the
|
|
46
|
+
* music pickers' pictures). Pass it to `<img srcset>` with a `sizes` so a
|
|
47
|
+
* large tile stays sharp; `imageUrl` is its 480px member.
|
|
48
|
+
*/
|
|
49
|
+
imageSrcSet?: string;
|
|
42
50
|
}
|
|
43
51
|
interface PickerDimension {
|
|
44
52
|
field: string;
|
|
@@ -39,6 +39,14 @@ interface PickerOption {
|
|
|
39
39
|
* as given: file names carry a content hash, so it can be cached for good.
|
|
40
40
|
*/
|
|
41
41
|
imageUrl?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The same picture at several widths, as an HTML `srcset` value
|
|
44
|
+
* (`<url> 240w, <url> 480w, <url> 960w, <url> 1920w`) — present only for a
|
|
45
|
+
* render the Nodaro CDN resizes (Nodaro Cloud: the look previews and the
|
|
46
|
+
* music pickers' pictures). Pass it to `<img srcset>` with a `sizes` so a
|
|
47
|
+
* large tile stays sharp; `imageUrl` is its 480px member.
|
|
48
|
+
*/
|
|
49
|
+
imageSrcSet?: string;
|
|
42
50
|
}
|
|
43
51
|
interface PickerDimension {
|
|
44
52
|
field: string;
|
package/dist/entries/trends.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-PG2GBS3K.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkQHXLMCBR_cjs = require('../chunk-QHXLMCBR.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "TrendsResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkQHXLMCBR_cjs.TrendsResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=trends.cjs.map
|
|
13
13
|
//# sourceMappingURL=trends.cjs.map
|