@sentdm/sentdm 0.35.0 → 0.37.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 +18 -0
- package/client.d.mts +14 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -14
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/contacts.d.mts +85 -589
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +85 -589
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +4 -4
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +4 -4
- package/resources/contacts.mjs.map +1 -1
- package/resources/conversations.d.mts +69 -328
- package/resources/conversations.d.mts.map +1 -1
- package/resources/conversations.d.ts +69 -328
- package/resources/conversations.d.ts.map +1 -1
- package/resources/conversations.js +10 -8
- package/resources/conversations.js.map +1 -1
- package/resources/conversations.mjs +10 -8
- package/resources/conversations.mjs.map +1 -1
- package/resources/index.d.mts +7 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.mts +81 -129
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +81 -129
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js +11 -0
- package/resources/me.js.map +1 -1
- package/resources/me.mjs +11 -0
- package/resources/me.mjs.map +1 -1
- package/resources/messages.d.mts +8 -171
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +8 -171
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/numbers.d.mts +3 -42
- package/resources/numbers.d.mts.map +1 -1
- package/resources/numbers.d.ts +3 -42
- package/resources/numbers.d.ts.map +1 -1
- package/resources/numbers.js.map +1 -1
- package/resources/numbers.mjs.map +1 -1
- package/resources/profiles/campaigns.d.mts +149 -544
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +149 -544
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/index.d.mts +2 -2
- package/resources/profiles/index.d.mts.map +1 -1
- package/resources/profiles/index.d.ts +2 -2
- package/resources/profiles/index.d.ts.map +1 -1
- package/resources/profiles/index.js.map +1 -1
- package/resources/profiles/index.mjs.map +1 -1
- package/resources/profiles/profiles.d.mts +411 -1821
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +411 -1821
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/templates.d.mts +84 -486
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +84 -486
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +3 -3
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +3 -3
- package/resources/templates.mjs.map +1 -1
- package/resources/users.d.mts +47 -437
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +47 -437
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -3
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -3
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +189 -768
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +189 -768
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +7 -6
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +7 -6
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +52 -39
- package/src/resources/contacts.ts +88 -678
- package/src/resources/conversations.ts +77 -393
- package/src/resources/index.ts +26 -20
- package/src/resources/me.ts +94 -148
- package/src/resources/messages.ts +8 -194
- package/src/resources/numbers.ts +3 -47
- package/src/resources/profiles/campaigns.ts +174 -673
- package/src/resources/profiles/index.ts +14 -6
- package/src/resources/profiles/profiles.ts +529 -2216
- package/src/resources/templates.ts +100 -572
- package/src/resources/users.ts +48 -505
- package/src/resources/webhooks.ts +297 -996
- 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,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;GAMG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,
|
|
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,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;GAMG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAe/F;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAWnC;;;;;;;;;OASG;IACH,MAAM,CAC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E,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;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,mBAAmB,IAAI,mBAAmB,EAC/C,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
|
@@ -19,7 +19,7 @@ class Contacts extends resource_1.APIResource {
|
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
22
|
-
* const
|
|
22
|
+
* const apiResponseOfContact = await client.contacts.create({
|
|
23
23
|
* phone_number: '+1234567890',
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
@@ -45,7 +45,7 @@ class Contacts extends resource_1.APIResource {
|
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```ts
|
|
48
|
-
* const
|
|
48
|
+
* const apiResponseOfContact = await client.contacts.retrieve(
|
|
49
49
|
* '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
|
|
50
50
|
* );
|
|
51
51
|
* ```
|
|
@@ -65,7 +65,7 @@ class Contacts extends resource_1.APIResource {
|
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* ```ts
|
|
68
|
-
* const
|
|
68
|
+
* const apiResponseOfContact = await client.contacts.update(
|
|
69
69
|
* '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
|
|
70
70
|
* );
|
|
71
71
|
* ```
|
|
@@ -140,7 +140,7 @@ class Contacts extends resource_1.APIResource {
|
|
|
140
140
|
*
|
|
141
141
|
* @example
|
|
142
142
|
* ```ts
|
|
143
|
-
* const
|
|
143
|
+
* const apiResponseOfContactMessageSummary =
|
|
144
144
|
* await client.contacts.retrieveMessageSummary(
|
|
145
145
|
* '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
|
|
146
146
|
* );
|
|
@@ -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;AAI/C,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;Y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IAED;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CACpB,SAAiB,EACjB,SAAiE,EAAE,EACnE,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,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;AAjKD,4BAiKC"}
|
package/resources/contacts.mjs
CHANGED
|
@@ -16,7 +16,7 @@ export class Contacts extends APIResource {
|
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
19
|
-
* const
|
|
19
|
+
* const apiResponseOfContact = await client.contacts.create({
|
|
20
20
|
* phone_number: '+1234567890',
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
@@ -42,7 +42,7 @@ export class Contacts extends APIResource {
|
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```ts
|
|
45
|
-
* const
|
|
45
|
+
* const apiResponseOfContact = await client.contacts.retrieve(
|
|
46
46
|
* '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
|
|
47
47
|
* );
|
|
48
48
|
* ```
|
|
@@ -62,7 +62,7 @@ export class Contacts extends APIResource {
|
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
65
|
-
* const
|
|
65
|
+
* const apiResponseOfContact = await client.contacts.update(
|
|
66
66
|
* '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
|
|
67
67
|
* );
|
|
68
68
|
* ```
|
|
@@ -137,7 +137,7 @@ export class Contacts extends APIResource {
|
|
|
137
137
|
*
|
|
138
138
|
* @example
|
|
139
139
|
* ```ts
|
|
140
|
-
* const
|
|
140
|
+
* const apiResponseOfContactMessageSummary =
|
|
141
141
|
* await client.contacts.retrieveMessageSummary(
|
|
142
142
|
* '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
|
|
143
143
|
* );
|
|
@@ -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;AAI/C,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,CA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AAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as WebhooksAPI from "./webhooks.mjs";
|
|
2
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
5
|
/**
|
|
@@ -15,378 +16,118 @@ export declare class Conversations extends APIResource {
|
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* ```ts
|
|
18
|
-
* const
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* const apiResponseOfConversationMessagesList =
|
|
20
|
+
* await client.conversations.list({
|
|
21
|
+
* page: 0,
|
|
22
|
+
* page_size: 0,
|
|
23
|
+
* });
|
|
22
24
|
* ```
|
|
23
25
|
*/
|
|
24
|
-
list(params: ConversationListParams, options?: RequestOptions): APIPromise<
|
|
26
|
+
list(params: ConversationListParams, options?: RequestOptions): APIPromise<APIResponseOfConversationMessagesList>;
|
|
25
27
|
/**
|
|
26
28
|
* Retrieves a paginated list of the messages in a single conversation (scoped to
|
|
27
29
|
* the authenticated customer), ordered by created date (most recent first).
|
|
28
30
|
*
|
|
29
31
|
* @example
|
|
30
32
|
* ```ts
|
|
31
|
-
* const
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
33
|
+
* const apiResponseOfConversationMessagesList =
|
|
34
|
+
* await client.conversations.listMessages(
|
|
35
|
+
* '08fab313-c9e2-502c-975e-08b0356c432e',
|
|
36
|
+
* { page: 0, page_size: 0 },
|
|
37
|
+
* );
|
|
35
38
|
* ```
|
|
36
39
|
*/
|
|
37
|
-
listMessages(id: string, params: ConversationListMessagesParams, options?: RequestOptions): APIPromise<
|
|
40
|
+
listMessages(id: string, params: ConversationListMessagesParams, options?: RequestOptions): APIPromise<APIResponseOfConversationMessagesList>;
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* Standard API response envelope for all v3 endpoints
|
|
41
44
|
*/
|
|
42
|
-
export interface
|
|
45
|
+
export interface APIResponseOfConversationMessagesList {
|
|
43
46
|
/**
|
|
44
47
|
* A paginated list of messages — used by both conversation read endpoints.
|
|
45
48
|
*/
|
|
46
|
-
data?:
|
|
49
|
+
data?: ConversationMessagesList | null;
|
|
47
50
|
/**
|
|
48
51
|
* Error information
|
|
49
52
|
*/
|
|
50
|
-
error?:
|
|
53
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
51
54
|
/**
|
|
52
55
|
* Request and response metadata
|
|
53
56
|
*/
|
|
54
|
-
meta?:
|
|
57
|
+
meta?: WebhooksAPI.APIMeta;
|
|
55
58
|
/**
|
|
56
59
|
* Indicates whether the request was successful
|
|
57
60
|
*/
|
|
58
61
|
success?: boolean;
|
|
59
62
|
}
|
|
60
|
-
export declare namespace ConversationListResponse {
|
|
61
|
-
/**
|
|
62
|
-
* A paginated list of messages — used by both conversation read endpoints.
|
|
63
|
-
*/
|
|
64
|
-
interface Data {
|
|
65
|
-
/**
|
|
66
|
-
* The messages on this page.
|
|
67
|
-
*/
|
|
68
|
-
messages?: Array<Data.Message>;
|
|
69
|
-
/**
|
|
70
|
-
* Pagination metadata for list responses
|
|
71
|
-
*/
|
|
72
|
-
pagination?: Data.Pagination;
|
|
73
|
-
}
|
|
74
|
-
namespace Data {
|
|
75
|
-
/**
|
|
76
|
-
* Message response for v3 API — same shape as v2 with snake_case JSON conventions
|
|
77
|
-
*/
|
|
78
|
-
interface Message {
|
|
79
|
-
id?: string;
|
|
80
|
-
active_contact_price?: number | null;
|
|
81
|
-
channel?: string;
|
|
82
|
-
contact_id?: string;
|
|
83
|
-
created_at?: string;
|
|
84
|
-
customer_id?: string;
|
|
85
|
-
direction?: string;
|
|
86
|
-
events?: Array<Message.Event> | null;
|
|
87
|
-
/**
|
|
88
|
-
* Structured message body format for database storage. Preserves channel-specific
|
|
89
|
-
* components (header, body, footer, buttons).
|
|
90
|
-
*/
|
|
91
|
-
message_body?: Message.MessageBody | null;
|
|
92
|
-
phone?: string;
|
|
93
|
-
phone_international?: string;
|
|
94
|
-
price?: number | null;
|
|
95
|
-
region_code?: string;
|
|
96
|
-
status?: string;
|
|
97
|
-
template_category?: string | null;
|
|
98
|
-
template_id?: string | null;
|
|
99
|
-
template_name?: string | null;
|
|
100
|
-
}
|
|
101
|
-
namespace Message {
|
|
102
|
-
/**
|
|
103
|
-
* Represents a status change event in a message's lifecycle (v3)
|
|
104
|
-
*/
|
|
105
|
-
interface Event {
|
|
106
|
-
status: string;
|
|
107
|
-
timestamp: string;
|
|
108
|
-
description?: string | null;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Structured message body format for database storage. Preserves channel-specific
|
|
112
|
-
* components (header, body, footer, buttons).
|
|
113
|
-
*/
|
|
114
|
-
interface MessageBody {
|
|
115
|
-
buttons?: Array<MessageBody.Button> | null;
|
|
116
|
-
content?: string;
|
|
117
|
-
footer?: string | null;
|
|
118
|
-
header?: string | null;
|
|
119
|
-
}
|
|
120
|
-
namespace MessageBody {
|
|
121
|
-
interface Button {
|
|
122
|
-
postbackData?: string | null;
|
|
123
|
-
text?: string | null;
|
|
124
|
-
type?: string;
|
|
125
|
-
value?: string;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Pagination metadata for list responses
|
|
131
|
-
*/
|
|
132
|
-
interface Pagination {
|
|
133
|
-
/**
|
|
134
|
-
* @deprecated Cursor-based pagination. Never populated — see Cursors.
|
|
135
|
-
*/
|
|
136
|
-
cursors?: Pagination.Cursors | null;
|
|
137
|
-
/**
|
|
138
|
-
* Whether there are more pages after this one
|
|
139
|
-
*/
|
|
140
|
-
has_more?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Current page number (1-indexed)
|
|
143
|
-
*/
|
|
144
|
-
page?: number;
|
|
145
|
-
/**
|
|
146
|
-
* Number of items per page
|
|
147
|
-
*/
|
|
148
|
-
page_size?: number;
|
|
149
|
-
/**
|
|
150
|
-
* Total number of items across all pages
|
|
151
|
-
*/
|
|
152
|
-
total_count?: number;
|
|
153
|
-
/**
|
|
154
|
-
* Total number of pages
|
|
155
|
-
*/
|
|
156
|
-
total_pages?: number;
|
|
157
|
-
}
|
|
158
|
-
namespace Pagination {
|
|
159
|
-
/**
|
|
160
|
-
* @deprecated Cursor-based pagination. Never populated — see Cursors.
|
|
161
|
-
*/
|
|
162
|
-
interface Cursors {
|
|
163
|
-
/**
|
|
164
|
-
* Cursor to fetch the next page.
|
|
165
|
-
*/
|
|
166
|
-
after?: string | null;
|
|
167
|
-
/**
|
|
168
|
-
* Cursor to fetch the previous page.
|
|
169
|
-
*/
|
|
170
|
-
before?: string | null;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Error information
|
|
176
|
-
*/
|
|
177
|
-
interface Error {
|
|
178
|
-
/**
|
|
179
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
180
|
-
*/
|
|
181
|
-
code?: string;
|
|
182
|
-
/**
|
|
183
|
-
* Additional validation error details (field-level errors)
|
|
184
|
-
*/
|
|
185
|
-
details?: {
|
|
186
|
-
[key: string]: Array<string>;
|
|
187
|
-
} | null;
|
|
188
|
-
/**
|
|
189
|
-
* URL to documentation about this error
|
|
190
|
-
*/
|
|
191
|
-
doc_url?: string | null;
|
|
192
|
-
/**
|
|
193
|
-
* Human-readable error message
|
|
194
|
-
*/
|
|
195
|
-
message?: string;
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Request and response metadata
|
|
199
|
-
*/
|
|
200
|
-
interface Meta {
|
|
201
|
-
/**
|
|
202
|
-
* Unique identifier for this request (for tracing and support)
|
|
203
|
-
*/
|
|
204
|
-
request_id?: string;
|
|
205
|
-
/**
|
|
206
|
-
* Server timestamp when the response was generated
|
|
207
|
-
*/
|
|
208
|
-
timestamp?: string;
|
|
209
|
-
/**
|
|
210
|
-
* API version used for this request
|
|
211
|
-
*/
|
|
212
|
-
version?: string;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
63
|
/**
|
|
216
|
-
*
|
|
64
|
+
* A paginated list of messages — used by both conversation read endpoints.
|
|
217
65
|
*/
|
|
218
|
-
export interface
|
|
219
|
-
/**
|
|
220
|
-
* A paginated list of messages — used by both conversation read endpoints.
|
|
221
|
-
*/
|
|
222
|
-
data?: ConversationListMessagesResponse.Data | null;
|
|
66
|
+
export interface ConversationMessagesList {
|
|
223
67
|
/**
|
|
224
|
-
*
|
|
68
|
+
* The messages on this page.
|
|
225
69
|
*/
|
|
226
|
-
|
|
70
|
+
messages?: Array<ConversationMessagesList.Message>;
|
|
227
71
|
/**
|
|
228
|
-
*
|
|
72
|
+
* Pagination metadata for list responses
|
|
229
73
|
*/
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Indicates whether the request was successful
|
|
233
|
-
*/
|
|
234
|
-
success?: boolean;
|
|
74
|
+
pagination?: WebhooksAPI.PaginationMeta;
|
|
235
75
|
}
|
|
236
|
-
export declare namespace
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
239
|
-
*/
|
|
240
|
-
interface
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
76
|
+
export declare namespace ConversationMessagesList {
|
|
77
|
+
/**
|
|
78
|
+
* Message response for v3 API — same shape as v2 with snake_case JSON conventions
|
|
79
|
+
*/
|
|
80
|
+
interface Message {
|
|
81
|
+
id?: string;
|
|
82
|
+
active_contact_price?: number | null;
|
|
83
|
+
channel?: string;
|
|
84
|
+
contact_id?: string;
|
|
85
|
+
created_at?: string;
|
|
86
|
+
customer_id?: string;
|
|
87
|
+
direction?: string;
|
|
88
|
+
events?: Array<Message.Event> | null;
|
|
89
|
+
/**
|
|
90
|
+
* Structured message body format for database storage. Preserves channel-specific
|
|
91
|
+
* components (header, body, footer, buttons).
|
|
92
|
+
*/
|
|
93
|
+
message_body?: Message.MessageBody | null;
|
|
94
|
+
phone?: string;
|
|
95
|
+
phone_international?: string;
|
|
96
|
+
price?: number | null;
|
|
97
|
+
region_code?: string;
|
|
98
|
+
status?: string;
|
|
99
|
+
template_category?: string | null;
|
|
100
|
+
template_id?: string | null;
|
|
101
|
+
template_name?: string | null;
|
|
249
102
|
}
|
|
250
|
-
namespace
|
|
103
|
+
namespace Message {
|
|
251
104
|
/**
|
|
252
|
-
*
|
|
105
|
+
* Represents a status change event in a message's lifecycle (v3)
|
|
253
106
|
*/
|
|
254
|
-
interface
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
contact_id?: string;
|
|
259
|
-
created_at?: string;
|
|
260
|
-
customer_id?: string;
|
|
261
|
-
direction?: string;
|
|
262
|
-
events?: Array<Message.Event> | null;
|
|
263
|
-
/**
|
|
264
|
-
* Structured message body format for database storage. Preserves channel-specific
|
|
265
|
-
* components (header, body, footer, buttons).
|
|
266
|
-
*/
|
|
267
|
-
message_body?: Message.MessageBody | null;
|
|
268
|
-
phone?: string;
|
|
269
|
-
phone_international?: string;
|
|
270
|
-
price?: number | null;
|
|
271
|
-
region_code?: string;
|
|
272
|
-
status?: string;
|
|
273
|
-
template_category?: string | null;
|
|
274
|
-
template_id?: string | null;
|
|
275
|
-
template_name?: string | null;
|
|
276
|
-
}
|
|
277
|
-
namespace Message {
|
|
278
|
-
/**
|
|
279
|
-
* Represents a status change event in a message's lifecycle (v3)
|
|
280
|
-
*/
|
|
281
|
-
interface Event {
|
|
282
|
-
status: string;
|
|
283
|
-
timestamp: string;
|
|
284
|
-
description?: string | null;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Structured message body format for database storage. Preserves channel-specific
|
|
288
|
-
* components (header, body, footer, buttons).
|
|
289
|
-
*/
|
|
290
|
-
interface MessageBody {
|
|
291
|
-
buttons?: Array<MessageBody.Button> | null;
|
|
292
|
-
content?: string;
|
|
293
|
-
footer?: string | null;
|
|
294
|
-
header?: string | null;
|
|
295
|
-
}
|
|
296
|
-
namespace MessageBody {
|
|
297
|
-
interface Button {
|
|
298
|
-
postbackData?: string | null;
|
|
299
|
-
text?: string | null;
|
|
300
|
-
type?: string;
|
|
301
|
-
value?: string;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
107
|
+
interface Event {
|
|
108
|
+
status: string;
|
|
109
|
+
timestamp: string;
|
|
110
|
+
description?: string | null;
|
|
304
111
|
}
|
|
305
112
|
/**
|
|
306
|
-
*
|
|
113
|
+
* Structured message body format for database storage. Preserves channel-specific
|
|
114
|
+
* components (header, body, footer, buttons).
|
|
307
115
|
*/
|
|
308
|
-
interface
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Whether there are more pages after this one
|
|
315
|
-
*/
|
|
316
|
-
has_more?: boolean;
|
|
317
|
-
/**
|
|
318
|
-
* Current page number (1-indexed)
|
|
319
|
-
*/
|
|
320
|
-
page?: number;
|
|
321
|
-
/**
|
|
322
|
-
* Number of items per page
|
|
323
|
-
*/
|
|
324
|
-
page_size?: number;
|
|
325
|
-
/**
|
|
326
|
-
* Total number of items across all pages
|
|
327
|
-
*/
|
|
328
|
-
total_count?: number;
|
|
329
|
-
/**
|
|
330
|
-
* Total number of pages
|
|
331
|
-
*/
|
|
332
|
-
total_pages?: number;
|
|
116
|
+
interface MessageBody {
|
|
117
|
+
buttons?: Array<MessageBody.Button> | null;
|
|
118
|
+
content?: string;
|
|
119
|
+
footer?: string | null;
|
|
120
|
+
header?: string | null;
|
|
333
121
|
}
|
|
334
|
-
namespace
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
* Cursor to fetch the next page.
|
|
341
|
-
*/
|
|
342
|
-
after?: string | null;
|
|
343
|
-
/**
|
|
344
|
-
* Cursor to fetch the previous page.
|
|
345
|
-
*/
|
|
346
|
-
before?: string | null;
|
|
122
|
+
namespace MessageBody {
|
|
123
|
+
interface Button {
|
|
124
|
+
postbackData?: string | null;
|
|
125
|
+
text?: string | null;
|
|
126
|
+
type?: string;
|
|
127
|
+
value?: string;
|
|
347
128
|
}
|
|
348
129
|
}
|
|
349
130
|
}
|
|
350
|
-
/**
|
|
351
|
-
* Error information
|
|
352
|
-
*/
|
|
353
|
-
interface Error {
|
|
354
|
-
/**
|
|
355
|
-
* Machine-readable error code (e.g., "RESOURCE_001")
|
|
356
|
-
*/
|
|
357
|
-
code?: string;
|
|
358
|
-
/**
|
|
359
|
-
* Additional validation error details (field-level errors)
|
|
360
|
-
*/
|
|
361
|
-
details?: {
|
|
362
|
-
[key: string]: Array<string>;
|
|
363
|
-
} | null;
|
|
364
|
-
/**
|
|
365
|
-
* URL to documentation about this error
|
|
366
|
-
*/
|
|
367
|
-
doc_url?: string | null;
|
|
368
|
-
/**
|
|
369
|
-
* Human-readable error message
|
|
370
|
-
*/
|
|
371
|
-
message?: string;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Request and response metadata
|
|
375
|
-
*/
|
|
376
|
-
interface Meta {
|
|
377
|
-
/**
|
|
378
|
-
* Unique identifier for this request (for tracing and support)
|
|
379
|
-
*/
|
|
380
|
-
request_id?: string;
|
|
381
|
-
/**
|
|
382
|
-
* Server timestamp when the response was generated
|
|
383
|
-
*/
|
|
384
|
-
timestamp?: string;
|
|
385
|
-
/**
|
|
386
|
-
* API version used for this request
|
|
387
|
-
*/
|
|
388
|
-
version?: string;
|
|
389
|
-
}
|
|
390
131
|
}
|
|
391
132
|
export interface ConversationListParams {
|
|
392
133
|
/**
|
|
@@ -421,6 +162,6 @@ export interface ConversationListMessagesParams {
|
|
|
421
162
|
'x-profile-id'?: string;
|
|
422
163
|
}
|
|
423
164
|
export declare namespace Conversations {
|
|
424
|
-
export { type
|
|
165
|
+
export { type APIResponseOfConversationMessagesList as APIResponseOfConversationMessagesList, type ConversationMessagesList as ConversationMessagesList, type ConversationListParams as ConversationListParams, type ConversationListMessagesParams as ConversationListMessagesParams, };
|
|
425
166
|
}
|
|
426
167
|
//# 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,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
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,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;IAYpD;;;;;;;;;;;;OAYG;IACH,YAAY,CACV,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,8BAA8B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;CAWrD;AAED;;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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