@nodaro/sdk 2.62.0 → 2.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/{chunk-SEETG3EM.js → chunk-3HL3IHVE.js} +21 -6
  2. package/dist/chunk-3HL3IHVE.js.map +1 -0
  3. package/dist/{chunk-NQXBWK2D.js → chunk-A5UGBCAW.js} +3 -3
  4. package/dist/{chunk-NQXBWK2D.js.map → chunk-A5UGBCAW.js.map} +1 -1
  5. package/dist/{chunk-DT3Q22NZ.js → chunk-A75Q7UEU.js} +3 -3
  6. package/dist/{chunk-DT3Q22NZ.js.map → chunk-A75Q7UEU.js.map} +1 -1
  7. package/dist/{chunk-WYX44JHE.cjs → chunk-AAUVNTWE.cjs} +10 -4
  8. package/dist/chunk-AAUVNTWE.cjs.map +1 -0
  9. package/dist/{chunk-SXV6OBKE.cjs → chunk-C7DOFDP2.cjs} +18 -18
  10. package/dist/{chunk-SXV6OBKE.cjs.map → chunk-C7DOFDP2.cjs.map} +1 -1
  11. package/dist/{chunk-DODUCQ6B.cjs → chunk-DR5WM36L.cjs} +22 -22
  12. package/dist/{chunk-DODUCQ6B.cjs.map → chunk-DR5WM36L.cjs.map} +1 -1
  13. package/dist/{chunk-X4QICOOM.js → chunk-E3ZMKMY7.js} +10 -4
  14. package/dist/chunk-E3ZMKMY7.js.map +1 -0
  15. package/dist/{chunk-7YHIFCJ4.cjs → chunk-EP4J3TLQ.cjs} +2 -2
  16. package/dist/chunk-EP4J3TLQ.cjs.map +1 -0
  17. package/dist/{chunk-JW5FH4TE.cjs → chunk-GRATHB3C.cjs} +9 -9
  18. package/dist/{chunk-JW5FH4TE.cjs.map → chunk-GRATHB3C.cjs.map} +1 -1
  19. package/dist/{chunk-DCMB5XOH.cjs → chunk-KBRMAEBT.cjs} +5 -5
  20. package/dist/{chunk-DCMB5XOH.cjs.map → chunk-KBRMAEBT.cjs.map} +1 -1
  21. package/dist/{chunk-KCQ3I6NW.cjs → chunk-KP2DIIKO.cjs} +5 -5
  22. package/dist/{chunk-KCQ3I6NW.cjs.map → chunk-KP2DIIKO.cjs.map} +1 -1
  23. package/dist/{chunk-2ENKGVRS.js → chunk-L3RTC4FL.js} +3 -3
  24. package/dist/{chunk-2ENKGVRS.js.map → chunk-L3RTC4FL.js.map} +1 -1
  25. package/dist/{chunk-DIPHH4OP.js → chunk-MQRPXZW5.js} +3 -3
  26. package/dist/{chunk-DIPHH4OP.js.map → chunk-MQRPXZW5.js.map} +1 -1
  27. package/dist/{chunk-BCZGMK5P.js → chunk-NODNRXHA.js} +4 -4
  28. package/dist/{chunk-BCZGMK5P.js.map → chunk-NODNRXHA.js.map} +1 -1
  29. package/dist/{chunk-7GC5LKCR.cjs → chunk-P2JYDWZT.cjs} +3 -2
  30. package/dist/chunk-P2JYDWZT.cjs.map +1 -0
  31. package/dist/{chunk-KFZOJBI5.js → chunk-QAVLYMGM.js} +2 -2
  32. package/dist/chunk-QAVLYMGM.js.map +1 -0
  33. package/dist/{chunk-VAEXSUUY.js → chunk-T23YD5BR.js} +3 -3
  34. package/dist/{chunk-VAEXSUUY.js.map → chunk-T23YD5BR.js.map} +1 -1
  35. package/dist/{chunk-GSKGWWBR.cjs → chunk-TBFA6QPH.cjs} +4 -4
  36. package/dist/{chunk-GSKGWWBR.cjs.map → chunk-TBFA6QPH.cjs.map} +1 -1
  37. package/dist/{chunk-ASPUFRHB.cjs → chunk-UIM5SLPP.cjs} +22 -7
  38. package/dist/chunk-UIM5SLPP.cjs.map +1 -0
  39. package/dist/{chunk-5AS4LKEF.js → chunk-WNXX3B2A.js} +3 -2
  40. package/dist/chunk-WNXX3B2A.js.map +1 -0
  41. package/dist/{chunk-IVM4WMMD.cjs → chunk-YLXCXVYF.cjs} +5 -5
  42. package/dist/{chunk-IVM4WMMD.cjs.map → chunk-YLXCXVYF.cjs.map} +1 -1
  43. package/dist/{chunk-UR7S4GGS.js → chunk-YT7HGYVO.js} +10 -10
  44. package/dist/{chunk-UR7S4GGS.js.map → chunk-YT7HGYVO.js.map} +1 -1
  45. package/dist/entries/cast-swap.cjs +2 -2
  46. package/dist/entries/cast-swap.d.cts +70 -17
  47. package/dist/entries/cast-swap.d.ts +70 -17
  48. package/dist/entries/cast-swap.js +1 -1
  49. package/dist/entries/client.cjs +16 -16
  50. package/dist/entries/client.js +11 -11
  51. package/dist/entries/copilot.cjs +4 -4
  52. package/dist/entries/copilot.js +3 -3
  53. package/dist/entries/core.cjs +6 -6
  54. package/dist/entries/core.js +2 -2
  55. package/dist/entries/edit.cjs +7 -7
  56. package/dist/entries/edit.js +2 -2
  57. package/dist/entries/errors.cjs +28 -28
  58. package/dist/entries/errors.d.cts +12 -8
  59. package/dist/entries/errors.d.ts +12 -8
  60. package/dist/entries/errors.js +1 -1
  61. package/dist/entries/media.cjs +4 -4
  62. package/dist/entries/media.d.cts +78 -6
  63. package/dist/entries/media.d.ts +78 -6
  64. package/dist/entries/media.js +3 -3
  65. package/dist/entries/nodes.cjs +3 -3
  66. package/dist/entries/nodes.js +2 -2
  67. package/dist/entries/picker-catalogs.cjs +2 -2
  68. package/dist/entries/picker-catalogs.d.cts +13 -0
  69. package/dist/entries/picker-catalogs.d.ts +13 -0
  70. package/dist/entries/picker-catalogs.js +1 -1
  71. package/dist/entries/studio.cjs +5 -5
  72. package/dist/entries/studio.js +2 -2
  73. package/dist/index.cjs +57 -57
  74. package/dist/index.d.cts +1 -1
  75. package/dist/index.d.ts +1 -1
  76. package/dist/index.js +11 -11
  77. package/package.json +3 -3
  78. package/dist/chunk-5AS4LKEF.js.map +0 -1
  79. package/dist/chunk-7GC5LKCR.cjs.map +0 -1
  80. package/dist/chunk-7YHIFCJ4.cjs.map +0 -1
  81. package/dist/chunk-ASPUFRHB.cjs.map +0 -1
  82. package/dist/chunk-KFZOJBI5.js.map +0 -1
  83. package/dist/chunk-SEETG3EM.js.map +0 -1
  84. package/dist/chunk-WYX44JHE.cjs.map +0 -1
  85. package/dist/chunk-X4QICOOM.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-W33CKW6Q.cjs');
