@sentdm/sentdm 0.7.2 → 0.14.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.
Files changed (161) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/README.md +71 -34
  3. package/client.d.mts +49 -21
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +49 -21
  6. package/client.d.ts.map +1 -1
  7. package/client.js +52 -38
  8. package/client.js.map +1 -1
  9. package/client.mjs +52 -38
  10. package/client.mjs.map +1 -1
  11. package/internal/tslib.js +17 -17
  12. package/internal/utils/log.d.mts.map +1 -1
  13. package/internal/utils/log.d.ts.map +1 -1
  14. package/internal/utils/log.js +0 -1
  15. package/internal/utils/log.js.map +1 -1
  16. package/internal/utils/log.mjs +0 -1
  17. package/internal/utils/log.mjs.map +1 -1
  18. package/internal/utils/query.d.mts +5 -0
  19. package/internal/utils/query.d.mts.map +1 -0
  20. package/internal/utils/query.d.ts +5 -0
  21. package/internal/utils/query.d.ts.map +1 -0
  22. package/internal/utils/query.js +23 -0
  23. package/internal/utils/query.js.map +1 -0
  24. package/internal/utils/query.mjs +20 -0
  25. package/internal/utils/query.mjs.map +1 -0
  26. package/internal/utils.d.mts +1 -0
  27. package/internal/utils.d.ts +1 -0
  28. package/internal/utils.js +1 -0
  29. package/internal/utils.js.map +1 -1
  30. package/internal/utils.mjs +1 -0
  31. package/package.json +7 -1
  32. package/resources/contacts.d.mts +243 -49
  33. package/resources/contacts.d.mts.map +1 -1
  34. package/resources/contacts.d.ts +243 -49
  35. package/resources/contacts.d.ts.map +1 -1
  36. package/resources/contacts.js +112 -15
  37. package/resources/contacts.js.map +1 -1
  38. package/resources/contacts.mjs +112 -15
  39. package/resources/contacts.mjs.map +1 -1
  40. package/resources/index.d.mts +8 -4
  41. package/resources/index.d.mts.map +1 -1
  42. package/resources/index.d.ts +8 -4
  43. package/resources/index.d.ts.map +1 -1
  44. package/resources/index.js +11 -3
  45. package/resources/index.js.map +1 -1
  46. package/resources/index.mjs +5 -1
  47. package/resources/index.mjs.map +1 -1
  48. package/resources/me.d.mts +269 -0
  49. package/resources/me.d.mts.map +1 -0
  50. package/resources/me.d.ts +269 -0
  51. package/resources/me.d.ts.map +1 -0
  52. package/resources/me.js +40 -0
  53. package/resources/me.js.map +1 -0
  54. package/resources/me.mjs +36 -0
  55. package/resources/me.mjs.map +1 -0
  56. package/resources/messages.d.mts +239 -133
  57. package/resources/messages.d.mts.map +1 -1
  58. package/resources/messages.d.ts +239 -133
  59. package/resources/messages.d.ts.map +1 -1
  60. package/resources/messages.js +42 -50
  61. package/resources/messages.js.map +1 -1
  62. package/resources/messages.mjs +42 -50
  63. package/resources/messages.mjs.map +1 -1
  64. package/resources/numbers.d.mts +70 -0
  65. package/resources/numbers.d.mts.map +1 -0
  66. package/resources/numbers.d.ts +70 -0
  67. package/resources/numbers.d.ts.map +1 -0
  68. package/resources/numbers.js +36 -0
  69. package/resources/numbers.js.map +1 -0
  70. package/resources/numbers.mjs +32 -0
  71. package/resources/numbers.mjs.map +1 -0
  72. package/resources/profiles/campaigns.d.mts +339 -0
  73. package/resources/profiles/campaigns.d.mts.map +1 -0
  74. package/resources/profiles/campaigns.d.ts +339 -0
  75. package/resources/profiles/campaigns.d.ts.map +1 -0
  76. package/resources/profiles/campaigns.js +148 -0
  77. package/resources/profiles/campaigns.js.map +1 -0
  78. package/resources/profiles/campaigns.mjs +144 -0
  79. package/resources/profiles/campaigns.mjs.map +1 -0
  80. package/resources/profiles/index.d.mts +3 -0
  81. package/resources/profiles/index.d.mts.map +1 -0
  82. package/resources/profiles/index.d.ts +3 -0
  83. package/resources/profiles/index.d.ts.map +1 -0
  84. package/resources/profiles/index.js +9 -0
  85. package/resources/profiles/index.js.map +1 -0
  86. package/resources/profiles/index.mjs +4 -0
  87. package/resources/profiles/index.mjs.map +1 -0
  88. package/resources/profiles/profiles.d.mts +967 -0
  89. package/resources/profiles/profiles.d.mts.map +1 -0
  90. package/resources/profiles/profiles.d.ts +967 -0
  91. package/resources/profiles/profiles.d.ts.map +1 -0
  92. package/resources/profiles/profiles.js +227 -0
  93. package/resources/profiles/profiles.js.map +1 -0
  94. package/resources/profiles/profiles.mjs +222 -0
  95. package/resources/profiles/profiles.mjs.map +1 -0
  96. package/resources/profiles.d.mts +2 -0
  97. package/resources/profiles.d.mts.map +1 -0
  98. package/resources/profiles.d.ts +2 -0
  99. package/resources/profiles.d.ts.map +1 -0
  100. package/resources/profiles.js +6 -0
  101. package/resources/profiles.js.map +1 -0
  102. package/resources/profiles.mjs +3 -0
  103. package/resources/profiles.mjs.map +1 -0
  104. package/resources/templates.d.mts +327 -191
  105. package/resources/templates.d.mts.map +1 -1
  106. package/resources/templates.d.ts +327 -191
  107. package/resources/templates.d.ts.map +1 -1
  108. package/resources/templates.js +80 -35
  109. package/resources/templates.js.map +1 -1
  110. package/resources/templates.mjs +80 -35
  111. package/resources/templates.mjs.map +1 -1
  112. package/resources/users.d.mts +251 -0
  113. package/resources/users.d.mts.map +1 -0
  114. package/resources/users.d.ts +251 -0
  115. package/resources/users.d.ts.map +1 -0
  116. package/resources/users.js +124 -0
  117. package/resources/users.js.map +1 -0
  118. package/resources/users.mjs +120 -0
  119. package/resources/users.mjs.map +1 -0
  120. package/resources/webhooks.d.mts +639 -0
  121. package/resources/webhooks.d.mts.map +1 -0
  122. package/resources/webhooks.d.ts +639 -0
  123. package/resources/webhooks.d.ts.map +1 -0
  124. package/resources/webhooks.js +237 -0
  125. package/resources/webhooks.js.map +1 -0
  126. package/resources/webhooks.mjs +233 -0
  127. package/resources/webhooks.mjs.map +1 -0
  128. package/src/client.ts +228 -80
  129. package/src/internal/utils/log.ts +0 -1
  130. package/src/internal/utils/query.ts +23 -0
  131. package/src/internal/utils.ts +1 -0
  132. package/src/resources/contacts.ts +335 -57
  133. package/src/resources/index.ts +81 -12
  134. package/src/resources/me.ts +333 -0
  135. package/src/resources/messages.ts +306 -147
  136. package/src/resources/numbers.ts +102 -0
  137. package/src/resources/profiles/campaigns.ts +501 -0
  138. package/src/resources/profiles/index.ts +38 -0
  139. package/src/resources/profiles/profiles.ts +1302 -0
  140. package/src/resources/profiles.ts +3 -0
  141. package/src/resources/templates.ts +424 -202
  142. package/src/resources/users.ts +366 -0
  143. package/src/resources/webhooks.ts +923 -0
  144. package/src/version.ts +1 -1
  145. package/version.d.mts +1 -1
  146. package/version.d.mts.map +1 -1
  147. package/version.d.ts +1 -1
  148. package/version.d.ts.map +1 -1
  149. package/version.js +1 -1
  150. package/version.js.map +1 -1
  151. package/version.mjs +1 -1
  152. package/version.mjs.map +1 -1
  153. package/resources/number-lookup.d.mts +0 -59
  154. package/resources/number-lookup.d.mts.map +0 -1
  155. package/resources/number-lookup.d.ts +0 -59
  156. package/resources/number-lookup.d.ts.map +0 -1
  157. package/resources/number-lookup.js +0 -17
  158. package/resources/number-lookup.js.map +0 -1
  159. package/resources/number-lookup.mjs +0 -13
  160. package/resources/number-lookup.mjs.map +0 -1
  161. package/src/resources/number-lookup.ts +0 -80
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAUlC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,aAAa,CAAC,EAAE,MAA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AC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;;eAGG;YACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,QAAQ,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC;YAEjC;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACxB;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Me = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const headers_1 = require("../internal/headers.js");
7
+ /**
8
+ * Retrieve account details
9
+ */
10
+ class Me extends resource_1.APIResource {
11
+ /**
12
+ * Returns the account associated with the provided API key. The response includes
13
+ * account identity, contact information, messaging channel configuration, and —
14
+ * depending on the account type — either a list of child profiles or the profile's
15
+ * own settings.
16
+ *
17
+ * **Account types:**
18
+ *
19
+ * - `organization` — Has child profiles. The `profiles` array is populated.
20
+ * - `user` — Standalone account with no profiles.
21
+ * - `profile` — Child of an organization. Includes `organization_id`,
22
+ * `short_name`, `status`, and `settings`.
23
+ *
24
+ * **Channels:** The `channels` object always includes `sms`, `whatsapp`, and
25
+ * `rcs`. Each channel has a `configured` boolean. Configured channels expose
26
+ * additional details such as `phone_number`.
27
+ */
28
+ retrieve(params = {}, options) {
29
+ const { 'x-profile-id': xProfileID } = params ?? {};
30
+ return this._client.get('/v3/me', {
31
+ ...options,
32
+ headers: (0, headers_1.buildHeaders)([
33
+ { ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
34
+ options?.headers,
35
+ ]),
36
+ });
37
+ }
38
+ }
39
+ exports.Me = Me;
40
+ //# sourceMappingURL=me.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAGnD;;GAEG;AACH,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,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;AA/BD,gBA+BC"}
@@ -0,0 +1,36 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { buildHeaders } from "../internal/headers.mjs";
4
+ /**
5
+ * Retrieve account details
6
+ */
7
+ export class Me extends APIResource {
8
+ /**
9
+ * Returns the account associated with the provided API key. The response includes
10
+ * account identity, contact information, messaging channel configuration, and —
11
+ * depending on the account type — either a list of child profiles or the profile's
12
+ * own settings.
13
+ *
14
+ * **Account types:**
15
+ *
16
+ * - `organization` — Has child profiles. The `profiles` array is populated.
17
+ * - `user` — Standalone account with no profiles.
18
+ * - `profile` — Child of an organization. Includes `organization_id`,
19
+ * `short_name`, `status`, and `settings`.
20
+ *
21
+ * **Channels:** The `channels` object always includes `sms`, `whatsapp`, and
22
+ * `rcs`. Each channel has a `configured` boolean. Configured channels expose
23
+ * additional details such as `phone_number`.
24
+ */
25
+ retrieve(params = {}, options) {
26
+ const { 'x-profile-id': xProfileID } = params ?? {};
27
+ return this._client.get('/v3/me', {
28
+ ...options,
29
+ headers: buildHeaders([
30
+ { ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
31
+ options?.headers,
32
+ ]),
33
+ });
34
+ }
35
+ }
36
+ //# sourceMappingURL=me.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me.mjs","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,YAAY,EAAE;AAGvB;;GAEG;AACH,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,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;CACF"}
@@ -1,222 +1,328 @@
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";
5
+ /**
6
+ * Send and track SMS and WhatsApp messages
7
+ */
4
8
  export declare class Messages extends APIResource {
5
9
  /**
6
- * Retrieves comprehensive details about a specific message using the message ID.
7
- * Returns complete message data including delivery status, channel information,
8
- * template details, contact information, and pricing. The customer ID is extracted
9
- * from the authentication token to ensure the message belongs to the authenticated
10
- * customer.
10
+ * Retrieves the activity log for a specific message. Activities track the message
11
+ * lifecycle including acceptance, processing, sending, delivery, and any errors.
11
12
  *
12
13
  * @example
13
14
  * ```ts
14
- * const message = await client.messages.retrieve(
15
- * '7ba7b820-9dad-11d1-80b4-00c04fd430c8',
15
+ * const response = await client.messages.retrieveActivities(
16
+ * '8ba7b830-9dad-11d1-80b4-00c04fd430c8',
16
17
  * );
17
18
  * ```
18
19
  */
19
- retrieve(id: string, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
20
- /**
21
- * Sends a message to a phone number using the default template. This endpoint is
22
- * rate limited to 5 messages per customer per day. The customer ID is extracted
23
- * from the authentication token.
24
- *
25
- * @example
26
- * ```ts
27
- * await client.messages.sendQuickMessage({
28
- * customMessage: 'Hello, this is a test message!',
29
- * phoneNumber: '+1234567890',
30
- * });
31
- * ```
32
- */
33
- sendQuickMessage(body: MessageSendQuickMessageParams, options?: RequestOptions): APIPromise<void>;
20
+ retrieveActivities(id: string, params?: MessageRetrieveActivitiesParams | null | undefined, options?: RequestOptions): APIPromise<MessageRetrieveActivitiesResponse>;
34
21
  /**
35
- * Sends a message to a specific contact using a template. The message can be sent
36
- * via SMS or WhatsApp depending on the contact's capabilities. Optionally specify
37
- * a webhook URL to receive delivery status updates. The customer ID is extracted
38
- * from the authentication token.
22
+ * Retrieves the current status and details of a message by ID. Includes delivery
23
+ * status, timestamps, and error information if applicable.
39
24
  *
40
25
  * @example
41
26
  * ```ts
42
- * await client.messages.sendToContact({
43
- * contactId: '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
44
- * templateId: '7ba7b820-9dad-11d1-80b4-00c04fd430c8',
45
- * });
27
+ * const response = await client.messages.retrieveStatus(
28
+ * '8ba7b830-9dad-11d1-80b4-00c04fd430c8',
29
+ * );
46
30
  * ```
47
31
  */
48
- sendToContact(body: MessageSendToContactParams, options?: RequestOptions): APIPromise<void>;
32
+ retrieveStatus(id: string, params?: MessageRetrieveStatusParams | null | undefined, options?: RequestOptions): APIPromise<MessageRetrieveStatusResponse>;
49
33
  /**
50
- * Sends a message to a phone number using a template. The phone number doesn't
51
- * need to be a pre-existing contact. The message can be sent via SMS or WhatsApp.
52
- * Optionally specify a webhook URL to receive delivery status updates. The
53
- * customer ID is extracted from the authentication token.
34
+ * Sends a message to one or more recipients using a template. Supports
35
+ * multi-channel broadcast — when multiple channels are specified (e.g. ["sms",
36
+ * "whatsapp"]), a separate message is created for each (recipient, channel) pair.
37
+ * Returns immediately with per-recipient message IDs for async tracking via
38
+ * webhooks or the GET /messages/{id} endpoint.
54
39
  *
55
40
  * @example
56
41
  * ```ts
57
- * await client.messages.sendToPhone({
58
- * phoneNumber: '+1234567890',
59
- * templateId: '7ba7b820-9dad-11d1-80b4-00c04fd430c8',
60
- * });
42
+ * const response = await client.messages.send();
61
43
  * ```
62
44
  */
63
- sendToPhone(body: MessageSendToPhoneParams, options?: RequestOptions): APIPromise<void>;
45
+ send(params: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse>;
64
46
  }
65
47
  /**
66
- * Represents a sent message with comprehensive delivery and template information
67
- * (v2)
48
+ * Standard API response envelope for all v3 endpoints
68
49
  */
69
- export interface MessageRetrieveResponse {
70
- /**
71
- * The unique identifier of the message
72
- */
73
- id?: string;
50
+ export interface MessageRetrieveActivitiesResponse {
74
51
  /**
75
- * The messaging channel used (e.g., SMS, WhatsApp)
52
+ * Response for GET /messages/{id}/activities
76
53
  */
77
- channel?: string;
54
+ data?: MessageRetrieveActivitiesResponse.Data | null;
78
55
  /**
79
- * The unique identifier of the contact who received the message
56
+ * Error information
80
57
  */
81
- contactId?: string;
58
+ error?: WebhooksAPI.ErrorDetail | null;
82
59
  /**
83
- * The final price charged for sending this message
60
+ * Request and response metadata
84
61
  */
85
- correctedPrice?: number | null;
62
+ meta?: WebhooksAPI.APIMeta;
86
63
  /**
87
- * The date and time when the message was created
64
+ * Indicates whether the request was successful
88
65
  */
89
- createdAt?: string;
66
+ success?: boolean;
67
+ }
68
+ export declare namespace MessageRetrieveActivitiesResponse {
90
69
  /**
91
- * The unique identifier of the customer who sent the message
70
+ * Response for GET /messages/{id}/activities
92
71
  */
93
- customerId?: string;
72
+ interface Data {
73
+ /**
74
+ * List of activity events ordered by most recent first
75
+ */
76
+ activities?: Array<Data.Activity>;
77
+ /**
78
+ * The message ID these activities belong to
79
+ */
80
+ message_id?: string;
81
+ }
82
+ namespace Data {
83
+ /**
84
+ * A single message activity event for v3 API
85
+ */
86
+ interface Activity {
87
+ /**
88
+ * Active contact markup applied on top of the channel cost, formatted to 4 decimal
89
+ * places.
90
+ */
91
+ active_contact_price?: string | null;
92
+ /**
93
+ * Human-readable description of the activity
94
+ */
95
+ description?: string;
96
+ /**
97
+ * Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
98
+ * 4 decimal places.
99
+ */
100
+ price?: string | null;
101
+ /**
102
+ * Activity status (e.g., ACCEPTED, PROCESSED, SENT, DELIVERED, FAILED)
103
+ */
104
+ status?: string;
105
+ /**
106
+ * When this activity occurred
107
+ */
108
+ timestamp?: string;
109
+ }
110
+ }
111
+ }
112
+ /**
113
+ * Standard API response envelope for all v3 endpoints
114
+ */
115
+ export interface MessageRetrieveStatusResponse {
94
116
  /**
95
- * A chronological list of status change events for this message. Each event
96
- * includes a status and timestamp, following industry standards (Twilio, SendGrid,
97
- * Mailgun). Events are ordered chronologically from oldest to newest.
117
+ * Message response for v3 API — same shape as v2 with snake_case JSON conventions
98
118
  */
99
- events?: Array<MessageRetrieveResponse.Event> | null;
119
+ data?: MessageRetrieveStatusResponse.Data | null;
100
120
  /**
101
- * The message body content with variables substituted
121
+ * Error information
102
122
  */
103
- messageBody?: MessageRetrieveResponse.MessageBody | null;
123
+ error?: WebhooksAPI.ErrorDetail | null;
104
124
  /**
105
- * The phone number of the recipient (E.164 format)
125
+ * Request and response metadata
106
126
  */
107
- phoneNumber?: string;
127
+ meta?: WebhooksAPI.APIMeta;
108
128
  /**
109
- * The phone number in international format
129
+ * Indicates whether the request was successful
110
130
  */
111
- phoneNumberInternational?: string;
131
+ success?: boolean;
132
+ }
133
+ export declare namespace MessageRetrieveStatusResponse {
112
134
  /**
113
- * The region code of the phone number (e.g., US, GB, DE)
135
+ * Message response for v3 API — same shape as v2 with snake_case JSON conventions
114
136
  */
115
- regionCode?: string;
137
+ interface Data {
138
+ id?: string;
139
+ active_contact_price?: number | null;
140
+ channel?: string;
141
+ contact_id?: string;
142
+ created_at?: string;
143
+ customer_id?: string;
144
+ events?: Array<Data.Event> | null;
145
+ /**
146
+ * Structured message body format for database storage. Preserves channel-specific
147
+ * components (header, body, footer, buttons).
148
+ */
149
+ message_body?: Data.MessageBody | null;
150
+ phone?: string;
151
+ phone_international?: string;
152
+ price?: number | null;
153
+ region_code?: string;
154
+ status?: string;
155
+ template_category?: string;
156
+ template_id?: string | null;
157
+ template_name?: string;
158
+ }
159
+ namespace Data {
160
+ /**
161
+ * Represents a status change event in a message's lifecycle (v3)
162
+ */
163
+ interface Event {
164
+ description?: string | null;
165
+ status?: string;
166
+ timestamp?: string;
167
+ }
168
+ /**
169
+ * Structured message body format for database storage. Preserves channel-specific
170
+ * components (header, body, footer, buttons).
171
+ */
172
+ interface MessageBody {
173
+ buttons?: Array<MessageBody.Button> | null;
174
+ content?: string;
175
+ footer?: string | null;
176
+ header?: string | null;
177
+ }
178
+ namespace MessageBody {
179
+ interface Button {
180
+ type?: string;
181
+ value?: string;
182
+ }
183
+ }
184
+ }
185
+ }
186
+ /**
187
+ * Standard API response envelope for all v3 endpoints
188
+ */
189
+ export interface MessageSendResponse {
116
190
  /**
117
- * The delivery status of the message (e.g., sent, delivered, failed, read)
191
+ * Response for the multi-recipient send message endpoint
118
192
  */
119
- status?: string;
193
+ data?: MessageSendResponse.Data | null;
120
194
  /**
121
- * The category of the template (e.g., MARKETING, UTILITY, AUTHENTICATION)
195
+ * Error information
122
196
  */
123
- templateCategory?: string;
197
+ error?: WebhooksAPI.ErrorDetail | null;
124
198
  /**
125
- * The unique identifier of the template used for this message (null if no template
126
- * was used)
199
+ * Request and response metadata
127
200
  */
128
- templateId?: string | null;
201
+ meta?: WebhooksAPI.APIMeta;
129
202
  /**
130
- * The display name of the template
203
+ * Indicates whether the request was successful
131
204
  */
132
- templateName?: string;
205
+ success?: boolean;
133
206
  }
134
- export declare namespace MessageRetrieveResponse {
207
+ export declare namespace MessageSendResponse {
135
208
  /**
136
- * Represents a status change event in a message's lifecycle Follows industry
137
- * standards (Twilio, SendGrid, Mailgun pattern)
209
+ * Response for the multi-recipient send message endpoint
138
210
  */
139
- interface Event {
211
+ interface Data {
212
+ /**
213
+ * Resolved template body text
214
+ */
215
+ body?: string | null;
140
216
  /**
141
- * Optional human-readable description of the event Useful for error messages or
142
- * additional context
217
+ * Per-recipient message results
143
218
  */
144
- description?: string | null;
219
+ recipients?: Array<Data.Recipient>;
145
220
  /**
146
- * The status of the message at this point in time Examples: "queued", "sent",
147
- * "delivered", "read", "failed"
221
+ * Overall request status (e.g. "accepted")
148
222
  */
149
223
  status?: string;
150
224
  /**
151
- * When this status change occurred (ISO 8601 format)
225
+ * Template ID that was used
152
226
  */
153
- timestamp?: string;
154
- }
155
- /**
156
- * The message body content with variables substituted
157
- */
158
- interface MessageBody {
159
- buttons?: Array<MessageBody.Button> | null;
160
- content?: string;
161
- footer?: string | null;
162
- header?: string | null;
227
+ template_id?: string;
228
+ /**
229
+ * Template display name
230
+ */
231
+ template_name?: string;
163
232
  }
164
- namespace MessageBody {
165
- interface Button {
166
- type?: string;
167
- value?: string;
233
+ namespace Data {
234
+ /**
235
+ * Per-recipient result in the send message response
236
+ */
237
+ interface Recipient {
238
+ /**
239
+ * Channel this message will be sent on (e.g. "sms", "whatsapp"), or null for
240
+ * auto-detect
241
+ */
242
+ channel?: string | null;
243
+ /**
244
+ * Unique message identifier for tracking this recipient's message
245
+ */
246
+ message_id?: string;
247
+ /**
248
+ * Phone number in E.164 format
249
+ */
250
+ to?: string;
168
251
  }
169
252
  }
170
253
  }
171
- export interface MessageSendQuickMessageParams {
254
+ export interface MessageRetrieveActivitiesParams {
172
255
  /**
173
- * The custom message content to include in the template
256
+ * Profile UUID to scope the request to a child profile. Only organization API keys
257
+ * can use this header. The profile must belong to the calling organization.
174
258
  */
175
- customMessage: string;
259
+ 'x-profile-id'?: string;
260
+ }
261
+ export interface MessageRetrieveStatusParams {
176
262
  /**
177
- * The phone number to send the message to, in international format (e.g.,
178
- * +1234567890)
263
+ * Profile UUID to scope the request to a child profile. Only organization API keys
264
+ * can use this header. The profile must belong to the calling organization.
179
265
  */
180
- phoneNumber: string;
266
+ 'x-profile-id'?: string;
181
267
  }
182
- export interface MessageSendToContactParams {
268
+ export interface MessageSendParams {
183
269
  /**
184
- * The unique identifier of the contact to send the message to
270
+ * Body param: Channels to broadcast on, e.g. ["whatsapp", "sms"]. Each channel
271
+ * produces a separate message per recipient. "sent" = auto-detect, "rcs" =
272
+ * reserved (skipped). Defaults to ["sent"] (auto-detect) if omitted.
185
273
  */
186
- contactId: string;
274
+ channel?: Array<string> | null;
187
275
  /**
188
- * The unique identifier of the template to use for the message
276
+ * Body param: Sandbox flag - when true, the operation is simulated without side
277
+ * effects Useful for testing integrations without actual execution
189
278
  */
190
- templateId: string;
279
+ sandbox?: boolean;
191
280
  /**
192
- * Optional key-value pairs of template variables to replace in the template body.
193
- * For example, if your template contains "Hello {{name}}", you would provide {
194
- * "name": "John Doe" }
281
+ * Body param: SDK-style template reference: resolve by ID or by name, with
282
+ * optional parameters.
195
283
  */
196
- templateVariables?: {
197
- [key: string]: string;
198
- } | null;
199
- }
200
- export interface MessageSendToPhoneParams {
284
+ template?: MessageSendParams.Template;
285
+ /**
286
+ * Body param: List of recipient phone numbers in E.164 format (multi-recipient
287
+ * fan-out)
288
+ */
289
+ to?: Array<string>;
201
290
  /**
202
- * The phone number to send the message to, in international format (e.g.,
203
- * +1234567890)
291
+ * Header param: Unique key to ensure idempotent request processing. Must be 1-255
292
+ * alphanumeric characters, hyphens, or underscores. Responses are cached for 24
293
+ * hours per key per customer.
204
294
  */
205
- phoneNumber: string;
295
+ 'Idempotency-Key'?: string;
206
296
  /**
207
- * The unique identifier of the template to use for the message
297
+ * Header param: Profile UUID to scope the request to a child profile. Only
298
+ * organization API keys can use this header. The profile must belong to the
299
+ * calling organization.
208
300
  */
209
- templateId: string;
301
+ 'x-profile-id'?: string;
302
+ }
303
+ export declare namespace MessageSendParams {
210
304
  /**
211
- * Optional key-value pairs of template variables to replace in the template body.
212
- * For example, if your template contains "Hello {{name}}", you would provide {
213
- * "name": "John Doe" }
305
+ * SDK-style template reference: resolve by ID or by name, with optional
306
+ * parameters.
214
307
  */
215
- templateVariables?: {
216
- [key: string]: string;
217
- } | null;
308
+ interface Template {
309
+ /**
310
+ * Template ID (mutually exclusive with name)
311
+ */
312
+ id?: string | null;
313
+ /**
314
+ * Template name (mutually exclusive with id)
315
+ */
316
+ name?: string | null;
317
+ /**
318
+ * Template variable parameters for personalization
319
+ */
320
+ parameters?: {
321
+ [key: string]: string;
322
+ } | null;
323
+ }
218
324
  }
219
325
  export declare namespace Messages {
220
- export { type MessageRetrieveResponse as MessageRetrieveResponse, type MessageSendQuickMessageParams as MessageSendQuickMessageParams, type MessageSendToContactParams as MessageSendToContactParams, type MessageSendToPhoneParams as MessageSendToPhoneParams, };
326
+ export { type MessageRetrieveActivitiesResponse as MessageRetrieveActivitiesResponse, type MessageRetrieveStatusResponse as MessageRetrieveStatusResponse, type MessageSendResponse as MessageSendResponse, type MessageRetrieveActivitiesParams as MessageRetrieveActivitiesParams, type MessageRetrieveStatusParams as MessageRetrieveStatusParams, type MessageSendParams as MessageSendParams, };
221
327
  }
222
328
  //# sourceMappingURL=messages.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInF;;;;;;;;;;;;OAYG;IACH,gBAAgB,CAAC,IAAI,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQjG;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ3F;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOxF;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAC,WAAW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