@nodaro/sdk 2.60.1 → 2.62.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-Z3ZKFI2M.js → chunk-22XXTB2R.js} +2 -2
- package/dist/chunk-22XXTB2R.js.map +1 -0
- package/dist/{chunk-ALDXFMD7.js → chunk-2ENKGVRS.js} +17 -6
- package/dist/chunk-2ENKGVRS.js.map +1 -0
- package/dist/chunk-2M4VYNSE.cjs +4 -0
- package/dist/chunk-2M4VYNSE.cjs.map +1 -0
- package/dist/chunk-3OARKXWT.cjs +53 -0
- package/dist/chunk-3OARKXWT.cjs.map +1 -0
- package/dist/{chunk-JJMQ2EVL.js → chunk-5AS4LKEF.js} +23 -3
- package/dist/chunk-5AS4LKEF.js.map +1 -0
- package/dist/{chunk-MWSD2FSG.cjs → chunk-5LI4CVJB.cjs} +2 -2
- package/dist/chunk-5LI4CVJB.cjs.map +1 -0
- package/dist/{chunk-GSE7SB3I.cjs → chunk-7GC5LKCR.cjs} +24 -2
- package/dist/chunk-7GC5LKCR.cjs.map +1 -0
- package/dist/{chunk-X24USXOQ.js → chunk-A42R7UT7.js} +2 -2
- package/dist/chunk-A42R7UT7.js.map +1 -0
- package/dist/{chunk-3Y5TDB5K.cjs → chunk-ASPUFRHB.cjs} +11 -7
- package/dist/chunk-ASPUFRHB.cjs.map +1 -0
- package/dist/{chunk-3JJP6BR2.js → chunk-BCZGMK5P.js} +4 -4
- package/dist/{chunk-3JJP6BR2.js.map → chunk-BCZGMK5P.js.map} +1 -1
- package/dist/{chunk-HPAHAE4U.cjs → chunk-DCMB5XOH.cjs} +5 -5
- package/dist/{chunk-HPAHAE4U.cjs.map → chunk-DCMB5XOH.cjs.map} +1 -1
- package/dist/{chunk-RCD4HDBI.js → chunk-DIPHH4OP.js} +3 -3
- package/dist/{chunk-RCD4HDBI.js.map → chunk-DIPHH4OP.js.map} +1 -1
- package/dist/{chunk-GWTKYJJO.cjs → chunk-DODUCQ6B.cjs} +36 -25
- package/dist/chunk-DODUCQ6B.cjs.map +1 -0
- package/dist/{chunk-YYMX3VN7.js → chunk-DT3Q22NZ.js} +3 -3
- package/dist/{chunk-YYMX3VN7.js.map → chunk-DT3Q22NZ.js.map} +1 -1
- package/dist/{chunk-COCKKMNP.cjs → chunk-G4AFHCNA.cjs} +2 -2
- package/dist/chunk-G4AFHCNA.cjs.map +1 -0
- package/dist/{chunk-TVPYDC5T.cjs → chunk-GGIWDFER.cjs} +2 -2
- package/dist/chunk-GGIWDFER.cjs.map +1 -0
- package/dist/{chunk-GDUEOKBF.cjs → chunk-GSKGWWBR.cjs} +4 -4
- package/dist/{chunk-GDUEOKBF.cjs.map → chunk-GSKGWWBR.cjs.map} +1 -1
- package/dist/{chunk-TSM3S2QS.cjs → chunk-IVM4WMMD.cjs} +5 -5
- package/dist/{chunk-TSM3S2QS.cjs.map → chunk-IVM4WMMD.cjs.map} +1 -1
- package/dist/{chunk-K4RQOSJH.js → chunk-J2DBYYXC.js} +2 -2
- package/dist/chunk-J2DBYYXC.js.map +1 -0
- package/dist/{chunk-DOMNKVKA.cjs → chunk-JW5FH4TE.cjs} +9 -9
- package/dist/{chunk-DOMNKVKA.cjs.map → chunk-JW5FH4TE.cjs.map} +1 -1
- package/dist/chunk-K2VWXAGK.js +51 -0
- package/dist/chunk-K2VWXAGK.js.map +1 -0
- package/dist/{chunk-KU3UITCU.cjs → chunk-KCQ3I6NW.cjs} +5 -5
- package/dist/{chunk-KU3UITCU.cjs.map → chunk-KCQ3I6NW.cjs.map} +1 -1
- package/dist/chunk-NMLYZWIW.cjs +4 -0
- package/dist/chunk-NMLYZWIW.cjs.map +1 -0
- package/dist/{chunk-VTL4DBX4.js → chunk-NQXBWK2D.js} +3 -3
- package/dist/{chunk-VTL4DBX4.js.map → chunk-NQXBWK2D.js.map} +1 -1
- package/dist/{chunk-DTYN7QAZ.js → chunk-P2C33IOF.js} +9 -4
- package/dist/chunk-P2C33IOF.js.map +1 -0
- package/dist/chunk-RKW3N463.cjs +83 -0
- package/dist/chunk-RKW3N463.cjs.map +1 -0
- package/dist/{chunk-ND7JMM5H.js → chunk-SEETG3EM.js} +10 -6
- package/dist/chunk-SEETG3EM.js.map +1 -0
- package/dist/{chunk-7DJFJZ35.cjs → chunk-SXV6OBKE.cjs} +41 -33
- package/dist/chunk-SXV6OBKE.cjs.map +1 -0
- package/dist/chunk-TLTPIS2A.js +81 -0
- package/dist/chunk-TLTPIS2A.js.map +1 -0
- package/dist/chunk-UIBY7JVJ.js +3 -0
- package/dist/chunk-UIBY7JVJ.js.map +1 -0
- package/dist/{chunk-NOZWIS7M.cjs → chunk-UPGZTLK7.cjs} +9 -4
- package/dist/chunk-UPGZTLK7.cjs.map +1 -0
- package/dist/{chunk-TO2RA7BF.js → chunk-UR7S4GGS.js} +29 -21
- package/dist/chunk-UR7S4GGS.js.map +1 -0
- package/dist/{chunk-MUHRK4OI.js → chunk-VAEXSUUY.js} +3 -3
- package/dist/{chunk-MUHRK4OI.js.map → chunk-VAEXSUUY.js.map} +1 -1
- package/dist/{chunk-ZVKEPVDQ.js → chunk-VQOUF4F5.js} +2 -2
- package/dist/chunk-VQOUF4F5.js.map +1 -0
- package/dist/{chunk-SBV5MWEL.cjs → chunk-VUTNNRDW.cjs} +2 -2
- package/dist/chunk-VUTNNRDW.cjs.map +1 -0
- package/dist/{chunk-VKE6UEDY.cjs → chunk-WYX44JHE.cjs} +12 -2
- package/dist/chunk-WYX44JHE.cjs.map +1 -0
- package/dist/{chunk-7OUDMUXF.js → chunk-X4QICOOM.js} +12 -2
- package/dist/chunk-X4QICOOM.js.map +1 -0
- package/dist/chunk-XV4MDWHF.js +3 -0
- package/dist/chunk-XV4MDWHF.js.map +1 -0
- package/dist/entries/billing.cjs +2 -2
- package/dist/entries/billing.d.cts +5 -1
- package/dist/entries/billing.d.ts +5 -1
- package/dist/entries/billing.js +1 -1
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +50 -8
- package/dist/entries/cast-swap.d.ts +50 -8
- 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 +29 -27
- package/dist/entries/client.d.cts +7 -1
- package/dist/entries/client.d.ts +7 -1
- package/dist/entries/client.js +24 -22
- package/dist/entries/content-rights.cjs +13 -0
- package/dist/entries/content-rights.cjs.map +1 -0
- package/dist/entries/content-rights.d.cts +82 -0
- package/dist/entries/content-rights.d.ts +82 -0
- package/dist/entries/content-rights.js +4 -0
- package/dist/entries/content-rights.js.map +1 -0
- 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 +1 -1
- package/dist/entries/creatures.d.ts +1 -1
- package/dist/entries/edit.cjs +7 -7
- package/dist/entries/edit.js +2 -2
- package/dist/entries/errors.cjs +34 -26
- package/dist/entries/errors.d.cts +31 -2
- package/dist/entries/errors.d.ts +31 -2
- package/dist/entries/errors.js +1 -1
- package/dist/entries/executions.cjs +4 -4
- package/dist/entries/executions.d.cts +8 -0
- package/dist/entries/executions.d.ts +8 -0
- package/dist/entries/executions.js +1 -1
- package/dist/entries/jobs.cjs +2 -2
- package/dist/entries/jobs.d.cts +50 -1
- package/dist/entries/jobs.d.ts +50 -1
- package/dist/entries/jobs.js +1 -1
- package/dist/entries/locations.d.cts +1 -1
- package/dist/entries/locations.d.ts +1 -1
- package/dist/entries/media.cjs +4 -4
- package/dist/entries/media.d.cts +8 -3
- package/dist/entries/media.d.ts +8 -3
- package/dist/entries/media.js +3 -3
- package/dist/entries/nodes.cjs +3 -3
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +2 -2
- package/dist/entries/objects.d.cts +1 -1
- package/dist/entries/objects.d.ts +1 -1
- package/dist/entries/pipelines.cjs +2 -2
- package/dist/entries/pipelines.d.cts +7 -0
- package/dist/entries/pipelines.d.ts +7 -0
- package/dist/entries/pipelines.js +1 -1
- package/dist/entries/scene3d.d.cts +2 -2
- package/dist/entries/scene3d.d.ts +2 -2
- package/dist/entries/studio.cjs +5 -5
- package/dist/entries/studio.js +2 -2
- package/dist/entries/trend-radar.cjs +13 -0
- package/dist/entries/trend-radar.cjs.map +1 -0
- package/dist/entries/trend-radar.d.cts +243 -0
- package/dist/entries/trend-radar.d.ts +243 -0
- package/dist/entries/trend-radar.js +4 -0
- package/dist/entries/trend-radar.js.map +1 -0
- package/dist/entries/uploads.cjs +2 -2
- package/dist/entries/uploads.d.cts +8 -1
- package/dist/entries/uploads.d.ts +8 -1
- package/dist/entries/uploads.js +1 -1
- package/dist/index.cjs +135 -115
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +33 -29
- package/dist/{nodes-Cy6dmQEz.d.ts → nodes-BXL3qXlY.d.ts} +10 -2
- package/dist/{nodes-Di-Z7-vr.d.cts → nodes-Dx8rpU12.d.cts} +10 -2
- package/package.json +12 -2
- package/dist/chunk-3Y5TDB5K.cjs.map +0 -1
- package/dist/chunk-7DJFJZ35.cjs.map +0 -1
- package/dist/chunk-7OUDMUXF.js.map +0 -1
- package/dist/chunk-ALDXFMD7.js.map +0 -1
- package/dist/chunk-COCKKMNP.cjs.map +0 -1
- package/dist/chunk-DTYN7QAZ.js.map +0 -1
- package/dist/chunk-GSE7SB3I.cjs.map +0 -1
- package/dist/chunk-GWTKYJJO.cjs.map +0 -1
- package/dist/chunk-JJMQ2EVL.js.map +0 -1
- package/dist/chunk-K4RQOSJH.js.map +0 -1
- package/dist/chunk-MWSD2FSG.cjs.map +0 -1
- package/dist/chunk-ND7JMM5H.js.map +0 -1
- package/dist/chunk-NOZWIS7M.cjs.map +0 -1
- package/dist/chunk-SBV5MWEL.cjs.map +0 -1
- package/dist/chunk-TO2RA7BF.js.map +0 -1
- package/dist/chunk-TVPYDC5T.cjs.map +0 -1
- package/dist/chunk-VKE6UEDY.cjs.map +0 -1
- package/dist/chunk-X24USXOQ.js.map +0 -1
- package/dist/chunk-Z3ZKFI2M.js.map +0 -1
- package/dist/chunk-ZVKEPVDQ.js.map +0 -1
|
@@ -1,61 +1,63 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkWUM6CWTE_cjs = require('./chunk-WUM6CWTE.cjs');
|
|
4
|
+
var chunkLKH5M44B_cjs = require('./chunk-LKH5M44B.cjs');
|
|
5
|
+
var chunkRKW3N463_cjs = require('./chunk-RKW3N463.cjs');
|
|
6
|
+
var chunkGHVCV4S5_cjs = require('./chunk-GHVCV4S5.cjs');
|
|
3
7
|
var chunkKMNSPC72_cjs = require('./chunk-KMNSPC72.cjs');
|
|
4
|
-
var
|
|
8
|
+
var chunkUPGZTLK7_cjs = require('./chunk-UPGZTLK7.cjs');
|
|
5
9
|
var chunkUIDVH3GP_cjs = require('./chunk-UIDVH3GP.cjs');
|
|
6
10
|
var chunkW5VHATSR_cjs = require('./chunk-W5VHATSR.cjs');
|
|
7
11
|
var chunkR63TTR35_cjs = require('./chunk-R63TTR35.cjs');
|
|
8
12
|
var chunk3B47IHB3_cjs = require('./chunk-3B47IHB3.cjs');
|
|
9
|
-
var
|
|
10
|
-
var chunkLKH5M44B_cjs = require('./chunk-LKH5M44B.cjs');
|
|
13
|
+
var chunkGB6C5OEZ_cjs = require('./chunk-GB6C5OEZ.cjs');
|
|
11
14
|
var chunkSYVNY3AH_cjs = require('./chunk-SYVNY3AH.cjs');
|
|
12
15
|
var chunkYDRXBRW2_cjs = require('./chunk-YDRXBRW2.cjs');
|
|
13
16
|
var chunkWMT7HEBZ_cjs = require('./chunk-WMT7HEBZ.cjs');
|
|
14
17
|
var chunkMBFUMWI5_cjs = require('./chunk-MBFUMWI5.cjs');
|
|
15
|
-
var
|
|
18
|
+
var chunkIVM4WMMD_cjs = require('./chunk-IVM4WMMD.cjs');
|
|
16
19
|
var chunkUIBYZNDR_cjs = require('./chunk-UIBYZNDR.cjs');
|
|
17
20
|
var chunkLTZKNAXM_cjs = require('./chunk-LTZKNAXM.cjs');
|
|
18
|
-
var
|
|
21
|
+
var chunk57GANTLV_cjs = require('./chunk-57GANTLV.cjs');
|
|
19
22
|
var chunkJ5LGGCAS_cjs = require('./chunk-J5LGGCAS.cjs');
|
|
20
23
|
var chunkNBVARNVA_cjs = require('./chunk-NBVARNVA.cjs');
|
|
21
24
|
var chunk7YHIFCJ4_cjs = require('./chunk-7YHIFCJ4.cjs');
|
|
22
|
-
var
|
|
25
|
+
var chunkG4AFHCNA_cjs = require('./chunk-G4AFHCNA.cjs');
|
|
23
26
|
var chunkLAWYFC4G_cjs = require('./chunk-LAWYFC4G.cjs');
|
|
24
27
|
var chunkTCLNSVYA_cjs = require('./chunk-TCLNSVYA.cjs');
|
|
25
28
|
var chunkKXEWTYS4_cjs = require('./chunk-KXEWTYS4.cjs');
|
|
26
|
-
var
|
|
29
|
+
var chunkSS3B6PHT_cjs = require('./chunk-SS3B6PHT.cjs');
|
|
27
30
|
var chunkMIXRL6I2_cjs = require('./chunk-MIXRL6I2.cjs');
|
|
28
|
-
var
|
|
31
|
+
var chunkASPUFRHB_cjs = require('./chunk-ASPUFRHB.cjs');
|
|
29
32
|
var chunk7QOCWJKD_cjs = require('./chunk-7QOCWJKD.cjs');
|
|
30
33
|
var chunkZCWKX4V6_cjs = require('./chunk-ZCWKX4V6.cjs');
|
|
31
34
|
var chunkQ45PC4YD_cjs = require('./chunk-Q45PC4YD.cjs');
|
|
32
|
-
var
|
|
35
|
+
var chunkDODUCQ6B_cjs = require('./chunk-DODUCQ6B.cjs');
|
|
33
36
|
var chunkGVIFLUYZ_cjs = require('./chunk-GVIFLUYZ.cjs');
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
+
var chunkA3S55XGF_cjs = require('./chunk-A3S55XGF.cjs');
|
|
38
|
+
var chunkJW5FH4TE_cjs = require('./chunk-JW5FH4TE.cjs');
|
|
39
|
+
var chunkVUTNNRDW_cjs = require('./chunk-VUTNNRDW.cjs');
|
|
37
40
|
var chunkWUKIJJG2_cjs = require('./chunk-WUKIJJG2.cjs');
|
|
38
|
-
var
|
|
41
|
+
var chunk5LI4CVJB_cjs = require('./chunk-5LI4CVJB.cjs');
|
|
39
42
|
var chunkRR45WBME_cjs = require('./chunk-RR45WBME.cjs');
|
|
40
43
|
var chunk2DZWWIJ4_cjs = require('./chunk-2DZWWIJ4.cjs');
|
|
41
|
-
var chunkSS3B6PHT_cjs = require('./chunk-SS3B6PHT.cjs');
|
|
42
44
|
var chunkWK4VXPPZ_cjs = require('./chunk-WK4VXPPZ.cjs');
|
|
43
45
|
var chunk43FVH6LJ_cjs = require('./chunk-43FVH6LJ.cjs');
|
|
44
46
|
var chunkYFS2LMG4_cjs = require('./chunk-YFS2LMG4.cjs');
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
+
var chunk3OARKXWT_cjs = require('./chunk-3OARKXWT.cjs');
|
|
48
|
+
var chunkGSKGWWBR_cjs = require('./chunk-GSKGWWBR.cjs');
|
|
49
|
+
var chunkDCMB5XOH_cjs = require('./chunk-DCMB5XOH.cjs');
|
|
47
50
|
var chunkA3XA6UNM_cjs = require('./chunk-A3XA6UNM.cjs');
|
|
48
51
|
var chunk4BAHF762_cjs = require('./chunk-4BAHF762.cjs');
|
|
49
|
-
var chunkA3S55XGF_cjs = require('./chunk-A3S55XGF.cjs');
|
|
50
52
|
var chunkJOXZ4ZIF_cjs = require('./chunk-JOXZ4ZIF.cjs');
|
|
51
53
|
var chunkGA4LZZKQ_cjs = require('./chunk-GA4LZZKQ.cjs');
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
+
var chunkGGIWDFER_cjs = require('./chunk-GGIWDFER.cjs');
|
|
55
|
+
var chunkWYX44JHE_cjs = require('./chunk-WYX44JHE.cjs');
|
|
54
56
|
var chunkBPWUWUZ3_cjs = require('./chunk-BPWUWUZ3.cjs');
|
|
55
57
|
var chunkXZQ6Z4T6_cjs = require('./chunk-XZQ6Z4T6.cjs');
|
|
56
58
|
|
|
57
59
|
// src/client.ts
|
|
58
|
-
var NodaroClient = class _NodaroClient extends
|
|
60
|
+
var NodaroClient = class _NodaroClient extends chunkDCMB5XOH_cjs.NodaroClientCore {
|
|
59
61
|
workflows;
|
|
60
62
|
projects;
|
|
61
63
|
/** Generation sessions inside projects (Create Image / Video / Music). */
|
|
@@ -84,6 +86,8 @@ var NodaroClient = class _NodaroClient extends chunkHPAHAE4U_cjs.NodaroClientCor
|
|
|
84
86
|
voices;
|
|
85
87
|
llm;
|
|
86
88
|
media;
|
|
89
|
+
/** Content rights: the declaration confirmed before a link is imported, and the confirmation a download carries. */
|
|
90
|
+
contentRights;
|
|
87
91
|
audio;
|
|
88
92
|
credits;
|
|
89
93
|
/** The signed-in person's own settings (the interface language, the monthly statement opt-in, …). */
|
|
@@ -111,6 +115,8 @@ var NodaroClient = class _NodaroClient extends chunkHPAHAE4U_cjs.NodaroClientCor
|
|
|
111
115
|
castSwap;
|
|
112
116
|
/** Trends: ready-made Cast Swap recipes you fill with your own pictures (Cloud). */
|
|
113
117
|
trends;
|
|
118
|
+
/** Trend Radar: the daily run's candidate trends and the admin's decisions (Cloud, admin session only). */
|
|
119
|
+
trendRadar;
|
|
114
120
|
studio;
|
|
115
121
|
copilot;
|
|
116
122
|
community;
|
|
@@ -125,10 +131,10 @@ var NodaroClient = class _NodaroClient extends chunkHPAHAE4U_cjs.NodaroClientCor
|
|
|
125
131
|
this.projects = new chunkLAWYFC4G_cjs.ProjectsResource(this);
|
|
126
132
|
this.sessions = new chunkWMT7HEBZ_cjs.SessionsResource(this);
|
|
127
133
|
this.trash = new chunkLTZKNAXM_cjs.TrashResource(this);
|
|
128
|
-
this.jobs = new
|
|
134
|
+
this.jobs = new chunk5LI4CVJB_cjs.JobsResource(this);
|
|
129
135
|
this.videoPro = new chunkW5VHATSR_cjs.VideoProResource(this);
|
|
130
|
-
this.executions = new
|
|
131
|
-
this.nodes = new
|
|
136
|
+
this.executions = new chunkVUTNNRDW_cjs.ExecutionsResource(this);
|
|
137
|
+
this.nodes = new chunkDODUCQ6B_cjs.NodesResource(this);
|
|
132
138
|
this.scene3d = new chunkYDRXBRW2_cjs.Scene3DResource(this);
|
|
133
139
|
this.developerApps = new chunkA3S55XGF_cjs.DeveloperAppsResource(this);
|
|
134
140
|
this.oauth = new chunkGVIFLUYZ_cjs.OAuthResource(this);
|
|
@@ -139,17 +145,18 @@ var NodaroClient = class _NodaroClient extends chunkHPAHAE4U_cjs.NodaroClientCor
|
|
|
139
145
|
this.objects = new chunk57GANTLV_cjs.ObjectsResource(this);
|
|
140
146
|
this.creatures = new chunkA3XA6UNM_cjs.CreaturesResource(this);
|
|
141
147
|
this.keepers = new chunkRR45WBME_cjs.KeepersResource(this);
|
|
142
|
-
this.pipelines = new
|
|
148
|
+
this.pipelines = new chunkG4AFHCNA_cjs.PipelinesResource(this);
|
|
143
149
|
this.reduce = new chunkGB6C5OEZ_cjs.ReduceResource(this);
|
|
144
150
|
this.promptHelper = new chunkTCLNSVYA_cjs.PromptHelperResource(this);
|
|
145
151
|
this.voices = new chunkR63TTR35_cjs.VoicesResource(this);
|
|
146
152
|
this.llm = new chunkSS3B6PHT_cjs.LlmResource(this);
|
|
147
|
-
this.media = new
|
|
153
|
+
this.media = new chunkASPUFRHB_cjs.MediaResource(this);
|
|
154
|
+
this.contentRights = new chunk3OARKXWT_cjs.ContentRightsResource(this);
|
|
148
155
|
this.audio = new chunkGA4LZZKQ_cjs.AudioResource(this);
|
|
149
156
|
this.credits = new chunk4BAHF762_cjs.CreditsResource(this);
|
|
150
157
|
this.userSettings = new chunkUIDVH3GP_cjs.UserSettingsResource(this);
|
|
151
|
-
this.billing = new
|
|
152
|
-
this.uploads = new
|
|
158
|
+
this.billing = new chunkGGIWDFER_cjs.BillingResource(this);
|
|
159
|
+
this.uploads = new chunkUPGZTLK7_cjs.UploadsResource(this);
|
|
153
160
|
this.library = new chunk2DZWWIJ4_cjs.LibraryResource(this);
|
|
154
161
|
this.gallery = new chunkWUKIJJG2_cjs.GalleryResource(this);
|
|
155
162
|
this.presets = new chunkQ45PC4YD_cjs.PresetsResource(this);
|
|
@@ -163,16 +170,17 @@ var NodaroClient = class _NodaroClient extends chunkHPAHAE4U_cjs.NodaroClientCor
|
|
|
163
170
|
this.models = new chunk7QOCWJKD_cjs.ModelsResource(this);
|
|
164
171
|
this.shots = new chunkMBFUMWI5_cjs.ShotsResource(this);
|
|
165
172
|
this.recast = new chunkKXEWTYS4_cjs.RecastResource(this);
|
|
166
|
-
this.castSwap = new
|
|
173
|
+
this.castSwap = new chunkWYX44JHE_cjs.CastSwapResource(this);
|
|
167
174
|
this.trends = new chunkGHVCV4S5_cjs.TrendsResource(this);
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
175
|
+
this.trendRadar = new chunkRKW3N463_cjs.TrendRadarResource(this);
|
|
176
|
+
this.studio = new chunkIVM4WMMD_cjs.StudioResource(this);
|
|
177
|
+
this.copilot = new chunkGSKGWWBR_cjs.CopilotResource(this);
|
|
170
178
|
this.community = new chunk43FVH6LJ_cjs.CommunityResource(this);
|
|
171
179
|
this.templates = new chunkUIBYZNDR_cjs.TemplatesResource(this);
|
|
172
180
|
this.tutorials = new chunkKMNSPC72_cjs.TutorialsResource(this);
|
|
173
181
|
this.organizations = new chunkJ5LGGCAS_cjs.OrganizationsResource(this);
|
|
174
182
|
this.workspaces = new chunkLKH5M44B_cjs.WorkspacesResource(this);
|
|
175
|
-
this.edit = new
|
|
183
|
+
this.edit = new chunkJW5FH4TE_cjs.EditResource(this);
|
|
176
184
|
}
|
|
177
185
|
/**
|
|
178
186
|
* A client that acts in `workspaceId`, sharing this one's auth and config.
|
|
@@ -203,5 +211,5 @@ function createClient(opts) {
|
|
|
203
211
|
|
|
204
212
|
exports.NodaroClient = NodaroClient;
|
|
205
213
|
exports.createClient = createClient;
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
214
|
+
//# sourceMappingURL=chunk-SXV6OBKE.cjs.map
|
|
215
|
+
//# sourceMappingURL=chunk-SXV6OBKE.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/client.ts"],"names":["NodaroClientCore","WorkflowsResource","ProjectsResource","SessionsResource","TrashResource","JobsResource","VideoProResource","ExecutionsResource","NodesResource","Scene3DResource","DeveloperAppsResource","OAuthResource","WebhooksResource","AppsResource","CharactersResource","LocationsResource","ObjectsResource","CreaturesResource","KeepersResource","PipelinesResource","ReduceResource","PromptHelperResource","VoicesResource","LlmResource","MediaResource","ContentRightsResource","AudioResource","CreditsResource","UserSettingsResource","BillingResource","UploadsResource","LibraryResource","GalleryResource","PresetsResource","SavedPostsResource","CollectionsResource","PalettesResource","MoodboardsResource","CompetitorsResource","PickerCatalogsResource","CatalogsResource","ModelsResource","ShotsResource","RecastResource","CastSwapResource","TrendsResource","TrendRadarResource","StudioResource","CopilotResource","CommunityResource","TemplatesResource","TutorialsResource","OrganizationsResource","WorkspacesResource","EditResource"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DO,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,kCAAA,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;AAAA,EACA,KAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA;AAAA,EAEA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA;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AAI,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-SXV6OBKE.cjs","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"]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// src/resources/trend-radar.ts
|
|
2
|
+
var TrendRadarResource = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
client;
|
|
7
|
+
/** `GET /v1/trend-radar/summary` → the last run and the queue's counts. */
|
|
8
|
+
async summary() {
|
|
9
|
+
const res = await this.client.request("GET", "/v1/trend-radar/summary");
|
|
10
|
+
return res.data;
|
|
11
|
+
}
|
|
12
|
+
/** `GET /v1/trend-radar/candidates` → a page of candidate cards. */
|
|
13
|
+
candidates(params = {}) {
|
|
14
|
+
const qs = new URLSearchParams();
|
|
15
|
+
if (params.status) qs.set("status", params.status);
|
|
16
|
+
if (params.sort) qs.set("sort", params.sort);
|
|
17
|
+
if (params.cursor) qs.set("cursor", params.cursor);
|
|
18
|
+
if (params.limit !== void 0) qs.set("limit", String(params.limit));
|
|
19
|
+
const query = qs.toString();
|
|
20
|
+
return this.client.request("GET", `/v1/trend-radar/candidates${query ? `?${query}` : ""}`);
|
|
21
|
+
}
|
|
22
|
+
/** `GET /v1/trend-radar/candidates/:id` → one candidate with its readings, posts and checklist. */
|
|
23
|
+
async candidate(id) {
|
|
24
|
+
const res = await this.client.request("GET", `/v1/trend-radar/candidates/${encodeURIComponent(id)}`);
|
|
25
|
+
return res.data;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* `POST /v1/trend-radar/candidates/:id/approve` → `{ trendId, clip }`:
|
|
29
|
+
* creates a DRAFT trend named after the candidate and marks the candidate
|
|
30
|
+
* approved. `clip` is `"attaching"` when the top post is being downloaded
|
|
31
|
+
* (as the approving admin) and stored as the draft's source clip in the
|
|
32
|
+
* background — the candidate's `history` then says `source_attached` or
|
|
33
|
+
* `source_failed` with why — and `"none"` when there is no top post or the
|
|
34
|
+
* candidate was approved before. Approving again answers the same trend.
|
|
35
|
+
*
|
|
36
|
+
* The clip's download is an import of a link: pass the `confirmationId`
|
|
37
|
+
* from `contentRights.confirm({ url: candidate.topPost.url, declarationVersion })` so the
|
|
38
|
+
* download is made under the admin's confirmation (required once the
|
|
39
|
+
* deployment turns `content_rights_required` on; without one then, the
|
|
40
|
+
* draft is still created and the clip is left out, `source_failed` saying why).
|
|
41
|
+
*/
|
|
42
|
+
async approve(id, options = {}) {
|
|
43
|
+
const res = await this.client.request("POST", `/v1/trend-radar/candidates/${encodeURIComponent(id)}/approve`, {
|
|
44
|
+
body: options.confirmationId ? { confirmationId: options.confirmationId } : {}
|
|
45
|
+
});
|
|
46
|
+
return res.data;
|
|
47
|
+
}
|
|
48
|
+
/** `POST /v1/trend-radar/candidates/:id/watch` → the card, back to `watching`. */
|
|
49
|
+
async watch(id) {
|
|
50
|
+
const res = await this.client.request("POST", `/v1/trend-radar/candidates/${encodeURIComponent(id)}/watch`);
|
|
51
|
+
return res.data;
|
|
52
|
+
}
|
|
53
|
+
/** `POST /v1/trend-radar/candidates/:id/reject` → the card, `rejected` with the reason (1–500 characters). */
|
|
54
|
+
async reject(id, body) {
|
|
55
|
+
const res = await this.client.request("POST", `/v1/trend-radar/candidates/${encodeURIComponent(id)}/reject`, { body });
|
|
56
|
+
return res.data;
|
|
57
|
+
}
|
|
58
|
+
/** `GET /v1/trend-radar/settings` → the sources, thresholds, alerts, retention and run time. */
|
|
59
|
+
async settings() {
|
|
60
|
+
const res = await this.client.request("GET", "/v1/trend-radar/settings");
|
|
61
|
+
return res.data;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* `PUT /v1/trend-radar/settings` → the settings after the change. Only the
|
|
65
|
+
* keys sent change; `sources` replaces the list whole. Whoever saves becomes
|
|
66
|
+
* the account the daily searches run as.
|
|
67
|
+
*/
|
|
68
|
+
async updateSettings(patch) {
|
|
69
|
+
const res = await this.client.request("PUT", "/v1/trend-radar/settings", { body: patch });
|
|
70
|
+
return res.data;
|
|
71
|
+
}
|
|
72
|
+
/** `POST /v1/trend-radar/run` → `{ runId, startedAt }`: starts today's run now (one at a time). */
|
|
73
|
+
async run() {
|
|
74
|
+
const res = await this.client.request("POST", "/v1/trend-radar/run");
|
|
75
|
+
return res.data;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export { TrendRadarResource };
|
|
80
|
+
//# sourceMappingURL=chunk-TLTPIS2A.js.map
|
|
81
|
+
//# sourceMappingURL=chunk-TLTPIS2A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/trend-radar.ts"],"names":[],"mappings":";AA+MO,IAAM,qBAAN,MAAyB;AAAA,EAC9B,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA,EAGpB,MAAM,OAAA,GAAsC;AAC1C,IAAA,MAAM,MAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAAqC,OAAO,yBAAyB,CAAA;AACnG,IAAA,OAAO,GAAA,C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,IAAA,CAAK,MAAA,CAAO,OAAA,CAAwD,QAAQ,qBAAqB,CAAA;AACnH,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AACF","file":"chunk-TLTPIS2A.js","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\n\n/**\n * Trend Radar — the daily run that finds candidate trends (a short clip\n * several different creators recast within a few weeks) on Nodaro Cloud, and\n * the admin's decisions on them. Mirrors `/v1/trend-radar/*`\n * (`backend/src/ee/routes/trend-radar.ts`, shapes in\n * `backend/src/ee/lib/trend-radar/types.ts`): keep the two in step.\n *\n * Every method answers a SIGNED-IN ADMIN SESSION only (`supabaseAuth`, the\n * credential a first-party web app holds): an API key or an app's OAuth\n * token gets `403 forbidden` (`ForbiddenError`), a signed-in non-admin too.\n * A self-hosted instance has no radar (`NotFoundError`); Nodaro Cloud before\n * its storage exists answers `503 not_available`.\n */\n\nexport type TrendCandidateStatus = \"watching\" | \"candidate\" | \"slowing\" | \"approved\" | \"rejected\" | \"archived\"\nexport type TrendCandidateLabel = \"new\" | \"watching\" | \"rising\" | \"hot\" | \"slowing\"\nexport type TrendCandidateSort = \"creators\" | \"dayChange\" | \"firstSeen\"\nexport type TrendRadarSourceKind = \"sitemap\" | \"social\" | \"suggest\"\nexport type TrendCandidatePlatform = \"tiktok\" | \"instagram\" | \"youtube\"\n\n/** Where a candidate was first seen: a template site's page, or a public post. */\nexport interface TrendCandidateSource {\n kind: \"template-site\" | \"social\"\n name: string\n url: string | null\n firstSeenAt: string\n}\n\n/** One public post as a link and its public counts. */\nexport interface TrendCandidatePost {\n platform: TrendCandidatePlatform\n url: string\n author: string\n postedAt: string | null\n /** `null` where the platform hides views to a logged-out reader (Instagram): read `likes`. */\n plays: number | null\n likes: number | null\n soundName: string | null\n /** The platform's own still, when it gave one; a short-lived link. */\n stillUrl: string | null\n /** The platform's own player for the post (`<iframe src>`), when it has one. */\n embedUrl: string | null\n durationSec: number | null\n}\n\n/** One day's reading: distinct creators, summed plays, posts returned. */\nexport interface TrendCandidateReading {\n /** `YYYY-MM-DD`, Israel time. */\n date: string\n creators: number\n plays: number\n posts: number\n}\n\nexport interface TrendCandidateCard {\n id: string\n name: string\n slug: string\n status: TrendCandidateStatus\n label: TrendCandidateLabel\n soundName: string | null\n durationSec: number | null\n creators: number\n plays: number\n /** Plays growth from the previous reading, percent; `null` before two readings. */\n dayChangePct: number | null\n firstSeen: TrendCandidateSource\n topPost: TrendCandidatePost | null\n /** When the candidate first reached the creator threshold. */\n passedAt: string | null\n /** The draft trend an approval created. */\n trendId: string | null\n createdAt: string\n updatedAt: string\n}\n\nexport interface TrendCandidateTemplate {\n site: string\n url: string\n since: string | null\n note: string | null\n}\n\nexport interface TrendCandidateSearch {\n /** Whether the search engine suggests \"<name> ai\"; `null` when not checked. */\n suggest: boolean | null\n interest7d: { from: number; to: number } | null\n checkedAt: string\n}\n\nexport interface TrendCandidateEvent {\n at: string\n event: string\n detail: string | null\n}\n\n/** A threshold the candidate is held to; `auto` is whether the last reading met it (`null`: not read yet). */\nexport interface TrendCandidateCheck {\n key: string\n label: string\n hint: string | null\n auto: boolean | null\n}\n\nexport interface TrendCandidate extends TrendCandidateCard {\n summary: string | null\n posts: TrendCandidatePost[]\n /** Oldest first. */\n readings: TrendCandidateReading[]\n templatesElsewhere: TrendCandidateTemplate[]\n search: TrendCandidateSearch | null\n /** Oldest first. */\n history: TrendCandidateEvent[]\n checklist: TrendCandidateCheck[]\n rejectReason: string | null\n}\n\nexport interface TrendRadarSource {\n id: string\n name: string\n kind: TrendRadarSourceKind\n url: string | null\n enabled: boolean\n lastReadAt: string | null\n pages: number | null\n newToday: number | null\n lastError: string | null\n}\n\nexport interface TrendRadarThresholds {\n minCreators: number\n windowDays: number\n risingPct: number\n slowingPct: number\n maxClipSec: number\n dailySearchBudget: number\n}\n\nexport interface TrendRadarAlerts {\n slackNewCandidate: boolean\n slackDailySummary: boolean\n}\n\nexport interface TrendRadarLastRun {\n at: string\n sourcesRead: number\n namesSeen: number\n searchesUsed: number\n}\n\nexport interface TrendRadarSettings {\n sources: TrendRadarSource[]\n thresholds: TrendRadarThresholds\n alerts: TrendRadarAlerts\n retentionDays: number\n /** `HH:MM`, Israel time. */\n runAt: string\n}\n\n/** A source as {@link TrendRadarResource.updateSettings} takes it: without `id` it is added, with one it is updated, and one left out is removed. */\nexport interface TrendRadarSourceInput {\n id?: string\n name: string\n kind: TrendRadarSourceKind\n url: string | null\n enabled: boolean\n}\n\nexport interface TrendRadarSettingsPatch {\n sources?: TrendRadarSourceInput[]\n thresholds?: Partial<TrendRadarThresholds>\n alerts?: Partial<TrendRadarAlerts>\n retentionDays?: number\n runAt?: string\n}\n\nexport interface TrendRadarSummary {\n lastRun: TrendRadarLastRun | null\n counts: { candidates: number; watching: number; slowing: number }\n searchesToday: number\n dailySearchBudget: number\n}\n\nexport interface ListTrendCandidatesParams {\n /** One status; left out = every candidate but the rejected and archived. */\n status?: TrendCandidateStatus\n /** Default `creators`. */\n sort?: TrendCandidateSort\n /** `next` of the previous page. */\n cursor?: string\n /** 1–200, default 50. */\n limit?: number\n}\n\nexport interface TrendCandidatePage {\n data: TrendCandidateCard[]\n next: string | null\n}\n\n/** What an approval made: the draft trend, and whether its source clip is on its way. */\nexport interface TrendCandidateApproval {\n trendId: string\n clip: \"attaching\" | \"none\"\n}\n\nexport class TrendRadarResource {\n constructor(private client: NodaroClientCore) {}\n\n /** `GET /v1/trend-radar/summary` → the last run and the queue's counts. */\n async summary(): Promise<TrendRadarSummary> {\n const res = await this.client.request<{ data: TrendRadarSummary }>(\"GET\", \"/v1/trend-radar/summary\")\n return res.data\n }\n\n /** `GET /v1/trend-radar/candidates` → a page of candidate cards. */\n candidates(params: ListTrendCandidatesParams = {}): Promise<TrendCandidatePage> {\n const qs = new URLSearchParams()\n if (params.status) qs.set(\"status\", params.status)\n if (params.sort) qs.set(\"sort\", params.sort)\n if (params.cursor) qs.set(\"cursor\", params.cursor)\n if (params.limit !== undefined) qs.set(\"limit\", String(params.limit))\n const query = qs.toString()\n return this.client.request(\"GET\", `/v1/trend-radar/candidates${query ? `?${query}` : \"\"}`)\n }\n\n /** `GET /v1/trend-radar/candidates/:id` → one candidate with its readings, posts and checklist. */\n async candidate(id: string): Promise<TrendCandidate> {\n const res = await this.client.request<{ data: TrendCandidate }>(\"GET\", `/v1/trend-radar/candidates/${encodeURIComponent(id)}`)\n return res.data\n }\n\n /**\n * `POST /v1/trend-radar/candidates/:id/approve` → `{ trendId, clip }`:\n * creates a DRAFT trend named after the candidate and marks the candidate\n * approved. `clip` is `\"attaching\"` when the top post is being downloaded\n * (as the approving admin) and stored as the draft's source clip in the\n * background — the candidate's `history` then says `source_attached` or\n * `source_failed` with why — and `\"none\"` when there is no top post or the\n * candidate was approved before. Approving again answers the same trend.\n *\n * The clip's download is an import of a link: pass the `confirmationId`\n * from `contentRights.confirm({ url: candidate.topPost.url, declarationVersion })` so the\n * download is made under the admin's confirmation (required once the\n * deployment turns `content_rights_required` on; without one then, the\n * draft is still created and the clip is left out, `source_failed` saying why).\n */\n async approve(id: string, options: { confirmationId?: string } = {}): Promise<TrendCandidateApproval> {\n const res = await this.client.request<{ data: TrendCandidateApproval }>(\"POST\", `/v1/trend-radar/candidates/${encodeURIComponent(id)}/approve`, {\n body: options.confirmationId ? { confirmationId: options.confirmationId } : {},\n })\n return res.data\n }\n\n /** `POST /v1/trend-radar/candidates/:id/watch` → the card, back to `watching`. */\n async watch(id: string): Promise<TrendCandidateCard> {\n const res = await this.client.request<{ data: TrendCandidateCard }>(\"POST\", `/v1/trend-radar/candidates/${encodeURIComponent(id)}/watch`)\n return res.data\n }\n\n /** `POST /v1/trend-radar/candidates/:id/reject` → the card, `rejected` with the reason (1–500 characters). */\n async reject(id: string, body: { reason: string }): Promise<TrendCandidateCard> {\n const res = await this.client.request<{ data: TrendCandidateCard }>(\"POST\", `/v1/trend-radar/candidates/${encodeURIComponent(id)}/reject`, { body })\n return res.data\n }\n\n /** `GET /v1/trend-radar/settings` → the sources, thresholds, alerts, retention and run time. */\n async settings(): Promise<TrendRadarSettings> {\n const res = await this.client.request<{ data: TrendRadarSettings }>(\"GET\", \"/v1/trend-radar/settings\")\n return res.data\n }\n\n /**\n * `PUT /v1/trend-radar/settings` → the settings after the change. Only the\n * keys sent change; `sources` replaces the list whole. Whoever saves becomes\n * the account the daily searches run as.\n */\n async updateSettings(patch: TrendRadarSettingsPatch): Promise<TrendRadarSettings> {\n const res = await this.client.request<{ data: TrendRadarSettings }>(\"PUT\", \"/v1/trend-radar/settings\", { body: patch })\n return res.data\n }\n\n /** `POST /v1/trend-radar/run` → `{ runId, startedAt }`: starts today's run now (one at a time). */\n async run(): Promise<{ runId: string; startedAt: string }> {\n const res = await this.client.request<{ data: { runId: string; startedAt: string } }>(\"POST\", \"/v1/trend-radar/run\")\n return res.data\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-UIBY7JVJ.js"}
|
|
@@ -40,10 +40,15 @@ var UploadsResource = class {
|
|
|
40
40
|
* `validation_error` (400: not an http(s) address, or not an image) or
|
|
41
41
|
* `fetch_failed` (422: the address could not be reached or answered with an
|
|
42
42
|
* error).
|
|
43
|
+
*
|
|
44
|
+
* An import of a link runs the platform's content rights check: pass the
|
|
45
|
+
* `confirmationId` from `contentRights.confirm({ url })` when the deployment
|
|
46
|
+
* requires one (`403 rights_confirmation_required` otherwise). A site an
|
|
47
|
+
* administrator disabled answers `403 import_source_disabled`.
|
|
43
48
|
*/
|
|
44
|
-
async importUrl(url) {
|
|
49
|
+
async importUrl(url, options = {}) {
|
|
45
50
|
const res = await this.client.request("POST", "/v1/media/import-url", {
|
|
46
|
-
body: { url }
|
|
51
|
+
body: { url, ...options.confirmationId ? { confirmationId: options.confirmationId } : {} }
|
|
47
52
|
});
|
|
48
53
|
return res.data;
|
|
49
54
|
}
|
|
@@ -60,5 +65,5 @@ var UploadsResource = class {
|
|
|
60
65
|
};
|
|
61
66
|
|
|
62
67
|
exports.UploadsResource = UploadsResource;
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
64
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
//# sourceMappingURL=chunk-UPGZTLK7.cjs.map
|
|
69
|
+
//# sourceMappingURL=chunk-UPGZTLK7.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/uploads.ts"],"names":[],"mappings":";;;AA4BO,IAAM,kBAAN,MAAsB;AAAA,EAC3B,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUpB,MAAM,OAAO,IAAA,EAAmC;AAC9C,IAAA,MAAM,IAAA,GAAO,IAAI,QAAA,EAAS;AAC1B,IAAA,IAAA,CAAK,MAAA,CAAO,QAAQ,IAAI,CAAA;AACxB,IAAA,MAAM,GAAA,GAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA;AAAA,MAC5B,MAAA;AAAA,MACA,YAAA;AAAA,MACA,EAAE,MAAM,IAAA;AAAK,KACf;AACA,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAwBA,MAAM,SAAA,CAAU,GAAA,EAAa,OAAA,GAAuC,EAAC,EAA6B;AAChG,IAAA,MAAM,MAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAAmC,QAAQ,sBAAA,EAAwB;AAAA,MAC/F,IAAA,EAAM,EAAE,GAAA,EAAK,GAAI,OAAA,CAAQ,cAAA,GAAiB,EAAE,cAAA,EAAgB,OAAA,CAAQ,cAAA,EAAe,GAAI,EAAC;AAAG,KAC5F,CAAA;AACD,IAAA,OAAO,GAAA,CAAI,IAAA;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,WAAW,IAAA,EAA+E;AACxF,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAA0B,MAAA,EAAQ,mBAAmB,EAAE,IAAA,EAAM,MAAM,CAAA;AAAA,EACxF;AACF","file":"chunk-UPGZTLK7.cjs","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\n\n/**\n * Result of a successful `POST /v1/upload`. Mirrors the route's `data` envelope\n * (`backend/src/routes/upload.ts`), the source of truth — keep in sync if that\n * response changes. The route also returns loosely-typed extracted `metadata`;\n * it is omitted here until a consumer needs a typed shape (add it shaped to\n * that need rather than inventing `Record<string, unknown>` surface now).\n */\nexport interface UploadResult {\n /** Public R2 URL of the stored asset (always present on success). */\n readonly url: string\n /** Storage row id; `null` when no asset row was written (e.g. unauthenticated). */\n readonly assetId: string | null\n /** Generated thumbnail URL (images/video); `null` for audio or on failure. */\n readonly thumbnailUrl: string | null\n /** Server-classified asset category (e.g. \"image\" | \"video\" | \"audio\"). */\n readonly category: string\n /** Display filename (server override or the original). */\n readonly filename: string\n /** Final MIME type after server normalization. */\n readonly mimeType: string\n /** Stored byte size. */\n readonly sizeBytes: number\n /** R2 object key. */\n readonly r2Key: string\n}\n\nexport class UploadsResource {\n constructor(private client: NodaroClientCore) {}\n\n /**\n * Upload one file (`POST /v1/upload`, multipart — the file rides the `file`\n * field). The SDK's `request` detects the `FormData` body and lets the\n * runtime set the multipart boundary. Returns the persisted asset's public\n * URL + storage metadata (unwraps the `{ data }` envelope). Throws\n * `StorageExceededError` (413) over the storage cap and the SDK's other typed\n * errors on the usual statuses.\n */\n async upload(file: File): Promise<UploadResult> {\n const form = new FormData()\n form.append(\"file\", file)\n const res = await this.client.request<{ data: UploadResult }>(\n \"POST\",\n \"/v1/upload\",\n { body: form },\n )\n return res.data\n }\n\n /**\n * Copy a picture from a web address into your storage\n * (`POST /v1/media/import-url`, body `{ url }`). The platform fetches it\n * (http(s) only, never a private address, up to 20 MB), keeps it only if it\n * decodes as an image (JPEG, PNG, WebP, GIF; HEIC/HEIF and AVIF are\n * converted to JPEG or PNG), and stores it as an upload of yours, so its address serves\n * the pixels to the browser (a canvas can read it). Returns the stored\n * picture (unwraps the `{ data }` envelope).\n *\n * Throws `StorageExceededError` on a 413, its `reason` telling the two\n * apart: `storage_limit_exceeded` is a full storage (the quota is in\n * `details` — `usedBytes`, `quotaBytes`, `remainingBytes`, `tier`), and\n * `file_too_large` a picture over 20 MB. Throws a `NodaroError` with `code`\n * `validation_error` (400: not an http(s) address, or not an image) or\n * `fetch_failed` (422: the address could not be reached or answered with an\n * error).\n *\n * An import of a link runs the platform's content rights check: pass the\n * `confirmationId` from `contentRights.confirm({ url })` when the deployment\n * requires one (`403 rights_confirmation_required` otherwise). A site an\n * administrator disabled answers `403 import_source_disabled`.\n */\n async importUrl(url: string, options: { confirmationId?: string } = {}): Promise<ImportUrlResult> {\n const res = await this.client.request<{ data: ImportUrlResult }>(\"POST\", \"/v1/media/import-url\", {\n body: { url, ...(options.confirmationId ? { confirmationId: options.confirmationId } : {}) },\n })\n return res.data\n }\n\n /**\n * Store a JSON document (`POST /v1/upload-json`, up to 25 MB) and get its\n * public URL — e.g. an image editor's design state, passed to\n * `client.jobs.fromUpload` as `editStateUrl` so the edit can be reopened.\n * The URL is unguessable but public: never store a secret in it. Creates no\n * library item.\n */\n uploadJson(json: Record<string, unknown> | readonly unknown[]): Promise<UploadJsonResult> {\n return this.client.request<UploadJsonResult>(\"POST\", \"/v1/upload-json\", { body: json })\n }\n}\n\n/** Result of {@link UploadsResource.uploadJson}. */\nexport interface UploadJsonResult {\n /** Public URL of the stored JSON document. */\n readonly url: string\n}\n\n/**\n * Result of {@link UploadsResource.importUrl}. Mirrors the route's `data`:\n * the fields of {@link UploadResult} it shares, plus the picture's size.\n */\nexport interface ImportUrlResult {\n /** Public URL of the stored picture. */\n readonly url: string\n /** Generated thumbnail URL; `null` when it could not be made. */\n readonly thumbnailUrl: string | null\n /** Storage row id; `null` when no asset row was written. */\n readonly assetId: string | null\n /** Final MIME type (a HEIC/HEIF or AVIF source is stored as JPEG or PNG). */\n readonly mimeType: string\n /** Stored byte size. */\n readonly sizeBytes: number\n /** Display filename: the address's last path segment, else `imported-<id>.<ext>`. */\n readonly filename: string\n /** Width in pixels; 0 when it could not be read. */\n readonly width: number\n /** Height in pixels; 0 when it could not be read. */\n readonly height: number\n}\n"]}
|
|
@@ -1,54 +1,56 @@
|
|
|
1
|
+
import { WorkflowsResource } from './chunk-33HT46A3.js';
|
|
2
|
+
import { WorkspacesResource } from './chunk-Z5GLY4R3.js';
|
|
3
|
+
import { TrendRadarResource } from './chunk-TLTPIS2A.js';
|
|
4
|
+
import { TrendsResource } from './chunk-H3HUZT3T.js';
|
|
1
5
|
import { TutorialsResource } from './chunk-HPXE3NZW.js';
|
|
2
|
-
import { UploadsResource } from './chunk-
|
|
6
|
+
import { UploadsResource } from './chunk-P2C33IOF.js';
|
|
3
7
|
import { UserSettingsResource } from './chunk-LR5TGCJP.js';
|
|
4
8
|
import { VideoProResource } from './chunk-ERLXU47J.js';
|
|
5
9
|
import { VoicesResource } from './chunk-T7N7DFQJ.js';
|
|
6
10
|
import { WebhooksResource } from './chunk-YN6CBIIB.js';
|
|
7
|
-
import {
|
|
8
|
-
import { WorkspacesResource } from './chunk-Z5GLY4R3.js';
|
|
11
|
+
import { ReduceResource } from './chunk-IHKIYVZQ.js';
|
|
9
12
|
import { SavedPostsResource } from './chunk-NCCBS6GU.js';
|
|
10
13
|
import { Scene3DResource } from './chunk-NNHWH7ER.js';
|
|
11
14
|
import { SessionsResource } from './chunk-WS4ZQ4AA.js';
|
|
12
15
|
import { ShotsResource } from './chunk-WVFAQBS7.js';
|
|
13
|
-
import { StudioResource } from './chunk-
|
|
16
|
+
import { StudioResource } from './chunk-NQXBWK2D.js';
|
|
14
17
|
import { TemplatesResource } from './chunk-M7VSFZMV.js';
|
|
15
18
|
import { TrashResource } from './chunk-2SQ7V6EX.js';
|
|
16
|
-
import {
|
|
19
|
+
import { ObjectsResource } from './chunk-GIQDM2MH.js';
|
|
17
20
|
import { OrganizationsResource } from './chunk-ALSLZG3U.js';
|
|
18
21
|
import { PalettesResource } from './chunk-WEQWU2IC.js';
|
|
19
22
|
import { PickerCatalogsResource } from './chunk-KFZOJBI5.js';
|
|
20
|
-
import { PipelinesResource } from './chunk-
|
|
23
|
+
import { PipelinesResource } from './chunk-J2DBYYXC.js';
|
|
21
24
|
import { ProjectsResource } from './chunk-H7VQTG4M.js';
|
|
22
25
|
import { PromptHelperResource } from './chunk-OIPPTBW4.js';
|
|
23
26
|
import { RecastResource } from './chunk-AJVSMNPZ.js';
|
|
24
|
-
import {
|
|
27
|
+
import { LlmResource } from './chunk-E37CVHWW.js';
|
|
25
28
|
import { LocationsResource } from './chunk-XZPSJG2X.js';
|
|
26
|
-
import { MediaResource } from './chunk-
|
|
29
|
+
import { MediaResource } from './chunk-SEETG3EM.js';
|
|
27
30
|
import { ModelsResource } from './chunk-Y6V6CBY5.js';
|
|
28
31
|
import { MoodboardsResource } from './chunk-YVU2M7MI.js';
|
|
29
32
|
import { PresetsResource } from './chunk-AEUPH7EE.js';
|
|
30
|
-
import { NodesResource } from './chunk-
|
|
33
|
+
import { NodesResource } from './chunk-2ENKGVRS.js';
|
|
31
34
|
import { OAuthResource } from './chunk-Z7LGWNI7.js';
|
|
32
|
-
import {
|
|
33
|
-
import { EditResource } from './chunk-
|
|
34
|
-
import { ExecutionsResource } from './chunk-
|
|
35
|
+
import { DeveloperAppsResource } from './chunk-65E3JBFZ.js';
|
|
36
|
+
import { EditResource } from './chunk-VAEXSUUY.js';
|
|
37
|
+
import { ExecutionsResource } from './chunk-22XXTB2R.js';
|
|
35
38
|
import { GalleryResource } from './chunk-JDEZHITT.js';
|
|
36
|
-
import { JobsResource } from './chunk-
|
|
39
|
+
import { JobsResource } from './chunk-A42R7UT7.js';
|
|
37
40
|
import { KeepersResource } from './chunk-MQWZFWHE.js';
|
|
38
41
|
import { LibraryResource } from './chunk-P6E4QDJN.js';
|
|
39
|
-
import { LlmResource } from './chunk-E37CVHWW.js';
|
|
40
42
|
import { CollectionsResource } from './chunk-4WRDR4GN.js';
|
|
41
43
|
import { CommunityResource } from './chunk-SFB4YLCS.js';
|
|
42
44
|
import { CompetitorsResource } from './chunk-BU5A6K4C.js';
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
+
import { ContentRightsResource } from './chunk-K2VWXAGK.js';
|
|
46
|
+
import { CopilotResource } from './chunk-DIPHH4OP.js';
|
|
47
|
+
import { NodaroClientCore } from './chunk-BCZGMK5P.js';
|
|
45
48
|
import { CreaturesResource } from './chunk-HUYI5G3D.js';
|
|
46
49
|
import { CreditsResource } from './chunk-7QK2NXJA.js';
|
|
47
|
-
import { DeveloperAppsResource } from './chunk-65E3JBFZ.js';
|
|
48
50
|
import { AppsResource } from './chunk-7LODCIQK.js';
|
|
49
51
|
import { AudioResource } from './chunk-3QFTP5P5.js';
|
|
50
|
-
import { BillingResource } from './chunk-
|
|
51
|
-
import { CastSwapResource } from './chunk-
|
|
52
|
+
import { BillingResource } from './chunk-VQOUF4F5.js';
|
|
53
|
+
import { CastSwapResource } from './chunk-X4QICOOM.js';
|
|
52
54
|
import { CatalogsResource } from './chunk-KG4R454Z.js';
|
|
53
55
|
import { CharactersResource } from './chunk-CBDUHYTR.js';
|
|
54
56
|
|
|
@@ -82,6 +84,8 @@ var NodaroClient = class _NodaroClient extends NodaroClientCore {
|
|
|
82
84
|
voices;
|
|
83
85
|
llm;
|
|
84
86
|
media;
|
|
87
|
+
/** Content rights: the declaration confirmed before a link is imported, and the confirmation a download carries. */
|
|
88
|
+
contentRights;
|
|
85
89
|
audio;
|
|
86
90
|
credits;
|
|
87
91
|
/** The signed-in person's own settings (the interface language, the monthly statement opt-in, …). */
|
|
@@ -109,6 +113,8 @@ var NodaroClient = class _NodaroClient extends NodaroClientCore {
|
|
|
109
113
|
castSwap;
|
|
110
114
|
/** Trends: ready-made Cast Swap recipes you fill with your own pictures (Cloud). */
|
|
111
115
|
trends;
|
|
116
|
+
/** Trend Radar: the daily run's candidate trends and the admin's decisions (Cloud, admin session only). */
|
|
117
|
+
trendRadar;
|
|
112
118
|
studio;
|
|
113
119
|
copilot;
|
|
114
120
|
community;
|
|
@@ -143,6 +149,7 @@ var NodaroClient = class _NodaroClient extends NodaroClientCore {
|
|
|
143
149
|
this.voices = new VoicesResource(this);
|
|
144
150
|
this.llm = new LlmResource(this);
|
|
145
151
|
this.media = new MediaResource(this);
|
|
152
|
+
this.contentRights = new ContentRightsResource(this);
|
|
146
153
|
this.audio = new AudioResource(this);
|
|
147
154
|
this.credits = new CreditsResource(this);
|
|
148
155
|
this.userSettings = new UserSettingsResource(this);
|
|
@@ -163,6 +170,7 @@ var NodaroClient = class _NodaroClient extends NodaroClientCore {
|
|
|
163
170
|
this.recast = new RecastResource(this);
|
|
164
171
|
this.castSwap = new CastSwapResource(this);
|
|
165
172
|
this.trends = new TrendsResource(this);
|
|
173
|
+
this.trendRadar = new TrendRadarResource(this);
|
|
166
174
|
this.studio = new StudioResource(this);
|
|
167
175
|
this.copilot = new CopilotResource(this);
|
|
168
176
|
this.community = new CommunityResource(this);
|
|
@@ -200,5 +208,5 @@ function createClient(opts) {
|
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
export { NodaroClient, createClient };
|
|
203
|
-
//# sourceMappingURL=chunk-
|
|
204
|
-
//# sourceMappingURL=chunk-
|
|
211
|
+
//# sourceMappingURL=chunk-UR7S4GGS.js.map
|
|
212
|
+
//# sourceMappingURL=chunk-UR7S4GGS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DO,IAAM,YAAA,GAAN,MAAM,aAAA,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Ae,CAAA;AAC1C,IAAA,OAAO,IAAI,aAAA,CAAa;AAAA,MACtB,SAAS,IAAA,CAAK,OAAA;AAAA,MACd,MAAM,IAAA,CAAK,IAAA;AAAA,MACX,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,GAAI,aAAA,GAAgB,EAAE,KAAA,EAAO,aAAA,KAAkB,EAAC;AAAA,MAChD,GAAI,KAAK,kBAAkB,CAAA,GAAI,EAAE,WAAA,EAAa,IAAA,CAAK,WAAA,EAAY,GAAI,EAAC;AAAA,MACpE,GAAI,WAAA,GAAc,EAAE,WAAA,KAAgB;AAAC,KACtC,CAAA;AAAA,EACH;AACF;AAGO,SAAS,aAAa,IAAA,EAAmC;AAC9D,EAAA,OAAO,IAAI,aAAa,IAAI,CAAA;AAC9B","file":"chunk-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,4 +1,4 @@
|
|
|
1
|
-
import { NodaroError, ForbiddenError } from './chunk-
|
|
1
|
+
import { NodaroError, ForbiddenError } from './chunk-5AS4LKEF.js';
|
|
2
2
|
import { resolveEditPlanSources, describeAudioSyncOffsetIssue, transcriptSpeakerLabels, speakerMapResultOf, cameraSwitchSpeakerMap, remapTranscriptThroughEdl } from '@nodaro/shared/edl';
|
|
3
3
|
import { isUseCaseNodeType, USE_CASE_NODE_TYPES } from '@nodaro/shared/nodes';
|
|
4
4
|
export { USE_CASE_NODE_TYPES } from '@nodaro/shared/nodes';
|
|
@@ -396,5 +396,5 @@ var EditResource = class {
|
|
|
396
396
|
};
|
|
397
397
|
|
|
398
398
|
export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS };
|
|
399
|
-
//# sourceMappingURL=chunk-
|
|
400
|
-
//# sourceMappingURL=chunk-
|
|
399
|
+
//# sourceMappingURL=chunk-VAEXSUUY.js.map
|
|
400
|
+
//# sourceMappingURL=chunk-VAEXSUUY.js.map
|