@sentdm/sentdm 0.37.0 → 0.38.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 +13 -0
- package/README.md +31 -0
- package/client.d.mts +22 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -8
- package/client.d.ts.map +1 -1
- package/client.js +10 -0
- package/client.js.map +1 -1
- package/client.mjs +10 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +164 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +164 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +212 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +202 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +11 -1
- package/pagination.d.mts +3 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +3 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +3 -0
- package/pagination.mjs.map +1 -0
- package/resources/contacts.d.mts +9 -52
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +9 -52
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +8 -7
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +8 -7
- package/resources/contacts.mjs.map +1 -1
- package/resources/conversations.d.mts +17 -32
- package/resources/conversations.d.mts.map +1 -1
- package/resources/conversations.d.ts +17 -32
- package/resources/conversations.d.ts.map +1 -1
- package/resources/conversations.js +17 -16
- package/resources/conversations.js.map +1 -1
- package/resources/conversations.mjs +17 -16
- package/resources/conversations.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/templates.d.mts +9 -52
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +9 -52
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +8 -7
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +8 -7
- package/resources/templates.mjs.map +1 -1
- package/resources/webhooks.d.mts +32 -117
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +32 -117
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +16 -13
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +16 -13
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +72 -6
- package/src/core/pagination.ts +428 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/contacts.ts +15 -62
- package/src/resources/conversations.ts +36 -48
- package/src/resources/index.ts +5 -3
- package/src/resources/templates.ts +15 -62
- package/src/resources/webhooks.ts +61 -146
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE,8BAA2B;AAExF,O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AAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,mCAAmC;IAClD;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
package/resources/contacts.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Contacts = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
6
7
|
const headers_1 = require("../internal/headers.js");
|
|
7
8
|
const path_1 = require("../internal/utils/path.js");
|
|
8
9
|
/**
|
|
@@ -90,15 +91,15 @@ class Contacts extends resource_1.APIResource {
|
|
|
90
91
|
*
|
|
91
92
|
* @example
|
|
92
93
|
* ```ts
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* }
|
|
94
|
+
* // Automatically fetches more pages as needed.
|
|
95
|
+
* for await (const contactResponse of client.contacts.list()) {
|
|
96
|
+
* // ...
|
|
97
|
+
* }
|
|
97
98
|
* ```
|
|
98
99
|
*/
|
|
99
|
-
list(params, options) {
|
|
100
|
-
const { 'x-profile-id': xProfileID, ...query } = params;
|
|
101
|
-
return this._client.
|
|
100
|
+
list(params = {}, options) {
|
|
101
|
+
const { 'x-profile-id': xProfileID, ...query } = params ?? {};
|
|
102
|
+
return this._client.getAPIList('/v3/contacts', (pagination_1.ContactsPage), {
|
|
102
103
|
query,
|
|
103
104
|
...options,
|
|
104
105
|
headers: (0, headers_1.buildHeaders)([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAwF;AACxF,oDAAmD;AAEnD,oDAA8C;AAE9C;;;;;;GAMG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAA2B,EAAE,OAAwB;QAC1D,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE;YACvC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GA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E,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,kBAAkB,EAAE;YACvE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AApKD,4BAoKC"}
|
package/resources/contacts.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { ContactsPage } from "../core/pagination.mjs";
|
|
3
4
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
5
|
import { path } from "../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
@@ -87,15 +88,15 @@ export class Contacts extends APIResource {
|
|
|
87
88
|
*
|
|
88
89
|
* @example
|
|
89
90
|
* ```ts
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* }
|
|
91
|
+
* // Automatically fetches more pages as needed.
|
|
92
|
+
* for await (const contactResponse of client.contacts.list()) {
|
|
93
|
+
* // ...
|
|
94
|
+
* }
|
|
94
95
|
* ```
|
|
95
96
|
*/
|
|
96
|
-
list(params, options) {
|
|
97
|
-
const { 'x-profile-id': xProfileID, ...query } = params;
|
|
98
|
-
return this._client.
|
|
97
|
+
list(params = {}, options) {
|
|
98
|
+
const { 'x-profile-id': xProfileID, ...query } = params ?? {};
|
|
99
|
+
return this._client.getAPIList('/v3/contacts', (ContactsPage), {
|
|
99
100
|
query,
|
|
100
101
|
...options,
|
|
101
102
|
headers: buildHeaders([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;
|
|
1
|
+
{"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAwC,+BAA2B;AACxF,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;GAMG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAA2B,EAAE,OAAwB;QAC1D,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE;YACvC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,SAAmD,EAAE,EACrD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC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APIResource } from "../core/resource.mjs";
|
|
2
2
|
import * as WebhooksAPI from "./webhooks.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { ConversationsPage, type ConversationsPageParams, PagePromise } from "../core/pagination.mjs";
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Inbound and outbound messages, grouped by the person they are with.
|
|
@@ -16,29 +16,30 @@ export declare class Conversations extends APIResource {
|
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* });
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const conversation of client.conversations.list()) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
24
23
|
* ```
|
|
25
24
|
*/
|
|
26
|
-
list(params
|
|
25
|
+
list(params?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationMessagesListMessagesConversationsPage, ConversationMessagesList.Message>;
|
|
27
26
|
/**
|
|
28
27
|
* Retrieves a paginated list of the messages in a single conversation (scoped to
|
|
29
28
|
* the authenticated customer), ordered by created date (most recent first).
|
|
30
29
|
*
|
|
31
30
|
* @example
|
|
32
31
|
* ```ts
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
32
|
+
* // Automatically fetches more pages as needed.
|
|
33
|
+
* for await (const conversation of client.conversations.listMessages(
|
|
34
|
+
* '08fab313-c9e2-502c-975e-08b0356c432e',
|
|
35
|
+
* )) {
|
|
36
|
+
* // ...
|
|
37
|
+
* }
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
listMessages(id: string, params
|
|
40
|
+
listMessages(id: string, params?: ConversationListMessagesParams | null | undefined, options?: RequestOptions): PagePromise<ConversationMessagesListMessagesConversationsPage, ConversationMessagesList.Message>;
|
|
41
41
|
}
|
|
42
|
+
export type ConversationMessagesListMessagesConversationsPage = ConversationsPage<ConversationMessagesList.Message>;
|
|
42
43
|
/**
|
|
43
44
|
* Standard API response envelope for all v3 endpoints
|
|
44
45
|
*/
|
|
@@ -129,15 +130,7 @@ export declare namespace ConversationMessagesList {
|
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
|
-
export interface ConversationListParams {
|
|
133
|
-
/**
|
|
134
|
-
* Query param
|
|
135
|
-
*/
|
|
136
|
-
page: number;
|
|
137
|
-
/**
|
|
138
|
-
* Query param
|
|
139
|
-
*/
|
|
140
|
-
page_size: number;
|
|
133
|
+
export interface ConversationListParams extends ConversationsPageParams {
|
|
141
134
|
/**
|
|
142
135
|
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
143
136
|
* organization API keys can use this header. The profile must belong to the
|
|
@@ -145,15 +138,7 @@ export interface ConversationListParams {
|
|
|
145
138
|
*/
|
|
146
139
|
'x-profile-id'?: string;
|
|
147
140
|
}
|
|
148
|
-
export interface ConversationListMessagesParams {
|
|
149
|
-
/**
|
|
150
|
-
* Query param
|
|
151
|
-
*/
|
|
152
|
-
page: number;
|
|
153
|
-
/**
|
|
154
|
-
* Query param
|
|
155
|
-
*/
|
|
156
|
-
page_size: number;
|
|
141
|
+
export interface ConversationListMessagesParams extends ConversationsPageParams {
|
|
157
142
|
/**
|
|
158
143
|
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
159
144
|
* organization API keys can use this header. The profile must belong to the
|
|
@@ -162,6 +147,6 @@ export interface ConversationListMessagesParams {
|
|
|
162
147
|
'x-profile-id'?: string;
|
|
163
148
|
}
|
|
164
149
|
export declare namespace Conversations {
|
|
165
|
-
export { type APIResponseOfConversationMessagesList as APIResponseOfConversationMessagesList, type ConversationMessagesList as ConversationMessagesList, type ConversationListParams as ConversationListParams, type ConversationListMessagesParams as ConversationListMessagesParams, };
|
|
150
|
+
export { type APIResponseOfConversationMessagesList as APIResponseOfConversationMessagesList, type ConversationMessagesList as ConversationMessagesList, type ConversationMessagesListMessagesConversationsPage as ConversationMessagesListMessagesConversationsPage, type ConversationListParams as ConversationListParams, type ConversationListMessagesParams as ConversationListMessagesParams, };
|
|
166
151
|
}
|
|
167
152
|
//# sourceMappingURL=conversations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,WAAW,EAAE,+BAA2B;AAElG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iDAAiD,EAAE,wBAAwB,CAAC,OAAO,CAAC;IAYnG;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iDAAiD,EAAE,wBAAwB,CAAC,OAAO,CAAC;CAepG;AAED,MAAM,MAAM,iDAAiD,GAC3D,iBAAiB,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,GAAG,IAAI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B,OAAO,CAAC;QACvB;;WAEG;QACH,UAAiB,KAAK;YACpB,MAAM,EAAE,MAAM,CAAC;YAEf,SAAS,EAAE,MAAM,CAAC;YAElB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC7B;QAED;;;WAGG;QACH,UAAiB,WAAW;YAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAE3C,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACxB;QAED,UAAiB,WAAW,CAAC;YAC3B,UAAiB,MAAM;gBACrB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAE7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAErB,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEd,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB;SACF;KACF;CACF;AAED,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,8BAA+B,SAAQ,uBAAuB;IAC7E;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iDAAiD,IAAI,iDAAiD,EAC3G,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as WebhooksAPI from "./webhooks.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ConversationsPage, type ConversationsPageParams, PagePromise } from "../core/pagination.js";
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
5
5
|
/**
|
|
6
6
|
* Inbound and outbound messages, grouped by the person they are with.
|
|
@@ -16,29 +16,30 @@ export declare class Conversations extends APIResource {
|
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* });
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const conversation of client.conversations.list()) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
24
23
|
* ```
|
|
25
24
|
*/
|
|
26
|
-
list(params
|
|
25
|
+
list(params?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationMessagesListMessagesConversationsPage, ConversationMessagesList.Message>;
|
|
27
26
|
/**
|
|
28
27
|
* Retrieves a paginated list of the messages in a single conversation (scoped to
|
|
29
28
|
* the authenticated customer), ordered by created date (most recent first).
|
|
30
29
|
*
|
|
31
30
|
* @example
|
|
32
31
|
* ```ts
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
32
|
+
* // Automatically fetches more pages as needed.
|
|
33
|
+
* for await (const conversation of client.conversations.listMessages(
|
|
34
|
+
* '08fab313-c9e2-502c-975e-08b0356c432e',
|
|
35
|
+
* )) {
|
|
36
|
+
* // ...
|
|
37
|
+
* }
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
listMessages(id: string, params
|
|
40
|
+
listMessages(id: string, params?: ConversationListMessagesParams | null | undefined, options?: RequestOptions): PagePromise<ConversationMessagesListMessagesConversationsPage, ConversationMessagesList.Message>;
|
|
41
41
|
}
|
|
42
|
+
export type ConversationMessagesListMessagesConversationsPage = ConversationsPage<ConversationMessagesList.Message>;
|
|
42
43
|
/**
|
|
43
44
|
* Standard API response envelope for all v3 endpoints
|
|
44
45
|
*/
|
|
@@ -129,15 +130,7 @@ export declare namespace ConversationMessagesList {
|
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
|
-
export interface ConversationListParams {
|
|
133
|
-
/**
|
|
134
|
-
* Query param
|
|
135
|
-
*/
|
|
136
|
-
page: number;
|
|
137
|
-
/**
|
|
138
|
-
* Query param
|
|
139
|
-
*/
|
|
140
|
-
page_size: number;
|
|
133
|
+
export interface ConversationListParams extends ConversationsPageParams {
|
|
141
134
|
/**
|
|
142
135
|
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
143
136
|
* organization API keys can use this header. The profile must belong to the
|
|
@@ -145,15 +138,7 @@ export interface ConversationListParams {
|
|
|
145
138
|
*/
|
|
146
139
|
'x-profile-id'?: string;
|
|
147
140
|
}
|
|
148
|
-
export interface ConversationListMessagesParams {
|
|
149
|
-
/**
|
|
150
|
-
* Query param
|
|
151
|
-
*/
|
|
152
|
-
page: number;
|
|
153
|
-
/**
|
|
154
|
-
* Query param
|
|
155
|
-
*/
|
|
156
|
-
page_size: number;
|
|
141
|
+
export interface ConversationListMessagesParams extends ConversationsPageParams {
|
|
157
142
|
/**
|
|
158
143
|
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
159
144
|
* organization API keys can use this header. The profile must belong to the
|
|
@@ -162,6 +147,6 @@ export interface ConversationListMessagesParams {
|
|
|
162
147
|
'x-profile-id'?: string;
|
|
163
148
|
}
|
|
164
149
|
export declare namespace Conversations {
|
|
165
|
-
export { type APIResponseOfConversationMessagesList as APIResponseOfConversationMessagesList, type ConversationMessagesList as ConversationMessagesList, type ConversationListParams as ConversationListParams, type ConversationListMessagesParams as ConversationListMessagesParams, };
|
|
150
|
+
export { type APIResponseOfConversationMessagesList as APIResponseOfConversationMessagesList, type ConversationMessagesList as ConversationMessagesList, type ConversationMessagesListMessagesConversationsPage as ConversationMessagesListMessagesConversationsPage, type ConversationListParams as ConversationListParams, type ConversationListMessagesParams as ConversationListMessagesParams, };
|
|
166
151
|
}
|
|
167
152
|
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,WAAW,EAAE,8BAA2B;AAElG,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iDAAiD,EAAE,wBAAwB,CAAC,OAAO,CAAC;IAYnG;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iDAAiD,EAAE,wBAAwB,CAAC,OAAO,CAAC;CAepG;AAED,MAAM,MAAM,iDAAiD,GAC3D,iBAAiB,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,IAAI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;YAElB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC7B;QAED;;;WAGG;QACH,UAAiB,WAAW;YAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAE3C,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACxB;QAED,UAAiB,WAAW,CAAC;YAC3B,UAAiB,MAAM;gBACrB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAE7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAErB,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEd,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB;SACF;KACF;CACF;AAED,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,8BAA+B,SAAQ,uBAAuB;IAC7E;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iDAAiD,IAAI,iDAAiD,EAC3G,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Conversations = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
6
7
|
const headers_1 = require("../internal/headers.js");
|
|
7
8
|
const path_1 = require("../internal/utils/path.js");
|
|
8
9
|
/**
|
|
@@ -19,16 +20,15 @@ class Conversations extends resource_1.APIResource {
|
|
|
19
20
|
*
|
|
20
21
|
* @example
|
|
21
22
|
* ```ts
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* });
|
|
23
|
+
* // Automatically fetches more pages as needed.
|
|
24
|
+
* for await (const conversation of client.conversations.list()) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
list(params, options) {
|
|
30
|
-
const { 'x-profile-id': xProfileID, ...query } = params;
|
|
31
|
-
return this._client.
|
|
29
|
+
list(params = {}, options) {
|
|
30
|
+
const { 'x-profile-id': xProfileID, ...query } = params ?? {};
|
|
31
|
+
return this._client.getAPIList('/v3/conversations', (pagination_1.ConversationsPage), {
|
|
32
32
|
query,
|
|
33
33
|
...options,
|
|
34
34
|
headers: (0, headers_1.buildHeaders)([
|
|
@@ -43,16 +43,17 @@ class Conversations extends resource_1.APIResource {
|
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* ```ts
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
46
|
+
* // Automatically fetches more pages as needed.
|
|
47
|
+
* for await (const conversation of client.conversations.listMessages(
|
|
48
|
+
* '08fab313-c9e2-502c-975e-08b0356c432e',
|
|
49
|
+
* )) {
|
|
50
|
+
* // ...
|
|
51
|
+
* }
|
|
51
52
|
* ```
|
|
52
53
|
*/
|
|
53
|
-
listMessages(id, params, options) {
|
|
54
|
-
const { 'x-profile-id': xProfileID, ...query } = params;
|
|
55
|
-
return this._client.
|
|
54
|
+
listMessages(id, params = {}, options) {
|
|
55
|
+
const { 'x-profile-id': xProfileID, ...query } = params ?? {};
|
|
56
|
+
return this._client.getAPIList((0, path_1.path) `/v3/conversations/${id}`, (pagination_1.ConversationsPage), {
|
|
56
57
|
query,
|
|
57
58
|
...options,
|
|
58
59
|
headers: (0, headers_1.buildHeaders)([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAkG;AAClG,oDAAmD;AAEnD,oDAA8C;AAE9C;;;;;;GAMG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,8BAAmD,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,EAAU,EACV,SAA4D,EAAE,EAC9D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAC7B,CAAA,8BAAmD,CAAA,EACnD;YACE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CACF,CAAC;IACJ,CAAC;CACF;AA7DD,sCA6DC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { ConversationsPage } from "../core/pagination.mjs";
|
|
3
4
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
5
|
import { path } from "../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
@@ -16,16 +17,15 @@ export class Conversations extends APIResource {
|
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
* ```ts
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* });
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const conversation of client.conversations.list()) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
list(params, options) {
|
|
27
|
-
const { 'x-profile-id': xProfileID, ...query } = params;
|
|
28
|
-
return this._client.
|
|
26
|
+
list(params = {}, options) {
|
|
27
|
+
const { 'x-profile-id': xProfileID, ...query } = params ?? {};
|
|
28
|
+
return this._client.getAPIList('/v3/conversations', (ConversationsPage), {
|
|
29
29
|
query,
|
|
30
30
|
...options,
|
|
31
31
|
headers: buildHeaders([
|
|
@@ -40,16 +40,17 @@ export class Conversations extends APIResource {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```ts
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
43
|
+
* // Automatically fetches more pages as needed.
|
|
44
|
+
* for await (const conversation of client.conversations.listMessages(
|
|
45
|
+
* '08fab313-c9e2-502c-975e-08b0356c432e',
|
|
46
|
+
* )) {
|
|
47
|
+
* // ...
|
|
48
|
+
* }
|
|
48
49
|
* ```
|
|
49
50
|
*/
|
|
50
|
-
listMessages(id, params, options) {
|
|
51
|
-
const { 'x-profile-id': xProfileID, ...query } = params;
|
|
52
|
-
return this._client.
|
|
51
|
+
listMessages(id, params = {}, options) {
|
|
52
|
+
const { 'x-profile-id': xProfileID, ...query } = params ?? {};
|
|
53
|
+
return this._client.getAPIList(path `/v3/conversations/${id}`, (ConversationsPage), {
|
|
53
54
|
query,
|
|
54
55
|
...options,
|
|
55
56
|
headers: buildHeaders([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;
|
|
1
|
+
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,iBAAiB,EAA6C,+BAA2B;AAClG,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;GAMG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,iBAAmD,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,EAAU,EACV,SAA4D,EAAE,EAC9D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAC7B,CAAA,iBAAmD,CAAA,EACnD;YACE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CACF,CAAC;IACJ,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Contacts, type APIResponseOfContact, type APIResponseOfContactMessageSummary, type ContactMessageSummary, type ContactResponse, type
|
|
2
|
-
export { Conversations, type APIResponseOfConversationMessagesList, type ConversationMessagesList, type ConversationListParams, type ConversationListMessagesParams, } from "./conversations.mjs";
|
|
1
|
+
export { Contacts, type APIResponseOfContact, type APIResponseOfContactMessageSummary, type ContactMessageSummary, type ContactResponse, type ContactCreateParams, type ContactRetrieveParams, type ContactUpdateParams, type ContactListParams, type ContactDeleteParams, type ContactRetrieveMessageSummaryParams, type ContactResponsesContactsPage, } from "./contacts.mjs";
|
|
2
|
+
export { Conversations, type APIResponseOfConversationMessagesList, type ConversationMessagesList, type ConversationListParams, type ConversationListMessagesParams, type ConversationMessagesListMessagesConversationsPage, } from "./conversations.mjs";
|
|
3
3
|
export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from "./me.mjs";
|
|
4
4
|
export { Messages, type MessageRetrieveActivitiesResponse, type MessageRetrieveStatusResponse, type MessageSendResponse, type MessageRetrieveActivitiesParams, type MessageRetrieveStatusParams, type MessageSendParams, } from "./messages.mjs";
|
|
5
5
|
export { Numbers, type NumberLookupResponse, type NumberLookupParams } from "./numbers.mjs";
|
|
6
6
|
export { Profiles, type APIResponseOfProfileDetail, type BillingContactInfo, type BrandBusinessInfo, type BrandComplianceInfo, type BrandContactInfo, type BrandsBrandData, type DestinationCountry, type PaymentDetails, type ProfileDetail, type TcrBrandRelationship, type TcrVertical, type ProfileListResponse, type ProfileCompleteResponse, type ProfileCreateParams, type ProfileRetrieveParams, type ProfileUpdateParams, type ProfileListParams, type ProfileDeleteParams, type ProfileCompleteParams, } from "./profiles/profiles.mjs";
|
|
7
|
-
export { Templates, type APIResponseTemplate, type AuthenticationConfig, type Template, type TemplateBody, type TemplateBodyContent, type TemplateButton, type TemplateButtonProps, type TemplateDefinition, type TemplateFooter, type TemplateHeader, type TemplateVariable, type
|
|
7
|
+
export { Templates, type APIResponseTemplate, type AuthenticationConfig, type Template, type TemplateBody, type TemplateBodyContent, type TemplateButton, type TemplateButtonProps, type TemplateDefinition, type TemplateFooter, type TemplateHeader, type TemplateVariable, type TemplateCreateParams, type TemplateRetrieveParams, type TemplateUpdateParams, type TemplateListParams, type TemplateDeleteParams, type TemplatesTemplatesPage, } from "./templates.mjs";
|
|
8
8
|
export { Users, type APIResponseOfUser, type UserResponse, type UserListResponse, type UserRetrieveParams, type UserListParams, type UserInviteParams, type UserRemoveParams, type UserUpdateRoleParams, } from "./users.mjs";
|
|
9
|
-
export { Webhooks, type APIMeta, type APIResponseWebhook, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type
|
|
9
|
+
export { Webhooks, type APIMeta, type APIResponseWebhook, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type WebhookListEventTypesResponse, type WebhookListEventsResponse, type WebhookRotateSecretResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookListEventTypesParams, type WebhookListEventsParams, type WebhookRotateSecretParams, type WebhookTestParams, type WebhookToggleStatusParams, type WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage, } from "./webhooks.mjs";
|
|
10
10
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACxC,KAAK,4BAA4B,GAClC,uBAAmB;AACpB,OAAO,EACL,aAAa,EACb,KAAK,qCAAqC,EAC1C,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,iDAAiD,GACvD,4BA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AAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,oBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,2CAA2C,GACjD,uBAAmB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Contacts, type APIResponseOfContact, type APIResponseOfContactMessageSummary, type ContactMessageSummary, type ContactResponse, type
|
|
2
|
-
export { Conversations, type APIResponseOfConversationMessagesList, type ConversationMessagesList, type ConversationListParams, type ConversationListMessagesParams, } from "./conversations.js";
|
|
1
|
+
export { Contacts, type APIResponseOfContact, type APIResponseOfContactMessageSummary, type ContactMessageSummary, type ContactResponse, type ContactCreateParams, type ContactRetrieveParams, type ContactUpdateParams, type ContactListParams, type ContactDeleteParams, type ContactRetrieveMessageSummaryParams, type ContactResponsesContactsPage, } from "./contacts.js";
|
|
2
|
+
export { Conversations, type APIResponseOfConversationMessagesList, type ConversationMessagesList, type ConversationListParams, type ConversationListMessagesParams, type ConversationMessagesListMessagesConversationsPage, } from "./conversations.js";
|
|
3
3
|
export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from "./me.js";
|
|
4
4
|
export { Messages, type MessageRetrieveActivitiesResponse, type MessageRetrieveStatusResponse, type MessageSendResponse, type MessageRetrieveActivitiesParams, type MessageRetrieveStatusParams, type MessageSendParams, } from "./messages.js";
|
|
5
5
|
export { Numbers, type NumberLookupResponse, type NumberLookupParams } from "./numbers.js";
|
|
6
6
|
export { Profiles, type APIResponseOfProfileDetail, type BillingContactInfo, type BrandBusinessInfo, type BrandComplianceInfo, type BrandContactInfo, type BrandsBrandData, type DestinationCountry, type PaymentDetails, type ProfileDetail, type TcrBrandRelationship, type TcrVertical, type ProfileListResponse, type ProfileCompleteResponse, type ProfileCreateParams, type ProfileRetrieveParams, type ProfileUpdateParams, type ProfileListParams, type ProfileDeleteParams, type ProfileCompleteParams, } from "./profiles/profiles.js";
|
|
7
|
-
export { Templates, type APIResponseTemplate, type AuthenticationConfig, type Template, type TemplateBody, type TemplateBodyContent, type TemplateButton, type TemplateButtonProps, type TemplateDefinition, type TemplateFooter, type TemplateHeader, type TemplateVariable, type
|
|
7
|
+
export { Templates, type APIResponseTemplate, type AuthenticationConfig, type Template, type TemplateBody, type TemplateBodyContent, type TemplateButton, type TemplateButtonProps, type TemplateDefinition, type TemplateFooter, type TemplateHeader, type TemplateVariable, type TemplateCreateParams, type TemplateRetrieveParams, type TemplateUpdateParams, type TemplateListParams, type TemplateDeleteParams, type TemplatesTemplatesPage, } from "./templates.js";
|
|
8
8
|
export { Users, type APIResponseOfUser, type UserResponse, type UserListResponse, type UserRetrieveParams, type UserListParams, type UserInviteParams, type UserRemoveParams, type UserUpdateRoleParams, } from "./users.js";
|
|
9
|
-
export { Webhooks, type APIMeta, type APIResponseWebhook, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type
|
|
9
|
+
export { Webhooks, type APIMeta, type APIResponseWebhook, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type WebhookListEventTypesResponse, type WebhookListEventsResponse, type WebhookRotateSecretResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookListEventTypesParams, type WebhookListEventsParams, type WebhookRotateSecretParams, type WebhookTestParams, type WebhookToggleStatusParams, type WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage, } from "./webhooks.js";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACxC,KAAK,4BAA4B,GAClC,sBAAmB;AACpB,OAAO,EACL,aAAa,EACb,KAAK,qCAAqC,EAC1C,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,iDAAiD,GACvD,2BAAwB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B,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,mBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,2CAA2C,GACjD,sBAAmB"}
|
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,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA;AAaV,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA;AAaV,oDAOyB;AANvB,8GAAA,aAAa,OAAA;AAOf,8BAAgG;AAAvF,wFAAA,EAAE,OAAA;AACX,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAAwF;AAA/E,kGAAA,OAAO,OAAA;AAChB,mDAqB6B;AApB3B,oGAAA,QAAQ,OAAA;AAqBV,4CAmBqB;AAlBnB,sGAAA,SAAS,OAAA;AAmBX,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,0CA+BoB;AA9BlB,oGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,EACL,aAAa,GAMd,4BAAwB;AACzB,OAAO,EAAE,EAAE,EAAwE,iBAAa;AAChG,OAAO,EACL,QAAQ,GAOT,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAsD,sBAAkB;AACxF,OAAO,EACL,QAAQ,GAoBT,gCAA4B;AAC7B,OAAO,EACL,SAAS,GAkBV,wBAAoB;AACrB,OAAO,EACL,KAAK,GASN,oBAAgB;AACjB,OAAO,EACL,QAAQ,GA8BT,uBAAmB"}
|