@linqapp/sdk 0.28.0 → 0.28.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.
Files changed (147) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +59 -9
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +59 -9
  5. package/client.d.ts.map +1 -1
  6. package/client.js +63 -5
  7. package/client.js.map +1 -1
  8. package/client.mjs +64 -6
  9. package/client.mjs.map +1 -1
  10. package/internal/qs/formats.d.mts +7 -0
  11. package/internal/qs/formats.d.mts.map +1 -0
  12. package/internal/qs/formats.d.ts +7 -0
  13. package/internal/qs/formats.d.ts.map +1 -0
  14. package/internal/qs/formats.js +13 -0
  15. package/internal/qs/formats.js.map +1 -0
  16. package/internal/qs/formats.mjs +9 -0
  17. package/internal/qs/formats.mjs.map +1 -0
  18. package/internal/qs/index.d.mts +10 -0
  19. package/internal/qs/index.d.mts.map +1 -0
  20. package/internal/qs/index.d.ts +10 -0
  21. package/internal/qs/index.d.ts.map +1 -0
  22. package/internal/qs/index.js +14 -0
  23. package/internal/qs/index.js.map +1 -0
  24. package/internal/qs/index.mjs +10 -0
  25. package/internal/qs/index.mjs.map +1 -0
  26. package/internal/qs/stringify.d.mts +3 -0
  27. package/internal/qs/stringify.d.mts.map +1 -0
  28. package/internal/qs/stringify.d.ts +3 -0
  29. package/internal/qs/stringify.d.ts.map +1 -0
  30. package/internal/qs/stringify.js +277 -0
  31. package/internal/qs/stringify.js.map +1 -0
  32. package/internal/qs/stringify.mjs +274 -0
  33. package/internal/qs/stringify.mjs.map +1 -0
  34. package/internal/qs/types.d.mts +57 -0
  35. package/internal/qs/types.d.mts.map +1 -0
  36. package/internal/qs/types.d.ts +57 -0
  37. package/internal/qs/types.d.ts.map +1 -0
  38. package/internal/qs/types.js +3 -0
  39. package/internal/qs/types.js.map +1 -0
  40. package/internal/qs/types.mjs +2 -0
  41. package/internal/qs/types.mjs.map +1 -0
  42. package/internal/qs/utils.d.mts +15 -0
  43. package/internal/qs/utils.d.mts.map +1 -0
  44. package/internal/qs/utils.d.ts +15 -0
  45. package/internal/qs/utils.d.ts.map +1 -0
  46. package/internal/qs/utils.js +230 -0
  47. package/internal/qs/utils.js.map +1 -0
  48. package/internal/qs/utils.mjs +217 -0
  49. package/internal/qs/utils.mjs.map +1 -0
  50. package/internal/tslib.js +17 -17
  51. package/internal/utils/query.d.mts +0 -3
  52. package/internal/utils/query.d.mts.map +1 -1
  53. package/internal/utils/query.d.ts +0 -3
  54. package/internal/utils/query.d.ts.map +1 -1
  55. package/internal/utils/query.js +3 -16
  56. package/internal/utils/query.js.map +1 -1
  57. package/internal/utils/query.mjs +2 -16
  58. package/internal/utils/query.mjs.map +1 -1
  59. package/package.json +1 -1
  60. package/resources/attachments.d.mts +1 -1
  61. package/resources/attachments.d.ts +1 -1
  62. package/resources/attachments.js +1 -1
  63. package/resources/attachments.mjs +1 -1
  64. package/resources/available-number.d.mts +58 -0
  65. package/resources/available-number.d.mts.map +1 -0
  66. package/resources/available-number.d.ts +58 -0
  67. package/resources/available-number.d.ts.map +1 -0
  68. package/resources/available-number.js +36 -0
  69. package/resources/available-number.js.map +1 -0
  70. package/resources/available-number.mjs +32 -0
  71. package/resources/available-number.mjs.map +1 -0
  72. package/resources/chats/chats.d.mts +59 -11
  73. package/resources/chats/chats.d.mts.map +1 -1
  74. package/resources/chats/chats.d.ts +59 -11
  75. package/resources/chats/chats.d.ts.map +1 -1
  76. package/resources/chats/chats.js.map +1 -1
  77. package/resources/chats/chats.mjs.map +1 -1
  78. package/resources/chats/location.d.mts +9 -8
  79. package/resources/chats/location.d.mts.map +1 -1
  80. package/resources/chats/location.d.ts +9 -8
  81. package/resources/chats/location.d.ts.map +1 -1
  82. package/resources/chats/location.js +9 -8
  83. package/resources/chats/location.js.map +1 -1
  84. package/resources/chats/location.mjs +9 -8
  85. package/resources/chats/location.mjs.map +1 -1
  86. package/resources/chats/messages.d.mts +84 -6
  87. package/resources/chats/messages.d.mts.map +1 -1
  88. package/resources/chats/messages.d.ts +84 -6
  89. package/resources/chats/messages.d.ts.map +1 -1
  90. package/resources/chats/messages.js +40 -0
  91. package/resources/chats/messages.js.map +1 -1
  92. package/resources/chats/messages.mjs +40 -0
  93. package/resources/chats/messages.mjs.map +1 -1
  94. package/resources/contact-card.d.mts +1 -2
  95. package/resources/contact-card.d.mts.map +1 -1
  96. package/resources/contact-card.d.ts +1 -2
  97. package/resources/contact-card.d.ts.map +1 -1
  98. package/resources/index.d.mts +3 -2
  99. package/resources/index.d.mts.map +1 -1
  100. package/resources/index.d.ts +3 -2
  101. package/resources/index.d.ts.map +1 -1
  102. package/resources/index.js +3 -1
  103. package/resources/index.js.map +1 -1
  104. package/resources/index.mjs +2 -1
  105. package/resources/index.mjs.map +1 -1
  106. package/resources/messages.d.mts +400 -7
  107. package/resources/messages.d.mts.map +1 -1
  108. package/resources/messages.d.ts +400 -7
  109. package/resources/messages.d.ts.map +1 -1
  110. package/resources/messages.js +148 -0
  111. package/resources/messages.js.map +1 -1
  112. package/resources/messages.mjs +148 -0
  113. package/resources/messages.mjs.map +1 -1
  114. package/resources/phone-numbers.d.mts +68 -23
  115. package/resources/phone-numbers.d.mts.map +1 -1
  116. package/resources/phone-numbers.d.ts +68 -23
  117. package/resources/phone-numbers.d.ts.map +1 -1
  118. package/resources/phone-numbers.js +23 -0
  119. package/resources/phone-numbers.js.map +1 -1
  120. package/resources/phone-numbers.mjs +23 -0
  121. package/resources/phone-numbers.mjs.map +1 -1
  122. package/resources/webhooks.d.mts +14 -14
  123. package/resources/webhooks.d.ts +14 -14
  124. package/src/client.ts +94 -8
  125. package/src/internal/qs/LICENSE.md +13 -0
  126. package/src/internal/qs/README.md +3 -0
  127. package/src/internal/qs/formats.ts +10 -0
  128. package/src/internal/qs/index.ts +13 -0
  129. package/src/internal/qs/stringify.ts +385 -0
  130. package/src/internal/qs/types.ts +71 -0
  131. package/src/internal/qs/utils.ts +265 -0
  132. package/src/internal/utils/query.ts +2 -18
  133. package/src/resources/attachments.ts +1 -1
  134. package/src/resources/available-number.ts +72 -0
  135. package/src/resources/chats/chats.ts +64 -12
  136. package/src/resources/chats/location.ts +9 -8
  137. package/src/resources/chats/messages.ts +87 -6
  138. package/src/resources/contact-card.ts +1 -2
  139. package/src/resources/index.ts +15 -1
  140. package/src/resources/messages.ts +453 -6
  141. package/src/resources/phone-numbers.ts +85 -23
  142. package/src/resources/webhooks.ts +14 -14
  143. package/src/version.ts +1 -1
  144. package/version.d.mts +1 -1
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
  147. package/version.mjs +1 -1
