transloadit 4.0.2 → 4.0.3

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 (212) hide show
  1. package/dist/Transloadit.d.ts +1 -1
  2. package/dist/Transloadit.d.ts.map +1 -1
  3. package/dist/Transloadit.js.map +1 -1
  4. package/dist/alphalib/types/assemblyReplay.d.ts +32 -28
  5. package/dist/alphalib/types/assemblyReplay.d.ts.map +1 -1
  6. package/dist/alphalib/types/assemblyReplayNotification.d.ts +32 -28
  7. package/dist/alphalib/types/assemblyReplayNotification.d.ts.map +1 -1
  8. package/dist/alphalib/types/assemblyStatus.d.ts +1 -0
  9. package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
  10. package/dist/alphalib/types/assemblyStatus.js +12 -0
  11. package/dist/alphalib/types/assemblyStatus.js.map +1 -1
  12. package/dist/alphalib/types/robots/_index.d.ts +312 -288
  13. package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
  14. package/dist/alphalib/types/robots/_instructions-primitives.d.ts +22 -22
  15. package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
  16. package/dist/alphalib/types/robots/_instructions-primitives.js +19 -10
  17. package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
  18. package/dist/alphalib/types/robots/assembly-savejson.d.ts +1 -1
  19. package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
  20. package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
  21. package/dist/alphalib/types/robots/audio-artwork.d.ts +20 -20
  22. package/dist/alphalib/types/robots/audio-concat.d.ts +20 -20
  23. package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
  24. package/dist/alphalib/types/robots/audio-concat.js +2 -2
  25. package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
  26. package/dist/alphalib/types/robots/audio-encode.d.ts +20 -20
  27. package/dist/alphalib/types/robots/audio-encode.js +1 -1
  28. package/dist/alphalib/types/robots/audio-loop.d.ts +20 -20
  29. package/dist/alphalib/types/robots/audio-merge.d.ts +20 -20
  30. package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
  31. package/dist/alphalib/types/robots/audio-merge.js +1 -1
  32. package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
  33. package/dist/alphalib/types/robots/audio-waveform.d.ts +20 -20
  34. package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
  35. package/dist/alphalib/types/robots/audio-waveform.js +1 -1
  36. package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
  37. package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
  38. package/dist/alphalib/types/robots/azure-import.js +1 -1
  39. package/dist/alphalib/types/robots/azure-import.js.map +1 -1
  40. package/dist/alphalib/types/robots/azure-store.js +1 -1
  41. package/dist/alphalib/types/robots/azure-store.js.map +1 -1
  42. package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
  43. package/dist/alphalib/types/robots/backblaze-import.js +1 -1
  44. package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
  45. package/dist/alphalib/types/robots/backblaze-store.js +1 -1
  46. package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
  47. package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
  48. package/dist/alphalib/types/robots/cloudfiles-import.js +1 -1
  49. package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
  50. package/dist/alphalib/types/robots/cloudfiles-store.js +1 -1
  51. package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
  52. package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
  53. package/dist/alphalib/types/robots/cloudflare-import.js +1 -1
  54. package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
  55. package/dist/alphalib/types/robots/cloudflare-store.js +1 -1
  56. package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
  57. package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
  58. package/dist/alphalib/types/robots/digitalocean-import.js +1 -1
  59. package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
  60. package/dist/alphalib/types/robots/digitalocean-store.js +1 -1
  61. package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
  62. package/dist/alphalib/types/robots/document-thumbs.js +1 -1
  63. package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
  64. package/dist/alphalib/types/robots/dropbox-import.js +1 -1
  65. package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
  66. package/dist/alphalib/types/robots/dropbox-store.js +1 -1
  67. package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
  68. package/dist/alphalib/types/robots/edgly-deliver.d.ts +1 -1
  69. package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
  70. package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
  71. package/dist/alphalib/types/robots/file-decompress.d.ts +12 -0
  72. package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
  73. package/dist/alphalib/types/robots/file-decompress.js +9 -0
  74. package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
  75. package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
  76. package/dist/alphalib/types/robots/file-serve.js +33 -5
  77. package/dist/alphalib/types/robots/file-serve.js.map +1 -1
  78. package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
  79. package/dist/alphalib/types/robots/file-verify.js +1 -1
  80. package/dist/alphalib/types/robots/file-verify.js.map +1 -1
  81. package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
  82. package/dist/alphalib/types/robots/ftp-import.js +1 -1
  83. package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
  84. package/dist/alphalib/types/robots/ftp-store.js +1 -1
  85. package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
  86. package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
  87. package/dist/alphalib/types/robots/google-import.js +1 -1
  88. package/dist/alphalib/types/robots/google-import.js.map +1 -1
  89. package/dist/alphalib/types/robots/google-store.js +2 -2
  90. package/dist/alphalib/types/robots/google-store.js.map +1 -1
  91. package/dist/alphalib/types/robots/meta-read.d.ts +1 -1
  92. package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
  93. package/dist/alphalib/types/robots/meta-read.js +1 -1
  94. package/dist/alphalib/types/robots/meta-read.js.map +1 -1
  95. package/dist/alphalib/types/robots/meta-write.d.ts +20 -20
  96. package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
  97. package/dist/alphalib/types/robots/minio-import.js +1 -1
  98. package/dist/alphalib/types/robots/minio-import.js.map +1 -1
  99. package/dist/alphalib/types/robots/minio-store.js +1 -1
  100. package/dist/alphalib/types/robots/minio-store.js.map +1 -1
  101. package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
  102. package/dist/alphalib/types/robots/s3-import.js +1 -1
  103. package/dist/alphalib/types/robots/s3-import.js.map +1 -1
  104. package/dist/alphalib/types/robots/s3-store.d.ts +12 -0
  105. package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
  106. package/dist/alphalib/types/robots/s3-store.js +7 -1
  107. package/dist/alphalib/types/robots/s3-store.js.map +1 -1
  108. package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
  109. package/dist/alphalib/types/robots/sftp-import.js +1 -1
  110. package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
  111. package/dist/alphalib/types/robots/sftp-store.js +1 -1
  112. package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
  113. package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
  114. package/dist/alphalib/types/robots/supabase-import.js +1 -1
  115. package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
  116. package/dist/alphalib/types/robots/supabase-store.js +1 -1
  117. package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
  118. package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
  119. package/dist/alphalib/types/robots/swift-import.js +1 -1
  120. package/dist/alphalib/types/robots/swift-import.js.map +1 -1
  121. package/dist/alphalib/types/robots/swift-store.js +1 -1
  122. package/dist/alphalib/types/robots/swift-store.js.map +1 -1
  123. package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
  124. package/dist/alphalib/types/robots/tigris-import.js +2 -2
  125. package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
  126. package/dist/alphalib/types/robots/tigris-store.js +2 -2
  127. package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
  128. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +1 -1
  129. package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
  130. package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
  131. package/dist/alphalib/types/robots/video-adaptive.d.ts +20 -20
  132. package/dist/alphalib/types/robots/video-concat.d.ts +20 -20
  133. package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
  134. package/dist/alphalib/types/robots/video-concat.js +1 -1
  135. package/dist/alphalib/types/robots/video-concat.js.map +1 -1
  136. package/dist/alphalib/types/robots/video-encode.d.ts +20 -20
  137. package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
  138. package/dist/alphalib/types/robots/video-encode.js +49 -1
  139. package/dist/alphalib/types/robots/video-encode.js.map +1 -1
  140. package/dist/alphalib/types/robots/video-merge.d.ts +20 -20
  141. package/dist/alphalib/types/robots/video-ondemand.d.ts +28 -28
  142. package/dist/alphalib/types/robots/video-subtitle.d.ts +20 -20
  143. package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
  144. package/dist/alphalib/types/robots/video-subtitle.js +1 -1
  145. package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
  146. package/dist/alphalib/types/robots/video-thumbs.d.ts +20 -20
  147. package/dist/alphalib/types/robots/vimeo-import.js +1 -1
  148. package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
  149. package/dist/alphalib/types/robots/wasabi-import.js +2 -2
  150. package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
  151. package/dist/alphalib/types/robots/wasabi-store.js +1 -1
  152. package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
  153. package/dist/alphalib/types/template.d.ts +564 -516
  154. package/dist/alphalib/types/template.d.ts.map +1 -1
  155. package/dist/alphalib/zodParseWithContext.d.ts.map +1 -1
  156. package/dist/alphalib/zodParseWithContext.js +14 -10
  157. package/dist/alphalib/zodParseWithContext.js.map +1 -1
  158. package/dist/apiTypes.d.ts +1 -1
  159. package/dist/apiTypes.d.ts.map +1 -1
  160. package/dist/apiTypes.js.map +1 -1
  161. package/package.json +2 -2
  162. package/src/Transloadit.ts +1 -8
  163. package/src/alphalib/types/assemblyStatus.ts +18 -0
  164. package/src/alphalib/types/robots/_instructions-primitives.ts +26 -10
  165. package/src/alphalib/types/robots/assembly-savejson.ts +2 -2
  166. package/src/alphalib/types/robots/audio-concat.ts +3 -2
  167. package/src/alphalib/types/robots/audio-encode.ts +1 -1
  168. package/src/alphalib/types/robots/audio-merge.ts +2 -1
  169. package/src/alphalib/types/robots/audio-waveform.ts +2 -1
  170. package/src/alphalib/types/robots/azure-import.ts +2 -1
  171. package/src/alphalib/types/robots/azure-store.ts +1 -1
  172. package/src/alphalib/types/robots/backblaze-import.ts +2 -1
  173. package/src/alphalib/types/robots/backblaze-store.ts +1 -1
  174. package/src/alphalib/types/robots/cloudfiles-import.ts +2 -1
  175. package/src/alphalib/types/robots/cloudfiles-store.ts +1 -1
  176. package/src/alphalib/types/robots/cloudflare-import.ts +2 -1
  177. package/src/alphalib/types/robots/cloudflare-store.ts +1 -1
  178. package/src/alphalib/types/robots/digitalocean-import.ts +2 -1
  179. package/src/alphalib/types/robots/digitalocean-store.ts +1 -1
  180. package/src/alphalib/types/robots/document-thumbs.ts +1 -1
  181. package/src/alphalib/types/robots/dropbox-import.ts +2 -1
  182. package/src/alphalib/types/robots/dropbox-store.ts +1 -1
  183. package/src/alphalib/types/robots/edgly-deliver.ts +2 -2
  184. package/src/alphalib/types/robots/file-decompress.ts +9 -0
  185. package/src/alphalib/types/robots/file-serve.ts +33 -5
  186. package/src/alphalib/types/robots/file-verify.ts +2 -1
  187. package/src/alphalib/types/robots/ftp-import.ts +2 -1
  188. package/src/alphalib/types/robots/ftp-store.ts +1 -1
  189. package/src/alphalib/types/robots/google-import.ts +2 -1
  190. package/src/alphalib/types/robots/google-store.ts +2 -2
  191. package/src/alphalib/types/robots/meta-read.ts +3 -3
  192. package/src/alphalib/types/robots/minio-import.ts +2 -1
  193. package/src/alphalib/types/robots/minio-store.ts +1 -1
  194. package/src/alphalib/types/robots/s3-import.ts +2 -1
  195. package/src/alphalib/types/robots/s3-store.ts +7 -1
  196. package/src/alphalib/types/robots/sftp-import.ts +2 -1
  197. package/src/alphalib/types/robots/sftp-store.ts +1 -1
  198. package/src/alphalib/types/robots/supabase-import.ts +2 -1
  199. package/src/alphalib/types/robots/supabase-store.ts +1 -1
  200. package/src/alphalib/types/robots/swift-import.ts +2 -1
  201. package/src/alphalib/types/robots/swift-store.ts +1 -1
  202. package/src/alphalib/types/robots/tigris-import.ts +3 -2
  203. package/src/alphalib/types/robots/tigris-store.ts +2 -2
  204. package/src/alphalib/types/robots/tlcdn-deliver.ts +2 -2
  205. package/src/alphalib/types/robots/video-concat.ts +2 -1
  206. package/src/alphalib/types/robots/video-encode.ts +49 -1
  207. package/src/alphalib/types/robots/video-subtitle.ts +2 -1
  208. package/src/alphalib/types/robots/vimeo-import.ts +1 -1
  209. package/src/alphalib/types/robots/wasabi-import.ts +3 -2
  210. package/src/alphalib/types/robots/wasabi-store.ts +1 -1
  211. package/src/alphalib/zodParseWithContext.ts +18 -14
  212. package/src/apiTypes.ts +0 -5