4
- var chunkGSKGWWBR_cjs = require('../chunk-GSKGWWBR.cjs');
5
- require('../chunk-KCQ3I6NW.cjs');
6
- require('../chunk-7GC5LKCR.cjs');
4
+ var chunkTBFA6QPH_cjs = require('../chunk-TBFA6QPH.cjs');
5
+ require('../chunk-KP2DIIKO.cjs');
6
+ require('../chunk-P2JYDWZT.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "CopilotResource", {
11
11
  enumerable: true,
12
- get: function () { return chunkGSKGWWBR_cjs.CopilotResource; }
12
+ get: function () { return chunkTBFA6QPH_cjs.CopilotResource; }
13
13
  });
14
14
  //# sourceMappingURL=copilot.cjs.map
15
15
  //# sourceMappingURL=copilot.cjs.map
@@ -1,6 +1,6 @@
1
1
  import '../chunk-ELSOVJPF.js';
2
- export { CopilotResource } from '../chunk-DIPHH4OP.js';
3
- import '../chunk-DT3Q22NZ.js';
4
- import '../chunk-5AS4LKEF.js';
2
+ export { CopilotResource } from '../chunk-MQRPXZW5.js';
3
+ import '../chunk-A75Q7UEU.js';
4
+ import '../chunk-WNXX3B2A.js';
5
5
  //# sourceMappingURL=copilot.js.map
6
6
  //# sourceMappingURL=copilot.js.map
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-X7XP5WBP.cjs');
4
- var chunkDCMB5XOH_cjs = require('../chunk-DCMB5XOH.cjs');
5
- require('../chunk-7GC5LKCR.cjs');
4
+ var chunkKBRMAEBT_cjs = require('../chunk-KBRMAEBT.cjs');
5
+ require('../chunk-P2JYDWZT.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "CallbackAuth", {
10
10
  enumerable: true,
11
- get: function () { return chunkDCMB5XOH_cjs.CallbackAuth; }
11
+ get: function () { return chunkKBRMAEBT_cjs.CallbackAuth; }
12
12
  });
13
13
  Object.defineProperty(exports, "NodaroClientCore", {
14
14
  enumerable: true,
15
- get: function () { return chunkDCMB5XOH_cjs.NodaroClientCore; }
15
+ get: function () { return chunkKBRMAEBT_cjs.NodaroClientCore; }
16
16
  });
17
17
  Object.defineProperty(exports, "StaticTokenAuth", {
18
18
  enumerable: true,
19
- get: function () { return chunkDCMB5XOH_cjs.StaticTokenAuth; }
19
+ get: function () { return chunkKBRMAEBT_cjs.StaticTokenAuth; }
20
20
  });
21
21
  Object.defineProperty(exports, "supabaseAuth", {
22
22
  enumerable: true,
23
- get: function () { return chunkDCMB5XOH_cjs.supabaseAuth; }
23
+ get: function () { return chunkKBRMAEBT_cjs.supabaseAuth; }
24
24
  });
25
25
  //# sourceMappingURL=core.cjs.map
26
26
  //# sourceMappingURL=core.cjs.map
@@ -1,5 +1,5 @@
1
1
  import '../chunk-AUDHV3OE.js';
2
- export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-BCZGMK5P.js';
3
- import '../chunk-5AS4LKEF.js';
2
+ export { CallbackAuth, NodaroClientCore, StaticTokenAuth, supabaseAuth } from '../chunk-NODNRXHA.js';
3
+ import '../chunk-WNXX3B2A.js';
4
4
  //# sourceMappingURL=core.js.map
5
5
  //# sourceMappingURL=core.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk6T54F65Q_cjs = require('../chunk-6T54F65Q.cjs');
