@linqapp/sdk 0.32.1 → 0.33.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 (203) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +82 -112
  3. package/client.d.mts +42 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +42 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +39 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +39 -3
  10. package/client.mjs.map +1 -1
  11. package/core/error.d.mts +13 -0
  12. package/core/error.d.mts.map +1 -1
  13. package/core/error.d.ts +13 -0
  14. package/core/error.d.ts.map +1 -1
  15. package/core/error.js +5 -1
  16. package/core/error.js.map +1 -1
  17. package/core/error.mjs +5 -1
  18. package/core/error.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/resources/available-number.d.mts +13 -1
  21. package/resources/available-number.d.mts.map +1 -1
  22. package/resources/available-number.d.ts +13 -1
  23. package/resources/available-number.d.ts.map +1 -1
  24. package/resources/available-number.js +2 -1
  25. package/resources/available-number.js.map +1 -1
  26. package/resources/available-number.mjs +2 -1
  27. package/resources/available-number.mjs.map +1 -1
  28. package/resources/chats/chats.d.mts +175 -70
  29. package/resources/chats/chats.d.mts.map +1 -1
  30. package/resources/chats/chats.d.ts +175 -70
  31. package/resources/chats/chats.d.ts.map +1 -1
  32. package/resources/chats/chats.js +65 -61
  33. package/resources/chats/chats.js.map +1 -1
  34. package/resources/chats/chats.mjs +65 -61
  35. package/resources/chats/chats.mjs.map +1 -1
  36. package/resources/chats/index.d.mts +3 -2
  37. package/resources/chats/index.d.mts.map +1 -1
  38. package/resources/chats/index.d.ts +3 -2
  39. package/resources/chats/index.d.ts.map +1 -1
  40. package/resources/chats/index.js +3 -1
  41. package/resources/chats/index.js.map +1 -1
  42. package/resources/chats/index.mjs +1 -0
  43. package/resources/chats/index.mjs.map +1 -1
  44. package/resources/chats/location.d.mts +25 -25
  45. package/resources/chats/location.d.mts.map +1 -1
  46. package/resources/chats/location.d.ts +25 -25
  47. package/resources/chats/location.d.ts.map +1 -1
  48. package/resources/chats/location.js +27 -27
  49. package/resources/chats/location.js.map +1 -1
  50. package/resources/chats/location.mjs +27 -27
  51. package/resources/chats/location.mjs.map +1 -1
  52. package/resources/chats/messages.d.mts +28 -21
  53. package/resources/chats/messages.d.mts.map +1 -1
  54. package/resources/chats/messages.d.ts +28 -21
  55. package/resources/chats/messages.d.ts.map +1 -1
  56. package/resources/chats/messages.js +16 -16
  57. package/resources/chats/messages.js.map +1 -1
  58. package/resources/chats/messages.mjs +16 -16
  59. package/resources/chats/messages.mjs.map +1 -1
  60. package/resources/chats/polls.d.mts +171 -0
  61. package/resources/chats/polls.d.mts.map +1 -0
  62. package/resources/chats/polls.d.ts +171 -0
  63. package/resources/chats/polls.d.ts.map +1 -0
  64. package/resources/chats/polls.js +95 -0
  65. package/resources/chats/polls.js.map +1 -0
  66. package/resources/chats/polls.mjs +91 -0
  67. package/resources/chats/polls.mjs.map +1 -0
  68. package/resources/contact-card.d.mts +29 -28
  69. package/resources/contact-card.d.mts.map +1 -1
  70. package/resources/contact-card.d.ts +29 -28
  71. package/resources/contact-card.d.ts.map +1 -1
  72. package/resources/contact-card.js +23 -22
  73. package/resources/contact-card.js.map +1 -1
  74. package/resources/contact-card.mjs +23 -22
  75. package/resources/contact-card.mjs.map +1 -1
  76. package/resources/experiences.d.mts +91 -0
  77. package/resources/experiences.d.mts.map +1 -0
  78. package/resources/experiences.d.ts +91 -0
  79. package/resources/experiences.d.ts.map +1 -0
  80. package/resources/experiences.js +29 -0
  81. package/resources/experiences.js.map +1 -0
  82. package/resources/experiences.mjs +25 -0
  83. package/resources/experiences.mjs.map +1 -0
  84. package/resources/index.d.mts +7 -3
  85. package/resources/index.d.mts.map +1 -1
  86. package/resources/index.d.ts +7 -3
  87. package/resources/index.d.ts.map +1 -1
  88. package/resources/index.js +10 -2
  89. package/resources/index.js.map +1 -1
  90. package/resources/index.mjs +5 -1
  91. package/resources/index.mjs.map +1 -1
  92. package/resources/messages/index.d.mts +3 -0
  93. package/resources/messages/index.d.mts.map +1 -0
  94. package/resources/messages/index.d.ts +3 -0
  95. package/resources/messages/index.d.ts.map +1 -0
  96. package/resources/messages/index.js +9 -0
  97. package/resources/messages/index.js.map +1 -0
  98. package/resources/messages/index.mjs +4 -0
  99. package/resources/messages/index.mjs.map +1 -0
  100. package/resources/messages/messages.d.mts +795 -0
  101. package/resources/messages/messages.d.mts.map +1 -0
  102. package/resources/messages/messages.d.ts +795 -0
  103. package/resources/messages/messages.d.ts.map +1 -0
  104. package/resources/messages/messages.js +298 -0
  105. package/resources/messages/messages.js.map +1 -0
  106. package/resources/messages/messages.mjs +293 -0
  107. package/resources/messages/messages.mjs.map +1 -0
  108. package/resources/messages/poll.d.mts +131 -0
  109. package/resources/messages/poll.d.mts.map +1 -0
  110. package/resources/messages/poll.d.ts +131 -0
  111. package/resources/messages/poll.d.ts.map +1 -0
  112. package/resources/messages/poll.js +119 -0
  113. package/resources/messages/poll.js.map +1 -0
  114. package/resources/messages/poll.mjs +115 -0
  115. package/resources/messages/poll.mjs.map +1 -0
  116. package/resources/messages.d.mts +1 -747
  117. package/resources/messages.d.mts.map +1 -1
  118. package/resources/messages.d.ts +1 -747
  119. package/resources/messages.d.ts.map +1 -1
  120. package/resources/messages.js +2 -275
  121. package/resources/messages.js.map +1 -1
  122. package/resources/messages.mjs +1 -273
  123. package/resources/messages.mjs.map +1 -1
  124. package/resources/payment-handles.d.mts +87 -0
  125. package/resources/payment-handles.d.mts.map +1 -0
  126. package/resources/payment-handles.d.ts +87 -0
  127. package/resources/payment-handles.d.ts.map +1 -0
  128. package/resources/payment-handles.js +76 -0
  129. package/resources/payment-handles.js.map +1 -0
  130. package/resources/payment-handles.mjs +72 -0
  131. package/resources/payment-handles.mjs.map +1 -0
  132. package/resources/payment-providers.d.mts +58 -0
  133. package/resources/payment-providers.d.mts.map +1 -0
  134. package/resources/payment-providers.d.ts +58 -0
  135. package/resources/payment-providers.d.ts.map +1 -0
  136. package/resources/payment-providers.js +45 -0
  137. package/resources/payment-providers.js.map +1 -0
  138. package/resources/payment-providers.mjs +41 -0
  139. package/resources/payment-providers.mjs.map +1 -0
  140. package/resources/payment-requests.d.mts +2 -2
  141. package/resources/payment-requests.d.ts +2 -2
  142. package/resources/payment-requests.js +2 -2
  143. package/resources/payment-requests.mjs +2 -2
  144. package/resources/payments.d.mts +116 -0
  145. package/resources/payments.d.mts.map +1 -0
  146. package/resources/payments.d.ts +116 -0
  147. package/resources/payments.d.ts.map +1 -0
  148. package/resources/payments.js +70 -0
  149. package/resources/payments.js.map +1 -0
  150. package/resources/payments.mjs +66 -0
  151. package/resources/payments.mjs.map +1 -0
  152. package/resources/phone-numbers.d.mts +11 -11
  153. package/resources/phone-numbers.d.mts.map +1 -1
  154. package/resources/phone-numbers.d.ts +11 -11
  155. package/resources/phone-numbers.d.ts.map +1 -1
  156. package/resources/phone-numbers.js +13 -13
  157. package/resources/phone-numbers.js.map +1 -1
  158. package/resources/phone-numbers.mjs +13 -13
  159. package/resources/phone-numbers.mjs.map +1 -1
  160. package/resources/webhook-events.d.mts +1 -1
  161. package/resources/webhook-events.d.mts.map +1 -1
  162. package/resources/webhook-events.d.ts +1 -1
  163. package/resources/webhook-events.d.ts.map +1 -1
  164. package/resources/webhook-subscriptions.d.mts +11 -11
  165. package/resources/webhook-subscriptions.d.mts.map +1 -1
  166. package/resources/webhook-subscriptions.d.ts +11 -11
  167. package/resources/webhook-subscriptions.d.ts.map +1 -1
  168. package/resources/webhook-subscriptions.js +13 -13
  169. package/resources/webhook-subscriptions.js.map +1 -1
  170. package/resources/webhook-subscriptions.mjs +13 -13
  171. package/resources/webhook-subscriptions.mjs.map +1 -1
  172. package/resources/webhooks.d.mts +72 -1
  173. package/resources/webhooks.d.mts.map +1 -1
  174. package/resources/webhooks.d.ts +72 -1
  175. package/resources/webhooks.d.ts.map +1 -1
  176. package/src/client.ts +91 -20
  177. package/src/core/error.ts +20 -1
  178. package/src/resources/available-number.ts +14 -1
  179. package/src/resources/chats/chats.ts +203 -85
  180. package/src/resources/chats/index.ts +3 -2
  181. package/src/resources/chats/location.ts +28 -28
  182. package/src/resources/chats/messages.ts +40 -32
  183. package/src/resources/chats/polls.ts +196 -0
  184. package/src/resources/contact-card.ts +36 -35
  185. package/src/resources/experiences.ts +118 -0
  186. package/src/resources/index.ts +23 -5
  187. package/src/resources/messages/index.ts +18 -0
  188. package/src/resources/messages/messages.ts +958 -0
  189. package/src/resources/messages/poll.ts +151 -0
  190. package/src/resources/messages.ts +1 -894
  191. package/src/resources/payment-handles.ts +114 -0
  192. package/src/resources/payment-providers.ts +81 -0
  193. package/src/resources/payment-requests.ts +2 -2
  194. package/src/resources/payments.ts +163 -0
  195. package/src/resources/phone-numbers.ts +14 -14
  196. package/src/resources/webhook-events.ts +9 -0
  197. package/src/resources/webhook-subscriptions.ts +14 -14
  198. package/src/resources/webhooks.ts +82 -0
  199. package/src/version.ts +1 -1
  200. package/version.d.mts +1 -1
  201. package/version.d.ts +1 -1
  202. package/version.js +1 -1
  203. package/version.mjs +1 -1