@@ -87,7 +87,10 @@ export function zodParseWithContext(schema, obj) {
87
87
  if (!collectedLiterals[nestedPath])
88
88
  collectedLiterals[nestedPath] = [];
89
89
  if (!collectedMessages[nestedPath])
90
- collectedMessages[nestedPath] = [];
90
+ collectedMessages[nestedPath] = new Set();
91
+ if (issue.code === 'custom' && issue.message.includes('interpolation string')) {
92
+ continue;
93
+ }
91
94
  if (issue.code === 'invalid_literal') {
92
95
  const { expected } = issue;
93
96
  if (expected !== undefined &&
@@ -98,7 +101,7 @@ export function zodParseWithContext(schema, obj) {
98
101
  collectedLiterals[nestedPath].push(expected);
99
102
  }
100
103
  // Still add the raw message for fallback
101
- collectedMessages[nestedPath].push(issue.message);
104
+ collectedMessages[nestedPath].add(issue.message);
102
105
  }
103
106
  // Keep existing enum handling if needed, but literal should cover most cases
104
107
  else if (issue.code === 'invalid_enum_value') {
@@ -106,7 +109,7 @@ export function zodParseWithContext(schema, obj) {
106
109
  if (options && options.length > 0) {
107
110
  collectedLiterals[nestedPath].push(...options.map(String)); // Assuming options are compatible
108
111
  }
109
- collectedMessages[nestedPath].push(issue.message);
112
+ collectedMessages[nestedPath].add(issue.message);
110
113
  }
111
114
  // Keep existing unrecognized keys handling
112
115
  else if (issue.code === 'unrecognized_keys') {
@@ -114,7 +117,7 @@ export function zodParseWithContext(schema, obj) {
114
117
  const { keys } = issue;
115
118
  const truncatedKeys = keys.slice(0, maxKeysToShow);
116
119
  const ellipsis = keys.length > maxKeysToShow ? '...' : '';
117
- collectedMessages[nestedPath].push(`has unrecognized keys: ${truncatedKeys.map((k) => `\`${k}\``).join(', ')}${ellipsis}`);
120
+ collectedMessages[nestedPath].add(`has unrecognized keys: ${truncatedKeys.map((k) => `\`${k}\``).join(', ')}${ellipsis}`);
118
121
  }
119
122
  // <-- Add handling for invalid_type here -->
120
123
  else if (issue.code === 'invalid_type') {
@@ -133,11 +136,11 @@ export function zodParseWithContext(schema, obj) {
133
136
  expectedOutput = `${shownValues} | .. or ${remainingCount} others ..`;
134
137
  }
135
138
  }
136
- collectedMessages[nestedPath].push(`got invalid type: ${received} (value: \`${actualValueStr}\`, expected: ${expectedOutput})`);
139
+ collectedMessages[nestedPath].add(`got invalid type: ${received} (value: \`${actualValueStr}\`, expected: ${expectedOutput})`);
137
140
  }
138
141
  // <-- End added handling -->
139
142
  else {
140
- collectedMessages[nestedPath].push(issue.message); // Handle other nested codes
143
+ collectedMessages[nestedPath].add(issue.message); // Handle other nested codes
141
144
  }
142
145
  }
143
146
  }
@@ -148,9 +151,12 @@ export function zodParseWithContext(schema, obj) {
148
151
  badPaths.set(nestedPath, []);
149
152
  }
150
153
  const targetMessages = badPaths.get(nestedPath);
154
+ if (!targetMessages) {
155
+ continue;
156
+ }
151
157
  // Prioritize more specific messages (like invalid type with details)
152
- const invalidTypeMessages = collectedMessages[nestedPath].filter((m) => m.startsWith('got invalid type:'));
153
- const unrecognizedKeyMessages = collectedMessages[nestedPath].filter((m) => m.startsWith('has unrecognized keys:'));
158
+ const invalidTypeMessages = Array.from(collectedMessages[nestedPath]).filter((m) => m.startsWith('got invalid type:'));
159
+ const unrecognizedKeyMessages = Array.from(collectedMessages[nestedPath]).filter((m) => m.startsWith('has unrecognized keys:'));
154
160
  const literalMessages = collectedLiterals[nestedPath] ?? [];
155
161
  if (invalidTypeMessages.length > 0) {
156
162
  targetMessages.push(...invalidTypeMessages);
@@ -167,8 +173,6 @@ export function zodParseWithContext(schema, obj) {
167
173
  targetMessages.push(...collectedMessages[nestedPath]);
168
174
  }
169
175
  }
170
- // Prevent the main `messages` array from being populated further for this union issue
171
- continue; // Skip adding messages directly from the top-level union issue itself
172
176
  }
