@nodaro/sdk 2.33.0 → 2.34.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 (55) hide show
  1. package/dist/{chunk-6ECW23GA.js → chunk-4JKI6JRC.js} +2 -2
  2. package/dist/{chunk-6ECW23GA.js.map → chunk-4JKI6JRC.js.map} +1 -1
  3. package/dist/{chunk-56NJIP7P.cjs → chunk-5MTCKWKA.cjs} +3 -3
  4. package/dist/{chunk-56NJIP7P.cjs.map → chunk-5MTCKWKA.cjs.map} +1 -1
  5. package/dist/{chunk-GKQSA24K.cjs → chunk-CFY6XXOT.cjs} +16 -12
  6. package/dist/chunk-CFY6XXOT.cjs.map +1 -0
  7. package/dist/{chunk-JSCC2N7N.js → chunk-CWH642B2.js} +14 -10
  8. package/dist/chunk-CWH642B2.js.map +1 -0
  9. package/dist/{chunk-B7RG6AUQ.cjs → chunk-EAGD6NEE.cjs} +2 -2
  10. package/dist/{chunk-B7RG6AUQ.cjs.map → chunk-EAGD6NEE.cjs.map} +1 -1
  11. package/dist/chunk-GDXS4EJ5.js +28 -0
  12. package/dist/chunk-GDXS4EJ5.js.map +1 -0
  13. package/dist/chunk-GVBSOZDI.cjs +30 -0
  14. package/dist/chunk-GVBSOZDI.cjs.map +1 -0
  15. package/dist/chunk-KARJ7P7Y.js +3 -0
  16. package/dist/chunk-KARJ7P7Y.js.map +1 -0
  17. package/dist/chunk-RQSGS7ZK.cjs +4 -0
  18. package/dist/chunk-RQSGS7ZK.cjs.map +1 -0
  19. package/dist/{chunk-Y5CYFNNW.js → chunk-VFMWBW2Q.js} +3 -3
  20. package/dist/{chunk-Y5CYFNNW.js.map → chunk-VFMWBW2Q.js.map} +1 -1
  21. package/dist/entries/cast-swap.cjs +13 -0
  22. package/dist/entries/cast-swap.cjs.map +1 -0
  23. package/dist/entries/cast-swap.d.cts +127 -0
  24. package/dist/entries/cast-swap.d.ts +127 -0
  25. package/dist/entries/cast-swap.js +4 -0
  26. package/dist/entries/cast-swap.js.map +1 -0
  27. package/dist/entries/characters.d.cts +1 -1
  28. package/dist/entries/characters.d.ts +1 -1
  29. package/dist/entries/client.cjs +16 -15
  30. package/dist/entries/client.d.cts +4 -1
  31. package/dist/entries/client.d.ts +4 -1
  32. package/dist/entries/client.js +11 -10
  33. package/dist/entries/core.cjs +5 -5
  34. package/dist/entries/core.js +1 -1
  35. package/dist/entries/creatures.d.cts +1 -1
  36. package/dist/entries/creatures.d.ts +1 -1
  37. package/dist/entries/locations.d.cts +1 -1
  38. package/dist/entries/locations.d.ts +1 -1
  39. package/dist/entries/nodes.cjs +2 -2
  40. package/dist/entries/nodes.d.cts +1 -1
  41. package/dist/entries/nodes.d.ts +1 -1
  42. package/dist/entries/nodes.js +1 -1
  43. package/dist/entries/objects.d.cts +1 -1
  44. package/dist/entries/objects.d.ts +1 -1
  45. package/dist/entries/scene3d.d.cts +2 -2
  46. package/dist/entries/scene3d.d.ts +2 -2
  47. package/dist/index.cjs +97 -91
  48. package/dist/index.d.cts +2 -1
  49. package/dist/index.d.ts +2 -1
  50. package/dist/index.js +18 -16
  51. package/dist/{nodes-J8ByUN8z.d.cts → nodes-CTujw6Qd.d.cts} +22 -0
  52. package/dist/{nodes-C-wrO6Sg.d.ts → nodes-D2tbtzt7.d.ts} +22 -0
  53. package/package.json +6 -1
  54. package/dist/chunk-GKQSA24K.cjs.map +0 -1
  55. package/dist/chunk-JSCC2N7N.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,6 +1,8 @@
1
+ import './chunk-MEKI37WI.js';
1
2
  export { WebhookSignatureError, verifyWebhookSignature } from './chunk-VGTRKXF2.js';
2
3
  import './chunk-PGYQ754I.js';
3
4
  import './chunk-FHEYAW5H.js';
5
+ import './chunk-CRCPRZFN.js';
4
6
  import './chunk-D3PW7AHZ.js';
5
7
  import './chunk-BKP6F2IX.js';
6
8
  import './chunk-PMTM26LL.js';
@@ -8,7 +10,7 @@ import './chunk-LHRQXWI5.js';
8
10
  import './chunk-VT237QF2.js';
9
11
  import './chunk-CGNVHN4V.js';
10
12
  import './chunk-VPAUN75Q.js';
11
- import './chunk-MEKI37WI.js';
13
+ import './chunk-HLHR3R4P.js';
12
14
  import './chunk-QVQCKOBM.js';
13
15
  import './chunk-IQ6KWSXP.js';
14
16
  import './chunk-KZQKFBRN.js';