4
- var chunkJW5FH4TE_cjs = require('../chunk-JW5FH4TE.cjs');
5
- require('../chunk-7GC5LKCR.cjs');
4
+ var chunkGRATHB3C_cjs = require('../chunk-GRATHB3C.cjs');
5
+ require('../chunk-P2JYDWZT.cjs');
6
6
 
7
7
 
8
8
 
@@ -12,23 +12,23 @@ Object.defineProperty(exports, "unwrapEditPlanOutput", {
12
12
  });
13
13
  Object.defineProperty(exports, "CLIP_PACK_MAX_TARGET_SEC", {
14
14
  enumerable: true,
15
- get: function () { return chunkJW5FH4TE_cjs.CLIP_PACK_MAX_TARGET_SEC; }
15
+ get: function () { return chunkGRATHB3C_cjs.CLIP_PACK_MAX_TARGET_SEC; }
16
16
  });
17
17
  Object.defineProperty(exports, "CLIP_PACK_MIN_TARGET_SEC", {
18
18
  enumerable: true,
19
- get: function () { return chunkJW5FH4TE_cjs.CLIP_PACK_MIN_TARGET_SEC; }
19
+ get: function () { return chunkGRATHB3C_cjs.CLIP_PACK_MIN_TARGET_SEC; }
20
20
  });
21
21
  Object.defineProperty(exports, "EditResource", {
22
22
  enumerable: true,
23
- get: function () { return chunkJW5FH4TE_cjs.EditResource; }
23
+ get: function () { return chunkGRATHB3C_cjs.EditResource; }
24
24
  });
25
25
  Object.defineProperty(exports, "TRAILER_FORMATS", {
26
26
  enumerable: true,
27
- get: function () { return chunkJW5FH4TE_cjs.TRAILER_FORMATS; }
27
+ get: function () { return chunkGRATHB3C_cjs.TRAILER_FORMATS; }
28
28
  });
29
29
  Object.defineProperty(exports, "USE_CASE_NODE_TYPES", {
30
30
  enumerable: true,
31
- get: function () { return chunkJW5FH4TE_cjs.USE_CASE_NODE_TYPES; }
31
+ get: function () { return chunkGRATHB3C_cjs.USE_CASE_NODE_TYPES; }
32
32
  });
33
33
  //# sourceMappingURL=edit.cjs.map
34
34
  //# sourceMappingURL=edit.cjs.map
@@ -1,5 +1,5 @@
1
1
  export { unwrapEditPlanOutput } from '../chunk-UKB64254.js';
2
- export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from '../chunk-VAEXSUUY.js';
3
- import '../chunk-5AS4LKEF.js';
2
+ export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from '../chunk-T23YD5BR.js';
3
+ import '../chunk-WNXX3B2A.js';
4
4
  //# sourceMappingURL=edit.js.map
5
5
  //# sourceMappingURL=edit.js.map
@@ -1,117 +1,117 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-A2ZAFAWC.cjs');
4
- var chunk7GC5LKCR_cjs = require('../chunk-7GC5LKCR.cjs');
4
+ var chunkP2JYDWZT_cjs = require('../chunk-P2JYDWZT.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AlreadyRunningError", {
9
9
  enumerable: true,
10
- get: function () { return chunk7GC5LKCR_cjs.AlreadyRunningError; }
10
+ get: function () { return chunkP2JYDWZT_cjs.AlreadyRunningError; }
11
11
  });
12
12
  Object.defineProperty(exports, "AppRunVersionChangedError", {
13
13
  enumerable: true,
14
- get: function () { return chunk7GC5LKCR_cjs.AppRunVersionChangedError; }
14
+ get: function () { return chunkP2JYDWZT_cjs.AppRunVersionChangedError; }
15
15
  });
16
16
  Object.defineProperty(exports, "CREDIT_CAP_CODES", {
17
17
  enumerable: true,
18
- get: function () { return chunk7GC5LKCR_cjs.CREDIT_CAP_CODES; }
18
+ get: function () { return chunkP2JYDWZT_cjs.CREDIT_CAP_CODES; }
19
19
  });
20
20
  Object.defineProperty(exports, "ContinuationPreviewPendingError", {
21
21
  enumerable: true,
22
- get: function () { return chunk7GC5LKCR_cjs.ContinuationPreviewPendingError; }
22
+ get: function () { return chunkP2JYDWZT_cjs.ContinuationPreviewPendingError; }
23
23
  });
24
24
  Object.defineProperty(exports, "ContinuationRefusedError", {
25
25
  enumerable: true,
26
- get: function () { return chunk7GC5LKCR_cjs.ContinuationRefusedError; }
26
+ get: function () { return chunkP2JYDWZT_cjs.ContinuationRefusedError; }
27
27
  });
28
28
  Object.defineProperty(exports, "CreditCapExceededError", {
29
29
  enumerable: true,
30
- get: function () { return chunk7GC5LKCR_cjs.CreditCapExceededError; }
30
+ get: function () { return chunkP2JYDWZT_cjs.CreditCapExceededError; }
31
31
  });
32
32
  Object.defineProperty(exports, "ForbiddenError", {
33
33
  enumerable: true,
34
- get: function () { return chunk7GC5LKCR_cjs.ForbiddenError; }
34
+ get: function () { return chunkP2JYDWZT_cjs.ForbiddenError; }
35
35
  });
36
36
  Object.defineProperty(exports, "IMPORT_REFUSAL_CODES", {
37
37
  enumerable: true,
38
- get: function () { return chunk7GC5LKCR_cjs.IMPORT_REFUSAL_CODES; }
38
+ get: function () { return chunkP2JYDWZT_cjs.IMPORT_REFUSAL_CODES; }
39
39
  });
