@linqapp/sdk 0.11.0 → 0.12.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 +21 -0
- package/README.md +14 -0
- package/client.d.mts +15 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -4
- package/client.d.ts.map +1 -1
- package/client.js +15 -4
- package/client.js.map +1 -1
- package/client.mjs +15 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/chats/chats.d.mts +11 -2
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +11 -2
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/messages.d.mts +36 -6
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +36 -6
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/chats/messages.js +15 -4
- package/resources/chats/messages.js.map +1 -1
- package/resources/chats/messages.mjs +15 -4
- package/resources/chats/messages.mjs.map +1 -1
- package/resources/messages.d.mts +36 -6
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +36 -6
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +15 -4
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +15 -4
- package/resources/messages.mjs.map +1 -1
- package/resources/webhook-subscriptions.d.mts +34 -0
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +34 -0
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +10 -0
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +10 -0
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +28 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +28 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +15 -4
- package/src/resources/chats/chats.ts +11 -2
- package/src/resources/chats/messages.ts +39 -6
- package/src/resources/messages.ts +39 -6
- package/src/resources/webhook-subscriptions.ts +38 -0
- package/src/resources/webhooks.ts +32 -2
- 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
|
@@ -7,13 +7,24 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
7
7
|
import { type ListMessagesPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
8
8
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
9
9
|
/**
|
|
10
|
-
* Messages are individual
|
|
10
|
+
* Messages are individual communications within a chat thread.
|
|
11
11
|
*
|
|
12
|
-
* Messages can include text, attachments,
|
|
13
|
-
* and reactions. All messages are associated with a
|
|
14
|
-
* phone number you own.
|
|
12
|
+
* Messages can include text, media attachments, rich link previews, special effects
|
|
13
|
+
* (like confetti or fireworks), and reactions. All messages are associated with a
|
|
14
|
+
* specific chat and sent from a phone number you own.
|
|
15
15
|
*
|
|
16
16
|
* Messages support delivery status tracking, read receipts, and editing capabilities.
|
|
17
|
+
*
|
|
18
|
+
* ## Rich Link Previews
|
|
19
|
+
*
|
|
20
|
+
* Send a URL as a `link` part to deliver it with a rich preview card showing the
|
|
21
|
+
* page's title, description, and image (when available). A `link` part must be the
|
|
22
|
+
* **only** part in the message — it cannot be combined with text or media parts.
|
|
23
|
+
* To send a URL without a preview card, include it in a `text` part instead.
|
|
24
|
+
*
|
|
25
|
+
* **Limitations:**
|
|
26
|
+
* - A `link` part cannot be combined with other parts in the same message.
|
|
27
|
+
* - Maximum URL length: 2,048 characters.
|
|
17
28
|
*/
|
|
18
29
|
export declare class Messages extends APIResource {
|
|
19
30
|
/**
|
|
@@ -105,9 +116,9 @@ export interface SentMessage {
|
|
|
105
116
|
*/
|
|
106
117
|
is_read: boolean;
|
|
107
118
|
/**
|
|
108
|
-
* Message parts in order (text and
|
|
119
|
+
* Message parts in order (text, media, and link)
|
|
109
120
|
*/
|
|
110
|
-
parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse>;
|
|
121
|
+
parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse | SentMessage.LinkPartResponse>;
|
|
111
122
|
/**
|
|
112
123
|
* When the message was sent
|
|
113
124
|
*/
|
|
@@ -137,6 +148,25 @@ export interface SentMessage {
|
|
|
137
148
|
*/
|
|
138
149
|
service?: Shared.ServiceType | null;
|
|
139
150
|
}
|
|
151
|
+
export declare namespace SentMessage {
|
|
152
|
+
/**
|
|
153
|
+
* A rich link preview part
|
|
154
|
+
*/
|
|
155
|
+
interface LinkPartResponse {
|
|
156
|
+
/**
|
|
157
|
+
* Reactions on this message part
|
|
158
|
+
*/
|
|
159
|
+
reactions: Array<Shared.Reaction> | null;
|
|
160
|
+
/**
|
|
161
|
+
* Indicates this is a rich link preview part
|
|
162
|
+
*/
|
|
163
|
+
type: 'link';
|
|
164
|
+
/**
|
|
165
|
+
* The URL
|
|
166
|
+
*/
|
|
167
|
+
value: string;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
140
170
|
/**
|
|
141
171
|
* Response for sending a message to a chat
|
|
142
172
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","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
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,8BAA8B,EAAE;OAClC,KAAK,MAAM;OACX,K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AAI,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,yBAAiB,WAAW,CAAC;IAC3B;;OAEG;IACH,UAAiB,gBAAgB;QAC/B;;WAEG;QACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;QAEzC;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;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"}
|
|
@@ -7,13 +7,24 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
7
7
|
import { type ListMessagesPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
8
8
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
9
9
|
/**
|
|
10
|
-
* Messages are individual
|
|
10
|
+
* Messages are individual communications within a chat thread.
|
|
11
11
|
*
|
|
12
|
-
* Messages can include text, attachments,
|
|
13
|
-
* and reactions. All messages are associated with a
|
|
14
|
-
* phone number you own.
|
|
12
|
+
* Messages can include text, media attachments, rich link previews, special effects
|
|
13
|
+
* (like confetti or fireworks), and reactions. All messages are associated with a
|
|
14
|
+
* specific chat and sent from a phone number you own.
|
|
15
15
|
*
|
|
16
16
|
* Messages support delivery status tracking, read receipts, and editing capabilities.
|
|
17
|
+
*
|
|
18
|
+
* ## Rich Link Previews
|
|
19
|
+
*
|
|
20
|
+
* Send a URL as a `link` part to deliver it with a rich preview card showing the
|
|
21
|
+
* page's title, description, and image (when available). A `link` part must be the
|
|
22
|
+
* **only** part in the message — it cannot be combined with text or media parts.
|
|
23
|
+
* To send a URL without a preview card, include it in a `text` part instead.
|
|
24
|
+
*
|
|
25
|
+
* **Limitations:**
|
|
26
|
+
* - A `link` part cannot be combined with other parts in the same message.
|
|
27
|
+
* - Maximum URL length: 2,048 characters.
|
|
17
28
|
*/
|
|
18
29
|
export declare class Messages extends APIResource {
|
|
19
30
|
/**
|
|
@@ -105,9 +116,9 @@ export interface SentMessage {
|
|
|
105
116
|
*/
|
|
106
117
|
is_read: boolean;
|
|
107
118
|
/**
|
|
108
|
-
* Message parts in order (text and
|
|
119
|
+
* Message parts in order (text, media, and link)
|
|
109
120
|
*/
|
|
110
|
-
parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse>;
|
|
121
|
+
parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse | SentMessage.LinkPartResponse>;
|
|
111
122
|
/**
|
|
112
123
|
* When the message was sent
|
|
113
124
|
*/
|
|
@@ -137,6 +148,25 @@ export interface SentMessage {
|
|
|
137
148
|
*/
|
|
138
149
|
service?: Shared.ServiceType | null;
|
|
139
150
|
}
|
|
151
|
+
export declare namespace SentMessage {
|
|
152
|
+
/**
|
|
153
|
+
* A rich link preview part
|
|
154
|
+
*/
|
|
155
|
+
interface LinkPartResponse {
|
|
156
|
+
/**
|
|
157
|
+
* Reactions on this message part
|
|
158
|
+
*/
|
|
159
|
+
reactions: Array<Shared.Reaction> | null;
|
|
160
|
+
/**
|
|
161
|
+
* Indicates this is a rich link preview part
|
|
162
|
+
*/
|
|
163
|
+
type: 'link';
|
|
164
|
+
/**
|
|
165
|
+
* The URL
|
|
166
|
+
*/
|
|
167
|
+
value: string;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
140
170
|
/**
|
|
141
171
|
* Response for sending a message to a chat
|
|
142
172
|
*/
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8BAA8B,EAAE,WAAW,CAAC,OAAO,CAAC;IAQnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc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B;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"}
|
|
@@ -6,13 +6,24 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const pagination_1 = require("../../core/pagination.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
/**
|
|
9
|
-
* Messages are individual
|
|
9
|
+
* Messages are individual communications within a chat thread.
|
|
10
10
|
*
|
|
11
|
-
* Messages can include text, attachments,
|
|
12
|
-
* and reactions. All messages are associated with a
|
|
13
|
-
* phone number you own.
|
|
11
|
+
* Messages can include text, media attachments, rich link previews, special effects
|
|
12
|
+
* (like confetti or fireworks), and reactions. All messages are associated with a
|
|
13
|
+
* specific chat and sent from a phone number you own.
|
|
14
14
|
*
|
|
15
15
|
* Messages support delivery status tracking, read receipts, and editing capabilities.
|
|
16
|
+
*
|
|
17
|
+
* ## Rich Link Previews
|
|
18
|
+
*
|
|
19
|
+
* Send a URL as a `link` part to deliver it with a rich preview card showing the
|
|
20
|
+
* page's title, description, and image (when available). A `link` part must be the
|
|
21
|
+
* **only** part in the message — it cannot be combined with text or media parts.
|
|
22
|
+
* To send a URL without a preview card, include it in a `text` part instead.
|
|
23
|
+
*
|
|
24
|
+
* **Limitations:**
|
|
25
|
+
* - A `link` part cannot be combined with other parts in the same message.
|
|
26
|
+
* - Maximum URL length: 2,048 characters.
|
|
16
27
|
*/
|
|
17
28
|
class Messages extends resource_1.APIResource {
|
|
18
29
|
/**
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;GAmBG;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"}
|
|
@@ -3,13 +3,24 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { ListMessagesPagination, } from "../../core/pagination.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* Messages are individual
|
|
6
|
+
* Messages are individual communications within a chat thread.
|
|
7
7
|
*
|
|
8
|
-
* Messages can include text, attachments,
|
|
9
|
-
* and reactions. All messages are associated with a
|
|
10
|
-
* phone number you own.
|
|
8
|
+
* Messages can include text, media attachments, rich link previews, special effects
|
|
9
|
+
* (like confetti or fireworks), and reactions. All messages are associated with a
|
|
10
|
+
* specific chat and sent from a phone number you own.
|
|
11
11
|
*
|
|
12
12
|
* Messages support delivery status tracking, read receipts, and editing capabilities.
|
|
13
|
+
*
|
|
14
|
+
* ## Rich Link Previews
|
|
15
|
+
*
|
|
16
|
+
* Send a URL as a `link` part to deliver it with a rich preview card showing the
|
|
17
|
+
* page's title, description, and image (when available). A `link` part must be the
|
|
18
|
+
* **only** part in the message — it cannot be combined with text or media parts.
|
|
19
|
+
* To send a URL without a preview card, include it in a `text` part instead.
|
|
20
|
+
*
|
|
21
|
+
* **Limitations:**
|
|
22
|
+
* - A `link` part cannot be combined with other parts in the same message.
|
|
23
|
+
* - Maximum URL length: 2,048 characters.
|
|
13
24
|
*/
|
|
14
25
|
export class Messages extends APIResource {
|
|
15
26
|
/**
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;GAmBG;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/messages.d.mts
CHANGED
|
@@ -4,13 +4,24 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
4
4
|
import { ListMessagesPagination, type ListMessagesPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* Messages are individual
|
|
7
|
+
* Messages are individual communications within a chat thread.
|
|
8
8
|
*
|
|
9
|
-
* Messages can include text, attachments,
|
|
10
|
-
* and reactions. All messages are associated with a
|
|
11
|
-
* phone number you own.
|
|
9
|
+
* Messages can include text, media attachments, rich link previews, special effects
|
|
10
|
+
* (like confetti or fireworks), and reactions. All messages are associated with a
|
|
11
|
+
* specific chat and sent from a phone number you own.
|
|
12
12
|
*
|
|
13
13
|
* Messages support delivery status tracking, read receipts, and editing capabilities.
|
|
14
|
+
*
|
|
15
|
+
* ## Rich Link Previews
|
|
16
|
+
*
|
|
17
|
+
* Send a URL as a `link` part to deliver it with a rich preview card showing the
|
|
18
|
+
* page's title, description, and image (when available). A `link` part must be the
|
|
19
|
+
* **only** part in the message — it cannot be combined with text or media parts.
|
|
20
|
+
* To send a URL without a preview card, include it in a `text` part instead.
|
|
21
|
+
*
|
|
22
|
+
* **Limitations:**
|
|
23
|
+
* - A `link` part cannot be combined with other parts in the same message.
|
|
24
|
+
* - Maximum URL length: 2,048 characters.
|
|
14
25
|
*/
|
|
15
26
|
export declare class Messages extends APIResource {
|
|
16
27
|
/**
|
|
@@ -143,9 +154,9 @@ export interface Message {
|
|
|
143
154
|
*/
|
|
144
155
|
from_handle?: Shared.ChatHandle | null;
|
|
145
156
|
/**
|
|
146
|
-
* Message parts in order (text and
|
|
157
|
+
* Message parts in order (text, media, and link)
|
|
147
158
|
*/
|
|
148
|
-
parts?: Array<Shared.TextPartResponse | Shared.MediaPartResponse> | null;
|
|
159
|
+
parts?: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Message.LinkPartResponse> | null;
|
|
149
160
|
/**
|
|
150
161
|
* Messaging service type
|
|
151
162
|
*/
|
|
@@ -167,6 +178,25 @@ export interface Message {
|
|
|
167
178
|
*/
|
|
168
179
|
service?: Shared.ServiceType | null;
|
|
169
180
|
}
|
|
181
|
+
export declare namespace Message {
|
|
182
|
+
/**
|
|
183
|
+
* A rich link preview part
|
|
184
|
+
*/
|
|
185
|
+
interface LinkPartResponse {
|
|
186
|
+
/**
|
|
187
|
+
* Reactions on this message part
|
|
188
|
+
*/
|
|
189
|
+
reactions: Array<Shared.Reaction> | null;
|
|
190
|
+
/**
|
|
191
|
+
* Indicates this is a rich link preview part
|
|
192
|
+
*/
|
|
193
|
+
type: 'link';
|
|
194
|
+
/**
|
|
195
|
+
* The URL
|
|
196
|
+
*/
|
|
197
|
+
value: string;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
170
200
|
/**
|
|
171
201
|
* iMessage effect applied to a message (screen or bubble effect)
|
|
172
202
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","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
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"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MessagesPagination, type ListMessagesPaginationParams, PagePromise } from "../core/pagination.js";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
6
|
/**
|
|
7
|
-
* Messages are individual
|
|
7
|
+
* Messages are individual communications within a chat thread.
|
|
8
8
|
*
|
|
9
|
-
* Messages can include text, attachments,
|
|
10
|
-
* and reactions. All messages are associated with a
|
|
11
|
-
* phone number you own.
|
|
9
|
+
* Messages can include text, media attachments, rich link previews, special effects
|
|
10
|
+
* (like confetti or fireworks), and reactions. All messages are associated with a
|
|
11
|
+
* specific chat and sent from a phone number you own.
|
|
12
12
|
*
|
|
13
13
|
* Messages support delivery status tracking, read receipts, and editing capabilities.
|
|
14
|
+
*
|
|
15
|
+
* ## Rich Link Previews
|
|
16
|
+
*
|
|
17
|
+
* Send a URL as a `link` part to deliver it with a rich preview card showing the
|
|
18
|
+
* page's title, description, and image (when available). A `link` part must be the
|
|
19
|
+
* **only** part in the message — it cannot be combined with text or media parts.
|
|
20
|
+
* To send a URL without a preview card, include it in a `text` part instead.
|
|
21
|
+
*
|
|
22
|
+
* **Limitations:**
|
|
23
|
+
* - A `link` part cannot be combined with other parts in the same message.
|
|
24
|
+
* - Maximum URL length: 2,048 characters.
|
|
14
25
|
*/
|
|
15
26
|
export declare class Messages extends APIResource {
|
|
16
27
|
/**
|
|
@@ -143,9 +154,9 @@ export interface Message {
|
|
|
143
154
|
*/
|
|
144
155
|
from_handle?: Shared.ChatHandle | null;
|
|
145
156
|
/**
|
|
146
|
-
* Message parts in order (text and
|
|
157
|
+
* Message parts in order (text, media, and link)
|
|
147
158
|
*/
|
|
148
|
-
parts?: Array<Shared.TextPartResponse | Shared.MediaPartResponse> | null;
|
|
159
|
+
parts?: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Message.LinkPartResponse> | null;
|
|
149
160
|
/**
|
|
150
161
|
* Messaging service type
|
|
151
162
|
*/
|
|
@@ -167,6 +178,25 @@ export interface Message {
|
|
|
167
178
|
*/
|
|
168
179
|
service?: Shared.ServiceType | null;
|
|
169
180
|
}
|
|
181
|
+
export declare namespace Message {
|
|
182
|
+
/**
|
|
183
|
+
* A rich link preview part
|
|
184
|
+
*/
|
|
185
|
+
interface LinkPartResponse {
|
|
186
|
+
/**
|
|
187
|
+
* Reactions on this message part
|
|
188
|
+
*/
|
|
189
|
+
reactions: Array<Shared.Reaction> | null;
|
|
190
|
+
/**
|
|
191
|
+
* Indicates this is a rich link preview part
|
|
192
|
+
*/
|
|
193
|
+
type: 'link';
|
|
194
|
+
/**
|
|
195
|
+
* The URL
|
|
196
|
+
*/
|
|
197
|
+
value: string;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
170
200
|
/**
|
|
171
201
|
* iMessage effect applied to a message (screen or bubble effect)
|
|
172
202
|
*/
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;GAmBG;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,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AM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;IAE5B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,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
|
@@ -7,13 +7,24 @@ const pagination_1 = require("../core/pagination.js");
|
|
|
7
7
|
const headers_1 = require("../internal/headers.js");
|
|
8
8
|
const path_1 = require("../internal/utils/path.js");
|
|
9
9
|
/**
|
|
10
|
-
* Messages are individual
|
|
10
|
+
* Messages are individual communications within a chat thread.
|
|
11
11
|
*
|
|
12
|
-
* Messages can include text, attachments,
|
|
13
|
-
* and reactions. All messages are associated with a
|
|
14
|
-
* phone number you own.
|
|
12
|
+
* Messages can include text, media attachments, rich link previews, special effects
|
|
13
|
+
* (like confetti or fireworks), and reactions. All messages are associated with a
|
|
14
|
+
* specific chat and sent from a phone number you own.
|
|
15
15
|
*
|
|
16
16
|
* Messages support delivery status tracking, read receipts, and editing capabilities.
|
|
17
|
+
*
|
|
18
|
+
* ## Rich Link Previews
|
|
19
|
+
*
|
|
20
|
+
* Send a URL as a `link` part to deliver it with a rich preview card showing the
|
|
21
|
+
* page's title, description, and image (when available). A `link` part must be the
|
|
22
|
+
* **only** part in the message — it cannot be combined with text or media parts.
|
|
23
|
+
* To send a URL without a preview card, include it in a `text` part instead.
|
|
24
|
+
*
|
|
25
|
+
* **Limitations:**
|
|
26
|
+
* - A `link` part cannot be combined with other parts in the same message.
|
|
27
|
+
* - Maximum URL length: 2,048 characters.
|
|
17
28
|
*/
|
|
18
29
|
class Messages extends resource_1.APIResource {
|
|
19
30
|
/**
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,EAAE,EAAE;YAC1D,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;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
|
@@ -4,13 +4,24 @@ import { ListMessagesPagination } from "../core/pagination.mjs";
|
|
|
4
4
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
5
|
import { path } from "../internal/utils/path.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* Messages are individual
|
|
7
|
+
* Messages are individual communications within a chat thread.
|
|
8
8
|
*
|
|
9
|
-
* Messages can include text, attachments,
|
|
10
|
-
* and reactions. All messages are associated with a
|
|
11
|
-
* phone number you own.
|
|
9
|
+
* Messages can include text, media attachments, rich link previews, special effects
|
|
10
|
+
* (like confetti or fireworks), and reactions. All messages are associated with a
|
|
11
|
+
* specific chat and sent from a phone number you own.
|
|
12
12
|
*
|
|
13
13
|
* Messages support delivery status tracking, read receipts, and editing capabilities.
|
|
14
|
+
*
|
|
15
|
+
* ## Rich Link Previews
|
|
16
|
+
*
|
|
17
|
+
* Send a URL as a `link` part to deliver it with a rich preview card showing the
|
|
18
|
+
* page's title, description, and image (when available). A `link` part must be the
|
|
19
|
+
* **only** part in the message — it cannot be combined with text or media parts.
|
|
20
|
+
* To send a URL without a preview card, include it in a `text` part instead.
|
|
21
|
+
*
|
|
22
|
+
* **Limitations:**
|
|
23
|
+
* - A `link` part cannot be combined with other parts in the same message.
|
|
24
|
+
* - Maximum URL length: 2,048 characters.
|
|
14
25
|
*/
|
|
15
26
|
export class Messages extends APIResource {
|
|
16
27
|
/**
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE;YAC1D,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;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,WAAW,CACT,SAAiB,EACjB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,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,IAAI,CAAA,gBAAgB,SAAS,SAAS,EAAE,CAAA,sBAA+B,CAAA,EAAE;YACtG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -97,6 +97,16 @@ export declare class WebhookSubscriptions extends APIResource {
|
|
|
97
97
|
* creation, a signing secret is generated for verifying webhook authenticity.
|
|
98
98
|
* **Store this secret securely — it cannot be retrieved later.**
|
|
99
99
|
*
|
|
100
|
+
* **Phone Number Filtering:**
|
|
101
|
+
*
|
|
102
|
+
* - Optionally specify `phone_numbers` to only receive events for specific lines
|
|
103
|
+
* - If omitted, events from all phone numbers are delivered (default behavior)
|
|
104
|
+
* - Use multiple subscriptions with different `phone_numbers` to route different
|
|
105
|
+
* lines to different endpoints
|
|
106
|
+
* - Each `target_url` can only be used once per account. To route different lines
|
|
107
|
+
* to different destinations, use a unique URL per subscription (e.g., append a
|
|
108
|
+
* query parameter: `https://example.com/webhook?line=1`)
|
|
109
|
+
*
|
|
100
110
|
* **Webhook Delivery:**
|
|
101
111
|
*
|
|
102
112
|
* - Events are sent via HTTP POST to the target URL
|
|
@@ -201,6 +211,11 @@ export interface WebhookSubscription {
|
|
|
201
211
|
* When the subscription was last updated
|
|
202
212
|
*/
|
|
203
213
|
updated_at: string;
|
|
214
|
+
/**
|
|
215
|
+
* Phone numbers this subscription filters for. If null or empty, events from all
|
|
216
|
+
* phone numbers are delivered.
|
|
217
|
+
*/
|
|
218
|
+
phone_numbers?: Array<string> | null;
|
|
204
219
|
}
|
|
205
220
|
/**
|
|
206
221
|
* Response returned when creating a webhook subscription. Includes the signing
|
|
@@ -236,6 +251,11 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
236
251
|
* When the subscription was last updated
|
|
237
252
|
*/
|
|
238
253
|
updated_at: string;
|
|
254
|
+
/**
|
|
255
|
+
* Phone numbers this subscription filters for. If null or empty, events from all
|
|
256
|
+
* phone numbers are delivered.
|
|
257
|
+
*/
|
|
258
|
+
phone_numbers?: Array<string> | null;
|
|
239
259
|
}
|
|
240
260
|
export interface WebhookSubscriptionListResponse {
|
|
241
261
|
/**
|
|
@@ -252,12 +272,26 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
252
272
|
* URL where webhook events will be sent. Must be HTTPS.
|
|
253
273
|
*/
|
|
254
274
|
target_url: string;
|
|
275
|
+
/**
|
|
276
|
+
* Optional list of phone numbers to filter events for. Only events originating
|
|
277
|
+
* from these phone numbers will be delivered to this subscription. If omitted or
|
|
278
|
+
* empty, events from all phone numbers are delivered. Phone numbers must be in
|
|
279
|
+
* E.164 format.
|
|
280
|
+
*/
|
|
281
|
+
phone_numbers?: Array<string>;
|
|
255
282
|
}
|
|
256
283
|
export interface WebhookSubscriptionUpdateParams {
|
|
257
284
|
/**
|
|
258
285
|
* Activate or deactivate the subscription
|
|
259
286
|
*/
|
|
260
287
|
is_active?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Updated list of phone numbers to filter events for. Set to a non-empty array to
|
|
290
|
+
* filter events to specific phone numbers. Set to an empty array or null to remove
|
|
291
|
+
* the filter and receive events from all phone numbers. Phone numbers must be in
|
|
292
|
+
* E.164 format.
|
|
293
|
+
*/
|
|
294
|
+
phone_numbers?: Array<string> | null;
|
|
261
295
|
/**
|
|
262
296
|
* Updated list of event types to subscribe to
|
|
263
297
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.d.mts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD
|
|
1
|
+
{"version":3,"file":"webhook-subscriptions.d.mts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;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B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAE5D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAE7D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -97,6 +97,16 @@ export declare class WebhookSubscriptions extends APIResource {
|
|
|
97
97
|
* creation, a signing secret is generated for verifying webhook authenticity.
|
|
98
98
|
* **Store this secret securely — it cannot be retrieved later.**
|
|
99
99
|
*
|
|
100
|
+
* **Phone Number Filtering:**
|
|
101
|
+
*
|
|
102
|
+
* - Optionally specify `phone_numbers` to only receive events for specific lines
|
|
103
|
+
* - If omitted, events from all phone numbers are delivered (default behavior)
|
|
104
|
+
* - Use multiple subscriptions with different `phone_numbers` to route different
|
|
105
|
+
* lines to different endpoints
|
|
106
|
+
* - Each `target_url` can only be used once per account. To route different lines
|
|
107
|
+
* to different destinations, use a unique URL per subscription (e.g., append a
|
|
108
|
+
* query parameter: `https://example.com/webhook?line=1`)
|
|
109
|
+
*
|
|
100
110
|
* **Webhook Delivery:**
|
|
101
111
|
*
|
|
102
112
|
* - Events are sent via HTTP POST to the target URL
|
|
@@ -201,6 +211,11 @@ export interface WebhookSubscription {
|
|
|
201
211
|
* When the subscription was last updated
|
|
202
212
|
*/
|
|
203
213
|
updated_at: string;
|
|
214
|
+
/**
|
|
215
|
+
* Phone numbers this subscription filters for. If null or empty, events from all
|
|
216
|
+
* phone numbers are delivered.
|
|
217
|
+
*/
|
|
218
|
+
phone_numbers?: Array<string> | null;
|
|
204
219
|
}
|
|
205
220
|
/**
|
|
206
221
|
* Response returned when creating a webhook subscription. Includes the signing
|
|
@@ -236,6 +251,11 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
236
251
|
* When the subscription was last updated
|
|
237
252
|
*/
|
|
238
253
|
updated_at: string;
|
|
254
|
+
/**
|
|
255
|
+
* Phone numbers this subscription filters for. If null or empty, events from all
|
|
256
|
+
* phone numbers are delivered.
|
|
257
|
+
*/
|
|
258
|
+
phone_numbers?: Array<string> | null;
|
|
239
259
|
}
|
|
240
260
|
export interface WebhookSubscriptionListResponse {
|
|
241
261
|
/**
|
|
@@ -252,12 +272,26 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
252
272
|
* URL where webhook events will be sent. Must be HTTPS.
|
|
253
273
|
*/
|
|
254
274
|
target_url: string;
|
|
275
|
+
/**
|
|
276
|
+
* Optional list of phone numbers to filter events for. Only events originating
|
|
277
|
+
* from these phone numbers will be delivered to this subscription. If omitted or
|
|
278
|
+
* empty, events from all phone numbers are delivered. Phone numbers must be in
|
|
279
|
+
* E.164 format.
|
|
280
|
+
*/
|
|
281
|
+
phone_numbers?: Array<string>;
|
|
255
282
|
}
|
|
256
283
|
export interface WebhookSubscriptionUpdateParams {
|
|
257
284
|
/**
|
|
258
285
|
* Activate or deactivate the subscription
|
|
259
286
|
*/
|
|
260
287
|
is_active?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Updated list of phone numbers to filter events for. Set to a non-empty array to
|
|
290
|
+
* filter events to specific phone numbers. Set to an empty array or null to remove
|
|
291
|
+
* the filter and receive events from all phone numbers. Phone numbers must be in
|
|
292
|
+
* E.164 format.
|
|
293
|
+
*/
|
|
294
|
+
phone_numbers?: Array<string> | null;
|
|
261
295
|
/**
|
|
262
296
|
* Updated list of event types to subscribe to
|
|
263
297
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.d.ts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD
|
|
1
|
+
{"version":3,"file":"webhook-subscriptions.d.ts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH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