@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.
- package/CHANGELOG.md +117 -0
- package/README.md +71 -34
- package/client.d.mts +49 -21
- package/client.d.mts.map +1 -1
- package/client.d.ts +49 -21
- package/client.d.ts.map +1 -1
- package/client.js +52 -38
- package/client.js.map +1 -1
- package/client.mjs +52 -38
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/contacts.d.mts +243 -49
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +243 -49
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +112 -15
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +112 -15
- package/resources/contacts.mjs.map +1 -1
- package/resources/index.d.mts +8 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.mts +269 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +269 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +40 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +36 -0
- package/resources/me.mjs.map +1 -0
- package/resources/messages.d.mts +239 -133
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +239 -133
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +42 -50
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +42 -50
- package/resources/messages.mjs.map +1 -1
- package/resources/numbers.d.mts +70 -0
- package/resources/numbers.d.mts.map +1 -0
- package/resources/numbers.d.ts +70 -0
- package/resources/numbers.d.ts.map +1 -0
- package/resources/numbers.js +36 -0
- package/resources/numbers.js.map +1 -0
- package/resources/numbers.mjs +32 -0
- package/resources/numbers.mjs.map +1 -0
- package/resources/profiles/campaigns.d.mts +339 -0
- package/resources/profiles/campaigns.d.mts.map +1 -0
- package/resources/profiles/campaigns.d.ts +339 -0
- package/resources/profiles/campaigns.d.ts.map +1 -0
- package/resources/profiles/campaigns.js +148 -0
- package/resources/profiles/campaigns.js.map +1 -0
- package/resources/profiles/campaigns.mjs +144 -0
- package/resources/profiles/campaigns.mjs.map +1 -0
- package/resources/profiles/index.d.mts +3 -0
- package/resources/profiles/index.d.mts.map +1 -0
- package/resources/profiles/index.d.ts +3 -0
- package/resources/profiles/index.d.ts.map +1 -0
- package/resources/profiles/index.js +9 -0
- package/resources/profiles/index.js.map +1 -0
- package/resources/profiles/index.mjs +4 -0
- package/resources/profiles/index.mjs.map +1 -0
- package/resources/profiles/profiles.d.mts +967 -0
- package/resources/profiles/profiles.d.mts.map +1 -0
- package/resources/profiles/profiles.d.ts +967 -0
- package/resources/profiles/profiles.d.ts.map +1 -0
- package/resources/profiles/profiles.js +227 -0
- package/resources/profiles/profiles.js.map +1 -0
- package/resources/profiles/profiles.mjs +222 -0
- package/resources/profiles/profiles.mjs.map +1 -0
- package/resources/profiles.d.mts +2 -0
- package/resources/profiles.d.mts.map +1 -0
- package/resources/profiles.d.ts +2 -0
- package/resources/profiles.d.ts.map +1 -0
- package/resources/profiles.js +6 -0
- package/resources/profiles.js.map +1 -0
- package/resources/profiles.mjs +3 -0
- package/resources/profiles.mjs.map +1 -0
- package/resources/templates.d.mts +327 -191
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +327 -191
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +80 -35
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +80 -35
- package/resources/templates.mjs.map +1 -1
- package/resources/users.d.mts +251 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +251 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +124 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +120 -0
- package/resources/users.mjs.map +1 -0
- package/resources/webhooks.d.mts +639 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +639 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +237 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +233 -0
- package/resources/webhooks.mjs.map +1 -0
- package/src/client.ts +228 -80
- package/src/internal/utils/log.ts +0 -1
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/contacts.ts +335 -57
- package/src/resources/index.ts +81 -12
- package/src/resources/me.ts +333 -0
- package/src/resources/messages.ts +306 -147
- package/src/resources/numbers.ts +102 -0
- package/src/resources/profiles/campaigns.ts +501 -0
- package/src/resources/profiles/index.ts +38 -0
- package/src/resources/profiles/profiles.ts +1302 -0
- package/src/resources/profiles.ts +3 -0
- package/src/resources/templates.ts +424 -202
- package/src/resources/users.ts +366 -0
- package/src/resources/webhooks.ts +923 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/number-lookup.d.mts +0 -59
- package/resources/number-lookup.d.mts.map +0 -1
- package/resources/number-lookup.d.ts +0 -59
- package/resources/number-lookup.d.ts.map +0 -1
- package/resources/number-lookup.js +0 -17
- package/resources/number-lookup.js.map +0 -1
- package/resources/number-lookup.mjs +0 -13
- package/resources/number-lookup.mjs.map +0 -1
- 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,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI,GAAG,IAAI,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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"}
|
package/resources/me.js
ADDED
|
@@ -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"}
|
package/resources/me.mjs
ADDED
|
@@ -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"}
|
package/resources/messages.d.mts
CHANGED
|
@@ -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
|
|
7
|
-
*
|
|
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
|
|
15
|
-
* '
|
|
15
|
+
* const response = await client.messages.retrieveActivities(
|
|
16
|
+
* '8ba7b830-9dad-11d1-80b4-00c04fd430c8',
|
|
16
17
|
* );
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
|
-
|
|
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
|
-
*
|
|
36
|
-
*
|
|
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.
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* });
|
|
27
|
+
* const response = await client.messages.retrieveStatus(
|
|
28
|
+
* '8ba7b830-9dad-11d1-80b4-00c04fd430c8',
|
|
29
|
+
* );
|
|
46
30
|
* ```
|
|
47
31
|
*/
|
|
48
|
-
|
|
32
|
+
retrieveStatus(id: string, params?: MessageRetrieveStatusParams | null | undefined, options?: RequestOptions): APIPromise<MessageRetrieveStatusResponse>;
|
|
49
33
|
/**
|
|
50
|
-
* Sends a message to
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
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.
|
|
58
|
-
* phoneNumber: '+1234567890',
|
|
59
|
-
* templateId: '7ba7b820-9dad-11d1-80b4-00c04fd430c8',
|
|
60
|
-
* });
|
|
42
|
+
* const response = await client.messages.send();
|
|
61
43
|
* ```
|
|
62
44
|
*/
|
|
63
|
-
|
|
45
|
+
send(params: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse>;
|
|
64
46
|
}
|
|
65
47
|
/**
|
|
66
|
-
*
|
|
67
|
-
* (v2)
|
|
48
|
+
* Standard API response envelope for all v3 endpoints
|
|
68
49
|
*/
|
|
69
|
-
export interface
|
|
70
|
-
/**
|
|
71
|
-
* The unique identifier of the message
|
|
72
|
-
*/
|
|
73
|
-
id?: string;
|
|
50
|
+
export interface MessageRetrieveActivitiesResponse {
|
|
74
51
|
/**
|
|
75
|
-
*
|
|
52
|
+
* Response for GET /messages/{id}/activities
|
|
76
53
|
*/
|
|
77
|
-
|
|
54
|
+
data?: MessageRetrieveActivitiesResponse.Data | null;
|
|
78
55
|
/**
|
|
79
|
-
*
|
|
56
|
+
* Error information
|
|
80
57
|
*/
|
|
81
|
-
|
|
58
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
82
59
|
/**
|
|
83
|
-
*
|
|
60
|
+
* Request and response metadata
|
|
84
61
|
*/
|
|
85
|
-
|
|
62
|
+
meta?: WebhooksAPI.APIMeta;
|
|
86
63
|
/**
|
|
87
|
-
*
|
|
64
|
+
* Indicates whether the request was successful
|
|
88
65
|
*/
|
|
89
|
-
|
|
66
|
+
success?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export declare namespace MessageRetrieveActivitiesResponse {
|
|
90
69
|
/**
|
|
91
|
-
*
|
|
70
|
+
* Response for GET /messages/{id}/activities
|
|
92
71
|
*/
|
|
93
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
119
|
+
data?: MessageRetrieveStatusResponse.Data | null;
|
|
100
120
|
/**
|
|
101
|
-
*
|
|
121
|
+
* Error information
|
|
102
122
|
*/
|
|
103
|
-
|
|
123
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
104
124
|
/**
|
|
105
|
-
*
|
|
125
|
+
* Request and response metadata
|
|
106
126
|
*/
|
|
107
|
-
|
|
127
|
+
meta?: WebhooksAPI.APIMeta;
|
|
108
128
|
/**
|
|
109
|
-
*
|
|
129
|
+
* Indicates whether the request was successful
|
|
110
130
|
*/
|
|
111
|
-
|
|
131
|
+
success?: boolean;
|
|
132
|
+
}
|
|
133
|
+
export declare namespace MessageRetrieveStatusResponse {
|
|
112
134
|
/**
|
|
113
|
-
*
|
|
135
|
+
* Message response for v3 API — same shape as v2 with snake_case JSON conventions
|
|
114
136
|
*/
|
|
115
|
-
|
|
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
|
-
*
|
|
191
|
+
* Response for the multi-recipient send message endpoint
|
|
118
192
|
*/
|
|
119
|
-
|
|
193
|
+
data?: MessageSendResponse.Data | null;
|
|
120
194
|
/**
|
|
121
|
-
*
|
|
195
|
+
* Error information
|
|
122
196
|
*/
|
|
123
|
-
|
|
197
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
124
198
|
/**
|
|
125
|
-
*
|
|
126
|
-
* was used)
|
|
199
|
+
* Request and response metadata
|
|
127
200
|
*/
|
|
128
|
-
|
|
201
|
+
meta?: WebhooksAPI.APIMeta;
|
|
129
202
|
/**
|
|
130
|
-
*
|
|
203
|
+
* Indicates whether the request was successful
|
|
131
204
|
*/
|
|
132
|
-
|
|
205
|
+
success?: boolean;
|
|
133
206
|
}
|
|
134
|
-
export declare namespace
|
|
207
|
+
export declare namespace MessageSendResponse {
|
|
135
208
|
/**
|
|
136
|
-
*
|
|
137
|
-
* standards (Twilio, SendGrid, Mailgun pattern)
|
|
209
|
+
* Response for the multi-recipient send message endpoint
|
|
138
210
|
*/
|
|
139
|
-
interface
|
|
211
|
+
interface Data {
|
|
212
|
+
/**
|
|
213
|
+
* Resolved template body text
|
|
214
|
+
*/
|
|
215
|
+
body?: string | null;
|
|
140
216
|
/**
|
|
141
|
-
*
|
|
142
|
-
* additional context
|
|
217
|
+
* Per-recipient message results
|
|
143
218
|
*/
|
|
144
|
-
|
|
219
|
+
recipients?: Array<Data.Recipient>;
|
|
145
220
|
/**
|
|
146
|
-
*
|
|
147
|
-
* "delivered", "read", "failed"
|
|
221
|
+
* Overall request status (e.g. "accepted")
|
|
148
222
|
*/
|
|
149
223
|
status?: string;
|
|
150
224
|
/**
|
|
151
|
-
*
|
|
225
|
+
* Template ID that was used
|
|
152
226
|
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
|
254
|
+
export interface MessageRetrieveActivitiesParams {
|
|
172
255
|
/**
|
|
173
|
-
*
|
|
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
|
-
|
|
259
|
+
'x-profile-id'?: string;
|
|
260
|
+
}
|
|
261
|
+
export interface MessageRetrieveStatusParams {
|
|
176
262
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
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
|
-
|
|
266
|
+
'x-profile-id'?: string;
|
|
181
267
|
}
|
|
182
|
-
export interface
|
|
268
|
+
export interface MessageSendParams {
|
|
183
269
|
/**
|
|
184
|
-
*
|
|
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
|
-
|
|
274
|
+
channel?: Array<string> | null;
|
|
187
275
|
/**
|
|
188
|
-
*
|
|
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
|
-
|
|
279
|
+
sandbox?: boolean;
|
|
191
280
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* "name": "John Doe" }
|
|
281
|
+
* Body param: SDK-style template reference: resolve by ID or by name, with
|
|
282
|
+
* optional parameters.
|
|
195
283
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
*
|
|
203
|
-
*
|
|
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
|
-
|
|
295
|
+
'Idempotency-Key'?: string;
|
|
206
296
|
/**
|
|
207
|
-
*
|
|
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
|
-
|
|
301
|
+
'x-profile-id'?: string;
|
|
302
|
+
}
|
|
303
|
+
export declare namespace MessageSendParams {
|
|
210
304
|
/**
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
* "name": "John Doe" }
|
|
305
|
+
* SDK-style template reference: resolve by ID or by name, with optional
|
|
306
|
+
* parameters.
|
|
214
307
|
*/
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
|
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
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SA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