40
40
  Object.defineProperty(exports, "ImportRefusedError", {
41
41
  enumerable: true,
42
- get: function () { return chunk7GC5LKCR_cjs.ImportRefusedError; }
42
+ get: function () { return chunkP2JYDWZT_cjs.ImportRefusedError; }
43
43
  });
44
44
  Object.defineProperty(exports, "InsufficientCreditsError", {
45
45
  enumerable: true,
46
- get: function () { return chunk7GC5LKCR_cjs.InsufficientCreditsError; }
46
+ get: function () { return chunkP2JYDWZT_cjs.InsufficientCreditsError; }
47
47
  });
48
48
  Object.defineProperty(exports, "JobAbortedError", {
49
49
  enumerable: true,
50
- get: function () { return chunk7GC5LKCR_cjs.JobAbortedError; }
50
+ get: function () { return chunkP2JYDWZT_cjs.JobAbortedError; }
51
51
  });
52
52
  Object.defineProperty(exports, "JobBlockedError", {
53
53
  enumerable: true,
54
- get: function () { return chunk7GC5LKCR_cjs.JobBlockedError; }
54
+ get: function () { return chunkP2JYDWZT_cjs.JobBlockedError; }
55
55
  });
56
56
  Object.defineProperty(exports, "JobFailedError", {
57
57
  enumerable: true,
58
- get: function () { return chunk7GC5LKCR_cjs.JobFailedError; }
58
+ get: function () { return chunkP2JYDWZT_cjs.JobFailedError; }
59
59
  });
60
60
  Object.defineProperty(exports, "JobHeldError", {
61
61
  enumerable: true,
62
- get: function () { return chunk7GC5LKCR_cjs.JobHeldError; }
62
+ get: function () { return chunkP2JYDWZT_cjs.JobHeldError; }
63
63
  });
64
64
  Object.defineProperty(exports, "JobTimeoutError", {
65
65
  enumerable: true,
66
- get: function () { return chunk7GC5LKCR_cjs.JobTimeoutError; }
66
+ get: function () { return chunkP2JYDWZT_cjs.JobTimeoutError; }
67
67
  });
68
68
  Object.defineProperty(exports, "MODEL_UNAVAILABLE_CODES", {
69
69
  enumerable: true,
70
- get: function () { return chunk7GC5LKCR_cjs.MODEL_UNAVAILABLE_CODES; }
70
+ get: function () { return chunkP2JYDWZT_cjs.MODEL_UNAVAILABLE_CODES; }
71
71
  });
72
72
  Object.defineProperty(exports, "ModelUnavailableError", {
73
73
  enumerable: true,
74
- get: function () { return chunk7GC5LKCR_cjs.ModelUnavailableError; }
74
+ get: function () { return chunkP2JYDWZT_cjs.ModelUnavailableError; }
75
75
  });
76
76
  Object.defineProperty(exports, "NodaroError", {
77
77
  enumerable: true,
78
- get: function () { return chunk7GC5LKCR_cjs.NodaroError; }
78
+ get: function () { return chunkP2JYDWZT_cjs.NodaroError; }
79
79
  });
80
80
  Object.defineProperty(exports, "NotFoundError", {
81
81
  enumerable: true,
82
- get: function () { return chunk7GC5LKCR_cjs.NotFoundError; }
82
+ get: function () { return chunkP2JYDWZT_cjs.NotFoundError; }
83
83
  });
84
84
  Object.defineProperty(exports, "RateLimitedError", {
85
85
  enumerable: true,
86
- get: function () { return chunk7GC5LKCR_cjs.RateLimitedError; }
86
+ get: function () { return chunkP2JYDWZT_cjs.RateLimitedError; }
87
87
  });
88
88
  Object.defineProperty(exports, "StorageExceededError", {
89
89
  enumerable: true,
90
- get: function () { return chunk7GC5LKCR_cjs.StorageExceededError; }
90
+ get: function () { return chunkP2JYDWZT_cjs.StorageExceededError; }
91
91
  });
92
92
  Object.defineProperty(exports, "StudioOpError", {
93
93
  enumerable: true,
94
- get: function () { return chunk7GC5LKCR_cjs.StudioOpError; }
94
+ get: function () { return chunkP2JYDWZT_cjs.StudioOpError; }
95
95
  });
96
96
  Object.defineProperty(exports, "StudioPreviewAppliedError", {
97
97
  enumerable: true,
98
- get: function () { return chunk7GC5LKCR_cjs.StudioPreviewAppliedError; }
98
+ get: function () { return chunkP2JYDWZT_cjs.StudioPreviewAppliedError; }
99
99
  });
100
100
  Object.defineProperty(exports, "StudioPreviewUnavailable", {
101
101
  enumerable: true,
102
- get: function () { return chunk7GC5LKCR_cjs.StudioPreviewUnavailable; }
102
+ get: function () { return chunkP2JYDWZT_cjs.StudioPreviewUnavailable; }
103
103
  });
104
104
  Object.defineProperty(exports, "UnauthorizedError", {
105
105
  enumerable: true,
106
- get: function () { return chunk7GC5LKCR_cjs.UnauthorizedError; }
106
+ get: function () { return chunkP2JYDWZT_cjs.UnauthorizedError; }
107
107
  });
108
108
  Object.defineProperty(exports, "WorkflowConflictError", {
109
109
  enumerable: true,
110
- get: function () { return chunk7GC5LKCR_cjs.WorkflowConflictError; }
110
+ get: function () { return chunkP2JYDWZT_cjs.WorkflowConflictError; }
111
111
  });
112
112
  Object.defineProperty(exports, "throwFromResponse", {
113
113
  enumerable: true,
114
- get: function () { return chunk7GC5LKCR_cjs.throwFromResponse; }
114
+ get: function () { return chunkP2JYDWZT_cjs.throwFromResponse; }
115
115
  });
