@nodaro/sdk 2.62.0 → 2.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-SEETG3EM.js → chunk-72ZJ72WF.js} +3 -3
- package/dist/{chunk-SEETG3EM.js.map → chunk-72ZJ72WF.js.map} +1 -1
- package/dist/{chunk-SXV6OBKE.cjs → chunk-7IZ4ZMI5.cjs} +18 -18
- package/dist/{chunk-SXV6OBKE.cjs.map → chunk-7IZ4ZMI5.cjs.map} +1 -1
- package/dist/{chunk-NQXBWK2D.js → chunk-A5UGBCAW.js} +3 -3
- package/dist/{chunk-NQXBWK2D.js.map → chunk-A5UGBCAW.js.map} +1 -1
- package/dist/{chunk-DT3Q22NZ.js → chunk-A75Q7UEU.js} +3 -3
- package/dist/{chunk-DT3Q22NZ.js.map → chunk-A75Q7UEU.js.map} +1 -1
- package/dist/{chunk-BCZGMK5P.js → chunk-CAQ2BKEP.js} +4 -4
- package/dist/{chunk-BCZGMK5P.js.map → chunk-CAQ2BKEP.js.map} +1 -1
- package/dist/{chunk-DODUCQ6B.cjs → chunk-DR5WM36L.cjs} +22 -22
- package/dist/{chunk-DODUCQ6B.cjs.map → chunk-DR5WM36L.cjs.map} +1 -1
- package/dist/{chunk-7YHIFCJ4.cjs → chunk-EP4J3TLQ.cjs} +2 -2
- package/dist/chunk-EP4J3TLQ.cjs.map +1 -0
- package/dist/{chunk-JW5FH4TE.cjs → chunk-GRATHB3C.cjs} +9 -9
- package/dist/{chunk-JW5FH4TE.cjs.map → chunk-GRATHB3C.cjs.map} +1 -1
- package/dist/{chunk-ASPUFRHB.cjs → chunk-JK3YVG6A.cjs} +4 -4
- package/dist/{chunk-ASPUFRHB.cjs.map → chunk-JK3YVG6A.cjs.map} +1 -1
- package/dist/{chunk-KCQ3I6NW.cjs → chunk-KP2DIIKO.cjs} +5 -5
- package/dist/{chunk-KCQ3I6NW.cjs.map → chunk-KP2DIIKO.cjs.map} +1 -1
- package/dist/{chunk-2ENKGVRS.js → chunk-L3RTC4FL.js} +3 -3
- package/dist/{chunk-2ENKGVRS.js.map → chunk-L3RTC4FL.js.map} +1 -1
- package/dist/{chunk-DIPHH4OP.js → chunk-MQRPXZW5.js} +3 -3
- package/dist/{chunk-DIPHH4OP.js.map → chunk-MQRPXZW5.js.map} +1 -1
- package/dist/{chunk-7GC5LKCR.cjs → chunk-P2JYDWZT.cjs} +3 -2
- package/dist/chunk-P2JYDWZT.cjs.map +1 -0
- package/dist/{chunk-UR7S4GGS.js → chunk-POUMH7QE.js} +10 -10
- package/dist/{chunk-UR7S4GGS.js.map → chunk-POUMH7QE.js.map} +1 -1
- package/dist/{chunk-WYX44JHE.cjs → chunk-PTVUYLJO.cjs} +9 -4
- package/dist/chunk-PTVUYLJO.cjs.map +1 -0
- package/dist/{chunk-KFZOJBI5.js → chunk-QAVLYMGM.js} +2 -2
- package/dist/chunk-QAVLYMGM.js.map +1 -0
- package/dist/{chunk-VAEXSUUY.js → chunk-T23YD5BR.js} +3 -3
- package/dist/{chunk-VAEXSUUY.js.map → chunk-T23YD5BR.js.map} +1 -1
- package/dist/{chunk-GSKGWWBR.cjs → chunk-TBFA6QPH.cjs} +4 -4
- package/dist/{chunk-GSKGWWBR.cjs.map → chunk-TBFA6QPH.cjs.map} +1 -1
- package/dist/{chunk-DCMB5XOH.cjs → chunk-VU23J7US.cjs} +5 -5
- package/dist/{chunk-DCMB5XOH.cjs.map → chunk-VU23J7US.cjs.map} +1 -1
- package/dist/{chunk-5AS4LKEF.js → chunk-WNXX3B2A.js} +3 -2
- package/dist/chunk-WNXX3B2A.js.map +1 -0
- package/dist/{chunk-IVM4WMMD.cjs → chunk-YLXCXVYF.cjs} +5 -5
- package/dist/{chunk-IVM4WMMD.cjs.map → chunk-YLXCXVYF.cjs.map} +1 -1
- package/dist/{chunk-X4QICOOM.js → chunk-ZAATTX5W.js} +9 -4
- package/dist/chunk-ZAATTX5W.js.map +1 -0
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +51 -12
- package/dist/entries/cast-swap.d.ts +51 -12
- package/dist/entries/cast-swap.js +1 -1
- package/dist/entries/client.cjs +16 -16
- package/dist/entries/client.js +11 -11
- package/dist/entries/copilot.cjs +4 -4
- package/dist/entries/copilot.js +3 -3
- package/dist/entries/core.cjs +6 -6
- package/dist/entries/core.js +2 -2
- package/dist/entries/edit.cjs +7 -7
- package/dist/entries/edit.js +2 -2
- package/dist/entries/errors.cjs +28 -28
- package/dist/entries/errors.d.cts +12 -8
- package/dist/entries/errors.d.ts +12 -8
- package/dist/entries/errors.js +1 -1
- package/dist/entries/media.cjs +4 -4
- package/dist/entries/media.js +3 -3
- package/dist/entries/nodes.cjs +3 -3
- package/dist/entries/nodes.js +2 -2
- package/dist/entries/picker-catalogs.cjs +2 -2
- package/dist/entries/picker-catalogs.d.cts +13 -0
- package/dist/entries/picker-catalogs.d.ts +13 -0
- package/dist/entries/picker-catalogs.js +1 -1
- package/dist/entries/studio.cjs +5 -5
- package/dist/entries/studio.js +2 -2
- package/dist/index.cjs +57 -57
- package/dist/index.js +11 -11
- package/package.json +3 -3
- package/dist/chunk-5AS4LKEF.js.map +0 -1
- package/dist/chunk-7GC5LKCR.cjs.map +0 -1
- package/dist/chunk-7YHIFCJ4.cjs.map +0 -1
- package/dist/chunk-KFZOJBI5.js.map +0 -1
- package/dist/chunk-WYX44JHE.cjs.map +0 -1
- package/dist/chunk-X4QICOOM.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -56,7 +56,7 @@ require('./chunk-IS26FJO7.cjs');
|
|
|
56
56
|
require('./chunk-RQSGS7ZK.cjs');
|
|
57
57
|
require('./chunk-43NO4SGC.cjs');
|
|
58
58
|
require('./chunk-JOX5BJ6K.cjs');
|
|
59
|
-
var
|
|
59
|
+
var chunk7IZ4ZMI5_cjs = require('./chunk-7IZ4ZMI5.cjs');
|
|
60
60
|
var chunkWUM6CWTE_cjs = require('./chunk-WUM6CWTE.cjs');
|
|
61
61
|
var chunkLKH5M44B_cjs = require('./chunk-LKH5M44B.cjs');
|
|
62
62
|
var chunkRKW3N463_cjs = require('./chunk-RKW3N463.cjs');
|
|
@@ -72,27 +72,27 @@ var chunkSYVNY3AH_cjs = require('./chunk-SYVNY3AH.cjs');
|
|
|
72
72
|
var chunkYDRXBRW2_cjs = require('./chunk-YDRXBRW2.cjs');
|
|
73
73
|
var chunkWMT7HEBZ_cjs = require('./chunk-WMT7HEBZ.cjs');
|
|
74
74
|
var chunkMBFUMWI5_cjs = require('./chunk-MBFUMWI5.cjs');
|
|
75
|
-
var
|
|
75
|
+
var chunkYLXCXVYF_cjs = require('./chunk-YLXCXVYF.cjs');
|
|
76
76
|
var chunkUIBYZNDR_cjs = require('./chunk-UIBYZNDR.cjs');
|
|
77
77
|
var chunkLTZKNAXM_cjs = require('./chunk-LTZKNAXM.cjs');
|
|
78
78
|
var chunk57GANTLV_cjs = require('./chunk-57GANTLV.cjs');
|
|
79
79
|
var chunkJ5LGGCAS_cjs = require('./chunk-J5LGGCAS.cjs');
|
|
80
80
|
var chunkNBVARNVA_cjs = require('./chunk-NBVARNVA.cjs');
|
|
81
|
-
var
|
|
81
|
+
var chunkEP4J3TLQ_cjs = require('./chunk-EP4J3TLQ.cjs');
|
|
82
82
|
var chunkG4AFHCNA_cjs = require('./chunk-G4AFHCNA.cjs');
|
|
83
83
|
var chunkLAWYFC4G_cjs = require('./chunk-LAWYFC4G.cjs');
|
|
84
84
|
var chunkTCLNSVYA_cjs = require('./chunk-TCLNSVYA.cjs');
|
|
85
85
|
var chunkKXEWTYS4_cjs = require('./chunk-KXEWTYS4.cjs');
|
|
86
86
|
var chunkSS3B6PHT_cjs = require('./chunk-SS3B6PHT.cjs');
|
|
87
87
|
var chunkMIXRL6I2_cjs = require('./chunk-MIXRL6I2.cjs');
|
|
88
|
-
var
|
|
88
|
+
var chunkJK3YVG6A_cjs = require('./chunk-JK3YVG6A.cjs');
|
|
89
89
|
var chunk7QOCWJKD_cjs = require('./chunk-7QOCWJKD.cjs');
|
|
90
90
|
var chunkZCWKX4V6_cjs = require('./chunk-ZCWKX4V6.cjs');
|
|
91
91
|
var chunkQ45PC4YD_cjs = require('./chunk-Q45PC4YD.cjs');
|
|
92
|
-
var
|
|
92
|
+
var chunkDR5WM36L_cjs = require('./chunk-DR5WM36L.cjs');
|
|
93
93
|
var chunkGVIFLUYZ_cjs = require('./chunk-GVIFLUYZ.cjs');
|
|
94
94
|
var chunkA3S55XGF_cjs = require('./chunk-A3S55XGF.cjs');
|
|
95
|
-
var
|
|
95
|
+
var chunkGRATHB3C_cjs = require('./chunk-GRATHB3C.cjs');
|
|
96
96
|
var chunkVUTNNRDW_cjs = require('./chunk-VUTNNRDW.cjs');
|
|
97
97
|
var chunkWUKIJJG2_cjs = require('./chunk-WUKIJJG2.cjs');
|
|
98
98
|
var chunk5LI4CVJB_cjs = require('./chunk-5LI4CVJB.cjs');
|
|
@@ -102,16 +102,16 @@ var chunkWK4VXPPZ_cjs = require('./chunk-WK4VXPPZ.cjs');
|
|
|
102
102
|
var chunk43FVH6LJ_cjs = require('./chunk-43FVH6LJ.cjs');
|
|
103
103
|
var chunkYFS2LMG4_cjs = require('./chunk-YFS2LMG4.cjs');
|
|
104
104
|
var chunk3OARKXWT_cjs = require('./chunk-3OARKXWT.cjs');
|
|
105
|
-
var
|
|
106
|
-
require('./chunk-
|
|
107
|
-
var
|
|
108
|
-
var
|
|
105
|
+
var chunkTBFA6QPH_cjs = require('./chunk-TBFA6QPH.cjs');
|
|
106
|
+
require('./chunk-KP2DIIKO.cjs');
|
|
107
|
+
var chunkVU23J7US_cjs = require('./chunk-VU23J7US.cjs');
|
|
108
|
+
var chunkP2JYDWZT_cjs = require('./chunk-P2JYDWZT.cjs');
|
|
109
109
|
var chunkA3XA6UNM_cjs = require('./chunk-A3XA6UNM.cjs');
|
|
110
110
|
var chunk4BAHF762_cjs = require('./chunk-4BAHF762.cjs');
|
|
111
111
|
var chunkJOXZ4ZIF_cjs = require('./chunk-JOXZ4ZIF.cjs');
|
|
112
112
|
var chunkGA4LZZKQ_cjs = require('./chunk-GA4LZZKQ.cjs');
|
|
113
113
|
var chunkGGIWDFER_cjs = require('./chunk-GGIWDFER.cjs');
|
|
114
|
-
var
|
|
114
|
+
var chunkPTVUYLJO_cjs = require('./chunk-PTVUYLJO.cjs');
|
|
115
115
|
var chunkBPWUWUZ3_cjs = require('./chunk-BPWUWUZ3.cjs');
|
|
116
116
|
var chunkXZQ6Z4T6_cjs = require('./chunk-XZQ6Z4T6.cjs');
|
|
117
117
|
|
|
@@ -151,11 +151,11 @@ Object.defineProperty(exports, "unwrapEditPlanOutput", {
|
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "NodaroClient", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk7IZ4ZMI5_cjs.NodaroClient; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "createClient", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk7IZ4ZMI5_cjs.createClient; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "WorkflowsResource", {
|
|
161
161
|
enumerable: true,
|
|
@@ -223,15 +223,15 @@ Object.defineProperty(exports, "ShotsResource", {
|
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "StudioProductionsResource", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkYLXCXVYF_cjs.StudioProductionsResource; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "StudioResource", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkYLXCXVYF_cjs.StudioResource; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "isStudioGenerateEstimate", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkYLXCXVYF_cjs.isStudioGenerateEstimate; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "TemplatesResource", {
|
|
237
237
|
enumerable: true,
|
|
@@ -279,7 +279,7 @@ Object.defineProperty(exports, "paletteDirectionId", {
|
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "PickerCatalogsResource", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkEP4J3TLQ_cjs.PickerCatalogsResource; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "PipelinesResource", {
|
|
285
285
|
enumerable: true,
|
|
@@ -319,7 +319,7 @@ Object.defineProperty(exports, "SURROUND_DIRECTIONS", {
|
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "MediaResource", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkJK3YVG6A_cjs.MediaResource; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "ModelsResource", {
|
|
325
325
|
enumerable: true,
|
|
@@ -343,7 +343,7 @@ Object.defineProperty(exports, "PresetsResource", {
|
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "NodesResource", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkDR5WM36L_cjs.NodesResource; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "OAuthResource", {
|
|
349
349
|
enumerable: true,
|
|
@@ -355,23 +355,23 @@ Object.defineProperty(exports, "DeveloperAppsResource", {
|
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "CLIP_PACK_MAX_TARGET_SEC", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkGRATHB3C_cjs.CLIP_PACK_MAX_TARGET_SEC; }
|
|
359
359
|
});
|
|
360
360
|
Object.defineProperty(exports, "CLIP_PACK_MIN_TARGET_SEC", {
|
|
361
361
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkGRATHB3C_cjs.CLIP_PACK_MIN_TARGET_SEC; }
|
|
363
363
|
});
|
|
364
364
|
Object.defineProperty(exports, "EditResource", {
|
|
365
365
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkGRATHB3C_cjs.EditResource; }
|
|
367
367
|
});
|
|
368
368
|
Object.defineProperty(exports, "TRAILER_FORMATS", {
|
|
369
369
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkGRATHB3C_cjs.TRAILER_FORMATS; }
|
|
371
371
|
});
|
|
372
372
|
Object.defineProperty(exports, "USE_CASE_NODE_TYPES", {
|
|
373
373
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkGRATHB3C_cjs.USE_CASE_NODE_TYPES; }
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "ExecutionsResource", {
|
|
377
377
|
enumerable: true,
|
|
@@ -423,131 +423,131 @@ Object.defineProperty(exports, "ContentRightsResource", {
|
|
|
423
423
|
});
|
|
424
424
|
Object.defineProperty(exports, "CopilotResource", {
|
|
425
425
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkTBFA6QPH_cjs.CopilotResource; }
|
|
427
427
|
});
|
|
428
428
|
Object.defineProperty(exports, "CallbackAuth", {
|
|
429
429
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkVU23J7US_cjs.CallbackAuth; }
|
|
431
431
|
});
|
|
432
432
|
Object.defineProperty(exports, "NodaroClientCore", {
|
|
433
433
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkVU23J7US_cjs.NodaroClientCore; }
|
|
435
435
|
});
|
|
436
436
|
Object.defineProperty(exports, "StaticTokenAuth", {
|
|
437
437
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkVU23J7US_cjs.StaticTokenAuth; }
|
|
439
439
|
});
|
|
440
440
|
Object.defineProperty(exports, "supabaseAuth", {
|
|
441
441
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunkVU23J7US_cjs.supabaseAuth; }
|
|
443
443
|
});
|
|
444
444
|
Object.defineProperty(exports, "AlreadyRunningError", {
|
|
445
445
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunkP2JYDWZT_cjs.AlreadyRunningError; }
|
|
447
447
|
});
|
|
448
448
|
Object.defineProperty(exports, "AppRunVersionChangedError", {
|
|
449
449
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunkP2JYDWZT_cjs.AppRunVersionChangedError; }
|
|
451
451
|
});
|
|
452
452
|
Object.defineProperty(exports, "CREDIT_CAP_CODES", {
|
|
453
453
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunkP2JYDWZT_cjs.CREDIT_CAP_CODES; }
|
|
455
455
|
});
|
|
456
456
|
Object.defineProperty(exports, "ContinuationPreviewPendingError", {
|
|
457
457
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
458
|
+
get: function () { return chunkP2JYDWZT_cjs.ContinuationPreviewPendingError; }
|
|
459
459
|
});
|
|
460
460
|
Object.defineProperty(exports, "ContinuationRefusedError", {
|
|
461
461
|
enumerable: true,
|
|
462
|
-
get: function () { return
|
|
462
|
+
get: function () { return chunkP2JYDWZT_cjs.ContinuationRefusedError; }
|
|
463
463
|
});
|
|
464
464
|
Object.defineProperty(exports, "CreditCapExceededError", {
|
|
465
465
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunkP2JYDWZT_cjs.CreditCapExceededError; }
|
|
467
467
|
});
|
|
468
468
|
Object.defineProperty(exports, "ForbiddenError", {
|
|
469
469
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
470
|
+
get: function () { return chunkP2JYDWZT_cjs.ForbiddenError; }
|
|
471
471
|
});
|
|
472
472
|
Object.defineProperty(exports, "IMPORT_REFUSAL_CODES", {
|
|
473
473
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
474
|
+
get: function () { return chunkP2JYDWZT_cjs.IMPORT_REFUSAL_CODES; }
|
|
475
475
|
});
|
|
476
476
|
Object.defineProperty(exports, "ImportRefusedError", {
|
|
477
477
|
enumerable: true,
|
|
478
|
-
get: function () { return
|
|
478
|
+
get: function () { return chunkP2JYDWZT_cjs.ImportRefusedError; }
|
|
479
479
|
});
|
|
480
480
|
Object.defineProperty(exports, "InsufficientCreditsError", {
|
|
481
481
|
enumerable: true,
|
|
482
|
-
get: function () { return
|
|
482
|
+
get: function () { return chunkP2JYDWZT_cjs.InsufficientCreditsError; }
|
|
483
483
|
});
|
|
484
484
|
Object.defineProperty(exports, "JobAbortedError", {
|
|
485
485
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
486
|
+
get: function () { return chunkP2JYDWZT_cjs.JobAbortedError; }
|
|
487
487
|
});
|
|
488
488
|
Object.defineProperty(exports, "JobBlockedError", {
|
|
489
489
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
490
|
+
get: function () { return chunkP2JYDWZT_cjs.JobBlockedError; }
|
|
491
491
|
});
|
|
492
492
|
Object.defineProperty(exports, "JobFailedError", {
|
|
493
493
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
494
|
+
get: function () { return chunkP2JYDWZT_cjs.JobFailedError; }
|
|
495
495
|
});
|
|
496
496
|
Object.defineProperty(exports, "JobHeldError", {
|
|
497
497
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
498
|
+
get: function () { return chunkP2JYDWZT_cjs.JobHeldError; }
|
|
499
499
|
});
|
|
500
500
|
Object.defineProperty(exports, "JobTimeoutError", {
|
|
501
501
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunkP2JYDWZT_cjs.JobTimeoutError; }
|
|
503
503
|
});
|
|
504
504
|
Object.defineProperty(exports, "MODEL_UNAVAILABLE_CODES", {
|
|
505
505
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunkP2JYDWZT_cjs.MODEL_UNAVAILABLE_CODES; }
|
|
507
507
|
});
|
|
508
508
|
Object.defineProperty(exports, "ModelUnavailableError", {
|
|
509
509
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunkP2JYDWZT_cjs.ModelUnavailableError; }
|
|
511
511
|
});
|
|
512
512
|
Object.defineProperty(exports, "NodaroError", {
|
|
513
513
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunkP2JYDWZT_cjs.NodaroError; }
|
|
515
515
|
});
|
|
516
516
|
Object.defineProperty(exports, "NotFoundError", {
|
|
517
517
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
518
|
+
get: function () { return chunkP2JYDWZT_cjs.NotFoundError; }
|
|
519
519
|
});
|
|
520
520
|
Object.defineProperty(exports, "RateLimitedError", {
|
|
521
521
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
522
|
+
get: function () { return chunkP2JYDWZT_cjs.RateLimitedError; }
|
|
523
523
|
});
|
|
524
524
|
Object.defineProperty(exports, "StorageExceededError", {
|
|
525
525
|
enumerable: true,
|
|
526
|
-
get: function () { return
|
|
526
|
+
get: function () { return chunkP2JYDWZT_cjs.StorageExceededError; }
|
|
527
527
|
});
|
|
528
528
|
Object.defineProperty(exports, "StudioOpError", {
|
|
529
529
|
enumerable: true,
|
|
530
|
-
get: function () { return
|
|
530
|
+
get: function () { return chunkP2JYDWZT_cjs.StudioOpError; }
|
|
531
531
|
});
|
|
532
532
|
Object.defineProperty(exports, "StudioPreviewAppliedError", {
|
|
533
533
|
enumerable: true,
|
|
534
|
-
get: function () { return
|
|
534
|
+
get: function () { return chunkP2JYDWZT_cjs.StudioPreviewAppliedError; }
|
|
535
535
|
});
|
|
536
536
|
Object.defineProperty(exports, "StudioPreviewUnavailable", {
|
|
537
537
|
enumerable: true,
|
|
538
|
-
get: function () { return
|
|
538
|
+
get: function () { return chunkP2JYDWZT_cjs.StudioPreviewUnavailable; }
|
|
539
539
|
});
|
|
540
540
|
Object.defineProperty(exports, "UnauthorizedError", {
|
|
541
541
|
enumerable: true,
|
|
542
|
-
get: function () { return
|
|
542
|
+
get: function () { return chunkP2JYDWZT_cjs.UnauthorizedError; }
|
|
543
543
|
});
|
|
544
544
|
Object.defineProperty(exports, "WorkflowConflictError", {
|
|
545
545
|
enumerable: true,
|
|
546
|
-
get: function () { return
|
|
546
|
+
get: function () { return chunkP2JYDWZT_cjs.WorkflowConflictError; }
|
|
547
547
|
});
|
|
548
548
|
Object.defineProperty(exports, "throwFromResponse", {
|
|
549
549
|
enumerable: true,
|
|
550
|
-
get: function () { return
|
|
550
|
+
get: function () { return chunkP2JYDWZT_cjs.throwFromResponse; }
|
|
551
551
|
});
|
|
552
552
|
Object.defineProperty(exports, "CREATURE_ASPECT_DEFAULTS", {
|
|
553
553
|
enumerable: true,
|
|
@@ -587,7 +587,7 @@ Object.defineProperty(exports, "BillingResource", {
|
|
|
587
587
|
});
|
|
588
588
|
Object.defineProperty(exports, "CastSwapResource", {
|
|
589
589
|
enumerable: true,
|
|
590
|
-
get: function () { return
|
|
590
|
+
get: function () { return chunkPTVUYLJO_cjs.CastSwapResource; }
|
|
591
591
|
});
|
|
592
592
|
Object.defineProperty(exports, "CatalogsResource", {
|
|
593
593
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ import './chunk-M6Y5TOYE.js';
|
|
|
54
54
|
import './chunk-KARJ7P7Y.js';
|
|
55
55
|
import './chunk-SUCHGNYT.js';
|
|
56
56
|
import './chunk-SLPD47SR.js';
|
|
57
|
-
export { NodaroClient, createClient } from './chunk-
|
|
57
|
+
export { NodaroClient, createClient } from './chunk-POUMH7QE.js';
|
|
58
58
|
export { WorkflowsResource } from './chunk-33HT46A3.js';
|
|
59
59
|
export { WorkspacesResource } from './chunk-Z5GLY4R3.js';
|
|
60
60
|
export { TrendRadarResource } from './chunk-TLTPIS2A.js';
|
|
@@ -70,27 +70,27 @@ export { SavedPostsResource } from './chunk-NCCBS6GU.js';
|
|
|
70
70
|
export { SCENE3D_DELIVERY_ASSET_USAGE, Scene3DResource } from './chunk-NNHWH7ER.js';
|
|
71
71
|
export { SessionsResource } from './chunk-WS4ZQ4AA.js';
|
|
72
72
|
export { ShotsResource } from './chunk-WVFAQBS7.js';
|
|
73
|
-
export { StudioProductionsResource, StudioResource, isStudioGenerateEstimate } from './chunk-
|
|
73
|
+
export { StudioProductionsResource, StudioResource, isStudioGenerateEstimate } from './chunk-A5UGBCAW.js';
|
|
74
74
|
export { TemplatesResource } from './chunk-M7VSFZMV.js';
|
|
75
75
|
export { TrashResource } from './chunk-2SQ7V6EX.js';
|
|
76
76
|
export { OBJECT_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS, OBJECT_ASSET_TYPES, OBJECT_ATTACH_COLUMNS, ObjectsResource } from './chunk-GIQDM2MH.js';
|
|
77
77
|
export { OrganizationsResource } from './chunk-ALSLZG3U.js';
|
|
78
78
|
export { PALETTE_DIRECTION_PREFIX, PalettesResource, paletteDirectionId } from './chunk-WEQWU2IC.js';
|
|
79
|
-
export { PickerCatalogsResource } from './chunk-
|
|
79
|
+
export { PickerCatalogsResource } from './chunk-QAVLYMGM.js';
|
|
80
80
|
export { PipelinesResource } from './chunk-J2DBYYXC.js';
|
|
81
81
|
export { ProjectsResource } from './chunk-H7VQTG4M.js';
|
|
82
82
|
export { PromptHelperResource } from './chunk-OIPPTBW4.js';
|
|
83
83
|
export { RecastResource } from './chunk-AJVSMNPZ.js';
|
|
84
84
|
export { LlmResource } from './chunk-E37CVHWW.js';
|
|
85
85
|
export { LOCATION_ASSET_TYPES, LOCATION_ATTACH_COLUMNS, LocationsResource, SURROUND_DIRECTIONS } from './chunk-XZPSJG2X.js';
|
|
86
|
-
export { MediaResource } from './chunk-
|
|
86
|
+
export { MediaResource } from './chunk-72ZJ72WF.js';
|
|
87
87
|
export { ModelsResource } from './chunk-Y6V6CBY5.js';
|
|
88
88
|
export { MOODBOARD_DIRECTION_PREFIX, MoodboardsResource, moodboardDirectionId } from './chunk-YVU2M7MI.js';
|
|
89
89
|
export { PresetsResource } from './chunk-AEUPH7EE.js';
|
|
90
|
-
export { NodesResource } from './chunk-
|
|
90
|
+
export { NodesResource } from './chunk-L3RTC4FL.js';
|
|
91
91
|
export { OAuthResource } from './chunk-Z7LGWNI7.js';
|
|
92
92
|
export { DeveloperAppsResource } from './chunk-65E3JBFZ.js';
|
|
93
|
-
export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from './chunk-
|
|
93
|
+
export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from './chunk-T23YD5BR.js';
|
|
94
94
|
export { ExecutionsResource, OUTPUT_BEARING_NODE_STATUSES, nodeStateMayCarryOutput } from './chunk-22XXTB2R.js';
|
|
95
95
|
export { GalleryResource } from './chunk-JDEZHITT.js';
|
|
96
96
|
export { JobsResource } from './chunk-A42R7UT7.js';
|
|
@@ -100,16 +100,16 @@ export { CollectionsResource } from './chunk-4WRDR4GN.js';
|
|
|
100
100
|
export { CommunityResource } from './chunk-SFB4YLCS.js';
|
|
101
101
|
export { CompetitorsResource } from './chunk-BU5A6K4C.js';
|
|
102
102
|
export { ContentRightsResource } from './chunk-K2VWXAGK.js';
|
|
103
|
-
export { CopilotResource } from './chunk-
|
|
104
|
-
import './chunk-
|
|
105
|
-
export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from './chunk-
|
|
106
|
-
export { AlreadyRunningError, AppRunVersionChangedError, CREDIT_CAP_CODES, ContinuationPreviewPendingError, ContinuationRefusedError, CreditCapExceededError, ForbiddenError, IMPORT_REFUSAL_CODES, ImportRefusedError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, MODEL_UNAVAILABLE_CODES, ModelUnavailableError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictError, throwFromResponse } from './chunk-
|
|
103
|
+
export { CopilotResource } from './chunk-MQRPXZW5.js';
|
|
104
|
+
import './chunk-A75Q7UEU.js';
|
|
105
|
+
export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from './chunk-CAQ2BKEP.js';
|
|
106
|
+
export { AlreadyRunningError, AppRunVersionChangedError, CREDIT_CAP_CODES, ContinuationPreviewPendingError, ContinuationRefusedError, CreditCapExceededError, ForbiddenError, IMPORT_REFUSAL_CODES, ImportRefusedError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, MODEL_UNAVAILABLE_CODES, ModelUnavailableError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictError, throwFromResponse } from './chunk-WNXX3B2A.js';
|
|
107
107
|
export { OBJECT_ASPECT_DEFAULTS as CREATURE_ASPECT_DEFAULTS, OBJECT_ASPECT_OPTIONS as CREATURE_ASPECT_OPTIONS, CREATURE_ASSET_TYPES, CREATURE_ATTACH_COLUMNS, CreaturesResource } from './chunk-HUYI5G3D.js';
|
|
108
108
|
export { CreditsResource } from './chunk-7QK2NXJA.js';
|
|
109
109
|
export { AppsResource } from './chunk-7LODCIQK.js';
|
|
110
110
|
export { AudioResource } from './chunk-3QFTP5P5.js';
|
|
111
111
|
export { BillingResource } from './chunk-VQOUF4F5.js';
|
|
112
|
-
export { CastSwapResource } from './chunk-
|
|
112
|
+
export { CastSwapResource } from './chunk-ZAATTX5W.js';
|
|
113
113
|
export { CatalogsResource } from './chunk-KG4R454Z.js';
|
|
114
114
|
export { CHARACTER_ASPECT_DEFAULTS, CHARACTER_ASPECT_OPTIONS, CHARACTER_STYLES, CharactersResource, PEOPLE, PERSON_DIMENSION_LABELS, PERSON_DIMENSION_ORDER, buildPersonHints, buildPersonSeedPrompt } from './chunk-CBDUHYTR.js';
|
|
115
115
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodaro/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.63.0",
|
|
4
4
|
"description": "Typed REST client for the Nodaro API — workflows, jobs, executions, apps, characters, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -332,8 +332,8 @@
|
|
|
332
332
|
"test:watch": "vitest"
|
|
333
333
|
},
|
|
334
334
|
"dependencies": {
|
|
335
|
-
"@nodaro/shared": "^3.
|
|
336
|
-
"@nodaro/prompts": "^1.
|
|
335
|
+
"@nodaro/shared": "^3.53.0",
|
|
336
|
+
"@nodaro/prompts": "^1.49.0"
|
|
337
337
|
},
|
|
338
338
|
"peerDependencies": {
|
|
339
339
|
"@fingerprintjs/fingerprintjs": "^5.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/errors.ts"],"names":[],"mappings":";AAEO,IAAM,WAAA,GAAN,cAA0B,KAAA,CAAM;AAAA,EAUrC,WAAA,CACE,OAAA,EACgB,IAAA,EACA,MAAA,EAChB,OAAA,EACA;AACA,IAAA,KAAA,CAAM,OAAO,CAAA;AAJG,IAAA,IAAA,CAAA,IAAA,GAAA,IAAA;AACA,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAIhB,IAAA,IAAA,CAAK,IAAA,GAAO,aAAA;AACZ,IAAA,IAAI,OAAA,E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,CAAA;AAC7C","file":"chunk-5AS4LKEF.js","sourcesContent":["import type { StudioOpsResponse } from \"./resources/studio-productions.js\"\n\nexport class NodaroError extends Error {\n /**\n * Every other field of the server's error envelope (`{ error: { code,\n * message, … } }`), as it was sent: for example a trend refusal's `slot`, a\n * publish refusal's `reasons`, a validation error's `issues`. Empty when the\n * envelope had nothing else, or for an error the SDK made itself. A copy —\n * changing it changes nothing else.\n */\n public readonly details: Readonly<Record<string, unknown>> = {}\n\n constructor(\n message: string,\n public readonly code: string,\n public readonly status: number,\n details?: Readonly<Record<string, unknown>>,\n ) {\n super(message)\n this.name = \"NodaroError\"\n if (details) this.details = { ...details }\n }\n}\n\nexport class UnauthorizedError extends NodaroError {\n constructor(message = \"Authentication required\") {\n super(message, \"unauthorized\", 401)\n this.name = \"UnauthorizedError\"\n }\n}\n\nexport class ForbiddenError extends NodaroError {\n /** `code` defaults to `\"forbidden\"`; {@link ModelUnavailableError} passes its own. */\n constructor(message = \"Forbidden\", public readonly missingScope?: string, code = \"forbidden\") {\n super(message, code, 403)\n this.name = \"ForbiddenError\"\n }\n}\n\nexport type ModelUnavailableCode = \"model_not_available\" | \"model_disabled\"\n\n/**\n * The 403 codes {@link ModelUnavailableError} carries: a model this\n * deployment does not offer (`model_not_available` — outside its edition or\n * surface, or hidden by its operator) and a model an admin switched off on\n * the models page (`model_disabled`).\n */\nexport const MODEL_UNAVAILABLE_CODES: ReadonlySet<ModelUnavailableCode> = new Set<ModelUnavailableCode>([\n \"model_not_available\",\n \"model_disabled\",\n])\n\n/**\n * HTTP 403 refusing the MODEL, not the caller: this deployment does not offer\n * it, or an admin switched it off. Answered by the credit guard before any\n * credits are held (the LLM and pipeline lanes still answer a switched-off\n * model with a 402 for now).\n * Choosing another model is the remedy — retrying, topping up or a wider\n * scope changes nothing. A {@link ForbiddenError}, so existing catches keep\n * working; `code` is the server's own code and says which. The envelope\n * names no model: what was refused is the request's own `provider` (or, for\n * a fan-out, one of its `models`).\n */\nexport class ModelUnavailableError extends ForbiddenError {\n declare readonly code: ModelUnavailableCode\n\n constructor(code: ModelUnavailableCode, message = \"This model is not available\") {\n super(message, undefined, code)\n this.name = \"ModelUnavailableError\"\n }\n}\n\nexport type ImportRefusalCode =\n | \"import_source_disabled\"\n | \"rights_confirmation_required\"\n | \"rights_authorization_required\"\n | \"rights_confirmation_not_found\"\n | \"rights_confirmation_mismatch\"\n | \"rights_confirmation_stale\"\n | \"rights_confirmation_expired\"\n | \"rights_confirmation_used\"\n\n/**\n * The 403 codes {@link ImportRefusedError} carries: the link's site is\n * disabled by an administrator (`import_source_disabled`), or the content\n * rights confirmation is missing while the deployment requires one\n * (`rights_confirmation_required`; for an import through an API key or an AI\n * agent with no standing authorization, `rights_authorization_required`), does\n * not exist, is for another link or account, was made under an older\n * declaration, expired, or was used for an import already.\n */\nexport const IMPORT_REFUSAL_CODES: ReadonlySet<ImportRefusalCode> = new Set<ImportRefusalCode>([\n \"import_source_disabled\",\n \"rights_confirmation_required\",\n \"rights_authorization_required\",\n \"rights_confirmation_not_found\",\n \"rights_confirmation_mismatch\",\n \"rights_confirmation_stale\",\n \"rights_confirmation_expired\",\n \"rights_confirmation_used\",\n])\n\n/**\n * HTTP 403 refusing an IMPORT OF A LINK (`media.downloadVideo`,\n * `uploads.importUrl`, the audio imports): the content rights check or the\n * site's policy said no, before anything was fetched. A\n * {@link ForbiddenError}, so existing catches keep working; `code` is the\n * server's own code and says which. The remedy for a `rights_confirmation_*`\n * code is `contentRights.confirm({ url })` again and a new import with the\n * answered id; for `rights_authorization_required` it is the person giving\n * the standing authorization in their settings (`contentRights.authorize`, in\n * their own session); an `import_source_disabled` site has no remedy on the\n * caller's side, and the message names no site.\n */\nexport class ImportRefusedError extends ForbiddenError {\n declare readonly code: ImportRefusalCode\n\n constructor(code: ImportRefusalCode, message = \"This link can't be imported here.\") {\n super(message, undefined, code)\n this.name = \"ImportRefusedError\"\n }\n}\n\nexport class NotFoundError extends NodaroError {\n constructor(message = \"Not found\") {\n super(message, \"not_found\", 404)\n this.name = \"NotFoundError\"\n }\n}\n\nexport class RateLimitedError extends NodaroError {\n constructor(message = \"Rate limited\") {\n super(message, \"rate_limited\", 429)\n this.name = \"RateLimitedError\"\n }\n}\n\n/**\n * HTTP 402: the run costs more than the caller may spend. `code` is the\n * refusal's own code — `insufficient_credits` for the caller's own balance, or\n * another 402 code such as `free_video_limit`. A spending cap someone else set\n * (a workspace budget, a member cap, a per-user allowance) is the subclass\n * {@link CreditCapExceededError}, so `instanceof InsufficientCreditsError`\n * still catches every 402.\n */\nexport class InsufficientCreditsError extends NodaroError {\n constructor(\n message = \"Insufficient credits\",\n public readonly required?: number,\n public readonly available?: number,\n code = \"insufficient_credits\",\n ) {\n super(message, code, 402)\n this.name = \"InsufficientCreditsError\"\n }\n}\n\n/** The 402 codes of a spending cap set by someone other than the caller. */\nexport type CreditCapCode = \"budget_exceeded\" | \"member_cap_exceeded\" | \"user_allowance_exceeded\"\n\n/**\n * The 402 codes {@link CreditCapExceededError} carries: the workspace's budget\n * (`budget_exceeded`), the caller's cap in that workspace\n * (`member_cap_exceeded`), the deployment's per-user allowance\n * (`user_allowance_exceeded`).\n */\nexport const CREDIT_CAP_CODES: ReadonlySet<CreditCapCode> = new Set<CreditCapCode>([\n \"budget_exceeded\",\n \"member_cap_exceeded\",\n \"user_allowance_exceeded\",\n])\n\n/**\n * HTTP 402 from a spending cap, not from the caller's own balance: topping up\n * does not help — whoever set the cap (the workspace's owner, the deployment's\n * operator) has to raise it. An {@link InsufficientCreditsError}, so existing\n * catches keep working; `code` says which cap. `available`, when sent, is what\n * the cap has left.\n */\nexport class CreditCapExceededError extends InsufficientCreditsError {\n declare readonly code: CreditCapCode\n\n constructor(code: CreditCapCode, message = \"A credit cap cannot cover this run\", required?: number, available?: number) {\n super(message, required, available, code)\n this.name = \"CreditCapExceededError\"\n }\n}\n\n/**\n * HTTP 413: what was sent does not fit. `code` is always `storage_exceeded`;\n * `reason` is the platform's own code, when the answer carried one:\n * `storage_limit_exceeded` is a full storage, while `file_too_large` is a\n * single file over the limit, not a full storage (likewise\n * `payload_too_large`, `post_too_large`, `duration_exceeded`).\n */\nexport class StorageExceededError extends NodaroError {\n constructor(\n message = \"Storage exceeded\",\n public readonly limitBytes?: number,\n /** The platform's own code for this 413, e.g. `storage_limit_exceeded` or `file_too_large`. */\n public readonly reason?: string,\n ) {\n super(message, \"storage_exceeded\", 413)\n this.name = \"StorageExceededError\"\n }\n}\n\n/**\n * Optimistic-concurrency rejection (HTTP 409 `workflow_conflict`): the workflow\n * was written by another tab/device after the state carried in\n * `expectedUpdatedAt`/`expectedVersion` was read. `currentRecord` — when the\n * server includes it — is the full current workflow: merge your changes onto it\n * and retry with its fresh `updatedAt`, no follow-up GET needed.\n */\nexport class WorkflowConflictError extends NodaroError {\n constructor(\n message = \"Workflow was updated by another writer\",\n public readonly currentUpdatedAt?: string,\n public readonly currentVersion?: number,\n public readonly currentRecord?: Record<string, unknown>,\n /**\n * The wire code this conflict actually arrived with.\n *\n * `production_busy` is the studio production routes' own 409: the row\n * changed under a read-modify-write and the server exhausted its retries.\n * It is the same situation and the same remedy — re-read and apply again —\n * so it is the same ERROR, and a caller catching `WorkflowConflictError`\n * handles both. The code stays truthful because a caller that logs or\n * branches on it should see what the server said, not what the class is\n * usually called.\n */\n code: WorkflowConflictCode = \"workflow_conflict\",\n ) {\n super(message, code, 409)\n this.name = \"WorkflowConflictError\"\n }\n}\n\n/** The 409 codes that mean \"somebody else wrote first; re-read and retry\". */\nexport type WorkflowConflictCode = \"workflow_conflict\" | \"production_busy\"\n\n/**\n * A studio operation batch was refused, and the error names WHICH operation\n * (`opIndex`, zero-based) was wrong. Nothing in the batch was written: a batch\n * applies atomically or not at all, so fix that one operation and send the\n * whole batch again.\n *\n * Selected by SHAPE — any 4xx carrying a numeric `opIndex` — not by a list of\n * codes, so a new refusal reason (`op_invalid`, `op_target_missing`, whatever\n * the server adds next) reaches the caller as this error without an SDK\n * release. `code` is whatever the server sent.\n */\nexport class StudioOpError extends NodaroError {\n constructor(\n message: string,\n code: string,\n status: number,\n /** Zero-based index into the `ops` array that was sent. */\n public readonly opIndex: number,\n ) {\n super(message, code, status)\n this.name = \"StudioOpError\"\n }\n}\n\n/** The 409 codes whose answer names the job to turn to instead (a top-level `jobId`). */\nconst CONTINUATION_REFUSAL_CODES: ReadonlySet<string> = new Set([\n \"already_running\",\n \"continuation_superseded\",\n \"render_final_already_rendered\",\n])\n\n/**\n * A 409 that names the job to turn to instead: continuing a use-case run\n * (`client.edit.continueUseCase`) answers `already_running` (a continuation is\n * under way, or one that already completed — follow `jobId`),\n * `continuation_superseded` (a later continuation failed too — continue\n * `jobId` instead) or `render_final_already_rendered` (a Render final with this\n * very edit already completed — `jobId` holds the result). `code` and `status`\n * are what the server sent. Selected for exactly those three codes when the\n * answer carries a top-level `jobId`; every other 409 stays a plain\n * `NodaroError`.\n */\nexport class ContinuationRefusedError extends NodaroError {\n constructor(\n message: string,\n code: string,\n /** The job the refusal names. */\n public readonly jobId: string,\n ) {\n super(message, code, 409)\n this.name = \"ContinuationRefusedError\"\n }\n}\n\n/**\n * The one run that finishes a continuation held at a Preview review (the\n * `next` of {@link ContinuationPreviewPendingError}): pass these three fields\n * to `client.workflows.run`. It continues that execution, runs each held render\n * at Final and each held Tighten Episode continuing the run that made its\n * Preview, then every node after them.\n */\nexport interface HeldFinalRun {\n continueFromExecutionId: string\n /** The nodes it runs, in canvas order. */\n nodeIds: string[]\n /** For this run only: each held render at Final, each held use-case node's `useCaseContinue`. */\n inputOverrides: Record<string, Record<string, unknown>>\n}\n\n/**\n * HTTP 409 `continuation_preview_pending`: a continue-from-failed\n * (`client.workflows.run` with `continueMode: \"from-failed\"`) whose run's\n * newest later continuation completed by stopping at a Preview review, so\n * continuing again would stop there too. `executionId` is that continuation;\n * `renderNodeIds` the Apply EDL renders and `reviewNodeIds` the Tighten Episode\n * nodes holding it; `next` the run that finishes them — send it first\n * (`client.workflows.run(workflowId, error.next)`), then continue. Absent only\n * when the server could not name it. For a single held render, `next` is that\n * render's `client.workflows.renderFinal`.\n */\nexport class ContinuationPreviewPendingError extends NodaroError {\n constructor(\n message: string,\n public readonly executionId: string,\n public readonly renderNodeIds: readonly string[],\n public readonly reviewNodeIds: readonly string[],\n public readonly next?: HeldFinalRun,\n ) {\n super(message, \"continuation_preview_pending\", 409)\n this.name = \"ContinuationPreviewPendingError\"\n }\n}\n\nconst stringList = (v: unknown): string[] => (Array.isArray(v) ? v.filter((id): id is string => typeof id === \"string\") : [])\n\n/** A `next` as the server sends it, or undefined for anything else. */\nfunction heldFinalRunOf(v: unknown): HeldFinalRun | undefined {\n if (!v || typeof v !== \"object\") return undefined\n const r = v as Record<string, unknown>\n if (typeof r.continueFromExecutionId !== \"string\" || !Array.isArray(r.nodeIds)) return undefined\n if (!r.inputOverrides || typeof r.inputOverrides !== \"object\" || Array.isArray(r.inputOverrides)) return undefined\n return {\n continueFromExecutionId: r.continueFromExecutionId,\n nodeIds: stringList(r.nodeIds),\n inputOverrides: r.inputOverrides as Record<string, Record<string, unknown>>,\n }\n}\n\n/**\n * HTTP 409 `already_running` that names the execution under way (a top-level\n * `executionId`): the run you asked to start or continue is still running —\n * follow `executionId` (`client.executions.get`) instead of starting it again.\n * Sent by the workflow run route and by an app run's Retry\n * (`client.apps.resume`). An `already_running` that names a job instead stays\n * {@link ContinuationRefusedError}; one that names nothing, a plain\n * `NodaroError`.\n */\nexport class AlreadyRunningError extends NodaroError {\n constructor(\n message: string,\n /** The execution under way. */\n public readonly executionId: string,\n ) {\n super(message, \"already_running\", 409)\n this.name = \"AlreadyRunningError\"\n }\n}\n\n/**\n * HTTP 409 `app_run_version_changed`: a Retry of a failed app run\n * (`client.apps.resume`) refused because the app is on another version than\n * the one the run ran — continuing would mix them. `runVersion` is the run's\n * version, `appVersion` the one you are on (the `version` you sent, else the\n * app's latest). Start the run over (`client.apps.run`) to run `appVersion`,\n * or send `{ version: runVersion }` to continue on the run's own version.\n * Nothing was written or billed. Selected by code; the two numbers are\n * `undefined` when the answer does not carry them.\n */\nexport class AppRunVersionChangedError extends NodaroError {\n constructor(\n message: string,\n public readonly runVersion?: number,\n public readonly appVersion?: number,\n ) {\n super(message, \"app_run_version_changed\", 409)\n this.name = \"AppRunVersionChangedError\"\n }\n}\n\n/**\n * HTTP 422 `job_blocked`. A job policy registered by this deployment refused\n * the generation **before it ran** — no job was created, nothing was reserved\n * and nothing was charged. `message` is the policy's user-safe text: show it\n * as-is. Do not retry the identical request; whether the same input would be\n * judged differently is the deployment's policy's business.\n *\n * Only occurs on deployments that register a job policy. Selected by `code`,\n * not by status, the same way `workflow_conflict` narrows a 409 above — any\n * other 422 stays a plain `NodaroError`.\n */\nexport class JobBlockedError extends NodaroError {\n constructor(message = \"Blocked by this deployment's content policy\") {\n super(message, \"job_blocked\", 422)\n this.name = \"JobBlockedError\"\n }\n}\n\n/**\n * A job reached a terminal `failed`/`cancelled` status while being awaited by\n * `nodes.runAndWait` / `nodes.runMany`. Not an HTTP-level error (the polls\n * themselves succeeded), so `status` is 0 — distinguish it by type/`code`.\n * Carries the job's own `error_message` (as the message) and `jobId`.\n */\nexport class JobFailedError extends NodaroError {\n constructor(\n message: string,\n public readonly jobId: string,\n /** The terminal status that triggered the failure (`failed` | `cancelled`). */\n public readonly jobStatus: \"failed\" | \"cancelled\" = \"failed\",\n ) {\n super(message, \"job_failed\", 0)\n this.name = \"JobFailedError\"\n }\n}\n\n/**\n * `nodes.runAndWait` polled past its `maxMs` deadline without the job reaching\n * a terminal status. Time the job spent `queued` (waiting for a free slot)\n * does not count toward the deadline. Not an HTTP error — `status` is 0; catch\n * by type/`code`.\n */\nexport class JobTimeoutError extends NodaroError {\n constructor(\n message: string,\n public readonly jobId: string,\n /** The wall-clock deadline (ms) that was exceeded. */\n public readonly timeoutMs: number,\n ) {\n super(message, \"job_timeout\", 0)\n this.name = \"JobTimeoutError\"\n }\n}\n\n/**\n * The caller's `AbortSignal` fired while `nodes.runAndWait` was polling (or it\n * was already aborted on entry). Polling stops and this rejects. Not an HTTP\n * error — `status` is 0; catch by type/`code`.\n */\nexport class JobAbortedError extends NodaroError {\n constructor(message = \"Aborted\", public readonly jobId?: string) {\n super(message, \"job_aborted\", 0)\n this.name = \"JobAbortedError\"\n }\n}\n\n/**\n * A batch preview was asked for and this deployment cannot give one, so\n * NOTHING was sent: the batch is still unapplied and the production untouched.\n *\n * A preview is two requests because the route's body is parsed in strip mode —\n * a deployment that predates the preview silently DROPS the flag and APPLIES\n * the batch. So the SDK asks with an EMPTY batch first and sends the real one\n * only when that answer carries the `dryRun` marker. This is what it throws\n * when the answer does not: whatever the older deployment made of an empty\n * batch, the caller's batch never left.\n *\n * The remedy is a deployment that serves the preview — there is nothing to\n * retry here. To apply the batch instead, send it without the flag.\n *\n * A deployment that REFUSES the empty batch outright throws its own error\n * instead of this one, which is the right way round: the route's message says\n * more than \"unavailable\" does.\n *\n * Not an HTTP error: the request itself succeeded and answered the older shape.\n * `status` is 0; catch by type/`code`.\n */\nexport class StudioPreviewUnavailable extends NodaroError {\n constructor(\n message = \"This deployment does not preview operation batches; nothing was sent\",\n ) {\n super(message, \"studio_preview_unavailable\", 0)\n this.name = \"StudioPreviewUnavailable\"\n }\n}\n\n/**\n * A batch preview was asked for and the batch was APPLIED instead. The\n * production is written; this is the opposite of {@link\n * StudioPreviewUnavailable}, where nothing was sent.\n *\n * How it happens: the preview's proving ping and the batch are two requests,\n * and a fleet mid-rollout can serve them from different deployments. The ping\n * answers the marker, the batch reaches a deployment that predates the preview,\n * parses in strip mode, drops the flag and writes. The SDK cannot recall that\n * request — by the time the answer comes back the change has landed — so it\n * refuses to call the result a preview, which is the only thing still in its\n * gift. `receipts` and `warnings` are on both shapes, so an unchecked reply\n * would have shown a person what ALREADY happened under the heading of what\n * would.\n *\n * `applied` is what the route answered: the ordinary apply reply, whose\n * `production` and `version` are now the truth. Adopt them the way a plain\n * apply's caller does — do NOT re-send the batch, and do not present it for\n * approval.\n *\n * Not an HTTP error: the request succeeded, at the wrong thing. `status` is 0.\n */\nexport class StudioPreviewAppliedError extends NodaroError {\n constructor(\n /**\n * The apply reply the route sent back, as it sent it. An answer this\n * package does not recognise arrives here unchanged rather than being\n * dressed up: it is what the deployment said about a batch it took.\n *\n * `undefined` when the answer carried no body at all — a 204, an empty\n * envelope. The refusal still fires, because a non-preview answer is never\n * handed back as a preview, but there is nothing to report and the SDK will\n * not invent it: whether the batch was applied is unknown from here, and\n * the caller settles it by re-reading the production.\n */\n public readonly applied: StudioOpsResponse | undefined,\n message = applied\n ? \"Asked for a preview and this deployment APPLIED the batch; the change is written — see `applied`\"\n : \"Asked for a preview and this deployment answered with neither one nor a body to read; the batch may have been applied — re-read the production before deciding anything\",\n ) {\n super(message, \"studio_preview_applied\", 0)\n this.name = \"StudioPreviewAppliedError\"\n }\n}\n\n/**\n * The awaited job entered `pending_review`: a job policy registered by this\n * deployment held its output for a human reviewer. `pending_review` is\n * IN-FLIGHT, not terminal, so `nodes.runAndWait` / `nodes.runMany` end the\n * poll on the first tick they observe it rather than burning `maxMs` on a\n * status that no longer moves on its own.\n *\n * This does NOT cancel the job — the output exists, a human is reviewing it,\n * and the credit reservation stays `reserved` for the whole hold. Do not\n * re-run the request (a duplicate would be held too): re-fetch with\n * `jobs.get(jobId)` later, or surface \"awaiting review\" to your user and poll\n * `jobs.getStatus()` yourself. It resolves to `completed` (approved), `failed`\n * (rejected, with `error_hint.kind === \"policy-block\"`) or `cancelled`.\n *\n * Not an HTTP error — `status` is 0; catch by type/`code`.\n */\nexport class JobHeldError extends NodaroError {\n constructor(\n message: string,\n public readonly jobId: string,\n ) {\n super(message, \"job_held\", 0)\n this.name = \"JobHeldError\"\n }\n}\n\n/** The `{ error: { code, message, … } }` envelope every current route sends. */\ninterface ApiErrorEnvelope {\n code?: string\n message?: string\n missingScope?: string\n required?: number\n available?: number\n limitBytes?: number\n opIndex?: number\n [key: string]: unknown\n}\n\ninterface ApiErrorBody {\n /** The envelope — or, on an older route, a bare string (see {@link readErrorBody}). */\n error?: ApiErrorEnvelope | string\n /** A top-level message: an older route's, a bare validation answer's, or the server framework's own. */\n message?: unknown\n /** OAuth's human text (RFC 6749 §5.2), beside a bare-string `error`. */\n error_description?: unknown\n /** A bare validation answer's per-field issues (`{ message, issues }`). */\n issues?: unknown\n /** A refusal that names another job (see {@link ContinuationRefusedError}). */\n jobId?: unknown\n /** `continuation_preview_pending`: the held continuation, what holds it, and the run that finishes it. */\n executionId?: unknown\n renderNodeIds?: unknown\n reviewNodeIds?: unknown\n next?: unknown\n /** The credit guard's 402 sends its figures beside the envelope: what the run needs… */\n required?: unknown\n /** …and what the caller has (withheld on a deployment-paid instance). */\n balance?: unknown\n /** A per-user allowance's 402: what the allowance has left. */\n remaining?: unknown\n /** `app_run_version_changed`: the version the run ran, and the one the caller is on. */\n runVersion?: unknown\n appVersion?: unknown\n}\n\nconst finite = (v: unknown): number | undefined => (typeof v === \"number\" && Number.isFinite(v) ? v : undefined)\n\n/** A machine code as an older route writes it: lower snake_case, never a sentence or a reason phrase. */\nconst BARE_CODE = /^[a-z][a-z0-9_]*$/\n\nconst nonEmpty = (v: unknown): string | undefined => (typeof v === \"string\" && v.length > 0 ? v : undefined)\n\n/**\n * Where a body keeps its code and its human message. Most routes send the\n * envelope `{ error: { code, message } }`; three other shapes reach the SDK\n * too, and each is read for what it says rather than collapsed into\n * `internal_error` / \"Request failed\":\n *\n * - an older route's bare string, `{ error: \"<code>\", message?, … }` (character\n * training, a few profile and billing routes), and OAuth's\n * `{ error: \"<code>\", error_description }`. A snake_case string is the code;\n * a sentence (`\"Profile not found\"`) is the message.\n * - a bare validation answer, `{ message, issues: [...] }`: `validation_error`.\n * - the server framework's own answer, `{ statusCode, error: \"<reason phrase>\",\n * message }` (a route it does not have): the reason phrase is neither, the\n * message is kept — so \"no such route\" stays distinguishable from \"no such\n * resource\".\n *\n * At HTTP 500 and above only the CODE is read from outside the envelope. Text\n * there can be whatever the server failed with: the framework's own answer to\n * an uncaught throw is `{ statusCode: 500, error: \"Internal Server Error\",\n * message: <the raw error> }`, and the server's sanitizer rewrites only the\n * `internal_error` envelope. The envelope's own message is a route's chosen\n * sentence and is read at every status, as before.\n *\n * `message` is undefined when the body carries no human text it may show, so a\n * typed class keeps its own default (\"Not found\").\n */\nfunction readErrorBody(status: number, body: ApiErrorBody): { code: string | undefined; message: string | undefined; envelope: ApiErrorEnvelope } {\n const raw = body.error\n const envelope: ApiErrorEnvelope = raw && typeof raw === \"object\" ? raw : {}\n const bare = typeof raw === \"string\" ? raw : undefined\n const bareCode = bare !== undefined && BARE_CODE.test(bare) ? bare : undefined\n // Words with a space between them are human text: an older route's sentence,\n // or the framework's reason phrase — which always arrives with a real\n // `message`, read first. A single capitalised word (\"Unauthorized\") is a\n // reason phrase alone and says nothing the status does not.\n const bareSentence = bare !== undefined && bareCode === undefined && /\\s/.test(bare.trim()) ? bare : undefined\n const code =\n nonEmpty(envelope.code) ??\n bareCode ??\n (status === 400 && raw === undefined && Array.isArray(body.issues) ? \"validation_error\" : undefined)\n const outside = status >= 500 ? undefined : (nonEmpty(body.message) ?? nonEmpty(body.error_description) ?? bareSentence)\n const message = nonEmpty(envelope.message) ?? outside\n return { code, message, envelope }\n}\n\n/** The envelope's fields other than `code` and `message` (see {@link NodaroError.details}). */\nfunction envelopeDetails(envelope: ApiErrorEnvelope): Record<string, unknown> {\n const out: Record<string, unknown> = {}\n for (const [key, value] of Object.entries(envelope)) {\n if (key !== \"code\" && key !== \"message\") out[key] = value\n }\n return out\n}\n\nexport function throwFromResponse(status: number, body: ApiErrorBody): never {\n try {\n selectError(status, body)\n } catch (err) {\n // Every class carries the envelope's other fields, whichever was chosen.\n if (err instanceof NodaroError) {\n const raw = body && typeof body === \"object\" ? body.error : undefined\n if (raw && typeof raw === \"object\") Object.defineProperty(err, \"details\", { value: envelopeDetails(raw), enumerable: true })\n }\n throw err\n }\n}\n\nfunction selectError(status: number, body: ApiErrorBody): never {\n // A body that is not an object (an empty answer, `null`, a bare string) still\n // throws by its status.\n const parsed: ApiErrorBody = body && typeof body === \"object\" ? body : {}\n const read = readErrorBody(status, parsed)\n const envelope = read.envelope\n const code = read.code ?? \"internal_error\"\n // A typed class falls back to its own default; a generic error to the code\n // it carries, which says more than \"Request failed\" does.\n const message = read.message ?? (read.code ? read.code : \"Request failed\")\n if (status === 401) throw new UnauthorizedError(read.message)\n if (status === 409 && (code === \"workflow_conflict\" || code === \"production_busy\")) {\n throw new WorkflowConflictError(\n read.message,\n envelope.currentUpdatedAt as string | undefined,\n envelope.currentVersion as number | undefined,\n envelope.currentRecord as Record<string, unknown> | undefined,\n code,\n )\n }\n // By shape, not by code — see StudioOpError. Only the studio operations route\n // sends an op index, so this cannot capture anyone else's 400.\n if (status >= 400 && status < 500 && typeof envelope.opIndex === \"number\") {\n throw new StudioOpError(message, code, status, envelope.opIndex)\n }\n if (status === 409 && CONTINUATION_REFUSAL_CODES.has(code) && typeof parsed.jobId === \"string\") {\n throw new ContinuationRefusedError(message, code, parsed.jobId)\n }\n if (status === 409 && code === \"continuation_preview_pending\" && typeof parsed.executionId === \"string\") {\n throw new ContinuationPreviewPendingError(\n message,\n parsed.executionId,\n stringList(parsed.renderNodeIds),\n stringList(parsed.reviewNodeIds),\n heldFinalRunOf(parsed.next),\n )\n }\n if (status === 409 && code === \"already_running\" && typeof parsed.executionId === \"string\") {\n throw new AlreadyRunningError(message, parsed.executionId)\n }\n if (status === 409 && code === \"app_run_version_changed\") {\n throw new AppRunVersionChangedError(message, finite(parsed.runVersion), finite(parsed.appVersion))\n }\n if (status === 422 && code === \"job_blocked\") throw new JobBlockedError(read.message)\n // The model, not the caller — before the scope line, so its own code is\n // kept (a plain ForbiddenError says \"forbidden\" whatever the server sent).\n const modelCode = read.code as ModelUnavailableCode | undefined\n if (status === 403 && modelCode !== undefined && MODEL_UNAVAILABLE_CODES.has(modelCode)) {\n throw new ModelUnavailableError(modelCode, read.message)\n }\n // An import of a link refused by the content rights check or the site's policy: its own code is kept.\n const importCode = read.code as ImportRefusalCode | undefined\n if (status === 403 && importCode !== undefined && IMPORT_REFUSAL_CODES.has(importCode)) {\n throw new ImportRefusedError(importCode, read.message)\n }\n if (status === 403 && code === \"insufficient_scope\") {\n throw new ForbiddenError(read.message, envelope.missingScope)\n }\n if (status === 403) throw new ForbiddenError(read.message)\n // A 404 the framework answered itself (no route at that path) carries its\n // message at the top level, not under `error`; `readErrorBody` keeps it so\n // callers can tell \"no such route\" from \"no such resource\".\n if (status === 404) throw new NotFoundError(read.message)\n if (status === 429) throw new RateLimitedError(read.message)\n if (status === 402) {\n // The credit guard puts `required` / `balance` (an allowance: `remaining`)\n // beside the envelope; an envelope that carries them (`required` /\n // `available`) is read first.\n const required = finite(envelope.required) ?? finite(parsed.required)\n const available = finite(envelope.available) ?? finite(parsed.balance) ?? finite(parsed.remaining)\n const capCode = read.code as CreditCapCode | undefined\n if (capCode !== undefined && CREDIT_CAP_CODES.has(capCode)) {\n throw new CreditCapExceededError(capCode, read.message, required, available)\n }\n throw new InsufficientCreditsError(read.message, required, available, read.code ?? \"insufficient_credits\")\n }\n if (status === 413) throw new StorageExceededError(read.message, envelope.limitBytes, read.code)\n throw new NodaroError(message, code, status)\n}\n"]}
|