@sentdm/sentdm 0.38.0 → 0.39.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 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- 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/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/templates.d.mts +153 -13
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +153 -13
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +28 -2
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +28 -2
- package/resources/templates.mjs.map +1 -1
- package/resources/webhooks.d.mts +313 -22
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +313 -22
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +8 -0
- package/src/resources/index.ts +4 -0
- package/src/resources/templates.ts +154 -13
- package/src/resources/webhooks.ts +347 -21
- 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
package/resources/webhooks.d.ts
CHANGED
|
@@ -164,6 +164,256 @@ export interface APIResponseWebhook {
|
|
|
164
164
|
*/
|
|
165
165
|
success?: boolean;
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
|
|
169
|
+
* this shape and varies only in Payload.
|
|
170
|
+
*/
|
|
171
|
+
export interface ChannelEvent {
|
|
172
|
+
/**
|
|
173
|
+
* The specific event within the family, for example message.delivered,
|
|
174
|
+
* message.received or contact.opt_out. Absent on events that have no subtype, so
|
|
175
|
+
* treat it as optional.
|
|
176
|
+
*/
|
|
177
|
+
event?: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* The event family, for example message, templates or contact. Route on this
|
|
180
|
+
* first, then on event for the specific change.
|
|
181
|
+
*/
|
|
182
|
+
field?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Body of a channel event: where one of the customer's channels stands in
|
|
185
|
+
* provisioning and compliance. Delivered when a milestone moves — a registration
|
|
186
|
+
* filed, a verdict returned, a resubmission asked for, a sender gone live — so a
|
|
187
|
+
* customer's own onboarding UI does not have to poll GET /v3/channels.
|
|
188
|
+
*
|
|
189
|
+
* The subject is one item, never the account. A customer's "SMS channel" has no
|
|
190
|
+
* status; a market does. Country, NumberType and SenderValue name which one, so a
|
|
191
|
+
* customer terminating only to Kosovo never receives an event about US 10DLC.
|
|
192
|
+
*
|
|
193
|
+
* Status is the stable half of the contract. It is the same four-value set GET
|
|
194
|
+
* /v3/channels publishes, computed through the same code, so an event and a read
|
|
195
|
+
* of the same market cannot disagree. A subscriber that reads nothing but the
|
|
196
|
+
* status and the subject fields is a correct subscriber. The sub-type on the
|
|
197
|
+
* envelope names the specific milestone and is additive — that vocabulary comes
|
|
198
|
+
* from registries and carriers, which are parties Sent does not control.
|
|
199
|
+
*
|
|
200
|
+
* Status means provisioning and compliance are complete, not that a send will
|
|
201
|
+
* succeed right now. An account can be suspended, or a destination blocked by a
|
|
202
|
+
* routing rule, without either showing up here. Those are separate surfaces and
|
|
203
|
+
* deliberately not modelled on this payload.
|
|
204
|
+
*/
|
|
205
|
+
payload?: ChannelEventPayload | null;
|
|
206
|
+
/**
|
|
207
|
+
* The event-specific body.
|
|
208
|
+
*/
|
|
209
|
+
request_id?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
|
|
212
|
+
* time, not the time the underlying change happened. Use the timestamp inside the
|
|
213
|
+
* payload for the latter.
|
|
214
|
+
*/
|
|
215
|
+
timestamp?: string;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Body of a channel event: where one of the customer's channels stands in
|
|
219
|
+
* provisioning and compliance. Delivered when a milestone moves — a registration
|
|
220
|
+
* filed, a verdict returned, a resubmission asked for, a sender gone live — so a
|
|
221
|
+
* customer's own onboarding UI does not have to poll GET /v3/channels.
|
|
222
|
+
*
|
|
223
|
+
* The subject is one item, never the account. A customer's "SMS channel" has no
|
|
224
|
+
* status; a market does. Country, NumberType and SenderValue name which one, so a
|
|
225
|
+
* customer terminating only to Kosovo never receives an event about US 10DLC.
|
|
226
|
+
*
|
|
227
|
+
* Status is the stable half of the contract. It is the same four-value set GET
|
|
228
|
+
* /v3/channels publishes, computed through the same code, so an event and a read
|
|
229
|
+
* of the same market cannot disagree. A subscriber that reads nothing but the
|
|
230
|
+
* status and the subject fields is a correct subscriber. The sub-type on the
|
|
231
|
+
* envelope names the specific milestone and is additive — that vocabulary comes
|
|
232
|
+
* from registries and carriers, which are parties Sent does not control.
|
|
233
|
+
*
|
|
234
|
+
* Status means provisioning and compliance are complete, not that a send will
|
|
235
|
+
* succeed right now. An account can be suspended, or a destination blocked by a
|
|
236
|
+
* routing rule, without either showing up here. Those are separate surfaces and
|
|
237
|
+
* deliberately not modelled on this payload.
|
|
238
|
+
*/
|
|
239
|
+
export interface ChannelEventPayload {
|
|
240
|
+
/**
|
|
241
|
+
* The market's destination country as an ISO 3166-1 alpha-2 code, for example XK.
|
|
242
|
+
* Always present, and the property that identifies this payload among the
|
|
243
|
+
* delivered envelopes — see DeliveredWebhookEvents. Every event in this family
|
|
244
|
+
* reports one market, and a market has a country.
|
|
245
|
+
*/
|
|
246
|
+
country: string;
|
|
247
|
+
/**
|
|
248
|
+
* The account whose market this is, named as on every other family. When an
|
|
249
|
+
* organization receives an event for one of its sender profiles this is the
|
|
250
|
+
* profile, so a reseller compares it with its own id and anything different is one
|
|
251
|
+
* of its profiles.
|
|
252
|
+
*/
|
|
253
|
+
account_id?: string;
|
|
254
|
+
/**
|
|
255
|
+
* The channel this market belongs to: sms, whatsapp, or rcs. Never sent — that
|
|
256
|
+
* value belongs to message events, where it names the smart-routing brand rather
|
|
257
|
+
* than a channel that can be provisioned.
|
|
258
|
+
*/
|
|
259
|
+
channel?: string;
|
|
260
|
+
/**
|
|
261
|
+
* The kind of sender the market uses, for example TEN_DLC, LOCAL, or ALPHANUMERIC.
|
|
262
|
+
* Omitted when the subject has no sender type of its own.
|
|
263
|
+
*/
|
|
264
|
+
number_type?: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* Why the market reached this state, when a reason was given — a correction
|
|
267
|
+
* explained, or a campaign lapse. Free text, passed through from the registry or
|
|
268
|
+
* carrier that wrote it, so treat it as a message to show a human rather than a
|
|
269
|
+
* value to branch on.
|
|
270
|
+
*/
|
|
271
|
+
reason?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* The sender itself — a number in E.164, or an alphanumeric sender ID.
|
|
274
|
+
*
|
|
275
|
+
* Always present, and null until a sender exists. The key is on every delivery so
|
|
276
|
+
* a subscriber reads one shape rather than branching on whether the field arrived
|
|
277
|
+
* — the same choice template_id makes on the message payload.
|
|
278
|
+
*
|
|
279
|
+
* It can carry a value at any point in the lifecycle, not only once the market is
|
|
280
|
+
* live: a number ordered and not yet active at the carrier is already known during
|
|
281
|
+
* PROVISIONING, and an alphanumeric sender the customer chose themselves is known
|
|
282
|
+
* before anything is filed. It is null while the market is still waiting on a
|
|
283
|
+
* number, which for a US 10DLC registration is every event up to
|
|
284
|
+
* channel.activated.
|
|
285
|
+
*/
|
|
286
|
+
sender_value?: string | null;
|
|
287
|
+
/**
|
|
288
|
+
* Where the market stands: PENDING_REVIEW, ACTION_NEEDED, PROVISIONING, ACTIVE or
|
|
289
|
+
* INACTIVE. PENDING_REVIEW means a registry or a carrier holds it and the wait is
|
|
290
|
+
* theirs; ACTION_NEEDED means it is yours; PROVISIONING means the verdict is in
|
|
291
|
+
* and Sent is acquiring the sender; INACTIVE means it had a working sender and no
|
|
292
|
+
* longer does.
|
|
293
|
+
*
|
|
294
|
+
* Each event name is the transition into one of these, but the two are separate
|
|
295
|
+
* fields and may legitimately differ. A resubmission filed against a market whose
|
|
296
|
+
* sender is already live is channel.submitted carrying ACTIVE: a correction is
|
|
297
|
+
* with the registry and the sender keeps working. Read both.
|
|
298
|
+
*/
|
|
299
|
+
status?: string;
|
|
300
|
+
/**
|
|
301
|
+
* When the transition happened, in UTC (yyyy-MM-ddTHH:mm:ssZ).
|
|
302
|
+
*/
|
|
303
|
+
updated_at?: string;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
|
|
307
|
+
* this shape and varies only in Payload.
|
|
308
|
+
*/
|
|
309
|
+
export interface ContactEvent {
|
|
310
|
+
/**
|
|
311
|
+
* The specific event within the family, for example message.delivered,
|
|
312
|
+
* message.received or contact.opt_out. Absent on events that have no subtype, so
|
|
313
|
+
* treat it as optional.
|
|
314
|
+
*/
|
|
315
|
+
event?: string | null;
|
|
316
|
+
/**
|
|
317
|
+
* The event family, for example message, templates or contact. Route on this
|
|
318
|
+
* first, then on event for the specific change.
|
|
319
|
+
*/
|
|
320
|
+
field?: string;
|
|
321
|
+
/**
|
|
322
|
+
* Body of a contact.opt_in, contact.opt_out or contact.help event. Delivered when
|
|
323
|
+
* a contact signals a consent change or asks for help.
|
|
324
|
+
*
|
|
325
|
+
* These events state the signal outright, so you do not have to recognise keywords
|
|
326
|
+
* in the text of a message.received event. They also cover cases that produce no
|
|
327
|
+
* inbound message at all, such as a network handling an opt-out on your behalf.
|
|
328
|
+
*
|
|
329
|
+
* Fields are ordered identity → resulting state → provenance → join key. Nothing
|
|
330
|
+
* here restates the envelope: which of the three signals occurred is the
|
|
331
|
+
* envelope's event, and when it was emitted is its timestamp. Retries carry the
|
|
332
|
+
* same X-Webhook-Event-ID header, which is what to deduplicate on.
|
|
333
|
+
*/
|
|
334
|
+
payload?: ContactEventPayload | null;
|
|
335
|
+
/**
|
|
336
|
+
* The event-specific body.
|
|
337
|
+
*/
|
|
338
|
+
request_id?: string | null;
|
|
339
|
+
/**
|
|
340
|
+
* When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
|
|
341
|
+
* time, not the time the underlying change happened. Use the timestamp inside the
|
|
342
|
+
* payload for the latter.
|
|
343
|
+
*/
|
|
344
|
+
timestamp?: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Body of a contact.opt_in, contact.opt_out or contact.help event. Delivered when
|
|
348
|
+
* a contact signals a consent change or asks for help.
|
|
349
|
+
*
|
|
350
|
+
* These events state the signal outright, so you do not have to recognise keywords
|
|
351
|
+
* in the text of a message.received event. They also cover cases that produce no
|
|
352
|
+
* inbound message at all, such as a network handling an opt-out on your behalf.
|
|
353
|
+
*
|
|
354
|
+
* Fields are ordered identity → resulting state → provenance → join key. Nothing
|
|
355
|
+
* here restates the envelope: which of the three signals occurred is the
|
|
356
|
+
* envelope's event, and when it was emitted is its timestamp. Retries carry the
|
|
357
|
+
* same X-Webhook-Event-ID header, which is what to deduplicate on.
|
|
358
|
+
*/
|
|
359
|
+
export interface ContactEventPayload {
|
|
360
|
+
/**
|
|
361
|
+
* Whether the contact is opted out after this signal — the state to write to your
|
|
362
|
+
* own record. Same meaning as opt_out on the contact resource. On contact.help
|
|
363
|
+
* this reports the contact's existing state, which help does not change.
|
|
364
|
+
*
|
|
365
|
+
* Two signals from the same contact can arrive out of order, because each one is
|
|
366
|
+
* queued on its own rather than against the contact. Compare the envelope's
|
|
367
|
+
* timestamp before you overwrite a newer state with an older one. That timestamp
|
|
368
|
+
* is second-precision, so treat two signals stamped in the same second as
|
|
369
|
+
* unordered and read the contact resource to settle them.
|
|
370
|
+
*/
|
|
371
|
+
opt_out: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* How the signal reached us. INBOUND_KEYWORD means the contact sent a message
|
|
374
|
+
* whose text matched one of the keywords; PROVIDER_SIGNAL means the network
|
|
375
|
+
* reported it. A provider signal usually carries no message_id or text, so read
|
|
376
|
+
* both for null rather than inferring them from this field.
|
|
377
|
+
*/
|
|
378
|
+
source: string;
|
|
379
|
+
/**
|
|
380
|
+
* The account the contact belongs to. Present so one endpoint can serve several
|
|
381
|
+
* accounts.
|
|
382
|
+
*/
|
|
383
|
+
account_id?: string;
|
|
384
|
+
/**
|
|
385
|
+
* The channel the signal arrived on, for example sms or whatsapp.
|
|
386
|
+
*/
|
|
387
|
+
channel?: string;
|
|
388
|
+
/**
|
|
389
|
+
* The contact who raised the signal. Always populated, including for contact.help
|
|
390
|
+
* from a number you have not messaged before — the contact is created if it does
|
|
391
|
+
* not exist yet, so this identifier is always resolvable against the contacts API.
|
|
392
|
+
*/
|
|
393
|
+
contact_id?: string;
|
|
394
|
+
/**
|
|
395
|
+
* The inbound message that carried the signal, matching message_id on the
|
|
396
|
+
* corresponding message.received event so the two can be joined.
|
|
397
|
+
*
|
|
398
|
+
* Sent as null when the signal did not arrive as a message — for example when a
|
|
399
|
+
* network processed an opt-out on your behalf — and also when the message belongs
|
|
400
|
+
* to a different account than this event, which can happen on a shared WhatsApp
|
|
401
|
+
* number. The field is always present, so read it and check for null rather than
|
|
402
|
+
* checking whether the key exists.
|
|
403
|
+
*/
|
|
404
|
+
message_id?: string | null;
|
|
405
|
+
/**
|
|
406
|
+
* The contact's number in E.164 format. Same value as phone_number on the contact
|
|
407
|
+
* resource.
|
|
408
|
+
*/
|
|
409
|
+
phone_number?: string;
|
|
410
|
+
/**
|
|
411
|
+
* The text the contact sent, for example STOP or UNSUBSCRIBE. Sent as null when
|
|
412
|
+
* the signal did not arrive as text. The field is always present, so read it and
|
|
413
|
+
* check for null rather than checking whether the key exists.
|
|
414
|
+
*/
|
|
415
|
+
text?: string | null;
|
|
416
|
+
}
|
|
167
417
|
/**
|
|
168
418
|
* Error information
|
|
169
419
|
*/
|
|
@@ -193,14 +443,14 @@ export interface ErrorDetail {
|
|
|
193
443
|
*/
|
|
194
444
|
export interface InboundMessageEvent {
|
|
195
445
|
/**
|
|
196
|
-
* The specific event within the family, for example message.delivered
|
|
197
|
-
* message.received. Absent on events that have no subtype, so
|
|
198
|
-
* optional.
|
|
446
|
+
* The specific event within the family, for example message.delivered,
|
|
447
|
+
* message.received or contact.opt_out. Absent on events that have no subtype, so
|
|
448
|
+
* treat it as optional.
|
|
199
449
|
*/
|
|
200
450
|
event?: string | null;
|
|
201
451
|
/**
|
|
202
|
-
* The event family, for example message or
|
|
203
|
-
* event for the specific change.
|
|
452
|
+
* The event family, for example message, templates or contact. Route on this
|
|
453
|
+
* first, then on event for the specific change.
|
|
204
454
|
*/
|
|
205
455
|
field?: string;
|
|
206
456
|
/**
|
|
@@ -208,6 +458,10 @@ export interface InboundMessageEvent {
|
|
|
208
458
|
* numbers.
|
|
209
459
|
*/
|
|
210
460
|
payload?: InboundMessageEventPayload | null;
|
|
461
|
+
/**
|
|
462
|
+
* The event-specific body.
|
|
463
|
+
*/
|
|
464
|
+
request_id?: string | null;
|
|
211
465
|
/**
|
|
212
466
|
* When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
|
|
213
467
|
* time, not the time the underlying change happened. Use the timestamp inside the
|
|
@@ -262,14 +516,14 @@ export interface InboundMessageEventPayload {
|
|
|
262
516
|
*/
|
|
263
517
|
export interface MessageEvent {
|
|
264
518
|
/**
|
|
265
|
-
* The specific event within the family, for example message.delivered
|
|
266
|
-
* message.received. Absent on events that have no subtype, so
|
|
267
|
-
* optional.
|
|
519
|
+
* The specific event within the family, for example message.delivered,
|
|
520
|
+
* message.received or contact.opt_out. Absent on events that have no subtype, so
|
|
521
|
+
* treat it as optional.
|
|
268
522
|
*/
|
|
269
523
|
event?: string | null;
|
|
270
524
|
/**
|
|
271
|
-
* The event family, for example message or
|
|
272
|
-
* event for the specific change.
|
|
525
|
+
* The event family, for example message, templates or contact. Route on this
|
|
526
|
+
* first, then on event for the specific change.
|
|
273
527
|
*/
|
|
274
528
|
field?: string;
|
|
275
529
|
/**
|
|
@@ -278,6 +532,10 @@ export interface MessageEvent {
|
|
|
278
532
|
* status.
|
|
279
533
|
*/
|
|
280
534
|
payload?: MessageEventPayload | null;
|
|
535
|
+
/**
|
|
536
|
+
* The event-specific body.
|
|
537
|
+
*/
|
|
538
|
+
request_id?: string | null;
|
|
281
539
|
/**
|
|
282
540
|
* When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
|
|
283
541
|
* time, not the time the underlying change happened. Use the timestamp inside the
|
|
@@ -305,6 +563,12 @@ export interface MessageEventPayload {
|
|
|
305
563
|
* The agent attributed to the send, when the send was attributed to one.
|
|
306
564
|
*/
|
|
307
565
|
agent_id?: string | null;
|
|
566
|
+
/**
|
|
567
|
+
* The rendered message body, as plain text. Sent as null when we aren't asserting
|
|
568
|
+
* a body for this event. The field is always present, so read it and check for
|
|
569
|
+
* null rather than checking whether the key exists. Truncated to 3072 characters.
|
|
570
|
+
*/
|
|
571
|
+
body?: string | null;
|
|
308
572
|
/**
|
|
309
573
|
* The channel the message went out on, for example sms or whatsapp. A message that
|
|
310
574
|
* falls back to another channel reports the channel actually used.
|
|
@@ -390,14 +654,14 @@ export declare namespace PaginationMeta {
|
|
|
390
654
|
*/
|
|
391
655
|
export interface TemplateEvent {
|
|
392
656
|
/**
|
|
393
|
-
* The specific event within the family, for example message.delivered
|
|
394
|
-
* message.received. Absent on events that have no subtype, so
|
|
395
|
-
* optional.
|
|
657
|
+
* The specific event within the family, for example message.delivered,
|
|
658
|
+
* message.received or contact.opt_out. Absent on events that have no subtype, so
|
|
659
|
+
* treat it as optional.
|
|
396
660
|
*/
|
|
397
661
|
event?: string | null;
|
|
398
662
|
/**
|
|
399
|
-
* The event family, for example message or
|
|
400
|
-
* event for the specific change.
|
|
663
|
+
* The event family, for example message, templates or contact. Route on this
|
|
664
|
+
* first, then on event for the specific change.
|
|
401
665
|
*/
|
|
402
666
|
field?: string;
|
|
403
667
|
/**
|
|
@@ -405,6 +669,10 @@ export interface TemplateEvent {
|
|
|
405
669
|
* changes, so you can react without polling.
|
|
406
670
|
*/
|
|
407
671
|
payload?: TemplateEventPayload | null;
|
|
672
|
+
/**
|
|
673
|
+
* The event-specific body.
|
|
674
|
+
*/
|
|
675
|
+
request_id?: string | null;
|
|
408
676
|
/**
|
|
409
677
|
* When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
|
|
410
678
|
* time, not the time the underlying change happened. Use the timestamp inside the
|
|
@@ -430,14 +698,37 @@ export interface TemplateEventPayload {
|
|
|
430
698
|
* The account the template belongs to.
|
|
431
699
|
*/
|
|
432
700
|
account_id?: string;
|
|
701
|
+
/**
|
|
702
|
+
* Which consent keyword this template answers, when it is one of Sent's
|
|
703
|
+
* auto-replies: OPT_IN, OPT_OUT, HELP, or OTHER for a customer-defined keyword.
|
|
704
|
+
*
|
|
705
|
+
* Omitted for an ordinary template, so its presence is the answer to "is this an
|
|
706
|
+
* auto-reply". Sent creates the three compliance auto-replies at signup and they
|
|
707
|
+
* go through review like any other template, so their events arrive mixed in with
|
|
708
|
+
* the customer's own with nothing else to tell them apart.
|
|
709
|
+
*
|
|
710
|
+
* Named for the reader rather than after Template.OptAction, which it is mapped
|
|
711
|
+
* from. The MCP tool result deliberately keeps OptAction, OptKeywords and IsOpt:
|
|
712
|
+
* it mirrors the internal shape on purpose and publishes the keywords too, so
|
|
713
|
+
* renaming one of the three there would leave a surface half in each vocabulary.
|
|
714
|
+
* Two names for one concept, each consistent within its own surface, chosen over a
|
|
715
|
+
* rename that breaks MCP clients silently.
|
|
716
|
+
*/
|
|
717
|
+
auto_reply_action?: string | null;
|
|
433
718
|
/**
|
|
434
719
|
* The template's category, for example UTILITY, MARKETING, or AUTHENTICATION.
|
|
435
720
|
*/
|
|
436
721
|
category?: string;
|
|
437
722
|
/**
|
|
438
|
-
* The channel
|
|
723
|
+
* The channel leg this decision is about, for example whatsapp, sms, or rcs. A
|
|
724
|
+
* template is reviewed per channel and the legs come back independently, so each
|
|
725
|
+
* one reports separately.
|
|
726
|
+
*
|
|
727
|
+
* Omitted when the decision applies to the template as a whole rather than to one
|
|
728
|
+
* leg. That event is the broader news: a template-wide rejection blocks every
|
|
729
|
+
* channel, whatever the individual legs say.
|
|
439
730
|
*/
|
|
440
|
-
channel?: string;
|
|
731
|
+
channel?: string | null;
|
|
441
732
|
/**
|
|
442
733
|
* The template's language code, for example en_US.
|
|
443
734
|
*/
|
|
@@ -531,11 +822,11 @@ export interface WebhookListEventsResponse {
|
|
|
531
822
|
error_message?: string | null;
|
|
532
823
|
/**
|
|
533
824
|
* The exact event body that was delivered, or attempted, for this record. One of
|
|
534
|
-
* the
|
|
535
|
-
* template status change. Read field and event to
|
|
536
|
-
* endpoint does.
|
|
825
|
+
* the four webhook envelopes: a message status change, an inbound message, a
|
|
826
|
+
* template status change, or a contact consent signal. Read field and event to
|
|
827
|
+
* tell which, the same way your endpoint does.
|
|
537
828
|
*/
|
|
538
|
-
event_data?: MessageEvent | InboundMessageEvent | TemplateEvent;
|
|
829
|
+
event_data?: MessageEvent | InboundMessageEvent | TemplateEvent | ChannelEvent | ContactEvent;
|
|
539
830
|
event_type?: string;
|
|
540
831
|
http_status_code?: number | null;
|
|
541
832
|
processing_completed_at?: string | null;
|
|
@@ -806,6 +1097,6 @@ export interface WebhookToggleStatusParams {
|
|
|
806
1097
|
'x-profile-id'?: string;
|
|
807
1098
|
}
|
|
808
1099
|
export declare namespace Webhooks {
|
|
809
|
-
export { type APIMeta as APIMeta, type APIResponseWebhook as APIResponseWebhook, type ErrorDetail as ErrorDetail, type InboundMessageEvent as InboundMessageEvent, type InboundMessageEventPayload as InboundMessageEventPayload, type MessageEvent as MessageEvent, type MessageEventPayload as MessageEventPayload, type MutationRequest as MutationRequest, type PaginationMeta as PaginationMeta, type TemplateEvent as TemplateEvent, type TemplateEventPayload as TemplateEventPayload, type WebhookEventType as WebhookEventType, type WebhookResponse as WebhookResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookResponsesWebhooksPage as WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage as WebhookListEventsResponsesWebhookEventsPage, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookListEventTypesParams as WebhookListEventTypesParams, type WebhookListEventsParams as WebhookListEventsParams, type WebhookRotateSecretParams as WebhookRotateSecretParams, type WebhookTestParams as WebhookTestParams, type WebhookToggleStatusParams as WebhookToggleStatusParams, };
|
|
1100
|
+
export { type APIMeta as APIMeta, type APIResponseWebhook as APIResponseWebhook, type ChannelEvent as ChannelEvent, type ChannelEventPayload as ChannelEventPayload, type ContactEvent as ContactEvent, type ContactEventPayload as ContactEventPayload, type ErrorDetail as ErrorDetail, type InboundMessageEvent as InboundMessageEvent, type InboundMessageEventPayload as InboundMessageEventPayload, type MessageEvent as MessageEvent, type MessageEventPayload as MessageEventPayload, type MutationRequest as MutationRequest, type PaginationMeta as PaginationMeta, type TemplateEvent as TemplateEvent, type TemplateEventPayload as TemplateEventPayload, type WebhookEventType as WebhookEventType, type WebhookResponse as WebhookResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookResponsesWebhooksPage as WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage as WebhookListEventsResponsesWebhookEventsPage, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookListEventTypesParams as WebhookListEventTypesParams, type WebhookListEventsParams as WebhookListEventsParams, type WebhookRotateSecretParams as WebhookRotateSecretParams, type WebhookTestParams as WebhookTestParams, type WebhookToggleStatusParams as WebhookToggleStatusParams, };
|
|
810
1101
|
}
|
|
811
1102
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,YAAY,EACZ,KAAK,kBAAkB,EACxB,8BAA2B;AAE5B,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;GAMG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAe7F;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAWjC;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAezG;;;;;;;;;;OAUG;IACH,IAAI,CACF,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,4BAA4B,EAAE,eAAe,CAAC;IAY7D;;;;;;;;;OASG;IACH,MAAM,CACJ,EAAE,EAA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,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,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,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -98,6 +98,10 @@ import {
|
|
|
98
98
|
import {
|
|
99
99
|
APIMeta,
|
|
100
100
|
APIResponseWebhook,
|
|
101
|
+
ChannelEvent,
|
|
102
|
+
ChannelEventPayload,
|
|
103
|
+
ContactEvent,
|
|
104
|
+
ContactEventPayload,
|
|
101
105
|
ErrorDetail,
|
|
102
106
|
InboundMessageEvent,
|
|
103
107
|
InboundMessageEventPayload,
|
|
@@ -1000,6 +1004,10 @@ export declare namespace Sent {
|
|
|
1000
1004
|
Webhooks as Webhooks,
|
|
1001
1005
|
type APIMeta as APIMeta,
|
|
1002
1006
|
type APIResponseWebhook as APIResponseWebhook,
|
|
1007
|
+
type ChannelEvent as ChannelEvent,
|
|
1008
|
+
type ChannelEventPayload as ChannelEventPayload,
|
|
1009
|
+
type ContactEvent as ContactEvent,
|
|
1010
|
+
type ContactEventPayload as ContactEventPayload,
|
|
1003
1011
|
type ErrorDetail as ErrorDetail,
|
|
1004
1012
|
type InboundMessageEvent as InboundMessageEvent,
|
|
1005
1013
|
type InboundMessageEventPayload as InboundMessageEventPayload,
|
package/src/resources/index.ts
CHANGED