@@ -38,16 +38,17 @@ class Location extends resource_1.APIResource {
38
38
  /**
39
39
  * Retrieve the current location for contacts sharing with you in a chat.
40
40
  *
41
- * Returns a [GeoJSON](https://datatracker.ietf.org/doc/html/rfc7946)
42
- * `FeatureCollection` with a `Feature` for each participant actively sharing their
43
- * location.
41
+ * The response is wrapped in the standard `{ "success": true, "data": ... }`
42
+ * envelope the body is **not** a bare GeoJSON document. `data` is a
43
+ * [GeoJSON](https://datatracker.ietf.org/doc/html/rfc7946) `FeatureCollection`
44
+ * with a `Feature` for each participant actively sharing their location.
44
45
  *
45
- * Works for both 1:1 and group chats. In group chats, returns a separate feature
46
- * for each participant who is sharing. Each feature's `properties.handle`
47
- * identifies the user.
46
+ * Works for both 1:1 and group chats. In group chats, `data.features` contains a
47
+ * separate feature for each participant who is sharing. Each feature's
48
+ * `properties.handle` identifies the user.
48
49
  *
49
- * Returns an empty `features` array if no one is sharing or no location data is
50
- * available yet.
50
+ * Returns an empty `data.features` array if no one is sharing or no location data
51
+ * is available yet.
51
52
  *
52
53
  * @example
53
54
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;GASG;AACH,MA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AC9E,CAAC,CAAC;IACL,CAAC;CACF;AAlDD,4BAkDC"}
@@ -35,16 +35,17 @@ export class Location extends APIResource {
35
35
  /**
36
36
  * Retrieve the current location for contacts sharing with you in a chat.
37
37
  *
38
- * Returns a [GeoJSON](https://datatracker.ietf.org/doc/html/rfc7946)
39
- * `FeatureCollection` with a `Feature` for each participant actively sharing their
40
- * location.
38
+ * The response is wrapped in the standard `{ "success": true, "data": ... }`
39
+ * envelope the body is **not** a bare GeoJSON document. `data` is a
40
+ * [GeoJSON](https://datatracker.ietf.org/doc/html/rfc7946) `FeatureCollection`
41
+ * with a `Feature` for each participant actively sharing their location.
41
42
  *
42
- * Works for both 1:1 and group chats. In group chats, returns a separate feature
43
- * for each participant who is sharing. Each feature's `properties.handle`
44
- * identifies the user.
43
+ * Works for both 1:1 and group chats. In group chats, `data.features` contains a
44
+ * separate feature for each participant who is sharing. Each feature's
45
+ * `properties.handle` identifies the user.
45
46
  *
46
- * Returns an empty `features` array if no one is sharing or no location data is
47
- * available yet.
47
+ * Returns an empty `data.features` array if no one is sharing or no location data
48
+ * is available yet.
48
49
  *
49
50
  * @example
50
51
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"location.mjs","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;GASG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"location.mjs","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;GASG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -25,6 +25,46 @@ import { RequestOptions } from "../../internal/request-options.mjs";
25
25
  * **Limitations:**
26
26
  * - A `link` part cannot be combined with other parts in the same message.
27
27
  * - Maximum URL length: 2,048 characters.
28
+ *
29
+ * ## Ephemeral Messages (Privacy Tier)
30
+ *
31
+ * For regulated or sensitive conversations, opt in to the **ephemeral messages** tier by contacting your Linq support contact. When enabled, every message on the covered phone numbers is automatically given a fixed **24-hour retention window** — after that window the platform permanently deletes the message from Linq storage. There is no per-message flag; ephemerality is applied automatically based on your configuration.
32
+ *
33
+ * You can request it at two scopes:
34
+ *
35
+ * | Scope | Effect |
36
+ * |---|---|
37
+ * | **Partner-wide** | Every outbound and inbound message on every phone number under your account is retained for 24 hours, then deleted. |
38
+ * | **Per phone number** | Only the specified phone numbers have their messages auto-deleted. The rest follow the standard message-retention policy. |
39
+ *
40
+ * **Behavioral differences vs the standard default:**
41
+ *
42
+ * | Aspect | Standard | Ephemeral |
43
+ * |---|---|---|
44
+ * | Retention | Retained per the standard message-retention policy | **Hard backstop: 24 hours** from when the message is created |
45
+ * | After expiry | Message stays retrievable | Message is permanently deleted — `GET /v3/messages/{messageId}` returns `404` and it no longer appears in `GET /v3/chats/{chatId}/messages` |
46
+ * | Content on expiry | N/A | Text, formatting, and attachment references are scrubbed; the message is gone, not blanked out |
47
+ * | Cross-partner isolation | Enforced | Enforced |
48
+ *
49
+ * **How the 24-hour window works:**
50
+ *
51
+ * - The window is fixed at **24 hours from message creation** (`created_at`) and cannot be configured per message.
52
+ * - It mirrors the ephemeral *attachments* 1-day backstop, so a message and any media it carries expire together.
53
+ * - Expiry is delivery-independent — the clock starts when the message is created, not when it is delivered or read.
54
+ *
55
+ * **What you observe:**
56
+ *
57
+ * - **No expiry timestamp is exposed.** API responses and webhook payloads do not include the deletion time. If you need it, compute `created_at + 24h` yourself.
58
+ * - **No deletion webhook is sent.** There is no `message.deleted` event — a message simply stops being retrievable once its window passes.
59
+ * - **Delivery is unaffected.** Ephemeral messages send, deliver, and fire the usual `message.sent` / `message.received` and status webhooks exactly like standard messages. Only retention changes.
60
+ *
61
+ * **When to choose ephemeral:**
62
+ *
63
+ * - You have a compliance requirement that the platform must not retain message content beyond a short window.
64
+ * - The conversation is high-sensitivity (PHI, financial, identity verification) and you do not want it sitting in storage long-term.
65
+ * - Your application is the system of record — you capture what you need from the delivery webhook in real time and do not rely on reading message history back from Linq later.
66
+ *
67
+ * **Important:** ephemeral applies in *both directions* — messages you send **and** messages received by the phone numbers in that scope. Because Linq can no longer return the message after 24 hours, persist anything you need to keep from the webhook payload at the time it is delivered.
28
68
  */
29
69
  export declare class Messages extends APIResource {
30
70
  /**
@@ -164,9 +204,19 @@ export declare namespace SentMessage {
164
204
  app: IMessageAppPartResponse.App;
165
205
  /**
166
206
  * Visible layout of the card. At least one of `caption`, `subcaption`,
167
- * `trailing_caption`, or `trailing_subcaption` must be set, otherwise the card
168
- * renders as an empty bubble. Any image on the card is drawn by the recipient's
169
- * installed app extension; it cannot be supplied here.
207
+ * `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
208
+ * the card renders as an empty bubble.
209
+ *
210
+ * `image_url` displays a preview image at the top of the card. The image renders
211
+ * on the recipient's card whether or not they have your app installed. The small
212
+ * icon beside the caption is the app's own icon and is not settable here.
213
+ *
214
+ * `* Note - requires a trusted chat w/ inbound activity`
215
+ *
216
+ * `image_title` and `image_subtitle` render as text overlaid on the image (title
217
+ * bold, subtitle beneath it). They only appear when `image_url` is set — without
218
+ * an image there is nothing to overlay — so setting either without `image_url` is
219
+ * rejected.
170
220
  */
171
221
  layout: IMessageAppPartResponse.Layout;
172
222
  /**
@@ -211,15 +261,43 @@ export declare namespace SentMessage {
211
261
  }
212
262
  /**
213
263
  * Visible layout of the card. At least one of `caption`, `subcaption`,
214
- * `trailing_caption`, or `trailing_subcaption` must be set, otherwise the card
215
- * renders as an empty bubble. Any image on the card is drawn by the recipient's
216
- * installed app extension; it cannot be supplied here.
264
+ * `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
265
+ * the card renders as an empty bubble.
266
+ *
267
+ * `image_url` displays a preview image at the top of the card. The image renders
268
+ * on the recipient's card whether or not they have your app installed. The small
269
+ * icon beside the caption is the app's own icon and is not settable here.
270
+ *
271
+ * `* Note - requires a trusted chat w/ inbound activity`
272
+ *
273
+ * `image_title` and `image_subtitle` render as text overlaid on the image (title
274
+ * bold, subtitle beneath it). They only appear when `image_url` is set — without
275
+ * an image there is nothing to overlay — so setting either without `image_url` is
276
+ * rejected.
217
277
  */
218
278
  interface Layout {
219
279
  /**
220
280
  * Primary label, top-left and bold.
221
281
  */
222
282
  caption?: string;
283
+ /**
284
+ * Text shown below `image_title`, overlaid on the card image. Requires
285
+ * `image_url`.
286
+ */
287
+ image_subtitle?: string;
288
+ /**
289
+ * Bold text overlaid on the card image. Requires `image_url` (rejected without
290
+ * it).
291
+ */
292
+ image_title?: string;
293
+ /**
294
+ * URL of an image (JPEG, PNG, HEIF, or WebP) to display as the card's preview
295
+ * image; an unreachable or non-image URL returns a validation error. Renders for
296
+ * all recipients regardless of whether they have the app. Note - requires a
297
+ * trusted chat w/ inbound activity. In responses, this is the re-hosted
298
+ * `cdn.linqapp.com` copy of the image you supplied, not your original URL.
299
+ */
300
+ image_url?: string;
223
301
  /**
224
302
  * Secondary label, below `caption` on the left.
225
303
  */
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EAAE,8BAA8B,EAAE,wBAAoB;AAC7D,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAEL,KAAK,4BAA4B,EACjC,WAAW,EACZ,kCAA8B;AAC/B,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAA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AC;QACvC;;WAEG;QACH,UAAiB,GAAG;YAClB;;eAEG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;eAGG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB;QAED;;;;;;;;;;;;;;;WAeG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB;;;eAGG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;YAExB;;;eAGG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;;;;;eAMG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAE1B;;eAEG;YACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;SAC9B;KACF;CACF;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC;CAClC;AAED,MAAM,WAAW,iBAAkB,SAAQ,4BAA4B;CAAG;AAE1E,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"}
@@ -25,6 +25,46 @@ import { RequestOptions } from "../../internal/request-options.js";
25
25
  * **Limitations:**
26
26
  * - A `link` part cannot be combined with other parts in the same message.
27
27
  * - Maximum URL length: 2,048 characters.
28
+ *
29
+ * ## Ephemeral Messages (Privacy Tier)
30
+ *
31
+ * For regulated or sensitive conversations, opt in to the **ephemeral messages** tier by contacting your Linq support contact. When enabled, every message on the covered phone numbers is automatically given a fixed **24-hour retention window** — after that window the platform permanently deletes the message from Linq storage. There is no per-message flag; ephemerality is applied automatically based on your configuration.
32
+ *
33
+ * You can request it at two scopes:
34
+ *
35
+ * | Scope | Effect |
36
+ * |---|---|
37
+ * | **Partner-wide** | Every outbound and inbound message on every phone number under your account is retained for 24 hours, then deleted. |
38
+ * | **Per phone number** | Only the specified phone numbers have their messages auto-deleted. The rest follow the standard message-retention policy. |
39
+ *
40
+ * **Behavioral differences vs the standard default:**
41
+ *
42
+ * | Aspect | Standard | Ephemeral |
43
+ * |---|---|---|
44
+ * | Retention | Retained per the standard message-retention policy | **Hard backstop: 24 hours** from when the message is created |
45
+ * | After expiry | Message stays retrievable | Message is permanently deleted — `GET /v3/messages/{messageId}` returns `404` and it no longer appears in `GET /v3/chats/{chatId}/messages` |
46
+ * | Content on expiry | N/A | Text, formatting, and attachment references are scrubbed; the message is gone, not blanked out |
47
+ * | Cross-partner isolation | Enforced | Enforced |
48
+ *
49
+ * **How the 24-hour window works:**
50
+ *
51
+ * - The window is fixed at **24 hours from message creation** (`created_at`) and cannot be configured per message.
52
+ * - It mirrors the ephemeral *attachments* 1-day backstop, so a message and any media it carries expire together.
53
+ * - Expiry is delivery-independent — the clock starts when the message is created, not when it is delivered or read.
54
+ *
55
+ * **What you observe:**
56
+ *
57
+ * - **No expiry timestamp is exposed.** API responses and webhook payloads do not include the deletion time. If you need it, compute `created_at + 24h` yourself.
58
+ * - **No deletion webhook is sent.** There is no `message.deleted` event — a message simply stops being retrievable once its window passes.
59
+ * - **Delivery is unaffected.** Ephemeral messages send, deliver, and fire the usual `message.sent` / `message.received` and status webhooks exactly like standard messages. Only retention changes.
60
+ *
61
+ * **When to choose ephemeral:**
62
+ *
63
+ * - You have a compliance requirement that the platform must not retain message content beyond a short window.
64
+ * - The conversation is high-sensitivity (PHI, financial, identity verification) and you do not want it sitting in storage long-term.
65
+ * - Your application is the system of record — you capture what you need from the delivery webhook in real time and do not rely on reading message history back from Linq later.
66
+ *
67
+ * **Important:** ephemeral applies in *both directions* — messages you send **and** messages received by the phone numbers in that scope. Because Linq can no longer return the message after 24 hours, persist anything you need to keep from the webhook payload at the time it is delivered.
28
68
  */
29
69
  export declare class Messages extends APIResource {
30
70
  /**
@@ -164,9 +204,19 @@ export declare namespace SentMessage {
164
204
  app: IMessageAppPartResponse.App;
165
205
  /**
166
206
  * Visible layout of the card. At least one of `caption`, `subcaption`,
167
- * `trailing_caption`, or `trailing_subcaption` must be set, otherwise the card
168
- * renders as an empty bubble. Any image on the card is drawn by the recipient's
169
- * installed app extension; it cannot be supplied here.
207
+ * `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
208
+ * the card renders as an empty bubble.
209
+ *
210
+ * `image_url` displays a preview image at the top of the card. The image renders
211
+ * on the recipient's card whether or not they have your app installed. The small
212
+ * icon beside the caption is the app's own icon and is not settable here.
213
+ *
214
+ * `* Note - requires a trusted chat w/ inbound activity`
215
+ *
216
+ * `image_title` and `image_subtitle` render as text overlaid on the image (title
217
+ * bold, subtitle beneath it). They only appear when `image_url` is set — without
218
+ * an image there is nothing to overlay — so setting either without `image_url` is
219
+ * rejected.
170
220
  */
171
221
  layout: IMessageAppPartResponse.Layout;
172
222
  /**
@@ -211,15 +261,43 @@ export declare namespace SentMessage {
211
261
  }
212
262
  /**
213
263
  * Visible layout of the card. At least one of `caption`, `subcaption`,
214
- * `trailing_caption`, or `trailing_subcaption` must be set, otherwise the card
215
- * renders as an empty bubble. Any image on the card is drawn by the recipient's
216
- * installed app extension; it cannot be supplied here.
264
+ * `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
265
+ * the card renders as an empty bubble.
266
+ *
267
+ * `image_url` displays a preview image at the top of the card. The image renders
268
+ * on the recipient's card whether or not they have your app installed. The small
269
+ * icon beside the caption is the app's own icon and is not settable here.
270
+ *
271
+ * `* Note - requires a trusted chat w/ inbound activity`
272
+ *
273
+ * `image_title` and `image_subtitle` render as text overlaid on the image (title
274
+ * bold, subtitle beneath it). They only appear when `image_url` is set — without
275
+ * an image there is nothing to overlay — so setting either without `image_url` is
276
+ * rejected.
217
277
  */
218
278
  interface Layout {
219
279
  /**
220
280
  * Primary label, top-left and bold.
221
281
  */
222
282
  caption?: string;
283
+ /**
284
+ * Text shown below `image_title`, overlaid on the card image. Requires
285
+ * `image_url`.
286
+ */
287
+ image_subtitle?: string;
288
+ /**
289
+ * Bold text overlaid on the card image. Requires `image_url` (rejected without
290
+ * it).
291
+ */
292
+ image_title?: string;
293
+ /**
294
+ * URL of an image (JPEG, PNG, HEIF, or WebP) to display as the card's preview
295
+ * image; an unreachable or non-image URL returns a validation error. Renders for
296
+ * all recipients regardless of whether they have the app. Note - requires a
297
+ * trusted chat w/ inbound activity. In responses, this is the re-hosted
298
+ * `cdn.linqapp.com` copy of the image you supplied, not your original URL.
299
+ */
300
+ image_url?: string;
223
301
  /**
224
302
  * Secondary label, below `caption` on the left.
225
303
  */
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EAAE,8BAA8B,EAAE,uBAAoB;AAC7D,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAEL,KAAK,4BAA4B,EACjC,WAAW,EACZ,iCAA8B;AAC/B,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC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AAC;CACH;AAED,OAAO,EAAE,KAAK,8BAA8B,EAAE,CAAC"}
@@ -24,6 +24,46 @@ const path_1 = require("../../internal/utils/path.js");
24
24
  * **Limitations:**
25
25
  * - A `link` part cannot be combined with other parts in the same message.
26
26
  * - Maximum URL length: 2,048 characters.
27
+ *
28
+ * ## Ephemeral Messages (Privacy Tier)
29
+ *
30
+ * For regulated or sensitive conversations, opt in to the **ephemeral messages** tier by contacting your Linq support contact. When enabled, every message on the covered phone numbers is automatically given a fixed **24-hour retention window** — after that window the platform permanently deletes the message from Linq storage. There is no per-message flag; ephemerality is applied automatically based on your configuration.
31
+ *
32
+ * You can request it at two scopes:
33
+ *
34
+ * | Scope | Effect |
35
+ * |---|---|
36
+ * | **Partner-wide** | Every outbound and inbound message on every phone number under your account is retained for 24 hours, then deleted. |
37
+ * | **Per phone number** | Only the specified phone numbers have their messages auto-deleted. The rest follow the standard message-retention policy. |
38
+ *
39
+ * **Behavioral differences vs the standard default:**
40
+ *
41
+ * | Aspect | Standard | Ephemeral |
42
+ * |---|---|---|
43
+ * | Retention | Retained per the standard message-retention policy | **Hard backstop: 24 hours** from when the message is created |
44
+ * | After expiry | Message stays retrievable | Message is permanently deleted — `GET /v3/messages/{messageId}` returns `404` and it no longer appears in `GET /v3/chats/{chatId}/messages` |
45
+ * | Content on expiry | N/A | Text, formatting, and attachment references are scrubbed; the message is gone, not blanked out |
46
+ * | Cross-partner isolation | Enforced | Enforced |
47
+ *
48
+ * **How the 24-hour window works:**
49
+ *
50
+ * - The window is fixed at **24 hours from message creation** (`created_at`) and cannot be configured per message.
51
+ * - It mirrors the ephemeral *attachments* 1-day backstop, so a message and any media it carries expire together.
52
+ * - Expiry is delivery-independent — the clock starts when the message is created, not when it is delivered or read.
53
+ *
54
+ * **What you observe:**
55
+ *
56
+ * - **No expiry timestamp is exposed.** API responses and webhook payloads do not include the deletion time. If you need it, compute `created_at + 24h` yourself.
57
+ * - **No deletion webhook is sent.** There is no `message.deleted` event — a message simply stops being retrievable once its window passes.
58
+ * - **Delivery is unaffected.** Ephemeral messages send, deliver, and fire the usual `message.sent` / `message.received` and status webhooks exactly like standard messages. Only retention changes.
59
+ *
60
+ * **When to choose ephemeral:**
61
+ *
62
+ * - You have a compliance requirement that the platform must not retain message content beyond a short window.
63
+ * - The conversation is high-sensitivity (PHI, financial, identity verification) and you do not want it sitting in storage long-term.
64
+ * - Your application is the system of record — you capture what you need from the delivery webhook in real time and do not rely on reading message history back from Linq later.
65
+ *
66
+ * **Important:** ephemeral applies in *both directions* — messages you send **and** messages received by the phone numbers in that scope. Because Linq can no longer return the message after 24 hours, persist anything you need to keep from the webhook payload at the time it is delivered.
27
67
  */
28
68
  class Messages extends resource_1.APIResource {
29
69
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,yDAI+B;AAE/B,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAClC,CAAA,mCAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AArFD,4BAqFC"}
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,yDAI+B;AAE/B,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAClC,CAAA,mCAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AArFD,4BAqFC"}
@@ -21,6 +21,46 @@ import { path } from "../../internal/utils/path.mjs";
21
21
  * **Limitations:**
22
22
  * - A `link` part cannot be combined with other parts in the same message.
23
23
  * - Maximum URL length: 2,048 characters.
24
+ *
25
+ * ## Ephemeral Messages (Privacy Tier)
26
+ *
27
+ * For regulated or sensitive conversations, opt in to the **ephemeral messages** tier by contacting your Linq support contact. When enabled, every message on the covered phone numbers is automatically given a fixed **24-hour retention window** — after that window the platform permanently deletes the message from Linq storage. There is no per-message flag; ephemerality is applied automatically based on your configuration.
28
+ *
29
+ * You can request it at two scopes:
30
+ *
31
+ * | Scope | Effect |
32
+ * |---|---|
33
+ * | **Partner-wide** | Every outbound and inbound message on every phone number under your account is retained for 24 hours, then deleted. |
34
+ * | **Per phone number** | Only the specified phone numbers have their messages auto-deleted. The rest follow the standard message-retention policy. |
35
+ *
36
+ * **Behavioral differences vs the standard default:**
37
+ *
38
+ * | Aspect | Standard | Ephemeral |
39
+ * |---|---|---|
40
+ * | Retention | Retained per the standard message-retention policy | **Hard backstop: 24 hours** from when the message is created |
41
+ * | After expiry | Message stays retrievable | Message is permanently deleted — `GET /v3/messages/{messageId}` returns `404` and it no longer appears in `GET /v3/chats/{chatId}/messages` |
42
+ * | Content on expiry | N/A | Text, formatting, and attachment references are scrubbed; the message is gone, not blanked out |
43
+ * | Cross-partner isolation | Enforced | Enforced |
44
+ *
45
+ * **How the 24-hour window works:**
46
+ *
47
+ * - The window is fixed at **24 hours from message creation** (`created_at`) and cannot be configured per message.
48
+ * - It mirrors the ephemeral *attachments* 1-day backstop, so a message and any media it carries expire together.
49
+ * - Expiry is delivery-independent — the clock starts when the message is created, not when it is delivered or read.
50
+ *
51
+ * **What you observe:**
52
+ *
53
+ * - **No expiry timestamp is exposed.** API responses and webhook payloads do not include the deletion time. If you need it, compute `created_at + 24h` yourself.
54
+ * - **No deletion webhook is sent.** There is no `message.deleted` event — a message simply stops being retrievable once its window passes.
55
+ * - **Delivery is unaffected.** Ephemeral messages send, deliver, and fire the usual `message.sent` / `message.received` and status webhooks exactly like standard messages. Only retention changes.
56
+ *
57
+ * **When to choose ephemeral:**
58
+ *
59
+ * - You have a compliance requirement that the platform must not retain message content beyond a short window.
60
+ * - The conversation is high-sensitivity (PHI, financial, identity verification) and you do not want it sitting in storage long-term.
61
+ * - Your application is the system of record — you capture what you need from the delivery webhook in real time and do not rely on reading message history back from Linq later.
62
+ *
63
+ * **Important:** ephemeral applies in *both directions* — messages you send **and** messages received by the phone numbers in that scope. Because Linq can no longer return the message after 24 hours, persist anything you need to keep from the webhook payload at the time it is delivered.
24
64
  */
25
65
  export class Messages extends APIResource {
26
66
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAMlD,OAAO,EACL,sBAAsB,GAGvB,kCAA8B;AAE/B,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,aAAa,MAAM,WAAW,EAClC,CAAA,sBAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAMlD,OAAO,EACL,sBAAsB,GAGvB,kCAA8B;AAE/B,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,aAAa,MAAM,WAAW,EAClC,CAAA,sBAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
@@ -117,8 +117,7 @@ export interface ContactCardCreateParams {
117
117
  */
118
118
  phone_number: string;
119
119
  /**
120
- * URL of the profile image to rehost on the CDN. Only re-uploaded when a new value
121
- * is provided.
120
+ * Profile image URL for the contact card.
122
121
  */
123
122
  image_url?: string;
124
123
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"contact-card.d.mts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,QAAQ,CACN,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI3F;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,E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AU,EAAE,MAAM,CAAC;QAEnB,SAAS,EAAE,OAAO,CAAC;QAEnB,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -117,8 +117,7 @@ export interface ContactCardCreateParams {
117
117
  */
118
118
  phone_number: string;
119
119
  /**
120
- * URL of the profile image to rehost on the CDN. Only re-uploaded when a new value
121
- * is provided.
120
+ * Profile image URL for the contact card.
122
121
  */
123
122
  image_url?: string;
124
123
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"contact-card.d.ts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;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nC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -1,10 +1,11 @@
1
1
  export * from "./shared.mjs";
2
2
  export { Attachments, type SupportedContentType, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.mjs";
3
+ export { AvailableNumber, type AvailableNumberRetrieveResponse, type AvailableNumberRetrieveParams, } from "./available-number.mjs";
3
4
  export { Capability, type HandleCheck, type HandleCheckResponse, type CapabilityCheckIMessageParams, type CapabilityCheckRCSParams, } from "./capability.mjs";
4
5
  export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatListChatsParams, type ChatUpdateParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.mjs";
5
6
  export { ContactCard, type SetContactCard, type ContactCardRetrieveResponse, type ContactCardRetrieveParams, type ContactCardCreateParams, type ContactCardUpdateParams, } from "./contact-card.mjs";
6
- export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageAddReactionResponse, type MessageListMessagesThreadParams, type MessageAddReactionParams, type MessageUpdateParams, type MessagesListMessagesPagination, } from "./messages.mjs";
7
- export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.mjs";
7
+ export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageCreateResponse, type MessageAddReactionResponse, type MessageUpdateAppCardResponse, type MessageCreateParams, type MessageListMessagesThreadParams, type MessageAddReactionParams, type MessageUpdateParams, type MessageUpdateAppCardParams, type MessagesListMessagesPagination, } from "./messages.mjs";
8
+ export { PhoneNumbers, type PhoneNumberUpdateResponse, type PhoneNumberListResponse, type PhoneNumberUpdateParams, } from "./phone-numbers.mjs";
8
9
  export { Phonenumbers, type PhonenumberListResponse } from "./phonenumbers.mjs";
9
10
  export { WebhookEvents, type WebhookEventType, type WebhookEventListResponse } from "./webhook-events.mjs";
10
11
  export { WebhookSubscriptions, type WebhookSubscription, type WebhookSubscriptionCreateResponse, type WebhookSubscriptionListResponse, type WebhookSubscriptionCreateParams, type WebhookSubscriptionUpdateParams, } from "./webhook-subscriptions.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,0BAAsB;AACvB,OAAO,EACL,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B,yBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B,0BAAsB;AACvB,OAAO,EACL,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,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QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,kBAAkB,GACxB,uBAAmB"}
@@ -1,10 +1,11 @@
1
1
  export * from "./shared.js";
2
2
  export { Attachments, type SupportedContentType, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.js";
3
+ export { AvailableNumber, type AvailableNumberRetrieveResponse, type AvailableNumberRetrieveParams, } from "./available-number.js";
3
4
  export { Capability, type HandleCheck, type HandleCheckResponse, type CapabilityCheckIMessageParams, type CapabilityCheckRCSParams, } from "./capability.js";
4
5
  export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatListChatsParams, type ChatUpdateParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.js";
5
6
  export { ContactCard, type SetContactCard, type ContactCardRetrieveResponse, type ContactCardRetrieveParams, type ContactCardCreateParams, type ContactCardUpdateParams, } from "./contact-card.js";
6
- export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageAddReactionResponse, type MessageListMessagesThreadParams, type MessageAddReactionParams, type MessageUpdateParams, type MessagesListMessagesPagination, } from "./messages.js";
7
- export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.js";
7
+ export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageCreateResponse, type MessageAddReactionResponse, type MessageUpdateAppCardResponse, type MessageCreateParams, type MessageListMessagesThreadParams, type MessageAddReactionParams, type MessageUpdateParams, type MessageUpdateAppCardParams, type MessagesListMessagesPagination, } from "./messages.js";
8
+ export { PhoneNumbers, type PhoneNumberUpdateResponse, type PhoneNumberListResponse, type PhoneNumberUpdateParams, } from "./phone-numbers.js";
8
9
  export { Phonenumbers, type PhonenumberListResponse } from "./phonenumbers.js";
9
10
  export { WebhookEvents, type WebhookEventType, type WebhookEventListResponse } from "./webhook-events.js";
10
11
  export { WebhookSubscriptions, type WebhookSubscription, type WebhookSubscriptionCreateResponse, type WebhookSubscriptionListResponse, type WebhookSubscriptionCreateParams, type WebhookSubscriptionUpdateParams, } from "./webhook-subscriptions.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,yBAAsB;AACvB,OAAO,EACL,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B,wBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B,yB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AC7B,2BAAwB;AACzB,OAAO,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE,0BAAuB;AAC5E,OAAO,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,KAAK,wBAAwB,EAAE,4BAAyB;AACvG,OAAO,EACL,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,GACrC,mCAAgC;AACjC,OAAO,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,kBAAkB,GACxB,sBAAmB"}
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Webhooks = exports.WebhookSubscriptions = exports.WebhookEvents = exports.Phonenumbers = exports.PhoneNumbers = exports.Messages = exports.ContactCard = exports.Chats = exports.Capability = exports.Attachments = void 0;
4
+ exports.Webhooks = exports.WebhookSubscriptions = exports.WebhookEvents = exports.Phonenumbers = exports.PhoneNumbers = exports.Messages = exports.ContactCard = exports.Chats = exports.Capability = exports.AvailableNumber = exports.Attachments = void 0;
5
5
  const tslib_1 = require("../internal/tslib.js");
6
6
  tslib_1.__exportStar(require("./shared.js"), exports);
7
7
  var attachments_1 = require("./attachments.js");
8
8
  Object.defineProperty(exports, "Attachments", { enumerable: true, get: function () { return attachments_1.Attachments; } });
9
+ var available_number_1 = require("./available-number.js");
10
+ Object.defineProperty(exports, "AvailableNumber", { enumerable: true, get: function () { return available_number_1.AvailableNumber; } });
9
11
  var capability_1 = require("./capability.js");
10
12
  Object.defineProperty(exports, "Capability", { enumerable: true, get: function () { return capability_1.Capability; } });
11
13
  var chats_1 = require("./chats/chats.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,0CAgBuB;AAfrB,8FAAA,KAAK,OAAA;AAgBP,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,oDAA6E;AAApE,6GAAA,YAAY,OAAA;AACrB,kDAA4E;AAAnE,4GAAA,YAAY,OAAA;AACrB,sDAAuG;AAA9F,+GAAA,aAAa,OAAA;AACtB,oEAOiC;AAN/B,6HAAA,oBAAoB,OAAA;AAOtB,0CA2BoB;AA1BlB,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,0DAI4B;AAH1B,mHAAA,eAAe,OAAA;AAIjB,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,0CAgBuB;AAfrB,8FAAA,KAAK,OAAA;AAgBP,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,0CAcoB;AAblB,oGAAA,QAAQ,OAAA;AAcV,oDAKyB;AAJvB,6GAAA,YAAY,OAAA;AAKd,kDAA4E;AAAnE,4GAAA,YAAY,OAAA;AACrB,sDAAuG;AAA9F,+GAAA,aAAa,OAAA;AACtB,oEAOiC;AAN/B,6HAAA,oBAAoB,OAAA;AAOtB,0CA2BoB;AA1BlB,oGAAA,QAAQ,OAAA"}
@@ -1,11 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export * from "./shared.mjs";
3
3
  export { Attachments, } from "./attachments.mjs";
4
+ export { AvailableNumber, } from "./available-number.mjs";
4
5
  export { Capability, } from "./capability.mjs";
5
6
  export { Chats, } from "./chats/chats.mjs";
6
7
  export { ContactCard, } from "./contact-card.mjs";
7
8
  export { Messages, } from "./messages.mjs";
8
- export { PhoneNumbers } from "./phone-numbers.mjs";
9
+ export { PhoneNumbers, } from "./phone-numbers.mjs";
9
10
  export { Phonenumbers } from "./phonenumbers.mjs";
10
11
  export { WebhookEvents } from "./webhook-events.mjs";
11
12
  export { WebhookSubscriptions, } from "./webhook-subscriptions.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,WAAW,GAKZ,0BAAsB;AACvB,OAAO,EACL,UAAU,GAKX,yBAAqB;AACtB,OAAO,EACL,KAAK,GAeN,0BAAsB;AACvB,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,QAAQ,GAST,uBAAmB;AACpB,OAAO,EAAE,YAAY,EAAgC,4BAAwB;AAC7E,OAAO,EAAE,YAAY,EAAgC,2BAAuB;AAC5E,OAAO,EAAE,aAAa,EAAwD,6BAAyB;AACvG,OAAO,EACL,oBAAoB,GAMrB,oCAAgC;AACjC,OAAO,EACL,QAAQ,GA0BT,uBAAmB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,WAAW,GAKZ,0BAAsB;AACvB,OAAO,EACL,eAAe,GAGhB,+BAA2B;AAC5B,OAAO,EACL,UAAU,GAKX,yBAAqB;AACtB,OAAO,EACL,KAAK,GAeN,0BAAsB;AACvB,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,QAAQ,GAaT,uBAAmB;AACpB,OAAO,EACL,YAAY,GAIb,4BAAwB;AACzB,OAAO,EAAE,YAAY,EAAgC,2BAAuB;AAC5E,OAAO,EAAE,aAAa,EAAwD,6BAAyB;AACvG,OAAO,EACL,oBAAoB,GAMrB,oCAAgC;AACjC,OAAO,EACL,QAAQ,GA0BT,uBAAmB"}