@linqapp/sdk 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/client.d.mts +41 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +41 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +38 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +38 -2
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/available-number.d.mts +13 -1
  12. package/resources/available-number.d.mts.map +1 -1
  13. package/resources/available-number.d.ts +13 -1
  14. package/resources/available-number.d.ts.map +1 -1
  15. package/resources/available-number.js +2 -1
  16. package/resources/available-number.js.map +1 -1
  17. package/resources/available-number.mjs +2 -1
  18. package/resources/available-number.mjs.map +1 -1
  19. package/resources/chats/chats.d.mts +125 -64
  20. package/resources/chats/chats.d.mts.map +1 -1
  21. package/resources/chats/chats.d.ts +125 -64
  22. package/resources/chats/chats.d.ts.map +1 -1
  23. package/resources/chats/chats.js +59 -59
  24. package/resources/chats/chats.js.map +1 -1
  25. package/resources/chats/chats.mjs +59 -59
  26. package/resources/chats/chats.mjs.map +1 -1
  27. package/resources/chats/index.d.mts +2 -2
  28. package/resources/chats/index.d.mts.map +1 -1
  29. package/resources/chats/index.d.ts +2 -2
  30. package/resources/chats/index.d.ts.map +1 -1
  31. package/resources/chats/location.d.mts +25 -25
  32. package/resources/chats/location.d.mts.map +1 -1
  33. package/resources/chats/location.d.ts +25 -25
  34. package/resources/chats/location.d.ts.map +1 -1
  35. package/resources/chats/location.js +27 -27
  36. package/resources/chats/location.js.map +1 -1
  37. package/resources/chats/location.mjs +27 -27
  38. package/resources/chats/location.mjs.map +1 -1
  39. package/resources/chats/messages.d.mts +17 -17
  40. package/resources/chats/messages.d.mts.map +1 -1
  41. package/resources/chats/messages.d.ts +17 -17
  42. package/resources/chats/messages.d.ts.map +1 -1
  43. package/resources/chats/messages.js +16 -16
  44. package/resources/chats/messages.js.map +1 -1
  45. package/resources/chats/messages.mjs +16 -16
  46. package/resources/chats/messages.mjs.map +1 -1
  47. package/resources/contact-card.d.mts +29 -28
  48. package/resources/contact-card.d.mts.map +1 -1
  49. package/resources/contact-card.d.ts +29 -28
  50. package/resources/contact-card.d.ts.map +1 -1
  51. package/resources/contact-card.js +23 -22
  52. package/resources/contact-card.js.map +1 -1
  53. package/resources/contact-card.mjs +23 -22
  54. package/resources/contact-card.mjs.map +1 -1
  55. package/resources/experiences.d.mts +91 -0
  56. package/resources/experiences.d.mts.map +1 -0
  57. package/resources/experiences.d.ts +91 -0
  58. package/resources/experiences.d.ts.map +1 -0
  59. package/resources/experiences.js +29 -0
  60. package/resources/experiences.js.map +1 -0
  61. package/resources/experiences.mjs +25 -0
  62. package/resources/experiences.mjs.map +1 -0
  63. package/resources/index.d.mts +7 -3
  64. package/resources/index.d.mts.map +1 -1
  65. package/resources/index.d.ts +7 -3
  66. package/resources/index.d.ts.map +1 -1
  67. package/resources/index.js +9 -1
  68. package/resources/index.js.map +1 -1
  69. package/resources/index.mjs +4 -0
  70. package/resources/index.mjs.map +1 -1
  71. package/resources/messages.d.mts +71 -35
  72. package/resources/messages.d.mts.map +1 -1
  73. package/resources/messages.d.ts +71 -35
  74. package/resources/messages.d.ts.map +1 -1
  75. package/resources/messages.js +41 -30
  76. package/resources/messages.js.map +1 -1
  77. package/resources/messages.mjs +41 -30
  78. package/resources/messages.mjs.map +1 -1
  79. package/resources/payment-handles.d.mts +87 -0
  80. package/resources/payment-handles.d.mts.map +1 -0
  81. package/resources/payment-handles.d.ts +87 -0
  82. package/resources/payment-handles.d.ts.map +1 -0
  83. package/resources/payment-handles.js +76 -0
  84. package/resources/payment-handles.js.map +1 -0
  85. package/resources/payment-handles.mjs +72 -0
  86. package/resources/payment-handles.mjs.map +1 -0
  87. package/resources/payment-providers.d.mts +58 -0
  88. package/resources/payment-providers.d.mts.map +1 -0
  89. package/resources/payment-providers.d.ts +58 -0
  90. package/resources/payment-providers.d.ts.map +1 -0
  91. package/resources/payment-providers.js +45 -0
  92. package/resources/payment-providers.js.map +1 -0
  93. package/resources/payment-providers.mjs +41 -0
  94. package/resources/payment-providers.mjs.map +1 -0
  95. package/resources/payment-requests.d.mts +2 -2
  96. package/resources/payment-requests.d.ts +2 -2
  97. package/resources/payment-requests.js +2 -2
  98. package/resources/payment-requests.mjs +2 -2
  99. package/resources/payments.d.mts +116 -0
  100. package/resources/payments.d.mts.map +1 -0
  101. package/resources/payments.d.ts +116 -0
  102. package/resources/payments.d.ts.map +1 -0
  103. package/resources/payments.js +70 -0
  104. package/resources/payments.js.map +1 -0
  105. package/resources/payments.mjs +66 -0
  106. package/resources/payments.mjs.map +1 -0
  107. package/resources/phone-numbers.d.mts +11 -11
  108. package/resources/phone-numbers.d.mts.map +1 -1
  109. package/resources/phone-numbers.d.ts +11 -11
  110. package/resources/phone-numbers.d.ts.map +1 -1
  111. package/resources/phone-numbers.js +13 -13
  112. package/resources/phone-numbers.js.map +1 -1
  113. package/resources/phone-numbers.mjs +13 -13
  114. package/resources/phone-numbers.mjs.map +1 -1
  115. package/resources/webhook-subscriptions.d.mts +11 -11
  116. package/resources/webhook-subscriptions.d.mts.map +1 -1
  117. package/resources/webhook-subscriptions.d.ts +11 -11
  118. package/resources/webhook-subscriptions.d.ts.map +1 -1
  119. package/resources/webhook-subscriptions.js +13 -13
  120. package/resources/webhook-subscriptions.js.map +1 -1
  121. package/resources/webhook-subscriptions.mjs +13 -13
  122. package/resources/webhook-subscriptions.mjs.map +1 -1
  123. package/resources/webhooks.d.mts +59 -0
  124. package/resources/webhooks.d.mts.map +1 -1
  125. package/resources/webhooks.d.ts +59 -0
  126. package/resources/webhooks.d.ts.map +1 -1
  127. package/src/client.ts +77 -6
  128. package/src/resources/available-number.ts +14 -1
  129. package/src/resources/chats/chats.ts +142 -79
  130. package/src/resources/chats/index.ts +2 -2
  131. package/src/resources/chats/location.ts +28 -28
  132. package/src/resources/chats/messages.ts +28 -28
  133. package/src/resources/contact-card.ts +36 -35
  134. package/src/resources/experiences.ts +118 -0
  135. package/src/resources/index.ts +22 -4
  136. package/src/resources/messages.ts +85 -47
  137. package/src/resources/payment-handles.ts +114 -0
  138. package/src/resources/payment-providers.ts +81 -0
  139. package/src/resources/payment-requests.ts +2 -2
  140. package/src/resources/payments.ts +163 -0
  141. package/src/resources/phone-numbers.ts +14 -14
  142. package/src/resources/webhook-subscriptions.ts +14 -14
  143. package/src/resources/webhooks.ts +61 -0
  144. package/src/version.ts +1 -1
  145. package/version.d.mts +1 -1
  146. package/version.d.ts +1 -1
  147. package/version.js +1 -1
  148. package/version.mjs +1 -1
