@linqapp/sdk 0.32.1 → 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 +19 -0
- package/README.md +82 -112
- 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
|
@@ -10,28 +10,16 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
10
10
|
* **Sharing behavior:** Sharing may not take effect in every chat due to limitations outside our control. We recommend calling the share endpoint once per day, after the first outbound activity.
|
|
11
11
|
*/
|
|
12
12
|
export class ContactCard extends APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Returns the contact card for a specific phone number, or all contact cards for
|
|
15
|
-
* the authenticated partner if no `phone_number` is provided.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const contactCard = await client.contactCard.retrieve();
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
retrieve(query = {}, options) {
|
|
23
|
-
return this._client.get('/v3/contact_card', { query, ...options });
|
|
24
|
-
}
|
|
25
13
|
/**
|
|
26
14
|
* Creates a contact card for a phone number. This endpoint is intended for
|
|
27
15
|
* initial, one-time setup only.
|
|
28
16
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* `is_active` is `false`.
|
|
17
|
+
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
18
|
+
* again.
|
|
32
19
|
*
|
|
33
|
-
* **Note:**
|
|
34
|
-
* `PATCH /v3/contact_card`
|
|
20
|
+
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
21
|
+
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
22
|
+
* change it.
|
|
35
23
|
*
|
|
36
24
|
* @example
|
|
37
25
|
* ```ts
|
|
@@ -48,13 +36,26 @@ export class ContactCard extends APIResource {
|
|
|
48
36
|
return this._client.post('/v3/contact_card', { body, ...options });
|
|
49
37
|
}
|
|
50
38
|
/**
|
|
51
|
-
*
|
|
39
|
+
* Returns the contact card for a specific phone number, or all contact cards for
|
|
40
|
+
* the authenticated partner if no `phone_number` is provided.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const contactCard = await client.contactCard.retrieve();
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
retrieve(query = {}, options) {
|
|
48
|
+
return this._client.get('/v3/contact_card', { query, ...options });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Partially updates the contact card for a phone number.
|
|
52
52
|
*
|
|
53
|
-
* Fetches the current
|
|
54
|
-
*
|
|
55
|
-
*
|
|
53
|
+
* Fetches the current contact card and merges the provided fields. Only fields
|
|
54
|
+
* present in the request body are updated; omitted fields retain their existing
|
|
55
|
+
* values.
|
|
56
56
|
*
|
|
57
|
-
*
|
|
57
|
+
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
58
|
+
* endpoint again.
|
|
58
59
|
*
|
|
59
60
|
* @example
|
|
60
61
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.mjs","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;;;;;;;GAQG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"contact-card.mjs","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;;;;;;;GAQG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CACN,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,MAA+B,EAAE,OAAwB;QAC9D,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.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 declare class Experiences extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get one experience
|
|
12
|
+
*/
|
|
13
|
+
retrieve(experience: string, options?: RequestOptions): APIPromise<ExperienceRetrieveResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* The experiences enabled for your account, with the actions you may invoke on
|
|
16
|
+
* each and the fields each action accepts. This is the authoritative list — an
|
|
17
|
+
* action missing here cannot be sent.
|
|
18
|
+
*/
|
|
19
|
+
list(options?: RequestOptions): APIPromise<ExperienceListResponse>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* What an experience offers you. Deliberately a projection: where its templates
|
|
23
|
+
* live and how they are built is not yours to depend on, so it is not here.
|
|
24
|
+
*/
|
|
25
|
+
export interface ExperienceRetrieveResponse {
|
|
26
|
+
actions?: Array<ExperienceRetrieveResponse.Action>;
|
|
27
|
+
display_name?: string;
|
|
28
|
+
experience?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace ExperienceRetrieveResponse {
|
|
31
|
+
interface Action {
|
|
32
|
+
/**
|
|
33
|
+
* Fields you may send in `params`, keyed by the exact name to use.
|
|
34
|
+
*/
|
|
35
|
+
fields?: {
|
|
36
|
+
[key: string]: Action.Fields;
|
|
37
|
+
};
|
|
38
|
+
name?: string;
|
|
39
|
+
summary?: string;
|
|
40
|
+
}
|
|
41
|
+
namespace Action {
|
|
42
|
+
interface Fields {
|
|
43
|
+
/**
|
|
44
|
+
* Maximum length, for strings.
|
|
45
|
+
*/
|
|
46
|
+
max?: number;
|
|
47
|
+
required?: boolean;
|
|
48
|
+
type?: 'string' | 'cents' | 'int' | 'url';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface ExperienceListResponse {
|
|
53
|
+
experiences?: Array<ExperienceListResponse.Experience>;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace ExperienceListResponse {
|
|
56
|
+
/**
|
|
57
|
+
* What an experience offers you. Deliberately a projection: where its templates
|
|
58
|
+
* live and how they are built is not yours to depend on, so it is not here.
|
|
59
|
+
*/
|
|
60
|
+
interface Experience {
|
|
61
|
+
actions?: Array<Experience.Action>;
|
|
62
|
+
display_name?: string;
|
|
63
|
+
experience?: string;
|
|
64
|
+
}
|
|
65
|
+
namespace Experience {
|
|
66
|
+
interface Action {
|
|
67
|
+
/**
|
|
68
|
+
* Fields you may send in `params`, keyed by the exact name to use.
|
|
69
|
+
*/
|
|
70
|
+
fields?: {
|
|
71
|
+
[key: string]: Action.Fields;
|
|
72
|
+
};
|
|
73
|
+
name?: string;
|
|
74
|
+
summary?: string;
|
|
75
|
+
}
|
|
76
|
+
namespace Action {
|
|
77
|
+
interface Fields {
|
|
78
|
+
/**
|
|
79
|
+
* Maximum length, for strings.
|
|
80
|
+
*/
|
|
81
|
+
max?: number;
|
|
82
|
+
required?: boolean;
|
|
83
|
+
type?: 'string' | 'cents' | 'int' | 'url';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export declare namespace Experiences {
|
|
89
|
+
export { type ExperienceRetrieveResponse as ExperienceRetrieveResponse, type ExperienceListResponse as ExperienceListResponse, };
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=experiences.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiences.d.mts","sourceRoot":"","sources":["../src/resources/experiences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI9F;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnE;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAEnD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,MAAM;QACrB;;WAEG;QACH,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;SAAE,CAAC;QAE1C,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED,UAAiB,MAAM,CAAC;QACtB,UAAiB,MAAM;YACrB;;eAEG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;YAEb,QAAQ,CAAC,EAAE,OAAO,CAAC;YAEnB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC;SAC3C;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;CACxD;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;;OAGG;IACH,UAAiB,UAAU;QACzB,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAEnC,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,UAAU,CAAC;QAC1B,UAAiB,MAAM;YACrB;;eAEG;YACH,MAAM,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;aAAE,CAAC;YAE1C,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB;QAED,UAAiB,MAAM,CAAC;YACtB,UAAiB,MAAM;gBACrB;;mBAEG;gBACH,GAAG,CAAC,EAAE,MAAM,CAAC;gBAEb,QAAQ,CAAC,EAAE,OAAO,CAAC;gBAEnB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC;aAC3C;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
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 declare class Experiences extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get one experience
|
|
12
|
+
*/
|
|
13
|
+
retrieve(experience: string, options?: RequestOptions): APIPromise<ExperienceRetrieveResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* The experiences enabled for your account, with the actions you may invoke on
|
|
16
|
+
* each and the fields each action accepts. This is the authoritative list — an
|
|
17
|
+
* action missing here cannot be sent.
|
|
18
|
+
*/
|
|
19
|
+
list(options?: RequestOptions): APIPromise<ExperienceListResponse>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* What an experience offers you. Deliberately a projection: where its templates
|
|
23
|
+
* live and how they are built is not yours to depend on, so it is not here.
|
|
24
|
+
*/
|
|
25
|
+
export interface ExperienceRetrieveResponse {
|
|
26
|
+
actions?: Array<ExperienceRetrieveResponse.Action>;
|
|
27
|
+
display_name?: string;
|
|
28
|
+
experience?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace ExperienceRetrieveResponse {
|
|
31
|
+
interface Action {
|
|
32
|
+
/**
|
|
33
|
+
* Fields you may send in `params`, keyed by the exact name to use.
|
|
34
|
+
*/
|
|
35
|
+
fields?: {
|
|
36
|
+
[key: string]: Action.Fields;
|
|
37
|
+
};
|
|
38
|
+
name?: string;
|
|
39
|
+
summary?: string;
|
|
40
|
+
}
|
|
41
|
+
namespace Action {
|
|
42
|
+
interface Fields {
|
|
43
|
+
/**
|
|
44
|
+
* Maximum length, for strings.
|
|
45
|
+
*/
|
|
46
|
+
max?: number;
|
|
47
|
+
required?: boolean;
|
|
48
|
+
type?: 'string' | 'cents' | 'int' | 'url';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface ExperienceListResponse {
|
|
53
|
+
experiences?: Array<ExperienceListResponse.Experience>;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace ExperienceListResponse {
|
|
56
|
+
/**
|
|
57
|
+
* What an experience offers you. Deliberately a projection: where its templates
|
|
58
|
+
* live and how they are built is not yours to depend on, so it is not here.
|
|
59
|
+
*/
|
|
60
|
+
interface Experience {
|
|
61
|
+
actions?: Array<Experience.Action>;
|
|
62
|
+
display_name?: string;
|
|
63
|
+
experience?: string;
|
|
64
|
+
}
|
|
65
|
+
namespace Experience {
|
|
66
|
+
interface Action {
|
|
67
|
+
/**
|
|
68
|
+
* Fields you may send in `params`, keyed by the exact name to use.
|
|
69
|
+
*/
|
|
70
|
+
fields?: {
|
|
71
|
+
[key: string]: Action.Fields;
|
|
72
|
+
};
|
|
73
|
+
name?: string;
|
|
74
|
+
summary?: string;
|
|
75
|
+
}
|
|
76
|
+
namespace Action {
|
|
77
|
+
interface Fields {
|
|
78
|
+
/**
|
|
79
|
+
* Maximum length, for strings.
|
|
80
|
+
*/
|
|
81
|
+
max?: number;
|
|
82
|
+
required?: boolean;
|
|
83
|
+
type?: 'string' | 'cents' | 'int' | 'url';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export declare namespace Experiences {
|
|
89
|
+
export { type ExperienceRetrieveResponse as ExperienceRetrieveResponse, type ExperienceListResponse as ExperienceListResponse, };
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=experiences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiences.d.ts","sourceRoot":"","sources":["../src/resources/experiences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CAAC,UAA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AAM,GAAG,MAAM,CAAC,MAAM,CAAA;aAAE,CAAC;YAE1C,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB;QAED,UAAiB,MAAM,CAAC;YACtB,UAAiB,MAAM;gBACrB;;mBAEG;gBACH,GAAG,CAAC,EAAE,MAAM,CAAC;gBAEb,QAAQ,CAAC,EAAE,OAAO,CAAC;gBAEnB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC;aAC3C;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Experiences = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
9
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
10
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
11
|
+
*/
|
|
12
|
+
class Experiences extends resource_1.APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get one experience
|
|
15
|
+
*/
|
|
16
|
+
retrieve(experience, options) {
|
|
17
|
+
return this._client.get((0, path_1.path) `/v3/experiences/${experience}`, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The experiences enabled for your account, with the actions you may invoke on
|
|
21
|
+
* each and the fields each action accepts. This is the authoritative list — an
|
|
22
|
+
* action missing here cannot be sent.
|
|
23
|
+
*/
|
|
24
|
+
list(options) {
|
|
25
|
+
return this._client.get('/v3/experiences', options);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Experiences = Experiences;
|
|
29
|
+
//# sourceMappingURL=experiences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiences.js","sourceRoot":"","sources":["../src/resources/experiences.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;CACF;AAhBD,kCAgBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 Experiences extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get one experience
|
|
12
|
+
*/
|
|
13
|
+
retrieve(experience, options) {
|
|
14
|
+
return this._client.get(path `/v3/experiences/${experience}`, options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The experiences enabled for your account, with the actions you may invoke on
|
|
18
|
+
* each and the fields each action accepts. This is the authoritative list — an
|
|
19
|
+
* action missing here cannot be sent.
|
|
20
|
+
*/
|
|
21
|
+
list(options) {
|
|
22
|
+
return this._client.get('/v3/experiences', options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=experiences.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiences.mjs","sourceRoot":"","sources":["../src/resources/experiences.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;GAIG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -2,10 +2,14 @@ export * from "./shared.mjs";
|
|
|
2
2
|
export { Attachments, type SupportedContentType, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.mjs";
|
|
3
3
|
export { AvailableNumber, type AvailableNumberRetrieveResponse, type AvailableNumberRetrieveParams, } from "./available-number.mjs";
|
|
4
4
|
export { Capability, type HandleCheck, type HandleCheckResponse, type CapabilityCheckIMessageParams, type CapabilityCheckRCSParams, } from "./capability.mjs";
|
|
5
|
-
export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type
|
|
6
|
-
export { ContactCard, type SetContactCard, type ContactCardRetrieveResponse, type
|
|
7
|
-
export {
|
|
5
|
+
export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.mjs";
|
|
6
|
+
export { ContactCard, type SetContactCard, type ContactCardRetrieveResponse, type ContactCardCreateParams, type ContactCardRetrieveParams, type ContactCardUpdateParams, } from "./contact-card.mjs";
|
|
7
|
+
export { Experiences, type ExperienceRetrieveResponse, type ExperienceListResponse } from "./experiences.mjs";
|
|
8
|
+
export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageCreateResponse, type MessageAddReactionResponse, type MessageUpdateAppCardResponse, type MessageCreateParams, type MessageUpdateParams, type MessageAddReactionParams, type MessageListMessagesThreadParams, type MessageUpdateAppCardParams, type MessagesListMessagesPagination, } from "./messages.mjs";
|
|
9
|
+
export { PaymentHandles, type PaymentHandleConnection, type PaymentHandleVerifyParams, } from "./payment-handles.mjs";
|
|
10
|
+
export { PaymentProviders, type PaymentProvider, type PaymentProviderConnectResponse, type PaymentProviderConnectParams, } from "./payment-providers.mjs";
|
|
8
11
|
export { PaymentRequests, type PaymentRequest, type PaymentRequestListResponse, type PaymentRequestCreateParams, type PaymentRequestListParams, } from "./payment-requests.mjs";
|
|
12
|
+
export { Payments, type Payment, type PaymentCredentialsResponse, type PaymentCreateParams, } from "./payments.mjs";
|
|
9
13
|
export { PhoneNumbers, type PhoneNumberUpdateResponse, type PhoneNumberListResponse, type PhoneNumberUpdateParams, } from "./phone-numbers.mjs";
|
|
10
14
|
export { Phonenumbers, type PhonenumberListResponse } from "./phonenumbers.mjs";
|
|
11
15
|
export { WebhookEvents, type WebhookEventType, type WebhookEventListResponse } from "./webhook-events.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,0BAAsB;AACvB,OAAO,EACL,eAAe,EACf,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC,+BAA2B;AAC5B,OAAO,EACL,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B,yBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,0BAAsB;AACvB,OAAO,EACL,eAAe,EACf,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC,+BAA2B;AAC5B,OAAO,EACL,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B,yBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,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EACpB,KAAK,mBAAmB,EACxB,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,GACrC,oCAAgC;AACjC,OAAO,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,kBAAkB,GACxB,uBAAmB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -2,10 +2,14 @@ export * from "./shared.js";
|
|
|
2
2
|
export { Attachments, type SupportedContentType, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.js";
|
|
3
3
|
export { AvailableNumber, type AvailableNumberRetrieveResponse, type AvailableNumberRetrieveParams, } from "./available-number.js";
|
|
4
4
|
export { Capability, type HandleCheck, type HandleCheckResponse, type CapabilityCheckIMessageParams, type CapabilityCheckRCSParams, } from "./capability.js";
|
|
5
|
-
export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type
|
|
6
|
-
export { ContactCard, type SetContactCard, type ContactCardRetrieveResponse, type
|
|
7
|
-
export {
|
|
5
|
+
export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.js";
|
|
6
|
+
export { ContactCard, type SetContactCard, type ContactCardRetrieveResponse, type ContactCardCreateParams, type ContactCardRetrieveParams, type ContactCardUpdateParams, } from "./contact-card.js";
|
|
7
|
+
export { Experiences, type ExperienceRetrieveResponse, type ExperienceListResponse } from "./experiences.js";
|
|
8
|
+
export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageCreateResponse, type MessageAddReactionResponse, type MessageUpdateAppCardResponse, type MessageCreateParams, type MessageUpdateParams, type MessageAddReactionParams, type MessageListMessagesThreadParams, type MessageUpdateAppCardParams, type MessagesListMessagesPagination, } from "./messages.js";
|
|
9
|
+
export { PaymentHandles, type PaymentHandleConnection, type PaymentHandleVerifyParams, } from "./payment-handles.js";
|
|
10
|
+
export { PaymentProviders, type PaymentProvider, type PaymentProviderConnectResponse, type PaymentProviderConnectParams, } from "./payment-providers.js";
|
|
8
11
|
export { PaymentRequests, type PaymentRequest, type PaymentRequestListResponse, type PaymentRequestCreateParams, type PaymentRequestListParams, } from "./payment-requests.js";
|
|
12
|
+
export { Payments, type Payment, type PaymentCredentialsResponse, type PaymentCreateParams, } from "./payments.js";
|
|
9
13
|
export { PhoneNumbers, type PhoneNumberUpdateResponse, type PhoneNumberListResponse, type PhoneNumberUpdateParams, } from "./phone-numbers.js";
|
|
10
14
|
export { Phonenumbers, type PhonenumberListResponse } from "./phonenumbers.js";
|
|
11
15
|
export { WebhookEvents, type WebhookEventType, type WebhookEventListResponse } from "./webhook-events.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,yBAAsB;AACvB,OAAO,EACL,eAAe,EACf,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC,8BAA2B;AAC5B,OAAO,EACL,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B,wBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,yBAAsB;AACvB,OAAO,EACL,eAAe,EACf,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC,8BAA2B;AAC5B,OAAO,EACL,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,GAC9B,wBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAw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AAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,GACrC,mCAAgC;AACjC,OAAO,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,kBAAkB,GACxB,sBAAmB"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Webhooks = exports.WebhookSubscriptions = exports.WebhookEvents = exports.Phonenumbers = exports.PhoneNumbers = exports.PaymentRequests = exports.Messages = exports.ContactCard = exports.Chats = exports.Capability = exports.AvailableNumber = exports.Attachments = void 0;
|
|
4
|
+
exports.Webhooks = exports.WebhookSubscriptions = exports.WebhookEvents = exports.Phonenumbers = exports.PhoneNumbers = exports.Payments = exports.PaymentRequests = exports.PaymentProviders = exports.PaymentHandles = exports.Messages = exports.Experiences = exports.ContactCard = exports.Chats = exports.Capability = exports.AvailableNumber = exports.Attachments = void 0;
|
|
5
5
|
const tslib_1 = require("../internal/tslib.js");
|
|
6
6
|
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
7
|
var attachments_1 = require("./attachments.js");
|
|
@@ -14,10 +14,18 @@ var chats_1 = require("./chats/chats.js");
|
|
|
14
14
|
Object.defineProperty(exports, "Chats", { enumerable: true, get: function () { return chats_1.Chats; } });
|
|
15
15
|
var contact_card_1 = require("./contact-card.js");
|
|
16
16
|
Object.defineProperty(exports, "ContactCard", { enumerable: true, get: function () { return contact_card_1.ContactCard; } });
|
|
17
|
+
var experiences_1 = require("./experiences.js");
|
|
18
|
+
Object.defineProperty(exports, "Experiences", { enumerable: true, get: function () { return experiences_1.Experiences; } });
|
|
17
19
|
var messages_1 = require("./messages.js");
|
|
18
20
|
Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } });
|
|
21
|
+
var payment_handles_1 = require("./payment-handles.js");
|
|
22
|
+
Object.defineProperty(exports, "PaymentHandles", { enumerable: true, get: function () { return payment_handles_1.PaymentHandles; } });
|
|
23
|
+
var payment_providers_1 = require("./payment-providers.js");
|
|
24
|
+
Object.defineProperty(exports, "PaymentProviders", { enumerable: true, get: function () { return payment_providers_1.PaymentProviders; } });
|
|
19
25
|
var payment_requests_1 = require("./payment-requests.js");
|
|
20
26
|
Object.defineProperty(exports, "PaymentRequests", { enumerable: true, get: function () { return payment_requests_1.PaymentRequests; } });
|
|
27
|
+
var payments_1 = require("./payments.js");
|
|
28
|
+
Object.defineProperty(exports, "Payments", { enumerable: true, get: function () { return payments_1.Payments; } });
|
|
21
29
|
var phone_numbers_1 = require("./phone-numbers.js");
|
|
22
30
|
Object.defineProperty(exports, "PhoneNumbers", { enumerable: true, get: function () { return phone_numbers_1.PhoneNumbers; } });
|
|
23
31
|
var phonenumbers_1 = require("./phonenumbers.js");
|
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,WAA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AA,QAAQ,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -5,8 +5,12 @@ export { AvailableNumber, } from "./available-number.mjs";
|
|
|
5
5
|
export { Capability, } from "./capability.mjs";
|
|
6
6
|
export { Chats, } from "./chats/chats.mjs";
|
|
7
7
|
export { ContactCard, } from "./contact-card.mjs";
|
|
8
|
+
export { Experiences } from "./experiences.mjs";
|
|
8
9
|
export { Messages, } from "./messages.mjs";
|
|
10
|
+
export { PaymentHandles, } from "./payment-handles.mjs";
|
|
11
|
+
export { PaymentProviders, } from "./payment-providers.mjs";
|
|
9
12
|
export { PaymentRequests, } from "./payment-requests.mjs";
|
|
13
|
+
export { Payments, } from "./payments.mjs";
|
|
10
14
|
export { PhoneNumbers, } from "./phone-numbers.mjs";
|
|
11
15
|
export { Phonenumbers } from "./phonenumbers.mjs";
|
|
12
16
|
export { WebhookEvents } from "./webhook-events.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,WAAW,GAKZ,0BAAsB;AACvB,OAAO,EACL,eAAe,GAGhB,+BAA2B;AAC5B,OAAO,EACL,UAAU,GAKX,yBAAqB;AACtB,OAAO,EACL,KAAK,GAeN,0BAAsB;AACvB,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,QAAQ,GAaT,uBAAmB;AACpB,OAAO,EACL,eAAe,GAKhB,+BAA2B;AAC5B,OAAO,EACL,YAAY,GAIb,4BAAwB;AACzB,OAAO,EAAE,YAAY,EAAgC,2BAAuB;AAC5E,OAAO,EAAE,aAAa,EAAwD,6BAAyB;AACvG,OAAO,EACL,oBAAoB,GAMrB,oCAAgC;AACjC,OAAO,EACL,QAAQ,GA0BT,uBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources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