@nodaro/sdk 2.62.0 → 2.64.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-SEETG3EM.js → chunk-3HL3IHVE.js} +21 -6
- package/dist/chunk-3HL3IHVE.js.map +1 -0
- package/dist/{chunk-NQXBWK2D.js → chunk-A5UGBCAW.js} +3 -3
- package/dist/{chunk-NQXBWK2D.js.map → chunk-A5UGBCAW.js.map} +1 -1
- package/dist/{chunk-DT3Q22NZ.js → chunk-A75Q7UEU.js} +3 -3
- package/dist/{chunk-DT3Q22NZ.js.map → chunk-A75Q7UEU.js.map} +1 -1
- package/dist/{chunk-WYX44JHE.cjs → chunk-AAUVNTWE.cjs} +10 -4
- package/dist/chunk-AAUVNTWE.cjs.map +1 -0
- package/dist/{chunk-SXV6OBKE.cjs → chunk-C7DOFDP2.cjs} +18 -18
- package/dist/{chunk-SXV6OBKE.cjs.map → chunk-C7DOFDP2.cjs.map} +1 -1
- package/dist/{chunk-DODUCQ6B.cjs → chunk-DR5WM36L.cjs} +22 -22
- package/dist/{chunk-DODUCQ6B.cjs.map → chunk-DR5WM36L.cjs.map} +1 -1
- package/dist/{chunk-X4QICOOM.js → chunk-E3ZMKMY7.js} +10 -4
- package/dist/chunk-E3ZMKMY7.js.map +1 -0
- package/dist/{chunk-7YHIFCJ4.cjs → chunk-EP4J3TLQ.cjs} +2 -2
- package/dist/chunk-EP4J3TLQ.cjs.map +1 -0
- package/dist/{chunk-JW5FH4TE.cjs → chunk-GRATHB3C.cjs} +9 -9
- package/dist/{chunk-JW5FH4TE.cjs.map → chunk-GRATHB3C.cjs.map} +1 -1
- package/dist/{chunk-DCMB5XOH.cjs → chunk-KBRMAEBT.cjs} +5 -5
- package/dist/{chunk-DCMB5XOH.cjs.map → chunk-KBRMAEBT.cjs.map} +1 -1
- package/dist/{chunk-KCQ3I6NW.cjs → chunk-KP2DIIKO.cjs} +5 -5
- package/dist/{chunk-KCQ3I6NW.cjs.map → chunk-KP2DIIKO.cjs.map} +1 -1
- package/dist/{chunk-2ENKGVRS.js → chunk-L3RTC4FL.js} +3 -3
- package/dist/{chunk-2ENKGVRS.js.map → chunk-L3RTC4FL.js.map} +1 -1
- package/dist/{chunk-DIPHH4OP.js → chunk-MQRPXZW5.js} +3 -3
- package/dist/{chunk-DIPHH4OP.js.map → chunk-MQRPXZW5.js.map} +1 -1
- package/dist/{chunk-BCZGMK5P.js → chunk-NODNRXHA.js} +4 -4
- package/dist/{chunk-BCZGMK5P.js.map → chunk-NODNRXHA.js.map} +1 -1
- package/dist/{chunk-7GC5LKCR.cjs → chunk-P2JYDWZT.cjs} +3 -2
- package/dist/chunk-P2JYDWZT.cjs.map +1 -0
- package/dist/{chunk-KFZOJBI5.js → chunk-QAVLYMGM.js} +2 -2
- package/dist/chunk-QAVLYMGM.js.map +1 -0
- package/dist/{chunk-VAEXSUUY.js → chunk-T23YD5BR.js} +3 -3
- package/dist/{chunk-VAEXSUUY.js.map → chunk-T23YD5BR.js.map} +1 -1
- package/dist/{chunk-GSKGWWBR.cjs → chunk-TBFA6QPH.cjs} +4 -4
- package/dist/{chunk-GSKGWWBR.cjs.map → chunk-TBFA6QPH.cjs.map} +1 -1
- package/dist/{chunk-ASPUFRHB.cjs → chunk-UIM5SLPP.cjs} +22 -7
- package/dist/chunk-UIM5SLPP.cjs.map +1 -0
- package/dist/{chunk-5AS4LKEF.js → chunk-WNXX3B2A.js} +3 -2
- package/dist/chunk-WNXX3B2A.js.map +1 -0
- package/dist/{chunk-IVM4WMMD.cjs → chunk-YLXCXVYF.cjs} +5 -5
- package/dist/{chunk-IVM4WMMD.cjs.map → chunk-YLXCXVYF.cjs.map} +1 -1
- package/dist/{chunk-UR7S4GGS.js → chunk-YT7HGYVO.js} +10 -10
- package/dist/{chunk-UR7S4GGS.js.map → chunk-YT7HGYVO.js.map} +1 -1
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +70 -17
- package/dist/entries/cast-swap.d.ts +70 -17
- package/dist/entries/cast-swap.js +1 -1
- package/dist/entries/client.cjs +16 -16
- package/dist/entries/client.js +11 -11
- package/dist/entries/copilot.cjs +4 -4
- package/dist/entries/copilot.js +3 -3
- package/dist/entries/core.cjs +6 -6
- package/dist/entries/core.js +2 -2
- package/dist/entries/edit.cjs +7 -7
- package/dist/entries/edit.js +2 -2
- package/dist/entries/errors.cjs +28 -28
- package/dist/entries/errors.d.cts +12 -8
- package/dist/entries/errors.d.ts +12 -8
- package/dist/entries/errors.js +1 -1
- package/dist/entries/media.cjs +4 -4
- package/dist/entries/media.d.cts +78 -6
- package/dist/entries/media.d.ts +78 -6
- package/dist/entries/media.js +3 -3
- package/dist/entries/nodes.cjs +3 -3
- package/dist/entries/nodes.js +2 -2
- package/dist/entries/picker-catalogs.cjs +2 -2
- package/dist/entries/picker-catalogs.d.cts +13 -0
- package/dist/entries/picker-catalogs.d.ts +13 -0
- package/dist/entries/picker-catalogs.js +1 -1
- package/dist/entries/studio.cjs +5 -5
- package/dist/entries/studio.js +2 -2
- package/dist/index.cjs +57 -57
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -11
- package/package.json +3 -3
- package/dist/chunk-5AS4LKEF.js.map +0 -1
- package/dist/chunk-7GC5LKCR.cjs.map +0 -1
- package/dist/chunk-7YHIFCJ4.cjs.map +0 -1
- package/dist/chunk-ASPUFRHB.cjs.map +0 -1
- package/dist/chunk-KFZOJBI5.js.map +0 -1
- package/dist/chunk-SEETG3EM.js.map +0 -1
- package/dist/chunk-WYX44JHE.cjs.map +0 -1
- package/dist/chunk-X4QICOOM.js.map +0 -1
|
@@ -13,27 +13,27 @@ import { SavedPostsResource } from './chunk-NCCBS6GU.js';
|
|
|
13
13
|
import { Scene3DResource } from './chunk-NNHWH7ER.js';
|
|
14
14
|
import { SessionsResource } from './chunk-WS4ZQ4AA.js';
|
|
15
15
|
import { ShotsResource } from './chunk-WVFAQBS7.js';
|
|
16
|
-
import { StudioResource } from './chunk-
|
|
16
|
+
import { StudioResource } from './chunk-A5UGBCAW.js';
|
|
17
17
|
import { TemplatesResource } from './chunk-M7VSFZMV.js';
|
|
18
18
|
import { TrashResource } from './chunk-2SQ7V6EX.js';
|
|
19
19
|
import { ObjectsResource } from './chunk-GIQDM2MH.js';
|
|
20
20
|
import { OrganizationsResource } from './chunk-ALSLZG3U.js';
|
|
21
21
|
import { PalettesResource } from './chunk-WEQWU2IC.js';
|
|
22
|
-
import { PickerCatalogsResource } from './chunk-
|
|
22
|
+
import { PickerCatalogsResource } from './chunk-QAVLYMGM.js';
|
|
23
23
|
import { PipelinesResource } from './chunk-J2DBYYXC.js';
|
|
24
24
|
import { ProjectsResource } from './chunk-H7VQTG4M.js';
|
|
25
25
|
import { PromptHelperResource } from './chunk-OIPPTBW4.js';
|
|
26
26
|
import { RecastResource } from './chunk-AJVSMNPZ.js';
|
|
27
27
|
import { LlmResource } from './chunk-E37CVHWW.js';
|
|
28
28
|
import { LocationsResource } from './chunk-XZPSJG2X.js';
|
|
29
|
-
import { MediaResource } from './chunk-
|
|
29
|
+
import { MediaResource } from './chunk-3HL3IHVE.js';
|
|
30
30
|
import { ModelsResource } from './chunk-Y6V6CBY5.js';
|
|
31
31
|
import { MoodboardsResource } from './chunk-YVU2M7MI.js';
|
|
32
32
|
import { PresetsResource } from './chunk-AEUPH7EE.js';
|
|
33
|
-
import { NodesResource } from './chunk-
|
|
33
|
+
import { NodesResource } from './chunk-L3RTC4FL.js';
|
|
34
34
|
import { OAuthResource } from './chunk-Z7LGWNI7.js';
|
|
35
35
|
import { DeveloperAppsResource } from './chunk-65E3JBFZ.js';
|
|
36
|
-
import { EditResource } from './chunk-
|
|
36
|
+
import { EditResource } from './chunk-T23YD5BR.js';
|
|
37
37
|
import { ExecutionsResource } from './chunk-22XXTB2R.js';
|
|
38
38
|
import { GalleryResource } from './chunk-JDEZHITT.js';
|
|
39
39
|
import { JobsResource } from './chunk-A42R7UT7.js';
|
|
@@ -43,14 +43,14 @@ import { CollectionsResource } from './chunk-4WRDR4GN.js';
|
|
|
43
43
|
import { CommunityResource } from './chunk-SFB4YLCS.js';
|
|
44
44
|
import { CompetitorsResource } from './chunk-BU5A6K4C.js';
|
|
45
45
|
import { ContentRightsResource } from './chunk-K2VWXAGK.js';
|
|
46
|
-
import { CopilotResource } from './chunk-
|
|
47
|
-
import { NodaroClientCore } from './chunk-
|
|
46
|
+
import { CopilotResource } from './chunk-MQRPXZW5.js';
|
|
47
|
+
import { NodaroClientCore } from './chunk-NODNRXHA.js';
|
|
48
48
|
import { CreaturesResource } from './chunk-HUYI5G3D.js';
|
|
49
49
|
import { CreditsResource } from './chunk-7QK2NXJA.js';
|
|
50
50
|
import { AppsResource } from './chunk-7LODCIQK.js';
|
|
51
51
|
import { AudioResource } from './chunk-3QFTP5P5.js';
|
|
52
52
|
import { BillingResource } from './chunk-VQOUF4F5.js';
|
|
53
|
-
import { CastSwapResource } from './chunk-
|
|
53
|
+
import { CastSwapResource } from './chunk-E3ZMKMY7.js';
|
|
54
54
|
import { CatalogsResource } from './chunk-KG4R454Z.js';
|
|
55
55
|
import { CharactersResource } from './chunk-CBDUHYTR.js';
|
|
56
56
|
|
|
@@ -208,5 +208,5 @@ function createClient(opts) {
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
export { NodaroClient, createClient };
|
|
211
|
-
//# sourceMappingURL=chunk-
|
|
212
|
-
//# sourceMappingURL=chunk-
|
|
211
|
+
//# sourceMappingURL=chunk-YT7HGYVO.js.map
|
|
212
|
+
//# sourceMappingURL=chunk-YT7HGYVO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DO,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,gBAAA,CAAiB;AAAA,EACxC,SAAA;AAAA,E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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-UR7S4GGS.js","sourcesContent":["import { WorkflowsResource } from \"./resources/workflows.js\"\nimport { ProjectsResource } from \"./resources/projects.js\"\nimport { SessionsResource } from \"./resources/sessions.js\"\nimport { TrashResource } from \"./resources/trash.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 { KeepersResource } from \"./resources/keepers.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 { ContentRightsResource } from \"./resources/content-rights.js\"\nimport { AudioResource } from \"./resources/audio.js\"\nimport { CreditsResource } from \"./resources/credits.js\"\nimport { BillingResource } from \"./resources/billing.js\"\nimport { UserSettingsResource } from \"./resources/user-settings.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 { CastSwapResource } from \"./resources/cast-swap.js\"\nimport { TrendsResource } from \"./resources/trends.js\"\nimport { TrendRadarResource } from \"./resources/trend-radar.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 /** Your Trash: items removed from sessions and deleted jobs. */\n readonly trash: TrashResource\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 /** The shared Nodaro Keepers catalog of characters, creatures, locations and objects. */\n readonly keepers: KeepersResource\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 /** Content rights: the declaration confirmed before a link is imported, and the confirmation a download carries. */\n readonly contentRights: ContentRightsResource\n readonly audio: AudioResource\n readonly credits: CreditsResource\n /** The signed-in person's own settings (the interface language, the monthly statement opt-in, …). */\n readonly userSettings: UserSettingsResource\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 /** Cast Swap: replace the people and/or location in a short video (Cloud). */\n readonly castSwap: CastSwapResource\n /** Trends: ready-made Cast Swap recipes you fill with your own pictures (Cloud). */\n readonly trends: TrendsResource\n /** Trend Radar: the daily run's candidate trends and the admin's decisions (Cloud, admin session only). */\n readonly trendRadar: TrendRadarResource\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.trash = new TrashResource(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.keepers = new KeepersResource(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.contentRights = new ContentRightsResource(this)\n this.audio = new AudioResource(this)\n this.credits = new CreditsResource(this)\n this.userSettings = new UserSettingsResource(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.castSwap = new CastSwapResource(this)\n this.trends = new TrendsResource(this)\n this.trendRadar = new TrendRadarResource(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
|
+
{"version":3,"sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DO,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,gBAAA,CAAiB;AAAA,EACxC,SAAA;AAAA,EACA,QAAA;AAAA;AAAA,EAEA,QAAA;AAAA;AAAA,EAEA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AA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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-YT7HGYVO.js","sourcesContent":["import { WorkflowsResource } from \"./resources/workflows.js\"\nimport { ProjectsResource } from \"./resources/projects.js\"\nimport { SessionsResource } from \"./resources/sessions.js\"\nimport { TrashResource } from \"./resources/trash.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 { KeepersResource } from \"./resources/keepers.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 { ContentRightsResource } from \"./resources/content-rights.js\"\nimport { AudioResource } from \"./resources/audio.js\"\nimport { CreditsResource } from \"./resources/credits.js\"\nimport { BillingResource } from \"./resources/billing.js\"\nimport { UserSettingsResource } from \"./resources/user-settings.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 { CastSwapResource } from \"./resources/cast-swap.js\"\nimport { TrendsResource } from \"./resources/trends.js\"\nimport { TrendRadarResource } from \"./resources/trend-radar.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 /** Your Trash: items removed from sessions and deleted jobs. */\n readonly trash: TrashResource\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 /** The shared Nodaro Keepers catalog of characters, creatures, locations and objects. */\n readonly keepers: KeepersResource\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 /** Content rights: the declaration confirmed before a link is imported, and the confirmation a download carries. */\n readonly contentRights: ContentRightsResource\n readonly audio: AudioResource\n readonly credits: CreditsResource\n /** The signed-in person's own settings (the interface language, the monthly statement opt-in, …). */\n readonly userSettings: UserSettingsResource\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 /** Cast Swap: replace the people and/or location in a short video (Cloud). */\n readonly castSwap: CastSwapResource\n /** Trends: ready-made Cast Swap recipes you fill with your own pictures (Cloud). */\n readonly trends: TrendsResource\n /** Trend Radar: the daily run's candidate trends and the admin's decisions (Cloud, admin session only). */\n readonly trendRadar: TrendRadarResource\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.trash = new TrashResource(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.keepers = new KeepersResource(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.contentRights = new ContentRightsResource(this)\n this.audio = new AudioResource(this)\n this.credits = new CreditsResource(this)\n this.userSettings = new UserSettingsResource(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.castSwap = new CastSwapResource(this)\n this.trends = new TrendsResource(this)\n this.trendRadar = new TrendRadarResource(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,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-RQSGS7ZK.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkAAUVNTWE_cjs = require('../chunk-AAUVNTWE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "CastSwapResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkAAUVNTWE_cjs.CastSwapResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=cast-swap.cjs.map
|
|
13
13
|
//# sourceMappingURL=cast-swap.cjs.map
|
|
@@ -38,7 +38,8 @@ import '@nodaro/shared/organizations';
|
|
|
38
38
|
*
|
|
39
39
|
* Refusals (thrown as a `NodaroError` subclass; body `{ error: { code, message } }`), before
|
|
40
40
|
* anything is charged: 400 `validation_error` (the body: no role with images,
|
|
41
|
-
* no reference
|
|
41
|
+
* no reference, no `prePrompt` or `postPrompt` and no art style (Flex on
|
|
42
|
+
* Nodaro Motion Prism), more roles of a kind
|
|
42
43
|
* than allowed, more than 30 images in all, `draft: true` above 480p, a
|
|
43
44
|
* `prePrompt` or `postPrompt` over 4,000 characters); on Nodaro Motion Pulse,
|
|
44
45
|
* `draft_unsupported` (`draft: true`), `resolution_unsupported` (480p),
|
|
@@ -48,9 +49,9 @@ import '@nodaro/shared/organizations';
|
|
|
48
49
|
* `invalid_role_mention` (also any `{role:N}` in a reference's `line`),
|
|
49
50
|
* `unsafe_url`, `video_unreadable`, `clip_out_of_range` (4–30 s),
|
|
50
51
|
* `preview_out_of_range`, `unnamed_role_needs_picture` (a role with no name
|
|
51
|
-
* and no image), `no_roles_in_preview` (a preview
|
|
52
|
-
*
|
|
53
|
-
*
|
|
52
|
+
* and no image), `no_roles_in_preview` (a preview that would change nothing,
|
|
53
|
+
* judged on what it sends: no role kept in it with images, no fixed
|
|
54
|
+
* reference, no `prePrompt` or `postPrompt` and no art style), `prompt_too_long`
|
|
54
55
|
* (the prompt would build too long: a `{role:N}` reads as the role's name when
|
|
55
56
|
* it sends no images; Nodaro Motion Pulse's cap is 8,000 characters); 401; 402 `insufficient_credits` (`run()` only); 404
|
|
56
57
|
* (a `sessionId` you may not use, `run()` only); 422 `job_blocked` (`run()`
|
|
@@ -108,9 +109,9 @@ interface CastSwapRolePreviewSettings {
|
|
|
108
109
|
/**
|
|
109
110
|
* `false` leaves this role out of the preview: its reference images are not
|
|
110
111
|
* sent, not prepared and not charged, and a `{role:N}` naming it reads as its
|
|
111
|
-
* `previewName`, else its `name`. Default `true`. A preview
|
|
112
|
-
*
|
|
113
|
-
*
|
|
112
|
+
* `previewName`, else its `name`. Default `true`. A preview that would
|
|
113
|
+
* change nothing (no role kept in it with images, no fixed reference, no pre
|
|
114
|
+
* or post prompt and no art style) answers 400 `no_roles_in_preview`.
|
|
114
115
|
*/
|
|
115
116
|
inPreview?: boolean;
|
|
116
117
|
}
|
|
@@ -226,7 +227,9 @@ interface CastSwapParams {
|
|
|
226
227
|
* Who and what to swap: at most 6 person roles, 1 location role, 3 pet roles
|
|
227
228
|
* and 3 product roles, with at most 30 images in all. A role with no images
|
|
228
229
|
* is skipped (that subject or place stays as in the video). At least one role
|
|
229
|
-
* with images,
|
|
230
|
+
* with images, a fixed reference, a `prePrompt` or `postPrompt`, or an art
|
|
231
|
+
* style (`direction`, Flex on Nodaro Motion Prism) is required. With an art
|
|
232
|
+
* style and nothing to swap, a run restyles the whole clip (see `direction`).
|
|
230
233
|
*/
|
|
231
234
|
roles: CastSwapRole[];
|
|
232
235
|
/**
|
|
@@ -270,13 +273,33 @@ interface CastSwapParams {
|
|
|
270
273
|
*/
|
|
271
274
|
style?: CastSwapStyle;
|
|
272
275
|
/**
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
276
|
+
* A direct run on Nodaro Motion Prism: an art style that restyles the whole
|
|
277
|
+
* video, as a `direction.style` id of the platform's `style` picker catalog
|
|
278
|
+
* (the same ids an image's `direction.style` takes); the platform words it.
|
|
279
|
+
* A Flex run (`style: "motion"`) takes one, and so does a Precise run where
|
|
280
|
+
* {@link CastSwapResource.styleChoice} answers `preciseArtStyle` true for the
|
|
281
|
+
* engine: Precise's edit of the clip, drawn in the art style. Refused with
|
|
282
|
+
* 400 `unknown_art_style` (not in the catalog), `art_style_not_supported` (a
|
|
283
|
+
* saved moodboard, `moodboard:…`) or `art_style_needs_flex` (a trend run, a
|
|
284
|
+
* Flex run whose prompt is made Precise by Nodaro's setting for how Flex
|
|
285
|
+
* runs are prepared, or a Precise request on an engine from before Precise
|
|
286
|
+
* runs took one), and on Nodaro Motion Pulse with `art_style_needs_prism`.
|
|
287
|
+
* The estimate (sent with the same `direction`) shows the price: it changes
|
|
288
|
+
* only where Nodaro's setting for such runs first redraws the role pictures
|
|
289
|
+
* in the art style.
|
|
290
|
+
*
|
|
291
|
+
* Style only: with no role with images and no fixed reference, the art style
|
|
292
|
+
* alone is the run's change (a pre or post prompt is still added). It
|
|
293
|
+
* restyles the whole clip, keeping the people, places, motion and sound, and
|
|
294
|
+
* is charged for what it runs (the estimate shows it; no clip-preparation
|
|
295
|
+
* `privacy` part). By default a black-and-white art style comes out
|
|
296
|
+
* monochrome. Nodaro may run it the way other art-style runs run instead,
|
|
297
|
+
* priced as those are and not made monochrome.
|
|
298
|
+
* A preview takes its full run's path. Runs this way only on a Flex run, and
|
|
299
|
+
* only where {@link CastSwapResource.styleChoice} answers `styleOnly` true
|
|
300
|
+
* for the engine; elsewhere on Nodaro Motion Prism an art style alone is
|
|
301
|
+
* refused (on a Precise run too), and one with a pre or post prompt runs as
|
|
302
|
+
* any other art-style run. The job records it in `input_data.direction`.
|
|
280
303
|
*/
|
|
281
304
|
direction?: {
|
|
282
305
|
style: string;
|
|
@@ -358,6 +381,8 @@ interface CastSwapEstimate {
|
|
|
358
381
|
* (`privacyCredits`).
|
|
359
382
|
* - `prompt`: the prompt written for the run by a language model, when
|
|
360
383
|
* Nodaro's setting for the engine does so (absent otherwise).
|
|
384
|
+
* - `referenceAudio`: preparing the clip's sound for the video model, when
|
|
385
|
+
* Nodaro's setting for the engine runs that step (absent otherwise).
|
|
361
386
|
*
|
|
362
387
|
* `motion` and `motionExpected` are alternatives, so the parts sum to more
|
|
363
388
|
* than either total: read `totalCredits` and `expectedCredits`, never the
|
|
@@ -372,6 +397,7 @@ interface CastSwapEstimate {
|
|
|
372
397
|
motionExpected?: number;
|
|
373
398
|
privacy?: number;
|
|
374
399
|
prompt?: number;
|
|
400
|
+
referenceAudio?: number;
|
|
375
401
|
} & Record<string, number>;
|
|
376
402
|
/**
|
|
377
403
|
* The extra credits charged only if the video model refuses the clip and
|
|
@@ -491,6 +517,27 @@ type CastSwapStyleChoiceOption = "user" | "precise" | "flex";
|
|
|
491
517
|
/** What {@link CastSwapResource.styleChoice} answers: every engine's choice, by its public id. */
|
|
492
518
|
interface CastSwapStyleChoice {
|
|
493
519
|
engines: Record<CastSwapEngine, CastSwapStyleChoiceOption>;
|
|
520
|
+
/**
|
|
521
|
+
* Per engine, whether the engine takes style-only runs: a Flex run
|
|
522
|
+
* (`style: "motion"`) with an art style (`direction`) and nothing to swap
|
|
523
|
+
* (no role with images, no fixed reference). It follows the engine alone, so
|
|
524
|
+
* read it with {@link engines}: an engine answered `"precise"` drops the art
|
|
525
|
+
* style, so such a request is refused as `validation_error` and, with anything
|
|
526
|
+
* else to change, runs and is quoted as Precise. Nodaro Motion Pulse is always
|
|
527
|
+
* `false` (it takes no art style). Absent from an older server, and
|
|
528
|
+
* an engine missing from it: `false`.
|
|
529
|
+
*/
|
|
530
|
+
styleOnly?: Partial<Record<CastSwapEngine, boolean>>;
|
|
531
|
+
/**
|
|
532
|
+
* Per engine, whether a Precise run (no `style`, or `"precise"`) takes an
|
|
533
|
+
* art style (`direction`), as a Flex run does: Precise's edit of the clip,
|
|
534
|
+
* drawn in the art style. Not on its own: a Precise run with nothing else to
|
|
535
|
+
* change is still refused. Where it is `true`, an engine answered
|
|
536
|
+
* `"precise"` keeps a Flex request's art style. Nodaro Motion Pulse is always
|
|
537
|
+
* `false` (it takes no art style). Absent from an older server, and an engine
|
|
538
|
+
* missing from it: `false` (offer an art style on Flex runs alone).
|
|
539
|
+
*/
|
|
540
|
+
preciseArtStyle?: Partial<Record<CastSwapEngine, boolean>>;
|
|
494
541
|
}
|
|
495
542
|
declare class CastSwapResource {
|
|
496
543
|
private client;
|
|
@@ -510,8 +557,14 @@ declare class CastSwapResource {
|
|
|
510
557
|
* Whether people choose a direct run's style, per engine
|
|
511
558
|
* (`GET /v1/cast-swap/style-choice`): `"user"` = show a Style control;
|
|
512
559
|
* `"precise"` / `"flex"` = an admin forced that style for the engine, so a
|
|
513
|
-
* run's `style` is overridden and the control is best hidden.
|
|
514
|
-
*
|
|
560
|
+
* run's `style` is overridden and the control is best hidden. Its
|
|
561
|
+
* `styleOnly` says, per engine, whether a Flex run with an art style and
|
|
562
|
+
* nothing to swap restyles the whole clip there. Where it is not `true`
|
|
563
|
+
* (absent, or an engine missing from it, included) on Nodaro Motion Prism, an
|
|
564
|
+
* art style alone is refused, and one with a pre or post prompt runs as any
|
|
565
|
+
* other art-style run. Its `preciseArtStyle` says, per engine, whether a
|
|
566
|
+
* Precise run takes an art style there too.
|
|
567
|
+
* Public (no sign-in needed); the answer may be up to a minute old.
|
|
515
568
|
*/
|
|
516
569
|
styleChoice(): Promise<CastSwapStyleChoice>;
|
|
517
570
|
/** Quote a run before starting it (`POST /v1/cast-swap/estimate`); spends nothing. */
|
|
@@ -38,7 +38,8 @@ import '@nodaro/shared/organizations';
|
|
|
38
38
|
*
|
|
39
39
|
* Refusals (thrown as a `NodaroError` subclass; body `{ error: { code, message } }`), before
|
|
40
40
|
* anything is charged: 400 `validation_error` (the body: no role with images,
|
|
41
|
-
* no reference
|
|
41
|
+
* no reference, no `prePrompt` or `postPrompt` and no art style (Flex on
|
|
42
|
+
* Nodaro Motion Prism), more roles of a kind
|
|
42
43
|
* than allowed, more than 30 images in all, `draft: true` above 480p, a
|
|
43
44
|
* `prePrompt` or `postPrompt` over 4,000 characters); on Nodaro Motion Pulse,
|
|
44
45
|
* `draft_unsupported` (`draft: true`), `resolution_unsupported` (480p),
|
|
@@ -48,9 +49,9 @@ import '@nodaro/shared/organizations';
|
|
|
48
49
|
* `invalid_role_mention` (also any `{role:N}` in a reference's `line`),
|
|
49
50
|
* `unsafe_url`, `video_unreadable`, `clip_out_of_range` (4–30 s),
|
|
50
51
|
* `preview_out_of_range`, `unnamed_role_needs_picture` (a role with no name
|
|
51
|
-
* and no image), `no_roles_in_preview` (a preview
|
|
52
|
-
*
|
|
53
|
-
*
|
|
52
|
+
* and no image), `no_roles_in_preview` (a preview that would change nothing,
|
|
53
|
+
* judged on what it sends: no role kept in it with images, no fixed
|
|
54
|
+
* reference, no `prePrompt` or `postPrompt` and no art style), `prompt_too_long`
|
|
54
55
|
* (the prompt would build too long: a `{role:N}` reads as the role's name when
|
|
55
56
|
* it sends no images; Nodaro Motion Pulse's cap is 8,000 characters); 401; 402 `insufficient_credits` (`run()` only); 404
|
|
56
57
|
* (a `sessionId` you may not use, `run()` only); 422 `job_blocked` (`run()`
|
|
@@ -108,9 +109,9 @@ interface CastSwapRolePreviewSettings {
|
|
|
108
109
|
/**
|
|
109
110
|
* `false` leaves this role out of the preview: its reference images are not
|
|
110
111
|
* sent, not prepared and not charged, and a `{role:N}` naming it reads as its
|
|
111
|
-
* `previewName`, else its `name`. Default `true`. A preview
|
|
112
|
-
*
|
|
113
|
-
*
|
|
112
|
+
* `previewName`, else its `name`. Default `true`. A preview that would
|
|
113
|
+
* change nothing (no role kept in it with images, no fixed reference, no pre
|
|
114
|
+
* or post prompt and no art style) answers 400 `no_roles_in_preview`.
|
|
114
115
|
*/
|
|
115
116
|
inPreview?: boolean;
|
|
116
117
|
}
|
|
@@ -226,7 +227,9 @@ interface CastSwapParams {
|
|
|
226
227
|
* Who and what to swap: at most 6 person roles, 1 location role, 3 pet roles
|
|
227
228
|
* and 3 product roles, with at most 30 images in all. A role with no images
|
|
228
229
|
* is skipped (that subject or place stays as in the video). At least one role
|
|
229
|
-
* with images,
|
|
230
|
+
* with images, a fixed reference, a `prePrompt` or `postPrompt`, or an art
|
|
231
|
+
* style (`direction`, Flex on Nodaro Motion Prism) is required. With an art
|
|
232
|
+
* style and nothing to swap, a run restyles the whole clip (see `direction`).
|
|
230
233
|
*/
|
|
231
234
|
roles: CastSwapRole[];
|
|
232
235
|
/**
|
|
@@ -270,13 +273,33 @@ interface CastSwapParams {
|
|
|
270
273
|
*/
|
|
271
274
|
style?: CastSwapStyle;
|
|
272
275
|
/**
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
276
|
+
* A direct run on Nodaro Motion Prism: an art style that restyles the whole
|
|
277
|
+
* video, as a `direction.style` id of the platform's `style` picker catalog
|
|
278
|
+
* (the same ids an image's `direction.style` takes); the platform words it.
|
|
279
|
+
* A Flex run (`style: "motion"`) takes one, and so does a Precise run where
|
|
280
|
+
* {@link CastSwapResource.styleChoice} answers `preciseArtStyle` true for the
|
|
281
|
+
* engine: Precise's edit of the clip, drawn in the art style. Refused with
|
|
282
|
+
* 400 `unknown_art_style` (not in the catalog), `art_style_not_supported` (a
|
|
283
|
+
* saved moodboard, `moodboard:…`) or `art_style_needs_flex` (a trend run, a
|
|
284
|
+
* Flex run whose prompt is made Precise by Nodaro's setting for how Flex
|
|
285
|
+
* runs are prepared, or a Precise request on an engine from before Precise
|
|
286
|
+
* runs took one), and on Nodaro Motion Pulse with `art_style_needs_prism`.
|
|
287
|
+
* The estimate (sent with the same `direction`) shows the price: it changes
|
|
288
|
+
* only where Nodaro's setting for such runs first redraws the role pictures
|
|
289
|
+
* in the art style.
|
|
290
|
+
*
|
|
291
|
+
* Style only: with no role with images and no fixed reference, the art style
|
|
292
|
+
* alone is the run's change (a pre or post prompt is still added). It
|
|
293
|
+
* restyles the whole clip, keeping the people, places, motion and sound, and
|
|
294
|
+
* is charged for what it runs (the estimate shows it; no clip-preparation
|
|
295
|
+
* `privacy` part). By default a black-and-white art style comes out
|
|
296
|
+
* monochrome. Nodaro may run it the way other art-style runs run instead,
|
|
297
|
+
* priced as those are and not made monochrome.
|
|
298
|
+
* A preview takes its full run's path. Runs this way only on a Flex run, and
|
|
299
|
+
* only where {@link CastSwapResource.styleChoice} answers `styleOnly` true
|
|
300
|
+
* for the engine; elsewhere on Nodaro Motion Prism an art style alone is
|
|
301
|
+
* refused (on a Precise run too), and one with a pre or post prompt runs as
|
|
302
|
+
* any other art-style run. The job records it in `input_data.direction`.
|
|
280
303
|
*/
|
|
281
304
|
direction?: {
|
|
282
305
|
style: string;
|
|
@@ -358,6 +381,8 @@ interface CastSwapEstimate {
|
|
|
358
381
|
* (`privacyCredits`).
|
|
359
382
|
* - `prompt`: the prompt written for the run by a language model, when
|
|
360
383
|
* Nodaro's setting for the engine does so (absent otherwise).
|
|
384
|
+
* - `referenceAudio`: preparing the clip's sound for the video model, when
|
|
385
|
+
* Nodaro's setting for the engine runs that step (absent otherwise).
|
|
361
386
|
*
|
|
362
387
|
* `motion` and `motionExpected` are alternatives, so the parts sum to more
|
|
363
388
|
* than either total: read `totalCredits` and `expectedCredits`, never the
|
|
@@ -372,6 +397,7 @@ interface CastSwapEstimate {
|
|
|
372
397
|
motionExpected?: number;
|
|
373
398
|
privacy?: number;
|
|
374
399
|
prompt?: number;
|
|
400
|
+
referenceAudio?: number;
|
|
375
401
|
} & Record<string, number>;
|
|
376
402
|
/**
|
|
377
403
|
* The extra credits charged only if the video model refuses the clip and
|
|
@@ -491,6 +517,27 @@ type CastSwapStyleChoiceOption = "user" | "precise" | "flex";
|
|
|
491
517
|
/** What {@link CastSwapResource.styleChoice} answers: every engine's choice, by its public id. */
|
|
492
518
|
interface CastSwapStyleChoice {
|
|
493
519
|
engines: Record<CastSwapEngine, CastSwapStyleChoiceOption>;
|
|
520
|
+
/**
|
|
521
|
+
* Per engine, whether the engine takes style-only runs: a Flex run
|
|
522
|
+
* (`style: "motion"`) with an art style (`direction`) and nothing to swap
|
|
523
|
+
* (no role with images, no fixed reference). It follows the engine alone, so
|
|
524
|
+
* read it with {@link engines}: an engine answered `"precise"` drops the art
|
|
525
|
+
* style, so such a request is refused as `validation_error` and, with anything
|
|
526
|
+
* else to change, runs and is quoted as Precise. Nodaro Motion Pulse is always
|
|
527
|
+
* `false` (it takes no art style). Absent from an older server, and
|
|
528
|
+
* an engine missing from it: `false`.
|
|
529
|
+
*/
|
|
530
|
+
styleOnly?: Partial<Record<CastSwapEngine, boolean>>;
|
|
531
|
+
/**
|
|
532
|
+
* Per engine, whether a Precise run (no `style`, or `"precise"`) takes an
|
|
533
|
+
* art style (`direction`), as a Flex run does: Precise's edit of the clip,
|
|
534
|
+
* drawn in the art style. Not on its own: a Precise run with nothing else to
|
|
535
|
+
* change is still refused. Where it is `true`, an engine answered
|
|
536
|
+
* `"precise"` keeps a Flex request's art style. Nodaro Motion Pulse is always
|
|
537
|
+
* `false` (it takes no art style). Absent from an older server, and an engine
|
|
538
|
+
* missing from it: `false` (offer an art style on Flex runs alone).
|
|
539
|
+
*/
|
|
540
|
+
preciseArtStyle?: Partial<Record<CastSwapEngine, boolean>>;
|
|
494
541
|
}
|
|
495
542
|
declare class CastSwapResource {
|
|
496
543
|
private client;
|
|
@@ -510,8 +557,14 @@ declare class CastSwapResource {
|
|
|
510
557
|
* Whether people choose a direct run's style, per engine
|
|
511
558
|
* (`GET /v1/cast-swap/style-choice`): `"user"` = show a Style control;
|
|
512
559
|
* `"precise"` / `"flex"` = an admin forced that style for the engine, so a
|
|
513
|
-
* run's `style` is overridden and the control is best hidden.
|
|
514
|
-
*
|
|
560
|
+
* run's `style` is overridden and the control is best hidden. Its
|
|
561
|
+
* `styleOnly` says, per engine, whether a Flex run with an art style and
|
|
562
|
+
* nothing to swap restyles the whole clip there. Where it is not `true`
|
|
563
|
+
* (absent, or an engine missing from it, included) on Nodaro Motion Prism, an
|
|
564
|
+
* art style alone is refused, and one with a pre or post prompt runs as any
|
|
565
|
+
* other art-style run. Its `preciseArtStyle` says, per engine, whether a
|
|
566
|
+
* Precise run takes an art style there too.
|
|
567
|
+
* Public (no sign-in needed); the answer may be up to a minute old.
|
|
515
568
|
*/
|
|
516
569
|
styleChoice(): Promise<CastSwapStyleChoice>;
|
|
517
570
|
/** Quote a run before starting it (`POST /v1/cast-swap/estimate`); spends nothing. */
|
package/dist/entries/client.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkC7DOFDP2_cjs = require('../chunk-C7DOFDP2.cjs');
|
|
4
4
|
require('../chunk-WUM6CWTE.cjs');
|
|
5
5
|
require('../chunk-LKH5M44B.cjs');
|
|
6
6
|
require('../chunk-RKW3N463.cjs');
|
|
@@ -16,27 +16,27 @@ require('../chunk-SYVNY3AH.cjs');
|
|
|
16
16
|
require('../chunk-YDRXBRW2.cjs');
|
|
17
17
|
require('../chunk-WMT7HEBZ.cjs');
|
|
18
18
|
require('../chunk-MBFUMWI5.cjs');
|
|
19
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-YLXCXVYF.cjs');
|
|
20
20
|
require('../chunk-UIBYZNDR.cjs');
|
|
21
21
|
require('../chunk-LTZKNAXM.cjs');
|
|
22
22
|
require('../chunk-57GANTLV.cjs');
|
|
23
23
|
require('../chunk-J5LGGCAS.cjs');
|
|
24
24
|
require('../chunk-NBVARNVA.cjs');
|
|
25
|
-
require('../chunk-
|
|
25
|
+
require('../chunk-EP4J3TLQ.cjs');
|
|
26
26
|
require('../chunk-G4AFHCNA.cjs');
|
|
27
27
|
require('../chunk-LAWYFC4G.cjs');
|
|
28
28
|
require('../chunk-TCLNSVYA.cjs');
|
|
29
29
|
require('../chunk-KXEWTYS4.cjs');
|
|
30
30
|
require('../chunk-SS3B6PHT.cjs');
|
|
31
31
|
require('../chunk-MIXRL6I2.cjs');
|
|
32
|
-
require('../chunk-
|
|
32
|
+
require('../chunk-UIM5SLPP.cjs');
|
|
33
33
|
require('../chunk-7QOCWJKD.cjs');
|
|
34
34
|
require('../chunk-ZCWKX4V6.cjs');
|
|
35
35
|
require('../chunk-Q45PC4YD.cjs');
|
|
36
|
-
require('../chunk-
|
|
36
|
+
require('../chunk-DR5WM36L.cjs');
|
|
37
37
|
require('../chunk-GVIFLUYZ.cjs');
|
|
38
38
|
require('../chunk-A3S55XGF.cjs');
|
|
39
|
-
require('../chunk-
|
|
39
|
+
require('../chunk-GRATHB3C.cjs');
|
|
40
40
|
require('../chunk-VUTNNRDW.cjs');
|
|
41
41
|
require('../chunk-WUKIJJG2.cjs');
|
|
42
42
|
require('../chunk-5LI4CVJB.cjs');
|
|
@@ -46,16 +46,16 @@ require('../chunk-WK4VXPPZ.cjs');
|
|
|
46
46
|
require('../chunk-43FVH6LJ.cjs');
|
|
47
47
|
require('../chunk-YFS2LMG4.cjs');
|
|
48
48
|
require('../chunk-3OARKXWT.cjs');
|
|
49
|
-
require('../chunk-
|
|
50
|
-
require('../chunk-
|
|
51
|
-
var
|
|
52
|
-
require('../chunk-
|
|
49
|
+
require('../chunk-TBFA6QPH.cjs');
|
|
50
|
+
require('../chunk-KP2DIIKO.cjs');
|
|
51
|
+
var chunkKBRMAEBT_cjs = require('../chunk-KBRMAEBT.cjs');
|
|
52
|
+
require('../chunk-P2JYDWZT.cjs');
|
|
53
53
|
require('../chunk-A3XA6UNM.cjs');
|
|
54
54
|
require('../chunk-4BAHF762.cjs');
|
|
55
55
|
require('../chunk-JOXZ4ZIF.cjs');
|
|
56
56
|
require('../chunk-GA4LZZKQ.cjs');
|
|
57
57
|
require('../chunk-GGIWDFER.cjs');
|
|
58
|
-
require('../chunk-
|
|
58
|
+
require('../chunk-AAUVNTWE.cjs');
|
|
59
59
|
require('../chunk-BPWUWUZ3.cjs');
|
|
60
60
|
require('../chunk-XZQ6Z4T6.cjs');
|
|
61
61
|
|
|
@@ -63,23 +63,23 @@ require('../chunk-XZQ6Z4T6.cjs');
|
|
|
63
63
|
|
|
64
64
|
Object.defineProperty(exports, "NodaroClient", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkC7DOFDP2_cjs.NodaroClient; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "createClient", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkC7DOFDP2_cjs.createClient; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "CallbackAuth", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkKBRMAEBT_cjs.CallbackAuth; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "StaticTokenAuth", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkKBRMAEBT_cjs.StaticTokenAuth; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "supabaseAuth", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkKBRMAEBT_cjs.supabaseAuth; }
|
|
83
83
|
});
|
|
84
84
|
//# sourceMappingURL=client.cjs.map
|
|
85
85
|
//# sourceMappingURL=client.cjs.map
|
package/dist/entries/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { NodaroClient, createClient } from '../chunk-
|
|
1
|
+
export { NodaroClient, createClient } from '../chunk-YT7HGYVO.js';
|
|
2
2
|
import '../chunk-33HT46A3.js';
|
|
3
3
|
import '../chunk-Z5GLY4R3.js';
|
|
4
4
|
import '../chunk-TLTPIS2A.js';
|
|
@@ -14,27 +14,27 @@ import '../chunk-NCCBS6GU.js';
|
|
|
14
14
|
import '../chunk-NNHWH7ER.js';
|
|
15
15
|
import '../chunk-WS4ZQ4AA.js';
|
|
16
16
|
import '../chunk-WVFAQBS7.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-A5UGBCAW.js';
|
|
18
18
|
import '../chunk-M7VSFZMV.js';
|
|
19
19
|
import '../chunk-2SQ7V6EX.js';
|
|
20
20
|
import '../chunk-GIQDM2MH.js';
|
|
21
21
|
import '../chunk-ALSLZG3U.js';
|
|
22
22
|
import '../chunk-WEQWU2IC.js';
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-QAVLYMGM.js';
|
|
24
24
|
import '../chunk-J2DBYYXC.js';
|
|
25
25
|
import '../chunk-H7VQTG4M.js';
|
|
26
26
|
import '../chunk-OIPPTBW4.js';
|
|
27
27
|
import '../chunk-AJVSMNPZ.js';
|
|
28
28
|
import '../chunk-E37CVHWW.js';
|
|
29
29
|
import '../chunk-XZPSJG2X.js';
|
|
30
|
-
import '../chunk-
|
|
30
|
+
import '../chunk-3HL3IHVE.js';
|
|
31
31
|
import '../chunk-Y6V6CBY5.js';
|
|
32
32
|
import '../chunk-YVU2M7MI.js';
|
|
33
33
|
import '../chunk-AEUPH7EE.js';
|
|
34
|
-
import '../chunk-
|
|
34
|
+
import '../chunk-L3RTC4FL.js';
|
|
35
35
|
import '../chunk-Z7LGWNI7.js';
|
|
36
36
|
import '../chunk-65E3JBFZ.js';
|
|
37
|
-
import '../chunk-
|
|
37
|
+
import '../chunk-T23YD5BR.js';
|
|
38
38
|
import '../chunk-22XXTB2R.js';
|
|
39
39
|
import '../chunk-JDEZHITT.js';
|
|
40
40
|
import '../chunk-A42R7UT7.js';
|
|
@@ -44,16 +44,16 @@ import '../chunk-4WRDR4GN.js';
|
|
|
44
44
|
import '../chunk-SFB4YLCS.js';
|
|
45
45
|
import '../chunk-BU5A6K4C.js';
|
|
46
46
|
import '../chunk-K2VWXAGK.js';
|
|
47
|
-
import '../chunk-
|
|
48
|
-
import '../chunk-
|
|
49
|
-
export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-
|
|
50
|
-
import '../chunk-
|
|
47
|
+
import '../chunk-MQRPXZW5.js';
|
|
48
|
+
import '../chunk-A75Q7UEU.js';
|
|
49
|
+
export { CallbackAuth, StaticTokenAuth, supabaseAuth } from '../chunk-NODNRXHA.js';
|
|
50
|
+
import '../chunk-WNXX3B2A.js';
|
|
51
51
|
import '../chunk-HUYI5G3D.js';
|
|
52
52
|
import '../chunk-7QK2NXJA.js';
|
|
53
53
|
import '../chunk-7LODCIQK.js';
|
|
54
54
|
import '../chunk-3QFTP5P5.js';
|
|
55
55
|
import '../chunk-VQOUF4F5.js';
|
|
56
|
-
import '../chunk-
|
|
56
|
+
import '../chunk-E3ZMKMY7.js';
|
|
57
57
|
import '../chunk-KG4R454Z.js';
|
|
58
58
|
import '../chunk-CBDUHYTR.js';
|
|
59
59
|
//# sourceMappingURL=client.js.map
|