@@ -2,10 +2,12 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as LocationAPI from "./location.mjs";
4
4
  import { Location } from "./location.mjs";
5
- import * as ChatsMessagesAPI from "./messages.mjs";
5
+ import * as MessagesAPI from "./messages.mjs";
6
6
  import { Messages } from "./messages.mjs";
7
7
  import * as ParticipantsAPI from "./participants.mjs";
8
8
  import { Participants, } from "./participants.mjs";
9
+ import * as PollsAPI from "./polls.mjs";
10
+ import { Polls } from "./polls.mjs";
9
11
  import * as TypingAPI from "./typing.mjs";
10
12
  import { Typing } from "./typing.mjs";
11
13
  import { ListChatsPagination } from "../../core/pagination.mjs";
@@ -16,8 +18,9 @@ export class Chats extends APIResource {
16
18
  super(...arguments);
17
19
  this.participants = new ParticipantsAPI.Participants(this._client);
18
20
  this.typing = new TypingAPI.Typing(this._client);
19
- this.messages = new ChatsMessagesAPI.Messages(this._client);
21
+ this.messages = new MessagesAPI.Messages(this._client);
20
22
  this.location = new LocationAPI.Location(this._client);
23
+ this.polls = new PollsAPI.Polls(this._client);
21
24
  }
