@nodaro/sdk 2.75.0 → 2.76.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 (133) hide show
  1. package/dist/chunk-3WQ4UW3C.js +3 -0
  2. package/dist/chunk-3WQ4UW3C.js.map +1 -0
  3. package/dist/{chunk-IJAJTVEW.js → chunk-4Q3XZE5O.js} +17 -3
  4. package/dist/chunk-4Q3XZE5O.js.map +1 -0
  5. package/dist/{chunk-MQQA2E6J.cjs → chunk-6NIKAVI3.cjs} +2 -2
  6. package/dist/chunk-6NIKAVI3.cjs.map +1 -0
  7. package/dist/{chunk-YE6X5BQ2.js → chunk-6TR7QXSX.js} +3 -3
  8. package/dist/{chunk-YE6X5BQ2.js.map → chunk-6TR7QXSX.js.map} +1 -1
  9. package/dist/chunk-6YWXKDAY.cjs +190 -0
  10. package/dist/chunk-6YWXKDAY.cjs.map +1 -0
  11. package/dist/chunk-7NTMMIPC.cjs +4 -0
  12. package/dist/chunk-7NTMMIPC.cjs.map +1 -0
  13. package/dist/{chunk-CLBLAWH3.cjs → chunk-7PMOXQEO.cjs} +9 -9
  14. package/dist/{chunk-CLBLAWH3.cjs.map → chunk-7PMOXQEO.cjs.map} +1 -1
  15. package/dist/{chunk-BETFYVOR.cjs → chunk-7XKVBFKM.cjs} +5 -5
  16. package/dist/{chunk-BETFYVOR.cjs.map → chunk-7XKVBFKM.cjs.map} +1 -1
  17. package/dist/{chunk-HNUCPUIX.js → chunk-AOHDYZSZ.js} +3 -3
  18. package/dist/{chunk-HNUCPUIX.js.map → chunk-AOHDYZSZ.js.map} +1 -1
  19. package/dist/{chunk-TKSQCF2X.js → chunk-CSNYBGHP.js} +2 -2
  20. package/dist/chunk-CSNYBGHP.js.map +1 -0
  21. package/dist/{chunk-4AD3CBDK.cjs → chunk-E2NMFQNY.cjs} +18 -2
  22. package/dist/chunk-E2NMFQNY.cjs.map +1 -0
  23. package/dist/{chunk-O6YXG4BM.js → chunk-FOC4VPGK.js} +4 -4
  24. package/dist/{chunk-O6YXG4BM.js.map → chunk-FOC4VPGK.js.map} +1 -1
  25. package/dist/{chunk-DNONFO6S.js → chunk-GWL4O3J2.js} +3 -3
  26. package/dist/{chunk-DNONFO6S.js.map → chunk-GWL4O3J2.js.map} +1 -1
  27. package/dist/{chunk-GU3YOOCK.cjs → chunk-IO7NEEZZ.cjs} +20 -18
  28. package/dist/chunk-IO7NEEZZ.cjs.map +1 -0
  29. package/dist/chunk-K53JD2ZC.js +187 -0
  30. package/dist/chunk-K53JD2ZC.js.map +1 -0
  31. package/dist/{chunk-4GSUIOTT.cjs → chunk-KNBZFWVO.cjs} +22 -22
  32. package/dist/{chunk-4GSUIOTT.cjs.map → chunk-KNBZFWVO.cjs.map} +1 -1
  33. package/dist/{chunk-VGY3WBNY.js → chunk-OO4AKYUN.js} +3 -3
  34. package/dist/{chunk-VGY3WBNY.js.map → chunk-OO4AKYUN.js.map} +1 -1
  35. package/dist/{chunk-CCXY4ZJM.js → chunk-SA7VTT7C.js} +3 -3
  36. package/dist/{chunk-CCXY4ZJM.js.map → chunk-SA7VTT7C.js.map} +1 -1
  37. package/dist/{chunk-R427LDUV.cjs → chunk-SGVJUVFD.cjs} +5 -5
  38. package/dist/{chunk-R427LDUV.cjs.map → chunk-SGVJUVFD.cjs.map} +1 -1
  39. package/dist/{chunk-QSPTSAEI.cjs → chunk-SGVTZ2J5.cjs} +27 -24
  40. package/dist/chunk-SGVTZ2J5.cjs.map +1 -0
  41. package/dist/{chunk-YUY56PT7.js → chunk-TZFZDEWI.js} +20 -19
  42. package/dist/chunk-TZFZDEWI.js.map +1 -0
  43. package/dist/{chunk-UX5SMJEI.js → chunk-U2F6IHHY.js} +18 -15
  44. package/dist/chunk-U2F6IHHY.js.map +1 -0
  45. package/dist/{chunk-C5GFDCK2.cjs → chunk-UKITRPXF.cjs} +2 -2
  46. package/dist/{chunk-C5GFDCK2.cjs.map → chunk-UKITRPXF.cjs.map} +1 -1
  47. package/dist/{chunk-VTHHSO2K.cjs → chunk-UPWAODYT.cjs} +4 -4
  48. package/dist/{chunk-VTHHSO2K.cjs.map → chunk-UPWAODYT.cjs.map} +1 -1
  49. package/dist/{chunk-R5DTFY73.js → chunk-WY5QIOO4.js} +2 -2
  50. package/dist/{chunk-R5DTFY73.js.map → chunk-WY5QIOO4.js.map} +1 -1
  51. package/dist/{chunk-EJJIA765.cjs → chunk-XWPYN2VX.cjs} +5 -5
  52. package/dist/{chunk-EJJIA765.cjs.map → chunk-XWPYN2VX.cjs.map} +1 -1
  53. package/dist/{chunk-SZ67PDKE.js → chunk-YQ2Q4OM3.js} +3 -3
  54. package/dist/{chunk-SZ67PDKE.js.map → chunk-YQ2Q4OM3.js.map} +1 -1
  55. package/dist/{chunk-TQLOD7OL.cjs → chunk-ZJM5YBXY.cjs} +4 -4
  56. package/dist/{chunk-TQLOD7OL.cjs.map → chunk-ZJM5YBXY.cjs.map} +1 -1
  57. package/dist/entries/cast-swap.cjs +2 -2
  58. package/dist/entries/cast-swap.d.cts +2 -623
  59. package/dist/entries/cast-swap.d.ts +2 -623
  60. package/dist/entries/cast-swap.js +1 -1
  61. package/dist/entries/characters.d.cts +1 -1
  62. package/dist/entries/characters.d.ts +1 -1
  63. package/dist/entries/client.cjs +18 -18
  64. package/dist/entries/client.d.cts +7 -5
  65. package/dist/entries/client.d.ts +7 -5
  66. package/dist/entries/client.js +13 -13
  67. package/dist/entries/copilot.cjs +4 -4
  68. package/dist/entries/copilot.js +3 -3
  69. package/dist/entries/core.cjs +6 -6
  70. package/dist/entries/core.js +2 -2
  71. package/dist/entries/creatures.d.cts +1 -1
  72. package/dist/entries/creatures.d.ts +1 -1
  73. package/dist/entries/edit.cjs +7 -7
  74. package/dist/entries/edit.js +2 -2
  75. package/dist/entries/errors.cjs +36 -28
  76. package/dist/entries/errors.d.cts +24 -1
  77. package/dist/entries/errors.d.ts +24 -1
  78. package/dist/entries/errors.js +1 -1
  79. package/dist/entries/jobs.cjs +2 -2
  80. package/dist/entries/jobs.d.cts +4 -4
  81. package/dist/entries/jobs.d.ts +4 -4
  82. package/dist/entries/jobs.js +1 -1
  83. package/dist/entries/locations.d.cts +1 -1
  84. package/dist/entries/locations.d.ts +1 -1
  85. package/dist/entries/media.cjs +4 -4
  86. package/dist/entries/media.d.cts +1 -1
  87. package/dist/entries/media.d.ts +1 -1
  88. package/dist/entries/media.js +3 -3
  89. package/dist/entries/nodes.cjs +3 -3
  90. package/dist/entries/nodes.d.cts +1 -1
  91. package/dist/entries/nodes.d.ts +1 -1
  92. package/dist/entries/nodes.js +2 -2
  93. package/dist/entries/objects.d.cts +1 -1
  94. package/dist/entries/objects.d.ts +1 -1
  95. package/dist/entries/scene3d.d.cts +2 -2
  96. package/dist/entries/scene3d.d.ts +2 -2
  97. package/dist/entries/studio.cjs +5 -5
  98. package/dist/entries/studio.js +2 -2
  99. package/dist/entries/trends.cjs +2 -2
  100. package/dist/entries/trends.d.cts +26 -18
  101. package/dist/entries/trends.d.ts +26 -18
  102. package/dist/entries/trends.js +1 -1
  103. package/dist/entries/uploads.cjs +7 -2
  104. package/dist/entries/uploads.d.cts +60 -1
  105. package/dist/entries/uploads.d.ts +60 -1
  106. package/dist/entries/uploads.js +2 -1
  107. package/dist/entries/video-remake.cjs +13 -0
  108. package/dist/entries/video-remake.cjs.map +1 -0
  109. package/dist/entries/video-remake.d.cts +4 -0
  110. package/dist/entries/video-remake.d.ts +4 -0
  111. package/dist/entries/video-remake.js +4 -0
  112. package/dist/entries/video-remake.js.map +1 -0
  113. package/dist/index.cjs +78 -61
  114. package/dist/index.d.cts +4 -4
  115. package/dist/index.d.ts +4 -4
  116. package/dist/index.js +14 -13
  117. package/dist/{nodes-DtSP2yna.d.cts → nodes-BHtjh6gl.d.cts} +2 -2
  118. package/dist/{nodes-HKVmoCnt.d.ts → nodes-BaRqRB2Z.d.ts} +2 -2
  119. package/dist/video-remake-C-KR7YtT.d.ts +676 -0
  120. package/dist/video-remake-DTuCyhd9.d.cts +676 -0
  121. package/package.json +7 -2
  122. package/dist/chunk-4AD3CBDK.cjs.map +0 -1
  123. package/dist/chunk-F6KAMECM.cjs +0 -72
  124. package/dist/chunk-F6KAMECM.cjs.map +0 -1
  125. package/dist/chunk-GU3YOOCK.cjs.map +0 -1
  126. package/dist/chunk-IJAJTVEW.js.map +0 -1
  127. package/dist/chunk-MQQA2E6J.cjs.map +0 -1
  128. package/dist/chunk-QSPTSAEI.cjs.map +0 -1
  129. package/dist/chunk-TKSQCF2X.js.map +0 -1
  130. package/dist/chunk-UX5SMJEI.js.map +0 -1
  131. package/dist/chunk-YEOK5A5H.js +0 -70
  132. package/dist/chunk-YEOK5A5H.js.map +0 -1
  133. package/dist/chunk-YUY56PT7.js.map +0 -1