173
177
  // Handle other specific error codes (only if not handled above)
174
178
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"zodParseWithContext.js","sourceRoot":"","sources":["../../src/alphalib/zodParseWithContext.ts"],"names":[],"mappings":"AAOA,SAAS,SAAS,CAAC,GAAY,EAAE,IAAY;IAC3C,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAA;IACrB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC7B,IAAI,OAAO,GAAG,GAAG,CAAA;IACjB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,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AE,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAA;YACvC,CAAC;YAED,MAAM,KAAK,GAAG,IAAI,IAAI,OAAO,CAAA;YAC7B,2FAA2F;YAC3F,8EAA8E;YAC9E,MAAM,qBAAqB,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAA;YAC5D,MAAM,aAAa,GAAG,UAAU,KAAK,MAAM,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAA;YAE7E,oBAAoB,CAAC,IAAI,CAAC;gBACxB,GAAG,QAAQ;gBACX,SAAS;gBACT,aAAa;aACd,CAAC,CAAA;QACJ,CAAC;QAED,6DAA6D;QAC7D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;aAC7C,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE;YACxB,MAAM,KAAK,GAAG,IAAI,IAAI,OAAO,CAAA;YAC7B,OAAO,QAAQ,KAAK,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAA,CAAC,sBAAsB;QACzE,CAAC,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAA;QAEb,MAAM,aAAa,GAAG,gDAAgD,SAAS,EAAE,CAAA,CAAC,aAAa;QAE/F,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,CAAA;IACxE,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,CAAA;AAC5E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { AssemblyInstructions, AssemblyInstructionsInput } from './alphalib/types/template.ts';
2
- export { type AssemblyIndexItem, type AssemblyStatusMeta, type AssemblyStatusResult, type AssemblyStatusResults, type AssemblyStatusUpload, type AssemblyStatusUploads, assemblyIndexItemSchema, assemblyStatusSchema, } from './alphalib/types/assemblyStatus.ts';
2
+ export { type AssemblyIndexItem, assemblyIndexItemSchema, assemblyStatusSchema, } from './alphalib/types/assemblyStatus.ts';
3
3
  export { assemblyInstructionsSchema } from './alphalib/types/template.ts';