@@ -16,7 +18,7 @@ import './chunk-7A7HYFGM.js';
16
18
  export { RECAST_SEGMENT_PACKS } from './chunk-RJIJVVXS.js';
17
19
  import './chunk-6JFNBAKV.js';
18
20
  import './chunk-OJDBSKC2.js';
19
- import './chunk-CRCPRZFN.js';
21
+ import './chunk-ES2E65HT.js';
20
22
  import './chunk-OMH7ATOQ.js';
21
23
  import './chunk-37Y5QAVA.js';
22
24
  import './chunk-NX67YIF3.js';
@@ -24,7 +26,7 @@ export { PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY } from './chunk-ZYPH2FPT.js';
24
26
  import './chunk-X7RDNMN7.js';
25
27
  import './chunk-OLPA44QJ.js';
26
28
  export { USAGE_GROUP_BYS, WORKSPACE_HEADER } from './chunk-RKVRCNMB.js';
27
- import './chunk-HLHR3R4P.js';
29
+ export { unwrapEditPlanOutput } from './chunk-UKB64254.js';
28
30
  import './chunk-CJFIOVBA.js';
29
31
  import './chunk-OPR4TULG.js';
30
32
  import './chunk-C22RJDW3.js';
@@ -32,7 +34,7 @@ import './chunk-I3TYBAOX.js';
32
34
  import './chunk-A3THLBFG.js';
33
35
  import './chunk-UIFFNTUX.js';
34
36
  import './chunk-HFBR6G36.js';
35
- import './chunk-ES2E65HT.js';
37
+ import './chunk-Z5OMWAQX.js';
36
38
  import './chunk-GAZJ2PA3.js';
37
39
  import './chunk-GD24ZRFD.js';
38
40
  import './chunk-ELSOVJPF.js';
@@ -40,16 +42,18 @@ import './chunk-AUDHV3OE.js';
40
42
  import './chunk-EXLAHZKF.js';
41
43
  import './chunk-V4GPQ6Y2.js';
42
44
  import './chunk-YOOZB4RL.js';
43
- export { unwrapEditPlanOutput } from './chunk-UKB64254.js';
44
45
  import './chunk-3PPSGM5X.js';
45
46
  import './chunk-HRXXGGSJ.js';
46
47
  import './chunk-M6Y5TOYE.js';
48
+ import './chunk-KARJ7P7Y.js';
47
49
  import './chunk-SUCHGNYT.js';
48
50
  import './chunk-SLPD47SR.js';
49
- export { NodaroClient, createClient } from './chunk-JSCC2N7N.js';
51
+ export { NodaroClient, createClient } from './chunk-CWH642B2.js';
52
+ export { VoicesResource } from './chunk-T7N7DFQJ.js';
50
53
  export { WebhooksResource } from './chunk-YN6CBIIB.js';
51
54
  export { WorkflowsResource } from './chunk-ZXJQSFIA.js';
52
55
  export { WorkspacesResource } from './chunk-Z5GLY4R3.js';
56
+ export { SCENE3D_DELIVERY_ASSET_USAGE, Scene3DResource } from './chunk-NNHWH7ER.js';
53
57
  export { SessionsResource } from './chunk-Y6VDCZPB.js';
54
58
  export { ShotsResource } from './chunk-WVFAQBS7.js';
55
59
  export { StudioProductionsResource, StudioResource, isStudioGenerateEstimate } from './chunk-VV4TZG5S.js';
@@ -57,7 +61,7 @@ export { TemplatesResource } from './chunk-6OGGJQVA.js';
57
61
  export { TutorialsResource } from './chunk-DPSMVOM3.js';
58
62
  export { UploadsResource } from './chunk-T3SYREY4.js';
59
63
  export { VideoProResource } from './chunk-ERLXU47J.js';
60
- export { VoicesResource } from './chunk-T7N7DFQJ.js';
64
+ export { PALETTE_DIRECTION_PREFIX, PalettesResource, paletteDirectionId } from './chunk-WEQWU2IC.js';
61
65
  export { PickerCatalogsResource } from './chunk-BLA44UCM.js';
62
66
  export { PipelinesResource } from './chunk-K4RQOSJH.js';
63
67
  export { ProjectsResource } from './chunk-H7VQTG4M.js';
@@ -65,38 +69,36 @@ export { PromptHelperResource } from './chunk-E2ZXHS6E.js';
65
69
  export { RecastResource } from './chunk-AJVSMNPZ.js';
66
70
  export { ReduceResource } from './chunk-IHKIYVZQ.js';
67
71
  export { SavedPostsResource } from './chunk-NCCBS6GU.js';
68
- export { SCENE3D_DELIVERY_ASSET_USAGE, Scene3DResource } from './chunk-NNHWH7ER.js';
72
+ export { MediaResource } from './chunk-4NLVBYMW.js';
69
73
  export { ModelsResource } from './chunk-Y6V6CBY5.js';
70
74
  export { MOODBOARD_DIRECTION_PREFIX, MoodboardsResource, moodboardDirectionId } from './chunk-YVU2M7MI.js';
71
75
  export { PresetsResource } from './chunk-JTAW54UM.js';
72
- export { NodesResource } from './chunk-6ECW23GA.js';
76
+ export { NodesResource } from './chunk-4JKI6JRC.js';
73
77
  export { OAuthResource } from './chunk-Z7LGWNI7.js';
74
78
  export { OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectsResource } from './chunk-7LSFG2AF.js';