@@ -0,0 +1,190 @@
1
+ 'use strict';
2
+
3
+ var chunkE2NMFQNY_cjs = require('./chunk-E2NMFQNY.cjs');
4
+
5
+ // src/resources/uploads.ts
6
+ var UPLOAD_MAX_BYTES = 500 * 1024 * 1024;
7
+ var PART_ATTEMPTS = 3;
8
+ var COMPLETE_TIMEOUT_MS = 5 * 60 * 1e3;
9
+ var UploadsResource = class {
10
+ constructor(client) {
11
+ this.client = client;
12
+ }
13
+ client;
14
+ /**
15
+ * Upload one file (`POST /v1/upload`, multipart — the file rides the `file`
16
+ * field). The SDK's `request` detects the `FormData` body and lets the
17
+ * runtime set the multipart boundary. Returns the persisted asset's public
18
+ * URL + storage metadata (unwraps the `{ data }` envelope). Throws
19
+ * `StorageExceededError` (413) over the storage cap and the SDK's other typed
20
+ * errors on the usual statuses.
21
+ */
22
+ async upload(file) {
23
+ return this.uploadMultipart(file);
24
+ }
25
+ async uploadMultipart(file, filename, signal) {
26
+ const form = new FormData();
27
+ if (filename !== void 0) form.append("file", file, filename);
28
+ else form.append("file", file);
29
+ const res = await this.client.request(
30
+ "POST",
31
+ "/v1/upload",
32
+ { body: form, ...signal ? { signal } : {} }
33
+ );
34
+ return res.data;
35
+ }
36
+ /**
37
+ * Upload a file of any size, choosing the lane by size:
38
+ *
39
+ * - **{@link UPLOAD_MAX_BYTES} (500 MB) or less:** exactly {@link upload}
40
+ * (`POST /v1/upload`) — the path every file of that size takes today, with
41
+ * everything it does on the server (faststart, HEIC conversion, upload
42
+ * policies, thumbnails). The large-upload lane is never touched.
43
+ * - **Bigger (video or audio only):** the bytes go straight from here to the
44
+ * platform's object storage in parts (`POST /v1/uploads/large/start` → one
45
+ * `PUT` per part → `POST /v1/uploads/large/complete`), never through the
46
+ * API server. What limits such a file is length: one longer than 30
47
+ * minutes is refused once it has arrived, with `MediaTooLongError` (the
48
+ * stored copy is removed and nothing counts against storage).
49
+ *
50
+ * Returns the same result as {@link upload}. Parts are sent `concurrency` at
51
+ * a time (default 3); a part that fails is tried twice more before the
52
+ * upload fails. `onProgress(sentBytes, totalBytes)` is called as parts
53
+ * finish (once at the end on the small path). Aborting `signal`, or any
54
+ * failure, aborts the upload on the server (best-effort).
55
+ *
56
+ * A file over 500 MB on a deployment without the lane — one that checks every
57
+ * upload's bytes (409 `large_upload_unavailable`), or an older server (404) —
58
+ * throws `LargeUploadUnavailableError`: `POST /v1/upload` would refuse it
59
+ * anyway. Throws `StorageExceededError` (413) when the file does not fit in
60
+ * the account's storage, and the SDK's other typed errors on the usual
61
+ * statuses.
62
+ *
63
+ * In a browser, storage must allow cross-origin `PUT` from the page's origin
64
+ * for the large lane (the platform's own deployments do).
65
+ */
66
+ async uploadLarge(file, options = {}) {
67
+ const filename = options.filename ?? (file.name && file.name.length > 0 ? file.name : "upload");
68
+ const signal = options.signal;
69
+ if (file.size <= UPLOAD_MAX_BYTES) {
70
+ const result = await this.uploadMultipart(file, filename, signal);
71
+ options.onProgress?.(file.size, file.size);
72
+ return result;
73
+ }
74
+ let started;
75
+ try {
76
+ started = await this.client.request("POST", "/v1/uploads/large/start", {
77
+ body: { filename, mimeType: file.type || "application/octet-stream", sizeBytes: file.size },
78
+ ...signal ? { signal } : {}
79
+ });
80
+ } catch (err) {
81
+ if (err instanceof chunkE2NMFQNY_cjs.NodaroError && err.status === 404) throw new chunkE2NMFQNY_cjs.LargeUploadUnavailableError(void 0, 404);
82
+ throw err;
83
+ }
84
+ const { token, partSize, partUrls } = started;
85
+ try {
86
+ await this.sendParts(file, partSize, partUrls, options);
87
+ const res = await this.client.request("POST", "/v1/uploads/large/complete", {
88
+ body: { token },
89
+ timeoutMs: COMPLETE_TIMEOUT_MS,
90
+ ...signal ? { signal } : {}
91
+ });
92
+ return res.data;
93
+ } catch (err) {
94
+ await this.client.request("POST", "/v1/uploads/large/abort", { body: { token } }).catch(() => void 0);
95
+ throw err;
96
+ }
97
+ }
98
+ /**
99
+ * PUT every part, `concurrency` at a time, each tried up to
100
+ * {@link PART_ATTEMPTS} times. Each part is EXACTLY `partSize` bytes (the
101
+ * last one the remainder): its URL has that length signed in, so storage
102
+ * refuses any other. The runtime sets Content-Length from the slice itself.
103
+ */
104
+ async sendParts(file, partSize, partUrls, options) {
105
+ const total = file.size;
106
+ const concurrency = Math.max(1, Math.floor(options.concurrency ?? 3));
107
+ let next = 0;
108
+ let sent = 0;
109
+ let failed;
110
+ const worker = async () => {
111
+ while (failed === void 0 && next < partUrls.length) {
112
+ const index = next++;
113
+ const start = index * partSize;
114
+ const part = file.slice(start, Math.min(start + partSize, total));
115
+ try {
116
+ await this.putPart(partUrls[index], part, index + 1, options.signal);
117
+ } catch (err) {
118
+ failed ??= err;
119
+ return;
120
+ }
121
+ sent += part.size;
122
+ options.onProgress?.(sent, total);
123
+ }
124
+ };
125
+ await Promise.all(Array.from({ length: Math.min(concurrency, partUrls.length) }, () => worker()));
126
+ if (failed !== void 0) throw failed;
127
+ }
128
+ async putPart(url, part, partNumber, signal) {
129
+ let lastStatus = 0;
130
+ for (let attempt = 1; attempt <= PART_ATTEMPTS; attempt++) {
131
+ signal?.throwIfAborted();
132
+ try {
133
+ const res = await this.client.fetch(url, { method: "PUT", body: part, ...signal ? { signal } : {} });
134
+ if (res.ok) return;
135
+ lastStatus = res.status;
136
+ if (res.status >= 400 && res.status < 500 && res.status !== 408 && res.status !== 429) break;
137
+ } catch (err) {
138
+ if (signal?.aborted) throw err;
139
+ lastStatus = 0;
140
+ }
141
+ }
142
+ throw new chunkE2NMFQNY_cjs.NodaroError(`Uploading part ${partNumber} failed${lastStatus ? ` (HTTP ${lastStatus})` : ""}`, "upload_part_failed", lastStatus);
143
+ }
144
+ /**
145
+ * Copy a picture from a web address into your storage
146
+ * (`POST /v1/media/import-url`, body `{ url }`). The platform fetches it
147
+ * (http(s) only, never a private address, up to 20 MB), keeps it only if it
148
+ * decodes as an image (JPEG, PNG, WebP, GIF; HEIC/HEIF and AVIF are
149
+ * converted to JPEG or PNG), and stores it as an upload of yours, so its address serves
150
+ * the pixels to the browser (a canvas can read it). Returns the stored
151
+ * picture (unwraps the `{ data }` envelope).
152
+ *
153
+ * Throws `StorageExceededError` on a 413, its `reason` telling the two
154
+ * apart: `storage_limit_exceeded` is a full storage (the quota is in
155
+ * `details` — `usedBytes`, `quotaBytes`, `remainingBytes`, `tier`), and
156
+ * `file_too_large` a picture over 20 MB. Throws a `NodaroError` with `code`
157
+ * `validation_error` (400: not an http(s) address, or not an image) or
158
+ * `fetch_failed` (422: the address could not be reached or answered with an
159
+ * error).
160
+ *
161
+ * An import of a link runs the platform's content rights check: pass the
162
+ * `confirmationId` from `contentRights.confirm({ url })` when the deployment
163
+ * requires one (`403 rights_confirmation_required` otherwise). A site an
164
+ * administrator disabled answers `403 import_source_disabled`, and a
165
+ * deployment that turned link imports off answers `403 link_imports_disabled`
166
+ * for a link to another site (a file of the deployment's own storage is still
167
+ * imported as before).
168
+ */
169
+ async importUrl(url, options = {}) {
170
+ const res = await this.client.request("POST", "/v1/media/import-url", {
171
+ body: { url, ...options.confirmationId ? { confirmationId: options.confirmationId } : {} }
172
+ });
173
+ return res.data;
174
+ }
175
+ /**
176
+ * Store a JSON document (`POST /v1/upload-json`, up to 25 MB) and get its
177
+ * public URL — e.g. an image editor's design state, passed to
178
+ * `client.jobs.fromUpload` as `editStateUrl` so the edit can be reopened.
179
+ * The URL is unguessable but public: never store a secret in it. Creates no
180
+ * library item.
181
+ */
182
+ uploadJson(json) {
183
+ return this.client.request("POST", "/v1/upload-json", { body: json });
184
+ }
185
+ };
186
+
187
+ exports.UPLOAD_MAX_BYTES = UPLOAD_MAX_BYTES;
188
+ exports.UploadsResource = UploadsResource;
189
+ //# sourceMappingURL=chunk-6YWXKDAY.cjs.map
190
+ //# sourceMappingURL=chunk-6YWXKDAY.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/uploads.ts"],"names":["NodaroError","LargeUploadUnavailableError"],"mappings":";;;;;AAQO,IAAM,gBAAA,GAAmB,MAAM,IAAA,GAAO;AAE7C,IAAM,aAAA,GAAgB,CAAA;AAEtB,IAAM,mBAAA,GAAsB,IAAI,EAAA,GAAK,GAAA;AA+C9B,IAAM,kBAAN,MAAsB;AAAA,EAC3B,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUpB,MAAM,OAAO,IAAA,EAAmC;AAC9C,IAAA,OAAO,IAAA,CAAK,gBAAgB,IAAI,CAAA;AAAA,EAClC;AAAA,EAEA,MAAc,eAAA,CAAgB,IAAA,EAAY,QAAA,EAAmB,MAAA,EAA6C;AACxG,IAAA,MAAM,IAAA,GAAO,IAAI,QAAA,EAAS;AAC1B,IAAA,IAAI,aAAa,MAAA,EAAW,IAAA,CAAK,MAAA,CAAO,MAAA,EAAQ,MAAM,QAAQ,CAAA;AAAA,SACzD,IAAA,CAAK,MAAA,CAAO,MAAA,EAAQ,IAAI,CAAA;AAC7B,IAAA,MAAM,GAAA,GAAM,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA;AAAA,MAC5B,MAAA;AAAA,MACA,YAAA;AAAA,MACA,EAAE,MAAM,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,mBAAmB,EAAE,IAAA,EAAM,MAAM,CAAA;AAAA,EACxF;AACF","file":"chunk-6YWXKDAY.cjs","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\nimport { LargeUploadUnavailableError, NodaroError } from \"../errors.js\"\n\n/**\n * The most `POST /v1/upload` ({@link UploadsResource.upload}) takes: 500 MB.\n * {@link UploadsResource.uploadLarge} sends a file of this size or less through\n * that same route, and only a bigger one through the large-upload lane.\n */\nexport const UPLOAD_MAX_BYTES = 500 * 1024 * 1024\n/** Tries per part: the first, and two retries. */\nconst PART_ATTEMPTS = 3\n/** `/complete` reads the stored file's length and makes its poster before it answers. */\nconst COMPLETE_TIMEOUT_MS = 5 * 60 * 1000\n\n/** Options of {@link UploadsResource.uploadLarge}. */\nexport interface UploadLargeOptions {\n /** The name to store the file under; defaults to the file's own name, else `upload`. */\n readonly filename?: string\n /** Called as parts finish, with the bytes sent so far and the file's size. */\n readonly onProgress?: (sentBytes: number, totalBytes: number) => void\n /** Cancels the upload; the server's copy of the parts is aborted. */\n readonly signal?: AbortSignal\n /** Parts sent at once (default 3). */\n readonly concurrency?: number\n}\n\n/** `POST /v1/uploads/large/start`'s answer. */\ninterface LargeUploadStart {\n readonly token: string\n readonly partSize: number\n readonly partUrls: readonly string[]\n}\n\n/**\n * Result of a successful `POST /v1/upload`. Mirrors the route's `data` envelope\n * (`backend/src/routes/upload.ts`), the source of truth — keep in sync if that\n * response changes. The route also returns loosely-typed extracted `metadata`;\n * it is omitted here until a consumer needs a typed shape (add it shaped to\n * that need rather than inventing `Record<string, unknown>` surface now).\n */\nexport interface UploadResult {\n /** Public R2 URL of the stored asset (always present on success). */\n readonly url: string\n /** Storage row id; `null` when no asset row was written (e.g. unauthenticated). */\n readonly assetId: string | null\n /** Generated thumbnail URL (images/video); `null` for audio or on failure. */\n readonly thumbnailUrl: string | null\n /** Server-classified asset category (e.g. \"image\" | \"video\" | \"audio\"). */\n readonly category: string\n /** Display filename (server override or the original). */\n readonly filename: string\n /** Final MIME type after server normalization. */\n readonly mimeType: string\n /** Stored byte size. */\n readonly sizeBytes: number\n /** R2 object key. */\n readonly r2Key: string\n}\n\nexport class UploadsResource {\n constructor(private client: NodaroClientCore) {}\n\n /**\n * Upload one file (`POST /v1/upload`, multipart — the file rides the `file`\n * field). The SDK's `request` detects the `FormData` body and lets the\n * runtime set the multipart boundary. Returns the persisted asset's public\n * URL + storage metadata (unwraps the `{ data }` envelope). Throws\n * `StorageExceededError` (413) over the storage cap and the SDK's other typed\n * errors on the usual statuses.\n */\n async upload(file: File): Promise<UploadResult> {\n return this.uploadMultipart(file)\n }\n\n private async uploadMultipart(file: Blob, filename?: string, signal?: AbortSignal): Promise<UploadResult> {\n const form = new FormData()\n if (filename !== undefined) form.append(\"file\", file, filename)\n else form.append(\"file\", file)\n const res = await this.client.request<{ data: UploadResult }>(\n \"POST\",\n \"/v1/upload\",\n { body: form, ...(signal ? { signal } : {}) },\n )\n return res.data\n }\n\n /**\n * Upload a file of any size, choosing the lane by size:\n *\n * - **{@link UPLOAD_MAX_BYTES} (500 MB) or less:** exactly {@link upload}\n * (`POST /v1/upload`) — the path every file of that size takes today, with\n * everything it does on the server (faststart, HEIC conversion, upload\n * policies, thumbnails). The large-upload lane is never touched.\n * - **Bigger (video or audio only):** the bytes go straight from here to the\n * platform's object storage in parts (`POST /v1/uploads/large/start` → one\n * `PUT` per part → `POST /v1/uploads/large/complete`), never through the\n * API server. What limits such a file is length: one longer than 30\n * minutes is refused once it has arrived, with `MediaTooLongError` (the\n * stored copy is removed and nothing counts against storage).\n *\n * Returns the same result as {@link upload}. Parts are sent `concurrency` at\n * a time (default 3); a part that fails is tried twice more before the\n * upload fails. `onProgress(sentBytes, totalBytes)` is called as parts\n * finish (once at the end on the small path). Aborting `signal`, or any\n * failure, aborts the upload on the server (best-effort).\n *\n * A file over 500 MB on a deployment without the lane — one that checks every\n * upload's bytes (409 `large_upload_unavailable`), or an older server (404) —\n * throws `LargeUploadUnavailableError`: `POST /v1/upload` would refuse it\n * anyway. Throws `StorageExceededError` (413) when the file does not fit in\n * the account's storage, and the SDK's other typed errors on the usual\n * statuses.\n *\n * In a browser, storage must allow cross-origin `PUT` from the page's origin\n * for the large lane (the platform's own deployments do).\n */\n async uploadLarge(file: Blob & { readonly name?: string }, options: UploadLargeOptions = {}): Promise<UploadResult> {\n const filename = options.filename ?? (file.name && file.name.length > 0 ? file.name : \"upload\")\n const signal = options.signal\n if (file.size <= UPLOAD_MAX_BYTES) {\n const result = await this.uploadMultipart(file, filename, signal)\n options.onProgress?.(file.size, file.size)\n return result\n }\n let started: LargeUploadStart\n try {\n started = await this.client.request<LargeUploadStart>(\"POST\", \"/v1/uploads/large/start\", {\n body: { filename, mimeType: file.type || \"application/octet-stream\", sizeBytes: file.size },\n ...(signal ? { signal } : {}),\n })\n } catch (err) {\n if (err instanceof NodaroError && err.status === 404) throw new LargeUploadUnavailableError(undefined, 404)\n throw err\n }\n\n const { token, partSize, partUrls } = started\n try {\n await this.sendParts(file, partSize, partUrls, options)\n const res = await this.client.request<{ data: UploadResult }>(\"POST\", \"/v1/uploads/large/complete\", {\n body: { token },\n timeoutMs: COMPLETE_TIMEOUT_MS,\n ...(signal ? { signal } : {}),\n })\n return res.data\n } catch (err) {\n // Best-effort, and never under the caller's (possibly aborted) signal.\n await this.client.request(\"POST\", \"/v1/uploads/large/abort\", { body: { token } }).catch(() => undefined)\n throw err\n }\n }\n\n /**\n * PUT every part, `concurrency` at a time, each tried up to\n * {@link PART_ATTEMPTS} times. Each part is EXACTLY `partSize` bytes (the\n * last one the remainder): its URL has that length signed in, so storage\n * refuses any other. The runtime sets Content-Length from the slice itself.\n */\n private async sendParts(file: Blob, partSize: number, partUrls: readonly string[], options: UploadLargeOptions): Promise<void> {\n const total = file.size\n const concurrency = Math.max(1, Math.floor(options.concurrency ?? 3))\n let next = 0\n let sent = 0\n let failed: unknown\n const worker = async (): Promise<void> => {\n while (failed === undefined && next < partUrls.length) {\n const index = next++\n const start = index * partSize\n const part = file.slice(start, Math.min(start + partSize, total))\n try {\n await this.putPart(partUrls[index]!, part, index + 1, options.signal)\n } catch (err) {\n failed ??= err\n return\n }\n sent += part.size\n options.onProgress?.(sent, total)\n }\n }\n await Promise.all(Array.from({ length: Math.min(concurrency, partUrls.length) }, () => worker()))\n if (failed !== undefined) throw failed\n }\n\n private async putPart(url: string, part: Blob, partNumber: number, signal: AbortSignal | undefined): Promise<void> {\n let lastStatus = 0\n for (let attempt = 1; attempt <= PART_ATTEMPTS; attempt++) {\n signal?.throwIfAborted()\n try {\n const res = await this.client.fetch(url, { method: \"PUT\", body: part, ...(signal ? { signal } : {}) })\n if (res.ok) return\n lastStatus = res.status\n // A refusal (expired link, wrong signature) will not change on a retry.\n if (res.status >= 400 && res.status < 500 && res.status !== 408 && res.status !== 429) break\n } catch (err) {\n if (signal?.aborted) throw err\n lastStatus = 0\n }\n }\n throw new NodaroError(`Uploading part ${partNumber} failed${lastStatus ? ` (HTTP ${lastStatus})` : \"\"}`, \"upload_part_failed\", lastStatus)\n }\n\n /**\n * Copy a picture from a web address into your storage\n * (`POST /v1/media/import-url`, body `{ url }`). The platform fetches it\n * (http(s) only, never a private address, up to 20 MB), keeps it only if it\n * decodes as an image (JPEG, PNG, WebP, GIF; HEIC/HEIF and AVIF are\n * converted to JPEG or PNG), and stores it as an upload of yours, so its address serves\n * the pixels to the browser (a canvas can read it). Returns the stored\n * picture (unwraps the `{ data }` envelope).\n *\n * Throws `StorageExceededError` on a 413, its `reason` telling the two\n * apart: `storage_limit_exceeded` is a full storage (the quota is in\n * `details` — `usedBytes`, `quotaBytes`, `remainingBytes`, `tier`), and\n * `file_too_large` a picture over 20 MB. Throws a `NodaroError` with `code`\n * `validation_error` (400: not an http(s) address, or not an image) or\n * `fetch_failed` (422: the address could not be reached or answered with an\n * error).\n *\n * An import of a link runs the platform's content rights check: pass the\n * `confirmationId` from `contentRights.confirm({ url })` when the deployment\n * requires one (`403 rights_confirmation_required` otherwise). A site an\n * administrator disabled answers `403 import_source_disabled`, and a\n * deployment that turned link imports off answers `403 link_imports_disabled`\n * for a link to another site (a file of the deployment's own storage is still\n * imported as before).\n */\n async importUrl(url: string, options: { confirmationId?: string } = {}): Promise<ImportUrlResult> {\n const res = await this.client.request<{ data: ImportUrlResult }>(\"POST\", \"/v1/media/import-url\", {\n body: { url, ...(options.confirmationId ? { confirmationId: options.confirmationId } : {}) },\n })\n return res.data\n }\n\n /**\n * Store a JSON document (`POST /v1/upload-json`, up to 25 MB) and get its\n * public URL — e.g. an image editor's design state, passed to\n * `client.jobs.fromUpload` as `editStateUrl` so the edit can be reopened.\n * The URL is unguessable but public: never store a secret in it. Creates no\n * library item.\n */\n uploadJson(json: Record<string, unknown> | readonly unknown[]): Promise<UploadJsonResult> {\n return this.client.request<UploadJsonResult>(\"POST\", \"/v1/upload-json\", { body: json })\n }\n}\n\n/** Result of {@link UploadsResource.uploadJson}. */\nexport interface UploadJsonResult {\n /** Public URL of the stored JSON document. */\n readonly url: string\n}\n\n/**\n * Result of {@link UploadsResource.importUrl}. Mirrors the route's `data`:\n * the fields of {@link UploadResult} it shares, plus the picture's size.\n */\nexport interface ImportUrlResult {\n /** Public URL of the stored picture. */\n readonly url: string\n /** Generated thumbnail URL; `null` when it could not be made. */\n readonly thumbnailUrl: string | null\n /** Storage row id; `null` when no asset row was written. */\n readonly assetId: string | null\n /** Final MIME type (a HEIC/HEIF or AVIF source is stored as JPEG or PNG). */\n readonly mimeType: string\n /** Stored byte size. */\n readonly sizeBytes: number\n /** Display filename: the address's last path segment, else `imported-<id>.<ext>`. */\n readonly filename: string\n /** Width in pixels; 0 when it could not be read. */\n readonly width: number\n /** Height in pixels; 0 when it could not be read. */\n readonly height: number\n}\n"]}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=chunk-7NTMMIPC.cjs.map
4
+ //# sourceMappingURL=chunk-7NTMMIPC.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-7NTMMIPC.cjs"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk4AD3CBDK_cjs = require('./chunk-4AD3CBDK.cjs');
3
+ var chunkE2NMFQNY_cjs = require('./chunk-E2NMFQNY.cjs');
4
4
  var edl = require('@nodaro/shared/edl');