4
4
  export interface OptionalAuthParams {
5
5
  auth?: {
@@ -1 +1 @@
1
- {"version":3,"file":"apiTypes.d.ts","sourceRoot":"","sources":["../src/apiTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AAEnG,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC1C;AAKD,MAAM,WAAW,YAAY;IAE3B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,KAAK,EAAE,CAAC,EAAE,CAAA;CACX;AAED,MAAM,WAAW,uBAAuB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACnE,KAAK,EAAE,MAAM,CAAA;CACd;AAID,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,yBAAyB,EAAE,MAAM,CAAC,GAAG,kBAAkB,CAAA;AAE/F,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG;IACtD,IAAI,CAAC,EAAE,MAAM,C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SAAQ,oBAAoB,EAAE,YAAY;CAAG;AAG/E,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,kBAAkB,GAAG;IAChE,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,yBAAyB,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,GAAG;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,KAAK,GAAG,MAAM,CAAA;CACtB,CAAA;AAGD,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,yBAAyB,CAAA;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,UAAU,EAAE,kBAAkB,CAAA;CAC/B;AAED,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,WAAW,EAAE,kBAAkB,EAAE,CAAA;CAClC;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"apiTypes.js","sourceRoot":"","sources":["../src/apiTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EAOL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA"}
1
+ {"version":3,"file":"apiTypes.js","sourceRoot":"","sources":["../src/apiTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "transloadit",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Node.js SDK for Transloadit",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -12,7 +12,7 @@
12
12
  "mp3"
13
13
  ],
14
14
  "author": "Tim Koschuetzki <tim@transloadit.com>",
15
- "packageManager": "yarn@4.9.4",
15
+ "packageManager": "yarn@4.10.3",
16
16
  "engines": {
17
17
  "node": ">= 20"
18
18
  },
@@ -64,14 +64,7 @@ export {
64
64
  UploadError,
65
65
  } from 'got'
66
66
 
67
- export type {
68
- AssemblyStatus,
69
- AssemblyStatusMeta,
70
- AssemblyStatusResult,
71
- AssemblyStatusResults,
72
- AssemblyStatusUpload,
73
- AssemblyStatusUploads,
74
- } from './alphalib/types/assemblyStatus.ts'
67
+ export type { AssemblyStatus } from './alphalib/types/assemblyStatus.ts'
75
68
  export * from './apiTypes.ts'
76
69
  export { InconsistentResponseError, ApiError }
77
70
 
@@ -680,6 +680,24 @@ export function hasError(
680
680
  return errorExists
681
681
  }
682
682
 
683
+ export function hasSpecificError(
684
+ assembly: AssemblyStatus | null | undefined,
685
+ errorType: string,
686
+ ): boolean {
687
+ if (!assembly) return false
688
+
689
+ if (hasError(assembly) && assembly.error === errorType) {
690
+ return true
691
+ }
692
+
693
+ if (typeof assembly === 'object' && assembly !== null && errorType in assembly) {
694
+ const candidate = Reflect.get(assembly, errorType)
695
+ return Boolean(candidate)
696
+ }
697
+
698
+ return false
699
+ }
700
+
683
701
  /**
684
702
  * Type guard to check if an assembly has an ok status
685
703
  */
@@ -211,12 +211,25 @@ export const robotMetaSchema = z.object({
211
211
 
212
212
  export type RobotMetaInput = z.input<typeof robotMetaSchema>
213
213
 
214
- export const interpolationSchemaFull = z
215
- .string()
216
- .regex(/^\${.+}$/, 'Must be a full interpolation string')
217
- export const interpolationSchemaPartial = z
218
- .string()
219
- .regex(/\${.+}/, 'Must be a partially interpolatable string')
214
+ // These schemas can be reproduced with z.string().regex(). However, this causes some issues.
215
+ // We use this in combination with unions. Internally Zod normalizes unions. A string schema and
216
+ // enums merged in some way. Both are validated. Normally, if a Zod union has errors, all of them
217
+ // are surfaced. However, if the regex isn’t match, and none of the enum values overlap, then the
218
+ // regex error is raised instead of the union error. As a result, the best error we could give back
219
+ // to the user, is that there’s a problem with the interpolation syntax. But really the other error
220
+ // is more useful in pretty much every case. To work around this, we use z.custom() instead, as Zod
221
+ // can’t normalize that.
222
+ const interpolationRegexFull = /^\${.+}$/
223
+ export const interpolationSchemaFull = z.custom<`\${${string}}`>(
224
+ (input) => typeof input === 'string' && interpolationRegexFull.test(input),
225
+ 'Must be a full interpolation string',
226
+ )
227
+ const interpolationRegexPartial = /\${.+}/
228
+ export const interpolationSchemaPartial = z.custom<string>(
229
+ (input) => typeof input === 'string' && interpolationRegexPartial.test(input),
230
+ 'Must be a partially interpolatable string',
231
+ )
232
+
220
233
  export const booleanStringSchema = z.enum(['true', 'false'])
221
234
 
222
235
  type InterpolatableTuple<Schemas extends readonly z.ZodTypeAny[]> = Schemas extends readonly [
@@ -277,9 +290,12 @@ export function interpolateRecursive<Schema extends z.ZodFirstPartySchemaTypes>(
277
290
 
278
291
  switch (def.typeName) {
279
292
  case z.ZodFirstPartyTypeKind.ZodBoolean:
280
- return z
281
- .union([interpolationSchemaFull, schema, booleanStringSchema])
282
- .transform((value) => value === true || value === false) as InterpolatableSchema<Schema>
293
+ return z.union([
294
+ interpolationSchemaFull,
295
+ z
296
+ .union([schema, booleanStringSchema])
297
+ .transform((value) => value === true || value === false),
298
+ ]) as InterpolatableSchema<Schema>
283
299
  case z.ZodFirstPartyTypeKind.ZodArray: {
284
300
  let replacement = z.array(interpolateRecursive(def.type), def)
285
301
 
@@ -631,7 +647,7 @@ export const robotFFmpeg = z.object({
631
647
  shortest: z.boolean().nullish(),
632
648
  filter_complex: z.union([z.string(), z.record(z.string())]).optional(),
633
649
  'level:v': z.union([z.string(), z.number()]).optional(),
634
- 'profile:v': z.union([z.number(), z.enum(['baseline', 'main', 'high'])]).optional(),
650
+ 'profile:v': z.union([z.number(), z.enum(['baseline', 'main', 'high', 'main10'])]).optional(),
635
651
  'qscale:a': z.number().optional(),
636
652
  'qscale:v': z.number().optional(),
637
653
  'x264-params': z.string().optional(),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod'
2
-
3
- import { interpolateRobot, type RobotMetaInput, robotBase } from './_instructions-primitives.ts'
2
+ import type { RobotMetaInput } from './_instructions-primitives.ts'
3
+ import { interpolateRobot, robotBase } from './_instructions-primitives.ts'
4
4
 
5
5
  // @ts-expect-error - AssemblySavejsonRobot is not ready yet @TODO please supply missing keys
6
6
  export const meta: RobotMetaInput = {
@@ -44,7 +44,8 @@ export const meta: RobotMetaInput = {
44
44
  },
45
45
  },
46
46
  },
47
- example_code_description: `If you have a form with 3 file input fields and want to concatenate the uploaded audios in a specific order, instruct Transloadit using the \`name\` attribute of each input field. Use this attribute as the value for the \`fields\` key in the JSON, and set \`as\` to \`audio_[[index]]\`. Transloadit will concatenate the files based on the ascending index order:`,
47
+ example_code_description:
48
+ 'If you have a form with 3 file input fields and want to concatenate the uploaded audios in a specific order, instruct Transloadit using the `name` attribute of each input field. Use this attribute as the value for the `fields` key in the JSON, and set `as` to `audio_[[index]]`. Transloadit will concatenate the files based on the ascending index order:',
48
49
  minimum_charge: 0,
49
50
  output_factor: 0.8,
50
51
  override_lvl1: 'Audio Encoding',
@@ -74,7 +75,7 @@ export const robotAudioConcatInstructionsSchema = robotBase
74
75
  result: z
75
76
  .boolean()
76
77
  .optional()
77
- .describe(`Whether the results of this Step should be present in the Assembly Status JSON`),
78
+ .describe('Whether the results of this Step should be present in the Assembly Status JSON'),
78
79
  robot: z.literal('/audio/concat').describe(`
79
80
  This Robot can concatenate an almost infinite number of audio files.
80
81
  `),
@@ -58,7 +58,7 @@ export const robotAudioEncodeInstructionsSchema = robotBase
58
58
  result: z
59
59
  .boolean()
60
60
  .optional()
61
- .describe(`Whether the results of this Step should be present in the Assembly Status JSON`),
61
+ .describe('Whether the results of this Step should be present in the Assembly Status JSON'),
62
62
  robot: z.literal('/audio/encode'),
63
63
  bitrate: bitrateSchema.optional().describe(`
64
64
  Bit rate of the resulting audio file, in bits per second. If not specified will default to the bit rate of the input audio file.
@@ -45,7 +45,8 @@ export const meta: RobotMetaInput = {
45
45
  },
46
46
  },
47
47
  },
48
- example_code_description: `If you have a form with 3 file input fields and wish to overlay the uploaded audios, instruct Transloadit using the \`name\` attribute of each input field. Use this attribute as the value for the \`fields\` key in the JSON, and set \`as\` to \`audio\`:`,
48
+ example_code_description:
49
+ 'If you have a form with 3 file input fields and wish to overlay the uploaded audios, instruct Transloadit using the `name` attribute of each input field. Use this attribute as the value for the `fields` key in the JSON, and set `as` to `audio`:',
49
50
  minimum_charge: 0,
50
51
  output_factor: 0.8,
51
52
  override_lvl1: 'Audio Encoding',
@@ -26,7 +26,8 @@ export const meta: RobotMetaInput = {
26
26
  },
27
27
  },
28
28
  },
29
- example_code_description: `Generate a 400×200 waveform in \`#0099cc\` color from an uploaded audio file:`,
29
+ example_code_description:
30
+ 'Generate a 400×200 waveform in `#0099cc` color from an uploaded audio file:',
30
31
  extended_description: `
31
32
  Here is an example waveform image:
32
33
 
@@ -26,7 +26,8 @@ export const meta: RobotMetaInput = {
26
26
  },
27
27
  },
28
28
  },
29
- example_code_description: `Import files from the \`path/to/files\` directory and its subdirectories:`,
29
+ example_code_description:
30
+ 'Import files from the `path/to/files` directory and its subdirectories:',
30
31
  has_small_icon: true,
31
32
  minimum_charge: 0,
32
33
  output_factor: 1,
@@ -18,7 +18,7 @@ export const meta: RobotMetaInput = {
18
18
  },
19
19
  },
20
20
  },
21
- example_code_description: `Export uploaded files to \`my_target_folder\` on Azure:`,
21
+ example_code_description: 'Export uploaded files to `my_target_folder` on Azure:',
22
22
  has_small_icon: true,
23
23
  minimum_charge: 0,
24
24
  output_factor: 1,
@@ -26,7 +26,8 @@ export const meta: RobotMetaInput = {
26
26
  },
27
27
  },
28
28
  },
29
- example_code_description: `Import files from the \`path/to/files\` directory and its subdirectories:`,
29
+ example_code_description:
30
+ 'Import files from the `path/to/files` directory and its subdirectories:',
30
31
  has_small_icon: true,
31
32
  minimum_charge: 0,
32
33
  output_factor: 1,
@@ -18,7 +18,7 @@ export const meta: RobotMetaInput = {
18
18
  },
19
19
  },
20
20
  },
21
- example_code_description: `Export uploaded files to \`my_target_folder\` on Backblaze:`,
21
+ example_code_description: 'Export uploaded files to `my_target_folder` on Backblaze:',
22
22
  extended_description: `
23
23
  ## Access
24
24
 
@@ -26,7 +26,8 @@ export const meta: RobotMetaInput = {
26
26
  },
27
27
  },
28
28
  },
29
- example_code_description: `Import files from the \`path/to/files\` directory and its subdirectories:`,
29
+ example_code_description:
30
+ 'Import files from the `path/to/files` directory and its subdirectories:',
30
31
  minimum_charge: 0,
31
32
  output_factor: 1,
32
33
  override_lvl1: 'File Importing',
@@ -23,7 +23,7 @@ export const meta: RobotMetaInput = {
23
23
  },
24
24
  },
25
25
  },
26
- example_code_description: `Export uploaded files to \`my_target_folder\` on Rackspace Cloud Files:`,
26
+ example_code_description: 'Export uploaded files to `my_target_folder` on Rackspace Cloud Files:',
27
27
  extended_description: `
28
28
  <a id="export-to-rackspace-cloudfiles" aria-hidden="true"></a>
29
29
 
@@ -28,7 +28,8 @@ export const meta: RobotMetaInput = {
28
28
  },
29
29
  },
30
30
  },
31
- example_code_description: `Import files from the \`path/to/files\` directory and its subdirectories:`,
31
+ example_code_description:
32
+ 'Import files from the `path/to/files` directory and its subdirectories:',
32
33
  has_small_icon: true,
33
34
  minimum_charge: 0,
34
35
  output_factor: 1,
@@ -23,7 +23,7 @@ export const meta: RobotMetaInput = {
23
23
  },
24
24
  },
25
25
  },
26
- example_code_description: `Export uploaded files to \`my_target_folder\` on cloudflare R2:`,
26
+ example_code_description: 'Export uploaded files to `my_target_folder` on cloudflare R2:',
27
27
  extended_description: `
28
28
  The URL to the result file will be returned in the <dfn>Assembly Status JSON</dfn>.
29
29
  `,
@@ -28,7 +28,8 @@ export const meta: RobotMetaInput = {
28
28
  },
29
29
  },