75
79
  export { OrganizationsResource } from './chunk-ALSLZG3U.js';
76
- export { PALETTE_DIRECTION_PREFIX, PalettesResource, paletteDirectionId } from './chunk-WEQWU2IC.js';
80
+ export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from './chunk-5A7J24LN.js';
77
81
  export { ExecutionsResource, OUTPUT_BEARING_NODE_STATUSES, nodeStateMayCarryOutput } from './chunk-Z3ZKFI2M.js';
78
82
  export { GalleryResource } from './chunk-JDEZHITT.js';
79
83
  export { JobsResource } from './chunk-E5BM4BLO.js';
80
84
  export { LibraryResource } from './chunk-P6E4QDJN.js';
81
85
  export { LlmResource } from './chunk-E37CVHWW.js';
82
86
  export { LOCATION_ASSET_TYPES, LOCATION_ATTACH_COLUMNS, LocationsResource, SURROUND_DIRECTIONS } from './chunk-TVENC6PH.js';
83
- export { MediaResource } from './chunk-4NLVBYMW.js';
87
+ export { CollectionsResource } from './chunk-4WRDR4GN.js';
84
88
  export { CommunityResource } from './chunk-SFB4YLCS.js';
85
89
  export { CompetitorsResource } from './chunk-BU5A6K4C.js';
86
90
  export { CopilotResource } from './chunk-I6CXC345.js';
87
91
  import './chunk-JMOKD6ZP.js';
88
- export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from './chunk-Y5CYFNNW.js';
92
+ export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from './chunk-VFMWBW2Q.js';
93
+ export { AlreadyRunningError, AppRunVersionChangedError, ContinuationPreviewPendingError, ContinuationRefusedError, ForbiddenError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictError, throwFromResponse } from './chunk-JGS6YBDW.js';
89
94
  export { OBJECT_ASPECT_DEFAULTS as CREATURE_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS as CREATURE_ASPECT_OPTIONS, CREATURE_ASSET_TYPES, CREATURE_ATTACH_COLUMNS, CreaturesResource } from './chunk-CK3AMMSC.js';
90
95
  export { CreditsResource } from './chunk-4CXB7RA6.js';
91
96
  export { DeveloperAppsResource } from './chunk-65E3JBFZ.js';
92
- export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from './chunk-5A7J24LN.js';
93
- export { AlreadyRunningError, AppRunVersionChangedError, ContinuationPreviewPendingError, ContinuationRefusedError, ForbiddenError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictError, throwFromResponse } from './chunk-JGS6YBDW.js';
94
97
  export { AppsResource } from './chunk-53SXNN3A.js';
95
98
  export { AudioResource } from './chunk-3QFTP5P5.js';
96
99
  export { BillingResource } from './chunk-J4WFSKY6.js';
100
+ export { CastSwapResource } from './chunk-GDXS4EJ5.js';
97
101
  export { CatalogsResource } from './chunk-KG4R454Z.js';
98
102
  export { CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, CharactersResource, PEOPLE, PERSON_DIMENSION_LABELS, PERSON_DIMENSION_ORDER, buildPersonHints, buildPersonSeedPrompt } from './chunk-EJSGJDZY.js';
99
- import './chunk-Z5OMWAQX.js';
100
- export { CollectionsResource } from './chunk-4WRDR4GN.js';
101
103
  //# sourceMappingURL=index.js.map
102
104
  //# sourceMappingURL=index.js.map
@@ -521,6 +521,25 @@ interface VideoToVideoParams extends GenerationSessionParams {
521
521
  promptExtend?: boolean;
522
522
  /** Seedance 2.5 only: a 480p draft, finalized later with `video-upscale`. */
523
523
  draft?: boolean;
524
+ /**
525
+ * Seedance edit only (refused on other models): more images the edit can use.
526
+ * They follow `referenceImageUrl` when it is sent, so with it they are
527
+ * `{image:2}`, `{image:3}`, …, without it `{image:1}`, `{image:2}`, ….
528
+ * The model's cap applies (30 images on `seedance-2-5`).
529
+ */
530
+ referenceImageUrls?: string[];
531
+ /**
532
+ * Seedance edit only (refused on other models): extra clips the edit can use.
533
+ * Do not repeat `videoUrl` here: the source clip is `{video:1}`, these are
534
+ * `{video:2}`, `{video:3}`, …. The source counts toward the model's cap
535
+ * (10 clips on `seedance-2-5`), and every clip's length is priced.
536
+ */
537
+ referenceVideoUrls?: string[];
538
+ /**
539
+ * Seedance edit only (refused on other models): audio the edit can use,
540
+ * `{audio:1}`, `{audio:2}`, …. The model's cap applies (10 on `seedance-2-5`).
541
+ */
542
+ referenceAudioUrls?: string[];
524
543
  [k: string]: unknown;
525
544
  }
526
545
  /** One way the platform shaped the price — shown so a client can explain it. */
