@linqapp/sdk 0.16.0 → 0.16.2

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,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.2 (2026-04-09)
4
+
5
+ Full Changelog: [v0.16.1...v0.16.2](https://github.com/linq-team/linq-node/compare/v0.16.1...v0.16.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **api-service:** add created_at and make sent_at nullable in SentMessage ([98ca7d9](https://github.com/linq-team/linq-node/commit/98ca7d95849f8520525aa03c43c94468653fb17d))
10
+ * block SMS group participant changes and fix e2e test failures ([2f0e9eb](https://github.com/linq-team/linq-node/commit/2f0e9eb19e63c2c9e5ea86c1d41e7d32b39bcf6d))
11
+
12
+
13
+ ### Chores
14
+
15
+ * **internal:** codegen related update ([878ea23](https://github.com/linq-team/linq-node/commit/878ea2329a5ade428dc8001059d1c3a1de7bfaaf))
16
+
17
+ ## 0.16.1 (2026-04-07)
18
+
19
+ Full Changelog: [v0.16.0...v0.16.1](https://github.com/linq-team/linq-node/compare/v0.16.0...v0.16.1)
20
+
21
+ ### Bug Fixes
22
+
23
+ * add SVG support to synapse attachments ([f50e954](https://github.com/linq-team/linq-node/commit/f50e954709037792e944e0343ceb776f522cc7f7))
24
+
3
25
  ## 0.16.0 (2026-04-04)
4
26
 
5
27
  Full Changelog: [v0.15.1...v0.16.0](https://github.com/linq-team/linq-node/compare/v0.15.1...v0.16.0)
@@ -11,10 +11,10 @@ exports.readEnv = void 0;
11
11
  */
12
12
  const readEnv = (env) => {
13
13
  if (typeof globalThis.process !== 'undefined') {
14
- return globalThis.process.env?.[env]?.trim() ?? undefined;
14
+ return globalThis.process.env?.[env]?.trim() || undefined;
15
15
  }
16
16
  if (typeof globalThis.Deno !== 'undefined') {
17
- return globalThis.Deno.env?.get?.(env)?.trim();
17
+ return globalThis.Deno.env?.get?.(env)?.trim() || undefined;
18
18
  }
19
19
  return undefined;
20
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AARW,QAAA,OAAO,WAQlB"}
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACvE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AARW,QAAA,OAAO,WAQlB"}
@@ -8,10 +8,10 @@
8
8
  */
9
9
  export const readEnv = (env) => {
10
10
  if (typeof globalThis.process !== 'undefined') {
11
- return globalThis.process.env?.[env]?.trim() ?? undefined;
11
+ return globalThis.process.env?.[env]?.trim() || undefined;
12
12
  }
13
13
  if (typeof globalThis.Deno !== 'undefined') {
14
- return globalThis.Deno.env?.get?.(env)?.trim();
14
+ return globalThis.Deno.env?.get?.(env)?.trim() || undefined;
15
15
  }
16
16
  return undefined;
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"env.mjs","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"env.mjs","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACvE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linqapp/sdk",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
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,43 @@ 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
+ * **Transcoded on delivery:**
191
+ *
192
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
193
+ *
194
+ * **Deprecated (accepted but transcoded):**
195
+ *
196
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
197
+ * will be delivered as audio/mpeg.
198
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
199
+ * will be delivered as audio/x-m4a.
200
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
201
+ * audio/aiff will be delivered as audio/x-aiff.
202
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
203
+ *
204
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
189
205
  */
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';
206
+ 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
207
  export interface AttachmentCreateResponse {
192
208
  /**
193
209
  * Unique identifier for the attachment (for status checks via GET
@@ -230,25 +246,41 @@ export interface AttachmentRetrieveResponse {
230
246
  * Supported MIME types for file attachments and media URLs.
231
247
  *
232
248
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
233
- * image/tiff, image/bmp
249
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
234
250
  *
235
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
251
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
252
+ * video/x-msvideo, video/3gpp
236
253
  *
237
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
238
- * audio/aiff, audio/aac, audio/amr
254
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
255
+ * audio/aac, audio/midi, audio/amr
239
256
  *
240
257
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
241
- * text/csv, text/html, text/calendar, application/msword,
258
+ * text/csv, text/html, text/calendar, text/xml, application/json,
259
+ * application/msword,
242
260
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
243
261
  * application/vnd.ms-excel,
244
262
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
245
263
  * application/vnd.ms-powerpoint,
246
264
  * 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
265
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
266
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
267
+ * application/x-gzip
249
268
  *
250
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
251
- * rejected.
269
+ * **Transcoded on delivery:**
270
+ *
271
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
272
+ *
273
+ * **Deprecated (accepted but transcoded):**
274
+ *
275
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
276
+ * will be delivered as audio/mpeg.
277
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
278
+ * will be delivered as audio/x-m4a.
279
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
280
+ * audio/aiff will be delivered as audio/x-aiff.
281
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
282
+ *
283
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
252
284
  */
253
285
  content_type: SupportedContentType;
254
286
  /**
@@ -277,25 +309,41 @@ export interface AttachmentCreateParams {
277
309
  * Supported MIME types for file attachments and media URLs.
278
310
  *
279
311
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
280
- * image/tiff, image/bmp
312
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
281
313
  *
282
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
314
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
315
+ * video/x-msvideo, video/3gpp
283
316
  *
284
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
285
- * audio/aiff, audio/aac, audio/amr
317
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
318
+ * audio/aac, audio/midi, audio/amr
286
319
  *
287
320
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
288
- * text/csv, text/html, text/calendar, application/msword,
321
+ * text/csv, text/html, text/calendar, text/xml, application/json,
322
+ * application/msword,
289
323
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
290
324
  * application/vnd.ms-excel,
291
325
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
292
326
  * application/vnd.ms-powerpoint,
293
327
  * 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
328
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
329
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
330
+ * application/x-gzip
296
331
  *
297
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
298
- * rejected.
332
+ * **Transcoded on delivery:**
333
+ *
334
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
335
+ *
336
+ * **Deprecated (accepted but transcoded):**
337
+ *
338
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
339
+ * will be delivered as audio/mpeg.
340
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
341
+ * will be delivered as audio/x-m4a.
342
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
343
+ * audio/aiff will be delivered as audio/x-aiff.
344
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
345
+ *
346
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
299
347
  */
300
348
  content_type: SupportedContentType;
301
349
  /**
@@ -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,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,YAA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EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE1C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;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,43 @@ 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
+ * **Transcoded on delivery:**
191
+ *
192
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
193
+ *
194
+ * **Deprecated (accepted but transcoded):**
195
+ *
196
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
197
+ * will be delivered as audio/mpeg.
198
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
199
+ * will be delivered as audio/x-m4a.
200
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
201
+ * audio/aiff will be delivered as audio/x-aiff.
202
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
203
+ *
204
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
189
205
  */
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';
206
+ 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
207
  export interface AttachmentCreateResponse {
192
208
  /**
193
209
  * Unique identifier for the attachment (for status checks via GET
@@ -230,25 +246,41 @@ export interface AttachmentRetrieveResponse {
230
246
  * Supported MIME types for file attachments and media URLs.
231
247
  *
232
248
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
233
- * image/tiff, image/bmp
249
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
234
250
  *
235
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
251
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
252
+ * video/x-msvideo, video/3gpp
236
253
  *
237
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
238
- * audio/aiff, audio/aac, audio/amr
254
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
255
+ * audio/aac, audio/midi, audio/amr
239
256
  *
240
257
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
241
- * text/csv, text/html, text/calendar, application/msword,
258
+ * text/csv, text/html, text/calendar, text/xml, application/json,
259
+ * application/msword,
242
260
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
243
261
  * application/vnd.ms-excel,
244
262
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
245
263
  * application/vnd.ms-powerpoint,
246
264
  * 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
265
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
266
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
267
+ * application/x-gzip
249
268
  *
250
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
251
- * rejected.
269
+ * **Transcoded on delivery:**
270
+ *
271
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
272
+ *
273
+ * **Deprecated (accepted but transcoded):**
274
+ *
275
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
276
+ * will be delivered as audio/mpeg.
277
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
278
+ * will be delivered as audio/x-m4a.
279
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
280
+ * audio/aiff will be delivered as audio/x-aiff.
281
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
282
+ *
283
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
252
284
  */
253
285
  content_type: SupportedContentType;
254
286
  /**
@@ -277,25 +309,41 @@ export interface AttachmentCreateParams {
277
309
  * Supported MIME types for file attachments and media URLs.
278
310
  *
279
311
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
280
- * image/tiff, image/bmp
312
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
281
313
  *
282
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
314
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
315
+ * video/x-msvideo, video/3gpp
283
316
  *
284
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
285
- * audio/aiff, audio/aac, audio/amr
317
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
318
+ * audio/aac, audio/midi, audio/amr
286
319
  *
287
320
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
288
- * text/csv, text/html, text/calendar, application/msword,
321
+ * text/csv, text/html, text/calendar, text/xml, application/json,
322
+ * application/msword,
289
323
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
290
324
  * application/vnd.ms-excel,
291
325
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
292
326
  * application/vnd.ms-powerpoint,
293
327
  * 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
328
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
329
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
330
+ * application/x-gzip
296
331
  *
297
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
298
- * rejected.
332
+ * **Transcoded on delivery:**
333
+ *
334
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
335
+ *
336
+ * **Deprecated (accepted but transcoded):**
337
+ *
338
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
339
+ * will be delivered as audio/mpeg.
340
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
341
+ * will be delivered as audio/x-m4a.
342
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
343
+ * audio/aiff will be delivered as audio/x-aiff.
344
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
345
+ *
346
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
299
347
  */
300
348
  content_type: SupportedContentType;
301
349
  /**
@@ -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;;;;;;;;;;;;;;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AM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;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"}
@@ -107,6 +107,10 @@ export interface SentMessage {
107
107
  * Message identifier (UUID)
108
108
  */
109
109
  id: string;
110
+ /**
111
+ * When the message was created
112
+ */
113
+ created_at: string;
110
114
  /**
111
115
  * Current delivery status of a message
112
116
  */
@@ -120,9 +124,9 @@ export interface SentMessage {
120
124
  */
121
125
  parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse>;
122
126
  /**
123
- * When the message was sent
127
+ * When the message was actually sent (null if still queued)
124
128
  */
125
- sent_at: string;
129
+ sent_at: string | null;
126
130
  /**
127
131
  * When the message was delivered
128
132
  */
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,8BAA8B,EAAE;OAClC,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;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W,iBAAiB;IAChC;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH;AAED,OAAO,EAAE,KAAK,8BAA8B,EAAE,CAAC"}
@@ -107,6 +107,10 @@ export interface SentMessage {
107
107
  * Message identifier (UUID)
108
108
  */
109
109
  id: string;
110
+ /**
111
+ * When the message was created
112
+ */
113
+ created_at: string;
110
114
  /**
111
115
  * Current delivery status of a message
112
116
  */
@@ -120,9 +124,9 @@ export interface SentMessage {
120
124
  */
121
125
  parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse>;
122
126
  /**
123
- * When the message was sent
127
+ * When the message was actually sent (null if still queued)
124
128
  */
125
- sent_at: string;
129
+ sent_at: string | null;
126
130
  /**
127
131
  * When the message was delivered
128
132
  */
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,8BAA8B,EAAE;OAClC,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAEL,KAAK,4BAA4B,EACjC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8BAA8B,EAAE,WAAW,CA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B,EAAE,CAAC"}
@@ -9,10 +9,10 @@
9
9
  */
10
10
  export const readEnv = (env: string): string | undefined => {
11
11
  if (typeof (globalThis as any).process !== 'undefined') {
12
- return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
12
+ return (globalThis as any).process.env?.[env]?.trim() || undefined;
13
13
  }
14
14
  if (typeof (globalThis as any).Deno !== 'undefined') {
15
- return (globalThis as any).Deno.env?.get?.(env)?.trim();
15
+ return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
16
16
  }
17
17
  return undefined;
18
18
  };
@@ -177,61 +177,76 @@ 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
+ * **Transcoded on delivery:**
201
+ *
202
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
203
+ *
204
+ * **Deprecated (accepted but transcoded):**
205
+ *
206
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
207
+ * will be delivered as audio/mpeg.
208
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
209
+ * will be delivered as audio/x-m4a.
210
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
211
+ * audio/aiff will be delivered as audio/x-aiff.
212
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
213
+ *
214
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
199
215
  */
200
216
  export type SupportedContentType =
201
217
  | 'image/jpeg'
202
- | 'image/jpg'
203
218
  | 'image/png'
204
219
  | 'image/gif'
205
220
  | 'image/heic'
206
221
  | 'image/heif'
207
222
  | 'image/tiff'
208
223
  | 'image/bmp'
209
- | 'image/x-ms-bmp'
224
+ | 'image/svg+xml'
225
+ | 'image/webp'
226
+ | 'image/x-icon'
210
227
  | 'video/mp4'
211
228
  | 'video/quicktime'
212
229
  | 'video/mpeg'
230
+ | 'video/mpeg2'
213
231
  | 'video/x-m4v'
232
+ | 'video/x-msvideo'
214
233
  | 'video/3gpp'
215
234
  | 'audio/mpeg'
216
235
  | 'audio/mp3'
217
- | 'audio/mp4'
218
236
  | 'audio/x-m4a'
219
- | 'audio/m4a'
237
+ | 'audio/mp4'
220
238
  | 'audio/x-caf'
221
- | 'audio/wav'
222
239
  | 'audio/x-wav'
223
- | 'audio/aiff'
224
240
  | 'audio/x-aiff'
241
+ | 'audio/aiff'
225
242
  | 'audio/aac'
226
- | 'audio/x-aac'
243
+ | 'audio/midi'
227
244
  | 'audio/amr'
228
245
  | 'application/pdf'
229
246
  | 'text/plain'
230
247
  | 'text/markdown'
231
248
  | 'text/vcard'
232
- | 'text/x-vcard'
233
249
  | 'text/rtf'
234
- | 'application/rtf'
235
250
  | 'text/csv'
236
251
  | 'text/html'
237
252
  | 'text/calendar'
@@ -241,15 +256,14 @@ export type SupportedContentType =
241
256
  | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
242
257
  | 'application/vnd.ms-powerpoint'
243
258
  | 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
244
- | 'application/vnd.apple.pages'
245
259
  | 'application/x-iwork-pages-sffpages'
246
- | 'application/vnd.apple.numbers'
247
260
  | 'application/x-iwork-numbers-sffnumbers'
248
- | 'application/vnd.apple.keynote'
249
261
  | 'application/x-iwork-keynote-sffkey'
250
262
  | 'application/epub+zip'
263
+ | 'text/xml'
264
+ | 'application/json'
251
265
  | 'application/zip'
252
- | 'application/x-zip-compressed';
266
+ | 'application/x-gzip';
253
267
 
254
268
  export interface AttachmentCreateResponse {
255
269
  /**
@@ -298,25 +312,41 @@ export interface AttachmentRetrieveResponse {
298
312
  * Supported MIME types for file attachments and media URLs.
299
313
  *
300
314
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
301
- * image/tiff, image/bmp
315
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
302
316
  *
303
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
317
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
318
+ * video/x-msvideo, video/3gpp
304
319
  *
305
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
306
- * audio/aiff, audio/aac, audio/amr
320
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
321
+ * audio/aac, audio/midi, audio/amr
307
322
  *
308
323
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
309
- * text/csv, text/html, text/calendar, application/msword,
324
+ * text/csv, text/html, text/calendar, text/xml, application/json,
325
+ * application/msword,
310
326
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
311
327
  * application/vnd.ms-excel,
312
328
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
313
329
  * application/vnd.ms-powerpoint,
314
330
  * 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
331
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
332
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
333
+ * application/x-gzip
317
334
  *
318
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
319
- * rejected.
335
+ * **Transcoded on delivery:**
336
+ *
337
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
338
+ *
339
+ * **Deprecated (accepted but transcoded):**
340
+ *
341
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
342
+ * will be delivered as audio/mpeg.
343
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
344
+ * will be delivered as audio/x-m4a.
345
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
346
+ * audio/aiff will be delivered as audio/x-aiff.
347
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
348
+ *
349
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
320
350
  */
321
351
  content_type: SupportedContentType;
322
352
 
@@ -351,25 +381,41 @@ export interface AttachmentCreateParams {
351
381
  * Supported MIME types for file attachments and media URLs.
352
382
  *
353
383
  * **Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
354
- * image/tiff, image/bmp
384
+ * image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon
355
385
  *
356
- * **Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
386
+ * **Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
387
+ * video/x-msvideo, video/3gpp
357
388
  *
358
- * **Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
359
- * audio/aiff, audio/aac, audio/amr
389
+ * **Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
390
+ * audio/aac, audio/midi, audio/amr
360
391
  *
361
392
  * **Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
362
- * text/csv, text/html, text/calendar, application/msword,
393
+ * text/csv, text/html, text/calendar, text/xml, application/json,
394
+ * application/msword,
363
395
  * application/vnd.openxmlformats-officedocument.wordprocessingml.document,
364
396
  * application/vnd.ms-excel,
365
397
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
366
398
  * application/vnd.ms-powerpoint,
367
399
  * 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
400
+ * application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
401
+ * application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
402
+ * application/x-gzip
370
403
  *
371
- * **Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
372
- * rejected.
404
+ * **Transcoded on delivery:**
405
+ *
406
+ * - `audio/x-caf` — CAF files are transcoded to `audio/mp4` for delivery.
407
+ *
408
+ * **Deprecated (accepted but transcoded):**
409
+ *
410
+ * - `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
411
+ * will be delivered as audio/mpeg.
412
+ * - `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
413
+ * will be delivered as audio/x-m4a.
414
+ * - `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
415
+ * audio/aiff will be delivered as audio/x-aiff.
416
+ * - `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.
417
+ *
418
+ * **Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
373
419
  */
374
420
  content_type: SupportedContentType;
375
421
 
@@ -130,6 +130,11 @@ export interface SentMessage {
130
130
  */
131
131
  id: string;
132
132
 
133
+ /**
134
+ * When the message was created
135
+ */
136
+ created_at: string;
137
+
133
138
  /**
134
139
  * Current delivery status of a message
135
140
  */
@@ -146,9 +151,9 @@ export interface SentMessage {
146
151
  parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse>;
147
152
 
148
153
  /**
149
- * When the message was sent
154
+ * When the message was actually sent (null if still queued)
150
155
  */
151
- sent_at: string;
156
+ sent_at: string | null;
152
157
 
153
158
  /**
154
159
  * When the message was delivered
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.16.2'; // 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.2";
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.2";
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.2'; // 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.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map