30
30
  },
31
- example_code_description: `Import files from the \`path/to/files\` directory and its subdirectories:`,
31
+ example_code_description:
32
+ 'Import files from the `path/to/files` directory and its subdirectories:',
32
33
  has_small_icon: true,
33
34
  minimum_charge: 0,
34
35
  output_factor: 1,
@@ -23,7 +23,7 @@ export const meta: RobotMetaInput = {
23
23
  },
24
24
  },
25
25
  },
26
- example_code_description: `Export uploaded files to \`my_target_folder\` on DigitalOcean Spaces:`,
26
+ example_code_description: 'Export uploaded files to `my_target_folder` on DigitalOcean Spaces:',
27
27
  has_small_icon: true,
28
28
  minimum_charge: 0,
29
29
  output_factor: 1,
@@ -172,7 +172,7 @@ If you set this to \`false\`, the robot will not emit files as they become avail
172
172
 
173
173
  Also, extracted pages will be resized a lot faster as they are sent off to other machines for the resizing. This is especially useful for large documents with many pages to get up to 20 times faster processing.
174
174
 
175
- Turbo mode increases pricing, though, in that the input document's file size is added for every extracted page. There are no performance benefits nor increased charges for single-page documents.
175
+ Turbo Mode increases pricing, though, in that the input document's file size is added for every extracted page. There are no performance benefits nor increased charges for single-page documents.
176
176
  `),
