@sentdm/sentdm 0.42.0 → 0.43.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 +7 -0
- package/client.d.mts +2 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -0
- package/client.d.ts.map +1 -1
- package/client.js +2 -0
- package/client.js.map +1 -1
- package/client.mjs +2 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calls/calls.d.mts +10 -8
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +10 -8
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +5 -4
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +5 -4
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/participants.d.mts +5 -5
- package/resources/calls/participants.d.ts +5 -5
- package/resources/calls/participants.js +5 -5
- package/resources/calls/participants.mjs +5 -5
- package/resources/messages.d.mts +13 -8
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +13 -8
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +7 -4
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +7 -4
- package/resources/messages.mjs.map +1 -1
- package/resources/webhooks.d.mts +8 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +8 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/calls/calls.ts +10 -8
- package/src/resources/calls/participants.ts +5 -5
- package/src/resources/messages.ts +13 -8
- package/src/resources/webhooks.ts +8 -3
- 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
|
@@ -15,6 +15,8 @@ import { path } from '../internal/utils/path';
|
|
|
15
15
|
* **A message needs a sender.** What you can send, where, and at what cost is decided by the markets under **Channels** — so a recipient in a country you hold no sender for is refused here rather than queued.
|
|
16
16
|
*
|
|
17
17
|
* **A message can be resent on its id.** `POST /v3/messages/{id}/resend` puts a finished message — typically one BLOCKED for insufficient balance — back through the send pipeline. It is a new attempt, not a free retry: every policy runs again, the message is billed again, and its status webhooks fire again. A FILTERED message is never resendable.
|
|
18
|
+
*
|
|
19
|
+
* **A scheduled message can be called off.** `POST /v3/messages/{id}/cancel` cancels a send you scheduled with `scheduled_at`, as long as it has not been released yet. Cancelling is free, fires `message.cancelled`, and is final — a cancelled message cannot be resent.
|
|
18
20
|
*/
|
|
19
21
|
export class Messages extends APIResource {
|
|
20
22
|
/**
|
|
@@ -48,10 +50,11 @@ export class Messages extends APIResource {
|
|
|
48
50
|
/**
|
|
49
51
|
* Retrieves the current status and details of a message by ID. Includes delivery
|
|
50
52
|
* status, timestamps, and error information if applicable. A message that is or
|
|
51
|
-
* was held for a later time (a send you scheduled with scheduled_at,
|
|
52
|
-
*
|
|
53
|
-
* plus scheduled_at, the
|
|
54
|
-
*
|
|
53
|
+
* was held for a later time (a send you scheduled with scheduled_at, a quiet-hours
|
|
54
|
+
* hold, or a message you cancelled while it was held) is returned as a
|
|
55
|
+
* ScheduledMessageResponse: the same fields plus scheduled_at, the instant it is
|
|
56
|
+
* held for in UTC — or, on a CANCELLED message, the instant that was called off. A
|
|
57
|
+
* message sent immediately has no scheduled_at key.
|
|
55
58
|
*
|
|
56
59
|
* @example
|
|
57
60
|
* ```ts
|
|
@@ -213,10 +216,12 @@ export namespace MessageRetrieveActivitiesResponse {
|
|
|
213
216
|
reason_code?: string | null;
|
|
214
217
|
|
|
215
218
|
/**
|
|
216
|
-
* SCHEDULED activities only
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
219
|
+
* SCHEDULED and CANCELLED activities only, in UTC: on a SCHEDULED entry, when the
|
|
220
|
+
* held message will be released for delivery; on a CANCELLED entry, the instant
|
|
221
|
+
* that was called off. Same wire name as on the send response, the message and the
|
|
222
|
+
* webhook. Omitted on every other activity. A message that quiet hours moved at
|
|
223
|
+
* release has two SCHEDULED entries, each carrying the instant as it stood at that
|
|
224
|
+
* moment.
|
|
220
225
|
*/
|
|
221
226
|
scheduled_at?: string | null;
|
|
222
227
|
|
|
@@ -1173,13 +1173,18 @@ export interface MessageEventPayload {
|
|
|
1173
1173
|
/**
|
|
1174
1174
|
* message.scheduled only: why the message is held, either because you scheduled it
|
|
1175
1175
|
* or because the recipient is inside a protected quiet-hours window. Omitted on
|
|
1176
|
-
* every other event.
|
|
1176
|
+
* every other event, including message.cancelled — that is a property of the hold,
|
|
1177
|
+
* not of the cancellation, and repeating it there would read as "why was this
|
|
1178
|
+
* cancelled", which it does not answer.
|
|
1177
1179
|
*/
|
|
1178
1180
|
schedule_reason?: string | null;
|
|
1179
1181
|
|
|
1180
1182
|
/**
|
|
1181
|
-
* message.scheduled
|
|
1182
|
-
*
|
|
1183
|
+
* message.scheduled and message.cancelled only, in UTC (yyyy-MM-ddTHH:mm:ssZ): on
|
|
1184
|
+
* message.scheduled it is when the held message will be released for delivery, on
|
|
1185
|
+
* message.cancelled the release instant that was called off — the same instant,
|
|
1186
|
+
* before and after. A consumer that recorded a future send from the first event
|
|
1187
|
+
* has what it needs to un-record it from the second. Omitted on every other event.
|
|
1183
1188
|
*/
|
|
1184
1189
|
scheduled_at?: string | null;
|
|
1185
1190
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.43.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.43.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.43.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.43.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|