@linqapp/sdk 0.1.5 → 0.4.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.
- package/CHANGELOG.md +36 -0
- package/README.md +31 -0
- package/client.d.mts +299 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +299 -7
- package/client.d.ts.map +1 -1
- package/client.js +294 -12
- package/client.js.map +1 -1
- package/client.mjs +294 -12
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +69 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +69 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +125 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +118 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/attachments.d.mts +64 -0
- package/resources/attachments.d.mts.map +1 -1
- package/resources/attachments.d.ts +64 -0
- package/resources/attachments.d.ts.map +1 -1
- package/resources/attachments.js +64 -0
- package/resources/attachments.js.map +1 -1
- package/resources/attachments.mjs +64 -0
- package/resources/attachments.mjs.map +1 -1
- package/resources/capability.d.mts +12 -9
- package/resources/capability.d.mts.map +1 -1
- package/resources/capability.d.ts +12 -9
- package/resources/capability.d.ts.map +1 -1
- package/resources/capability.js +7 -4
- package/resources/capability.js.map +1 -1
- package/resources/capability.mjs +7 -4
- package/resources/capability.mjs.map +1 -1
- package/resources/chats/chats.d.mts +76 -97
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +76 -97
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js +8 -4
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +9 -5
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/index.d.mts +2 -2
- package/resources/chats/index.d.mts.map +1 -1
- package/resources/chats/index.d.ts +2 -2
- package/resources/chats/index.d.ts.map +1 -1
- package/resources/chats/index.js.map +1 -1
- package/resources/chats/index.mjs.map +1 -1
- package/resources/chats/messages.d.mts +21 -25
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +21 -25
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/chats/messages.js +16 -3
- package/resources/chats/messages.js.map +1 -1
- package/resources/chats/messages.mjs +16 -3
- package/resources/chats/messages.mjs.map +1 -1
- package/resources/chats/participants.d.mts +18 -0
- package/resources/chats/participants.d.mts.map +1 -1
- package/resources/chats/participants.d.ts +18 -0
- package/resources/chats/participants.d.ts.map +1 -1
- package/resources/chats/participants.js +18 -0
- package/resources/chats/participants.js.map +1 -1
- package/resources/chats/participants.mjs +18 -0
- package/resources/chats/participants.mjs.map +1 -1
- package/resources/chats/typing.d.mts +18 -0
- package/resources/chats/typing.d.mts.map +1 -1
- package/resources/chats/typing.d.ts +18 -0
- package/resources/chats/typing.d.ts.map +1 -1
- package/resources/chats/typing.js +18 -0
- package/resources/chats/typing.js.map +1 -1
- package/resources/chats/typing.mjs +18 -0
- package/resources/chats/typing.mjs.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +37 -72
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +37 -72
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +34 -4
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +34 -4
- package/resources/messages.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +9 -0
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +9 -0
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +9 -0
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +9 -0
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/phonenumbers.d.mts +9 -0
- package/resources/phonenumbers.d.mts.map +1 -1
- package/resources/phonenumbers.d.ts +9 -0
- package/resources/phonenumbers.d.ts.map +1 -1
- package/resources/phonenumbers.js +9 -0
- package/resources/phonenumbers.js.map +1 -1
- package/resources/phonenumbers.mjs +9 -0
- package/resources/phonenumbers.mjs.map +1 -1
- package/resources/shared.d.mts +51 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +51 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhook-events.d.mts +90 -1
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +90 -1
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhook-events.js +89 -0
- package/resources/webhook-events.js.map +1 -1
- package/resources/webhook-events.mjs +89 -0
- package/resources/webhook-events.mjs.map +1 -1
- package/resources/webhook-subscriptions.d.mts +89 -0
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +89 -0
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +89 -0
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +89 -0
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +2506 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2506 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +12 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +8 -0
- package/resources/webhooks.mjs.map +1 -0
- package/src/client.ts +443 -37
- package/src/core/pagination.ts +212 -0
- package/src/index.ts +1 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/attachments.ts +64 -0
- package/src/resources/capability.ts +17 -14
- package/src/resources/chats/chats.ts +86 -115
- package/src/resources/chats/index.ts +4 -3
- package/src/resources/chats/messages.ts +30 -30
- package/src/resources/chats/participants.ts +18 -0
- package/src/resources/chats/typing.ts +18 -0
- package/src/resources/index.ts +55 -10
- package/src/resources/messages.ts +49 -90
- package/src/resources/phone-numbers.ts +9 -0
- package/src/resources/phonenumbers.ts +9 -0
- package/src/resources/shared.ts +62 -0
- package/src/resources/webhook-events.ts +90 -0
- package/src/resources/webhook-subscriptions.ts +89 -0
- package/src/resources/webhooks.ts +3089 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,12 +2,13 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import * as MessagesAPI from "../messages.mjs";
|
|
3
3
|
import * as Shared from "../shared.mjs";
|
|
4
4
|
import * as ChatsMessagesAPI from "./messages.mjs";
|
|
5
|
-
import { MessageListParams,
|
|
5
|
+
import { MessageListParams, MessageSendParams, MessageSendResponse, Messages, SentMessage } from "./messages.mjs";
|
|
6
6
|
import * as ParticipantsAPI from "./participants.mjs";
|
|
7
7
|
import { ParticipantAddParams, ParticipantAddResponse, ParticipantRemoveParams, ParticipantRemoveResponse, Participants } from "./participants.mjs";
|
|
8
8
|
import * as TypingAPI from "./typing.mjs";
|
|
9
9
|
import { Typing } from "./typing.mjs";
|
|
10
10
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
11
|
+
import { ListChatsPagination, type ListChatsPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
11
12
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
12
13
|
export declare class Chats extends APIResource {
|
|
13
14
|
participants: ParticipantsAPI.Participants;
|
|
@@ -92,12 +93,15 @@ export declare class Chats extends APIResource {
|
|
|
92
93
|
*
|
|
93
94
|
* @example
|
|
94
95
|
* ```ts
|
|
95
|
-
*
|
|
96
|
+
* // Automatically fetches more pages as needed.
|
|
97
|
+
* for await (const chat of client.chats.listChats({
|
|
96
98
|
* from: '+13343284472',
|
|
97
|
-
* })
|
|
99
|
+
* })) {
|
|
100
|
+
* // ...
|
|
101
|
+
* }
|
|
98
102
|
* ```
|
|
99
103
|
*/
|
|
100
|
-
|
|
104
|
+
listChats(query: ChatListChatsParams, options?: RequestOptions): PagePromise<ChatsListChatsPagination, Chat>;
|
|
101
105
|
/**
|
|
102
106
|
* Mark all messages in a chat as read.
|
|
103
107
|
*
|
|
@@ -153,6 +157,7 @@ export declare class Chats extends APIResource {
|
|
|
153
157
|
*/
|
|
154
158
|
shareContactCard(chatID: string, options?: RequestOptions): APIPromise<void>;
|
|
155
159
|
}
|
|
160
|
+
export type ChatsListChatsPagination = ListChatsPagination<Chat>;
|
|
156
161
|
export interface Chat {
|
|
157
162
|
/**
|
|
158
163
|
* Unique identifier for the chat
|
|
@@ -189,6 +194,51 @@ export interface Chat {
|
|
|
189
194
|
*/
|
|
190
195
|
service?: Shared.ServiceType | null;
|
|
191
196
|
}
|
|
197
|
+
export interface MediaPart {
|
|
198
|
+
/**
|
|
199
|
+
* Indicates this is a media attachment part
|
|
200
|
+
*/
|
|
201
|
+
type: 'media';
|
|
202
|
+
/**
|
|
203
|
+
* Reference to a file pre-uploaded via `POST /v3/attachments` (optional). The file
|
|
204
|
+
* is already stored, so sends using this ID skip the download step — useful when
|
|
205
|
+
* sending the same file to many recipients.
|
|
206
|
+
*
|
|
207
|
+
* Either `url` or `attachment_id` must be provided, but not both.
|
|
208
|
+
*/
|
|
209
|
+
attachment_id?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Any publicly accessible HTTPS URL to the media file. The server downloads and
|
|
212
|
+
* sends the file automatically — no pre-upload step required.
|
|
213
|
+
*
|
|
214
|
+
* **Size limit:** 10MB maximum for URL-based downloads. For larger files (up to
|
|
215
|
+
* 100MB), use the pre-upload flow: `POST /v3/attachments` to get a presigned URL,
|
|
216
|
+
* upload directly, then reference by `attachment_id`.
|
|
217
|
+
*
|
|
218
|
+
* **Requirements:**
|
|
219
|
+
*
|
|
220
|
+
* - URL must use HTTPS
|
|
221
|
+
* - File content must be a supported format (the server validates the actual file
|
|
222
|
+
* content)
|
|
223
|
+
*
|
|
224
|
+
* **Supported formats:**
|
|
225
|
+
*
|
|
226
|
+
* - Images: .jpg, .jpeg, .png, .gif, .heic, .heif, .tif, .tiff, .bmp
|
|
227
|
+
* - Videos: .mp4, .mov, .m4v, .mpeg, .mpg, .3gp
|
|
228
|
+
* - Audio: .m4a, .mp3, .aac, .caf, .wav, .aiff, .amr
|
|
229
|
+
* - Documents: .pdf, .txt, .rtf, .csv, .doc, .docx, .xls, .xlsx, .ppt, .pptx,
|
|
230
|
+
* .pages, .numbers, .key, .epub, .zip, .html, .htm
|
|
231
|
+
* - Contact & Calendar: .vcf, .ics
|
|
232
|
+
*
|
|
233
|
+
* **Tip:** Audio sent here appears as a regular file attachment. To send audio as
|
|
234
|
+
* an iMessage voice memo bubble (with inline playback), use
|
|
235
|
+
* `/v3/chats/{chatId}/voicememo`. For repeated sends of the same file, use
|
|
236
|
+
* `attachment_id` to avoid redundant downloads.
|
|
237
|
+
*
|
|
238
|
+
* Either `url` or `attachment_id` must be provided, but not both.
|
|
239
|
+
*/
|
|
240
|
+
url?: string;
|
|
241
|
+
}
|
|
192
242
|
/**
|
|
193
243
|
* Message content container. Groups all message-related fields together,
|
|
194
244
|
* separating the "what" (message content) from the "where" (routing fields like
|
|
@@ -215,11 +265,17 @@ export interface MessageContent {
|
|
|
215
265
|
* - To send audio as an **iMessage voice memo bubble** (inline playback UI), use
|
|
216
266
|
* the dedicated `/v3/chats/{chatId}/voicememo` endpoint instead
|
|
217
267
|
*
|
|
218
|
-
* **Validation
|
|
219
|
-
*
|
|
220
|
-
*
|
|
268
|
+
* **Validation Rules:**
|
|
269
|
+
*
|
|
270
|
+
* - Consecutive text parts are not allowed. Text parts must be separated by media
|
|
271
|
+
* parts. For example, [text, text] is invalid, but [text, media, text] is valid.
|
|
272
|
+
* - Maximum of **100 parts** total.
|
|
273
|
+
* - Media parts using a public `url` (downloaded by the server on send) are capped
|
|
274
|
+
* at **40**. Parts using `attachment_id` or presigned URLs are exempt from this
|
|
275
|
+
* sub-limit. For bulk media sends exceeding 40 files, pre-upload via
|
|
276
|
+
* `POST /v3/attachments` and reference by `attachment_id` or `download_url`.
|
|
221
277
|
*/
|
|
222
|
-
parts: Array<
|
|
278
|
+
parts: Array<TextPart | MediaPart>;
|
|
223
279
|
/**
|
|
224
280
|
* iMessage effect to apply to this message (screen or bubble effect)
|
|
225
281
|
*/
|
|
@@ -238,72 +294,15 @@ export interface MessageContent {
|
|
|
238
294
|
*/
|
|
239
295
|
reply_to?: MessagesAPI.ReplyTo;
|
|
240
296
|
}
|
|
241
|
-
export
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
value: string;
|
|
251
|
-
/**
|
|
252
|
-
* Optional idempotency key for this specific message part. Use this to prevent
|
|
253
|
-
* duplicate sends of the same part.
|
|
254
|
-
*/
|
|
255
|
-
idempotency_key?: string;
|
|
256
|
-
}
|
|
257
|
-
interface MediaPart {
|
|
258
|
-
/**
|
|
259
|
-
* Indicates this is a media attachment part
|
|
260
|
-
*/
|
|
261
|
-
type: 'media';
|
|
262
|
-
/**
|
|
263
|
-
* Reference to a file pre-uploaded via `POST /v3/attachments` (optional). The file
|
|
264
|
-
* is already stored, so sends using this ID skip the download step — useful when
|
|
265
|
-
* sending the same file to many recipients.
|
|
266
|
-
*
|
|
267
|
-
* Either `url` or `attachment_id` must be provided, but not both.
|
|
268
|
-
*/
|
|
269
|
-
attachment_id?: string;
|
|
270
|
-
/**
|
|
271
|
-
* Optional idempotency key for this specific message part. Use this to prevent
|
|
272
|
-
* duplicate sends of the same part.
|
|
273
|
-
*/
|
|
274
|
-
idempotency_key?: string;
|
|
275
|
-
/**
|
|
276
|
-
* Any publicly accessible HTTPS URL to the media file. The server downloads and
|
|
277
|
-
* sends the file automatically — no pre-upload step required.
|
|
278
|
-
*
|
|
279
|
-
* **Size limit:** 10MB maximum for URL-based downloads. For larger files (up to
|
|
280
|
-
* 100MB), use the pre-upload flow: `POST /v3/attachments` to get a presigned URL,
|
|
281
|
-
* upload directly, then reference by `attachment_id`.
|
|
282
|
-
*
|
|
283
|
-
* **Requirements:**
|
|
284
|
-
*
|
|
285
|
-
* - URL must use HTTPS
|
|
286
|
-
* - File content must be a supported format (the server validates the actual file
|
|
287
|
-
* content)
|
|
288
|
-
*
|
|
289
|
-
* **Supported formats:**
|
|
290
|
-
*
|
|
291
|
-
* - Images: .jpg, .jpeg, .png, .gif, .heic, .heif, .tif, .tiff, .bmp
|
|
292
|
-
* - Videos: .mp4, .mov, .m4v, .mpeg, .mpg, .3gp
|
|
293
|
-
* - Audio: .m4a, .mp3, .aac, .caf, .wav, .aiff, .amr
|
|
294
|
-
* - Documents: .pdf, .txt, .rtf, .csv, .doc, .docx, .xls, .xlsx, .ppt, .pptx,
|
|
295
|
-
* .pages, .numbers, .key, .epub, .zip, .html, .htm
|
|
296
|
-
* - Contact & Calendar: .vcf, .ics
|
|
297
|
-
*
|
|
298
|
-
* **Tip:** Audio sent here appears as a regular file attachment. To send audio as
|
|
299
|
-
* an iMessage voice memo bubble (with inline playback), use
|
|
300
|
-
* `/v3/chats/{chatId}/voicememo`. For repeated sends of the same file, use
|
|
301
|
-
* `attachment_id` to avoid redundant downloads.
|
|
302
|
-
*
|
|
303
|
-
* Either `url` or `attachment_id` must be provided, but not both.
|
|
304
|
-
*/
|
|
305
|
-
url?: string;
|
|
306
|
-
}
|
|
297
|
+
export interface TextPart {
|
|
298
|
+
/**
|
|
299
|
+
* Indicates this is a text message part
|
|
300
|
+
*/
|
|
301
|
+
type: 'text';
|
|
302
|
+
/**
|
|
303
|
+
* The text content
|
|
304
|
+
*/
|
|
305
|
+
value: string;
|
|
307
306
|
}
|
|
308
307
|
/**
|
|
309
308
|
* Response for creating a new chat with an initial message
|
|
@@ -341,17 +340,6 @@ export declare namespace ChatCreateResponse {
|
|
|
341
340
|
service: Shared.ServiceType;
|
|
342
341
|
}
|
|
343
342
|
}
|
|
344
|
-
export interface ChatListResponse {
|
|
345
|
-
/**
|
|
346
|
-
* List of chats
|
|
347
|
-
*/
|
|
348
|
-
chats: Array<Chat>;
|
|
349
|
-
/**
|
|
350
|
-
* Cursor for fetching the next page of results. Null if there are no more results
|
|
351
|
-
* to fetch. Pass this value as the `cursor` parameter in the next request.
|
|
352
|
-
*/
|
|
353
|
-
next_cursor?: string | null;
|
|
354
|
-
}
|
|
355
343
|
/**
|
|
356
344
|
* Response for sending a voice memo to a chat
|
|
357
345
|
*/
|
|
@@ -466,22 +454,13 @@ export interface ChatUpdateParams {
|
|
|
466
454
|
*/
|
|
467
455
|
group_chat_icon?: string;
|
|
468
456
|
}
|
|
469
|
-
export interface
|
|
457
|
+
export interface ChatListChatsParams extends ListChatsPaginationParams {
|
|
470
458
|
/**
|
|
471
459
|
* Phone number to filter chats by. Returns all chats made from this phone number.
|
|
472
460
|
* Must be in E.164 format (e.g., `+13343284472`). The `+` is automatically
|
|
473
461
|
* URL-encoded by HTTP clients.
|
|
474
462
|
*/
|
|
475
463
|
from: string;
|
|
476
|
-
/**
|
|
477
|
-
* Pagination cursor from the previous response's `next_cursor` field. Omit this
|
|
478
|
-
* parameter for the first page of results.
|
|
479
|
-
*/
|
|
480
|
-
cursor?: string;
|
|
481
|
-
/**
|
|
482
|
-
* Maximum number of chats to return per page
|
|
483
|
-
*/
|
|
484
|
-
limit?: number;
|
|
485
464
|
}
|
|
486
465
|
export interface ChatSendVoicememoParams {
|
|
487
466
|
/**
|
|
@@ -494,9 +473,9 @@ export interface ChatSendVoicememoParams {
|
|
|
494
473
|
voice_memo_url: string;
|
|
495
474
|
}
|
|
496
475
|
export declare namespace Chats {
|
|
497
|
-
export { type Chat as Chat, type MessageContent as MessageContent, type
|
|
476
|
+
export { type Chat as Chat, type MediaPart as MediaPart, type MessageContent as MessageContent, type TextPart as TextPart, type ChatCreateResponse as ChatCreateResponse, type ChatSendVoicememoResponse as ChatSendVoicememoResponse, type ChatsListChatsPagination as ChatsListChatsPagination, type ChatCreateParams as ChatCreateParams, type ChatUpdateParams as ChatUpdateParams, type ChatListChatsParams as ChatListChatsParams, type ChatSendVoicememoParams as ChatSendVoicememoParams, };
|
|
498
477
|
export { Participants as Participants, type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
|
|
499
478
|
export { Typing as Typing };
|
|
500
|
-
export { Messages as Messages, type SentMessage as SentMessage, type
|
|
479
|
+
export { Messages as Messages, type SentMessage as SentMessage, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
|
|
501
480
|
}
|
|
502
481
|
//# sourceMappingURL=chats.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.d.mts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,
|
|
1
|
+
{"version":3,"file":"chats.d.mts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE;OACpF,KAAK,eAAe;OACpB,EACL,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACb;OACM,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,EAAE,UAAU,EAAE;OACd,EAAE,mBAAmB,EAAE,KAAK,yBAAyB,EAAE,WAAW,EAAE;OAEpE,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAA+C;IAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxF;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIpE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAI1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA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AM,WAAW,mBAAoB,SAAQ,yBAAyB;IACpE;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAMD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,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;CACH"}
|
|
@@ -2,12 +2,13 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import * as MessagesAPI from "../messages.js";
|
|
3
3
|
import * as Shared from "../shared.js";
|
|
4
4
|
import * as ChatsMessagesAPI from "./messages.js";
|
|
5
|
-
import { MessageListParams,
|
|
5
|
+
import { MessageListParams, MessageSendParams, MessageSendResponse, Messages, SentMessage } from "./messages.js";
|
|
6
6
|
import * as ParticipantsAPI from "./participants.js";
|
|
7
7
|
import { ParticipantAddParams, ParticipantAddResponse, ParticipantRemoveParams, ParticipantRemoveResponse, Participants } from "./participants.js";
|
|
8
8
|
import * as TypingAPI from "./typing.js";
|
|
9
9
|
import { Typing } from "./typing.js";
|
|
10
10
|
import { APIPromise } from "../../core/api-promise.js";
|
|
11
|
+
import { ListChatsPagination, type ListChatsPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
11
12
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
12
13
|
export declare class Chats extends APIResource {
|
|
13
14
|
participants: ParticipantsAPI.Participants;
|
|
@@ -92,12 +93,15 @@ export declare class Chats extends APIResource {
|
|
|
92
93
|
*
|
|
93
94
|
* @example
|
|
94
95
|
* ```ts
|
|
95
|
-
*
|
|
96
|
+
* // Automatically fetches more pages as needed.
|
|
97
|
+
* for await (const chat of client.chats.listChats({
|
|
96
98
|
* from: '+13343284472',
|
|
97
|
-
* })
|
|
99
|
+
* })) {
|
|
100
|
+
* // ...
|
|
101
|
+
* }
|
|
98
102
|
* ```
|
|
99
103
|
*/
|
|
100
|
-
|
|
104
|
+
listChats(query: ChatListChatsParams, options?: RequestOptions): PagePromise<ChatsListChatsPagination, Chat>;
|
|
101
105
|
/**
|
|
102
106
|
* Mark all messages in a chat as read.
|
|
103
107
|
*
|
|
@@ -153,6 +157,7 @@ export declare class Chats extends APIResource {
|
|
|
153
157
|
*/
|
|
154
158
|
shareContactCard(chatID: string, options?: RequestOptions): APIPromise<void>;
|
|
155
159
|
}
|
|
160
|
+
export type ChatsListChatsPagination = ListChatsPagination<Chat>;
|
|
156
161
|
export interface Chat {
|
|
157
162
|
/**
|
|
158
163
|
* Unique identifier for the chat
|
|
@@ -189,6 +194,51 @@ export interface Chat {
|
|
|
189
194
|
*/
|
|
190
195
|
service?: Shared.ServiceType | null;
|
|
191
196
|
}
|
|
197
|
+
export interface MediaPart {
|
|
198
|
+
/**
|
|
199
|
+
* Indicates this is a media attachment part
|
|
200
|
+
*/
|
|
201
|
+
type: 'media';
|
|
202
|
+
/**
|
|
203
|
+
* Reference to a file pre-uploaded via `POST /v3/attachments` (optional). The file
|
|
204
|
+
* is already stored, so sends using this ID skip the download step — useful when
|
|
205
|
+
* sending the same file to many recipients.
|
|
206
|
+
*
|
|
207
|
+
* Either `url` or `attachment_id` must be provided, but not both.
|
|
208
|
+
*/
|
|
209
|
+
attachment_id?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Any publicly accessible HTTPS URL to the media file. The server downloads and
|
|
212
|
+
* sends the file automatically — no pre-upload step required.
|
|
213
|
+
*
|
|
214
|
+
* **Size limit:** 10MB maximum for URL-based downloads. For larger files (up to
|
|
215
|
+
* 100MB), use the pre-upload flow: `POST /v3/attachments` to get a presigned URL,
|
|
216
|
+
* upload directly, then reference by `attachment_id`.
|
|
217
|
+
*
|
|
218
|
+
* **Requirements:**
|
|
219
|
+
*
|
|
220
|
+
* - URL must use HTTPS
|
|
221
|
+
* - File content must be a supported format (the server validates the actual file
|
|
222
|
+
* content)
|
|
223
|
+
*
|
|
224
|
+
* **Supported formats:**
|
|
225
|
+
*
|
|
226
|
+
* - Images: .jpg, .jpeg, .png, .gif, .heic, .heif, .tif, .tiff, .bmp
|
|
227
|
+
* - Videos: .mp4, .mov, .m4v, .mpeg, .mpg, .3gp
|
|
228
|
+
* - Audio: .m4a, .mp3, .aac, .caf, .wav, .aiff, .amr
|
|
229
|
+
* - Documents: .pdf, .txt, .rtf, .csv, .doc, .docx, .xls, .xlsx, .ppt, .pptx,
|
|
230
|
+
* .pages, .numbers, .key, .epub, .zip, .html, .htm
|
|
231
|
+
* - Contact & Calendar: .vcf, .ics
|
|
232
|
+
*
|
|
233
|
+
* **Tip:** Audio sent here appears as a regular file attachment. To send audio as
|
|
234
|
+
* an iMessage voice memo bubble (with inline playback), use
|
|
235
|
+
* `/v3/chats/{chatId}/voicememo`. For repeated sends of the same file, use
|
|
236
|
+
* `attachment_id` to avoid redundant downloads.
|
|
237
|
+
*
|
|
238
|
+
* Either `url` or `attachment_id` must be provided, but not both.
|
|
239
|
+
*/
|
|
240
|
+
url?: string;
|
|
241
|
+
}
|
|
192
242
|
/**
|
|
193
243
|
* Message content container. Groups all message-related fields together,
|
|
194
244
|
* separating the "what" (message content) from the "where" (routing fields like
|
|
@@ -215,11 +265,17 @@ export interface MessageContent {
|
|
|
215
265
|
* - To send audio as an **iMessage voice memo bubble** (inline playback UI), use
|
|
216
266
|
* the dedicated `/v3/chats/{chatId}/voicememo` endpoint instead
|
|
217
267
|
*
|
|
218
|
-
* **Validation
|
|
219
|
-
*
|
|
220
|
-
*
|
|
268
|
+
* **Validation Rules:**
|
|
269
|
+
*
|
|
270
|
+
* - Consecutive text parts are not allowed. Text parts must be separated by media
|
|
271
|
+
* parts. For example, [text, text] is invalid, but [text, media, text] is valid.
|
|
272
|
+
* - Maximum of **100 parts** total.
|
|
273
|
+
* - Media parts using a public `url` (downloaded by the server on send) are capped
|
|
274
|
+
* at **40**. Parts using `attachment_id` or presigned URLs are exempt from this
|
|
275
|
+
* sub-limit. For bulk media sends exceeding 40 files, pre-upload via
|
|
276
|
+
* `POST /v3/attachments` and reference by `attachment_id` or `download_url`.
|
|
221
277
|
*/
|
|
222
|
-
parts: Array<
|
|
278
|
+
parts: Array<TextPart | MediaPart>;
|
|
223
279
|
/**
|
|
224
280
|
* iMessage effect to apply to this message (screen or bubble effect)
|
|
225
281
|
*/
|
|
@@ -238,72 +294,15 @@ export interface MessageContent {
|
|
|
238
294
|
*/
|
|
239
295
|
reply_to?: MessagesAPI.ReplyTo;
|
|
240
296
|
}
|
|
241
|
-
export
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
value: string;
|
|
251
|
-
/**
|
|
252
|
-
* Optional idempotency key for this specific message part. Use this to prevent
|
|
253
|
-
* duplicate sends of the same part.
|
|
254
|
-
*/
|
|
255
|
-
idempotency_key?: string;
|
|
256
|
-
}
|
|
257
|
-
interface MediaPart {
|
|
258
|
-
/**
|
|
259
|
-
* Indicates this is a media attachment part
|
|
260
|
-
*/
|
|
261
|
-
type: 'media';
|
|
262
|
-
/**
|
|
263
|
-
* Reference to a file pre-uploaded via `POST /v3/attachments` (optional). The file
|
|
264
|
-
* is already stored, so sends using this ID skip the download step — useful when
|
|
265
|
-
* sending the same file to many recipients.
|
|
266
|
-
*
|
|
267
|
-
* Either `url` or `attachment_id` must be provided, but not both.
|
|
268
|
-
*/
|
|
269
|
-
attachment_id?: string;
|
|
270
|
-
/**
|
|
271
|
-
* Optional idempotency key for this specific message part. Use this to prevent
|
|
272
|
-
* duplicate sends of the same part.
|
|
273
|
-
*/
|
|
274
|
-
idempotency_key?: string;
|
|
275
|
-
/**
|
|
276
|
-
* Any publicly accessible HTTPS URL to the media file. The server downloads and
|
|
277
|
-
* sends the file automatically — no pre-upload step required.
|
|
278
|
-
*
|
|
279
|
-
* **Size limit:** 10MB maximum for URL-based downloads. For larger files (up to
|
|
280
|
-
* 100MB), use the pre-upload flow: `POST /v3/attachments` to get a presigned URL,
|
|
281
|
-
* upload directly, then reference by `attachment_id`.
|
|
282
|
-
*
|
|
283
|
-
* **Requirements:**
|
|
284
|
-
*
|
|
285
|
-
* - URL must use HTTPS
|
|
286
|
-
* - File content must be a supported format (the server validates the actual file
|
|
287
|
-
* content)
|
|
288
|
-
*
|
|
289
|
-
* **Supported formats:**
|
|
290
|
-
*
|
|
291
|
-
* - Images: .jpg, .jpeg, .png, .gif, .heic, .heif, .tif, .tiff, .bmp
|
|
292
|
-
* - Videos: .mp4, .mov, .m4v, .mpeg, .mpg, .3gp
|
|
293
|
-
* - Audio: .m4a, .mp3, .aac, .caf, .wav, .aiff, .amr
|
|
294
|
-
* - Documents: .pdf, .txt, .rtf, .csv, .doc, .docx, .xls, .xlsx, .ppt, .pptx,
|
|
295
|
-
* .pages, .numbers, .key, .epub, .zip, .html, .htm
|
|
296
|
-
* - Contact & Calendar: .vcf, .ics
|
|
297
|
-
*
|
|
298
|
-
* **Tip:** Audio sent here appears as a regular file attachment. To send audio as
|
|
299
|
-
* an iMessage voice memo bubble (with inline playback), use
|
|
300
|
-
* `/v3/chats/{chatId}/voicememo`. For repeated sends of the same file, use
|
|
301
|
-
* `attachment_id` to avoid redundant downloads.
|
|
302
|
-
*
|
|
303
|
-
* Either `url` or `attachment_id` must be provided, but not both.
|
|
304
|
-
*/
|
|
305
|
-
url?: string;
|
|
306
|
-
}
|
|
297
|
+
export interface TextPart {
|
|
298
|
+
/**
|
|
299
|
+
* Indicates this is a text message part
|
|
300
|
+
*/
|
|
301
|
+
type: 'text';
|
|
302
|
+
/**
|
|
303
|
+
* The text content
|
|
304
|
+
*/
|
|
305
|
+
value: string;
|
|
307
306
|
}
|
|
308
307
|
/**
|
|
309
308
|
* Response for creating a new chat with an initial message
|
|
@@ -341,17 +340,6 @@ export declare namespace ChatCreateResponse {
|
|
|
341
340
|
service: Shared.ServiceType;
|
|
342
341
|
}
|
|
343
342
|
}
|
|
344
|
-
export interface ChatListResponse {
|
|
345
|
-
/**
|
|
346
|
-
* List of chats
|
|
347
|
-
*/
|
|
348
|
-
chats: Array<Chat>;
|
|
349
|
-
/**
|
|
350
|
-
* Cursor for fetching the next page of results. Null if there are no more results
|
|
351
|
-
* to fetch. Pass this value as the `cursor` parameter in the next request.
|
|
352
|
-
*/
|
|
353
|
-
next_cursor?: string | null;
|
|
354
|
-
}
|
|
355
343
|
/**
|
|
356
344
|
* Response for sending a voice memo to a chat
|
|
357
345
|
*/
|
|
@@ -466,22 +454,13 @@ export interface ChatUpdateParams {
|
|
|
466
454
|
*/
|
|
467
455
|
group_chat_icon?: string;
|
|
468
456
|
}
|
|
469
|
-
export interface
|
|
457
|
+
export interface ChatListChatsParams extends ListChatsPaginationParams {
|
|
470
458
|
/**
|
|
471
459
|
* Phone number to filter chats by. Returns all chats made from this phone number.
|
|
472
460
|
* Must be in E.164 format (e.g., `+13343284472`). The `+` is automatically
|
|
473
461
|
* URL-encoded by HTTP clients.
|
|
474
462
|
*/
|
|
475
463
|
from: string;
|
|
476
|
-
/**
|
|
477
|
-
* Pagination cursor from the previous response's `next_cursor` field. Omit this
|
|
478
|
-
* parameter for the first page of results.
|
|
479
|
-
*/
|
|
480
|
-
cursor?: string;
|
|
481
|
-
/**
|
|
482
|
-
* Maximum number of chats to return per page
|
|
483
|
-
*/
|
|
484
|
-
limit?: number;
|
|
485
464
|
}
|
|
486
465
|
export interface ChatSendVoicememoParams {
|
|
487
466
|
/**
|
|
@@ -494,9 +473,9 @@ export interface ChatSendVoicememoParams {
|
|
|
494
473
|
voice_memo_url: string;
|
|
495
474
|
}
|
|
496
475
|
export declare namespace Chats {
|
|
497
|
-
export { type Chat as Chat, type MessageContent as MessageContent, type
|
|
476
|
+
export { type Chat as Chat, type MediaPart as MediaPart, type MessageContent as MessageContent, type TextPart as TextPart, type ChatCreateResponse as ChatCreateResponse, type ChatSendVoicememoResponse as ChatSendVoicememoResponse, type ChatsListChatsPagination as ChatsListChatsPagination, type ChatCreateParams as ChatCreateParams, type ChatUpdateParams as ChatUpdateParams, type ChatListChatsParams as ChatListChatsParams, type ChatSendVoicememoParams as ChatSendVoicememoParams, };
|
|
498
477
|
export { Participants as Participants, type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
|
|
499
478
|
export { Typing as Typing };
|
|
500
|
-
export { Messages as Messages, type SentMessage as SentMessage, type
|
|
479
|
+
export { Messages as Messages, type SentMessage as SentMessage, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
|
|
501
480
|
}
|
|
502
481
|
//# sourceMappingURL=chats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,
|
|
1
|
+
{"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE;OACpF,KAAK,eAAe;OACpB,EACL,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACb;OACM,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,EAAE,UAAU,EAAE;OACd,EAAE,mBAAmB,EAAE,KAAK,yBAAyB,EAAE,WAAW,EAAE;OAEpE,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAA+C;IAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxF;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIpE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc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|
|
10
10
|
const participants_1 = require("./participants.js");
|
|
11
11
|
const TypingAPI = tslib_1.__importStar(require("./typing.js"));
|
|
12
12
|
const typing_1 = require("./typing.js");
|
|
13
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
13
14
|
const headers_1 = require("../../internal/headers.js");
|
|
14
15
|
const path_1 = require("../../internal/utils/path.js");
|
|
15
16
|
class Chats extends resource_1.APIResource {
|
|
@@ -104,13 +105,16 @@ class Chats extends resource_1.APIResource {
|
|
|
104
105
|
*
|
|
105
106
|
* @example
|
|
106
107
|
* ```ts
|
|
107
|
-
*
|
|
108
|
+
* // Automatically fetches more pages as needed.
|
|
109
|
+
* for await (const chat of client.chats.listChats({
|
|
108
110
|
* from: '+13343284472',
|
|
109
|
-
* })
|
|
111
|
+
* })) {
|
|
112
|
+
* // ...
|
|
113
|
+
* }
|
|
110
114
|
* ```
|
|
111
115
|
*/
|
|
112
|
-
|
|
113
|
-
return this._client.
|
|
116
|
+
listChats(query, options) {
|
|
117
|
+
return this._client.getAPIList('/v3/chats', (pagination_1.ListChatsPagination), { query, ...options });
|
|
114
118
|
}
|
|
115
119
|
/**
|
|
116
120
|
* Mark all messages in a chat as read.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.js","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,wEAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"chats.js","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,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,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,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;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;AApLD,sBAoLC;AAmXD,KAAK,CAAC,YAAY,GAAG,2BAAY,CAAC;AAClC,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC;AACtB,KAAK,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as ChatsMessagesAPI from "./messages.mjs";
|
|
4
|
-
import { Messages
|
|
4
|
+
import { Messages } from "./messages.mjs";
|
|
5
5
|
import * as ParticipantsAPI from "./participants.mjs";
|
|
6
6
|
import { Participants, } from "./participants.mjs";
|
|
7
7
|
import * as TypingAPI from "./typing.mjs";
|
|
8
8
|
import { Typing } from "./typing.mjs";
|
|
9
|
+
import { ListChatsPagination } from "../../core/pagination.mjs";
|
|
9
10
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
10
11
|
import { path } from "../../internal/utils/path.mjs";
|
|
11
12
|
export class Chats extends APIResource {
|
|
@@ -100,13 +101,16 @@ export class Chats extends APIResource {
|
|
|
100
101
|
*
|
|
101
102
|
* @example
|
|
102
103
|
* ```ts
|
|
103
|
-
*
|
|
104
|
+
* // Automatically fetches more pages as needed.
|
|
105
|
+
* for await (const chat of client.chats.listChats({
|
|
104
106
|
* from: '+13343284472',
|
|
105
|
-
* })
|
|
107
|
+
* })) {
|
|
108
|
+
* // ...
|
|
109
|
+
* }
|
|
106
110
|
* ```
|
|
107
111
|
*/
|
|
108
|
-
|
|
109
|
-
return this._client.
|
|
112
|
+
listChats(query, options) {
|
|
113
|
+
return this._client.getAPIList('/v3/chats', (ListChatsPagination), { query, ...options });
|
|
110
114
|
}
|
|
111
115
|
/**
|
|
112
116
|
* Mark all messages in a chat as read.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.mjs","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,gBAAgB;OACrB,
|
|
1
|
+
{"version":3,"file":"chats.mjs","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,gBAAgB;OACrB,EAA6D,QAAQ,EAAe;OACpF,KAAK,eAAe;OACpB,EAKL,YAAY,GACb;OACM,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OAEV,EAAE,mBAAmB,EAA+C;OACpE,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,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,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