@@ -1274,6 +1293,9 @@ declare class NodesResource {
1274
1293
  quote(type: "text-to-video", params: TextToVideoParams): Promise<NodeQuote>;
1275
1294
  quote(type: "generate-video", params: GenerateVideoParams): Promise<NodeQuote>;
1276
1295
  quote(type: "video-to-video", params: VideoToVideoParams): Promise<NodeQuote>;
1296
+ /** A Seedance 2.5 draft's 1080p finalize (`seedance-2-5-hd`) is priced from
1297
+ * the draft itself, including the clips it was made with. */
1298
+ quote(type: "video-upscale", params: VideoUpscaleParams): Promise<NodeQuote>;
1277
1299
  quote(type: string, params?: Record<string, unknown>): Promise<NodeQuote>;
1278
1300
  /**
1279
1301
  * Run a single async node to completion: {@link run} it, extract the
@@ -521,6 +521,25 @@ interface VideoToVideoParams extends GenerationSessionParams {
521
521
  promptExtend?: boolean;
522
522
  /** Seedance 2.5 only: a 480p draft, finalized later with `video-upscale`. */
523
523
  draft?: boolean;
524
+ /**
525
+ * Seedance edit only (refused on other models): more images the edit can use.
526
+ * They follow `referenceImageUrl` when it is sent, so with it they are
527
+ * `{image:2}`, `{image:3}`, …, without it `{image:1}`, `{image:2}`, ….
528
+ * The model's cap applies (30 images on `seedance-2-5`).
529
+ */
530
+ referenceImageUrls?: string[];
531
+ /**
532
+ * Seedance edit only (refused on other models): extra clips the edit can use.
533
+ * Do not repeat `videoUrl` here: the source clip is `{video:1}`, these are
534
+ * `{video:2}`, `{video:3}`, …. The source counts toward the model's cap
535
+ * (10 clips on `seedance-2-5`), and every clip's length is priced.
536
+ */
537
+ referenceVideoUrls?: string[];
538
+ /**
539
+ * Seedance edit only (refused on other models): audio the edit can use,
540
+ * `{audio:1}`, `{audio:2}`, …. The model's cap applies (10 on `seedance-2-5`).
541
+ */
542
+ referenceAudioUrls?: string[];
524
543
  [k: string]: unknown;
525
544
  }
526
545
  /** One way the platform shaped the price — shown so a client can explain it. */
