@linqapp/sdk 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.1 (2026-04-07)
4
+
5
+ Full Changelog: [v0.16.0...v0.16.1](https://github.com/linq-team/linq-node/compare/v0.16.0...v0.16.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * add SVG support to synapse attachments ([f50e954](https://github.com/linq-team/linq-node/commit/f50e954709037792e944e0343ceb776f522cc7f7))
10
+
3
11
  ## 0.16.0 (2026-04-04)
4
12
 
5
13
  Full Changelog: [v0.15.1...v0.16.0](https://github.com/linq-team/linq-node/compare/v0.15.1...v0.16.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linqapp/sdk",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "The official TypeScript library for the Linq API V3 API",
5
5
  "author": "Linq API V3 <support@linq.com>",
6
6
  "types": "./index.d.ts",
@@ -167,27 +167,39 @@ export declare class Attachments extends APIResource {
167
167
  * Supported MIME types for file attachments and media URLs.
168
168
  *
169
169
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
170
- * image/tiff, image/bmp
170
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
171
171
  *
172
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
172
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
173
+ * video/x-msvideo, video/3gpp
173
174
  *
174
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
175
- * audio/aiff, audio/aac, audio/amr
175
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
176
+ * audio/aac, audio/midi, audio/amr
176
177
  *
177
178
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
178
- * text/csv, text/html, text/calendar, application/msword,
179
+ * text/csv, text/html, text/calendar, text/xml, application/json,
180
+ * application/msword,
179
181
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
180
182
  * application/vnd.ms-excel,
181
183
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
182
184
  * application/vnd.ms-powerpoint,
183
185
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
184
- * application/vnd.apple.pages, application/vnd.apple.numbers,
185
- * application/vnd.apple.keynote, application/epub+zip, application/zip
186
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
187
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
188
+ * application/x-gzip
186
189
  *
187
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
188
- * rejected.
190
+ * **Deprecated (accepted but transcoded):**
191
+ *
192
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
193
+ * will be delivered as audio/mpeg.
194
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
195
+ * will be delivered as audio/x-m4a.
196
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
197
+ * audio/aiff will be delivered as audio/x-aiff.
198
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
199
+ *
200
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
189
201
  */
190
- export type SupportedContentType = 'image/jpeg' | 'image/jpg' | 'image/png' | 'image/gif' | 'image/heic' | 'image/heif' | 'image/tiff' | 'image/bmp' | 'image/x-ms-bmp' | 'video/mp4' | 'video/quicktime' | 'video/mpeg' | 'video/x-m4v' | 'video/3gpp' | 'audio/mpeg' | 'audio/mp3' | 'audio/mp4' | 'audio/x-m4a' | 'audio/m4a' | 'audio/x-caf' | 'audio/wav' | 'audio/x-wav' | 'audio/aiff' | 'audio/x-aiff' | 'audio/aac' | 'audio/x-aac' | 'audio/amr' | 'application/pdf' | 'text/plain' | 'text/markdown' | 'text/vcard' | 'text/x-vcard' | 'text/rtf' | 'application/rtf' | 'text/csv' | 'text/html' | 'text/calendar' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'application/vnd.apple.pages' | 'application/x-iwork-pages-sffpages' | 'application/vnd.apple.numbers' | 'application/x-iwork-numbers-sffnumbers' | 'application/vnd.apple.keynote' | 'application/x-iwork-keynote-sffkey' | 'application/epub+zip' | 'application/zip' | 'application/x-zip-compressed';
202
+ export type SupportedContentType = 'image/jpeg' | 'image/png' | 'image/gif' | 'image/heic' | 'image/heif' | 'image/tiff' | 'image/bmp' | 'image/svg+xml' | 'image/webp' | 'image/x-icon' | 'video/mp4' | 'video/quicktime' | 'video/mpeg' | 'video/mpeg2' | 'video/x-m4v' | 'video/x-msvideo' | 'video/3gpp' | 'audio/mpeg' | 'audio/mp3' | 'audio/x-m4a' | 'audio/mp4' | 'audio/x-caf' | 'audio/x-wav' | 'audio/x-aiff' | 'audio/aiff' | 'audio/aac' | 'audio/midi' | 'audio/amr' | 'application/pdf' | 'text/plain' | 'text/markdown' | 'text/vcard' | 'text/rtf' | 'text/csv' | 'text/html' | 'text/calendar' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'application/x-iwork-pages-sffpages' | 'application/x-iwork-numbers-sffnumbers' | 'application/x-iwork-keynote-sffkey' | 'application/epub+zip' | 'text/xml' | 'application/json' | 'application/zip' | 'application/x-gzip';
191
203
  export interface AttachmentCreateResponse {
192
204
  /**
193
205
  * Unique identifier for the attachment (for status checks via GET
@@ -230,25 +242,37 @@ export interface AttachmentRetrieveResponse {
230
242
  * Supported MIME types for file attachments and media URLs.
231
243
  *
232
244
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
233
- * image/tiff, image/bmp
245
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
234
246
  *
235
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
247
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
248
+ * video/x-msvideo, video/3gpp
236
249
  *
237
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
238
- * audio/aiff, audio/aac, audio/amr
250
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
251
+ * audio/aac, audio/midi, audio/amr
239
252
  *
240
253
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
241
- * text/csv, text/html, text/calendar, application/msword,
254
+ * text/csv, text/html, text/calendar, text/xml, application/json,
255
+ * application/msword,
242
256
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
243
257
  * application/vnd.ms-excel,
244
258
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
245
259
  * application/vnd.ms-powerpoint,
246
260
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
247
- * application/vnd.apple.pages, application/vnd.apple.numbers,
248
- * application/vnd.apple.keynote, application/epub+zip, application/zip
261
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
262
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
263
+ * application/x-gzip
249
264
  *
250
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
251
- * rejected.
265
+ * **Deprecated (accepted but transcoded):**
266
+ *
267
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
268
+ * will be delivered as audio/mpeg.
269
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
270
+ * will be delivered as audio/x-m4a.
271
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
272
+ * audio/aiff will be delivered as audio/x-aiff.
273
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
274
+ *
275
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
252
276
  */
253
277
  content_type: SupportedContentType;
254
278
  /**
@@ -277,25 +301,37 @@ export interface AttachmentCreateParams {
277
301
  * Supported MIME types for file attachments and media URLs.
278
302
  *
279
303
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
280
- * image/tiff, image/bmp
304
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
281
305
  *
282
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
306
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
307
+ * video/x-msvideo, video/3gpp
283
308
  *
284
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
285
- * audio/aiff, audio/aac, audio/amr
309
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
310
+ * audio/aac, audio/midi, audio/amr
286
311
  *
287
312
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
288
- * text/csv, text/html, text/calendar, application/msword,
313
+ * text/csv, text/html, text/calendar, text/xml, application/json,
314
+ * application/msword,
289
315
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
290
316
  * application/vnd.ms-excel,
291
317
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
292
318
  * application/vnd.ms-powerpoint,
293
319
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
294
- * application/vnd.apple.pages, application/vnd.apple.numbers,
295
- * application/vnd.apple.keynote, application/epub+zip, application/zip
320
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
321
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
322
+ * application/x-gzip
296
323
  *
297
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
298
- * rejected.
324
+ * **Deprecated (accepted but transcoded):**
325
+ *
326
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
327
+ * will be delivered as audio/mpeg.
328
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
329
+ * will be delivered as audio/x-m4a.
330
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
331
+ * audio/aiff will be delivered as audio/x-aiff.
332
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
333
+ *
334
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
299
335
  */
300
336
  content_type: SupportedContentType;
301
337
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"attachments.d.mts","sourceRoot":"","sources":["../src/resources/attachments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkFG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGjG;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,oBAAoB,GAC5B,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAA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IAEnB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE1C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,YAAY,EAAE,oBAAoB,CAAC;IAEnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -167,27 +167,39 @@ export declare class Attachments extends APIResource {
167
167
  * Supported MIME types for file attachments and media URLs.
168
168
  *
169
169
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
170
- * image/tiff, image/bmp
170
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
171
171
  *
172
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
172
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
173
+ * video/x-msvideo, video/3gpp
173
174
  *
174
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
175
- * audio/aiff, audio/aac, audio/amr
175
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
176
+ * audio/aac, audio/midi, audio/amr
176
177
  *
177
178
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
178
- * text/csv, text/html, text/calendar, application/msword,
179
+ * text/csv, text/html, text/calendar, text/xml, application/json,
180
+ * application/msword,
179
181
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
180
182
  * application/vnd.ms-excel,
181
183
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
182
184
  * application/vnd.ms-powerpoint,
183
185
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
184
- * application/vnd.apple.pages, application/vnd.apple.numbers,
185
- * application/vnd.apple.keynote, application/epub+zip, application/zip
186
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
187
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
188
+ * application/x-gzip
186
189
  *
187
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
188
- * rejected.
190
+ * **Deprecated (accepted but transcoded):**
191
+ *
192
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
193
+ * will be delivered as audio/mpeg.
194
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
195
+ * will be delivered as audio/x-m4a.
196
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
197
+ * audio/aiff will be delivered as audio/x-aiff.
198
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
199
+ *
200
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
189
201
  */
190
- export type SupportedContentType = 'image/jpeg' | 'image/jpg' | 'image/png' | 'image/gif' | 'image/heic' | 'image/heif' | 'image/tiff' | 'image/bmp' | 'image/x-ms-bmp' | 'video/mp4' | 'video/quicktime' | 'video/mpeg' | 'video/x-m4v' | 'video/3gpp' | 'audio/mpeg' | 'audio/mp3' | 'audio/mp4' | 'audio/x-m4a' | 'audio/m4a' | 'audio/x-caf' | 'audio/wav' | 'audio/x-wav' | 'audio/aiff' | 'audio/x-aiff' | 'audio/aac' | 'audio/x-aac' | 'audio/amr' | 'application/pdf' | 'text/plain' | 'text/markdown' | 'text/vcard' | 'text/x-vcard' | 'text/rtf' | 'application/rtf' | 'text/csv' | 'text/html' | 'text/calendar' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'application/vnd.apple.pages' | 'application/x-iwork-pages-sffpages' | 'application/vnd.apple.numbers' | 'application/x-iwork-numbers-sffnumbers' | 'application/vnd.apple.keynote' | 'application/x-iwork-keynote-sffkey' | 'application/epub+zip' | 'application/zip' | 'application/x-zip-compressed';
202
+ export type SupportedContentType = 'image/jpeg' | 'image/png' | 'image/gif' | 'image/heic' | 'image/heif' | 'image/tiff' | 'image/bmp' | 'image/svg+xml' | 'image/webp' | 'image/x-icon' | 'video/mp4' | 'video/quicktime' | 'video/mpeg' | 'video/mpeg2' | 'video/x-m4v' | 'video/x-msvideo' | 'video/3gpp' | 'audio/mpeg' | 'audio/mp3' | 'audio/x-m4a' | 'audio/mp4' | 'audio/x-caf' | 'audio/x-wav' | 'audio/x-aiff' | 'audio/aiff' | 'audio/aac' | 'audio/midi' | 'audio/amr' | 'application/pdf' | 'text/plain' | 'text/markdown' | 'text/vcard' | 'text/rtf' | 'text/csv' | 'text/html' | 'text/calendar' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'application/x-iwork-pages-sffpages' | 'application/x-iwork-numbers-sffnumbers' | 'application/x-iwork-keynote-sffkey' | 'application/epub+zip' | 'text/xml' | 'application/json' | 'application/zip' | 'application/x-gzip';
191
203
  export interface AttachmentCreateResponse {
192
204
  /**
193
205
  * Unique identifier for the attachment (for status checks via GET
@@ -230,25 +242,37 @@ export interface AttachmentRetrieveResponse {
230
242
  * Supported MIME types for file attachments and media URLs.
231
243
  *
232
244
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
233
- * image/tiff, image/bmp
245
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
234
246
  *
235
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
247
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
248
+ * video/x-msvideo, video/3gpp
236
249
  *
237
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
238
- * audio/aiff, audio/aac, audio/amr
250
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
251
+ * audio/aac, audio/midi, audio/amr
239
252
  *
240
253
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
241
- * text/csv, text/html, text/calendar, application/msword,
254
+ * text/csv, text/html, text/calendar, text/xml, application/json,
255
+ * application/msword,
242
256
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
243
257
  * application/vnd.ms-excel,
244
258
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
245
259
  * application/vnd.ms-powerpoint,
246
260
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
247
- * application/vnd.apple.pages, application/vnd.apple.numbers,
248
- * application/vnd.apple.keynote, application/epub+zip, application/zip
261
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
262
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
263
+ * application/x-gzip
249
264
  *
250
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
251
- * rejected.
265
+ * **Deprecated (accepted but transcoded):**
266
+ *
267
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
268
+ * will be delivered as audio/mpeg.
269
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
270
+ * will be delivered as audio/x-m4a.
271
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
272
+ * audio/aiff will be delivered as audio/x-aiff.
273
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
274
+ *
275
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
252
276
  */
253
277
  content_type: SupportedContentType;
254
278
  /**
@@ -277,25 +301,37 @@ export interface AttachmentCreateParams {
277
301
  * Supported MIME types for file attachments and media URLs.
278
302
  *
279
303
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
280
- * image/tiff, image/bmp
304
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
281
305
  *
282
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
306
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
307
+ * video/x-msvideo, video/3gpp
283
308
  *
284
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
285
- * audio/aiff, audio/aac, audio/amr
309
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
310
+ * audio/aac, audio/midi, audio/amr
286
311
  *
287
312
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
288
- * text/csv, text/html, text/calendar, application/msword,
313
+ * text/csv, text/html, text/calendar, text/xml, application/json,
314
+ * application/msword,
289
315
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
290
316
  * application/vnd.ms-excel,
291
317
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
292
318
  * application/vnd.ms-powerpoint,
293
319
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
294
- * application/vnd.apple.pages, application/vnd.apple.numbers,
295
- * application/vnd.apple.keynote, application/epub+zip, application/zip
320
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
321
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
322
+ * application/x-gzip
296
323
  *
297
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
298
- * rejected.
324
+ * **Deprecated (accepted but transcoded):**
325
+ *
326
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
327
+ * will be delivered as audio/mpeg.
328
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
329
+ * will be delivered as audio/x-m4a.
330
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
331
+ * audio/aiff will be delivered as audio/x-aiff.
332
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
333
+ *
334
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
299
335
  */
300
336
  content_type: SupportedContentType;
301
337
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../src/resources/attachments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkFG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGjG;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,oBAAoB,GAC5B,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,iBAAiB,GACjB,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,WAA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AsB;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,YAAY,EAAE,oBAAoB,CAAC;IAEnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -177,61 +177,72 @@ export class Attachments extends APIResource {
177
177
  * Supported MIME types for file attachments and media URLs.
178
178
  *
179
179
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
180
- * image/tiff, image/bmp
180
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
181
181
  *
182
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
182
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
183
+ * video/x-msvideo, video/3gpp
183
184
  *
184
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
185
- * audio/aiff, audio/aac, audio/amr
185
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
186
+ * audio/aac, audio/midi, audio/amr
186
187
  *
187
188
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
188
- * text/csv, text/html, text/calendar, application/msword,
189
+ * text/csv, text/html, text/calendar, text/xml, application/json,
190
+ * application/msword,
189
191
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
190
192
  * application/vnd.ms-excel,
191
193
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
192
194
  * application/vnd.ms-powerpoint,
193
195
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
194
- * application/vnd.apple.pages, application/vnd.apple.numbers,
195
- * application/vnd.apple.keynote, application/epub+zip, application/zip
196
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
197
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
198
+ * application/x-gzip
196
199
  *
197
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
198
- * rejected.
200
+ * **Deprecated (accepted but transcoded):**
201
+ *
202
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
203
+ * will be delivered as audio/mpeg.
204
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
205
+ * will be delivered as audio/x-m4a.
206
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
207
+ * audio/aiff will be delivered as audio/x-aiff.
208
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
209
+ *
210
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
199
211
  */
200
212
  export type SupportedContentType =
201
213
  | 'image/jpeg'
202
- | 'image/jpg'
203
214
  | 'image/png'
204
215
  | 'image/gif'
205
216
  | 'image/heic'
206
217
  | 'image/heif'
207
218
  | 'image/tiff'
208
219
  | 'image/bmp'
209
- | 'image/x-ms-bmp'
220
+ | 'image/svg+xml'
221
+ | 'image/webp'
222
+ | 'image/x-icon'
210
223
  | 'video/mp4'
211
224
  | 'video/quicktime'
212
225
  | 'video/mpeg'
226
+ | 'video/mpeg2'
213
227
  | 'video/x-m4v'
228
+ | 'video/x-msvideo'
214
229
  | 'video/3gpp'
215
230
  | 'audio/mpeg'
216
231
  | 'audio/mp3'
217
- | 'audio/mp4'
218
232
  | 'audio/x-m4a'
219
- | 'audio/m4a'
233
+ | 'audio/mp4'
220
234
  | 'audio/x-caf'
221
- | 'audio/wav'
222
235
  | 'audio/x-wav'
223
- | 'audio/aiff'
224
236
  | 'audio/x-aiff'
237
+ | 'audio/aiff'
225
238
  | 'audio/aac'
226
- | 'audio/x-aac'
239
+ | 'audio/midi'
227
240
  | 'audio/amr'
228
241
  | 'application/pdf'
229
242
  | 'text/plain'
230
243
  | 'text/markdown'
231
244
  | 'text/vcard'
232
- | 'text/x-vcard'
233
245
  | 'text/rtf'
234
- | 'application/rtf'
235
246
  | 'text/csv'
236
247
  | 'text/html'
237
248
  | 'text/calendar'
@@ -241,15 +252,14 @@ export type SupportedContentType =
241
252
  | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
242
253
  | 'application/vnd.ms-powerpoint'
243
254
  | 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
244
- | 'application/vnd.apple.pages'
245
255
  | 'application/x-iwork-pages-sffpages'
246
- | 'application/vnd.apple.numbers'
247
256
  | 'application/x-iwork-numbers-sffnumbers'
248
- | 'application/vnd.apple.keynote'
249
257
  | 'application/x-iwork-keynote-sffkey'
250
258
  | 'application/epub+zip'
259
+ | 'text/xml'
260
+ | 'application/json'
251
261
  | 'application/zip'
252
- | 'application/x-zip-compressed';
262
+ | 'application/x-gzip';
253
263
 
254
264
  export interface AttachmentCreateResponse {
255
265
  /**
@@ -298,25 +308,37 @@ export interface AttachmentRetrieveResponse {
298
308
  * Supported MIME types for file attachments and media URLs.
299
309
  *
300
310
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
301
- * image/tiff, image/bmp
311
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
302
312
  *
303
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
313
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
314
+ * video/x-msvideo, video/3gpp
304
315
  *
305
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
306
- * audio/aiff, audio/aac, audio/amr
316
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
317
+ * audio/aac, audio/midi, audio/amr
307
318
  *
308
319
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
309
- * text/csv, text/html, text/calendar, application/msword,
320
+ * text/csv, text/html, text/calendar, text/xml, application/json,
321
+ * application/msword,
310
322
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
311
323
  * application/vnd.ms-excel,
312
324
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
313
325
  * application/vnd.ms-powerpoint,
314
326
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
315
- * application/vnd.apple.pages, application/vnd.apple.numbers,
316
- * application/vnd.apple.keynote, application/epub+zip, application/zip
327
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
328
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
329
+ * application/x-gzip
317
330
  *
318
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
319
- * rejected.
331
+ * **Deprecated (accepted but transcoded):**
332
+ *
333
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
334
+ * will be delivered as audio/mpeg.
335
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
336
+ * will be delivered as audio/x-m4a.
337
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
338
+ * audio/aiff will be delivered as audio/x-aiff.
339
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
340
+ *
341
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
320
342
  */
321
343
  content_type: SupportedContentType;
322
344
 
@@ -351,25 +373,37 @@ export interface AttachmentCreateParams {
351
373
  * Supported MIME types for file attachments and media URLs.
352
374
  *
353
375
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
354
- * image/tiff, image/bmp
376
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
355
377
  *
356
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
378
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
379
+ * video/x-msvideo, video/3gpp
357
380
  *
358
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
359
- * audio/aiff, audio/aac, audio/amr
381
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
382
+ * audio/aac, audio/midi, audio/amr
360
383
  *
361
384
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
362
- * text/csv, text/html, text/calendar, application/msword,
385
+ * text/csv, text/html, text/calendar, text/xml, application/json,
386
+ * application/msword,
363
387
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
364
388
  * application/vnd.ms-excel,
365
389
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
366
390
  * application/vnd.ms-powerpoint,
367
391
  * application/vnd.openxmlformats-officedocument.presentationml.presentation,
368
- * application/vnd.apple.pages, application/vnd.apple.numbers,
369
- * application/vnd.apple.keynote, application/epub+zip, application/zip
392
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
393
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
394
+ * application/x-gzip
370
395
  *
371
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
372
- * rejected.
396
+ * **Deprecated (accepted but transcoded):**
397
+ *
398
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
399
+ * will be delivered as audio/mpeg.
400
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
401
+ * will be delivered as audio/x-m4a.
402
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
403
+ * audio/aiff will be delivered as audio/x-aiff.
404
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
405
+ *
406
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
373
407
  */
374
408
  content_type: SupportedContentType;
375
409
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.16.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.16.0";
1
+ export declare const VERSION = "0.16.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.16.0";
1
+ export declare const VERSION = "0.16.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.16.0'; // x-release-please-version
4
+ exports.VERSION = '0.16.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.16.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map