5
5
  var nodes = require('@nodaro/shared/nodes');
6
6
 
@@ -277,7 +277,7 @@ var EditResource = class {
277
277
  */
278
278
  async continueUseCase(input, options) {
279
279
  if (input.nodeType !== void 0 && !nodes.isUseCaseNodeType(input.nodeType)) {
280
- throw new chunk4AD3CBDK_cjs.NodaroError(
280
+ throw new chunkE2NMFQNY_cjs.NodaroError(
281
281
  `continueUseCase: nodeType "${String(input.nodeType)}" is not a use-case node type (${nodes.USE_CASE_NODE_TYPES.join(", ")})`,
282
282
  "invalid_node_type",
283
283
  400
@@ -298,12 +298,12 @@ var EditResource = class {
298
298
  * Any other failure of the read, any other 403 included, is thrown as is.
299
299
  */
300
300
  async runTypeOf(jobId) {
301
- const unknown = () => new chunk4AD3CBDK_cjs.NodaroError("continueUseCase: the run's node type cannot be read \u2014 pass nodeType", "use_case_type_unknown", 400);
301
+ const unknown = () => new chunkE2NMFQNY_cjs.NodaroError("continueUseCase: the run's node type cannot be read \u2014 pass nodeType", "use_case_type_unknown", 400);
302
302
  let row;
303
303
  try {
304
304
  row = (await this.client.request("GET", `/v1/jobs/${encodeURIComponent(jobId)}`)).data;
305
305
  } catch (err) {
306
- if (err instanceof chunk4AD3CBDK_cjs.ForbiddenError && err.missingScope === "jobs:read") throw unknown();
306
+ if (err instanceof chunkE2NMFQNY_cjs.ForbiddenError && err.missingScope === "jobs:read") throw unknown();
307
307
  throw err;
308
308
  }
309
309
  const input = row?.input_data;
@@ -330,7 +330,7 @@ var EditResource = class {
330
330
  });
331
331
  if (!planned.ok) {
332
332
  const message = planned.issues.map((issue) => edl.describeAudioSyncOffsetIssue(issue)).join("; ");
333
- return Promise.reject(new chunk4AD3CBDK_cjs.NodaroError(`editPlan: ${message}`, "edit_plan_sources", 400));
333
+ return Promise.reject(new chunkE2NMFQNY_cjs.NodaroError(`editPlan: ${message}`, "edit_plan_sources", 400));
334
334
  }
335
335
  const transcript = planned.transcriptSourceId ? { ...input.transcript, sourceId: planned.transcriptSourceId } : input.transcript;
336
336
  return this.client.request("POST", "/v1/edit-plan", {
@@ -369,14 +369,14 @@ var EditResource = class {
369
369
  */
370
370
  cameraSwitch(input) {
371
371
  if (edl.transcriptSpeakerLabels(input.transcript).length === 0) {
372
- return Promise.reject(new chunk4AD3CBDK_cjs.NodaroError(
372
+ return Promise.reject(new chunkE2NMFQNY_cjs.NodaroError(
373
373
  "cameraSwitch: the transcript has no speaker labels \u2014 transcribe with speaker detection on",
374
374
  "no_speakers",
375
375
  422
376
376
  ));
377
377
  }
378
378
  const result = input.speakerMapResult;
379
- if (result !== void 0 && !edl.speakerMapResultOf(result)) return Promise.reject(new chunk4AD3CBDK_cjs.NodaroError("cameraSwitch: speakerMapResult is not a Speaker Map result \u2014 pass that job's output_data.json", "not_a_speaker_map", 400));
379
+ if (result !== void 0 && !edl.speakerMapResultOf(result)) return Promise.reject(new chunkE2NMFQNY_cjs.NodaroError("cameraSwitch: speakerMapResult is not a Speaker Map result \u2014 pass that job's output_data.json", "not_a_speaker_map", 400));
380
380
  const speakerMap = result !== void 0 ? edl.cameraSwitchSpeakerMap({ speakerMap: input.speakerMap }, input.edl, input.transcript, { speakerMap: result }) : input.speakerMap;
381
381
  return this.client.request("POST", "/v1/camera-switch", {
382
382
  body: {
@@ -414,5 +414,5 @@ exports.CLIP_PACK_MAX_TARGET_SEC = CLIP_PACK_MAX_TARGET_SEC;
414
414
  exports.CLIP_PACK_MIN_TARGET_SEC = CLIP_PACK_MIN_TARGET_SEC;
415
415
  exports.EditResource = EditResource;
416
416
  exports.TRAILER_FORMATS = TRAILER_FORMATS;
417
- //# sourceMappingURL=chunk-CLBLAWH3.cjs.map
418
- //# sourceMappingURL=chunk-CLBLAWH3.cjs.map
417
+ //# sourceMappingURL=chunk-7PMOXQEO.cjs.map
418
+ //# sourceMappingURL=chunk-7PMOXQEO.cjs.map