@@ -107,40 +107,6 @@ export declare class Chats extends APIResource {
107
107
  * ```
108
108
  */
109
109
  create(body: ChatCreateParams, options?: RequestOptions): APIPromise<ChatCreateResponse>;
110
- /**
111
- * Retrieves a paginated list of chats for the authenticated partner.
112
- *
113
- * **Filtering:**
114
- *
115
- * - If `from` is provided, returns chats for that specific phone number
116
- * - If `from` is omitted, returns chats across all phone numbers owned by the
117
- * partner
118
- * - If `to` is provided, only returns chats where the specified handle is a
119
- * participant
120
- *
121
- * **Pagination:**
122
- *
123
- * - Use `limit` to control page size (default: 20, max: 100)
124
- * - The response includes `next_cursor` for fetching the next page
125
- * - When `next_cursor` is `null`, there are no more results to fetch
126
- * - Pass the `next_cursor` value as the `cursor` parameter for the next request
127
- *
128
- * **Example pagination flow:**
129
- *
130
- * 1. First request: `GET /v3/chats?from=%2B12223334444&limit=20`
131
- * 2. Response includes `next_cursor: "20"` (more results exist)
132
- * 3. Next request: `GET /v3/chats?from=%2B12223334444&limit=20&cursor=20`
133
- * 4. Response includes `next_cursor: null` (no more results)
134
- *
135
- * @example
136
- * ```ts
137
- * // Automatically fetches more pages as needed.
138
- * for await (const chat of client.chats.listChats()) {
139
- * // ...
140
- * }
141
- * ```
142
- */
143
- listChats(query?: ChatListChatsParams | null | undefined, options?: RequestOptions): PagePromise<ChatsListChatsPagination, Chat>;
144
110
  /**
145
111
  * Retrieve a chat by its unique identifier.
146
112
  *
@@ -168,17 +134,6 @@ export declare class Chats extends APIResource {
168
134
  * ```
169
135
  */
170
136
  update(chatID: string, body: ChatUpdateParams, options?: RequestOptions): APIPromise<ChatUpdateResponse>;
171
- /**
172
- * Mark all messages in a chat as read.
173
- *
174
- * @example
175
- * ```ts
176
- * await client.chats.markAsRead(
177
- * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
178
- * );
179
- * ```
180
- */
181
- markAsRead(chatID: string, options?: RequestOptions): APIPromise<void>;
182
137
  /**
183
138
  * Removes your phone number from a group chat. Once you leave, you will no longer
184
139
  * receive messages from the group and all interaction endpoints (send message,
@@ -203,20 +158,50 @@ export declare class Chats extends APIResource {
203
158
  */
204
159
  leaveChat(chatID: string, options?: RequestOptions): APIPromise<ChatLeaveChatResponse>;
205
160
  /**
206
- * Share your contact information (Name and Photo Sharing) with a chat.
161
+ * Retrieves a paginated list of chats for the authenticated partner.
207
162
  *
208
- * **Note:** A contact card must be configured before sharing. You can set up your
209
- * contact card via the [Contact Card API](#tag/Contact-Card) or on the
210
- * [Linq dashboard](https://dashboard.linqapp.com/contact-cards).
163
+ * **Filtering:**
164
+ *
165
+ * - If `from` is provided, returns chats for that specific phone number
166
+ * - If `from` is omitted, returns chats across all phone numbers owned by the
167
+ * partner
168
+ * - If `to` is provided, only returns chats where the specified handle is a
169
+ * participant
170
+ *
171
+ * **Pagination:**
172
+ *
173
+ * - Use `limit` to control page size (default: 20, max: 100)
174
+ * - The response includes `next_cursor` for fetching the next page
175
+ * - When `next_cursor` is `null`, there are no more results to fetch
176
+ * - Pass the `next_cursor` value as the `cursor` parameter for the next request
177
+ *
178
+ * **Example pagination flow:**
179
+ *
180
+ * 1. First request: `GET /v3/chats?from=%2B12223334444&limit=20`
181
+ * 2. Response includes `next_cursor: "20"` (more results exist)
182
+ * 3. Next request: `GET /v3/chats?from=%2B12223334444&limit=20&cursor=20`
183
+ * 4. Response includes `next_cursor: null` (no more results)
211
184
  *
212
185
  * @example
213
186
  * ```ts
214
- * await client.chats.shareContactCard(
187
+ * // Automatically fetches more pages as needed.
188
+ * for await (const chat of client.chats.listChats()) {
189
+ * // ...
190
+ * }
191
+ * ```
192
+ */
193
+ listChats(query?: ChatListChatsParams | null | undefined, options?: RequestOptions): PagePromise<ChatsListChatsPagination, Chat>;
194
+ /**
195
+ * Mark all messages in a chat as read.
196
+ *
197
+ * @example
198
+ * ```ts
199
+ * await client.chats.markAsRead(
215
200
  * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
216
201
  * );
217
202
  * ```
218
203
  */
219
- shareContactCard(chatID: string, options?: RequestOptions): APIPromise<void>;
204
+ markAsRead(chatID: string, options?: RequestOptions): APIPromise<void>;
220
205
  /**
221
206
  * Send an audio file as an **iMessage voice memo bubble** to all participants in a
222
207
  * chat. Voice memos appear with iMessage's native inline playback UI, unlike
@@ -242,6 +227,21 @@ export declare class Chats extends APIResource {
242
227
  * ```
243
228
  */
244
229
  sendVoicememo(chatID: string, body: ChatSendVoicememoParams, options?: RequestOptions): APIPromise<ChatSendVoicememoResponse>;
230
+ /**
231
+ * Share your contact information (Name and Photo Sharing) with a chat.
232
+ *
233
+ * **Note:** A contact card must be configured before sharing. You can set up your
234
+ * contact card via the [Contact Card API](#tag/Contact-Card) or on the
235
+ * [Linq dashboard](https://dashboard.linqapp.com/contact-cards).
236
+ *
237
+ * @example
238
+ * ```ts
239
+ * await client.chats.shareContactCard(
240
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
241
+ * );
242
+ * ```
243
+ */
244
+ shareContactCard(chatID: string, options?: RequestOptions): APIPromise<void>;
245
245
  }
