@linqapp/sdk 0.32.0 → 0.33.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 +26 -0
- package/client.d.mts +41 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -5
- package/client.d.ts.map +1 -1
- package/client.js +38 -2
- package/client.js.map +1 -1
- package/client.mjs +38 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/available-number.d.mts +13 -1
- package/resources/available-number.d.mts.map +1 -1
- package/resources/available-number.d.ts +13 -1
- package/resources/available-number.d.ts.map +1 -1
- package/resources/available-number.js +2 -1
- package/resources/available-number.js.map +1 -1
- package/resources/available-number.mjs +2 -1
- package/resources/available-number.mjs.map +1 -1
- package/resources/chats/chats.d.mts +125 -64
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +125 -64
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js +59 -59
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +59 -59
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/index.d.mts +2 -2
- package/resources/chats/index.d.mts.map +1 -1
- package/resources/chats/index.d.ts +2 -2
- package/resources/chats/index.d.ts.map +1 -1
- package/resources/chats/location.d.mts +25 -25
- package/resources/chats/location.d.mts.map +1 -1
- package/resources/chats/location.d.ts +25 -25
- package/resources/chats/location.d.ts.map +1 -1
- package/resources/chats/location.js +27 -27
- package/resources/chats/location.js.map +1 -1
- package/resources/chats/location.mjs +27 -27
- package/resources/chats/location.mjs.map +1 -1
- package/resources/chats/messages.d.mts +17 -17
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +17 -17
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/chats/messages.js +16 -16
- package/resources/chats/messages.js.map +1 -1
- package/resources/chats/messages.mjs +16 -16
- package/resources/chats/messages.mjs.map +1 -1
- package/resources/contact-card.d.mts +29 -28
- package/resources/contact-card.d.mts.map +1 -1
- package/resources/contact-card.d.ts +29 -28
- package/resources/contact-card.d.ts.map +1 -1
- package/resources/contact-card.js +23 -22
- package/resources/contact-card.js.map +1 -1
- package/resources/contact-card.mjs +23 -22
- package/resources/contact-card.mjs.map +1 -1
- package/resources/experiences.d.mts +91 -0
- package/resources/experiences.d.mts.map +1 -0
- package/resources/experiences.d.ts +91 -0
- package/resources/experiences.d.ts.map +1 -0
- package/resources/experiences.js +29 -0
- package/resources/experiences.js.map +1 -0
- package/resources/experiences.mjs +25 -0
- package/resources/experiences.mjs.map +1 -0
- package/resources/index.d.mts +7 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +71 -35
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +71 -35
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +41 -30
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +41 -30
- package/resources/messages.mjs.map +1 -1
- package/resources/payment-handles.d.mts +87 -0
- package/resources/payment-handles.d.mts.map +1 -0
- package/resources/payment-handles.d.ts +87 -0
- package/resources/payment-handles.d.ts.map +1 -0
- package/resources/payment-handles.js +76 -0
- package/resources/payment-handles.js.map +1 -0
- package/resources/payment-handles.mjs +72 -0
- package/resources/payment-handles.mjs.map +1 -0
- package/resources/payment-providers.d.mts +58 -0
- package/resources/payment-providers.d.mts.map +1 -0
- package/resources/payment-providers.d.ts +58 -0
- package/resources/payment-providers.d.ts.map +1 -0
- package/resources/payment-providers.js +45 -0
- package/resources/payment-providers.js.map +1 -0
- package/resources/payment-providers.mjs +41 -0
- package/resources/payment-providers.mjs.map +1 -0
- package/resources/payment-requests.d.mts +2 -2
- package/resources/payment-requests.d.ts +2 -2
- package/resources/payment-requests.js +2 -2
- package/resources/payment-requests.mjs +2 -2
- package/resources/payments.d.mts +116 -0
- package/resources/payments.d.mts.map +1 -0
- package/resources/payments.d.ts +116 -0
- package/resources/payments.d.ts.map +1 -0
- package/resources/payments.js +70 -0
- package/resources/payments.js.map +1 -0
- package/resources/payments.mjs +66 -0
- package/resources/payments.mjs.map +1 -0
- package/resources/phone-numbers.d.mts +11 -11
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +11 -11
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +13 -13
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +13 -13
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/webhook-subscriptions.d.mts +11 -11
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +11 -11
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +13 -13
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +13 -13
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +59 -0
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +59 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +77 -6
- package/src/resources/available-number.ts +14 -1
- package/src/resources/chats/chats.ts +142 -79
- package/src/resources/chats/index.ts +2 -2
- package/src/resources/chats/location.ts +28 -28
- package/src/resources/chats/messages.ts +28 -28
- package/src/resources/contact-card.ts +36 -35
- package/src/resources/experiences.ts +118 -0
- package/src/resources/index.ts +22 -4
- package/src/resources/messages.ts +85 -47
- package/src/resources/payment-handles.ts +114 -0
- package/src/resources/payment-providers.ts +81 -0
- package/src/resources/payment-requests.ts +2 -2
- package/src/resources/payments.ts +163 -0
- package/src/resources/phone-numbers.ts +14 -14
- package/src/resources/webhook-subscriptions.ts +14 -14
- package/src/resources/webhooks.ts +61 -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
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
6
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
7
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
8
|
+
*/
|
|
9
|
+
export class Payments extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Advances the pay flow for a connected customer handle and returns a `status`
|
|
12
|
+
* describing where it is (`needs_connection`, `awaiting_user_action`, `ready`,
|
|
13
|
+
* ...). A payment `id` appears once a card is minted. Idempotent on the
|
|
14
|
+
* `Idempotency-Key` header.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const payment = await client.payments.create({
|
|
19
|
+
* amount_cents: 2500,
|
|
20
|
+
* currency: 'usd',
|
|
21
|
+
* handle: '+14155550123',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(body, options) {
|
|
26
|
+
return this._client.post('/v3/payments', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get a payment
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const payment = await client.payments.retrieve('paymentId');
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(paymentID, options) {
|
|
37
|
+
return this._client.get(path `/v3/payments/${paymentID}`, options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Closes the virtual card and cancels the payment.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const payment = await client.payments.cancel('paymentId');
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
cancel(paymentID, options) {
|
|
48
|
+
return this._client.post(path `/v3/payments/${paymentID}/cancel`, options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns a short-lived handoff for a `ready` payment. Fetch the card credentials
|
|
52
|
+
* **directly from the provider** with the returned `user_token` at `fetch_url` —
|
|
53
|
+
* the card number never passes through Linq. Do not persist PAN/CVC.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const response = await client.payments.credentials(
|
|
58
|
+
* 'paymentId',
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
credentials(paymentID, options) {
|
|
63
|
+
return this._client.get(path `/v3/payments/${paymentID}/credentials`, options);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=payments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.mjs","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;GAIG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;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;;;;;;;OAOG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,SAAiB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -11,17 +11,6 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
11
11
|
* in the `from` field.
|
|
12
12
|
*/
|
|
13
13
|
export declare class PhoneNumbers extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
16
|
-
* endpoint to discover which phone numbers are available for use as the `from`
|
|
17
|
-
* field when creating a chat, listing chats, or sending a voice memo.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const phoneNumbers = await client.phoneNumbers.list();
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
list(options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
|
|
25
14
|
/**
|
|
26
15
|
* Updates the forwarding number for a phone number. The forwarding number is where
|
|
27
16
|
* inbound calls will be forwarded to.
|
|
@@ -37,6 +26,17 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
37
26
|
* ```
|
|
38
27
|
*/
|
|
39
28
|
update(phoneNumberID: string, body: PhoneNumberUpdateParams, options?: RequestOptions): APIPromise<PhoneNumberUpdateResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
31
|
+
* endpoint to discover which phone numbers are available for use as the `from`
|
|
32
|
+
* field when creating a chat, listing chats, or sending a voice memo.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const phoneNumbers = await client.phoneNumbers.list();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
list(options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
|
|
40
40
|
}
|
|
41
41
|
export interface PhoneNumberUpdateResponse {
|
|
42
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpE;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;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;;;;;;;;;;WAUG;QACH,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC;QAEnC;;;WAGG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACnC;IAED,UAAiB,WAAW,CAAC;QAC3B;;;;;;;;;;WAUG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;;;;;;;;;;;eAaG;YACH,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;SAC5C;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -11,17 +11,6 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
11
11
|
* in the `from` field.
|
|
12
12
|
*/
|
|
13
13
|
export declare class PhoneNumbers extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
16
|
-
* endpoint to discover which phone numbers are available for use as the `from`
|
|
17
|
-
* field when creating a chat, listing chats, or sending a voice memo.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const phoneNumbers = await client.phoneNumbers.list();
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
list(options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
|
|
25
14
|
/**
|
|
26
15
|
* Updates the forwarding number for a phone number. The forwarding number is where
|
|
27
16
|
* inbound calls will be forwarded to.
|
|
@@ -37,6 +26,17 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
37
26
|
* ```
|
|
38
27
|
*/
|
|
39
28
|
update(phoneNumberID: string, body: PhoneNumberUpdateParams, options?: RequestOptions): APIPromise<PhoneNumberUpdateResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
31
|
+
* endpoint to discover which phone numbers are available for use as the `from`
|
|
32
|
+
* field when creating a chat, listing chats, or sending a voice memo.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const phoneNumbers = await client.phoneNumbers.list();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
list(options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
|
|
40
40
|
}
|
|
41
41
|
export interface PhoneNumberUpdateResponse {
|
|
42
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,uBAAuB,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|
|
|
14
14
|
* in the `from` field.
|
|
15
15
|
*/
|
|
16
16
|
class PhoneNumbers extends resource_1.APIResource {
|
|
17
|
-
/**
|
|
18
|
-
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
19
|
-
* endpoint to discover which phone numbers are available for use as the `from`
|
|
20
|
-
* field when creating a chat, listing chats, or sending a voice memo.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const phoneNumbers = await client.phoneNumbers.list();
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
list(options) {
|
|
28
|
-
return this._client.get('/v3/phone_numbers', options);
|
|
29
|
-
}
|
|
30
17
|
/**
|
|
31
18
|
* Updates the forwarding number for a phone number. The forwarding number is where
|
|
32
19
|
* inbound calls will be forwarded to.
|
|
@@ -44,6 +31,19 @@ class PhoneNumbers extends resource_1.APIResource {
|
|
|
44
31
|
update(phoneNumberID, body, options) {
|
|
45
32
|
return this._client.put((0, path_1.path) `/v3/phone_numbers/${phoneNumberID}`, { body, ...options });
|
|
46
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
36
|
+
* endpoint to discover which phone numbers are available for use as the `from`
|
|
37
|
+
* field when creating a chat, listing chats, or sending a voice memo.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const phoneNumbers = await client.phoneNumbers.list();
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
list(options) {
|
|
45
|
+
return this._client.get('/v3/phone_numbers', options);
|
|
46
|
+
}
|
|
47
47
|
}
|
|
48
48
|
exports.PhoneNumbers = PhoneNumbers;
|
|
49
49
|
//# sourceMappingURL=phone-numbers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF;AApCD,oCAoCC"}
|
|
@@ -11,19 +11,6 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
11
11
|
* in the `from` field.
|
|
12
12
|
*/
|
|
13
13
|
export class PhoneNumbers extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
16
|
-
* endpoint to discover which phone numbers are available for use as the `from`
|
|
17
|
-
* field when creating a chat, listing chats, or sending a voice memo.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const phoneNumbers = await client.phoneNumbers.list();
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
list(options) {
|
|
25
|
-
return this._client.get('/v3/phone_numbers', options);
|
|
26
|
-
}
|
|
27
14
|
/**
|
|
28
15
|
* Updates the forwarding number for a phone number. The forwarding number is where
|
|
29
16
|
* inbound calls will be forwarded to.
|
|
@@ -41,5 +28,18 @@ export class PhoneNumbers extends APIResource {
|
|
|
41
28
|
update(phoneNumberID, body, options) {
|
|
42
29
|
return this._client.put(path `/v3/phone_numbers/${phoneNumberID}`, { body, ...options });
|
|
43
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
33
|
+
* endpoint to discover which phone numbers are available for use as the `from`
|
|
34
|
+
* field when creating a chat, listing chats, or sending a voice memo.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const phoneNumbers = await client.phoneNumbers.list();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
list(options) {
|
|
42
|
+
return this._client.get('/v3/phone_numbers', options);
|
|
43
|
+
}
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=phone-numbers.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.mjs","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;;;GAQG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"phone-numbers.mjs","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;;;GAQG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -176,17 +176,6 @@ export declare class WebhookSubscriptions extends APIResource {
|
|
|
176
176
|
* ```
|
|
177
177
|
*/
|
|
178
178
|
create(body: WebhookSubscriptionCreateParams, options?: RequestOptions): APIPromise<WebhookSubscriptionCreateResponse>;
|
|
179
|
-
/**
|
|
180
|
-
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
181
|
-
* of active and inactive subscriptions with their configuration and status.
|
|
182
|
-
*
|
|
183
|
-
* @example
|
|
184
|
-
* ```ts
|
|
185
|
-
* const webhookSubscriptions =
|
|
186
|
-
* await client.webhookSubscriptions.list();
|
|
187
|
-
* ```
|
|
188
|
-
*/
|
|
189
|
-
list(options?: RequestOptions): APIPromise<WebhookSubscriptionListResponse>;
|
|
190
179
|
/**
|
|
191
180
|
* Retrieve details for a specific webhook subscription including its target URL,
|
|
192
181
|
* subscribed events, and current status.
|
|
@@ -219,6 +208,17 @@ export declare class WebhookSubscriptions extends APIResource {
|
|
|
219
208
|
* ```
|
|
220
209
|
*/
|
|
221
210
|
update(subscriptionID: string, body: WebhookSubscriptionUpdateParams, options?: RequestOptions): APIPromise<WebhookSubscription>;
|
|
211
|
+
/**
|
|
212
|
+
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
213
|
+
* of active and inactive subscriptions with their configuration and status.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```ts
|
|
217
|
+
* const webhookSubscriptions =
|
|
218
|
+
* await client.webhookSubscriptions.list();
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
list(options?: RequestOptions): APIPromise<WebhookSubscriptionListResponse>;
|
|
222
222
|
/**
|
|
223
223
|
* Delete a webhook subscription.
|
|
224
224
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.d.mts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD
|
|
1
|
+
{"version":3,"file":"webhook-subscriptions.d.mts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,i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AAU,EAAE,MAAM,CAAC;IAEnB;;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"}
|
|
@@ -176,17 +176,6 @@ export declare class WebhookSubscriptions extends APIResource {
|
|
|
176
176
|
* ```
|
|
177
177
|
*/
|
|
178
178
|
create(body: WebhookSubscriptionCreateParams, options?: RequestOptions): APIPromise<WebhookSubscriptionCreateResponse>;
|
|
179
|
-
/**
|
|
180
|
-
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
181
|
-
* of active and inactive subscriptions with their configuration and status.
|
|
182
|
-
*
|
|
183
|
-
* @example
|
|
184
|
-
* ```ts
|
|
185
|
-
* const webhookSubscriptions =
|
|
186
|
-
* await client.webhookSubscriptions.list();
|
|
187
|
-
* ```
|
|
188
|
-
*/
|
|
189
|
-
list(options?: RequestOptions): APIPromise<WebhookSubscriptionListResponse>;
|
|
190
179
|
/**
|
|
191
180
|
* Retrieve details for a specific webhook subscription including its target URL,
|
|
192
181
|
* subscribed events, and current status.
|
|
@@ -219,6 +208,17 @@ export declare class WebhookSubscriptions extends APIResource {
|
|
|
219
208
|
* ```
|
|
220
209
|
*/
|
|
221
210
|
update(subscriptionID: string, body: WebhookSubscriptionUpdateParams, options?: RequestOptions): APIPromise<WebhookSubscription>;
|
|
211
|
+
/**
|
|
212
|
+
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
213
|
+
* of active and inactive subscriptions with their configuration and status.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```ts
|
|
217
|
+
* const webhookSubscriptions =
|
|
218
|
+
* await client.webhookSubscriptions.list();
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
list(options?: RequestOptions): APIPromise<WebhookSubscriptionListResponse>;
|
|
222
222
|
/**
|
|
223
223
|
* Delete a webhook subscription.
|
|
224
224
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.d.ts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,gBAAgB,4BAAyB;AACrD,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AEG;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"}
|
|
@@ -181,19 +181,6 @@ class WebhookSubscriptions extends resource_1.APIResource {
|
|
|
181
181
|
create(body, options) {
|
|
182
182
|
return this._client.post('/v3/webhook-subscriptions', { body, ...options });
|
|
183
183
|
}
|
|
184
|
-
/**
|
|
185
|
-
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
186
|
-
* of active and inactive subscriptions with their configuration and status.
|
|
187
|
-
*
|
|
188
|
-
* @example
|
|
189
|
-
* ```ts
|
|
190
|
-
* const webhookSubscriptions =
|
|
191
|
-
* await client.webhookSubscriptions.list();
|
|
192
|
-
* ```
|
|
193
|
-
*/
|
|
194
|
-
list(options) {
|
|
195
|
-
return this._client.get('/v3/webhook-subscriptions', options);
|
|
196
|
-
}
|
|
197
184
|
/**
|
|
198
185
|
* Retrieve details for a specific webhook subscription including its target URL,
|
|
199
186
|
* subscribed events, and current status.
|
|
@@ -230,6 +217,19 @@ class WebhookSubscriptions extends resource_1.APIResource {
|
|
|
230
217
|
update(subscriptionID, body, options) {
|
|
231
218
|
return this._client.put((0, path_1.path) `/v3/webhook-subscriptions/${subscriptionID}`, { body, ...options });
|
|
232
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
222
|
+
* of active and inactive subscriptions with their configuration and status.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```ts
|
|
226
|
+
* const webhookSubscriptions =
|
|
227
|
+
* await client.webhookSubscriptions.list();
|
|
228
|
+
* ```
|
|
229
|
+
*/
|
|
230
|
+
list(options) {
|
|
231
|
+
return this._client.get('/v3/webhook-subscriptions', options);
|
|
232
|
+
}
|
|
233
233
|
/**
|
|
234
234
|
* Delete a webhook subscription.
|
|
235
235
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.js","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CACJ,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"webhook-subscriptions.js","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;A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AAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA5HD,oDA4HC"}
|
|
@@ -178,19 +178,6 @@ export class WebhookSubscriptions extends APIResource {
|
|
|
178
178
|
create(body, options) {
|
|
179
179
|
return this._client.post('/v3/webhook-subscriptions', { body, ...options });
|
|
180
180
|
}
|
|
181
|
-
/**
|
|
182
|
-
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
183
|
-
* of active and inactive subscriptions with their configuration and status.
|
|
184
|
-
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```ts
|
|
187
|
-
* const webhookSubscriptions =
|
|
188
|
-
* await client.webhookSubscriptions.list();
|
|
189
|
-
* ```
|
|
190
|
-
*/
|
|
191
|
-
list(options) {
|
|
192
|
-
return this._client.get('/v3/webhook-subscriptions', options);
|
|
193
|
-
}
|
|
194
181
|
/**
|
|
195
182
|
* Retrieve details for a specific webhook subscription including its target URL,
|
|
196
183
|
* subscribed events, and current status.
|
|
@@ -227,6 +214,19 @@ export class WebhookSubscriptions extends APIResource {
|
|
|
227
214
|
update(subscriptionID, body, options) {
|
|
228
215
|
return this._client.put(path `/v3/webhook-subscriptions/${subscriptionID}`, { body, ...options });
|
|
229
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
219
|
+
* of active and inactive subscriptions with their configuration and status.
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* ```ts
|
|
223
|
+
* const webhookSubscriptions =
|
|
224
|
+
* await client.webhookSubscriptions.list();
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
list(options) {
|
|
228
|
+
return this._client.get('/v3/webhook-subscriptions', options);
|
|
229
|
+
}
|
|
230
230
|
/**
|
|
231
231
|
* Delete a webhook subscription.
|
|
232
232
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.mjs","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CACJ,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"webhook-subscriptions.mjs","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CACJ,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,6BAA6B,cAAc,EAAE,EAAE;YAC5E,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"}
|
package/resources/webhooks.d.mts
CHANGED
|
@@ -73,6 +73,16 @@ export interface MessageEventV2 {
|
|
|
73
73
|
* When the message was read. Null if not yet read.
|
|
74
74
|
*/
|
|
75
75
|
read_at?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Present only when this message was recovered by reconciliation rather than
|
|
78
|
+
* delivered live, and set to the time of that recovery. The field is omitted
|
|
79
|
+
* entirely for normally-delivered messages, which is the overwhelming majority.
|
|
80
|
+
* When present, expect `sent_at` to be substantially earlier than delivery of this
|
|
81
|
+
* event: the message is genuine but is arriving late and out of real-time order,
|
|
82
|
+
* so treat it as history rather than as a live inbound (for example, suppress
|
|
83
|
+
* auto-replies).
|
|
84
|
+
*/
|
|
85
|
+
reconciled_at?: string;
|
|
76
86
|
/**
|
|
77
87
|
* Reference to the message this is replying to (for threaded replies)
|
|
78
88
|
*/
|
|
@@ -137,6 +147,17 @@ export declare namespace MessageEventV2 {
|
|
|
137
147
|
* Current health bucket for the chat. See the
|
|
138
148
|
* [Chat Health guide](/guides/chats/chat-health) for what each value means and how
|
|
139
149
|
* to react. `doc_url` deep-links to the relevant section.
|
|
150
|
+
*
|
|
151
|
+
* `OPTED_OUT` is terminal — the recipient sent `STOP`, `UNSUBSCRIBE`, `OPTOUT`,
|
|
152
|
+
* `CANCEL`, `END`, or `QUIT`, and you should send nothing further on this chat.
|
|
153
|
+
* The keyword must be the whole trimmed message, never part of a longer one:
|
|
154
|
+
* `STOP` counts, `please stop` does not. Most keywords must match exactly,
|
|
155
|
+
* including case. `OPT OUT` is the exception — it matches in any casing, with or
|
|
156
|
+
* without the space or a hyphen, so `opt out`, `Opt-Out` and `optout` all count.
|
|
157
|
+
* It clears if they later send `START`, `OPTIN`, or `UNSTOP`, or if they keep
|
|
158
|
+
* replying on the chat — sustained two-way conversation is treated as a sign the
|
|
159
|
+
* stop keyword was a false positive. Suppressing sends to opted-out recipients is
|
|
160
|
+
* your responsibility — Linq surfaces the status but does not block the send.
|
|
140
161
|
*/
|
|
141
162
|
status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL' | 'OPTED_OUT';
|
|
142
163
|
/**
|
|
@@ -277,6 +298,16 @@ export interface MessagePayload {
|
|
|
277
298
|
* When the message was read
|
|
278
299
|
*/
|
|
279
300
|
read_at?: string | null;
|
|
301
|
+
/**
|
|
302
|
+
* Present only when this message was recovered by reconciliation rather than
|
|
303
|
+
* delivered live, and set to the time of that recovery. The field is omitted
|
|
304
|
+
* entirely for normally-delivered messages, which is the overwhelming majority.
|
|
305
|
+
* When present, expect `sent_at` to be substantially earlier than delivery of this
|
|
306
|
+
* event: the message is genuine but is arriving late and out of real-time order,
|
|
307
|
+
* so treat it as history rather than as a live inbound (for example, suppress
|
|
308
|
+
* auto-replies).
|
|
309
|
+
*/
|
|
310
|
+
reconciled_at?: string;
|
|
280
311
|
/**
|
|
281
312
|
* Reference to the message this is replying to
|
|
282
313
|
*/
|
|
@@ -786,6 +817,9 @@ export interface MessageFailedWebhookEvent {
|
|
|
786
817
|
* Error details for message.failed webhook events. See
|
|
787
818
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
788
819
|
* code reference.
|
|
820
|
+
*
|
|
821
|
+
* In rare cases the message can still be delivered after this event fires — a
|
|
822
|
+
* `message.delivered` webhook for the same message ID may follow.
|
|
789
823
|
*/
|
|
790
824
|
data: MessageFailedWebhookEvent.Data;
|
|
791
825
|
/**
|
|
@@ -820,6 +854,9 @@ export declare namespace MessageFailedWebhookEvent {
|
|
|
820
854
|
* Error details for message.failed webhook events. See
|
|
821
855
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
822
856
|
* code reference.
|
|
857
|
+
*
|
|
858
|
+
* In rare cases the message can still be delivered after this event fires — a
|
|
859
|
+
* `message.delivered` webhook for the same message ID may follow.
|
|
823
860
|
*/
|
|
824
861
|
interface Data {
|
|
825
862
|
/**
|
|
@@ -978,6 +1015,17 @@ export declare namespace MessageEditedWebhookEvent {
|
|
|
978
1015
|
* Current health bucket for the chat. See the
|
|
979
1016
|
* [Chat Health guide](/guides/chats/chat-health) for what each value means and how
|
|
980
1017
|
* to react. `doc_url` deep-links to the relevant section.
|
|
1018
|
+
*
|
|
1019
|
+
* `OPTED_OUT` is terminal — the recipient sent `STOP`, `UNSUBSCRIBE`, `OPTOUT`,
|
|
1020
|
+
* `CANCEL`, `END`, or `QUIT`, and you should send nothing further on this chat.
|
|
1021
|
+
* The keyword must be the whole trimmed message, never part of a longer one:
|
|
1022
|
+
* `STOP` counts, `please stop` does not. Most keywords must match exactly,
|
|
1023
|
+
* including case. `OPT OUT` is the exception — it matches in any casing, with or
|
|
1024
|
+
* without the space or a hyphen, so `opt out`, `Opt-Out` and `optout` all count.
|
|
1025
|
+
* It clears if they later send `START`, `OPTIN`, or `UNSTOP`, or if they keep
|
|
1026
|
+
* replying on the chat — sustained two-way conversation is treated as a sign the
|
|
1027
|
+
* stop keyword was a false positive. Suppressing sends to opted-out recipients is
|
|
1028
|
+
* your responsibility — Linq surfaces the status but does not block the send.
|
|
981
1029
|
*/
|
|
982
1030
|
status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL' | 'OPTED_OUT';
|
|
983
1031
|
/**
|
|
@@ -1339,6 +1387,17 @@ export declare namespace ChatCreatedWebhookEvent {
|
|
|
1339
1387
|
* Current health bucket for the chat. See the
|
|
1340
1388
|
* [Chat Health guide](/guides/chats/chat-health) for what each value means and how
|
|
1341
1389
|
* to react. `doc_url` deep-links to the relevant section.
|
|
1390
|
+
*
|
|
1391
|
+
* `OPTED_OUT` is terminal — the recipient sent `STOP`, `UNSUBSCRIBE`, `OPTOUT`,
|
|
1392
|
+
* `CANCEL`, `END`, or `QUIT`, and you should send nothing further on this chat.
|
|
1393
|
+
* The keyword must be the whole trimmed message, never part of a longer one:
|
|
1394
|
+
* `STOP` counts, `please stop` does not. Most keywords must match exactly,
|
|
1395
|
+
* including case. `OPT OUT` is the exception — it matches in any casing, with or
|
|
1396
|
+
* without the space or a hyphen, so `opt out`, `Opt-Out` and `optout` all count.
|
|
1397
|
+
* It clears if they later send `START`, `OPTIN`, or `UNSTOP`, or if they keep
|
|
1398
|
+
* replying on the chat — sustained two-way conversation is treated as a sign the
|
|
1399
|
+
* stop keyword was a false positive. Suppressing sends to opted-out recipients is
|
|
1400
|
+
* your responsibility — Linq surfaces the status but does not block the send.
|
|
1342
1401
|
*/
|
|
1343
1402
|
status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL' | 'OPTED_OUT';
|
|
1344
1403
|
/**
|