116
116
  //# sourceMappingURL=errors.cjs.map
117
117
  //# sourceMappingURL=errors.cjs.map
@@ -47,14 +47,16 @@ declare class ModelUnavailableError extends ForbiddenError {
47
47
  readonly code: ModelUnavailableCode;
48
48
  constructor(code: ModelUnavailableCode, message?: string);
49
49
  }
50
- type ImportRefusalCode = "import_source_disabled" | "rights_confirmation_required" | "rights_authorization_required" | "rights_confirmation_not_found" | "rights_confirmation_mismatch" | "rights_confirmation_stale" | "rights_confirmation_expired" | "rights_confirmation_used";
50
+ type ImportRefusalCode = "imports_blocked" | "import_source_disabled" | "rights_confirmation_required" | "rights_authorization_required" | "rights_confirmation_not_found" | "rights_confirmation_mismatch" | "rights_confirmation_stale" | "rights_confirmation_expired" | "rights_confirmation_used";
51
51
  /**
52
- * The 403 codes {@link ImportRefusedError} carries: the link's site is
53
- * disabled by an administrator (`import_source_disabled`), or the content
54
- * rights confirmation is missing while the deployment requires one
55
- * (`rights_confirmation_required`; for an import through an API key or an AI
56
- * agent with no standing authorization, `rights_authorization_required`), does
57
- * not exist, is for another link or account, was made under an older
52
+ * The 403 codes {@link ImportRefusedError} carries: imports of links are
53
+ * blocked on the account, or the account is closed, under the deployment's
54
+ * repeat-infringer policy (`imports_blocked`; the message says until when),
55
+ * the link's site is disabled by an administrator (`import_source_disabled`),
56
+ * or the content rights confirmation is missing while the deployment requires
57
+ * one (`rights_confirmation_required`; for an import through an API key or an
58
+ * AI agent with no standing authorization, `rights_authorization_required`),
59
+ * does not exist, is for another link or account, was made under an older
58
60
  * declaration, expired, or was used for an import already.
59
61
  */
60
62
  declare const IMPORT_REFUSAL_CODES: ReadonlySet<ImportRefusalCode>;
@@ -67,7 +69,9 @@ declare const IMPORT_REFUSAL_CODES: ReadonlySet<ImportRefusalCode>;
67
69
  * code is `contentRights.confirm({ url })` again and a new import with the
68
70
  * answered id; for `rights_authorization_required` it is the person giving
69
71
  * the standing authorization in their settings (`contentRights.authorize`, in
70
- * their own session); an `import_source_disabled` site has no remedy on the
72
+ * their own session); `imports_blocked` lasts until the date its message names
73
+ * or until an administrator lifts it, and the account's owner reads why in
74
+ * their settings; an `import_source_disabled` site has no remedy on the
71
75
  * caller's side, and the message names no site.
72
76
  */
73
77
  declare class ImportRefusedError extends ForbiddenError {
@@ -47,14 +47,16 @@ declare class ModelUnavailableError extends ForbiddenError {
47
47
  readonly code: ModelUnavailableCode;
48
48
  constructor(code: ModelUnavailableCode, message?: string);
49
49
  }
50
- type ImportRefusalCode = "import_source_disabled" | "rights_confirmation_required" | "rights_authorization_required" | "rights_confirmation_not_found" | "rights_confirmation_mismatch" | "rights_confirmation_stale" | "rights_confirmation_expired" | "rights_confirmation_used";
50
+ type ImportRefusalCode = "imports_blocked" | "import_source_disabled" | "rights_confirmation_required" | "rights_authorization_required" | "rights_confirmation_not_found" | "rights_confirmation_mismatch" | "rights_confirmation_stale" | "rights_confirmation_expired" | "rights_confirmation_used";
51
51
  /**
52
- * The 403 codes {@link ImportRefusedError} carries: the link's site is
53
- * disabled by an administrator (`import_source_disabled`), or the content
54
- * rights confirmation is missing while the deployment requires one
55
- * (`rights_confirmation_required`; for an import through an API key or an AI
56
- * agent with no standing authorization, `rights_authorization_required`), does
57
- * not exist, is for another link or account, was made under an older
52
+ * The 403 codes {@link ImportRefusedError} carries: imports of links are
53
+ * blocked on the account, or the account is closed, under the deployment's
54
+ * repeat-infringer policy (`imports_blocked`; the message says until when),
55
+ * the link's site is disabled by an administrator (`import_source_disabled`),
56
+ * or the content rights confirmation is missing while the deployment requires
57
+ * one (`rights_confirmation_required`; for an import through an API key or an
58
+ * AI agent with no standing authorization, `rights_authorization_required`),
59
+ * does not exist, is for another link or account, was made under an older
58
60
  * declaration, expired, or was used for an import already.
59
61
  */
60
62
  declare const IMPORT_REFUSAL_CODES: ReadonlySet<ImportRefusalCode>;
@@ -67,7 +69,9 @@ declare const IMPORT_REFUSAL_CODES: ReadonlySet<ImportRefusalCode>;
67
69
  * code is `contentRights.confirm({ url })` again and a new import with the
68
70
  * answered id; for `rights_authorization_required` it is the person giving
69
71
  * the standing authorization in their settings (`contentRights.authorize`, in
70
- * their own session); an `import_source_disabled` site has no remedy on the
72
+ * their own session); `imports_blocked` lasts until the date its message names
73
+ * or until an administrator lifts it, and the account's owner reads why in
74
+ * their settings; an `import_source_disabled` site has no remedy on the
71
75
  * caller's side, and the message names no site.