22
25
  /**
23
26
  * Create a new chat with specified participants and send an initial message. The
@@ -111,42 +114,6 @@ export class Chats extends APIResource {
111
114
  create(body, options) {
112
115
  return this._client.post('/v3/chats', { body, ...options });
113
116
  }
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
117
  /**
151
118
  * Retrieve a chat by its unique identifier.
152
119
  *
@@ -178,22 +145,6 @@ export class Chats extends APIResource {
178
145
  update(chatID, body, options) {
179
146
  return this._client.put(path `/v3/chats/${chatID}`, { body, ...options });
180
147
  }
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
148
  /**
198
149
  * Removes your phone number from a group chat. Once you leave, you will no longer
199
150
  * receive messages from the group and all interaction endpoints (send message,
@@ -220,21 +171,53 @@ export class Chats extends APIResource {
220
171
  return this._client.post(path `/v3/chats/${chatID}/leave`, options);
221
172
  }
222
173
  /**
223
- * Share your contact information (Name and Photo Sharing) with a chat.
174
+ * Retrieves a paginated list of chats for the authenticated partner.
224
175
  *
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).
176
+ * **Filtering:**
177
+ *
178
+ * - If `from` is provided, returns chats for that specific phone number
179
+ * - If `from` is omitted, returns chats across all phone numbers owned by the
180
+ * partner
181
+ * - If `to` is provided, only returns chats where the specified handle is a
182
+ * participant
183
+ *
184
+ * **Pagination:**
185
+ *
186
+ * - Use `limit` to control page size (default: 20, max: 100)
187
+ * - The response includes `next_cursor` for fetching the next page
188
+ * - When `next_cursor` is `null`, there are no more results to fetch
189
+ * - Pass the `next_cursor` value as the `cursor` parameter for the next request
190
+ *
191
+ * **Example pagination flow:**
192
+ *
193
+ * 1. First request: `GET /v3/chats?from=%2B12223334444&limit=20`
194
+ * 2. Response includes `next_cursor: "20"` (more results exist)
195
+ * 3. Next request: `GET /v3/chats?from=%2B12223334444&limit=20&cursor=20`
196
+ * 4. Response includes `next_cursor: null` (no more results)
228
197
  *
229
198
  * @example
230
199
  * ```ts
231
- * await client.chats.shareContactCard(
200
+ * // Automatically fetches more pages as needed.
201
+ * for await (const chat of client.chats.listChats()) {
202
+ * // ...
203
+ * }
204
+ * ```
205
+ */
206
+ listChats(query = {}, options) {
207
+ return this._client.getAPIList('/v3/chats', (ListChatsPagination), { query, ...options });
208
+ }
209
+ /**
210
+ * Mark all messages in a chat as read.
211
+ *
212
+ * @example
213
+ * ```ts
214
+ * await client.chats.markAsRead(
232
215
  * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
233
216
  * );
234
217
  * ```
235
218
  */