@@ -1274,6 +1293,9 @@ declare class NodesResource {
1274
1293
  quote(type: "text-to-video", params: TextToVideoParams): Promise<NodeQuote>;
1275
1294
  quote(type: "generate-video", params: GenerateVideoParams): Promise<NodeQuote>;
1276
1295
  quote(type: "video-to-video", params: VideoToVideoParams): Promise<NodeQuote>;
1296
+ /** A Seedance 2.5 draft's 1080p finalize (`seedance-2-5-hd`) is priced from
1297
+ * the draft itself, including the clips it was made with. */
1298
+ quote(type: "video-upscale", params: VideoUpscaleParams): Promise<NodeQuote>;
1277
1299
  quote(type: string, params?: Record<string, unknown>): Promise<NodeQuote>;
1278
1300
  /**
1279
1301
  * Run a single async node to completion: {@link run} it, extract the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodaro/sdk",
3
- "version": "2.33.0",
3
+ "version": "2.34.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",
@@ -35,6 +35,11 @@
35
35
  "import": "./dist/entries/billing.js",
36
36
  "require": "./dist/entries/billing.cjs"
37
37
  },
38
+ "./cast-swap": {
39
+ "types": "./dist/entries/cast-swap.d.ts",
40
+ "import": "./dist/entries/cast-swap.js",
41
+ "require": "./dist/entries/cast-swap.cjs"
42
+ },
38
43
  "./catalogs": {
39
44
  "types": "./dist/entries/catalogs.d.ts",
40
45
  "import": "./dist/entries/catalogs.js",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/client.ts"],"names":["NodaroClientCore","WorkflowsResource","ProjectsResource","SessionsResource","JobsResource","VideoProResource","ExecutionsResource","NodesResource","Scene3DResource","DeveloperAppsResource","OAuthResource","WebhooksResource","AppsResource","CharactersResource","LocationsResource","ObjectsResource","CreaturesResource","PipelinesResource","ReduceResource","PromptHelperResource","VoicesResource","LlmResource","MediaResource","AudioResource","CreditsResource","BillingResource","UploadsResource","LibraryResource","GalleryResource","PresetsResource","SavedPostsResource","CollectionsResource","PalettesResource","MoodboardsResource","CompetitorsResource","PickerCatalogsResource","CatalogsResource","ModelsResource","ShotsResource","RecastResource","StudioResource","CopilotResource","CommunityResource","TemplatesResource","TutorialsResource","OrganizationsResource","WorkspacesResource","EditResource"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDO,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,kCAAA,CAAiB;AAA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;AACrC,IAAA,IAAA,CAAK,OAAA,GAAU,IAAIC,iCAAA,CAAgB,IAAI,CAAA;AACvC,IAAA,IAAA,CAAK,SAAA,GAAY,IAAIC,mCAAA,CAAkB,IAAI,CAAA;AAC3C,IAAA,IAAA,CAAK,SAAA,GAAY,IAAIC,mCAAA,CAAkB,IAAI,CAAA;AAC3C,IAAA,IAAA,CAAK,SAAA,GAAY,IAAIC,mCAAA,CAAkB,IAAI,CAAA;AAC3C,IAAA,IAAA,CAAK,aAAA,GAAgB,IAAIC,uCAAA,CAAsB,IAAI,CAAA;AACnD,IAAA,IAAA,CAAK,UAAA,GAAa,IAAIC,oCAAA,CAAmB,IAAI,CAAA;AAC7C,IAAA,IAAA,CAAK,IAAA,GAAO,IAAIC,8BAAA,CAAa,IAAI,CAAA;AAAA,EACnC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,cAAc,WAAA,EAA0C;AAMtD,IAAA,MAAM,aAAA,GAAgB,KAAK,eAAe,CAAA;AAC1C,IAAA,OAAO,IAAI,aAAA,CAAa;AAAA,MACtB,SAAS,IAAA,CAAK,OAAA;AAAA,MACd,MAAM,IAAA,CAAK,IAAA;AAAA,MACX,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,GAAI,aAAA,GAAgB,EAAE,KAAA,EAAO,aAAA,KAAkB,EAAC;AAAA,MAChD,GAAI,KAAK,kBAAkB,CAAA,GAAI,EAAE,WAAA,EAAa,IAAA,CAAK,WAAA,EAAY,GAAI,EAAC;AAAA,MACpE,GAAI,WAAA,GAAc,EAAE,WAAA,KAAgB;AAAC,KACtC,CAAA;AAAA,EACH;AACF;AAGO,SAAS,aAAa,IAAA,EAAmC;AAC9D,EAAA,OAAO,IAAI,aAAa,IAAI,CAAA;AAC9B","file":"chunk-GKQSA24K.cjs","sourcesContent":["import { WorkflowsResource } from \"./resources/workflows.js\"\nimport { ProjectsResource } from \"./resources/projects.js\"\nimport { SessionsResource } from \"./resources/sessions.js\"\nimport { JobsResource } from \"./resources/jobs.js\"\nimport { VideoProResource } from \"./resources/video-pro.js\"\nimport { ExecutionsResource } from \"./resources/executions.js\"\nimport { NodesResource } from \"./resources/nodes.js\"\nimport { Scene3DResource } from \"./resources/scene3d.js\"\nimport { DeveloperAppsResource } from \"./resources/developer-apps.js\"\nimport { OAuthResource } from \"./resources/oauth.js\"\nimport { WebhooksResource } from \"./resources/webhooks.js\"\nimport { AppsResource } from \"./resources/apps.js\"\nimport { CharactersResource } from \"./resources/characters.js\"\nimport { LocationsResource } from \"./resources/locations.js\"\nimport { ObjectsResource } from \"./resources/objects.js\"\nimport { CreaturesResource } from \"./resources/creatures.js\"\nimport { PipelinesResource } from \"./resources/pipelines.js\"\nimport { ReduceResource } from \"./resources/reduce.js\"\nimport { PromptHelperResource } from \"./resources/prompt-helper.js\"\nimport { VoicesResource } from \"./resources/voices.js\"\nimport { LlmResource } from \"./resources/llm.js\"\nimport { MediaResource } from \"./resources/media.js\"\nimport { AudioResource } from \"./resources/audio.js\"\nimport { CreditsResource } from \"./resources/credits.js\"\nimport { BillingResource } from \"./resources/billing.js\"\nimport { UploadsResource } from \"./resources/uploads.js\"\nimport { LibraryResource } from \"./resources/library.js\"\nimport { GalleryResource } from \"./resources/gallery.js\"\nimport { PresetsResource } from \"./resources/node-presets.js\"\nimport { SavedPostsResource } from \"./resources/saved-posts.js\"\nimport { CollectionsResource } from \"./resources/collections.js\"\nimport { PalettesResource } from \"./resources/palettes.js\"\nimport { MoodboardsResource } from \"./resources/moodboards.js\"\nimport { CompetitorsResource } from \"./resources/competitors.js\"\nimport { PickerCatalogsResource } from \"./resources/picker-catalogs.js\"\nimport { CatalogsResource } from \"./resources/catalogs.js\"\nimport { ModelsResource } from \"./resources/models.js\"\nimport { ShotsResource } from \"./resources/shots.js\"\nimport { RecastResource } from \"./resources/recast.js\"\nimport { StudioResource } from \"./resources/studio.js\"\nimport { CopilotResource } from \"./resources/copilot.js\"\nimport { CommunityResource } from \"./resources/community.js\"\nimport { TemplatesResource } from \"./resources/templates.js\"\nimport { TutorialsResource } from \"./resources/tutorials.js\"\nimport { OrganizationsResource } from \"./resources/organizations.js\"\nimport { WorkspacesResource } from \"./resources/workspaces.js\"\nimport { EditResource } from \"./resources/edit.js\"\nimport { NodaroClientCore, type ClientOptions } from \"./core.js\"\n\nexport { CLIENT_HEADER } from \"./core.js\"\nexport type { ClientOptions, UserIdentity, ConnectedApp } from \"./core.js\"\n\n/**\n * The full client: the core (`./core.ts` — config, transport, identity) and\n * every resource.\n */\nexport class NodaroClient extends NodaroClientCore {\n readonly workflows: WorkflowsResource\n readonly projects: ProjectsResource\n /** Generation sessions inside projects (Create Image / Video / Music). */\n readonly sessions: SessionsResource\n readonly jobs: JobsResource\n readonly videoPro: VideoProResource\n readonly executions: ExecutionsResource\n readonly nodes: NodesResource\n readonly scene3d: Scene3DResource\n readonly developerApps: DeveloperAppsResource\n readonly oauth: OAuthResource\n /** Outbound webhooks: endpoints that receive your job.completed / job.failed. */\n readonly webhooks: WebhooksResource\n readonly apps: AppsResource\n readonly characters: CharactersResource\n readonly locations: LocationsResource\n readonly objects: ObjectsResource\n readonly creatures: CreaturesResource\n readonly pipelines: PipelinesResource\n readonly reduce: ReduceResource\n readonly promptHelper: PromptHelperResource\n readonly voices: VoicesResource\n readonly llm: LlmResource\n readonly media: MediaResource\n readonly audio: AudioResource\n readonly credits: CreditsResource\n /** Plans and prices, the subscription, and how this deployment bills. */\n readonly billing: BillingResource\n readonly uploads: UploadsResource\n readonly library: LibraryResource\n /** The public gallery and your favorites. */\n readonly gallery: GalleryResource\n readonly presets: PresetsResource\n readonly savedPosts: SavedPostsResource\n readonly collections: CollectionsResource\n /** Your colour palettes — a generate-image direction (`direction.colorLook: paletteDirectionId(id)`). */\n readonly palettes: PalettesResource\n /** Your moodboards — a generate-image direction (`direction.style: moodboardDirectionId(id)`). */\n readonly moodboards: MoodboardsResource\n readonly competitors: CompetitorsResource\n readonly pickerCatalogs: PickerCatalogsResource\n readonly catalogs: CatalogsResource\n readonly models: ModelsResource\n readonly shots: ShotsResource\n readonly recast: RecastResource\n readonly studio: StudioResource\n readonly copilot: CopilotResource\n readonly community: CommunityResource\n readonly templates: TemplatesResource\n readonly tutorials: TutorialsResource\n readonly organizations: OrganizationsResource\n readonly workspaces: WorkspacesResource\n readonly edit: EditResource\n\n constructor(opts: ClientOptions) {\n super(opts)\n\n this.workflows = new WorkflowsResource(this)\n this.projects = new ProjectsResource(this)\n this.sessions = new SessionsResource(this)\n this.jobs = new JobsResource(this)\n this.videoPro = new VideoProResource(this)\n this.executions = new ExecutionsResource(this)\n this.nodes = new NodesResource(this)\n this.scene3d = new Scene3DResource(this)\n this.developerApps = new DeveloperAppsResource(this)\n this.oauth = new OAuthResource(this)\n this.webhooks = new WebhooksResource(this)\n this.apps = new AppsResource(this)\n this.characters = new CharactersResource(this)\n this.locations = new LocationsResource(this)\n this.objects = new ObjectsResource(this)\n this.creatures = new CreaturesResource(this)\n this.pipelines = new PipelinesResource(this)\n this.reduce = new ReduceResource(this)\n this.promptHelper = new PromptHelperResource(this)\n this.voices = new VoicesResource(this)\n this.llm = new LlmResource(this)\n this.media = new MediaResource(this)\n this.audio = new AudioResource(this)\n this.credits = new CreditsResource(this)\n this.billing = new BillingResource(this)\n this.uploads = new UploadsResource(this)\n this.library = new LibraryResource(this)\n this.gallery = new GalleryResource(this)\n this.presets = new PresetsResource(this)\n this.savedPosts = new SavedPostsResource(this)\n this.collections = new CollectionsResource(this)\n this.palettes = new PalettesResource(this)\n this.moodboards = new MoodboardsResource(this)\n this.competitors = new CompetitorsResource(this)\n this.pickerCatalogs = new PickerCatalogsResource(this)\n this.catalogs = new CatalogsResource(this)\n this.models = new ModelsResource(this)\n this.shots = new ShotsResource(this)\n this.recast = new RecastResource(this)\n this.studio = new StudioResource(this)\n this.copilot = new CopilotResource(this)\n this.community = new CommunityResource(this)\n this.templates = new TemplatesResource(this)\n this.tutorials = new TutorialsResource(this)\n this.organizations = new OrganizationsResource(this)\n this.workspaces = new WorkspacesResource(this)\n this.edit = new EditResource(this)\n }\n\n /**\n * A client that acts in `workspaceId`, sharing this one's auth and config.\n *\n * A NEW client rather than a setter, deliberately. A mutable selection is\n * the bug this whole axis exists to prevent: two concurrent operations\n * against one client would race over which workspace they were in, and the\n * loser would create work in the wrong place with nothing failing. A\n * per-workspace client cannot be raced.\n *\n * Pass `null` for the personal space.\n */\n withWorkspace(workspaceId: string | null): NodaroClient {\n // The two private settings are read by bracket access, which TypeScript\n // allows on a subclass and which adds no member to the declarations. Read\n // through `this` (not a side table keyed by the instance), so a client\n // wrapped in a Proxy (Vue/Pinia `reactive()`) or reached through\n // `Object.create(client)` still works.\n const fetchOverride = this[\"fetchOverride\"]\n return new NodaroClient({\n baseUrl: this.baseUrl,\n auth: this.auth,\n timeoutMs: this.timeoutMs,\n ...(fetchOverride ? { fetch: fetchOverride } : {}),\n ...(this[\"sendClientHeader\"] ? { clientLabel: this.clientLabel } : {}),\n ...(workspaceId ? { workspaceId } : {}),\n })\n }\n}\n\n/** Factory function — preferred entry point. */\nexport function createClient(opts: ClientOptions): NodaroClient {\n return new NodaroClient(opts)\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDO,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,gBAAA,CAAiB;AAAA,EACxC,SAAA;AAAA,EACA,QAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,SAAA;AAAA,EAC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Aa,IAAI,kBAAA,CAAmB,IAAI,CAAA;AAC7C,IAAA,IAAA,CAAK,IAAA,GAAO,IAAI,YAAA,CAAa,IAAI,CAAA;AAAA,EACnC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,cAAc,WAAA,EAA0C;AAMtD,IAAA,MAAM,aAAA,GAAgB,KAAK,eAAe,CAAA;AAC1C,IAAA,OAAO,IAAI,aAAA,CAAa;AAAA,MACtB,SAAS,IAAA,CAAK,OAAA;AAAA,MACd,MAAM,IAAA,CAAK,IAAA;AAAA,MACX,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,GAAI,aAAA,GAAgB,EAAE,KAAA,EAAO,aAAA,KAAkB,EAAC;AAAA,MAChD,GAAI,KAAK,kBAAkB,CAAA,GAAI,EAAE,WAAA,EAAa,IAAA,CAAK,WAAA,EAAY,GAAI,EAAC;AAAA,MACpE,GAAI,WAAA,GAAc,EAAE,WAAA,KAAgB;AAAC,KACtC,CAAA;AAAA,EACH;AACF;AAGO,SAAS,aAAa,IAAA,EAAmC;AAC9D,EAAA,OAAO,IAAI,aAAa,IAAI,CAAA;AAC9B","file":"chunk-JSCC2N7N.js","sourcesContent":["import { WorkflowsResource } from \"./resources/workflows.js\"\nimport { ProjectsResource } from \"./resources/projects.js\"\nimport { SessionsResource } from \"./resources/sessions.js\"\nimport { JobsResource } from \"./resources/jobs.js\"\nimport { VideoProResource } from \"./resources/video-pro.js\"\nimport { ExecutionsResource } from \"./resources/executions.js\"\nimport { NodesResource } from \"./resources/nodes.js\"\nimport { Scene3DResource } from \"./resources/scene3d.js\"\nimport { DeveloperAppsResource } from \"./resources/developer-apps.js\"\nimport { OAuthResource } from \"./resources/oauth.js\"\nimport { WebhooksResource } from \"./resources/webhooks.js\"\nimport { AppsResource } from \"./resources/apps.js\"\nimport { CharactersResource } from \"./resources/characters.js\"\nimport { LocationsResource } from \"./resources/locations.js\"\nimport { ObjectsResource } from \"./resources/objects.js\"\nimport { CreaturesResource } from \"./resources/creatures.js\"\nimport { PipelinesResource } from \"./resources/pipelines.js\"\nimport { ReduceResource } from \"./resources/reduce.js\"\nimport { PromptHelperResource } from \"./resources/prompt-helper.js\"\nimport { VoicesResource } from \"./resources/voices.js\"\nimport { LlmResource } from \"./resources/llm.js\"\nimport { MediaResource } from \"./resources/media.js\"\nimport { AudioResource } from \"./resources/audio.js\"\nimport { CreditsResource } from \"./resources/credits.js\"\nimport { BillingResource } from \"./resources/billing.js\"\nimport { UploadsResource } from \"./resources/uploads.js\"\nimport { LibraryResource } from \"./resources/library.js\"\nimport { GalleryResource } from \"./resources/gallery.js\"\nimport { PresetsResource } from \"./resources/node-presets.js\"\nimport { SavedPostsResource } from \"./resources/saved-posts.js\"\nimport { CollectionsResource } from \"./resources/collections.js\"\nimport { PalettesResource } from \"./resources/palettes.js\"\nimport { MoodboardsResource } from \"./resources/moodboards.js\"\nimport { CompetitorsResource } from \"./resources/competitors.js\"\nimport { PickerCatalogsResource } from \"./resources/picker-catalogs.js\"\nimport { CatalogsResource } from \"./resources/catalogs.js\"\nimport { ModelsResource } from \"./resources/models.js\"\nimport { ShotsResource } from \"./resources/shots.js\"\nimport { RecastResource } from \"./resources/recast.js\"\nimport { StudioResource } from \"./resources/studio.js\"\nimport { CopilotResource } from \"./resources/copilot.js\"\nimport { CommunityResource } from \"./resources/community.js\"\nimport { TemplatesResource } from \"./resources/templates.js\"\nimport { TutorialsResource } from \"./resources/tutorials.js\"\nimport { OrganizationsResource } from \"./resources/organizations.js\"\nimport { WorkspacesResource } from \"./resources/workspaces.js\"\nimport { EditResource } from \"./resources/edit.js\"\nimport { NodaroClientCore, type ClientOptions } from \"./core.js\"\n\nexport { CLIENT_HEADER } from \"./core.js\"\nexport type { ClientOptions, UserIdentity, ConnectedApp } from \"./core.js\"\n\n/**\n * The full client: the core (`./core.ts` — config, transport, identity) and\n * every resource.\n */\nexport class NodaroClient extends NodaroClientCore {\n readonly workflows: WorkflowsResource\n readonly projects: ProjectsResource\n /** Generation sessions inside projects (Create Image / Video / Music). */\n readonly sessions: SessionsResource\n readonly jobs: JobsResource\n readonly videoPro: VideoProResource\n readonly executions: ExecutionsResource\n readonly nodes: NodesResource\n readonly scene3d: Scene3DResource\n readonly developerApps: DeveloperAppsResource\n readonly oauth: OAuthResource\n /** Outbound webhooks: endpoints that receive your job.completed / job.failed. */\n readonly webhooks: WebhooksResource\n readonly apps: AppsResource\n readonly characters: CharactersResource\n readonly locations: LocationsResource\n readonly objects: ObjectsResource\n readonly creatures: CreaturesResource\n readonly pipelines: PipelinesResource\n readonly reduce: ReduceResource\n readonly promptHelper: PromptHelperResource\n readonly voices: VoicesResource\n readonly llm: LlmResource\n readonly media: MediaResource\n readonly audio: AudioResource\n readonly credits: CreditsResource\n /** Plans and prices, the subscription, and how this deployment bills. */\n readonly billing: BillingResource\n readonly uploads: UploadsResource\n readonly library: LibraryResource\n /** The public gallery and your favorites. */\n readonly gallery: GalleryResource\n readonly presets: PresetsResource\n readonly savedPosts: SavedPostsResource\n readonly collections: CollectionsResource\n /** Your colour palettes — a generate-image direction (`direction.colorLook: paletteDirectionId(id)`). */\n readonly palettes: PalettesResource\n /** Your moodboards — a generate-image direction (`direction.style: moodboardDirectionId(id)`). */\n readonly moodboards: MoodboardsResource\n readonly competitors: CompetitorsResource\n readonly pickerCatalogs: PickerCatalogsResource\n readonly catalogs: CatalogsResource\n readonly models: ModelsResource\n readonly shots: ShotsResource\n readonly recast: RecastResource\n readonly studio: StudioResource\n readonly copilot: CopilotResource\n readonly community: CommunityResource\n readonly templates: TemplatesResource\n readonly tutorials: TutorialsResource\n readonly organizations: OrganizationsResource\n readonly workspaces: WorkspacesResource\n readonly edit: EditResource\n\n constructor(opts: ClientOptions) {\n super(opts)\n\n this.workflows = new WorkflowsResource(this)\n this.projects = new ProjectsResource(this)\n this.sessions = new SessionsResource(this)\n this.jobs = new JobsResource(this)\n this.videoPro = new VideoProResource(this)\n this.executions = new ExecutionsResource(this)\n this.nodes = new NodesResource(this)\n this.scene3d = new Scene3DResource(this)\n this.developerApps = new DeveloperAppsResource(this)\n this.oauth = new OAuthResource(this)\n this.webhooks = new WebhooksResource(this)\n this.apps = new AppsResource(this)\n this.characters = new CharactersResource(this)\n this.locations = new LocationsResource(this)\n this.objects = new ObjectsResource(this)\n this.creatures = new CreaturesResource(this)\n this.pipelines = new PipelinesResource(this)\n this.reduce = new ReduceResource(this)\n this.promptHelper = new PromptHelperResource(this)\n this.voices = new VoicesResource(this)\n this.llm = new LlmResource(this)\n this.media = new MediaResource(this)\n this.audio = new AudioResource(this)\n this.credits = new CreditsResource(this)\n this.billing = new BillingResource(this)\n this.uploads = new UploadsResource(this)\n this.library = new LibraryResource(this)\n this.gallery = new GalleryResource(this)\n this.presets = new PresetsResource(this)\n this.savedPosts = new SavedPostsResource(this)\n this.collections = new CollectionsResource(this)\n this.palettes = new PalettesResource(this)\n this.moodboards = new MoodboardsResource(this)\n this.competitors = new CompetitorsResource(this)\n this.pickerCatalogs = new PickerCatalogsResource(this)\n this.catalogs = new CatalogsResource(this)\n this.models = new ModelsResource(this)\n this.shots = new ShotsResource(this)\n this.recast = new RecastResource(this)\n this.studio = new StudioResource(this)\n this.copilot = new CopilotResource(this)\n this.community = new CommunityResource(this)\n this.templates = new TemplatesResource(this)\n this.tutorials = new TutorialsResource(this)\n this.organizations = new OrganizationsResource(this)\n this.workspaces = new WorkspacesResource(this)\n this.edit = new EditResource(this)\n }\n\n /**\n * A client that acts in `workspaceId`, sharing this one's auth and config.\n *\n * A NEW client rather than a setter, deliberately. A mutable selection is\n * the bug this whole axis exists to prevent: two concurrent operations\n * against one client would race over which workspace they were in, and the\n * loser would create work in the wrong place with nothing failing. A\n * per-workspace client cannot be raced.\n *\n * Pass `null` for the personal space.\n */\n withWorkspace(workspaceId: string | null): NodaroClient {\n // The two private settings are read by bracket access, which TypeScript\n // allows on a subclass and which adds no member to the declarations. Read\n // through `this` (not a side table keyed by the instance), so a client\n // wrapped in a Proxy (Vue/Pinia `reactive()`) or reached through\n // `Object.create(client)` still works.\n const fetchOverride = this[\"fetchOverride\"]\n return new NodaroClient({\n baseUrl: this.baseUrl,\n auth: this.auth,\n timeoutMs: this.timeoutMs,\n ...(fetchOverride ? { fetch: fetchOverride } : {}),\n ...(this[\"sendClientHeader\"] ? { clientLabel: this.clientLabel } : {}),\n ...(workspaceId ? { workspaceId } : {}),\n })\n }\n}\n\n/** Factory function — preferred entry point. */\nexport function createClient(opts: ClientOptions): NodaroClient {\n return new NodaroClient(opts)\n}\n"]}