246
246
  export type ChatsListChatsPagination = ListChatsPagination<Chat>;
247
247
  export interface Chat {
@@ -322,6 +322,17 @@ export declare namespace Chat {
322
322
  * Current health bucket for the chat. See the
323
323
  * [Chat Health guide](/guides/chats/chat-health) for what each value means and how
324
324
  * to react. `doc_url` deep-links to the relevant section.
325
+ *
326
+ * `OPTED_OUT` is terminal — the recipient sent `STOP`, `UNSUBSCRIBE`, `OPTOUT`,
327
+ * `CANCEL`, `END`, or `QUIT`, and you should send nothing further on this chat.
328
+ * The keyword must be the whole trimmed message, never part of a longer one:
329
+ * `STOP` counts, `please stop` does not. Most keywords must match exactly,
330
+ * including case. `OPT OUT` is the exception — it matches in any casing, with or
331
+ * without the space or a hyphen, so `opt out`, `Opt-Out` and `optout` all count.
332
+ * It clears if they later send `START`, `OPTIN`, or `UNSTOP`, or if they keep
333
+ * replying on the chat — sustained two-way conversation is treated as a sign the
334
+ * stop keyword was a false positive. Suppressing sends to opted-out recipients is
335
+ * your responsibility — Linq surfaces the status but does not block the send.
325
336
  */
326
337
  status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL' | 'OPTED_OUT';
327
338
  /**
@@ -400,13 +411,24 @@ export interface MediaPart {
400
411
  * cannot coexist with text), so copy and a card are two sends, not one.
401
412
  */
402
413
  export interface MessageContent {
414
+ /**
415
+ * Invokes an action on an experience — a third party that renders inside Linq's
416
+ * iMessage app. Linq resolves the recipient's connection, mints any session the
417
+ * action needs, composes the card and sends it; none of that is visible to you.
418
+ *
419
+ * Call `GET /v3/experiences/{experience}` for the actions you may invoke and the
420
+ * fields each accepts.
421
+ */
422
+ action?: MessageContent.Action;
403
423
  /**
404
424
  * iMessage effect to apply to this message (screen or bubble effect)
405
425
  */
406
426
  effect?: MessagesAPI.MessageEffect;
407
427
  /**
408
428
  * Optional idempotency key for this message. Use this to prevent duplicate sends
409
- * of the same message.
429
+ * of the same message. Reusing a key whose message was deleted — or was an
430
+ * ephemeral message that has since expired — returns 404; the message is never
431
+ * resent.
410
432
  */
411
433
  idempotency_key?: string;
412
434
  /**
@@ -459,6 +481,34 @@ export interface MessageContent {
459
481
  reply_to?: MessagesAPI.ReplyTo;
460
482
  }
461
483
  export declare namespace MessageContent {
484
+ /**
485
+ * Invokes an action on an experience — a third party that renders inside Linq's
486
+ * iMessage app. Linq resolves the recipient's connection, mints any session the
487
+ * action needs, composes the card and sends it; none of that is visible to you.
488
+ *
489
+ * Call `GET /v3/experiences/{experience}` for the actions you may invoke and the
490
+ * fields each accepts.
491
+ */
492
+ interface Action {
493
+ /**
494
+ * Which of its actions, e.g. `attach_card`.
495
+ */
496
+ action: string;
497
+ /**
498
+ * The experience to invoke, e.g. `agentcard`.
499
+ */
500
+ experience: string;
501
+ /**
502
+ * Values for the fields this action exposes. Keys are exactly the field names
503
+ * listed for the action — no mapping, no nesting.
504
+ *
505
+ * Display copy only, except a `url`-type field — that value sets the destination,
506
+ * and must be an absolute `https` URL.
507
+ */
508
+ params?: {
509
+ [key: string]: unknown;
510
+ };
511
+ }
462
512
  /**
463
513
  * An iMessage app card, backed by a Messages app extension. iMessage only — an
464
514
  * `imessage_app` part must be the **only** part in the message and is never
@@ -693,6 +743,17 @@ export declare namespace ChatCreateResponse {
693
743
  * Current health bucket for the chat. See the
694
744
  * [Chat Health guide](/guides/chats/chat-health) for what each value means and how
695
745
  * to react. `doc_url` deep-links to the relevant section.
746
+ *
747
+ * `OPTED_OUT` is terminal — the recipient sent `STOP`, `UNSUBSCRIBE`, `OPTOUT`,
748
+ * `CANCEL`, `END`, or `QUIT`, and you should send nothing further on this chat.
749
+ * The keyword must be the whole trimmed message, never part of a longer one:
750
+ * `STOP` counts, `please stop` does not. Most keywords must match exactly,
751
+ * including case. `OPT OUT` is the exception — it matches in any casing, with or
752
+ * without the space or a hyphen, so `opt out`, `Opt-Out` and `optout` all count.
753
+ * It clears if they later send `START`, `OPTIN`, or `UNSTOP`, or if they keep
754
+ * replying on the chat — sustained two-way conversation is treated as a sign the
755
+ * stop keyword was a false positive. Suppressing sends to opted-out recipients is
756
+ * your responsibility — Linq surfaces the status but does not block the send.
696
757
  */
697
758
  status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL' | 'OPTED_OUT';
698
759
  /**
@@ -820,6 +881,16 @@ export interface ChatCreateParams {
820
881
  */
821
882
  to: Array<string>;
822
883
  }
884
+ export interface ChatUpdateParams {
885
+ /**
886
+ * New display name for the chat (group chats only)
887
+ */
888
+ display_name?: string;
889
+ /**
890
+ * URL of an image to set as the group chat icon (group chats only)
891
+ */
892
+ group_chat_icon?: string;
893
+ }
823
894
  export interface ChatListChatsParams extends ListChatsPaginationParams {
824
895
  /**
825
896
  * Phone number to filter chats by. Returns chats made from this phone number. Must
@@ -836,16 +907,6 @@ export interface ChatListChatsParams extends ListChatsPaginationParams {
836
907
  */
837
908
  to?: string;
838
909
  }
839
- export interface ChatUpdateParams {
840
- /**
841
- * New display name for the chat (group chats only)
842
- */
843
- display_name?: string;
844
- /**
845
- * URL of an image to set as the group chat icon (group chats only)
846
- */
847
- group_chat_icon?: string;
848
- }
849
910
  export interface ChatSendVoicememoParams {
850
911
  /**
851
912
  * Reference to a voice memo file pre-uploaded via `POST /v3/attachments`. The file
@@ -862,10 +923,10 @@ export interface ChatSendVoicememoParams {
862
923
  voice_memo_url?: string;
863
924
  }
864
925
  export declare namespace Chats {
865
- export { type Chat as Chat, type LinkPart as LinkPart, type MediaPart as MediaPart, type MessageContent as MessageContent, type TextPart as TextPart, type ChatCreateResponse as ChatCreateResponse, type ChatUpdateResponse as ChatUpdateResponse, type ChatLeaveChatResponse as ChatLeaveChatResponse, type ChatSendVoicememoResponse as ChatSendVoicememoResponse, type ChatsListChatsPagination as ChatsListChatsPagination, type ChatCreateParams as ChatCreateParams, type ChatListChatsParams as ChatListChatsParams, type ChatUpdateParams as ChatUpdateParams, type ChatSendVoicememoParams as ChatSendVoicememoParams, };
926
+ export { type Chat as Chat, type LinkPart as LinkPart, type MediaPart as MediaPart, type MessageContent as MessageContent, type TextPart as TextPart, type ChatCreateResponse as ChatCreateResponse, type ChatUpdateResponse as ChatUpdateResponse, type ChatLeaveChatResponse as ChatLeaveChatResponse, type ChatSendVoicememoResponse as ChatSendVoicememoResponse, type ChatsListChatsPagination as ChatsListChatsPagination, type ChatCreateParams as ChatCreateParams, type ChatUpdateParams as ChatUpdateParams, type ChatListChatsParams as ChatListChatsParams, type ChatSendVoicememoParams as ChatSendVoicememoParams, };
866
927
  export { Participants as Participants, type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
867
928
  export { Typing as Typing };
868
- export { Messages as Messages, type SentMessage as SentMessage, type MessageSendResponse as MessageSendResponse, type MessageSendParams as MessageSendParams, type MessageListParams as MessageListParams, };
929
+ export { Messages as Messages, type SentMessage as SentMessage, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
869
930
  export { Location as Location, type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, };
870
931
  }
871
932
  //# sourceMappingURL=chats.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,uBAAuB,EAAE,sBAAmB;AACxF,OAAO,KAAK,gBAAgB,sBAAmB;AAC/C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,sBAAmB;AAC9G,OAAO,KAAK,eAAe,0BAAuB;AAClD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACb,0BAAuB;AACxB,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,MAAM,EAAE,oBAAiB;AAClC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,O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oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;IAE5B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -115,42 +115,6 @@ class Chats extends resource_1.APIResource {
115
115
  create(body, options) {
116
116
  return this._client.post('/v3/chats', { body, ...options });
117
117
  }
118
- /**
119
- * Retrieves a paginated list of chats for the authenticated partner.
120
- *
121
- * **Filtering:**
122
- *
123
- * - If `from` is provided, returns chats for that specific phone number
124
- * - If `from` is omitted, returns chats across all phone numbers owned by the
125
- * partner
126
- * - If `to` is provided, only returns chats where the specified handle is a
127
- * participant
128
- *
129
- * **Pagination:**
130
- *
131
- * - Use `limit` to control page size (default: 20, max: 100)
132
- * - The response includes `next_cursor` for fetching the next page
133
- * - When `next_cursor` is `null`, there are no more results to fetch
134
- * - Pass the `next_cursor` value as the `cursor` parameter for the next request
135
- *
136
- * **Example pagination flow:**
137
- *
138
- * 1. First request: `GET /v3/chats?from=%2B12223334444&limit=20`
139
- * 2. Response includes `next_cursor: "20"` (more results exist)
140
- * 3. Next request: `GET /v3/chats?from=%2B12223334444&limit=20&cursor=20`
141
- * 4. Response includes `next_cursor: null` (no more results)
142
- *
143
- * @example
144
- * ```ts
145
- * // Automatically fetches more pages as needed.
146
- * for await (const chat of client.chats.listChats()) {
147
- * // ...
148
- * }
149
- * ```
150
- */
151
- listChats(query = {}, options) {
152
- return this._client.getAPIList('/v3/chats', (pagination_1.ListChatsPagination), { query, ...options });
153
- }
154
118
  /**
155
119
  * Retrieve a chat by its unique identifier.
156
120
  *
@@ -182,22 +146,6 @@ class Chats extends resource_1.APIResource {
182
146
  update(chatID, body, options) {
183
147
  return this._client.put((0, path_1.path) `/v3/chats/${chatID}`, { body, ...options });
184
148
  }
185
- /**
186
- * Mark all messages in a chat as read.
187
- *
188
- * @example
189
- * ```ts
190
- * await client.chats.markAsRead(
191
- * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
192
- * );
193
- * ```
194
- */
195
- markAsRead(chatID, options) {
196
- return this._client.post((0, path_1.path) `/v3/chats/${chatID}/read`, {
197
- ...options,
198
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
199
- });
200
- }
201
149
  /**
202
150
  * Removes your phone number from a group chat. Once you leave, you will no longer
203
151
  * receive messages from the group and all interaction endpoints (send message,
@@ -224,21 +172,53 @@ class Chats extends resource_1.APIResource {
224
172
  return this._client.post((0, path_1.path) `/v3/chats/${chatID}/leave`, options);
225
173
  }
226
174
  /**
227
- * Share your contact information (Name and Photo Sharing) with a chat.
175
+ * Retrieves a paginated list of chats for the authenticated partner.
228
176
  *
229
- * **Note:** A contact card must be configured before sharing. You can set up your
230
- * contact card via the [Contact Card API](#tag/Contact-Card) or on the
231
- * [Linq dashboard](https://dashboard.linqapp.com/contact-cards).
177
+ * **Filtering:**
178
+ *
179
+ * - If `from` is provided, returns chats for that specific phone number
180
+ * - If `from` is omitted, returns chats across all phone numbers owned by the
181
+ * partner
182
+ * - If `to` is provided, only returns chats where the specified handle is a
183
+ * participant
184
+ *
185
+ * **Pagination:**
186
+ *
187
+ * - Use `limit` to control page size (default: 20, max: 100)
188
+ * - The response includes `next_cursor` for fetching the next page
189
+ * - When `next_cursor` is `null`, there are no more results to fetch
190
+ * - Pass the `next_cursor` value as the `cursor` parameter for the next request
191
+ *
192
+ * **Example pagination flow:**
193
+ *
194
+ * 1. First request: `GET /v3/chats?from=%2B12223334444&limit=20`
195
+ * 2. Response includes `next_cursor: "20"` (more results exist)
196
+ * 3. Next request: `GET /v3/chats?from=%2B12223334444&limit=20&cursor=20`
197
+ * 4. Response includes `next_cursor: null` (no more results)
232
198
  *
233
199
  * @example
234
200
  * ```ts
235
- * await client.chats.shareContactCard(
201
+ * // Automatically fetches more pages as needed.
202
+ * for await (const chat of client.chats.listChats()) {
203
+ * // ...
204
+ * }
205
+ * ```
206
+ */
207
+ listChats(query = {}, options) {
208
+ return this._client.getAPIList('/v3/chats', (pagination_1.ListChatsPagination), { query, ...options });
209
+ }
210
+ /**
211
+ * Mark all messages in a chat as read.
212
+ *
213
+ * @example
214
+ * ```ts
215
+ * await client.chats.markAsRead(
236
216
  * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
237
217
  * );
238
218
  * ```
239
219
  */
240
- shareContactCard(chatID, options) {
241
- return this._client.post((0, path_1.path) `/v3/chats/${chatID}/share_contact_card`, {
220
+ markAsRead(chatID, options) {
221
+ return this._client.post((0, path_1.path) `/v3/chats/${chatID}/read`, {
242
222
  ...options,
243
223
  headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
244
224
  });
@@ -270,6 +250,26 @@ class Chats extends resource_1.APIResource {
270
250
  sendVoicememo(chatID, body, options) {
271
251
  return this._client.post((0, path_1.path) `/v3/chats/${chatID}/voicememo`, { body, ...options });
272
252
  }
253
+ /**
254
+ * Share your contact information (Name and Photo Sharing) with a chat.
255
+ *
256
+ * **Note:** A contact card must be configured before sharing. You can set up your
257
+ * contact card via the [Contact Card API](#tag/Contact-Card) or on the
258
+ * [Linq dashboard](https://dashboard.linqapp.com/contact-cards).
259
+ *
260
+ * @example
261
+ * ```ts
262
+ * await client.chats.shareContactCard(
263
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
264
+ * );
265
+ * ```
266
+ */
267
+ shareContactCard(chatID, options) {
268
+ return this._client.post((0, path_1.path) `/v3/chats/${chatID}/share_contact_card`, {
269
+ ...options,
270
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
271
+ });
272
+ }
273
273
  }
274
274
  exports.Chats = Chats;
275
275
  Chats.Participants = participants_1.Participants;
@@ -1 +1 @@
1
- {"version":3,"file":"chats.js","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,mEAA0C;AAC1C,4CAAwF;AACxF,wEAA+C;AAC/C,4CAA8G;AAC9G,2EAAkD;AAClD,oDAMwB;AACxB,+DAAsC;AACtC,wCAAkC;AAElC,yDAAyG;AACzG,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAA8B,IAAI,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuQ1E,CAAC;IArQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwFG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,SAAS,CACP,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,gCAA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EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,aAAa,CACX,MAAc,EACd,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,gBAAgB,CAAC,MAAc,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,qBAAqB,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA3QD,sBA2QC;AAowBD,KAAK,CAAC,YAAY,GAAG,2BAAY,CAAC;AAClC,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC;AACtB,KAAK,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC1B,KAAK,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -111,42 +111,6 @@ export class Chats extends APIResource {
111
111
  create(body, options) {
112
112
  return this._client.post('/v3/chats', { body, ...options });
113
113
  }
114
- /**
115
- * Retrieves a paginated list of chats for the authenticated partner.
116
- *
117
- * **Filtering:**
118
- *
119
- * - If `from` is provided, returns chats for that specific phone number
120
- * - If `from` is omitted, returns chats across all phone numbers owned by the
121
- * partner
122
- * - If `to` is provided, only returns chats where the specified handle is a
123
- * participant
124
- *
125
- * **Pagination:**
126
- *
127
- * - Use `limit` to control page size (default: 20, max: 100)
128
- * - The response includes `next_cursor` for fetching the next page
129
- * - When `next_cursor` is `null`, there are no more results to fetch
130
- * - Pass the `next_cursor` value as the `cursor` parameter for the next request
131
- *
132
- * **Example pagination flow:**
133
- *
134
- * 1. First request: `GET /v3/chats?from=%2B12223334444&limit=20`
135
- * 2. Response includes `next_cursor: "20"` (more results exist)
136
- * 3. Next request: `GET /v3/chats?from=%2B12223334444&limit=20&cursor=20`
137
- * 4. Response includes `next_cursor: null` (no more results)
138
- *
139
- * @example
140
- * ```ts
141
- * // Automatically fetches more pages as needed.
142
- * for await (const chat of client.chats.listChats()) {
143
- * // ...
144
- * }
145
- * ```
146
- */
147
- listChats(query = {}, options) {
148
- return this._client.getAPIList('/v3/chats', (ListChatsPagination), { query, ...options });
149
- }
150
114
  /**
151
115
  * Retrieve a chat by its unique identifier.
152
116
  *
@@ -178,22 +142,6 @@ export class Chats extends APIResource {
178
142
  update(chatID, body, options) {
179
143
  return this._client.put(path `/v3/chats/${chatID}`, { body, ...options });
180
144
  }
181
- /**
182
- * Mark all messages in a chat as read.
183
- *
184
- * @example
185
- * ```ts
186
- * await client.chats.markAsRead(
187
- * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
188
- * );
189
- * ```
190
- */
191
- markAsRead(chatID, options) {
192
- return this._client.post(path `/v3/chats/${chatID}/read`, {
193
- ...options,
194
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
195
- });
196
- }
197
145
  /**
198
146
  * Removes your phone number from a group chat. Once you leave, you will no longer
199
147
  * receive messages from the group and all interaction endpoints (send message,
@@ -220,21 +168,53 @@ export class Chats extends APIResource {
220
168
  return this._client.post(path `/v3/chats/${chatID}/leave`, options);
221
169
  }
222
170
  /**
223
- * Share your contact information (Name and Photo Sharing) with a chat.
171
+ * Retrieves a paginated list of chats for the authenticated partner.
224
172
  *
225
- * **Note:** A contact card must be configured before sharing. You can set up your
226
- * contact card via the [Contact Card API](#tag/Contact-Card) or on the
227
- * [Linq dashboard](https://dashboard.linqapp.com/contact-cards).
173
+ * **Filtering:**
174
+ *
175
+ * - If `from` is provided, returns chats for that specific phone number
176
+ * - If `from` is omitted, returns chats across all phone numbers owned by the
177
+ * partner
178
+ * - If `to` is provided, only returns chats where the specified handle is a
179
+ * participant
180
+ *
181
+ * **Pagination:**
182
+ *
183
+ * - Use `limit` to control page size (default: 20, max: 100)
184
+ * - The response includes `next_cursor` for fetching the next page
185
+ * - When `next_cursor` is `null`, there are no more results to fetch
186
+ * - Pass the `next_cursor` value as the `cursor` parameter for the next request
187
+ *
188
+ * **Example pagination flow:**
189
+ *
190
+ * 1. First request: `GET /v3/chats?from=%2B12223334444&limit=20`
191
+ * 2. Response includes `next_cursor: "20"` (more results exist)
192
+ * 3. Next request: `GET /v3/chats?from=%2B12223334444&limit=20&cursor=20`
193
+ * 4. Response includes `next_cursor: null` (no more results)
228
194
  *
229
195
  * @example
230
196
  * ```ts
231
- * await client.chats.shareContactCard(
197
+ * // Automatically fetches more pages as needed.
198
+ * for await (const chat of client.chats.listChats()) {
199
+ * // ...
200
+ * }
201
+ * ```
202
+ */
203
+ listChats(query = {}, options) {
204
+ return this._client.getAPIList('/v3/chats', (ListChatsPagination), { query, ...options });
205
+ }
206
+ /**
207
+ * Mark all messages in a chat as read.
208
+ *
209
+ * @example
210
+ * ```ts
211
+ * await client.chats.markAsRead(
232
212
  * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
233
213
  * );
234
214
  * ```
235
215
  */
236
- shareContactCard(chatID, options) {
237
- return this._client.post(path `/v3/chats/${chatID}/share_contact_card`, {
216
+ markAsRead(chatID, options) {
217
+ return this._client.post(path `/v3/chats/${chatID}/read`, {
238
218
  ...options,
239
219
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
240
220
  });
@@ -266,6 +246,26 @@ export class Chats extends APIResource {
266
246
  sendVoicememo(chatID, body, options) {
267
247
  return this._client.post(path `/v3/chats/${chatID}/voicememo`, { body, ...options });
268
248
  }
249
+ /**
250
+ * Share your contact information (Name and Photo Sharing) with a chat.
251
+ *
252
+ * **Note:** A contact card must be configured before sharing. You can set up your
253
+ * contact card via the [Contact Card API](#tag/Contact-Card) or on the
254
+ * [Linq dashboard](https://dashboard.linqapp.com/contact-cards).
255
+ *
256
+ * @example
257
+ * ```ts
258
+ * await client.chats.shareContactCard(
259
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
260
+ * );
261
+ * ```
262
+ */
263
+ shareContactCard(chatID, options) {
264
+ return this._client.post(path `/v3/chats/${chatID}/share_contact_card`, {
265
+ ...options,
266
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
267
+ });
268
+ }
269
269
  }
270
270
  Chats.Participants = Participants;
271
271
  Chats.Typing = Typing;
@@ -1 +1 @@
1
- {"version":3,"file":"chats.mjs","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAA2B,QAAQ,EAA2B,uBAAmB;AACxF,OAAO,KAAK,gBAAgB,uBAAmB;AAC/C,OAAO,EAA6D,QAAQ,EAAe,uBAAmB;AAC9G,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAKL,YAAY,GACb,2BAAuB;AACxB,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAElC,OAAO,EAAE,mBAAmB,EAA+C,kCAA8B;AACzG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAA8B,IAAI,gBAAgB,CAAC,QAAQ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