236
- shareContactCard(chatID, options) {
237
- return this._client.post(path `/v3/chats/${chatID}/share_contact_card`, {
219
+ markAsRead(chatID, options) {
220
+ return this._client.post(path `/v3/chats/${chatID}/read`, {
238
221
  ...options,
239
222
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
240
223
  });
@@ -266,9 +249,30 @@ export class Chats extends APIResource {
266
249
  sendVoicememo(chatID, body, options) {
267
250
  return this._client.post(path `/v3/chats/${chatID}/voicememo`, { body, ...options });
268
251
  }
252
+ /**
253
+ * Share your contact information (Name and Photo Sharing) with a chat.
254
+ *
255
+ * **Note:** A contact card must be configured before sharing. You can set up your
256
+ * contact card via the [Contact Card API](#tag/Contact-Card) or on the
257
+ * [Linq dashboard](https://dashboard.linqapp.com/contact-cards).
258
+ *
259
+ * @example
260
+ * ```ts
261
+ * await client.chats.shareContactCard(
262
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
263
+ * );
264
+ * ```
265
+ */
266
+ shareContactCard(chatID, options) {
267
+ return this._client.post(path `/v3/chats/${chatID}/share_contact_card`, {
268
+ ...options,
269
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
270
+ });
271
+ }
269
272
  }
270
273
  Chats.Participants = Participants;
271
274
  Chats.Typing = Typing;
272
275
  Chats.Messages = Messages;
273
276
  Chats.Location = Location;
277
+ Chats.Polls = Polls;
274
278
  //# sourceMappingURL=chats.mjs.map
@@ -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,u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, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatListChatsParams, type ChatUpdateParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.mjs";
1
+ export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.mjs";
2
2
  export { Location, type GetChatLocationResponse, type LocationRequestResponse } from "./location.mjs";
3
- export { Messages, type SentMessage, type MessageSendResponse, type MessageSendParams, type MessageListParams, } from "./messages.mjs";
3
+ export { Messages, type SentMessage, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.mjs";
4
4
  export { Participants, type ParticipantAddResponse, type ParticipantRemoveResponse, type ParticipantAddParams, type ParticipantRemoveParams, } from "./participants.mjs";
5
+ export { Polls, type Poll, type PollEnvelope, type PollCreateParams } from "./polls.mjs";
5
6
  export { Typing } from "./typing.mjs";
6
7
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,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,oBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,uBAAmB;AAClG,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,uBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,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,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B,oBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,uBAAmB;AAClG,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,uBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,oBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
@@ -1,6 +1,7 @@
1
- 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.js";
1
+ export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.js";
2
2
  export { Location, type GetChatLocationResponse, type LocationRequestResponse } from "./location.js";
3
- export { Messages, type SentMessage, type MessageSendResponse, type MessageSendParams, type MessageListParams, } from "./messages.js";
3
+ export { Messages, type SentMessage, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.js";
4
4
  export { Participants, type ParticipantAddResponse, type ParticipantRemoveResponse, type ParticipantAddParams, type ParticipantRemoveParams, } from "./participants.js";
5
+ export { Polls, type Poll, type PollEnvelope, type PollCreateParams } from "./polls.js";
5
6
  export { Typing } from "./typing.js";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,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,mBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,sBAAmB;AAClG,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,sBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,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,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B,mBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,sBAAmB;AAClG,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,sBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,mBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
@@ -1,7 +1,7 @@
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.Typing = exports.Participants = exports.Messages = exports.Location = exports.Chats = void 0;
4
+ exports.Typing = exports.Polls = exports.Participants = exports.Messages = exports.Location = exports.Chats = void 0;
5
5
  var chats_1 = require("./chats.js");
6
6
  Object.defineProperty(exports, "Chats", { enumerable: true, get: function () { return chats_1.Chats; } });
7
7
  var location_1 = require("./location.js");
@@ -10,6 +10,8 @@ var messages_1 = require("./messages.js");
10
10
  Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } });
11
11
  var participants_1 = require("./participants.js");
12
12
  Object.defineProperty(exports, "Participants", { enumerable: true, get: function () { return participants_1.Participants; } });
13
+ var polls_1 = require("./polls.js");
14
+ Object.defineProperty(exports, "Polls", { enumerable: true, get: function () { return polls_1.Polls; } });
13
15
  var typing_1 = require("./typing.js");
14
16
  Object.defineProperty(exports, "Typing", { enumerable: true, get: function () { return typing_1.Typing; } });
15
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAgBiB;AAff,8FAAA,KAAK,OAAA;AAgBP,0CAAkG;AAAzF,oGAAA,QAAQ,OAAA;AACjB,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAgBiB;AAff,8FAAA,KAAK,OAAA;AAgBP,0CAAkG;AAAzF,oGAAA,QAAQ,OAAA;AACjB,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,oCAAqF;AAA5E,8FAAA,KAAK,OAAA;AACd,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
@@ -3,5 +3,6 @@ export { Chats, } from "./chats.mjs";
3
3
  export { Location } from "./location.mjs";
4
4
  export { Messages, } from "./messages.mjs";
5
5
  export { Participants, } from "./participants.mjs";
6
+ export { Polls } from "./polls.mjs";
6
7
  export { Typing } from "./typing.mjs";
7
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAeN,oBAAgB;AACjB,OAAO,EAAE,QAAQ,EAA8D,uBAAmB;AAClG,OAAO,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,YAAY,GAKb,2BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAeN,oBAAgB;AACjB,OAAO,EAAE,QAAQ,EAA8D,uBAAmB;AAClG,OAAO,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,YAAY,GAKb,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAuD,oBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
@@ -40,31 +40,6 @@ import { RequestOptions } from "../../internal/request-options.mjs";
40
40
  * Messages conversation** with your number.
41
41
  */
42
42
  export declare class Location extends APIResource {
43
- /**
44
- * Request a contact in a chat to share their location. They receive an iMessage
45
- * prompt and must accept before any location is available; once they do, read
46
- * their location coordinates with `GET /v3/chats/{chatId}/location`.
47
- *
48
- * The request is delivered asynchronously. The endpoint returns immediately with
49
- * `{ "success": true, "message": "Location request sent" }` and does not return
50
- * coordinates.
51
- *
52
- * Location requests only work in **1:1 iMessage chats** (Apple limitation):
53
- *
54
- * - Group chats (any service) return `409` with code `2016`
55
- * (`GroupChatNotSupported`).
56
- * - 1:1 SMS and RCS chats return `409` with code `2017`
57
- * (`ChatServiceNotSupported`).
58
- *
59
- * @example
60
- * ```ts
61
- * const locationRequestResponse =
62
- * await client.chats.location.request(
63
- * '975d0776-bd17-4273-8337-f346b4c661b0',
64
- * );
65
- * ```
66
- */
67
- request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse>;
68
43
  /**
69
44
  * Retrieve the current location for contacts sharing with you in a chat.
70
45
  *
@@ -94,6 +69,31 @@ export declare class Location extends APIResource {
94
69
  * ```
95
70
  */
96
71
  retrieve(chatID: string, options?: RequestOptions): APIPromise<GetChatLocationResponse>;
72
+ /**
73
+ * Request a contact in a chat to share their location. They receive an iMessage
74
+ * prompt and must accept before any location is available; once they do, read
75
+ * their location coordinates with `GET /v3/chats/{chatId}/location`.
76
+ *
77
+ * The request is delivered asynchronously. The endpoint returns immediately with
78
+ * `{ "success": true, "message": "Location request sent" }` and does not return
79
+ * coordinates.
80
+ *
81
+ * Location requests only work in **1:1 iMessage chats** (Apple limitation):
82
+ *
83
+ * - Group chats (any service) return `409` with code `2016`
84
+ * (`GroupChatNotSupported`).
85
+ * - 1:1 SMS and RCS chats return `409` with code `2017`
86
+ * (`ChatServiceNotSupported`).
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * const locationRequestResponse =
91
+ * await client.chats.location.request(
92
+ * '975d0776-bd17-4273-8337-f346b4c661b0',
93
+ * );
94
+ * ```
95
+ */
96
+ request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse>;
97
97
  }
98
98
  export interface GetChatLocationResponse {
99
99
  data: GetChatLocationResponse.Data;
@@ -1 +1 @@
1
- {"version":3,"file":"location.d.mts","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,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ACH,MAAM,EAAE,MAAM,CAAC;gBAEf;;mBAEG;gBACH,OAAO,CAAC,EAAE,MAAM,CAAC;gBAEjB;;mBAEG;gBACH,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAElB;;mBAEG;gBACH,UAAU,CAAC,EAAE,MAAM,CAAC;aACrB;SACF;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -40,31 +40,6 @@ import { RequestOptions } from "../../internal/request-options.js";
40
40
  * Messages conversation** with your number.
41
41
  */
42
42
  export declare class Location extends APIResource {
43
- /**
44
- * Request a contact in a chat to share their location. They receive an iMessage
45
- * prompt and must accept before any location is available; once they do, read
46
- * their location coordinates with `GET /v3/chats/{chatId}/location`.
47
- *
48
- * The request is delivered asynchronously. The endpoint returns immediately with
49
- * `{ "success": true, "message": "Location request sent" }` and does not return
50
- * coordinates.
51
- *
52
- * Location requests only work in **1:1 iMessage chats** (Apple limitation):
53
- *
54
- * - Group chats (any service) return `409` with code `2016`
55
- * (`GroupChatNotSupported`).
56
- * - 1:1 SMS and RCS chats return `409` with code `2017`
57
- * (`ChatServiceNotSupported`).
58
- *
59
- * @example
60
- * ```ts
61
- * const locationRequestResponse =
62
- * await client.chats.location.request(
63
- * '975d0776-bd17-4273-8337-f346b4c661b0',
64
- * );
65
- * ```
66
- */
67
- request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse>;
68
43
  /**
69
44
  * Retrieve the current location for contacts sharing with you in a chat.
70
45
  *
@@ -94,6 +69,31 @@ export declare class Location extends APIResource {
94
69
  * ```
95
70
  */
96
71
  retrieve(chatID: string, options?: RequestOptions): APIPromise<GetChatLocationResponse>;
72
+ /**
73
+ * Request a contact in a chat to share their location. They receive an iMessage
74
+ * prompt and must accept before any location is available; once they do, read
75
+ * their location coordinates with `GET /v3/chats/{chatId}/location`.
76
+ *
77
+ * The request is delivered asynchronously. The endpoint returns immediately with
78
+ * `{ "success": true, "message": "Location request sent" }` and does not return
79
+ * coordinates.
80
+ *
81
+ * Location requests only work in **1:1 iMessage chats** (Apple limitation):
82
+ *
83
+ * - Group chats (any service) return `409` with code `2016`
84
+ * (`GroupChatNotSupported`).
85
+ * - 1:1 SMS and RCS chats return `409` with code `2017`
86
+ * (`ChatServiceNotSupported`).
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * const locationRequestResponse =
91
+ * await client.chats.location.request(
92
+ * '975d0776-bd17-4273-8337-f346b4c661b0',
93
+ * );
94
+ * ```
95
+ */
96
+ request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse>;
97
97
  }
98
98
  export interface GetChatLocationResponse {
99
99
  data: GetChatLocationResponse.Data;
@@ -1 +1 @@
1
- {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAItF;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAMxF;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,uBAAuB,C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B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -44,33 +44,6 @@ const path_1 = require("../../internal/utils/path.js");
44
44
  * Messages conversation** with your number.
45
45
  */
46
46
  class Location extends resource_1.APIResource {
47
- /**
48
- * Request a contact in a chat to share their location. They receive an iMessage
49
- * prompt and must accept before any location is available; once they do, read
50
- * their location coordinates with `GET /v3/chats/{chatId}/location`.
51
- *
52
- * The request is delivered asynchronously. The endpoint returns immediately with
53
- * `{ "success": true, "message": "Location request sent" }` and does not return
54
- * coordinates.
55
- *
56
- * Location requests only work in **1:1 iMessage chats** (Apple limitation):
57
- *
58
- * - Group chats (any service) return `409` with code `2016`
59
- * (`GroupChatNotSupported`).
60
- * - 1:1 SMS and RCS chats return `409` with code `2017`
61
- * (`ChatServiceNotSupported`).
62
- *
63
- * @example
64
- * ```ts
65
- * const locationRequestResponse =
66
- * await client.chats.location.request(
67
- * '975d0776-bd17-4273-8337-f346b4c661b0',
68
- * );
69
- * ```
70
- */
71
- request(chatID, options) {
72
- return this._client.post((0, path_1.path) `/v3/chats/${chatID}/location/request`, options);
73
- }
74
47
  /**
75
48
  * Retrieve the current location for contacts sharing with you in a chat.
76
49
  *
@@ -105,6 +78,33 @@ class Location extends resource_1.APIResource {
105
78
  headers: (0, headers_1.buildHeaders)([{ Accept: 'application/geo+json' }, options?.headers]),
106
79
  });
107
80
  }
81
+ /**
82
+ * Request a contact in a chat to share their location. They receive an iMessage
83
+ * prompt and must accept before any location is available; once they do, read
84
+ * their location coordinates with `GET /v3/chats/{chatId}/location`.
85
+ *
86
+ * The request is delivered asynchronously. The endpoint returns immediately with
87
+ * `{ "success": true, "message": "Location request sent" }` and does not return
88
+ * coordinates.
89
+ *
90
+ * Location requests only work in **1:1 iMessage chats** (Apple limitation):
91
+ *
92
+ * - Group chats (any service) return `409` with code `2016`
93
+ * (`GroupChatNotSupported`).
94
+ * - 1:1 SMS and RCS chats return `409` with code `2017`
95
+ * (`ChatServiceNotSupported`).
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * const locationRequestResponse =
100
+ * await client.chats.location.request(
101
+ * '975d0776-bd17-4273-8337-f346b4c661b0',
102
+ * );
103
+ * ```
104
+ */
105
+ request(chatID, options) {
106
+ return this._client.post((0, path_1.path) `/v3/chats/${chatID}/location/request`, options);
107
+ }
108
108
  }
109
109
  exports.Location = Location;
110
110
  //# sourceMappingURL=location.js.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AA/DD,4BA+DC"}
1
+ {"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AA/DD,4BA+DC"}
@@ -41,33 +41,6 @@ import { path } from "../../internal/utils/path.mjs";
41
41
  * Messages conversation** with your number.
42
42
  */
43
43
  export class Location extends APIResource {
44
- /**
45
- * Request a contact in a chat to share their location. They receive an iMessage
46
- * prompt and must accept before any location is available; once they do, read
47
- * their location coordinates with `GET /v3/chats/{chatId}/location`.
48
- *
49
- * The request is delivered asynchronously. The endpoint returns immediately with
50
- * `{ "success": true, "message": "Location request sent" }` and does not return
51
- * coordinates.
52
- *
53
- * Location requests only work in **1:1 iMessage chats** (Apple limitation):
54
- *
55
- * - Group chats (any service) return `409` with code `2016`
56
- * (`GroupChatNotSupported`).
57
- * - 1:1 SMS and RCS chats return `409` with code `2017`
58
- * (`ChatServiceNotSupported`).
59
- *
60
- * @example
61
- * ```ts
62
- * const locationRequestResponse =
63
- * await client.chats.location.request(
64
- * '975d0776-bd17-4273-8337-f346b4c661b0',
65
- * );
66
- * ```
67
- */
68
- request(chatID, options) {
69
- return this._client.post(path `/v3/chats/${chatID}/location/request`, options);
70
- }
71
44
  /**
72
45
  * Retrieve the current location for contacts sharing with you in a chat.
73
46
  *
@@ -102,5 +75,32 @@ export class Location extends APIResource {
102
75
  headers: buildHeaders([{ Accept: 'application/geo+json' }, options?.headers]),
103
76
  });
104
77
  }
78
+ /**
79
+ * Request a contact in a chat to share their location. They receive an iMessage
80
+ * prompt and must accept before any location is available; once they do, read
81
+ * their location coordinates with `GET /v3/chats/{chatId}/location`.
82
+ *
83
+ * The request is delivered asynchronously. The endpoint returns immediately with
84
+ * `{ "success": true, "message": "Location request sent" }` and does not return
85
+ * coordinates.
86
+ *
87
+ * Location requests only work in **1:1 iMessage chats** (Apple limitation):
88
+ *
89
+ * - Group chats (any service) return `409` with code `2016`
90
+ * (`GroupChatNotSupported`).
91
+ * - 1:1 SMS and RCS chats return `409` with code `2017`
92
+ * (`ChatServiceNotSupported`).
93
+ *
94
+ * @example
95
+ * ```ts
96
+ * const locationRequestResponse =
97
+ * await client.chats.location.request(
98
+ * '975d0776-bd17-4273-8337-f346b4c661b0',
99
+ * );
100
+ * ```
101
+ */
102
+ request(chatID, options) {
103
+ return this._client.post(path `/v3/chats/${chatID}/location/request`, options);
104
+ }
105
105
  }
106
106
  //# sourceMappingURL=location.mjs.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,O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