177
177
  })
178
178
  .strict()
@@ -23,7 +23,8 @@ export const meta: RobotMetaInput = {
23
23
  },
24
24
  },
25
25
  },
26
- example_code_description: `Import files from the \`path/to/files\` directory and its subdirectories:`,
26
+ example_code_description:
27
+ 'Import files from the `path/to/files` directory and its subdirectories:',
27
28
  has_small_icon: true,
28
29
  minimum_charge: 0,
29
30
  output_factor: 1,
@@ -18,7 +18,7 @@ export const meta: RobotMetaInput = {
18
18
  },
19
19
  },
20
20
  },
21
- example_code_description: `Export uploaded files to \`my_target_folder\` on Dropbox:`,
21
+ example_code_description: 'Export uploaded files to `my_target_folder` on Dropbox:',
22
22
  has_small_icon: true,
23
23
  minimum_charge: 0,
24
24
  output_factor: 1,
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod'
2
-
3
- import { interpolateRobot, type RobotMetaInput, robotBase } from './_instructions-primitives.ts'
2
+ import type { RobotMetaInput } from './_instructions-primitives.ts'
3
+ import { interpolateRobot, robotBase } from './_instructions-primitives.ts'
4
4
 
5
5
  export const meta: RobotMetaInput = {
6
6
  allowed_for_url_transform: false,
@@ -87,6 +87,15 @@ A possible array member is only \`"meta"\`.
87
87
  You might see an error when trying to extract metadata from the files inside your archive. This happens, for example, for files with a size of zero bytes. Setting this to \`true\` will cause the <dfn>Robot</dfn> to not stop the file decompression (and the entire <dfn>Assembly</dfn>) when that happens.
88
88
 
89
89
  To keep backwards compatibility, setting this parameter to \`true\` will set it to \`["meta"]\` internally.
90
+ `),
91
+ stack: z
92
+ .enum(['v1', 'v2'])
93
+ .default('v1')
94
+ .describe(`
95
+ Temporary parameter for backwards compatibility while we roll out new underlying tooling for the robot.
96
+
97
+ - \`v1\` uses the old decompression.
98
+ - \`v2\` uses the new decompression with better support for unicode and nested archives.
90
99
  `),
