@nodaro/sdk 2.43.0 → 2.45.1
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-ETX3TLNB.cjs → chunk-22P4X3N5.cjs} +16 -5
- package/dist/chunk-22P4X3N5.cjs.map +1 -0
- package/dist/{chunk-JUON5NXA.js → chunk-33HT46A3.js} +13 -2
- package/dist/chunk-33HT46A3.js.map +1 -0
- package/dist/{chunk-V3KMBQMK.js → chunk-3Y5TV37H.js} +3 -3
- package/dist/{chunk-V3KMBQMK.js.map → chunk-3Y5TV37H.js.map} +1 -1
- package/dist/{chunk-F6GENF6R.cjs → chunk-55ZX6TE3.cjs} +12 -9
- package/dist/chunk-55ZX6TE3.cjs.map +1 -0
- package/dist/{chunk-2VJOHJUZ.cjs → chunk-5IXZLQNT.cjs} +2 -2
- package/dist/chunk-5IXZLQNT.cjs.map +1 -0
- package/dist/{chunk-IGMWFEFB.js → chunk-5MOJSYHI.js} +2 -2
- package/dist/chunk-5MOJSYHI.js.map +1 -0
- package/dist/{chunk-FQNCIP6K.js → chunk-7LODCIQK.js} +2 -2
- package/dist/chunk-7LODCIQK.js.map +1 -0
- package/dist/{chunk-OSX2GVZ2.cjs → chunk-7YHIFCJ4.cjs} +2 -2
- package/dist/chunk-7YHIFCJ4.cjs.map +1 -0
- package/dist/{chunk-6QFTWAQQ.cjs → chunk-A7HOOWKS.cjs} +26 -26
- package/dist/{chunk-6QFTWAQQ.cjs.map → chunk-A7HOOWKS.cjs.map} +1 -1
- package/dist/{chunk-DQAYIVVS.js → chunk-BQAW4RX2.js} +16 -5
- package/dist/chunk-BQAW4RX2.js.map +1 -0
- package/dist/{chunk-WK7C7TP6.js → chunk-CKHCSZCV.js} +2 -2
- package/dist/chunk-CKHCSZCV.js.map +1 -0
- package/dist/{chunk-PQ7OKM3E.cjs → chunk-FIMBPKIH.cjs} +2 -2
- package/dist/chunk-FIMBPKIH.cjs.map +1 -0
- package/dist/{chunk-RQH6IKDC.js → chunk-HKDIIFG2.js} +12 -9
- package/dist/chunk-HKDIIFG2.js.map +1 -0
- package/dist/{chunk-YSZM3N7Q.js → chunk-HPXE3NZW.js} +2 -2
- package/dist/{chunk-YSZM3N7Q.js.map → chunk-HPXE3NZW.js.map} +1 -1
- package/dist/{chunk-VADPSFLS.cjs → chunk-J6FHBQ4Z.cjs} +2 -2
- package/dist/chunk-J6FHBQ4Z.cjs.map +1 -0
- package/dist/{chunk-ZWPDWFN2.js → chunk-JB4GVP4Q.js} +2 -2
- package/dist/chunk-JB4GVP4Q.js.map +1 -0
- package/dist/{chunk-OIYMTGYN.cjs → chunk-JOXZ4ZIF.cjs} +2 -2
- package/dist/chunk-JOXZ4ZIF.cjs.map +1 -0
- package/dist/{chunk-BLA44UCM.js → chunk-KFZOJBI5.js} +2 -2
- package/dist/chunk-KFZOJBI5.js.map +1 -0
- package/dist/{chunk-FHVNTS4E.cjs → chunk-KMNSPC72.cjs} +2 -2
- package/dist/{chunk-FHVNTS4E.cjs.map → chunk-KMNSPC72.cjs.map} +1 -1
- package/dist/{chunk-ILG5DHQQ.js → chunk-M7VSFZMV.js} +2 -2
- package/dist/chunk-M7VSFZMV.js.map +1 -0
- package/dist/{chunk-Z7UZ3FD3.js → chunk-RBX3QTKB.js} +2 -2
- package/dist/{chunk-Z7UZ3FD3.js.map → chunk-RBX3QTKB.js.map} +1 -1
- package/dist/{chunk-VACAWIZT.js → chunk-RQY2WJD3.js} +14 -14
- package/dist/{chunk-VACAWIZT.js.map → chunk-RQY2WJD3.js.map} +1 -1
- package/dist/{chunk-7XOK277W.cjs → chunk-SF2CMKWA.cjs} +2 -2
- package/dist/{chunk-7XOK277W.cjs.map → chunk-SF2CMKWA.cjs.map} +1 -1
- package/dist/{chunk-EK672FFM.cjs → chunk-UIBYZNDR.cjs} +2 -2
- package/dist/chunk-UIBYZNDR.cjs.map +1 -0
- package/dist/{chunk-TMRRXQQL.cjs → chunk-WFWZBYBS.cjs} +3 -3
- package/dist/{chunk-TMRRXQQL.cjs.map → chunk-WFWZBYBS.cjs.map} +1 -1
- package/dist/{chunk-VHSMOBU7.cjs → chunk-WUM6CWTE.cjs} +13 -2
- package/dist/chunk-WUM6CWTE.cjs.map +1 -0
- package/dist/entries/apps.cjs +2 -2
- package/dist/entries/apps.d.cts +1 -1
- package/dist/entries/apps.d.ts +1 -1
- package/dist/entries/apps.js +1 -1
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +104 -30
- package/dist/entries/cast-swap.d.ts +104 -30
- package/dist/entries/cast-swap.js +1 -1
- package/dist/entries/characters.d.cts +1 -1
- package/dist/entries/characters.d.ts +1 -1
- package/dist/entries/client.cjs +18 -18
- package/dist/entries/client.d.cts +1 -1
- package/dist/entries/client.d.ts +1 -1
- package/dist/entries/client.js +13 -13
- package/dist/entries/core.cjs +5 -5
- package/dist/entries/core.js +1 -1
- package/dist/entries/creatures.d.cts +1 -1
- package/dist/entries/creatures.d.ts +1 -1
- package/dist/entries/credits.cjs +2 -2
- package/dist/entries/credits.d.cts +2 -2
- package/dist/entries/credits.d.ts +2 -2
- package/dist/entries/credits.js +1 -1
- package/dist/entries/edit.cjs +6 -6
- package/dist/entries/edit.d.cts +1 -1
- package/dist/entries/edit.d.ts +1 -1
- package/dist/entries/edit.js +1 -1
- package/dist/entries/locations.d.cts +1 -1
- package/dist/entries/locations.d.ts +1 -1
- package/dist/entries/media.cjs +2 -2
- package/dist/entries/media.d.cts +14 -3
- package/dist/entries/media.d.ts +14 -3
- package/dist/entries/media.js +1 -1
- package/dist/entries/nodes.cjs +2 -2
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +1 -1
- package/dist/entries/objects.d.cts +1 -1
- package/dist/entries/objects.d.ts +1 -1
- package/dist/entries/picker-catalogs.cjs +2 -2
- package/dist/entries/picker-catalogs.d.cts +8 -0
- package/dist/entries/picker-catalogs.d.ts +8 -0
- package/dist/entries/picker-catalogs.js +1 -1
- package/dist/entries/scene3d.d.cts +2 -2
- package/dist/entries/scene3d.d.ts +2 -2
- package/dist/entries/templates.cjs +2 -2
- package/dist/entries/templates.d.cts +1 -1
- package/dist/entries/templates.d.ts +1 -1
- package/dist/entries/templates.js +1 -1
- package/dist/entries/trends.cjs +2 -2
- package/dist/entries/trends.d.cts +87 -12
- package/dist/entries/trends.d.ts +87 -12
- package/dist/entries/trends.js +1 -1
- package/dist/entries/tutorials.cjs +2 -2
- package/dist/entries/tutorials.d.cts +1 -1
- package/dist/entries/tutorials.d.ts +1 -1
- package/dist/entries/tutorials.js +1 -1
- package/dist/entries/workflows.cjs +2 -2
- package/dist/entries/workflows.d.cts +76 -5
- package/dist/entries/workflows.d.ts +76 -5
- package/dist/entries/workflows.js +1 -1
- package/dist/index.cjs +34 -34
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +13 -13
- package/dist/{nodes-B4ZEqx2V.d.ts → nodes-MThDit8l.d.ts} +1 -1
- package/dist/{nodes-DzBGNOUV.d.cts → nodes-Szl6HrZ_.d.cts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-2VJOHJUZ.cjs.map +0 -1
- package/dist/chunk-BLA44UCM.js.map +0 -1
- package/dist/chunk-DQAYIVVS.js.map +0 -1
- package/dist/chunk-EK672FFM.cjs.map +0 -1
- package/dist/chunk-ETX3TLNB.cjs.map +0 -1
- package/dist/chunk-F6GENF6R.cjs.map +0 -1
- package/dist/chunk-FQNCIP6K.js.map +0 -1
- package/dist/chunk-IGMWFEFB.js.map +0 -1
- package/dist/chunk-ILG5DHQQ.js.map +0 -1
- package/dist/chunk-JUON5NXA.js.map +0 -1
- package/dist/chunk-OIYMTGYN.cjs.map +0 -1
- package/dist/chunk-OSX2GVZ2.cjs.map +0 -1
- package/dist/chunk-PQ7OKM3E.cjs.map +0 -1
- package/dist/chunk-RQH6IKDC.js.map +0 -1
- package/dist/chunk-VADPSFLS.cjs.map +0 -1
- package/dist/chunk-VHSMOBU7.cjs.map +0 -1
- package/dist/chunk-WK7C7TP6.js.map +0 -1
- package/dist/chunk-ZWPDWFN2.js.map +0 -1
package/dist/entries/trends.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { N as NodaroClientCore } from '../developer-apps-zSQXWmEG.js';
|
|
2
|
+
import { CastSwapEngine } from './cast-swap.js';
|
|
2
3
|
import '@nodaro/shared/apps';
|
|
3
4
|
import '@nodaro/shared/organizations';
|
|
4
5
|
|
|
@@ -21,6 +22,11 @@ interface TrendChips {
|
|
|
21
22
|
/** A chip's name: `body`, `outfit`, `hair`, `coat`, `shape` or `finish`. */
|
|
22
23
|
type TrendChipKey = keyof TrendChips;
|
|
23
24
|
type TrendResolution = "480p" | "720p" | "1080p";
|
|
25
|
+
/**
|
|
26
|
+
* The video engine a trend runs on ({@link CastSwapEngine}): the trend
|
|
27
|
+
* chooses it, never the person running it.
|
|
28
|
+
*/
|
|
29
|
+
type TrendEngine = CastSwapEngine;
|
|
24
30
|
/** A trend in the catalog (`list()`). Text is in the resolved locale. */
|
|
25
31
|
interface TrendCard {
|
|
26
32
|
id: string;
|
|
@@ -30,7 +36,10 @@ interface TrendCard {
|
|
|
30
36
|
tags: string[];
|
|
31
37
|
/** e.g. `"trending"`, `"new"`. */
|
|
32
38
|
badges: string[];
|
|
33
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* The trend's first example, else (a trend with no example) its original's
|
|
41
|
+
* display copy, as {@link TrendDetail.original}.
|
|
42
|
+
*/
|
|
34
43
|
cover: {
|
|
35
44
|
videoUrl: string;
|
|
36
45
|
posterUrl?: string;
|
|
@@ -49,9 +58,18 @@ interface TrendDetailSlot {
|
|
|
49
58
|
key: string;
|
|
50
59
|
label: string;
|
|
51
60
|
kind: TrendSlotKind;
|
|
52
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* A required slot needs pictures; an optional one left empty takes the
|
|
63
|
+
* chosen example's, or, on a trend with no example, stays as in the original.
|
|
64
|
+
*/
|
|
53
65
|
required: boolean;
|
|
54
66
|
hint?: string;
|
|
67
|
+
/**
|
|
68
|
+
* A picture showing who or what this slot is in the original (e.g. a frame
|
|
69
|
+
* of that actor), when the trend has one. Show it on an empty slot; a run
|
|
70
|
+
* never sends it.
|
|
71
|
+
*/
|
|
72
|
+
hintImageUrl?: string;
|
|
55
73
|
/**
|
|
56
74
|
* The chips you may set on this slot, in its kind's order; `[]` = none (show
|
|
57
75
|
* no chips row). A chip of the kind that is not listed is fixed by the
|
|
@@ -70,14 +88,46 @@ interface TrendExample {
|
|
|
70
88
|
/** Slot key → the pictures this example used for it. */
|
|
71
89
|
slots: Record<string, string[]>;
|
|
72
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* The clip a trend recasts, as you may show it: a browser-safe copy (H.264
|
|
93
|
+
* MP4) of the clip every run starts from. Its fields parallel
|
|
94
|
+
* {@link TrendExample}'s.
|
|
95
|
+
*/
|
|
96
|
+
interface TrendOriginal {
|
|
97
|
+
videoUrl: string;
|
|
98
|
+
posterUrl?: string;
|
|
99
|
+
width: number;
|
|
100
|
+
height: number;
|
|
101
|
+
/** The copy's length, in seconds. */
|
|
102
|
+
durationSec: number;
|
|
103
|
+
/**
|
|
104
|
+
* Where the 4-second preview starts in the clip, in seconds (`0` included),
|
|
105
|
+
* when the trend offers one ({@link TrendDetail.previewSec} is `4`); absent
|
|
106
|
+
* otherwise.
|
|
107
|
+
*/
|
|
108
|
+
previewStartSec?: number;
|
|
109
|
+
}
|
|
73
110
|
/** A trend's page (`get()`). */
|
|
74
111
|
interface TrendDetail extends TrendCard {
|
|
75
112
|
/** The published version this page shows. */
|
|
76
113
|
version: number;
|
|
77
114
|
/** `4` when the trend offers a 4-second preview run, else `null`. */
|
|
78
115
|
previewSec: 4 | null;
|
|
116
|
+
/**
|
|
117
|
+
* The original clip every run starts from, to show beside the examples.
|
|
118
|
+
* Absent only on a version without a display copy (and from an older server).
|
|
119
|
+
*/
|
|
120
|
+
original?: TrendOriginal;
|
|
121
|
+
/** The video engine every run of this trend uses. Absent (an older server) = `"seedance-2-5"`. */
|
|
122
|
+
engine?: TrendEngine;
|
|
123
|
+
/**
|
|
124
|
+
* The resolutions a run may ask for, the default first. Seedance 2.5:
|
|
125
|
+
* `["480p", "720p", "1080p"]`, where 480p is a draft (show it as one);
|
|
126
|
+
* Kling 4: `["720p", "1080p"]`, no draft. Offer exactly these.
|
|
127
|
+
*/
|
|
79
128
|
resolutions: TrendResolution[];
|
|
80
129
|
slots: TrendDetailSlot[];
|
|
130
|
+
/** Finished runs to show beside the original; may be empty (a trend with only its original). */
|
|
81
131
|
examples: TrendExample[];
|
|
82
132
|
}
|
|
83
133
|
/** What you put in one slot of a run: 1–3 pictures, and the chips the slot offers ({@link TrendDetailSlot.chips}). */
|
|
@@ -88,18 +138,30 @@ interface TrendRunSlot extends TrendChips {
|
|
|
88
138
|
interface TrendRunRequest {
|
|
89
139
|
/**
|
|
90
140
|
* Slot key → what you put in it. Every required slot needs pictures; an
|
|
91
|
-
* optional slot left out takes the chosen example's
|
|
141
|
+
* optional slot left out takes the chosen example's, or, on a trend with no
|
|
142
|
+
* example, stays as in the original. 1–3 pictures per slot.
|
|
92
143
|
*/
|
|
93
144
|
slots: Record<string, TrendRunSlot>;
|
|
94
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* 1-based example whose pictures fill the optional slots you leave empty.
|
|
147
|
+
* Default 1. Leave it out on a trend with no examples: sending one there
|
|
148
|
+
* answers 400 `example_out_of_range` (and `0` is a `validation_error`).
|
|
149
|
+
*/
|
|
95
150
|
example?: number;
|
|
96
151
|
/** Your own words, at most 1,000 characters. Mention a slot as `{slot:<key>}`. */
|
|
97
152
|
details?: string;
|
|
98
153
|
/** `true` runs a 4-second preview (only when the trend's `previewSec` is `4`). */
|
|
99
154
|
preview?: boolean;
|
|
100
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* One of the trend's {@link TrendDetail.resolutions}; default its first
|
|
157
|
+
* (`"480p"` on Seedance 2.5, `"720p"` on Kling 4). Another answers 400
|
|
158
|
+
* `resolution_unsupported`.
|
|
159
|
+
*/
|
|
101
160
|
resolution?: TrendResolution;
|
|
102
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* A draft run, only at 480p on a Seedance 2.5 trend. Default `true` at
|
|
163
|
+
* 480p. `true` on a Kling 4 trend answers 400 `draft_unsupported`.
|
|
164
|
+
*/
|
|
103
165
|
draft?: boolean;
|
|
104
166
|
/**
|
|
105
167
|
* A generation session of yours. Accepted (and checked: one you may not use
|
|
@@ -159,7 +221,11 @@ interface TrendRunDisplaySlot extends TrendChips {
|
|
|
159
221
|
label: string;
|
|
160
222
|
kind: TrendSlotKind;
|
|
161
223
|
images: string[];
|
|
162
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* `true` when the slot was left empty and the example's pictures filled it.
|
|
226
|
+
* `false` with no `images`: left empty on a trend with no example, so it
|
|
227
|
+
* stayed as in the original.
|
|
228
|
+
*/
|
|
163
229
|
fromExample: boolean;
|
|
164
230
|
}
|
|
165
231
|
/**
|
|
@@ -194,21 +260,26 @@ interface TrendRun {
|
|
|
194
260
|
version: number;
|
|
195
261
|
name: string;
|
|
196
262
|
};
|
|
197
|
-
/**
|
|
263
|
+
/**
|
|
264
|
+
* The 1-based example used for empty optional slots; `0` = the trend had no
|
|
265
|
+
* example (none was used: never show it as "Example 0").
|
|
266
|
+
*/
|
|
198
267
|
example: number;
|
|
199
268
|
slots: TrendRunDisplaySlot[];
|
|
200
269
|
details?: string;
|
|
201
270
|
preview: boolean;
|
|
202
271
|
resolution: string;
|
|
203
272
|
draft: boolean;
|
|
273
|
+
/** The video engine the run was made on. Absent (an older server) = `"seedance-2-5"`. */
|
|
274
|
+
engine?: TrendEngine;
|
|
204
275
|
/** The result, once completed. */
|
|
205
276
|
videoUrl: string | null;
|
|
206
277
|
posterUrl: string | null;
|
|
207
278
|
creditsCharged: number | null;
|
|
208
|
-
/** A Full Quality version: the job id of the draft run it was made from. `null` for any other run. */
|
|
279
|
+
/** A Full Quality version: the job id of the run (a draft, or a Kling 4 720p run) it was made from. `null` for any other run. */
|
|
209
280
|
fullQualityOf: string | null;
|
|
210
281
|
/**
|
|
211
|
-
* A draft's newest Full Quality try, if one was started: a pointer only,
|
|
282
|
+
* A draft's (or Kling 4 720p run's) newest Full Quality try, if one was started: a pointer only,
|
|
212
283
|
* to know an upgrade exists and how it is going. Its video and charge are on
|
|
213
284
|
* that run, listed on its own (its `fullQualityOf` is this run's `jobId`) —
|
|
214
285
|
* read it there (`getRun(fullQuality.jobId)`). Older tries of the draft (a
|
|
@@ -219,7 +290,11 @@ interface TrendRun {
|
|
|
219
290
|
jobId: string;
|
|
220
291
|
status: string;
|
|
221
292
|
} | null;
|
|
222
|
-
/**
|
|
293
|
+
/**
|
|
294
|
+
* Until when a completed run can be redone in Full Quality — a Seedance 2.5
|
|
295
|
+
* draft (the same take at 1080p) or a Kling 4 run at 720p (a new take at
|
|
296
|
+
* 1080p); `null` otherwise.
|
|
297
|
+
*/
|
|
223
298
|
fullQualityUntil: string | null;
|
|
224
299
|
}
|
|
225
300
|
interface ListTrendsParams {
|
|
@@ -300,4 +375,4 @@ declare class TrendsResource {
|
|
|
300
375
|
unfavorite(slug: string): Promise<void>;
|
|
301
376
|
}
|
|
302
377
|
|
|
303
|
-
export { type ListTrendRunsParams, type ListTrendsParams, type TrendCard, type TrendChipKey, 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 };
|
|
378
|
+
export { type ListTrendRunsParams, type ListTrendsParams, type TrendCard, type TrendChipKey, type TrendChips, type TrendChoice, type TrendDetail, type TrendDetailSlot, type TrendEngine, type TrendEstimate, type TrendExample, type TrendOriginal, type TrendPage, type TrendResolution, type TrendRun, type TrendRunDisplaySlot, type TrendRunOptions, type TrendRunRequest, type TrendRunSlot, type TrendSlotKind, type TrendTag, TrendsResource };
|
package/dist/entries/trends.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-VLCNNA76.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkKMNSPC72_cjs = require('../chunk-KMNSPC72.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "TutorialsResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkKMNSPC72_cjs.TutorialsResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=tutorials.cjs.map
|
|
13
13
|
//# sourceMappingURL=tutorials.cjs.map
|
|
@@ -34,7 +34,7 @@ interface TutorialFlowItem {
|
|
|
34
34
|
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
35
35
|
estimatedCredits: number;
|
|
36
36
|
/** The listed price holds a metered LLM call's ESTIMATE (its model's typical
|
|
37
|
-
* call, charged its actual usage per token): show it
|
|
37
|
+
* call, charged its actual usage per token): show it `≈N`. Absent for a
|
|
38
38
|
* fixed price, and on a deployment running the tier-pricing rollback. */
|
|
39
39
|
estimatedCreditsIsEstimate?: true;
|
|
40
40
|
/** Credits per minute of the recording the template is given (see `TemplateBrowseCard`); 0 or absent when none. */
|
|
@@ -34,7 +34,7 @@ interface TutorialFlowItem {
|
|
|
34
34
|
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
35
35
|
estimatedCredits: number;
|
|
36
36
|
/** The listed price holds a metered LLM call's ESTIMATE (its model's typical
|
|
37
|
-
* call, charged its actual usage per token): show it
|
|
37
|
+
* call, charged its actual usage per token): show it `≈N`. Absent for a
|
|
38
38
|
* fixed price, and on a deployment running the tier-pricing rollback. */
|
|
39
39
|
estimatedCreditsIsEstimate?: true;
|
|
40
40
|
/** Credits per minute of the recording the template is given (see `TemplateBrowseCard`); 0 or absent when none. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-45CK55BH.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkWUM6CWTE_cjs = require('../chunk-WUM6CWTE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "WorkflowsResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkWUM6CWTE_cjs.WorkflowsResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=workflows.cjs.map
|
|
13
13
|
//# sourceMappingURL=workflows.cjs.map
|
|
@@ -198,14 +198,21 @@ interface RenderFinalQuote {
|
|
|
198
198
|
estimatedCredits: number | null;
|
|
199
199
|
/**
|
|
200
200
|
* Present (`true`) when `estimatedCredits` includes an LLM node's estimate:
|
|
201
|
-
* an LLM call is charged its actual usage after it runs, so show
|
|
201
|
+
* an LLM call is charged its actual usage after it runs, so show `≈N`.
|
|
202
202
|
* Absent for a fixed price.
|
|
203
203
|
*/
|
|
204
204
|
estimatedCreditsIsEstimate?: true;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
206
|
+
* What the run holds while it renders (a UGC clip at its hold), never below
|
|
207
|
+
* `estimatedCredits`: the figure `sufficient` is checked against. `null` in
|
|
208
|
+
* an edition without credits; absent from an older server.
|
|
209
|
+
*/
|
|
210
|
+
holdCredits?: number | null;
|
|
211
|
+
/**
|
|
212
|
+
* Whether the payer can cover what the run holds (`holdCredits`); `null` in
|
|
213
|
+
* an edition without credits. When `false`, {@link WorkflowsResource.renderFinal}
|
|
214
|
+
* is refused with `InsufficientCreditsError` (its `required` is that hold)
|
|
215
|
+
* before any execution exists.
|
|
209
216
|
*/
|
|
210
217
|
sufficient: boolean | null;
|
|
211
218
|
/**
|
|
@@ -272,6 +279,64 @@ declare class WorkflowCollaboratorsResource {
|
|
|
272
279
|
success: true;
|
|
273
280
|
}>;
|
|
274
281
|
}
|
|
282
|
+
/** One MCP conversation: a flow its assistant built step by step (`GET /v1/mcp-conversations`). */
|
|
283
|
+
interface McpConversation {
|
|
284
|
+
/** The conversation's workflow id — open it with {@link WorkflowsResource.get}. */
|
|
285
|
+
id: string;
|
|
286
|
+
projectId: string;
|
|
287
|
+
name: string;
|
|
288
|
+
/** The source: "claude", "claude-code", "chatgpt", or another client's name in lower case. */
|
|
289
|
+
client: string;
|
|
290
|
+
clientLabel: string;
|
|
291
|
+
/** The connection's own name, as the connector was named. */
|
|
292
|
+
clientName: string;
|
|
293
|
+
startedAt: string;
|
|
294
|
+
lastActivityAt: string;
|
|
295
|
+
/** Still receiving steps: its last step is less than 30 minutes old. */
|
|
296
|
+
live: boolean;
|
|
297
|
+
/** The user's first request, when the assistant passed it. */
|
|
298
|
+
firstRequest: string | null;
|
|
299
|
+
nodeCount: number;
|
|
300
|
+
counts: {
|
|
301
|
+
image: number;
|
|
302
|
+
video: number;
|
|
303
|
+
audio: number;
|
|
304
|
+
};
|
|
305
|
+
/** Credits charged for its jobs; null where credits are not billed. */
|
|
306
|
+
credits: number | null;
|
|
307
|
+
cover: {
|
|
308
|
+
url: string;
|
|
309
|
+
kind: "image" | "video";
|
|
310
|
+
setByUser: boolean;
|
|
311
|
+
} | null;
|
|
312
|
+
updatedAt: string;
|
|
313
|
+
}
|
|
314
|
+
interface ListMcpConversationsParams {
|
|
315
|
+
/** "YYYY-MM". Default: the latest month that has conversations. */
|
|
316
|
+
month?: string;
|
|
317
|
+
/** Keep only these sources ("claude", "claude-code", "chatgpt", …). */
|
|
318
|
+
sources?: readonly string[];
|
|
319
|
+
}
|
|
320
|
+
interface McpConversationList {
|
|
321
|
+
/** The month listed. */
|
|
322
|
+
month: string;
|
|
323
|
+
/** Every month that has conversations, newest first, with its count. */
|
|
324
|
+
months: Array<{
|
|
325
|
+
month: string;
|
|
326
|
+
conversations: number;
|
|
327
|
+
}>;
|
|
328
|
+
/** The month's sources, with the connection names each one folds in. */
|
|
329
|
+
sources: Array<{
|
|
330
|
+
client: string;
|
|
331
|
+
label: string;
|
|
332
|
+
conversations: number;
|
|
333
|
+
connections: Array<{
|
|
334
|
+
clientName: string;
|
|
335
|
+
conversations: number;
|
|
336
|
+
}>;
|
|
337
|
+
}>;
|
|
338
|
+
data: McpConversation[];
|
|
339
|
+
}
|
|
275
340
|
declare class WorkflowsResource {
|
|
276
341
|
private client;
|
|
277
342
|
/** The people this workflow is shared with. See {@link WorkflowCollaboratorsResource}. */
|
|
@@ -394,6 +459,12 @@ declare class WorkflowsResource {
|
|
|
394
459
|
sharedWithMe(): Promise<{
|
|
395
460
|
data: SharedWorkflow[];
|
|
396
461
|
}>;
|
|
462
|
+
/**
|
|
463
|
+
* Your MCP conversations of one month (`GET /v1/mcp-conversations`): each is a
|
|
464
|
+
* flow an assistant built from its steps, newest first. A conversation is a
|
|
465
|
+
* workflow, so open, rename, export or delete it with the other methods here.
|
|
466
|
+
*/
|
|
467
|
+
listMcpConversations(params?: ListMcpConversationsParams): Promise<McpConversationList>;
|
|
397
468
|
}
|
|
398
469
|
|
|
399
|
-
export { type AddCollaboratorInput, type Collaborator, type CreateWorkflowInput, type DroppedCollaborator, type ListWorkflowsParams, type RenderFinalParams, type RenderFinalQuote, type RunWorkflowOptions, type RunWorkflowParams, type RunWorkflowResult, type SharedWorkflow, type UpdateWorkflowInput, type Workflow, WorkflowsResource };
|
|
470
|
+
export { type AddCollaboratorInput, type Collaborator, type CreateWorkflowInput, type DroppedCollaborator, type ListMcpConversationsParams, type ListWorkflowsParams, type McpConversation, type McpConversationList, type RenderFinalParams, type RenderFinalQuote, type RunWorkflowOptions, type RunWorkflowParams, type RunWorkflowResult, type SharedWorkflow, type UpdateWorkflowInput, type Workflow, WorkflowsResource };
|
|
@@ -198,14 +198,21 @@ interface RenderFinalQuote {
|
|
|
198
198
|
estimatedCredits: number | null;
|
|
199
199
|
/**
|
|
200
200
|
* Present (`true`) when `estimatedCredits` includes an LLM node's estimate:
|
|
201
|
-
* an LLM call is charged its actual usage after it runs, so show
|
|
201
|
+
* an LLM call is charged its actual usage after it runs, so show `≈N`.
|
|
202
202
|
* Absent for a fixed price.
|
|
203
203
|
*/
|
|
204
204
|
estimatedCreditsIsEstimate?: true;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
206
|
+
* What the run holds while it renders (a UGC clip at its hold), never below
|
|
207
|
+
* `estimatedCredits`: the figure `sufficient` is checked against. `null` in
|
|
208
|
+
* an edition without credits; absent from an older server.
|
|
209
|
+
*/
|
|
210
|
+
holdCredits?: number | null;
|
|
211
|
+
/**
|
|
212
|
+
* Whether the payer can cover what the run holds (`holdCredits`); `null` in
|
|
213
|
+
* an edition without credits. When `false`, {@link WorkflowsResource.renderFinal}
|
|
214
|
+
* is refused with `InsufficientCreditsError` (its `required` is that hold)
|
|
215
|
+
* before any execution exists.
|
|
209
216
|
*/
|
|
210
217
|
sufficient: boolean | null;
|
|
211
218
|
/**
|
|
@@ -272,6 +279,64 @@ declare class WorkflowCollaboratorsResource {
|
|
|
272
279
|
success: true;
|
|
273
280
|
}>;
|
|
274
281
|
}
|
|
282
|
+
/** One MCP conversation: a flow its assistant built step by step (`GET /v1/mcp-conversations`). */
|
|
283
|
+
interface McpConversation {
|
|
284
|
+
/** The conversation's workflow id — open it with {@link WorkflowsResource.get}. */
|
|
285
|
+
id: string;
|
|
286
|
+
projectId: string;
|
|
287
|
+
name: string;
|
|
288
|
+
/** The source: "claude", "claude-code", "chatgpt", or another client's name in lower case. */
|
|
289
|
+
client: string;
|
|
290
|
+
clientLabel: string;
|
|
291
|
+
/** The connection's own name, as the connector was named. */
|
|
292
|
+
clientName: string;
|
|
293
|
+
startedAt: string;
|
|
294
|
+
lastActivityAt: string;
|
|
295
|
+
/** Still receiving steps: its last step is less than 30 minutes old. */
|
|
296
|
+
live: boolean;
|
|
297
|
+
/** The user's first request, when the assistant passed it. */
|
|
298
|
+
firstRequest: string | null;
|
|
299
|
+
nodeCount: number;
|
|
300
|
+
counts: {
|
|
301
|
+
image: number;
|
|
302
|
+
video: number;
|
|
303
|
+
audio: number;
|
|
304
|
+
};
|
|
305
|
+
/** Credits charged for its jobs; null where credits are not billed. */
|
|
306
|
+
credits: number | null;
|
|
307
|
+
cover: {
|
|
308
|
+
url: string;
|
|
309
|
+
kind: "image" | "video";
|
|
310
|
+
setByUser: boolean;
|
|
311
|
+
} | null;
|
|
312
|
+
updatedAt: string;
|
|
313
|
+
}
|
|
314
|
+
interface ListMcpConversationsParams {
|
|
315
|
+
/** "YYYY-MM". Default: the latest month that has conversations. */
|
|
316
|
+
month?: string;
|
|
317
|
+
/** Keep only these sources ("claude", "claude-code", "chatgpt", …). */
|
|
318
|
+
sources?: readonly string[];
|
|
319
|
+
}
|
|
320
|
+
interface McpConversationList {
|
|
321
|
+
/** The month listed. */
|
|
322
|
+
month: string;
|
|
323
|
+
/** Every month that has conversations, newest first, with its count. */
|
|
324
|
+
months: Array<{
|
|
325
|
+
month: string;
|
|
326
|
+
conversations: number;
|
|
327
|
+
}>;
|
|
328
|
+
/** The month's sources, with the connection names each one folds in. */
|
|
329
|
+
sources: Array<{
|
|
330
|
+
client: string;
|
|
331
|
+
label: string;
|
|
332
|
+
conversations: number;
|
|
333
|
+
connections: Array<{
|
|
334
|
+
clientName: string;
|
|
335
|
+
conversations: number;
|
|
336
|
+
}>;
|
|
337
|
+
}>;
|
|
338
|
+
data: McpConversation[];
|
|
339
|
+
}
|
|
275
340
|
declare class WorkflowsResource {
|
|
276
341
|
private client;
|
|
277
342
|
/** The people this workflow is shared with. See {@link WorkflowCollaboratorsResource}. */
|
|
@@ -394,6 +459,12 @@ declare class WorkflowsResource {
|
|
|
394
459
|
sharedWithMe(): Promise<{
|
|
395
460
|
data: SharedWorkflow[];
|
|
396
461
|
}>;
|
|
462
|
+
/**
|
|
463
|
+
* Your MCP conversations of one month (`GET /v1/mcp-conversations`): each is a
|
|
464
|
+
* flow an assistant built from its steps, newest first. A conversation is a
|
|
465
|
+
* workflow, so open, rename, export or delete it with the other methods here.
|
|
466
|
+
*/
|
|
467
|
+
listMcpConversations(params?: ListMcpConversationsParams): Promise<McpConversationList>;
|
|
397
468
|
}
|
|
398
469
|
|
|
399
|
-
export { type AddCollaboratorInput, type Collaborator, type CreateWorkflowInput, type DroppedCollaborator, type ListWorkflowsParams, type RenderFinalParams, type RenderFinalQuote, type RunWorkflowOptions, type RunWorkflowParams, type RunWorkflowResult, type SharedWorkflow, type UpdateWorkflowInput, type Workflow, WorkflowsResource };
|
|
470
|
+
export { type AddCollaboratorInput, type Collaborator, type CreateWorkflowInput, type DroppedCollaborator, type ListMcpConversationsParams, type ListWorkflowsParams, type McpConversation, type McpConversationList, type RenderFinalParams, type RenderFinalQuote, type RunWorkflowOptions, type RunWorkflowParams, type RunWorkflowResult, type SharedWorkflow, type UpdateWorkflowInput, type Workflow, WorkflowsResource };
|