@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
|
@@ -11,26 +11,16 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
11
11
|
* **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.
|
|
12
12
|
*/
|
|
13
13
|
export declare class ContactCard extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Returns the contact card for a specific phone number, or all contact cards for
|
|
16
|
-
* the authenticated partner if no `phone_number` is provided.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const contactCard = await client.contactCard.retrieve();
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
retrieve(query?: ContactCardRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ContactCardRetrieveResponse>;
|
|
24
14
|
/**
|
|
25
15
|
* Creates a contact card for a phone number. This endpoint is intended for
|
|
26
16
|
* initial, one-time setup only.
|
|
27
17
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* `is_active` is `false`.
|
|
18
|
+
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
19
|
+
* again.
|
|
31
20
|
*
|
|
32
|
-
* **Note:**
|
|
33
|
-
* `PATCH /v3/contact_card`
|
|
21
|
+
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
22
|
+
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
23
|
+
* change it.
|
|
34
24
|
*
|
|
35
25
|
* @example
|
|
36
26
|
* ```ts
|
|
@@ -45,13 +35,24 @@ export declare class ContactCard extends APIResource {
|
|
|
45
35
|
*/
|
|
46
36
|
create(body: ContactCardCreateParams, options?: RequestOptions): APIPromise<SetContactCard>;
|
|
47
37
|
/**
|
|
48
|
-
*
|
|
38
|
+
* Returns the contact card for a specific phone number, or all contact cards for
|
|
39
|
+
* the authenticated partner if no `phone_number` is provided.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const contactCard = await client.contactCard.retrieve();
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieve(query?: ContactCardRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ContactCardRetrieveResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Partially updates the contact card for a phone number.
|
|
49
49
|
*
|
|
50
|
-
* Fetches the current
|
|
51
|
-
*
|
|
52
|
-
*
|
|
50
|
+
* Fetches the current contact card and merges the provided fields. Only fields
|
|
51
|
+
* present in the request body are updated; omitted fields retain their existing
|
|
52
|
+
* values.
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
55
|
+
* endpoint again.
|
|
55
56
|
*
|
|
56
57
|
* @example
|
|
57
58
|
* ```ts
|
|
@@ -100,13 +101,6 @@ export declare namespace ContactCardRetrieveResponse {
|
|
|
100
101
|
last_name?: string;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
export interface ContactCardRetrieveParams {
|
|
104
|
-
/**
|
|
105
|
-
* E.164 phone number to filter by. If omitted, all my cards for the partner are
|
|
106
|
-
* returned.
|
|
107
|
-
*/
|
|
108
|
-
phone_number?: string;
|
|
109
|
-
}
|
|
110
104
|
export interface ContactCardCreateParams {
|
|
111
105
|
/**
|
|
112
106
|
* First name for the contact card. Required.
|
|
@@ -125,6 +119,13 @@ export interface ContactCardCreateParams {
|
|
|
125
119
|
*/
|
|
126
120
|
last_name?: string;
|
|
127
121
|
}
|
|
122
|
+
export interface ContactCardRetrieveParams {
|
|
123
|
+
/**
|
|
124
|
+
* E.164 phone number to filter by. If omitted, all my cards for the partner are
|
|
125
|
+
* returned.
|
|
126
|
+
*/
|
|
127
|
+
phone_number?: string;
|
|
128
|
+
}
|
|
128
129
|
export interface ContactCardUpdateParams {
|
|
129
130
|
/**
|
|
130
131
|
* Query param: E.164 phone number of the contact card to update
|
|
@@ -144,6 +145,6 @@ export interface ContactCardUpdateParams {
|
|
|
144
145
|
last_name?: string;
|
|
145
146
|
}
|
|
146
147
|
export declare namespace ContactCard {
|
|
147
|
-
export { type SetContactCard as SetContactCard, type ContactCardRetrieveResponse as ContactCardRetrieveResponse, type
|
|
148
|
+
export { type SetContactCard as SetContactCard, type ContactCardRetrieveResponse as ContactCardRetrieveResponse, type ContactCardCreateParams as ContactCardCreateParams, type ContactCardRetrieveParams as ContactCardRetrieveParams, type ContactCardUpdateParams as ContactCardUpdateParams, };
|
|
148
149
|
}
|
|
149
150
|
//# sourceMappingURL=contact-card.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.d.mts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"contact-card.d.mts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI3F;;;;;;;;OAQG;IACH,QAAQ,CACN,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;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AAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -11,26 +11,16 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
11
11
|
* **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.
|
|
12
12
|
*/
|
|
13
13
|
export declare class ContactCard extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Returns the contact card for a specific phone number, or all contact cards for
|
|
16
|
-
* the authenticated partner if no `phone_number` is provided.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const contactCard = await client.contactCard.retrieve();
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
retrieve(query?: ContactCardRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ContactCardRetrieveResponse>;
|
|
24
14
|
/**
|
|
25
15
|
* Creates a contact card for a phone number. This endpoint is intended for
|
|
26
16
|
* initial, one-time setup only.
|
|
27
17
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* `is_active` is `false`.
|
|
18
|
+
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
19
|
+
* again.
|
|
31
20
|
*
|
|
32
|
-
* **Note:**
|
|
33
|
-
* `PATCH /v3/contact_card`
|
|
21
|
+
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
22
|
+
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
23
|
+
* change it.
|
|
34
24
|
*
|
|
35
25
|
* @example
|
|
36
26
|
* ```ts
|
|
@@ -45,13 +35,24 @@ export declare class ContactCard extends APIResource {
|
|
|
45
35
|
*/
|
|
46
36
|
create(body: ContactCardCreateParams, options?: RequestOptions): APIPromise<SetContactCard>;
|
|
47
37
|
/**
|
|
48
|
-
*
|
|
38
|
+
* Returns the contact card for a specific phone number, or all contact cards for
|
|
39
|
+
* the authenticated partner if no `phone_number` is provided.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const contactCard = await client.contactCard.retrieve();
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieve(query?: ContactCardRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ContactCardRetrieveResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Partially updates the contact card for a phone number.
|
|
49
49
|
*
|
|
50
|
-
* Fetches the current
|
|
51
|
-
*
|
|
52
|
-
*
|
|
50
|
+
* Fetches the current contact card and merges the provided fields. Only fields
|
|
51
|
+
* present in the request body are updated; omitted fields retain their existing
|
|
52
|
+
* values.
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
55
|
+
* endpoint again.
|
|
55
56
|
*
|
|
56
57
|
* @example
|
|
57
58
|
* ```ts
|
|
@@ -100,13 +101,6 @@ export declare namespace ContactCardRetrieveResponse {
|
|
|
100
101
|
last_name?: string;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
export interface ContactCardRetrieveParams {
|
|
104
|
-
/**
|
|
105
|
-
* E.164 phone number to filter by. If omitted, all my cards for the partner are
|
|
106
|
-
* returned.
|
|
107
|
-
*/
|
|
108
|
-
phone_number?: string;
|
|
109
|
-
}
|
|
110
104
|
export interface ContactCardCreateParams {
|
|
111
105
|
/**
|
|
112
106
|
* First name for the contact card. Required.
|
|
@@ -125,6 +119,13 @@ export interface ContactCardCreateParams {
|
|
|
125
119
|
*/
|
|
126
120
|
last_name?: string;
|
|
127
121
|
}
|
|
122
|
+
export interface ContactCardRetrieveParams {
|
|
123
|
+
/**
|
|
124
|
+
* E.164 phone number to filter by. If omitted, all my cards for the partner are
|
|
125
|
+
* returned.
|
|
126
|
+
*/
|
|
127
|
+
phone_number?: string;
|
|
128
|
+
}
|
|
128
129
|
export interface ContactCardUpdateParams {
|
|
129
130
|
/**
|
|
130
131
|
* Query param: E.164 phone number of the contact card to update
|
|
@@ -144,6 +145,6 @@ export interface ContactCardUpdateParams {
|
|
|
144
145
|
last_name?: string;
|
|
145
146
|
}
|
|
146
147
|
export declare namespace ContactCard {
|
|
147
|
-
export { type SetContactCard as SetContactCard, type ContactCardRetrieveResponse as ContactCardRetrieveResponse, type
|
|
148
|
+
export { type SetContactCard as SetContactCard, type ContactCardRetrieveResponse as ContactCardRetrieveResponse, type ContactCardCreateParams as ContactCardCreateParams, type ContactCardRetrieveParams as ContactCardRetrieveParams, type ContactCardUpdateParams as ContactCardUpdateParams, };
|
|
148
149
|
}
|
|
149
150
|
//# sourceMappingURL=contact-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.d.ts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"contact-card.d.ts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAA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AErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -13,28 +13,16 @@ const resource_1 = require("../core/resource.js");
|
|
|
13
13
|
* **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.
|
|
14
14
|
*/
|
|
15
15
|
class ContactCard extends resource_1.APIResource {
|
|
16
|
-
/**
|
|
17
|
-
* Returns the contact card for a specific phone number, or all contact cards for
|
|
18
|
-
* the authenticated partner if no `phone_number` is provided.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const contactCard = await client.contactCard.retrieve();
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
retrieve(query = {}, options) {
|
|
26
|
-
return this._client.get('/v3/contact_card', { query, ...options });
|
|
27
|
-
}
|
|
28
16
|
/**
|
|
29
17
|
* Creates a contact card for a phone number. This endpoint is intended for
|
|
30
18
|
* initial, one-time setup only.
|
|
31
19
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* `is_active` is `false`.
|
|
20
|
+
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
21
|
+
* again.
|
|
35
22
|
*
|
|
36
|
-
* **Note:**
|
|
37
|
-
* `PATCH /v3/contact_card`
|
|
23
|
+
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
24
|
+
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
25
|
+
* change it.
|
|
38
26
|
*
|
|
39
27
|
* @example
|
|
40
28
|
* ```ts
|
|
@@ -51,13 +39,26 @@ class ContactCard extends resource_1.APIResource {
|
|
|
51
39
|
return this._client.post('/v3/contact_card', { body, ...options });
|
|
52
40
|
}
|
|
53
41
|
/**
|
|
54
|
-
*
|
|
42
|
+
* Returns the contact card for a specific phone number, or all contact cards for
|
|
43
|
+
* the authenticated partner if no `phone_number` is provided.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const contactCard = await client.contactCard.retrieve();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
retrieve(query = {}, options) {
|
|
51
|
+
return this._client.get('/v3/contact_card', { query, ...options });
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Partially updates the contact card for a phone number.
|
|
55
55
|
*
|
|
56
|
-
* Fetches the current
|
|
57
|
-
*
|
|
58
|
-
*
|
|
56
|
+
* Fetches the current contact card and merges the provided fields. Only fields
|
|
57
|
+
* present in the request body are updated; omitted fields retain their existing
|
|
58
|
+
* values.
|
|
59
59
|
*
|
|
60
|
-
*
|
|
60
|
+
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
61
|
+
* endpoint again.
|
|
61
62
|
*
|
|
62
63
|
* @example
|
|
63
64
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.js","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;;;;;;;GAQG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"contact-card.js","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;;;;;;;GAQG;AACH,MAAa,WAAY,SAAQ,sBAAW;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;AApED,kCAoEC"}
|
|
@@ -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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AE,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,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,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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"}
|