91
100
  })
92
101
  .strict()
@@ -42,12 +42,40 @@ While theoretically possible, you could use [🤖/file/serve](/docs/robots/file-
42
42
 
43
43
  Also consider configuring caching headers and cache-control directives to control how content is cached and invalidated on the CDN edge servers, balancing between freshness and efficiency.
44
44
 
45
- More information on:
45
+ ## Smart CDN Security with Signature Authentication
46
46
 
47
- - [Content Delivery](/services/content-delivery/).
48
- - [🤖/file/serve](/docs/robots/file-serve/) pricing.
49
- - [🤖/tlcdn/deliver](/docs/robots/tlcdn-deliver/) pricing.
50
- - [File Preview Feature](/blog/2024/06/file-preview-with-smart-cdn/) blog post.
47
+ You can leverage [Signature Authentication](/docs/api/authentication/#smart-cdn) to avoid abuse of our encoding platform. Below is a quick Node.js example using our Node SDK, but there are [examples for other languages and SDKs](/docs/api/authentication/#example-code) as well.
48
+
49
+ \`\`\`javascript
50
+ // yarn add transloadit
51
+ // or
52
+ // npm install --save transloadit
53
+
54
+ import { Transloadit } from 'transloadit'
55
+
56
+ const transloadit = new Transloadit({
57
+ authKey: 'YOUR_TRANSLOADIT_KEY',
58
+ authSecret: 'YOUR_TRANSLOADIT_SECRET',
59
+ })
60
+
61
+ const url = transloadit.getSignedSmartCDNUrl({
62
+ workspace: 'YOUR_WORKSPACE',
63
+ template: 'YOUR_TEMPLATE',
64
+ input: 'image.png',
65
+ urlParams: { height: 100, width: 100 },
66
+ })
67
+
68
+ console.log(url)
69
+ \`\`\`
70
+
71
+ This will generate a signed Smart CDN URL that includes authentication parameters, preventing unauthorized access to your transformation endpoints.
72
+
73
+ ## More information
74
+
75
+ - [Content Delivery](/services/content-delivery/)
76
+ - [🤖/file/serve](/docs/robots/file-serve/) pricing
77
+ - [🤖/tlcdn/deliver](/docs/robots/tlcdn-deliver/) pricing
78
+ - [File Preview Feature](/blog/2024/06/file-preview-with-smart-cdn/) blog post
51
79
  `),
52
80
  headers: z
53
81
  .record(z.string())
@@ -6,7 +6,8 @@ import { interpolateRobot, robotBase, robotUse } from './_instructions-primitive
6
6
  export const meta: RobotMetaInput = {
7
7
  allowed_for_url_transform: true,
8
8
  bytescount: 4,
9
- description: `/file/verify is a simple Robot that helps ensure that the files you upload are of the type you initially intended. This is especially useful when handling user-generated content, where you may not want to run certain Steps in your Template if the user hasn’t uploaded a file of the correct type. Another use case for /file/verify is when a user uploads a ZIP file, but we find that it has a few damaged files inside when we extract it. Perhaps you don’t want to error out, but only send the good files to a next processing step. With /file/verify, you can do exactly that (assuming the default of \`error_on_decline\`: \`true\`).`,
9
+ description:
10
+ '/file/verify is a simple Robot that helps ensure that the files you upload are of the type you initially intended. This is especially useful when handling user-generated content, where you may not want to run certain Steps in your Template if the user hasn’t uploaded a file of the correct type. Another use case for /file/verify is when a user uploads a ZIP file, but we find that it has a few damaged files inside when we extract it. Perhaps you don’t want to error out, but only send the good files to a next processing step. With /file/verify, you can do exactly that (assuming the default of `error_on_decline`: `true`).',
10
11
  discount_factor: 0.25,
11
12
  discount_pct: 75,
12
13
  example_code: {
@@ -23,7 +23,8 @@ export const meta: RobotMetaInput = {
23
23
  },
24
24
  },
25
25
  },
26
- example_code_description: `Import files from the \`path/to/files\` directory and its subdirectories:`,
26
+ example_code_description:
27
+ 'Import files from the `path/to/files` directory and its subdirectories:',
27
28
  minimum_charge: 0,
28
29
  output_factor: 1,
29
30
  override_lvl1: 'File Importing',
@@ -18,7 +18,7 @@ export const meta: RobotMetaInput = {
18
18
  },
19
19
  },
