@nodaro/sdk 2.33.0 → 2.38.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-GKQSA24K.cjs → chunk-3WNEIBTH.cjs} +43 -35
- package/dist/chunk-3WNEIBTH.cjs.map +1 -0
- package/dist/{chunk-JMOKD6ZP.js → chunk-7CUWAVWB.js} +3 -3
- package/dist/{chunk-JMOKD6ZP.js.map → chunk-7CUWAVWB.js.map} +1 -1
- package/dist/{chunk-E5BM4BLO.js → chunk-7IWVDWSP.js} +20 -3
- package/dist/chunk-7IWVDWSP.js.map +1 -0
- package/dist/{chunk-RHJRLXKY.cjs → chunk-7XOK277W.cjs} +9 -9
- package/dist/{chunk-RHJRLXKY.cjs.map → chunk-7XOK277W.cjs.map} +1 -1
- package/dist/{chunk-3QBH2VE2.cjs → chunk-A7QSOD2S.cjs} +20 -3
- package/dist/chunk-A7QSOD2S.cjs.map +1 -0
- package/dist/{chunk-VV4TZG5S.js → chunk-AUKHMT53.js} +3 -3
- package/dist/chunk-AUKHMT53.js.map +1 -0
- package/dist/{chunk-JSCC2N7N.js → chunk-AVOQ5DG4.js} +29 -21
- package/dist/chunk-AVOQ5DG4.js.map +1 -0
- package/dist/{chunk-I6CXC345.js → chunk-D2ILCSOQ.js} +3 -3
- package/dist/{chunk-I6CXC345.js.map → chunk-D2ILCSOQ.js.map} +1 -1
- package/dist/{chunk-4NLVBYMW.js → chunk-DQAYIVVS.js} +42 -8
- package/dist/chunk-DQAYIVVS.js.map +1 -0
- package/dist/chunk-ED3ZOX3M.js +54 -0
- package/dist/chunk-ED3ZOX3M.js.map +1 -0
- package/dist/{chunk-5ALNFATQ.cjs → chunk-EK672FFM.cjs} +2 -2
- package/dist/chunk-EK672FFM.cjs.map +1 -0
- package/dist/{chunk-OXQKE5EG.cjs → chunk-ETX3TLNB.cjs} +43 -9
- package/dist/{chunk-4NLVBYMW.js.map → chunk-ETX3TLNB.cjs.map} +1 -1
- package/dist/{chunk-BRV7Z4GD.cjs → chunk-FHVNTS4E.cjs} +2 -2
- package/dist/{chunk-BRV7Z4GD.cjs.map → chunk-FHVNTS4E.cjs.map} +1 -1
- package/dist/{chunk-N6GLZOE4.cjs → chunk-FM2KM5TY.cjs} +52 -10
- package/dist/chunk-FM2KM5TY.cjs.map +1 -0
- package/dist/{chunk-53SXNN3A.js → chunk-FQNCIP6K.js} +2 -2
- package/dist/chunk-FQNCIP6K.js.map +1 -0
- package/dist/{chunk-KNMW722T.cjs → chunk-FRQJNGJS.cjs} +5 -5
- package/dist/{chunk-KNMW722T.cjs.map → chunk-FRQJNGJS.cjs.map} +1 -1
- package/dist/{chunk-4CXB7RA6.js → chunk-IGMWFEFB.js} +6 -4
- package/dist/chunk-IGMWFEFB.js.map +1 -0
- package/dist/{chunk-56NJIP7P.cjs → chunk-IISVYX5J.cjs} +5 -5
- package/dist/{chunk-56NJIP7P.cjs.map → chunk-IISVYX5J.cjs.map} +1 -1
- package/dist/{chunk-6OGGJQVA.js → chunk-ILG5DHQQ.js} +2 -2
- package/dist/chunk-ILG5DHQQ.js.map +1 -0
- package/dist/{chunk-ZQQABQMH.cjs → chunk-JTOEHQQJ.cjs} +12 -2
- package/dist/chunk-JTOEHQQJ.cjs.map +1 -0
- package/dist/{chunk-ZXJQSFIA.js → chunk-JUON5NXA.js} +2 -2
- package/dist/{chunk-ZXJQSFIA.js.map → chunk-JUON5NXA.js.map} +1 -1
- package/dist/chunk-KARJ7P7Y.js +3 -0
- package/dist/chunk-KARJ7P7Y.js.map +1 -0
- package/dist/{chunk-JGS6YBDW.js → chunk-L6T44A3G.js} +51 -11
- package/dist/chunk-L6T44A3G.js.map +1 -0
- package/dist/{chunk-U4T3Z3K7.cjs → chunk-NKH2UFSD.cjs} +5 -5
- package/dist/chunk-NKH2UFSD.cjs.map +1 -0
- package/dist/{chunk-E2ZXHS6E.js → chunk-OIPPTBW4.js} +2 -2
- package/dist/chunk-OIPPTBW4.js.map +1 -0
- package/dist/{chunk-DKEYSJCE.cjs → chunk-OIYMTGYN.cjs} +2 -2
- package/dist/chunk-OIYMTGYN.cjs.map +1 -0
- package/dist/{chunk-NLQQHJ25.cjs → chunk-OSMKIRKI.cjs} +4 -4
- package/dist/{chunk-NLQQHJ25.cjs.map → chunk-OSMKIRKI.cjs.map} +1 -1
- package/dist/chunk-PG2GBS3K.cjs +4 -0
- package/dist/chunk-PG2GBS3K.cjs.map +1 -0
- package/dist/{chunk-GB724HW2.cjs → chunk-PQ7OKM3E.cjs} +6 -4
- package/dist/chunk-PQ7OKM3E.cjs.map +1 -0
- package/dist/{chunk-Y5CYFNNW.js → chunk-Q6HY2Q5V.js} +4 -4
- package/dist/{chunk-Y5CYFNNW.js.map → chunk-Q6HY2Q5V.js.map} +1 -1
- package/dist/chunk-QGOEQGAE.js +102 -0
- package/dist/chunk-QGOEQGAE.js.map +1 -0
- package/dist/{chunk-B7RG6AUQ.cjs → chunk-QZHRXPN5.cjs} +22 -22
- package/dist/chunk-QZHRXPN5.cjs.map +1 -0
- package/dist/chunk-RQSGS7ZK.cjs +4 -0
- package/dist/chunk-RQSGS7ZK.cjs.map +1 -0
- package/dist/{chunk-KGKCAGRD.cjs → chunk-TCLNSVYA.cjs} +2 -2
- package/dist/chunk-TCLNSVYA.cjs.map +1 -0
- package/dist/chunk-U2B7YQ2N.cjs +56 -0
- package/dist/chunk-U2B7YQ2N.cjs.map +1 -0
- package/dist/chunk-VCEYLJ2Q.cjs +104 -0
- package/dist/chunk-VCEYLJ2Q.cjs.map +1 -0
- package/dist/{chunk-VGWOIWRQ.cjs → chunk-VHSMOBU7.cjs} +2 -2
- package/dist/{chunk-VGWOIWRQ.cjs.map → chunk-VHSMOBU7.cjs.map} +1 -1
- package/dist/{chunk-T3SYREY4.js → chunk-WY4QRJZW.js} +12 -2
- package/dist/chunk-WY4QRJZW.js.map +1 -0
- package/dist/chunk-YCVRQZT3.js +3 -0
- package/dist/chunk-YCVRQZT3.js.map +1 -0
- package/dist/{chunk-DPSMVOM3.js → chunk-YSZM3N7Q.js} +2 -2
- package/dist/chunk-YSZM3N7Q.js.map +1 -0
- package/dist/{chunk-5A7J24LN.js → chunk-Z7UZ3FD3.js} +3 -3
- package/dist/{chunk-5A7J24LN.js.map → chunk-Z7UZ3FD3.js.map} +1 -1
- package/dist/{chunk-6ECW23GA.js → chunk-ZDSC6KBT.js} +3 -3
- package/dist/chunk-ZDSC6KBT.js.map +1 -0
- package/dist/entries/apps.cjs +2 -2
- package/dist/entries/apps.d.cts +4 -0
- package/dist/entries/apps.d.ts +4 -0
- package/dist/entries/apps.js +1 -1
- package/dist/entries/cast-swap.cjs +13 -0
- package/dist/entries/cast-swap.cjs.map +1 -0
- package/dist/entries/cast-swap.d.cts +380 -0
- package/dist/entries/cast-swap.d.ts +380 -0
- package/dist/entries/cast-swap.js +4 -0
- package/dist/entries/cast-swap.js.map +1 -0
- package/dist/entries/characters.d.cts +2 -2
- package/dist/entries/characters.d.ts +2 -2
- package/dist/entries/client.cjs +29 -27
- package/dist/entries/client.d.cts +8 -2
- package/dist/entries/client.d.ts +8 -2
- package/dist/entries/client.js +24 -22
- 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/creatures.d.cts +2 -2
- package/dist/entries/creatures.d.ts +2 -2
- package/dist/entries/credits.cjs +2 -2
- package/dist/entries/credits.d.cts +37 -2
- package/dist/entries/credits.d.ts +37 -2
- package/dist/entries/credits.js +1 -1
- package/dist/entries/edit.cjs +7 -7
- package/dist/entries/edit.d.cts +3 -0
- package/dist/entries/edit.d.ts +3 -0
- package/dist/entries/edit.js +2 -2
- package/dist/entries/errors.cjs +30 -22
- package/dist/entries/errors.d.cts +42 -4
- package/dist/entries/errors.d.ts +42 -4
- package/dist/entries/errors.js +1 -1
- package/dist/entries/jobs.cjs +2 -2
- package/dist/entries/jobs.d.cts +76 -4
- package/dist/entries/jobs.d.ts +76 -4
- package/dist/entries/jobs.js +1 -1
- package/dist/entries/locations.d.cts +2 -2
- package/dist/entries/locations.d.ts +2 -2
- package/dist/entries/media.cjs +4 -4
- package/dist/entries/media.d.cts +39 -5
- package/dist/entries/media.d.ts +39 -5
- package/dist/entries/media.js +3 -3
- package/dist/entries/nodes.cjs +3 -3
- package/dist/entries/nodes.d.cts +2 -2
- package/dist/entries/nodes.d.ts +2 -2
- package/dist/entries/nodes.js +2 -2
- package/dist/entries/objects.d.cts +2 -2
- package/dist/entries/objects.d.ts +2 -2
- package/dist/entries/prompt-helper.cjs +2 -2
- package/dist/entries/prompt-helper.d.cts +3 -1
- package/dist/entries/prompt-helper.d.ts +3 -1
- package/dist/entries/prompt-helper.js +1 -1
- package/dist/entries/scene3d.d.cts +3 -3
- package/dist/entries/scene3d.d.ts +3 -3
- package/dist/entries/studio.cjs +5 -5
- package/dist/entries/studio.d.cts +2 -2
- package/dist/entries/studio.d.ts +2 -2
- package/dist/entries/studio.js +2 -2
- package/dist/entries/templates.cjs +2 -2
- package/dist/entries/templates.d.cts +4 -0
- package/dist/entries/templates.d.ts +4 -0
- package/dist/entries/templates.js +1 -1
- package/dist/entries/trends.cjs +13 -0
- package/dist/entries/trends.cjs.map +1 -0
- package/dist/entries/trends.d.cts +295 -0
- package/dist/entries/trends.d.ts +295 -0
- package/dist/entries/trends.js +4 -0
- package/dist/entries/trends.js.map +1 -0
- package/dist/entries/tutorials.cjs +2 -2
- package/dist/entries/tutorials.d.cts +4 -0
- package/dist/entries/tutorials.d.ts +4 -0
- package/dist/entries/tutorials.js +1 -1
- package/dist/entries/uploads.cjs +2 -2
- package/dist/entries/uploads.d.cts +14 -1
- package/dist/entries/uploads.d.ts +14 -1
- package/dist/entries/uploads.js +1 -1
- package/dist/entries/workflows.cjs +2 -2
- package/dist/entries/workflows.d.cts +6 -0
- package/dist/entries/workflows.d.ts +6 -0
- package/dist/entries/workflows.js +1 -1
- package/dist/index.cjs +158 -138
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +33 -29
- package/dist/{nodes-C-wrO6Sg.d.ts → nodes-9WpYNWtS.d.ts} +35 -1
- package/dist/{nodes-J8ByUN8z.d.cts → nodes-BDUk5Aej.d.cts} +35 -1
- package/dist/{studio-productions-vbCNSbtf.d.ts → studio-productions-DtTE8mdl.d.ts} +35 -1
- package/dist/{studio-productions-DUHvdSvk.d.cts → studio-productions-r2-VZsKj.d.cts} +35 -1
- package/package.json +12 -2
- package/dist/chunk-3QBH2VE2.cjs.map +0 -1
- package/dist/chunk-4CXB7RA6.js.map +0 -1
- package/dist/chunk-53SXNN3A.js.map +0 -1
- package/dist/chunk-5ALNFATQ.cjs.map +0 -1
- package/dist/chunk-6ECW23GA.js.map +0 -1
- package/dist/chunk-6OGGJQVA.js.map +0 -1
- package/dist/chunk-B7RG6AUQ.cjs.map +0 -1
- package/dist/chunk-DKEYSJCE.cjs.map +0 -1
- package/dist/chunk-DPSMVOM3.js.map +0 -1
- package/dist/chunk-E2ZXHS6E.js.map +0 -1
- package/dist/chunk-E5BM4BLO.js.map +0 -1
- package/dist/chunk-GB724HW2.cjs.map +0 -1
- package/dist/chunk-GKQSA24K.cjs.map +0 -1
- package/dist/chunk-JGS6YBDW.js.map +0 -1
- package/dist/chunk-JSCC2N7N.js.map +0 -1
- package/dist/chunk-KGKCAGRD.cjs.map +0 -1
- package/dist/chunk-N6GLZOE4.cjs.map +0 -1
- package/dist/chunk-OXQKE5EG.cjs.map +0 -1
- package/dist/chunk-T3SYREY4.js.map +0 -1
- package/dist/chunk-U4T3Z3K7.cjs.map +0 -1
- package/dist/chunk-VV4TZG5S.js.map +0 -1
- package/dist/chunk-ZQQABQMH.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio } from '@nodaro/shared/entities';
|
|
2
2
|
export { OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectAspectRatio, ObjectAssetType, ObjectAttachColumn } from '@nodaro/shared/entities';
|
|
3
3
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
|
|
4
|
-
import { l as GenerationSessionParams } from '../nodes-
|
|
4
|
+
import { l as GenerationSessionParams } from '../nodes-BDUk5Aej.cjs';
|
|
5
5
|
import '@nodaro/shared/apps';
|
|
6
6
|
import '@nodaro/shared/organizations';
|
|
7
7
|
import '@nodaro/shared/types';
|
|
@@ -14,7 +14,7 @@ import '@nodaro/shared/scene3d';
|
|
|
14
14
|
import '@nodaro/shared/credits';
|
|
15
15
|
import './jobs.cjs';
|
|
16
16
|
import './errors.cjs';
|
|
17
|
-
import '../studio-productions-
|
|
17
|
+
import '../studio-productions-r2-VZsKj.cjs';
|
|
18
18
|
import '@nodaro/shared/model-catalog';
|
|
19
19
|
import '@nodaro/prompts/prompt-builder';
|
|
20
20
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ObjectAssetType, ObjectAttachColumn, ObjectAspectRatio } from '@nodaro/shared/entities';
|
|
2
2
|
export { OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectAspectRatio, ObjectAssetType, ObjectAttachColumn } from '@nodaro/shared/entities';
|
|
3
3
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
|
|
4
|
-
import { l as GenerationSessionParams } from '../nodes-
|
|
4
|
+
import { l as GenerationSessionParams } from '../nodes-9WpYNWtS.js';
|
|
5
5
|
import '@nodaro/shared/apps';
|
|
6
6
|
import '@nodaro/shared/organizations';
|
|
7
7
|
import '@nodaro/shared/types';
|
|
@@ -14,7 +14,7 @@ import '@nodaro/shared/scene3d';
|
|
|
14
14
|
import '@nodaro/shared/credits';
|
|
15
15
|
import './jobs.js';
|
|
16
16
|
import './errors.js';
|
|
17
|
-
import '../studio-productions-
|
|
17
|
+
import '../studio-productions-DtTE8mdl.js';
|
|
18
18
|
import '@nodaro/shared/model-catalog';
|
|
19
19
|
import '@nodaro/prompts/prompt-builder';
|
|
20
20
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-IGOPUMEX.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkTCLNSVYA_cjs = require('../chunk-TCLNSVYA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "PromptHelperResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkTCLNSVYA_cjs.PromptHelperResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=prompt-helper.cjs.map
|
|
13
13
|
//# sourceMappingURL=prompt-helper.cjs.map
|
|
@@ -17,7 +17,9 @@ interface CommonInput {
|
|
|
17
17
|
* Gemini and Claude models. Runs the request on the provider's own API so
|
|
18
18
|
* `temperature`, `maxTokens` and the full reasoning range actually take
|
|
19
19
|
* effect — on the default lane those levers are not reliably honoured.
|
|
20
|
-
*
|
|
20
|
+
* The call is charged its actual usage at the vendor's direct rate (the price key ends `:direct`), so
|
|
21
|
+
* it usually costs more than the default lane; where the server prices LLM calls by tier instead, it
|
|
22
|
+
* bills one credit rung up (a premium model moves to premium-direct). A model without a direct lane returns
|
|
21
23
|
* `400 advanced_mode_unsupported`.
|
|
22
24
|
*/
|
|
23
25
|
advancedMode?: boolean;
|
|
@@ -17,7 +17,9 @@ interface CommonInput {
|
|
|
17
17
|
* Gemini and Claude models. Runs the request on the provider's own API so
|
|
18
18
|
* `temperature`, `maxTokens` and the full reasoning range actually take
|
|
19
19
|
* effect — on the default lane those levers are not reliably honoured.
|
|
20
|
-
*
|
|
20
|
+
* The call is charged its actual usage at the vendor's direct rate (the price key ends `:direct`), so
|
|
21
|
+
* it usually costs more than the default lane; where the server prices LLM calls by tier instead, it
|
|
22
|
+
* bills one credit rung up (a premium model moves to premium-direct). A model without a direct lane returns
|
|
21
23
|
* `400 advanced_mode_unsupported`.
|
|
22
24
|
*/
|
|
23
25
|
advancedMode?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as NodesResource, V as Scene3DCapabilities, W as Scene3DDelivery, X as Scene3DDeliveryAsset, C as RetainedScene3DEditParams, D as RetainedScene3DEditResult, j as GenerateScene3DParams, M as RunNodeResult, F as RunAndWaitOptions, Z as Scene3DJobOutput, d as EditScene3DParams, u as Pro3DRenderParams, v as Pro3DRenderQuote, x as Pro3DRenderRunParams, w as Pro3DRenderRunOptions, P as Pro3DRenderJobOutput, z as RenderScene3DParams, r as NodeJobOutput } from '../nodes-
|
|
2
|
-
export { T as SCENE3D_DELIVERY_ASSET_USAGE, U as Scene3DAuthoringEngine, Y as Scene3DDeliveryAssetKind } from '../nodes-
|
|
1
|
+
import { t as NodesResource, V as Scene3DCapabilities, W as Scene3DDelivery, X as Scene3DDeliveryAsset, C as RetainedScene3DEditParams, D as RetainedScene3DEditResult, j as GenerateScene3DParams, M as RunNodeResult, F as RunAndWaitOptions, Z as Scene3DJobOutput, d as EditScene3DParams, u as Pro3DRenderParams, v as Pro3DRenderQuote, x as Pro3DRenderRunParams, w as Pro3DRenderRunOptions, P as Pro3DRenderJobOutput, z as RenderScene3DParams, r as NodeJobOutput } from '../nodes-BDUk5Aej.cjs';
|
|
2
|
+
export { T as SCENE3D_DELIVERY_ASSET_USAGE, U as Scene3DAuthoringEngine, Y as Scene3DDeliveryAssetKind } from '../nodes-BDUk5Aej.cjs';
|
|
3
3
|
import { Scene3DAssetRef } from '@nodaro/shared/scene3d';
|
|
4
4
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
|
|
5
5
|
import '@nodaro/shared/types';
|
|
@@ -14,7 +14,7 @@ import './jobs.cjs';
|
|
|
14
14
|
import '@nodaro/shared/apps';
|
|
15
15
|
import '@nodaro/shared/organizations';
|
|
16
16
|
import './errors.cjs';
|
|
17
|
-
import '../studio-productions-
|
|
17
|
+
import '../studio-productions-r2-VZsKj.cjs';
|
|
18
18
|
import '@nodaro/shared/model-catalog';
|
|
19
19
|
import '@nodaro/prompts/prompt-builder';
|
|
20
20
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as NodesResource, V as Scene3DCapabilities, W as Scene3DDelivery, X as Scene3DDeliveryAsset, C as RetainedScene3DEditParams, D as RetainedScene3DEditResult, j as GenerateScene3DParams, M as RunNodeResult, F as RunAndWaitOptions, Z as Scene3DJobOutput, d as EditScene3DParams, u as Pro3DRenderParams, v as Pro3DRenderQuote, x as Pro3DRenderRunParams, w as Pro3DRenderRunOptions, P as Pro3DRenderJobOutput, z as RenderScene3DParams, r as NodeJobOutput } from '../nodes-
|
|
2
|
-
export { T as SCENE3D_DELIVERY_ASSET_USAGE, U as Scene3DAuthoringEngine, Y as Scene3DDeliveryAssetKind } from '../nodes-
|
|
1
|
+
import { t as NodesResource, V as Scene3DCapabilities, W as Scene3DDelivery, X as Scene3DDeliveryAsset, C as RetainedScene3DEditParams, D as RetainedScene3DEditResult, j as GenerateScene3DParams, M as RunNodeResult, F as RunAndWaitOptions, Z as Scene3DJobOutput, d as EditScene3DParams, u as Pro3DRenderParams, v as Pro3DRenderQuote, x as Pro3DRenderRunParams, w as Pro3DRenderRunOptions, P as Pro3DRenderJobOutput, z as RenderScene3DParams, r as NodeJobOutput } from '../nodes-9WpYNWtS.js';
|
|
2
|
+
export { T as SCENE3D_DELIVERY_ASSET_USAGE, U as Scene3DAuthoringEngine, Y as Scene3DDeliveryAssetKind } from '../nodes-9WpYNWtS.js';
|
|
3
3
|
import { Scene3DAssetRef } from '@nodaro/shared/scene3d';
|
|
4
4
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
|
|
5
5
|
import '@nodaro/shared/types';
|
|
@@ -14,7 +14,7 @@ import './jobs.js';
|
|
|
14
14
|
import '@nodaro/shared/apps';
|
|
15
15
|
import '@nodaro/shared/organizations';
|
|
16
16
|
import './errors.js';
|
|
17
|
-
import '../studio-productions-
|
|
17
|
+
import '../studio-productions-DtTE8mdl.js';
|
|
18
18
|
import '@nodaro/shared/model-catalog';
|
|
19
19
|
import '@nodaro/prompts/prompt-builder';
|
|
20
20
|
|
package/dist/entries/studio.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-ZJGFLJ2Z.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var chunkNKH2UFSD_cjs = require('../chunk-NKH2UFSD.cjs');
|
|
5
|
+
require('../chunk-FM2KM5TY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "StudioProductionsResource", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkNKH2UFSD_cjs.StudioProductionsResource; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "StudioResource", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkNKH2UFSD_cjs.StudioResource; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "isStudioGenerateEstimate", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkNKH2UFSD_cjs.isStudioGenerateEstimate; }
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=studio.cjs.map
|
|
22
22
|
//# sourceMappingURL=studio.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
|
|
2
|
-
import {
|
|
3
|
-
export { G as GetProductionOptions, L as ListStudioProductionsOptions, S as StudioClientRequestId, a as StudioCloneRequest, b as StudioCreateProductionRequest, c as StudioDescribeRequest, d as StudioExportPlanOptions, e as StudioExportPlanResponse, f as StudioExportStep, g as StudioFrameRequest, h as StudioGenerateEstimate, i as StudioGenerateOptions, j as StudioGenerateRequest, k as StudioGenerateResponse, l as StudioGenerateResult, m as StudioImportSummary, n as StudioJobStartedResponse, o as StudioListProductionsResponse, p as StudioMediaResponse, q as StudioMusicRequest, r as StudioOpClass, s as StudioOpsDryRunReceipt, t as StudioOpsDryRunResponse, u as StudioOpsImpact, v as StudioOpsReceipt, w as StudioOpsRequest, x as StudioOpsResponse, y as
|
|
2
|
+
import { D as StudioProductionsResource } from '../studio-productions-r2-VZsKj.cjs';
|
|
3
|
+
export { G as GetProductionOptions, L as ListStudioProductionsOptions, S as StudioClientRequestId, a as StudioCloneRequest, b as StudioCreateProductionRequest, c as StudioDescribeRequest, d as StudioExportPlanOptions, e as StudioExportPlanResponse, f as StudioExportStep, g as StudioFrameRequest, h as StudioGenerateEstimate, i as StudioGenerateOptions, j as StudioGenerateRequest, k as StudioGenerateResponse, l as StudioGenerateResult, m as StudioImportSummary, n as StudioJobStartedResponse, o as StudioListProductionsResponse, p as StudioMediaResponse, q as StudioMusicRequest, r as StudioOpClass, s as StudioOpsDryRunReceipt, t as StudioOpsDryRunResponse, u as StudioOpsImpact, v as StudioOpsReceipt, w as StudioOpsRequest, x as StudioOpsResponse, y as StudioOpsText, z as StudioPlanIssue, A as StudioProduction, B as StudioProductionDetail, C as StudioProductionResponse, E as StudioReconcileResponse, F as StudioRevoiceRequest, H as StudioSkillResponse, I as StudioValidatePlanResponse, J as StudioVideoLane, K as StudioVoiceRequest, M as isStudioGenerateEstimate } from '../studio-productions-r2-VZsKj.cjs';
|
|
4
4
|
import '@nodaro/shared/apps';
|
|
5
5
|
import '@nodaro/shared/organizations';
|
|
6
6
|
|
package/dist/entries/studio.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
|
|
2
|
-
import {
|
|
3
|
-
export { G as GetProductionOptions, L as ListStudioProductionsOptions, S as StudioClientRequestId, a as StudioCloneRequest, b as StudioCreateProductionRequest, c as StudioDescribeRequest, d as StudioExportPlanOptions, e as StudioExportPlanResponse, f as StudioExportStep, g as StudioFrameRequest, h as StudioGenerateEstimate, i as StudioGenerateOptions, j as StudioGenerateRequest, k as StudioGenerateResponse, l as StudioGenerateResult, m as StudioImportSummary, n as StudioJobStartedResponse, o as StudioListProductionsResponse, p as StudioMediaResponse, q as StudioMusicRequest, r as StudioOpClass, s as StudioOpsDryRunReceipt, t as StudioOpsDryRunResponse, u as StudioOpsImpact, v as StudioOpsReceipt, w as StudioOpsRequest, x as StudioOpsResponse, y as
|
|
2
|
+
import { D as StudioProductionsResource } from '../studio-productions-DtTE8mdl.js';
|
|
3
|
+
export { G as GetProductionOptions, L as ListStudioProductionsOptions, S as StudioClientRequestId, a as StudioCloneRequest, b as StudioCreateProductionRequest, c as StudioDescribeRequest, d as StudioExportPlanOptions, e as StudioExportPlanResponse, f as StudioExportStep, g as StudioFrameRequest, h as StudioGenerateEstimate, i as StudioGenerateOptions, j as StudioGenerateRequest, k as StudioGenerateResponse, l as StudioGenerateResult, m as StudioImportSummary, n as StudioJobStartedResponse, o as StudioListProductionsResponse, p as StudioMediaResponse, q as StudioMusicRequest, r as StudioOpClass, s as StudioOpsDryRunReceipt, t as StudioOpsDryRunResponse, u as StudioOpsImpact, v as StudioOpsReceipt, w as StudioOpsRequest, x as StudioOpsResponse, y as StudioOpsText, z as StudioPlanIssue, A as StudioProduction, B as StudioProductionDetail, C as StudioProductionResponse, E as StudioReconcileResponse, F as StudioRevoiceRequest, H as StudioSkillResponse, I as StudioValidatePlanResponse, J as StudioVideoLane, K as StudioVoiceRequest, M as isStudioGenerateEstimate } from '../studio-productions-DtTE8mdl.js';
|
|
4
4
|
import '@nodaro/shared/apps';
|
|
5
5
|
import '@nodaro/shared/organizations';
|
|
6
6
|
|
package/dist/entries/studio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-PMTM26LL.js';
|
|
2
|
-
export { StudioProductionsResource, StudioResource, isStudioGenerateEstimate } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { StudioProductionsResource, StudioResource, isStudioGenerateEstimate } from '../chunk-AUKHMT53.js';
|
|
3
|
+
import '../chunk-L6T44A3G.js';
|
|
4
4
|
//# sourceMappingURL=studio.js.map
|
|
5
5
|
//# sourceMappingURL=studio.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-37YCKZX4.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkEK672FFM_cjs = require('../chunk-EK672FFM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "TemplatesResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkEK672FFM_cjs.TemplatesResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=templates.cjs.map
|
|
13
13
|
//# sourceMappingURL=templates.cjs.map
|
|
@@ -18,6 +18,10 @@ interface TemplateBrowseCard {
|
|
|
18
18
|
description: string | null;
|
|
19
19
|
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
20
20
|
estimatedCredits: number;
|
|
21
|
+
/** The listed price holds a metered LLM call's ESTIMATE (its model's typical
|
|
22
|
+
* call, charged its actual usage per token): show it `~N`. Absent for a
|
|
23
|
+
* fixed price, and on a deployment running the tier-pricing rollback. */
|
|
24
|
+
estimatedCreditsIsEstimate?: true;
|
|
21
25
|
/**
|
|
22
26
|
* Credits per minute of the recording the template is given, when its price
|
|
23
27
|
* follows that recording's length (an Apply EDL render of a whole episode,
|
|
@@ -18,6 +18,10 @@ interface TemplateBrowseCard {
|
|
|
18
18
|
description: string | null;
|
|
19
19
|
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
20
20
|
estimatedCredits: number;
|
|
21
|
+
/** The listed price holds a metered LLM call's ESTIMATE (its model's typical
|
|
22
|
+
* call, charged its actual usage per token): show it `~N`. Absent for a
|
|
23
|
+
* fixed price, and on a deployment running the tier-pricing rollback. */
|
|
24
|
+
estimatedCreditsIsEstimate?: true;
|
|
21
25
|
/**
|
|
22
26
|
* Credits per minute of the recording the template is given, when its price
|
|
23
27
|
* follows that recording's length (an Apply EDL render of a whole episode,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../chunk-PG2GBS3K.cjs');
|
|
4
|
+
var chunkVCEYLJ2Q_cjs = require('../chunk-VCEYLJ2Q.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "TrendsResource", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkVCEYLJ2Q_cjs.TrendsResource; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=trends.cjs.map
|
|
13
|
+
//# sourceMappingURL=trends.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"trends.cjs"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.cjs';
|
|
2
|
+
import '@nodaro/shared/apps';
|
|
3
|
+
import '@nodaro/shared/organizations';
|
|
4
|
+
|
|
5
|
+
/** What a slot holds. */
|
|
6
|
+
type TrendSlotKind = "person" | "location" | "product" | "pet";
|
|
7
|
+
/** A chip: make this trait anew from your pictures (`"new"`), or keep the clip's (`"original"`). */
|
|
8
|
+
type TrendChoice = "new" | "original";
|
|
9
|
+
/**
|
|
10
|
+
* The chips a slot can take, by its kind: a person `body` / `outfit` / `hair`,
|
|
11
|
+
* a pet `body` / `coat`, a product `shape` / `finish`, a location none.
|
|
12
|
+
*/
|
|
13
|
+
interface TrendChips {
|
|
14
|
+
body?: TrendChoice;
|
|
15
|
+
outfit?: TrendChoice;
|
|
16
|
+
hair?: TrendChoice;
|
|
17
|
+
coat?: TrendChoice;
|
|
18
|
+
shape?: TrendChoice;
|
|
19
|
+
finish?: TrendChoice;
|
|
20
|
+
}
|
|
21
|
+
type TrendResolution = "480p" | "720p" | "1080p";
|
|
22
|
+
/** A trend in the catalog (`list()`). Text is in the resolved locale. */
|
|
23
|
+
interface TrendCard {
|
|
24
|
+
id: string;
|
|
25
|
+
slug: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
tags: string[];
|
|
29
|
+
/** e.g. `"trending"`, `"new"`. */
|
|
30
|
+
badges: string[];
|
|
31
|
+
/** The trend's first example (never the clip it recasts). */
|
|
32
|
+
cover: {
|
|
33
|
+
videoUrl: string;
|
|
34
|
+
posterUrl?: string;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
};
|
|
38
|
+
/** How many slots of each kind the trend has. */
|
|
39
|
+
needs: Record<TrendSlotKind, number>;
|
|
40
|
+
/** The length of a full run, in seconds. */
|
|
41
|
+
durationSec: number;
|
|
42
|
+
isFavorite: boolean;
|
|
43
|
+
}
|
|
44
|
+
/** One slot of a trend: what it asks you for. */
|
|
45
|
+
interface TrendDetailSlot {
|
|
46
|
+
/** The key to fill in {@link TrendRunRequest.slots}, and to mention in `details` as `{slot:<key>}`. */
|
|
47
|
+
key: string;
|
|
48
|
+
label: string;
|
|
49
|
+
kind: TrendSlotKind;
|
|
50
|
+
/** A required slot needs pictures; an optional one left empty takes the chosen example's. */
|
|
51
|
+
required: boolean;
|
|
52
|
+
hint?: string;
|
|
53
|
+
/** The chips this slot starts with (only its kind's own). */
|
|
54
|
+
defaults?: TrendChips;
|
|
55
|
+
}
|
|
56
|
+
/** A finished run shown on a trend's page, with the pictures it used per slot. */
|
|
57
|
+
interface TrendExample {
|
|
58
|
+
videoUrl: string;
|
|
59
|
+
posterUrl?: string;
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
/** Slot key → the pictures this example used for it. */
|
|
63
|
+
slots: Record<string, string[]>;
|
|
64
|
+
}
|
|
65
|
+
/** A trend's page (`get()`). */
|
|
66
|
+
interface TrendDetail extends TrendCard {
|
|
67
|
+
/** The published version this page shows. */
|
|
68
|
+
version: number;
|
|
69
|
+
/** `4` when the trend offers a 4-second preview run, else `null`. */
|
|
70
|
+
previewSec: 4 | null;
|
|
71
|
+
resolutions: TrendResolution[];
|
|
72
|
+
slots: TrendDetailSlot[];
|
|
73
|
+
examples: TrendExample[];
|
|
74
|
+
}
|
|
75
|
+
/** What you put in one slot of a run: 1–3 pictures, and the chips of the slot's kind. */
|
|
76
|
+
interface TrendRunSlot extends TrendChips {
|
|
77
|
+
images?: string[];
|
|
78
|
+
}
|
|
79
|
+
/** The body of `estimate()` and `run()`. */
|
|
80
|
+
interface TrendRunRequest {
|
|
81
|
+
/**
|
|
82
|
+
* Slot key → what you put in it. Every required slot needs pictures; an
|
|
83
|
+
* optional slot left out takes the chosen example's. 1–3 pictures per slot.
|
|
84
|
+
*/
|
|
85
|
+
slots: Record<string, TrendRunSlot>;
|
|
86
|
+
/** 1-based example whose pictures fill the optional slots you leave empty. Default 1. */
|
|
87
|
+
example?: number;
|
|
88
|
+
/** Your own words, at most 1,000 characters. Mention a slot as `{slot:<key>}`. */
|
|
89
|
+
details?: string;
|
|
90
|
+
/** `true` runs a 4-second preview (only when the trend's `previewSec` is `4`). */
|
|
91
|
+
preview?: boolean;
|
|
92
|
+
/** Default `"480p"`. */
|
|
93
|
+
resolution?: TrendResolution;
|
|
94
|
+
/** A draft run, only at 480p. Default `true` at 480p. */
|
|
95
|
+
draft?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* A generation session of yours. Accepted (and checked: one you may not use
|
|
98
|
+
* is a 404), but not yet applied: trend runs are not filed into sessions yet.
|
|
99
|
+
*/
|
|
100
|
+
sessionId?: string;
|
|
101
|
+
/** Accepted, but not used by the run today. */
|
|
102
|
+
projectId?: string;
|
|
103
|
+
/**
|
|
104
|
+
* A full run's own preview: the `jobId` of a completed preview run of this
|
|
105
|
+
* trend that you started. When the trend masks faces only as needed and that
|
|
106
|
+
* preview needed it, the full run masks them from the start (the quote
|
|
107
|
+
* includes it). Any other job is ignored, without an error. Must be a uuid
|
|
108
|
+
* (else 400 `validation_error`).
|
|
109
|
+
*/
|
|
110
|
+
previewJobId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* `run()`: your client app's slug (e.g. `"tools"`: lowercase letters,
|
|
113
|
+
* digits and `-`, 1–40 characters, starting with a letter or digit), as on
|
|
114
|
+
* any job: the run's job carries it as `input_data.origin`, so
|
|
115
|
+
* `client.jobs.list({ origin })` finds it. Not a slug is a 400
|
|
116
|
+
* `validation_error`; without it the run has no origin. `estimate()`
|
|
117
|
+
* ignores it.
|
|
118
|
+
*/
|
|
119
|
+
origin?: string;
|
|
120
|
+
}
|
|
121
|
+
/** What a run would cost, in credits (`estimate()`). */
|
|
122
|
+
interface TrendEstimate {
|
|
123
|
+
/** The charge the run is expected to come to. */
|
|
124
|
+
expectedCredits: number;
|
|
125
|
+
/** What is reserved when the run starts; the run is charged what it actually costs. */
|
|
126
|
+
holdCredits: number;
|
|
127
|
+
/**
|
|
128
|
+
* The parts of the quote, by name. With `maskingCredits`, `masking` is
|
|
129
|
+
* listed here too but is not part of `holdCredits` or `expectedCredits`.
|
|
130
|
+
*/
|
|
131
|
+
breakdown: Record<string, number>;
|
|
132
|
+
/**
|
|
133
|
+
* Only for a trend that masks faces only as needed: the extra credits
|
|
134
|
+
* charged if the video model refuses the clip and the run is retried with
|
|
135
|
+
* the faces masked. Not included in `expectedCredits` or `holdCredits`.
|
|
136
|
+
*/
|
|
137
|
+
maskingCredits?: number;
|
|
138
|
+
}
|
|
139
|
+
/** Per-call options for {@link TrendsResource.run}. */
|
|
140
|
+
interface TrendRunOptions {
|
|
141
|
+
/**
|
|
142
|
+
* Sent as the `Idempotency-Key` header, unchanged (an empty string sends no
|
|
143
|
+
* header). The server takes 8–200 characters and answers 400 for any other
|
|
144
|
+
* length. Reuse it when retrying the same run.
|
|
145
|
+
*/
|
|
146
|
+
idempotencyKey?: string;
|
|
147
|
+
}
|
|
148
|
+
/** One slot of a past run, as it was run. Labels are English. */
|
|
149
|
+
interface TrendRunDisplaySlot extends TrendChips {
|
|
150
|
+
key: string;
|
|
151
|
+
label: string;
|
|
152
|
+
kind: TrendSlotKind;
|
|
153
|
+
images: string[];
|
|
154
|
+
/** `true` when the slot was left empty and the example's pictures filled it. */
|
|
155
|
+
fromExample: boolean;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* One of your trend runs (`runs()`, `getRun()`). Stays readable after the
|
|
159
|
+
* trend moves on or is unpublished.
|
|
160
|
+
*
|
|
161
|
+
* A Full Quality version of a draft is a run of its own, with its own status,
|
|
162
|
+
* result and charge: `fullQualityOf` names the draft it was made from, and it
|
|
163
|
+
* stays listed after that draft is deleted.
|
|
164
|
+
*/
|
|
165
|
+
interface TrendRun {
|
|
166
|
+
jobId: string;
|
|
167
|
+
status: string;
|
|
168
|
+
progress: number | null;
|
|
169
|
+
/**
|
|
170
|
+
* Why a failed or cancelled run did not finish; `null` otherwise. `code` is
|
|
171
|
+
* `safety-block` or `policy-block` when the job was blocked, `credits` when
|
|
172
|
+
* it ran out of credits partway (it was refunded: ask the person to top up,
|
|
173
|
+
* then run it again), else `cancelled` or `failed`. `message` is the same
|
|
174
|
+
* fixed sentence for every code — branch on `code`, not on the text.
|
|
175
|
+
*/
|
|
176
|
+
error: {
|
|
177
|
+
code?: string;
|
|
178
|
+
message: string;
|
|
179
|
+
} | null;
|
|
180
|
+
createdAt: string;
|
|
181
|
+
completedAt: string | null;
|
|
182
|
+
/** The trend and version it ran (name in English). */
|
|
183
|
+
trend: {
|
|
184
|
+
id: string;
|
|
185
|
+
slug: string;
|
|
186
|
+
version: number;
|
|
187
|
+
name: string;
|
|
188
|
+
};
|
|
189
|
+
/** The 1-based example used for empty optional slots. */
|
|
190
|
+
example: number;
|
|
191
|
+
slots: TrendRunDisplaySlot[];
|
|
192
|
+
details?: string;
|
|
193
|
+
preview: boolean;
|
|
194
|
+
resolution: string;
|
|
195
|
+
draft: boolean;
|
|
196
|
+
/** The result, once completed. */
|
|
197
|
+
videoUrl: string | null;
|
|
198
|
+
posterUrl: string | null;
|
|
199
|
+
creditsCharged: number | null;
|
|
200
|
+
/** A Full Quality version: the job id of the draft run it was made from. `null` for any other run. */
|
|
201
|
+
fullQualityOf: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* A draft's newest Full Quality try, if one was started: a pointer only,
|
|
204
|
+
* to know an upgrade exists and how it is going. Its video and charge are on
|
|
205
|
+
* that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
|
|
206
|
+
* read it there (`getRun(fullQuality.jobId)`). Older tries of the draft (a
|
|
207
|
+
* failed or cancelled one tried again) are not listed by `runs()`;
|
|
208
|
+
* `getRun()` still reads one by its id.
|
|
209
|
+
*/
|
|
210
|
+
fullQuality: {
|
|
211
|
+
jobId: string;
|
|
212
|
+
status: string;
|
|
213
|
+
} | null;
|
|
214
|
+
/** Until when a completed draft can be redone in Full Quality; `null` otherwise. */
|
|
215
|
+
fullQualityUntil: string | null;
|
|
216
|
+
}
|
|
217
|
+
interface ListTrendsParams {
|
|
218
|
+
/** Search text. */
|
|
219
|
+
q?: string;
|
|
220
|
+
tag?: string;
|
|
221
|
+
/** `true` lists only your favorites. */
|
|
222
|
+
favorites?: boolean;
|
|
223
|
+
/** A platform language for names and descriptions; default your profile's, then English. */
|
|
224
|
+
locale?: string;
|
|
225
|
+
/** The previous page's `next`. */
|
|
226
|
+
cursor?: string;
|
|
227
|
+
/** Page size, 1–60 (server default 30). */
|
|
228
|
+
limit?: number;
|
|
229
|
+
}
|
|
230
|
+
interface ListTrendRunsParams {
|
|
231
|
+
/** Only runs of this trend (its slug). */
|
|
232
|
+
trend?: string;
|
|
233
|
+
/** The previous page's `next`. */
|
|
234
|
+
cursor?: string;
|
|
235
|
+
/** Page size, 1–60 (server default 30). */
|
|
236
|
+
limit?: number;
|
|
237
|
+
}
|
|
238
|
+
/** A tag in use on the published catalog (`tags()`). */
|
|
239
|
+
interface TrendTag {
|
|
240
|
+
/** The tag itself: pass it as `list({ tag })`. */
|
|
241
|
+
tag: string;
|
|
242
|
+
/** The tag's label in the resolved locale; the tag itself when it has none. */
|
|
243
|
+
label: string;
|
|
244
|
+
/** How many published trends carry it. */
|
|
245
|
+
count: number;
|
|
246
|
+
}
|
|
247
|
+
interface TrendPage<T> {
|
|
248
|
+
data: T[];
|
|
249
|
+
/** Pass back as `cursor` for the next page; `null` on the last one. */
|
|
250
|
+
next: string | null;
|
|
251
|
+
}
|
|
252
|
+
declare class TrendsResource {
|
|
253
|
+
private client;
|
|
254
|
+
constructor(client: NodaroClientCore);
|
|
255
|
+
/** The published catalog in its curated order (`GET /v1/trends`), a page at a time. */
|
|
256
|
+
list(params?: ListTrendsParams): Promise<TrendPage<TrendCard>>;
|
|
257
|
+
/** A published trend's page (`GET /v1/trends/:slug`). */
|
|
258
|
+
get(slug: string, params?: {
|
|
259
|
+
locale?: string;
|
|
260
|
+
}): Promise<TrendDetail>;
|
|
261
|
+
/** Quote a run before starting it (`POST /v1/trends/:slug/estimate`); spends nothing. */
|
|
262
|
+
estimate(slug: string, request: TrendRunRequest): Promise<TrendEstimate>;
|
|
263
|
+
/**
|
|
264
|
+
* Start a run (`POST /v1/trends/:slug/runs`, 202). Returns the job to follow.
|
|
265
|
+
* With `options.idempotencyKey` (sent as the `Idempotency-Key` header) a
|
|
266
|
+
* repeat with the same key answers with the first run's `jobId`.
|
|
267
|
+
*/
|
|
268
|
+
run(slug: string, request: TrendRunRequest, options?: TrendRunOptions): Promise<{
|
|
269
|
+
jobId: string;
|
|
270
|
+
}>;
|
|
271
|
+
/**
|
|
272
|
+
* Your trend runs, newest first (`GET /v1/trends/runs`). A Full Quality
|
|
273
|
+
* version of a draft is listed as its own run (`fullQualityOf`).
|
|
274
|
+
*/
|
|
275
|
+
runs(params?: ListTrendRunsParams): Promise<TrendPage<TrendRun>>;
|
|
276
|
+
/**
|
|
277
|
+
* One of your trend runs by its job id (`GET /v1/trends/runs/:jobId`), in
|
|
278
|
+
* the same shape as `runs()`. A job that is not your own trend run is a
|
|
279
|
+
* `NotFoundError`.
|
|
280
|
+
*/
|
|
281
|
+
getRun(jobId: string): Promise<TrendRun>;
|
|
282
|
+
/**
|
|
283
|
+
* The tags in use on the published catalog, each with its label in the
|
|
284
|
+
* resolved locale (`GET /v1/trends/tags`), most used first.
|
|
285
|
+
*/
|
|
286
|
+
tags(params?: {
|
|
287
|
+
locale?: string;
|
|
288
|
+
}): Promise<TrendTag[]>;
|
|
289
|
+
/** Add a trend to your favorites (`PUT /v1/trends/:slug/favorite`). */
|
|
290
|
+
favorite(slug: string): Promise<void>;
|
|
291
|
+
/** Remove a trend from your favorites (`DELETE /v1/trends/:slug/favorite`). */
|
|
292
|
+
unfavorite(slug: string): Promise<void>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export { type ListTrendRunsParams, type ListTrendsParams, type TrendCard, type TrendChips, type TrendChoice, type TrendDetail, type TrendDetailSlot, type TrendEstimate, type TrendExample, type TrendPage, type TrendResolution, type TrendRun, type TrendRunDisplaySlot, type TrendRunOptions, type TrendRunRequest, type TrendRunSlot, type TrendSlotKind, type TrendTag, TrendsResource };
|