72
76
  */
73
77
  declare class ImportRefusedError extends ForbiddenError {
@@ -1,4 +1,4 @@
1
1
  import '../chunk-CJFIOVBA.js';
2
- 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-5AS4LKEF.js';
2
+ 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';
3
3
  //# sourceMappingURL=errors.js.map
4
4
  //# sourceMappingURL=errors.js.map
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-RHETJOUM.cjs');
4
- var chunkASPUFRHB_cjs = require('../chunk-ASPUFRHB.cjs');
5
- require('../chunk-KCQ3I6NW.cjs');
6
- require('../chunk-7GC5LKCR.cjs');
4
+ var chunkUIM5SLPP_cjs = require('../chunk-UIM5SLPP.cjs');
5
+ require('../chunk-KP2DIIKO.cjs');
6
+ require('../chunk-P2JYDWZT.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "MediaResource", {
11
11
  enumerable: true,
12
- get: function () { return chunkASPUFRHB_cjs.MediaResource; }
12
+ get: function () { return chunkUIM5SLPP_cjs.MediaResource; }
13
13
  });
14
14
  //# sourceMappingURL=media.cjs.map
15
15
  //# sourceMappingURL=media.cjs.map
@@ -358,13 +358,28 @@ declare class MediaResource {
358
358
  * short leftover is evened out with the parts before it. Video is cut on
359
359
  * whole frames with each part's sound matching its picture; audio parts are
360
360
  * sample-exact, in `audioFormat` (`mp3` default / `wav` / `aac`). With both
361
- * sources each is split on its own. At most 200 parts per input. Poll
362
- * `jobs.get(jobId)`; the parts are on the completed job's `output_data` —
363
- * see {@link SplitMediaOutput}.
361
+ * sources each is split on its own. At most 200 parts per input. With
362
+ * `mode: "shots"` a video is instead cut into one part per shot, at the cuts
363
+ * measured from the file (no part length; a video only, up to 30 minutes and
364
+ * 200 shots; each part keeps the video's own sound). Poll `jobs.get(jobId)`;
365
+ * the parts are on the completed job's `output_data` — see
366
+ * {@link SplitMediaOutput}.
364
367
  */
365
368
  splitMedia(input: SplitMediaInput): Promise<{
366
369
  jobId: string;
367
370
  }>;
371
+ /**
372
+ * Where every shot of a video starts and ends (`POST /v1/shot-cuts`),
373
+ * measured from the file: every decoded frame is scored and each hard cut
374
+ * starts a new shot (dissolves and fades are not cuts). Videos up to 30
375
+ * minutes. `frames: true` also saves each shot's exact first and last frame
376
+ * as PNG images (up to 1,000 shots; same price). Poll `jobs.get(jobId)`; the
377
+ * completed job's `output_data.json` is a {@link ShotCutsResult} — see
378
+ * {@link ShotCutsOutput}.
379
+ */
380
+ shotCuts(input: ShotCutsInput): Promise<{
381
+ jobId: string;
382
+ }>;
368
383
  /**
369
384
  * Turn one still image + one audio track into an MP4
370
385
  * (`POST /v1/still-to-video`) — locally rendered (FFmpeg), no AI model,
@@ -568,12 +583,16 @@ interface VideoMetadata {
568
583
  isLive?: boolean;
569
584
  [key: string]: unknown;
570
585
  }
571
- /** Body of {@link MediaResource.splitMedia} (`POST /v1/split-media`). At least one of `videoUrl` / `audioUrl`. */
572
- interface SplitMediaInput {
586
+ /** Body of {@link MediaResource.splitMedia} (`POST /v1/split-media`): parts of a set length, or one part per shot of a video. */
587
+ type SplitMediaInput = SplitMediaByDurationInput | SplitMediaByShotsInput;
588
+ /** {@link SplitMediaInput} cutting parts of at most `chunkDuration` seconds. At least one of `videoUrl` / `audioUrl`. */
589
+ interface SplitMediaByDurationInput {
573
590
  /** Video to split. */
574
591
  videoUrl?: string;
575
592
  /** Audio file to split (split on its own when a video is given too). */
576
593
  audioUrl?: string;
594
+ /** The default: parts of a set length. */
595
+ mode?: "duration";
577
596
  /** The longest a part may be, in seconds (at least 1). Every part is at most this long. */
578
597
  chunkDuration: number;
579
598
  /** The shortest a part may be, in seconds (0 or more, default 4). Must not exceed `chunkDuration` (400 otherwise). */
@@ -581,6 +600,19 @@ interface SplitMediaInput {
581
600
  /** Format of the audio parts. Default `mp3`. */
582
601
  audioFormat?: "mp3" | "wav" | "aac";
583
602
  }
603
+ /** {@link SplitMediaInput} cutting a video into one part per shot, at its measured cuts. */
604
+ interface SplitMediaByShotsInput {
605
+ /** The video to split (up to 30 minutes). A separate audio file is refused (each part keeps the video's own sound). */
606
+ videoUrl: string;
607
+ mode: "shots";
608
+ }
609
+ /** One part's shot in a shots-mode split: its place on the video, seconds to the millisecond. */
610
+ interface SplitMediaShot {
611
+ index: number;
612
+ startSec: number;
613
+ endSec: number;
614
+ durationSec: number;
615
+ }
584
616
  /** A completed split-media job's `output_data`. */
585
617
  interface SplitMediaOutput {
586
618
  /** The video parts, in order (when a video was split). */
@@ -593,6 +625,46 @@ interface SplitMediaOutput {
593
625
  partDurationsSec?: number[];
594
626
  /** The audio parts' lengths, only when BOTH a video and an audio file were split. */
595
627
  audioPartDurationsSec?: number[];
628
+ /** Shots mode: the number of shots (= parts). */
629
+ shotCount?: number;
630
+ /** Shots mode: each part's shot, in part order. */
631
+ shots?: SplitMediaShot[];
632
+ }
633
+ /** Body of {@link MediaResource.shotCuts} (`POST /v1/shot-cuts`). */
634
+ interface ShotCutsInput {
635
+ /** The video to measure: MP4, MOV, MKV or WebM, up to 30 minutes. */
636
+ videoUrl: string;
637
+ /** Also save each shot's first and last frame as images (up to 1,000 shots). Default false. */
638
+ frames?: boolean;
639
+ }
640
+ /** One shot of a {@link ShotCutsResult}: seconds from the video's first frame, to the millisecond. */
641
+ interface ShotCutsShot {
642
+ index: number;
643
+ startSec: number;
644
+ /** Where the next shot starts, or the video's end. */
645
+ endSec: number;
646
+ durationSec: number;
647
+ /** With `frames`: the shot's first decoded frame (PNG). */
648
+ firstFrameUrl?: string;
649
+ /** With `frames`: its last decoded frame — the one before the next cut, or the video's last. */
650
+ lastFrameUrl?: string;
651
+ }
652
+ /** What a Shot Cuts run measured (`output_data.json`). */
653
+ interface ShotCutsResult {
654
+ shotCount: number;
655
+ /** Where each new shot starts: ascending, never 0; `[]` for a single shot. */
656
+ cutsSec: number[];
657
+ /** The video's length. */
658
+ durationSec: number;
659
+ shots: ShotCutsShot[];
660
+ }
661
+ /** A completed shot-cuts job's `output_data`. */
662
+ interface ShotCutsOutput {
663
+ json: ShotCutsResult;
664
+ /** With `frames`: each shot's first frame, in shot order. */
665
+ firstFrames?: string[];
666
+ /** With `frames`: each shot's last frame, in shot order. */
667
+ lastFrames?: string[];
596
668
  }
597
669
  interface MediaProcessInput {
598
670
  sourceUrl: string;
@@ -624,4 +696,4 @@ interface MediaProcessResult {
624
696
  metadata: Record<string, unknown>;
625
697
  }
626
698
 
627
- export { type AddCaptionsInput, type CaptionEntry, type CaptionLookInput, type CaptionSegmentInput, type DownloadVideoProgress, type MediaDiscardResult, type MediaProcessInput, type MediaProcessResult, MediaResource, type OverlayPlacement, type SplitMediaInput, type SplitMediaOutput, type VideoMetadata };
699
+ export { type AddCaptionsInput, type CaptionEntry, type CaptionLookInput, type CaptionSegmentInput, type DownloadVideoProgress, type MediaDiscardResult, type MediaProcessInput, type MediaProcessResult, MediaResource, type OverlayPlacement, type ShotCutsInput, type ShotCutsOutput, type ShotCutsResult, type ShotCutsShot, type SplitMediaByDurationInput, type SplitMediaByShotsInput, type SplitMediaInput, type SplitMediaOutput, type SplitMediaShot, type VideoMetadata };
@@ -358,13 +358,28 @@ declare class MediaResource {
358
358
  * short leftover is evened out with the parts before it. Video is cut on
359
359
  * whole frames with each part's sound matching its picture; audio parts are
360
360
  * sample-exact, in `audioFormat` (`mp3` default / `wav` / `aac`). With both
361
- * sources each is split on its own. At most 200 parts per input. Poll
362
- * `jobs.get(jobId)`; the parts are on the completed job's `output_data` —
363
- * see {@link SplitMediaOutput}.
361
+ * sources each is split on its own. At most 200 parts per input. With
362
+ * `mode: "shots"` a video is instead cut into one part per shot, at the cuts
363
+ * measured from the file (no part length; a video only, up to 30 minutes and
364
+ * 200 shots; each part keeps the video's own sound). Poll `jobs.get(jobId)`;
365
+ * the parts are on the completed job's `output_data` — see
366
+ * {@link SplitMediaOutput}.
364
367
  */
365
368
  splitMedia(input: SplitMediaInput): Promise<{
366
369
  jobId: string;
367
370
  }>;
371
+ /**
372
+ * Where every shot of a video starts and ends (`POST /v1/shot-cuts`),
373
+ * measured from the file: every decoded frame is scored and each hard cut
374
+ * starts a new shot (dissolves and fades are not cuts). Videos up to 30
375
+ * minutes. `frames: true` also saves each shot's exact first and last frame
376
+ * as PNG images (up to 1,000 shots; same price). Poll `jobs.get(jobId)`; the
377
+ * completed job's `output_data.json` is a {@link ShotCutsResult} — see
378
+ * {@link ShotCutsOutput}.
379
+ */
380
+ shotCuts(input: ShotCutsInput): Promise<{
381
+ jobId: string;
382
+ }>;
368
383
  /**
369
384
  * Turn one still image + one audio track into an MP4
370
385
  * (`POST /v1/still-to-video`) — locally rendered (FFmpeg), no AI model,
@@ -568,12 +583,16 @@ interface VideoMetadata {
568
583
  isLive?: boolean;
569
584
  [key: string]: unknown;
570
585
  }
571
- /** Body of {@link MediaResource.splitMedia} (`POST /v1/split-media`). At least one of `videoUrl` / `audioUrl`. */
572
- interface SplitMediaInput {
586
+ /** Body of {@link MediaResource.splitMedia} (`POST /v1/split-media`): parts of a set length, or one part per shot of a video. */
587
+ type SplitMediaInput = SplitMediaByDurationInput | SplitMediaByShotsInput;
588
+ /** {@link SplitMediaInput} cutting parts of at most `chunkDuration` seconds. At least one of `videoUrl` / `audioUrl`. */
589
+ interface SplitMediaByDurationInput {
573
590
  /** Video to split. */
574
591
  videoUrl?: string;
575
592
  /** Audio file to split (split on its own when a video is given too). */
576
593
  audioUrl?: string;
594
+ /** The default: parts of a set length. */
595
+ mode?: "duration";
577
596
  /** The longest a part may be, in seconds (at least 1). Every part is at most this long. */
578
597
  chunkDuration: number;
579
598
  /** The shortest a part may be, in seconds (0 or more, default 4). Must not exceed `chunkDuration` (400 otherwise). */
@@ -581,6 +600,19 @@ interface SplitMediaInput {
581
600
  /** Format of the audio parts. Default `mp3`. */
582
601
  audioFormat?: "mp3" | "wav" | "aac";
583
602
  }
603
+ /** {@link SplitMediaInput} cutting a video into one part per shot, at its measured cuts. */
604
+ interface SplitMediaByShotsInput {
605
+ /** The video to split (up to 30 minutes). A separate audio file is refused (each part keeps the video's own sound). */
606
+ videoUrl: string;
607
+ mode: "shots";
608
+ }
609
+ /** One part's shot in a shots-mode split: its place on the video, seconds to the millisecond. */
610
+ interface SplitMediaShot {
611
+ index: number;
612
+ startSec: number;
613
+ endSec: number;
614
+ durationSec: number;
615
+ }
584
616
  /** A completed split-media job's `output_data`. */
585
617
  interface SplitMediaOutput {
586
618
  /** The video parts, in order (when a video was split). */
@@ -593,6 +625,46 @@ interface SplitMediaOutput {
593
625
  partDurationsSec?: number[];
594
626
  /** The audio parts' lengths, only when BOTH a video and an audio file were split. */
595
627
  audioPartDurationsSec?: number[];
628
+ /** Shots mode: the number of shots (= parts). */
629
+ shotCount?: number;
630
+ /** Shots mode: each part's shot, in part order. */
631
+ shots?: SplitMediaShot[];
632
+ }
633
+ /** Body of {@link MediaResource.shotCuts} (`POST /v1/shot-cuts`). */
634
+ interface ShotCutsInput {
635
+ /** The video to measure: MP4, MOV, MKV or WebM, up to 30 minutes. */
636
+ videoUrl: string;
637
+ /** Also save each shot's first and last frame as images (up to 1,000 shots). Default false. */
638
+ frames?: boolean;
639
+ }
640
+ /** One shot of a {@link ShotCutsResult}: seconds from the video's first frame, to the millisecond. */
641
+ interface ShotCutsShot {
642
+ index: number;
643
+ startSec: number;
644
+ /** Where the next shot starts, or the video's end. */
645
+ endSec: number;
646
+ durationSec: number;
647
+ /** With `frames`: the shot's first decoded frame (PNG). */
648
+ firstFrameUrl?: string;
649
+ /** With `frames`: its last decoded frame — the one before the next cut, or the video's last. */
650
+ lastFrameUrl?: string;
651
+ }
652
+ /** What a Shot Cuts run measured (`output_data.json`). */
653
+ interface ShotCutsResult {
654
+ shotCount: number;
655
+ /** Where each new shot starts: ascending, never 0; `[]` for a single shot. */
656
+ cutsSec: number[];
657
+ /** The video's length. */
658
+ durationSec: number;
659
+ shots: ShotCutsShot[];
660
+ }
661
+ /** A completed shot-cuts job's `output_data`. */
662
+ interface ShotCutsOutput {
663
+ json: ShotCutsResult;
664
+ /** With `frames`: each shot's first frame, in shot order. */
665
+ firstFrames?: string[];
666
+ /** With `frames`: each shot's last frame, in shot order. */
667
+ lastFrames?: string[];
596
668
  }
597
669
  interface MediaProcessInput {
598
670
  sourceUrl: string;
@@ -624,4 +696,4 @@ interface MediaProcessResult {
624
696
  metadata: Record<string, unknown>;
625
697
  }
626
698
 
627
- export { type AddCaptionsInput, type CaptionEntry, type CaptionLookInput, type CaptionSegmentInput, type DownloadVideoProgress, type MediaDiscardResult, type MediaProcessInput, type MediaProcessResult, MediaResource, type OverlayPlacement, type SplitMediaInput, type SplitMediaOutput, type VideoMetadata };
699
+ export { type AddCaptionsInput, type CaptionEntry, type CaptionLookInput, type CaptionSegmentInput, type DownloadVideoProgress, type MediaDiscardResult, type MediaProcessInput, type MediaProcessResult, MediaResource, type OverlayPlacement, type ShotCutsInput, type ShotCutsOutput, type ShotCutsResult, type ShotCutsShot, type SplitMediaByDurationInput, type SplitMediaByShotsInput, type SplitMediaInput, type SplitMediaOutput, type SplitMediaShot, type VideoMetadata };
@@ -1,6 +1,6 @@
1
1
  import '../chunk-ES2E65HT.js';
2
- export { MediaResource } from '../chunk-SEETG3EM.js';
3
- import '../chunk-DT3Q22NZ.js';
4
- import '../chunk-5AS4LKEF.js';
2
+ export { MediaResource } from '../chunk-3HL3IHVE.js';
3
+ import '../chunk-A75Q7UEU.js';
4
+ import '../chunk-WNXX3B2A.js';
5
5
  //# sourceMappingURL=media.js.map
6
6
  //# sourceMappingURL=media.js.map