20
20
  },
21
- example_code_description: `Export uploaded files to \`my_target_folder\` on an FTP server:`,
21
+ example_code_description: 'Export uploaded files to `my_target_folder` on an FTP server:',
22
22
  minimum_charge: 0,
23
23
  output_factor: 1,
24
24
  override_lvl1: 'File Exporting',
@@ -27,7 +27,8 @@ export const meta: RobotMetaInput = {
27
27
  },
28
28
  },
29
29
  },
30
- example_code_description: `Import files from the \`path/to/files\` directory and its subdirectories:`,
30
+ example_code_description:
31
+ 'Import files from the `path/to/files` directory and its subdirectories:',
31
32
  has_small_icon: true,
32
33
  minimum_charge: 0,
33
34
  output_factor: 1,
@@ -18,7 +18,7 @@ export const meta: RobotMetaInput = {
18
18
  },
19
19
  },
20
20
  },
21
- example_code_description: `Export uploaded files to \`my_target_folder\` on Google Storage:`,
21
+ example_code_description: 'Export uploaded files to `my_target_folder` on Google Storage:',
22
22
  has_small_icon: true,
23
23
  minimum_charge: 0,
24
24
  output_factor: 1,
@@ -51,7 +51,7 @@ The URL to the exported file in your Google bucket will be presented in the Tran
51
51
  result: z
52
52
  .boolean()
53
53
  .optional()
54
- .describe(`Whether the results of this Step should be present in the Assembly Status JSON`),
54
+ .describe('Whether the results of this Step should be present in the Assembly Status JSON'),
55
55
  credentials: z.string().describe(`
56
56
  Create a new [Google service account](https://cloud.google.com/storage/docs/authentication). Set its role to "Storage Object Creator". Choose "JSON" for the key file format and download it to your computer. You will need to upload this file when creating your <dfn>Template Credentials</dfn>.
57
57