@linqapp/sdk 0.67.0 → 0.69.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 +14 -0
- package/client.d.mts +5 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/chats/chats.d.mts +92 -1
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +92 -1
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js +36 -0
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +36 -0
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/index.d.mts +1 -1
- package/resources/chats/index.d.mts.map +1 -1
- package/resources/chats/index.d.ts +1 -1
- 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 +36 -0
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +36 -0
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/chats/messages.js +36 -0
- package/resources/chats/messages.js.map +1 -1
- package/resources/chats/messages.mjs +36 -0
- package/resources/chats/messages.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +3 -2
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +3 -2
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +3 -2
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +3 -2
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/shared.d.mts +38 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +38 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhook-events.d.mts +1 -1
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +1 -1
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhooks.d.mts +128 -12
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +128 -12
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +7 -0
- package/src/resources/chats/chats.ts +96 -0
- package/src/resources/chats/index.ts +1 -0
- package/src/resources/chats/messages.ts +36 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/messages/messages.ts +3 -2
- package/src/resources/shared.ts +44 -0
- package/src/resources/webhook-events.ts +2 -0
- package/src/resources/webhooks.ts +257 -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
|
@@ -87,6 +87,42 @@ export class Chats extends APIResource {
|
|
|
87
87
|
* participants, iMessage recipients see the decorations and SMS/RCS recipients
|
|
88
88
|
* receive the same message as plain text.
|
|
89
89
|
*
|
|
90
|
+
* ## Inline Stickers (iMessage only)
|
|
91
|
+
*
|
|
92
|
+
* Use the `inline_stickers` array on a text part to place stickers inside the
|
|
93
|
+
* text. Each sticker replaces the characters in its `range: [start, end)` and
|
|
94
|
+
* takes its image from exactly one of `url` or `attachment_id` — an image uploaded
|
|
95
|
+
* with `POST /v3/attachments`.
|
|
96
|
+
*
|
|
97
|
+
* ```json
|
|
98
|
+
* {
|
|
99
|
+
* "type": "text",
|
|
100
|
+
* "value": "Happy birthday 🎂! 🎉🎉",
|
|
101
|
+
* "inline_stickers": [
|
|
102
|
+
* {
|
|
103
|
+
* "range": [15, 17],
|
|
104
|
+
* "attachment_id": "550e8400-e29b-41d4-a716-446655440000"
|
|
105
|
+
* },
|
|
106
|
+
* {
|
|
107
|
+
* "range": [19, 21],
|
|
108
|
+
* "attachment_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
|
|
109
|
+
* },
|
|
110
|
+
* {
|
|
111
|
+
* "range": [21, 23],
|
|
112
|
+
* "attachment_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
|
|
113
|
+
* }
|
|
114
|
+
* ]
|
|
115
|
+
* }
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* **Note:** A sticker takes the place of the characters it covers, so they are
|
|
119
|
+
* hidden on iMessage: `"Sip cup"` with a sticker on `cup` reads "Sip [sticker]".
|
|
120
|
+
* Those characters are what SMS and RCS recipients receive (the stickers are
|
|
121
|
+
* dropped and `value` is sent as written) and what VoiceOver reads. To keep a word
|
|
122
|
+
* visible, give the sticker its own placeholder: `"Sip cup 🥤"` with the range on
|
|
123
|
+
* `🥤`. Up to 100 stickers and 10 different images per part; copies of one image
|
|
124
|
+
* count as one.
|
|
125
|
+
*
|
|
90
126
|
* ## First-Message Link Restriction
|
|
91
127
|
*
|
|
92
128
|
* To protect sender deliverability, the **first outbound message** of a new chat
|
|
@@ -431,6 +467,38 @@ export namespace Chat {
|
|
|
431
467
|
}
|
|
432
468
|
}
|
|
433
469
|
|
|
470
|
+
/**
|
|
471
|
+
* A sticker image placed inside the text of a part, replacing the characters in
|
|
472
|
+
* `range`. Provide exactly one of `url` or `attachment_id`.
|
|
473
|
+
*/
|
|
474
|
+
export interface InlineSticker {
|
|
475
|
+
/**
|
|
476
|
+
* Character range `[start, end)` in the `value` string that the sticker replaces.
|
|
477
|
+
* `start` is inclusive, `end` is exclusive. Those characters are hidden on
|
|
478
|
+
* iMessage and sent as written on SMS and RCS. _Characters are measured as UTF-16
|
|
479
|
+
* code units. Most characters count as 1; some emoji count as 2._
|
|
480
|
+
*/
|
|
481
|
+
range: Array<number>;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Reference to a sticker image pre-uploaded via `POST /v3/attachments`.
|
|
485
|
+
*
|
|
486
|
+
* Exactly one of `url` or `attachment_id` is required.
|
|
487
|
+
*/
|
|
488
|
+
attachment_id?: string;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Linq attachment URL of the sticker image — the `download_url` returned by
|
|
492
|
+
* `POST /v3/attachments`.
|
|
493
|
+
*
|
|
494
|
+
* The image must already be stored with us. To use an image from elsewhere, upload
|
|
495
|
+
* it with `POST /v3/attachments` first and pass `attachment_id`.
|
|
496
|
+
*
|
|
497
|
+
* Exactly one of `url` or `attachment_id` is required.
|
|
498
|
+
*/
|
|
499
|
+
url?: string;
|
|
500
|
+
}
|
|
501
|
+
|
|
434
502
|
export interface LinkPart {
|
|
435
503
|
/**
|
|
436
504
|
* Indicates this is a rich link preview part
|
|
@@ -843,6 +911,33 @@ export interface TextPart {
|
|
|
843
911
|
*/
|
|
844
912
|
value: string;
|
|
845
913
|
|
|
914
|
+
/**
|
|
915
|
+
* Optional stickers placed inside the text, in the line with the words (iMessage
|
|
916
|
+
* only).
|
|
917
|
+
*
|
|
918
|
+
* Each sticker replaces the characters in its `range` `[start, end)` of `value`,
|
|
919
|
+
* and takes its image from exactly one of `url` or `attachment_id` — an image
|
|
920
|
+
* uploaded with `POST /v3/attachments`. The characters a sticker covers are hidden
|
|
921
|
+
* on iMessage and are what SMS and RCS recipients receive and VoiceOver reads, so
|
|
922
|
+
* cover something that stands in for the sticker (`"🎂"`, `"[cake]"`). To keep a
|
|
923
|
+
* word visible, give the sticker its own placeholder: `"Sip cup 🥤"` with the
|
|
924
|
+
* range on `🥤`.
|
|
925
|
+
*
|
|
926
|
+
* Up to 100 stickers and 10 different images per part. Copies of one image count
|
|
927
|
+
* as one: twenty copies of one sticker use one of the 10. An animated image
|
|
928
|
+
* arrives as a still.
|
|
929
|
+
*
|
|
930
|
+
* Stickers cannot overlap each other or a `text_decorations` range, cannot split a
|
|
931
|
+
* character, and cannot be combined with `mention`.
|
|
932
|
+
*
|
|
933
|
+
* _Characters are measured as UTF-16 code units. Most characters count as 1; some
|
|
934
|
+
* emoji count as 2._
|
|
935
|
+
*
|
|
936
|
+
* **Note:** on SMS and RCS the stickers are dropped and `value` is sent as plain
|
|
937
|
+
* text.
|
|
938
|
+
*/
|
|
939
|
+
inline_stickers?: Array<InlineSticker>;
|
|
940
|
+
|
|
846
941
|
/**
|
|
847
942
|
* Mention a chat participant. Group chats only — sending a mention to a direct
|
|
848
943
|
* chat is rejected with `409` / `2023`. The chat's service is not a constraint: a
|
|
@@ -1235,6 +1330,7 @@ Chats.Background = Background;
|
|
|
1235
1330
|
export declare namespace Chats {
|
|
1236
1331
|
export {
|
|
1237
1332
|
type Chat as Chat,
|
|
1333
|
+
type InlineSticker as InlineSticker,
|
|
1238
1334
|
type LinkPart as LinkPart,
|
|
1239
1335
|
type MediaPart as MediaPart,
|
|
1240
1336
|
type MessageContent as MessageContent,
|
|
@@ -159,6 +159,42 @@ export class Messages extends APIResource {
|
|
|
159
159
|
* participants, iMessage recipients see the decorations and SMS/RCS recipients
|
|
160
160
|
* receive the same message as plain text.
|
|
161
161
|
*
|
|
162
|
+
* ## Inline Stickers (iMessage only)
|
|
163
|
+
*
|
|
164
|
+
* Use the `inline_stickers` array on a text part to place stickers inside the
|
|
165
|
+
* text. Each sticker replaces the characters in its `range: [start, end)` and
|
|
166
|
+
* takes its image from exactly one of `url` or `attachment_id` — an image uploaded
|
|
167
|
+
* with `POST /v3/attachments`.
|
|
168
|
+
*
|
|
169
|
+
* ```json
|
|
170
|
+
* {
|
|
171
|
+
* "type": "text",
|
|
172
|
+
* "value": "Happy birthday 🎂! 🎉🎉",
|
|
173
|
+
* "inline_stickers": [
|
|
174
|
+
* {
|
|
175
|
+
* "range": [15, 17],
|
|
176
|
+
* "attachment_id": "550e8400-e29b-41d4-a716-446655440000"
|
|
177
|
+
* },
|
|
178
|
+
* {
|
|
179
|
+
* "range": [19, 21],
|
|
180
|
+
* "attachment_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
|
|
181
|
+
* },
|
|
182
|
+
* {
|
|
183
|
+
* "range": [21, 23],
|
|
184
|
+
* "attachment_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
|
|
185
|
+
* }
|
|
186
|
+
* ]
|
|
187
|
+
* }
|
|
188
|
+
* ```
|
|
189
|
+
*
|
|
190
|
+
* **Note:** A sticker takes the place of the characters it covers, so they are
|
|
191
|
+
* hidden on iMessage: `"Sip cup"` with a sticker on `cup` reads "Sip [sticker]".
|
|
192
|
+
* Those characters are what SMS and RCS recipients receive (the stickers are
|
|
193
|
+
* dropped and `value` is sent as written) and what VoiceOver reads. To keep a word
|
|
194
|
+
* visible, give the sticker its own placeholder: `"Sip cup 🥤"` with the range on
|
|
195
|
+
* `🥤`. Up to 100 stickers and 10 different images per part; copies of one image
|
|
196
|
+
* count as one.
|
|
197
|
+
*
|
|
162
198
|
* @example
|
|
163
199
|
* ```ts
|
|
164
200
|
* const response = await client.chats.messages.send(
|
package/src/resources/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ export {
|
|
|
31
31
|
export {
|
|
32
32
|
Chats,
|
|
33
33
|
type Chat,
|
|
34
|
+
type InlineSticker,
|
|
34
35
|
type LinkPart,
|
|
35
36
|
type MediaPart,
|
|
36
37
|
type MessageContent,
|
|
@@ -161,6 +162,8 @@ export {
|
|
|
161
162
|
type ChatBackgroundUpdateFailedWebhookEvent,
|
|
162
163
|
type ContactCardReceivedWebhookEvent,
|
|
163
164
|
type PhoneNumberStatusUpdatedWebhookEvent,
|
|
165
|
+
type PhoneNumberAssignedWebhookEvent,
|
|
166
|
+
type PhoneNumberReleasedWebhookEvent,
|
|
164
167
|
type ConnectionCreatedWebhookEvent,
|
|
165
168
|
type ConnectionRevokedWebhookEvent,
|
|
166
169
|
type LocationSharingStartedWebhookEvent,
|
|
@@ -138,10 +138,11 @@ export class Messages extends APIResource {
|
|
|
138
138
|
* - Voice memos are **not** supported here. To send an iMessage voice-memo bubble,
|
|
139
139
|
* use `POST /v3/chats/{chatId}/voicememo` with a known chat id.
|
|
140
140
|
*
|
|
141
|
-
* ## Service preference, effects, decorations
|
|
141
|
+
* ## Service preference, effects, decorations, inline stickers
|
|
142
142
|
*
|
|
143
143
|
* Set `message.preferred_service` (`iMessage` | `RCS` | `SMS`), `message.effect`,
|
|
144
|
-
* and per-part `text_decorations` exactly as on the other
|
|
144
|
+
* and per-part `text_decorations` and `inline_stickers` exactly as on the other
|
|
145
|
+
* send endpoints.
|
|
145
146
|
*
|
|
146
147
|
* Always responds `202 Accepted` — chat creation is incidental to the send.
|
|
147
148
|
*
|
package/src/resources/shared.ts
CHANGED
|
@@ -39,6 +39,41 @@ export interface ChatHandle {
|
|
|
39
39
|
status?: 'active' | 'left' | 'removed' | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* One sticker image placed inside the text of a part: `id`, `url` and the image
|
|
44
|
+
* details.
|
|
45
|
+
*/
|
|
46
|
+
export interface InlineStickerResponse {
|
|
47
|
+
/**
|
|
48
|
+
* Character range `[start, end)` in `value` that the sticker replaces. Those
|
|
49
|
+
* characters are hidden on iMessage and sent as written on SMS and RCS.
|
|
50
|
+
* _Characters are measured as UTF-16 code units. Most characters count as 1; some
|
|
51
|
+
* emoji count as 2._
|
|
52
|
+
*/
|
|
53
|
+
range: Array<number>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Attachment ID of the sticker image.
|
|
57
|
+
*/
|
|
58
|
+
id?: string | null;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Filename of the sticker
|
|
62
|
+
*/
|
|
63
|
+
file_name?: string | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* MIME type of the sticker image
|
|
67
|
+
*/
|
|
68
|
+
mime_type?: string | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* URL for downloading the sticker image. Permanent for a normal upload; a
|
|
72
|
+
* time-limited signed URL when the image is an ephemeral attachment.
|
|
73
|
+
*/
|
|
74
|
+
url?: string | null;
|
|
75
|
+
}
|
|
76
|
+
|
|
42
77
|
/**
|
|
43
78
|
* A rich link preview part
|
|
44
79
|
*/
|
|
@@ -231,6 +266,15 @@ export interface TextPartResponse {
|
|
|
231
266
|
*/
|
|
232
267
|
value: string;
|
|
233
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Stickers placed inside the text, in the order they appear in `value`. `null`
|
|
271
|
+
* when the part has none.
|
|
272
|
+
*
|
|
273
|
+
* Set on messages sent with `inline_stickers`. An inline sticker received over
|
|
274
|
+
* iMessage currently arrives as a separate media part.
|
|
275
|
+
*/
|
|
276
|
+
inline_stickers?: Array<InlineStickerResponse> | null;
|
|
277
|
+
|
|
234
278
|
/**
|
|
235
279
|
* @deprecated DEPRECATED: Use `mentions` instead. Handle (E.164 phone number or
|
|
236
280
|
* Apple ID email) of the **first** mention on this part. A part may carry several
|
|
@@ -180,6 +180,8 @@ export type WebhookEventType =
|
|
|
180
180
|
| 'chat.typing_indicator.started'
|
|
181
181
|
| 'chat.typing_indicator.stopped'
|
|
182
182
|
| 'phone_number.status_updated'
|
|
183
|
+
| 'phone_number.assigned'
|
|
184
|
+
| 'phone_number.released'
|
|
183
185
|
| 'contact_card.received'
|
|
184
186
|
| 'call.initiated'
|
|
185
187
|
| 'call.ringing'
|
|
@@ -767,6 +767,15 @@ export interface SchemasTextPartResponse {
|
|
|
767
767
|
*/
|
|
768
768
|
value: string;
|
|
769
769
|
|
|
770
|
+
/**
|
|
771
|
+
* Stickers placed inside the text, in the order they appear in `value`. `null`
|
|
772
|
+
* when the part has none.
|
|
773
|
+
*
|
|
774
|
+
* Set on messages sent with `inline_stickers`. An inline sticker received over
|
|
775
|
+
* iMessage currently arrives as a separate media part.
|
|
776
|
+
*/
|
|
777
|
+
inline_stickers?: Array<Shared.InlineStickerResponse> | null;
|
|
778
|
+
|
|
770
779
|
/**
|
|
771
780
|
* @deprecated DEPRECATED: Use `mentions` instead. Handle (E.164 phone number or
|
|
772
781
|
* Apple ID email) of the **first** mention on this part. A part may carry several
|
|
@@ -3800,6 +3809,8 @@ export interface PhoneNumberStatusUpdatedWebhookEvent {
|
|
|
3800
3809
|
| 'chat.typing_indicator.started'
|
|
3801
3810
|
| 'chat.typing_indicator.stopped'
|
|
3802
3811
|
| 'phone_number.status_updated'
|
|
3812
|
+
| 'phone_number.assigned'
|
|
3813
|
+
| 'phone_number.released'
|
|
3803
3814
|
| 'contact_card.received'
|
|
3804
3815
|
| 'call.initiated'
|
|
3805
3816
|
| 'call.ringing'
|
|
@@ -3873,6 +3884,230 @@ export namespace PhoneNumberStatusUpdatedWebhookEvent {
|
|
|
3873
3884
|
}
|
|
3874
3885
|
}
|
|
3875
3886
|
|
|
3887
|
+
/**
|
|
3888
|
+
* Complete webhook payload for phone_number.assigned events
|
|
3889
|
+
*/
|
|
3890
|
+
export interface PhoneNumberAssignedWebhookEvent {
|
|
3891
|
+
/**
|
|
3892
|
+
* API version for the webhook payload format
|
|
3893
|
+
*/
|
|
3894
|
+
api_version: string;
|
|
3895
|
+
|
|
3896
|
+
/**
|
|
3897
|
+
* When the event was created
|
|
3898
|
+
*/
|
|
3899
|
+
created_at: string;
|
|
3900
|
+
|
|
3901
|
+
/**
|
|
3902
|
+
* Payload for phone_number.assigned and phone_number.released webhook events
|
|
3903
|
+
*/
|
|
3904
|
+
data: PhoneNumberAssignedWebhookEvent.Data;
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* Unique identifier for this event (for deduplication)
|
|
3908
|
+
*/
|
|
3909
|
+
event_id: string;
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
* The type of event
|
|
3913
|
+
*/
|
|
3914
|
+
event_type:
|
|
3915
|
+
| 'message.sent'
|
|
3916
|
+
| 'message.received'
|
|
3917
|
+
| 'message.read'
|
|
3918
|
+
| 'message.delivered'
|
|
3919
|
+
| 'message.failed'
|
|
3920
|
+
| 'message.edited'
|
|
3921
|
+
| 'reaction.added'
|
|
3922
|
+
| 'reaction.removed'
|
|
3923
|
+
| 'poll.received'
|
|
3924
|
+
| 'poll.failed'
|
|
3925
|
+
| 'poll.sent'
|
|
3926
|
+
| 'poll.delivered'
|
|
3927
|
+
| 'poll.read'
|
|
3928
|
+
| 'poll.updated'
|
|
3929
|
+
| 'poll.vote.added'
|
|
3930
|
+
| 'poll.vote.removed'
|
|
3931
|
+
| 'poll.reaction.added'
|
|
3932
|
+
| 'participant.added'
|
|
3933
|
+
| 'participant.removed'
|
|
3934
|
+
| 'chat.created'
|
|
3935
|
+
| 'chat.group_name_updated'
|
|
3936
|
+
| 'chat.group_icon_updated'
|
|
3937
|
+
| 'chat.group_name_update_failed'
|
|
3938
|
+
| 'chat.group_icon_update_failed'
|
|
3939
|
+
| 'chat.background_updated'
|
|
3940
|
+
| 'chat.background_update_failed'
|
|
3941
|
+
| 'chat.typing_indicator.started'
|
|
3942
|
+
| 'chat.typing_indicator.stopped'
|
|
3943
|
+
| 'phone_number.status_updated'
|
|
3944
|
+
| 'phone_number.assigned'
|
|
3945
|
+
| 'phone_number.released'
|
|
3946
|
+
| 'contact_card.received'
|
|
3947
|
+
| 'call.initiated'
|
|
3948
|
+
| 'call.ringing'
|
|
3949
|
+
| 'call.answered'
|
|
3950
|
+
| 'call.ended'
|
|
3951
|
+
| 'call.failed'
|
|
3952
|
+
| 'call.declined'
|
|
3953
|
+
| 'call.no_answer'
|
|
3954
|
+
| 'location.sharing.started'
|
|
3955
|
+
| 'location.sharing.stopped'
|
|
3956
|
+
| 'payment.succeeded'
|
|
3957
|
+
| 'payment.canceled'
|
|
3958
|
+
| 'payment.expired'
|
|
3959
|
+
| 'payment.declined'
|
|
3960
|
+
| 'payment.authorized'
|
|
3961
|
+
| 'connection.created'
|
|
3962
|
+
| 'connection.revoked';
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
3966
|
+
*/
|
|
3967
|
+
partner_id: string;
|
|
3968
|
+
|
|
3969
|
+
/**
|
|
3970
|
+
* Trace ID for debugging and correlation across systems.
|
|
3971
|
+
*/
|
|
3972
|
+
trace_id: string;
|
|
3973
|
+
|
|
3974
|
+
/**
|
|
3975
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
3976
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
3977
|
+
* specified, defaults based on subscription creation date.
|
|
3978
|
+
*/
|
|
3979
|
+
webhook_version: string;
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3982
|
+
export namespace PhoneNumberAssignedWebhookEvent {
|
|
3983
|
+
/**
|
|
3984
|
+
* Payload for phone_number.assigned and phone_number.released webhook events
|
|
3985
|
+
*/
|
|
3986
|
+
export interface Data {
|
|
3987
|
+
/**
|
|
3988
|
+
* When the ownership change occurred
|
|
3989
|
+
*/
|
|
3990
|
+
changed_at: string;
|
|
3991
|
+
|
|
3992
|
+
/**
|
|
3993
|
+
* Phone number in E.164 format
|
|
3994
|
+
*/
|
|
3995
|
+
phone_number: string;
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
/**
|
|
4000
|
+
* Complete webhook payload for phone_number.released events
|
|
4001
|
+
*/
|
|
4002
|
+
export interface PhoneNumberReleasedWebhookEvent {
|
|
4003
|
+
/**
|
|
4004
|
+
* API version for the webhook payload format
|
|
4005
|
+
*/
|
|
4006
|
+
api_version: string;
|
|
4007
|
+
|
|
4008
|
+
/**
|
|
4009
|
+
* When the event was created
|
|
4010
|
+
*/
|
|
4011
|
+
created_at: string;
|
|
4012
|
+
|
|
4013
|
+
/**
|
|
4014
|
+
* Payload for phone_number.assigned and phone_number.released webhook events
|
|
4015
|
+
*/
|
|
4016
|
+
data: PhoneNumberReleasedWebhookEvent.Data;
|
|
4017
|
+
|
|
4018
|
+
/**
|
|
4019
|
+
* Unique identifier for this event (for deduplication)
|
|
4020
|
+
*/
|
|
4021
|
+
event_id: string;
|
|
4022
|
+
|
|
4023
|
+
/**
|
|
4024
|
+
* The type of event
|
|
4025
|
+
*/
|
|
4026
|
+
event_type:
|
|
4027
|
+
| 'message.sent'
|
|
4028
|
+
| 'message.received'
|
|
4029
|
+
| 'message.read'
|
|
4030
|
+
| 'message.delivered'
|
|
4031
|
+
| 'message.failed'
|
|
4032
|
+
| 'message.edited'
|
|
4033
|
+
| 'reaction.added'
|
|
4034
|
+
| 'reaction.removed'
|
|
4035
|
+
| 'poll.received'
|
|
4036
|
+
| 'poll.failed'
|
|
4037
|
+
| 'poll.sent'
|
|
4038
|
+
| 'poll.delivered'
|
|
4039
|
+
| 'poll.read'
|
|
4040
|
+
| 'poll.updated'
|
|
4041
|
+
| 'poll.vote.added'
|
|
4042
|
+
| 'poll.vote.removed'
|
|
4043
|
+
| 'poll.reaction.added'
|
|
4044
|
+
| 'participant.added'
|
|
4045
|
+
| 'participant.removed'
|
|
4046
|
+
| 'chat.created'
|
|
4047
|
+
| 'chat.group_name_updated'
|
|
4048
|
+
| 'chat.group_icon_updated'
|
|
4049
|
+
| 'chat.group_name_update_failed'
|
|
4050
|
+
| 'chat.group_icon_update_failed'
|
|
4051
|
+
| 'chat.background_updated'
|
|
4052
|
+
| 'chat.background_update_failed'
|
|
4053
|
+
| 'chat.typing_indicator.started'
|
|
4054
|
+
| 'chat.typing_indicator.stopped'
|
|
4055
|
+
| 'phone_number.status_updated'
|
|
4056
|
+
| 'phone_number.assigned'
|
|
4057
|
+
| 'phone_number.released'
|
|
4058
|
+
| 'contact_card.received'
|
|
4059
|
+
| 'call.initiated'
|
|
4060
|
+
| 'call.ringing'
|
|
4061
|
+
| 'call.answered'
|
|
4062
|
+
| 'call.ended'
|
|
4063
|
+
| 'call.failed'
|
|
4064
|
+
| 'call.declined'
|
|
4065
|
+
| 'call.no_answer'
|
|
4066
|
+
| 'location.sharing.started'
|
|
4067
|
+
| 'location.sharing.stopped'
|
|
4068
|
+
| 'payment.succeeded'
|
|
4069
|
+
| 'payment.canceled'
|
|
4070
|
+
| 'payment.expired'
|
|
4071
|
+
| 'payment.declined'
|
|
4072
|
+
| 'payment.authorized'
|
|
4073
|
+
| 'connection.created'
|
|
4074
|
+
| 'connection.revoked';
|
|
4075
|
+
|
|
4076
|
+
/**
|
|
4077
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
4078
|
+
*/
|
|
4079
|
+
partner_id: string;
|
|
4080
|
+
|
|
4081
|
+
/**
|
|
4082
|
+
* Trace ID for debugging and correlation across systems.
|
|
4083
|
+
*/
|
|
4084
|
+
trace_id: string;
|
|
4085
|
+
|
|
4086
|
+
/**
|
|
4087
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
4088
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
4089
|
+
* specified, defaults based on subscription creation date.
|
|
4090
|
+
*/
|
|
4091
|
+
webhook_version: string;
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
export namespace PhoneNumberReleasedWebhookEvent {
|
|
4095
|
+
/**
|
|
4096
|
+
* Payload for phone_number.assigned and phone_number.released webhook events
|
|
4097
|
+
*/
|
|
4098
|
+
export interface Data {
|
|
4099
|
+
/**
|
|
4100
|
+
* When the ownership change occurred
|
|
4101
|
+
*/
|
|
4102
|
+
changed_at: string;
|
|
4103
|
+
|
|
4104
|
+
/**
|
|
4105
|
+
* Phone number in E.164 format
|
|
4106
|
+
*/
|
|
4107
|
+
phone_number: string;
|
|
4108
|
+
}
|
|
4109
|
+
}
|
|
4110
|
+
|
|
3876
4111
|
export interface ConnectionCreatedWebhookEvent {
|
|
3877
4112
|
/**
|
|
3878
4113
|
* API version for the webhook payload format
|
|
@@ -3928,6 +4163,8 @@ export interface ConnectionCreatedWebhookEvent {
|
|
|
3928
4163
|
| 'chat.typing_indicator.started'
|
|
3929
4164
|
| 'chat.typing_indicator.stopped'
|
|
3930
4165
|
| 'phone_number.status_updated'
|
|
4166
|
+
| 'phone_number.assigned'
|
|
4167
|
+
| 'phone_number.released'
|
|
3931
4168
|
| 'contact_card.received'
|
|
3932
4169
|
| 'call.initiated'
|
|
3933
4170
|
| 'call.ringing'
|
|
@@ -4167,6 +4404,8 @@ export interface ConnectionRevokedWebhookEvent {
|
|
|
4167
4404
|
| 'chat.typing_indicator.started'
|
|
4168
4405
|
| 'chat.typing_indicator.stopped'
|
|
4169
4406
|
| 'phone_number.status_updated'
|
|
4407
|
+
| 'phone_number.assigned'
|
|
4408
|
+
| 'phone_number.released'
|
|
4170
4409
|
| 'contact_card.received'
|
|
4171
4410
|
| 'call.initiated'
|
|
4172
4411
|
| 'call.ringing'
|
|
@@ -4400,6 +4639,8 @@ export interface LocationSharingStartedWebhookEvent {
|
|
|
4400
4639
|
| 'chat.typing_indicator.started'
|
|
4401
4640
|
| 'chat.typing_indicator.stopped'
|
|
4402
4641
|
| 'phone_number.status_updated'
|
|
4642
|
+
| 'phone_number.assigned'
|
|
4643
|
+
| 'phone_number.released'
|
|
4403
4644
|
| 'contact_card.received'
|
|
4404
4645
|
| 'call.initiated'
|
|
4405
4646
|
| 'call.ringing'
|
|
@@ -4518,6 +4759,8 @@ export interface LocationSharingStoppedWebhookEvent {
|
|
|
4518
4759
|
| 'chat.typing_indicator.started'
|
|
4519
4760
|
| 'chat.typing_indicator.stopped'
|
|
4520
4761
|
| 'phone_number.status_updated'
|
|
4762
|
+
| 'phone_number.assigned'
|
|
4763
|
+
| 'phone_number.released'
|
|
4521
4764
|
| 'contact_card.received'
|
|
4522
4765
|
| 'call.initiated'
|
|
4523
4766
|
| 'call.ringing'
|
|
@@ -4641,6 +4884,8 @@ export interface PaymentAuthorizedWebhookEvent {
|
|
|
4641
4884
|
| 'chat.typing_indicator.started'
|
|
4642
4885
|
| 'chat.typing_indicator.stopped'
|
|
4643
4886
|
| 'phone_number.status_updated'
|
|
4887
|
+
| 'phone_number.assigned'
|
|
4888
|
+
| 'phone_number.released'
|
|
4644
4889
|
| 'contact_card.received'
|
|
4645
4890
|
| 'call.initiated'
|
|
4646
4891
|
| 'call.ringing'
|
|
@@ -4880,6 +5125,8 @@ export interface PaymentCanceledWebhookEvent {
|
|
|
4880
5125
|
| 'chat.typing_indicator.started'
|
|
4881
5126
|
| 'chat.typing_indicator.stopped'
|
|
4882
5127
|
| 'phone_number.status_updated'
|
|
5128
|
+
| 'phone_number.assigned'
|
|
5129
|
+
| 'phone_number.released'
|
|
4883
5130
|
| 'contact_card.received'
|
|
4884
5131
|
| 'call.initiated'
|
|
4885
5132
|
| 'call.ringing'
|
|
@@ -5119,6 +5366,8 @@ export interface PaymentDeclinedWebhookEvent {
|
|
|
5119
5366
|
| 'chat.typing_indicator.started'
|
|
5120
5367
|
| 'chat.typing_indicator.stopped'
|
|
5121
5368
|
| 'phone_number.status_updated'
|
|
5369
|
+
| 'phone_number.assigned'
|
|
5370
|
+
| 'phone_number.released'
|
|
5122
5371
|
| 'contact_card.received'
|
|
5123
5372
|
| 'call.initiated'
|
|
5124
5373
|
| 'call.ringing'
|
|
@@ -5358,6 +5607,8 @@ export interface PaymentExpiredWebhookEvent {
|
|
|
5358
5607
|
| 'chat.typing_indicator.started'
|
|
5359
5608
|
| 'chat.typing_indicator.stopped'
|
|
5360
5609
|
| 'phone_number.status_updated'
|
|
5610
|
+
| 'phone_number.assigned'
|
|
5611
|
+
| 'phone_number.released'
|
|
5361
5612
|
| 'contact_card.received'
|
|
5362
5613
|
| 'call.initiated'
|
|
5363
5614
|
| 'call.ringing'
|
|
@@ -5597,6 +5848,8 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
5597
5848
|
| 'chat.typing_indicator.started'
|
|
5598
5849
|
| 'chat.typing_indicator.stopped'
|
|
5599
5850
|
| 'phone_number.status_updated'
|
|
5851
|
+
| 'phone_number.assigned'
|
|
5852
|
+
| 'phone_number.released'
|
|
5600
5853
|
| 'contact_card.received'
|
|
5601
5854
|
| 'call.initiated'
|
|
5602
5855
|
| 'call.ringing'
|
|
@@ -5815,6 +6068,8 @@ export type UnwrapWebhookEvent =
|
|
|
5815
6068
|
| ChatBackgroundUpdateFailedWebhookEvent
|
|
5816
6069
|
| ContactCardReceivedWebhookEvent
|
|
5817
6070
|
| PhoneNumberStatusUpdatedWebhookEvent
|
|
6071
|
+
| PhoneNumberAssignedWebhookEvent
|
|
6072
|
+
| PhoneNumberReleasedWebhookEvent
|
|
5818
6073
|
| ConnectionCreatedWebhookEvent
|
|
5819
6074
|
| ConnectionRevokedWebhookEvent
|
|
5820
6075
|
| LocationSharingStartedWebhookEvent
|
|
@@ -5863,6 +6118,8 @@ export declare namespace Webhooks {
|
|
|
5863
6118
|
type ChatBackgroundUpdateFailedWebhookEvent as ChatBackgroundUpdateFailedWebhookEvent,
|
|
5864
6119
|
type ContactCardReceivedWebhookEvent as ContactCardReceivedWebhookEvent,
|
|
5865
6120
|
type PhoneNumberStatusUpdatedWebhookEvent as PhoneNumberStatusUpdatedWebhookEvent,
|
|
6121
|
+
type PhoneNumberAssignedWebhookEvent as PhoneNumberAssignedWebhookEvent,
|
|
6122
|
+
type PhoneNumberReleasedWebhookEvent as PhoneNumberReleasedWebhookEvent,
|
|
5866
6123
|
type ConnectionCreatedWebhookEvent as ConnectionCreatedWebhookEvent,
|
|
5867
6124
|
type ConnectionRevokedWebhookEvent as ConnectionRevokedWebhookEvent,
|
|
5868
6125
|
type LocationSharingStartedWebhookEvent as LocationSharingStartedWebhookEvent,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.69.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.69.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.69.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.69.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|