@linqapp/sdk 0.7.1 → 0.8.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.
- package/CHANGELOG.md +29 -0
- package/README.md +2 -2
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +7 -1
- package/resources/attachments.d.mts +7 -5
- package/resources/attachments.d.mts.map +1 -1
- package/resources/attachments.d.ts +7 -5
- package/resources/attachments.d.ts.map +1 -1
- package/resources/attachments.js +7 -5
- package/resources/attachments.js.map +1 -1
- package/resources/attachments.mjs +7 -5
- package/resources/attachments.mjs.map +1 -1
- package/resources/chats/chats.d.mts +106 -24
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +106 -24
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js +48 -14
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +48 -14
- 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 +26 -0
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +26 -0
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/chats/messages.js +26 -0
- package/resources/chats/messages.js.map +1 -1
- package/resources/chats/messages.mjs +26 -0
- package/resources/chats/messages.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- 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.d.mts +2 -9
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +2 -9
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +1 -3
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +1 -3
- package/resources/messages.mjs.map +1 -1
- package/resources/phonenumbers.d.mts +1 -1
- package/resources/phonenumbers.d.mts.map +1 -1
- package/resources/phonenumbers.d.ts +1 -1
- package/resources/phonenumbers.d.ts.map +1 -1
- package/resources/shared.d.mts +22 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +22 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhook-events.d.mts +5 -1
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +5 -1
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhooks.d.mts +296 -34
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +296 -34
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +4 -2
- package/src/resources/attachments.ts +7 -5
- package/src/resources/chats/chats.ts +113 -24
- package/src/resources/chats/index.ts +1 -0
- package/src/resources/chats/messages.ts +26 -0
- package/src/resources/index.ts +2 -1
- package/src/resources/messages.ts +1 -11
- package/src/resources/phonenumbers.ts +1 -1
- package/src/resources/shared.ts +26 -0
- package/src/resources/webhook-events.ts +5 -1
- package/src/resources/webhooks.ts +319 -32
- 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
|
@@ -34,6 +34,32 @@ export class Chats extends APIResource {
|
|
|
34
34
|
*
|
|
35
35
|
* Only one effect type can be applied per message.
|
|
36
36
|
*
|
|
37
|
+
* ## Inline Text Decorations (iMessage only)
|
|
38
|
+
*
|
|
39
|
+
* Use the `text_decorations` array on a text part to apply styling and animations
|
|
40
|
+
* to character ranges.
|
|
41
|
+
*
|
|
42
|
+
* Each decoration specifies a `range: [start, end)` and exactly one of `style` or
|
|
43
|
+
* `animation`.
|
|
44
|
+
*
|
|
45
|
+
* **Styles:** `bold`, `italic`, `strikethrough`, `underline` **Animations:**
|
|
46
|
+
* `big`, `small`, `shake`, `nod`, `explode`, `ripple`, `bloom`, `jitter`
|
|
47
|
+
*
|
|
48
|
+
* ```json
|
|
49
|
+
* {
|
|
50
|
+
* "type": "text",
|
|
51
|
+
* "value": "Hello world",
|
|
52
|
+
* "text_decorations": [
|
|
53
|
+
* { "range": [0, 5], "style": "bold" },
|
|
54
|
+
* { "range": [6, 11], "animation": "shake" }
|
|
55
|
+
* ]
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* **Note:** Style ranges (bold, italic, etc.) may overlap, but animation ranges
|
|
60
|
+
* must not overlap with other animations or styles. Text decorations only render
|
|
61
|
+
* for iMessage recipients. For SMS/RCS, text decorations are not applied.
|
|
62
|
+
*
|
|
37
63
|
* @example
|
|
38
64
|
* ```ts
|
|
39
65
|
* const chat = await client.chats.create({
|
|
@@ -69,6 +95,10 @@ export class Chats extends APIResource {
|
|
|
69
95
|
/**
|
|
70
96
|
* Update chat properties such as display name and group chat icon.
|
|
71
97
|
*
|
|
98
|
+
* Listen for `chat.group_name_updated`, `chat.group_icon_updated`,
|
|
99
|
+
* `chat.group_name_update_failed`, or `chat.group_icon_update_failed` webhook
|
|
100
|
+
* events to confirm the outcome.
|
|
101
|
+
*
|
|
72
102
|
* @example
|
|
73
103
|
* ```ts
|
|
74
104
|
* const chat = await client.chats.update(
|
|
@@ -81,9 +111,15 @@ export class Chats extends APIResource {
|
|
|
81
111
|
return this._client.put(path `/v3/chats/${chatID}`, { body, ...options });
|
|
82
112
|
}
|
|
83
113
|
/**
|
|
84
|
-
* Retrieves a paginated list of chats for the authenticated partner
|
|
85
|
-
*
|
|
86
|
-
*
|
|
114
|
+
* Retrieves a paginated list of chats for the authenticated partner.
|
|
115
|
+
*
|
|
116
|
+
* **Filtering:**
|
|
117
|
+
*
|
|
118
|
+
* - If `from` is provided, returns chats for that specific phone number
|
|
119
|
+
* - If `from` is omitted, returns chats across all phone numbers owned by the
|
|
120
|
+
* partner
|
|
121
|
+
* - If `to` is provided, only returns chats where the specified handle is a
|
|
122
|
+
* participant
|
|
87
123
|
*
|
|
88
124
|
* **Pagination:**
|
|
89
125
|
*
|
|
@@ -102,14 +138,12 @@ export class Chats extends APIResource {
|
|
|
102
138
|
* @example
|
|
103
139
|
* ```ts
|
|
104
140
|
* // Automatically fetches more pages as needed.
|
|
105
|
-
* for await (const chat of client.chats.listChats({
|
|
106
|
-
* from: '+13343284472',
|
|
107
|
-
* })) {
|
|
141
|
+
* for await (const chat of client.chats.listChats()) {
|
|
108
142
|
* // ...
|
|
109
143
|
* }
|
|
110
144
|
* ```
|
|
111
145
|
*/
|
|
112
|
-
listChats(query, options) {
|
|
146
|
+
listChats(query = {}, options) {
|
|
113
147
|
return this._client.getAPIList('/v3/chats', (ListChatsPagination), { query, ...options });
|
|
114
148
|
}
|
|
115
149
|
/**
|
|
@@ -148,10 +182,7 @@ export class Chats extends APIResource {
|
|
|
148
182
|
* ```ts
|
|
149
183
|
* const response = await client.chats.sendVoicememo(
|
|
150
184
|
* 'f19ee7b8-8533-4c5c-83ec-4ef8d6d1ddbd',
|
|
151
|
-
* {
|
|
152
|
-
* from: '+12052535597',
|
|
153
|
-
* voice_memo_url: 'https://example.com/voice-memo.m4a',
|
|
154
|
-
* },
|
|
185
|
+
* { voice_memo_url: 'https://example.com/voice-memo.m4a' },
|
|
155
186
|
* );
|
|
156
187
|
* ```
|
|
157
188
|
*/
|
|
@@ -159,15 +190,18 @@ export class Chats extends APIResource {
|
|
|
159
190
|
return this._client.post(path `/v3/chats/${chatID}/voicememo`, { body, ...options });
|
|
160
191
|
}
|
|
161
192
|
/**
|
|
162
|
-
* **Deprecated:** Use `POST /v3/my_cards/{chatId}/share` instead.
|
|
163
|
-
*
|
|
164
193
|
* Share your contact information (Name and Photo Sharing) with a chat.
|
|
165
194
|
*
|
|
166
195
|
* **Note:** A contact card must be configured before sharing. You can set up your
|
|
167
196
|
* contact card on the
|
|
168
197
|
* [Linq dashboard](https://dashboard.linqapp.com/contact-cards).
|
|
169
198
|
*
|
|
170
|
-
* @
|
|
199
|
+
* @example
|
|
200
|
+
* ```ts
|
|
201
|
+
* await client.chats.shareContactCard(
|
|
202
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
203
|
+
* );
|
|
204
|
+
* ```
|
|
171
205
|
*/
|
|
172
206
|
shareContactCard(chatID, options) {
|
|
173
207
|
return this._client.post(path `/v3/chats/${chatID}/share_contact_card`, {
|
|
@@ -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,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,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAA8B,IAAI,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
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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AO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;OASG;IACH,UAAU,CAAC,MAAc,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,OAAO,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,aAAa,CACX,MAAc,EACd,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,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,IAAI,CAAA,aAAa,MAAM,qBAAqB,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAyaD,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;AAClC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACtB,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Chats, type Chat, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.mjs";
|
|
1
|
+
export { Chats, type Chat, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.mjs";
|
|
2
2
|
export { Messages, type SentMessage, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.mjs";
|
|
3
3
|
export { Participants, type ParticipantAddResponse, type ParticipantRemoveResponse, type ParticipantAddParams, type ParticipantRemoveParams, } from "./participants.mjs";
|
|
4
4
|
export { Typing } from "./typing.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B;OACM,EAAE,MAAM,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B;OACM,EAAE,MAAM,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Chats, type Chat, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.js";
|
|
1
|
+
export { Chats, type Chat, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.js";
|
|
2
2
|
export { Messages, type SentMessage, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.js";
|
|
3
3
|
export { Participants, type ParticipantAddResponse, type ParticipantRemoveResponse, type ParticipantAddParams, type ParticipantRemoveParams, } from "./participants.js";
|
|
4
4
|
export { Typing } from "./typing.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B;OACM,EAAE,MAAM,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B;OACM,EAAE,MAAM,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAciB;AAbf,8FAAA,KAAK,OAAA;AAcP,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAaN;OACM,EACL,QAAQ,GAKT;OACM,EACL,YAAY,GAKb;OACM,EAAE,MAAM,EAAE"}
|
|
@@ -48,6 +48,32 @@ export declare class Messages extends APIResource {
|
|
|
48
48
|
*
|
|
49
49
|
* Only one effect type can be applied per message.
|
|
50
50
|
*
|
|
51
|
+
* ## Inline Text Decorations (iMessage only)
|
|
52
|
+
*
|
|
53
|
+
* Use the `text_decorations` array on a text part to apply styling and animations
|
|
54
|
+
* to character ranges.
|
|
55
|
+
*
|
|
56
|
+
* Each decoration specifies a `range: [start, end)` and exactly one of `style` or
|
|
57
|
+
* `animation`.
|
|
58
|
+
*
|
|
59
|
+
* **Styles:** `bold`, `italic`, `strikethrough`, `underline` **Animations:**
|
|
60
|
+
* `big`, `small`, `shake`, `nod`, `explode`, `ripple`, `bloom`, `jitter`
|
|
61
|
+
*
|
|
62
|
+
* ```json
|
|
63
|
+
* {
|
|
64
|
+
* "type": "text",
|
|
65
|
+
* "value": "Hello world",
|
|
66
|
+
* "text_decorations": [
|
|
67
|
+
* { "range": [0, 5], "style": "bold" },
|
|
68
|
+
* { "range": [6, 11], "animation": "shake" }
|
|
69
|
+
* ]
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* **Note:** Style ranges (bold, italic, etc.) may overlap, but animation ranges
|
|
74
|
+
* must not overlap with other animations or styles. Text decorations only render
|
|
75
|
+
* for iMessage recipients. For SMS/RCS, text decorations are not applied.
|
|
76
|
+
*
|
|
51
77
|
* @example
|
|
52
78
|
* ```ts
|
|
53
79
|
* const response = await client.chats.messages.send(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE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AAE,CAAC"}
|
|
@@ -48,6 +48,32 @@ export declare class Messages extends APIResource {
|
|
|
48
48
|
*
|
|
49
49
|
* Only one effect type can be applied per message.
|
|
50
50
|
*
|
|
51
|
+
* ## Inline Text Decorations (iMessage only)
|
|
52
|
+
*
|
|
53
|
+
* Use the `text_decorations` array on a text part to apply styling and animations
|
|
54
|
+
* to character ranges.
|
|
55
|
+
*
|
|
56
|
+
* Each decoration specifies a `range: [start, end)` and exactly one of `style` or
|
|
57
|
+
* `animation`.
|
|
58
|
+
*
|
|
59
|
+
* **Styles:** `bold`, `italic`, `strikethrough`, `underline` **Animations:**
|
|
60
|
+
* `big`, `small`, `shake`, `nod`, `explode`, `ripple`, `bloom`, `jitter`
|
|
61
|
+
*
|
|
62
|
+
* ```json
|
|
63
|
+
* {
|
|
64
|
+
* "type": "text",
|
|
65
|
+
* "value": "Hello world",
|
|
66
|
+
* "text_decorations": [
|
|
67
|
+
* { "range": [0, 5], "style": "bold" },
|
|
68
|
+
* { "range": [6, 11], "animation": "shake" }
|
|
69
|
+
* ]
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* **Note:** Style ranges (bold, italic, etc.) may overlap, but animation ranges
|
|
74
|
+
* must not overlap with other animations or styles. Text decorations only render
|
|
75
|
+
* for iMessage recipients. For SMS/RCS, text decorations are not applied.
|
|
76
|
+
*
|
|
51
77
|
* @example
|
|
52
78
|
* ```ts
|
|
53
79
|
* const response = await client.chats.messages.send(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,8BAA8B,EAAE;OAClC,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAEL,KAAK,4BAA4B,EACjC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB;;;;;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,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAEjE;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,aAAa,GAAG,IAAI,CAAC;IAE1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,iBAAkB,SAAQ,4BAA4B;CAAG;AAE1E,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH;AAED,OAAO,EAAE,KAAK,8BAA8B,EAAE,CAAC"}
|
|
@@ -49,6 +49,32 @@ class Messages extends resource_1.APIResource {
|
|
|
49
49
|
*
|
|
50
50
|
* Only one effect type can be applied per message.
|
|
51
51
|
*
|
|
52
|
+
* ## Inline Text Decorations (iMessage only)
|
|
53
|
+
*
|
|
54
|
+
* Use the `text_decorations` array on a text part to apply styling and animations
|
|
55
|
+
* to character ranges.
|
|
56
|
+
*
|
|
57
|
+
* Each decoration specifies a `range: [start, end)` and exactly one of `style` or
|
|
58
|
+
* `animation`.
|
|
59
|
+
*
|
|
60
|
+
* **Styles:** `bold`, `italic`, `strikethrough`, `underline` **Animations:**
|
|
61
|
+
* `big`, `small`, `shake`, `nod`, `explode`, `ripple`, `bloom`, `jitter`
|
|
62
|
+
*
|
|
63
|
+
* ```json
|
|
64
|
+
* {
|
|
65
|
+
* "type": "text",
|
|
66
|
+
* "value": "Hello world",
|
|
67
|
+
* "text_decorations": [
|
|
68
|
+
* { "range": [0, 5], "style": "bold" },
|
|
69
|
+
* { "range": [6, 11], "animation": "shake" }
|
|
70
|
+
* ]
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* **Note:** Style ranges (bold, italic, etc.) may overlap, but animation ranges
|
|
75
|
+
* must not overlap with other animations or styles. Text decorations only render
|
|
76
|
+
* for iMessage recipients. For SMS/RCS, text decorations are not applied.
|
|
77
|
+
*
|
|
52
78
|
* @example
|
|
53
79
|
* ```ts
|
|
54
80
|
* const response = await client.chats.messages.send(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,yDAI+B;AAE/B,uDAAiD;AAEjD;;;;;;;;GAQG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAClC,CAAA,mCAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,yDAI+B;AAE/B,uDAAiD;AAEjD;;;;;;;;GAQG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAClC,CAAA,mCAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AArFD,4BAqFC"}
|
|
@@ -46,6 +46,32 @@ export class Messages extends APIResource {
|
|
|
46
46
|
*
|
|
47
47
|
* Only one effect type can be applied per message.
|
|
48
48
|
*
|
|
49
|
+
* ## Inline Text Decorations (iMessage only)
|
|
50
|
+
*
|
|
51
|
+
* Use the `text_decorations` array on a text part to apply styling and animations
|
|
52
|
+
* to character ranges.
|
|
53
|
+
*
|
|
54
|
+
* Each decoration specifies a `range: [start, end)` and exactly one of `style` or
|
|
55
|
+
* `animation`.
|
|
56
|
+
*
|
|
57
|
+
* **Styles:** `bold`, `italic`, `strikethrough`, `underline` **Animations:**
|
|
58
|
+
* `big`, `small`, `shake`, `nod`, `explode`, `ripple`, `bloom`, `jitter`
|
|
59
|
+
*
|
|
60
|
+
* ```json
|
|
61
|
+
* {
|
|
62
|
+
* "type": "text",
|
|
63
|
+
* "value": "Hello world",
|
|
64
|
+
* "text_decorations": [
|
|
65
|
+
* { "range": [0, 5], "style": "bold" },
|
|
66
|
+
* { "range": [6, 11], "animation": "shake" }
|
|
67
|
+
* ]
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* **Note:** Style ranges (bold, italic, etc.) may overlap, but animation ranges
|
|
72
|
+
* must not overlap with other animations or styles. Text decorations only render
|
|
73
|
+
* for iMessage recipients. For SMS/RCS, text decorations are not applied.
|
|
74
|
+
*
|
|
49
75
|
* @example
|
|
50
76
|
* ```ts
|
|
51
77
|
* const response = await client.chats.messages.send(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EACL,sBAAsB,GAGvB;OAEM,EAAE,IAAI,EAAE;AAEf;;;;;;;;GAQG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,aAAa,MAAM,WAAW,EAClC,CAAA,sBAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EACL,sBAAsB,GAGvB;OAEM,EAAE,IAAI,EAAE;AAEf;;;;;;;;GAQG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,aAAa,MAAM,WAAW,EAClC,CAAA,sBAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
2
|
export { Attachments, type SupportedContentType, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.mjs";
|
|
3
3
|
export { Capability, type CapabilityCheckiMessageResponse, type CapabilityCheckRCSResponse, type CapabilityCheckiMessageParams, type CapabilityCheckRCSParams, } from "./capability.mjs";
|
|
4
|
-
export { Chats, type Chat, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.mjs";
|
|
5
|
-
export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageAddReactionResponse, type MessageUpdateParams, type
|
|
4
|
+
export { Chats, type Chat, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.mjs";
|
|
5
|
+
export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageAddReactionResponse, type MessageUpdateParams, type MessageAddReactionParams, type MessageListMessagesThreadParams, type MessagesListMessagesPagination, } from "./messages.mjs";
|
|
6
6
|
export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.mjs";
|
|
7
7
|
export { Phonenumbers, type PhonenumberListResponse } from "./phonenumbers.mjs";
|
|
8
8
|
export { WebhookEvents, type WebhookEventType, type WebhookEventListResponse } from "./webhook-events.mjs";
|
|
9
9
|
export { WebhookSubscriptions, type WebhookSubscription, type WebhookSubscriptionCreateResponse, type WebhookSubscriptionListResponse, type WebhookSubscriptionCreateParams, type WebhookSubscriptionUpdateParams, } from "./webhook-subscriptions.mjs";
|
|
10
|
-
export { Webhooks, type MessageEventV2, type MessagePayload, type ReactionEventBase, type SchemasMediaPartResponse, type SchemasMessageEffect, type SchemasTextPartResponse, type MessageSentV2026WebhookEvent, type MessageReceivedV2026WebhookEvent, type MessageReadV2026WebhookEvent, type MessageDeliveredV2026WebhookEvent, type MessageFailedV2026WebhookEvent, type ReactionAddedV2026WebhookEvent, type ReactionRemovedV2026WebhookEvent, type ParticipantAddedV2026WebhookEvent, type ParticipantRemovedV2026WebhookEvent, type ChatGroupNameUpdatedV2026WebhookEvent, type ChatGroupIconUpdatedV2026WebhookEvent, type ChatGroupNameUpdateFailedV2026WebhookEvent, type ChatGroupIconUpdateFailedV2026WebhookEvent, type ChatCreatedV2026WebhookEvent, type ChatTypingIndicatorStartedV2026WebhookEvent, type ChatTypingIndicatorStoppedV2026WebhookEvent, type PhoneNumberStatusUpdatedV2026WebhookEvent, type MessageSentV2025WebhookEvent, type MessageReceivedV2025WebhookEvent, type MessageReadV2025WebhookEvent, type MessageDeliveredV2025WebhookEvent, type MessageFailedV2025WebhookEvent, type ReactionAddedV2025WebhookEvent, type ReactionRemovedV2025WebhookEvent, type ParticipantAddedV2025WebhookEvent, type ParticipantRemovedV2025WebhookEvent, type ChatGroupNameUpdatedV2025WebhookEvent, type ChatGroupIconUpdatedV2025WebhookEvent, type ChatGroupNameUpdateFailedV2025WebhookEvent, type ChatGroupIconUpdateFailedV2025WebhookEvent, type ChatCreatedV2025WebhookEvent, type ChatTypingIndicatorStartedV2025WebhookEvent, type ChatTypingIndicatorStoppedV2025WebhookEvent, type PhoneNumberStatusUpdatedV2025WebhookEvent, type EventsWebhookEvent, } from "./webhooks.mjs";
|
|
10
|
+
export { Webhooks, type MessageEventV2, type MessagePayload, type ReactionEventBase, type SchemasMediaPartResponse, type SchemasMessageEffect, type SchemasTextPartResponse, type MessageSentV2026WebhookEvent, type MessageReceivedV2026WebhookEvent, type MessageReadV2026WebhookEvent, type MessageDeliveredV2026WebhookEvent, type MessageFailedV2026WebhookEvent, type ReactionAddedV2026WebhookEvent, type ReactionRemovedV2026WebhookEvent, type ParticipantAddedV2026WebhookEvent, type ParticipantRemovedV2026WebhookEvent, type ChatGroupNameUpdatedV2026WebhookEvent, type ChatGroupIconUpdatedV2026WebhookEvent, type ChatGroupNameUpdateFailedV2026WebhookEvent, type ChatGroupIconUpdateFailedV2026WebhookEvent, type ChatCreatedV2026WebhookEvent, type ChatTypingIndicatorStartedV2026WebhookEvent, type ChatTypingIndicatorStoppedV2026WebhookEvent, type MessageEditedV2026WebhookEvent, type PhoneNumberStatusUpdatedV2026WebhookEvent, type MessageSentV2025WebhookEvent, type MessageReceivedV2025WebhookEvent, type MessageReadV2025WebhookEvent, type MessageDeliveredV2025WebhookEvent, type MessageFailedV2025WebhookEvent, type ReactionAddedV2025WebhookEvent, type ReactionRemovedV2025WebhookEvent, type ParticipantAddedV2025WebhookEvent, type ParticipantRemovedV2025WebhookEvent, type ChatGroupNameUpdatedV2025WebhookEvent, type ChatGroupIconUpdatedV2025WebhookEvent, type ChatGroupNameUpdateFailedV2025WebhookEvent, type ChatGroupIconUpdateFailedV2025WebhookEvent, type ChatCreatedV2025WebhookEvent, type ChatTypingIndicatorStartedV2025WebhookEvent, type ChatTypingIndicatorStoppedV2025WebhookEvent, type PhoneNumberStatusUpdatedV2025WebhookEvent, type EventsWebhookEvent, } from "./webhooks.mjs";
|
|
11
11
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uB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C,EAC1C,KAAK,0CAA0C,EAC/C,KAAK,0CAA0C,EAC/C,KAAK,4BAA4B,EACjC,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EAChD,KAAK,yCAAyC,EAC9C,KAAK,kBAAkB,GACxB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
2
|
export { Attachments, type SupportedContentType, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.js";
|
|
3
3
|
export { Capability, type CapabilityCheckiMessageResponse, type CapabilityCheckRCSResponse, type CapabilityCheckiMessageParams, type CapabilityCheckRCSParams, } from "./capability.js";
|
|
4
|
-
export { Chats, type Chat, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.js";
|
|
5
|
-
export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageAddReactionResponse, type MessageUpdateParams, type
|
|
4
|
+
export { Chats, type Chat, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.js";
|
|
5
|
+
export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageAddReactionResponse, type MessageUpdateParams, type MessageAddReactionParams, type MessageListMessagesThreadParams, type MessagesListMessagesPagination, } from "./messages.js";
|
|
6
6
|
export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.js";
|
|
7
7
|
export { Phonenumbers, type PhonenumberListResponse } from "./phonenumbers.js";
|
|
8
8
|
export { WebhookEvents, type WebhookEventType, type WebhookEventListResponse } from "./webhook-events.js";
|
|
9
9
|
export { WebhookSubscriptions, type WebhookSubscription, type WebhookSubscriptionCreateResponse, type WebhookSubscriptionListResponse, type WebhookSubscriptionCreateParams, type WebhookSubscriptionUpdateParams, } from "./webhook-subscriptions.js";
|
|
10
|
-
export { Webhooks, type MessageEventV2, type MessagePayload, type ReactionEventBase, type SchemasMediaPartResponse, type SchemasMessageEffect, type SchemasTextPartResponse, type MessageSentV2026WebhookEvent, type MessageReceivedV2026WebhookEvent, type MessageReadV2026WebhookEvent, type MessageDeliveredV2026WebhookEvent, type MessageFailedV2026WebhookEvent, type ReactionAddedV2026WebhookEvent, type ReactionRemovedV2026WebhookEvent, type ParticipantAddedV2026WebhookEvent, type ParticipantRemovedV2026WebhookEvent, type ChatGroupNameUpdatedV2026WebhookEvent, type ChatGroupIconUpdatedV2026WebhookEvent, type ChatGroupNameUpdateFailedV2026WebhookEvent, type ChatGroupIconUpdateFailedV2026WebhookEvent, type ChatCreatedV2026WebhookEvent, type ChatTypingIndicatorStartedV2026WebhookEvent, type ChatTypingIndicatorStoppedV2026WebhookEvent, type PhoneNumberStatusUpdatedV2026WebhookEvent, type MessageSentV2025WebhookEvent, type MessageReceivedV2025WebhookEvent, type MessageReadV2025WebhookEvent, type MessageDeliveredV2025WebhookEvent, type MessageFailedV2025WebhookEvent, type ReactionAddedV2025WebhookEvent, type ReactionRemovedV2025WebhookEvent, type ParticipantAddedV2025WebhookEvent, type ParticipantRemovedV2025WebhookEvent, type ChatGroupNameUpdatedV2025WebhookEvent, type ChatGroupIconUpdatedV2025WebhookEvent, type ChatGroupNameUpdateFailedV2025WebhookEvent, type ChatGroupIconUpdateFailedV2025WebhookEvent, type ChatCreatedV2025WebhookEvent, type ChatTypingIndicatorStartedV2025WebhookEvent, type ChatTypingIndicatorStoppedV2025WebhookEvent, type PhoneNumberStatusUpdatedV2025WebhookEvent, type EventsWebhookEvent, } from "./webhooks.js";
|
|
10
|
+
export { Webhooks, type MessageEventV2, type MessagePayload, type ReactionEventBase, type SchemasMediaPartResponse, type SchemasMessageEffect, type SchemasTextPartResponse, type MessageSentV2026WebhookEvent, type MessageReceivedV2026WebhookEvent, type MessageReadV2026WebhookEvent, type MessageDeliveredV2026WebhookEvent, type MessageFailedV2026WebhookEvent, type ReactionAddedV2026WebhookEvent, type ReactionRemovedV2026WebhookEvent, type ParticipantAddedV2026WebhookEvent, type ParticipantRemovedV2026WebhookEvent, type ChatGroupNameUpdatedV2026WebhookEvent, type ChatGroupIconUpdatedV2026WebhookEvent, type ChatGroupNameUpdateFailedV2026WebhookEvent, type ChatGroupIconUpdateFailedV2026WebhookEvent, type ChatCreatedV2026WebhookEvent, type ChatTypingIndicatorStartedV2026WebhookEvent, type ChatTypingIndicatorStoppedV2026WebhookEvent, type MessageEditedV2026WebhookEvent, type PhoneNumberStatusUpdatedV2026WebhookEvent, type MessageSentV2025WebhookEvent, type MessageReceivedV2025WebhookEvent, type MessageReadV2025WebhookEvent, type MessageDeliveredV2025WebhookEvent, type MessageFailedV2025WebhookEvent, type ReactionAddedV2025WebhookEvent, type ReactionRemovedV2025WebhookEvent, type ParticipantAddedV2025WebhookEvent, type ParticipantRemovedV2025WebhookEvent, type ChatGroupNameUpdatedV2025WebhookEvent, type ChatGroupIconUpdatedV2025WebhookEvent, type ChatGroupNameUpdateFailedV2025WebhookEvent, type ChatGroupIconUpdateFailedV2025WebhookEvent, type ChatCreatedV2025WebhookEvent, type ChatTypingIndicatorStartedV2025WebhookEvent, type ChatTypingIndicatorStoppedV2025WebhookEvent, type PhoneNumberStatusUpdatedV2025WebhookEvent, type EventsWebhookEvent, } from "./webhooks.js";
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,+BAA+B,EACpC,K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,EAAE;OAC9C,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,KAAK,wBAAwB,EAAE;OACvE,EACL,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,GACrC;OACM,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,0CAA0C,EAC/C,KAAK,0CAA0C,EAC/C,KAAK,4BAA4B,EACjC,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EAChD,KAAK,8BAA8B,EACnC,KAAK,yCAAyC,EAC9C,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,0CAA0C,EAC/C,KAAK,0CAA0C,EAC/C,KAAK,4BAA4B,EACjC,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EAChD,KAAK,yCAAyC,EAC9C,KAAK,kBAAkB,GACxB"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,0CAcuB;AAbrB,8FAAA,KAAK,OAAA;AAcP,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,oDAA6E;AAApE,6GAAA,YAAY,OAAA;AACrB,kDAA4E;AAAnE,4GAAA,YAAY,OAAA;AACrB,sDAAuG;AAA9F,+GAAA,aAAa,OAAA;AACtB,oEAOiC;AAN/B,6HAAA,oBAAoB,OAAA;AAOtB,0CA4CoB;AA3ClB,oGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,WAAW,GAKZ;OACM,EACL,UAAU,GAKX;OACM,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,WAAW,GAKZ;OACM,EACL,UAAU,GAKX;OACM,EACL,KAAK,GAaN;OACM,EACL,QAAQ,GAST;OACM,EAAE,YAAY,EAAgC;OAC9C,EAAE,YAAY,EAAgC;OAC9C,EAAE,aAAa,EAAwD;OACvE,EACL,oBAAoB,GAMrB;OACM,EACL,QAAQ,GA2CT"}
|
package/resources/messages.d.mts
CHANGED
|
@@ -48,11 +48,10 @@ export declare class Messages extends APIResource {
|
|
|
48
48
|
* ```ts
|
|
49
49
|
* await client.messages.delete(
|
|
50
50
|
* '69a37c7d-af4f-4b5e-af42-e28e98ce873a',
|
|
51
|
-
* { chat_id: '94c6bf33-31d9-40e3-a0e9-f94250ecedb9' },
|
|
52
51
|
* );
|
|
53
52
|
* ```
|
|
54
53
|
*/
|
|
55
|
-
delete(messageID: string,
|
|
54
|
+
delete(messageID: string, options?: RequestOptions): APIPromise<void>;
|
|
56
55
|
/**
|
|
57
56
|
* Add or remove emoji reactions to messages. Reactions let users express their
|
|
58
57
|
* response to a message without sending a new message.
|
|
@@ -215,12 +214,6 @@ export interface MessageUpdateParams {
|
|
|
215
214
|
*/
|
|
216
215
|
part_index?: number;
|
|
217
216
|
}
|
|
218
|
-
export interface MessageDeleteParams {
|
|
219
|
-
/**
|
|
220
|
-
* ID of the chat containing the message to delete
|
|
221
|
-
*/
|
|
222
|
-
chat_id: string;
|
|
223
|
-
}
|
|
224
217
|
export interface MessageAddReactionParams {
|
|
225
218
|
/**
|
|
226
219
|
* Whether to add or remove the reaction
|
|
@@ -250,6 +243,6 @@ export interface MessageListMessagesThreadParams extends ListMessagesPaginationP
|
|
|
250
243
|
order?: 'asc' | 'desc';
|
|
251
244
|
}
|
|
252
245
|
export declare namespace Messages {
|
|
253
|
-
export { type Message as Message, type MessageEffect as MessageEffect, type ReplyTo as ReplyTo, type MessageAddReactionResponse as MessageAddReactionResponse, type MessagesListMessagesPagination as MessagesListMessagesPagination, type MessageUpdateParams as MessageUpdateParams, type
|
|
246
|
+
export { type Message as Message, type MessageEffect as MessageEffect, type ReplyTo as ReplyTo, type MessageAddReactionResponse as MessageAddReactionResponse, type MessagesListMessagesPagination as MessagesListMessagesPagination, type MessageUpdateParams as MessageUpdateParams, type MessageAddReactionParams as MessageAddReactionParams, type MessageListMessagesThreadParams as MessageListMessagesThreadParams, };
|
|
254
247
|
}
|
|
255
248
|
//# sourceMappingURL=messages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE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K,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
package/resources/messages.d.ts
CHANGED
|
@@ -48,11 +48,10 @@ export declare class Messages extends APIResource {
|
|
|
48
48
|
* ```ts
|
|
49
49
|
* await client.messages.delete(
|
|
50
50
|
* '69a37c7d-af4f-4b5e-af42-e28e98ce873a',
|
|
51
|
-
* { chat_id: '94c6bf33-31d9-40e3-a0e9-f94250ecedb9' },
|
|
52
51
|
* );
|
|
53
52
|
* ```
|
|
54
53
|
*/
|
|
55
|
-
delete(messageID: string,
|
|
54
|
+
delete(messageID: string, options?: RequestOptions): APIPromise<void>;
|
|
56
55
|
/**
|
|
57
56
|
* Add or remove emoji reactions to messages. Reactions let users express their
|
|
58
57
|
* response to a message without sending a new message.
|
|
@@ -215,12 +214,6 @@ export interface MessageUpdateParams {
|
|
|
215
214
|
*/
|
|
216
215
|
part_index?: number;
|
|
217
216
|
}
|
|
218
|
-
export interface MessageDeleteParams {
|
|
219
|
-
/**
|
|
220
|
-
* ID of the chat containing the message to delete
|
|
221
|
-
*/
|
|
222
|
-
chat_id: string;
|
|
223
|
-
}
|
|
224
217
|
export interface MessageAddReactionParams {
|
|
225
218
|
/**
|
|
226
219
|
* Whether to add or remove the reaction
|
|
@@ -250,6 +243,6 @@ export interface MessageListMessagesThreadParams extends ListMessagesPaginationP
|
|
|
250
243
|
order?: 'asc' | 'desc';
|
|
251
244
|
}
|
|
252
245
|
export declare namespace Messages {
|
|
253
|
-
export { type Message as Message, type MessageEffect as MessageEffect, type ReplyTo as ReplyTo, type MessageAddReactionResponse as MessageAddReactionResponse, type MessagesListMessagesPagination as MessagesListMessagesPagination, type MessageUpdateParams as MessageUpdateParams, type
|
|
246
|
+
export { type Message as Message, type MessageEffect as MessageEffect, type ReplyTo as ReplyTo, type MessageAddReactionResponse as MessageAddReactionResponse, type MessagesListMessagesPagination as MessagesListMessagesPagination, type MessageUpdateParams as MessageUpdateParams, type MessageAddReactionParams as MessageAddReactionParams, type MessageListMessagesThreadParams as MessageListMessagesThreadParams, };
|
|
254
247
|
}
|
|
255
248
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,WAAW,EAAE;OAE1E,EAAE,cAAc,EAAE;AAGzB;;;;;;;;GAQG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInG
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,WAAW,EAAE;OAE1E,EAAE,cAAc,EAAE;AAGzB;;;;;;;;GAQG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBA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AED,MAAM,WAAW,+BAAgC,SAAQ,4BAA4B;IACnF;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
package/resources/messages.js
CHANGED
|
@@ -55,13 +55,11 @@ class Messages extends resource_1.APIResource {
|
|
|
55
55
|
* ```ts
|
|
56
56
|
* await client.messages.delete(
|
|
57
57
|
* '69a37c7d-af4f-4b5e-af42-e28e98ce873a',
|
|
58
|
-
* { chat_id: '94c6bf33-31d9-40e3-a0e9-f94250ecedb9' },
|
|
59
58
|
* );
|
|
60
59
|
* ```
|
|
61
60
|
*/
|
|
62
|
-
delete(messageID,
|
|
61
|
+
delete(messageID, options) {
|
|
63
62
|
return this._client.delete((0, path_1.path) `/v3/messages/${messageID}`, {
|
|
64
|
-
body,
|
|
65
63
|
...options,
|
|
66
64
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
67
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAA4G;AAC5G,oDAAmD;AAEnD,oDAA8C;AAE9C;;;;;;;;GAQG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,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C7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,WAAW,CACT,SAAiB,EACjB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,kBAAkB,CAChB,SAAiB,EACjB,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,SAAS,EAAE,CAAA,mCAA+B,CAAA,EAAE;YACtG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA9GD,4BA8GC"}
|
package/resources/messages.mjs
CHANGED
|
@@ -52,13 +52,11 @@ export class Messages extends APIResource {
|
|
|
52
52
|
* ```ts
|
|
53
53
|
* await client.messages.delete(
|
|
54
54
|
* '69a37c7d-af4f-4b5e-af42-e28e98ce873a',
|
|
55
|
-
* { chat_id: '94c6bf33-31d9-40e3-a0e9-f94250ecedb9' },
|
|
56
55
|
* );
|
|
57
56
|
* ```
|
|
58
57
|
*/
|
|
59
|
-
delete(messageID,
|
|
58
|
+
delete(messageID, options) {
|
|
60
59
|
return this._client.delete(path `/v3/messages/${messageID}`, {
|
|
61
|
-
body,
|
|
62
60
|
...options,
|
|
63
61
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
64
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,sBAAsB,EAAkD;OAC1E,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;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AAM,CAAC;QAErB,YAAY,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC;QAExC;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"phonenumbers.d.mts","sourceRoot":"","sources":["../src/resources/phonenumbers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpE;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;CAC3D;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB,YAAY,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC;QAExC;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;IAED,UAAiB,WAAW,CAAC;QAC3B,UAAiB,YAAY;YAC3B;;eAEG;YACH,GAAG,EAAE,OAAO,CAAC;YAEb;;eAEG;YACH,GAAG,EAAE,OAAO,CAAC;YAEb;;eAEG;YACH,KAAK,EAAE,OAAO,CAAC;SAChB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phonenumbers.d.ts","sourceRoot":"","sources":["../src/resources/phonenumbers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpE;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;CAC3D;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB,YAAY,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC;QAExC;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"phonenumbers.d.ts","sourceRoot":"","sources":["../src/resources/phonenumbers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpE;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;CAC3D;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB,YAAY,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC;QAExC;;WAEG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