@sentdm/sentdm 0.32.0 → 0.34.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 (94) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/client.d.mts +11 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/contacts.d.mts +66 -1
  12. package/resources/contacts.d.mts.map +1 -1
  13. package/resources/contacts.d.ts +66 -1
  14. package/resources/contacts.d.ts.map +1 -1
  15. package/resources/contacts.js +24 -0
  16. package/resources/contacts.js.map +1 -1
  17. package/resources/contacts.mjs +24 -0
  18. package/resources/contacts.mjs.map +1 -1
  19. package/resources/conversations.d.mts +160 -0
  20. package/resources/conversations.d.mts.map +1 -0
  21. package/resources/conversations.d.ts +160 -0
  22. package/resources/conversations.d.ts.map +1 -0
  23. package/resources/conversations.js +59 -0
  24. package/resources/conversations.js.map +1 -0
  25. package/resources/conversations.mjs +55 -0
  26. package/resources/conversations.mjs.map +1 -0
  27. package/resources/index.d.mts +5 -4
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +5 -4
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +3 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +1 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/messages.d.mts +7 -3
  36. package/resources/messages.d.mts.map +1 -1
  37. package/resources/messages.d.ts +7 -3
  38. package/resources/messages.d.ts.map +1 -1
  39. package/resources/messages.js +6 -1
  40. package/resources/messages.js.map +1 -1
  41. package/resources/messages.mjs +6 -1
  42. package/resources/messages.mjs.map +1 -1
  43. package/resources/profiles/campaigns.d.mts +112 -83
  44. package/resources/profiles/campaigns.d.mts.map +1 -1
  45. package/resources/profiles/campaigns.d.ts +112 -83
  46. package/resources/profiles/campaigns.d.ts.map +1 -1
  47. package/resources/profiles/campaigns.js +6 -5
  48. package/resources/profiles/campaigns.js.map +1 -1
  49. package/resources/profiles/campaigns.mjs +6 -5
  50. package/resources/profiles/campaigns.mjs.map +1 -1
  51. package/resources/profiles/index.d.mts +2 -2
  52. package/resources/profiles/index.d.mts.map +1 -1
  53. package/resources/profiles/index.d.ts +2 -2
  54. package/resources/profiles/index.d.ts.map +1 -1
  55. package/resources/profiles/profiles.d.mts +151 -139
  56. package/resources/profiles/profiles.d.mts.map +1 -1
  57. package/resources/profiles/profiles.d.ts +151 -139
  58. package/resources/profiles/profiles.d.ts.map +1 -1
  59. package/resources/profiles/profiles.js +39 -21
  60. package/resources/profiles/profiles.js.map +1 -1
  61. package/resources/profiles/profiles.mjs +39 -21
  62. package/resources/profiles/profiles.mjs.map +1 -1
  63. package/resources/templates.d.mts +87 -87
  64. package/resources/templates.d.mts.map +1 -1
  65. package/resources/templates.d.ts +87 -87
  66. package/resources/templates.d.ts.map +1 -1
  67. package/resources/users.d.mts +5 -3
  68. package/resources/users.d.mts.map +1 -1
  69. package/resources/users.d.ts +5 -3
  70. package/resources/users.d.ts.map +1 -1
  71. package/resources/users.js +5 -3
  72. package/resources/users.js.map +1 -1
  73. package/resources/users.mjs +5 -3
  74. package/resources/users.mjs.map +1 -1
  75. package/resources/webhooks.d.mts +226 -2
  76. package/resources/webhooks.d.mts.map +1 -1
  77. package/resources/webhooks.d.ts +226 -2
  78. package/resources/webhooks.d.ts.map +1 -1
  79. package/src/client.ts +53 -18
  80. package/src/resources/contacts.ts +96 -0
  81. package/src/resources/conversations.ts +238 -0
  82. package/src/resources/index.ts +25 -9
  83. package/src/resources/messages.ts +7 -3
  84. package/src/resources/profiles/campaigns.ts +160 -132
  85. package/src/resources/profiles/index.ts +8 -8
  86. package/src/resources/profiles/profiles.ts +185 -175
  87. package/src/resources/templates.ts +105 -105
  88. package/src/resources/users.ts +5 -3
  89. package/src/resources/webhooks.ts +269 -1
  90. package/src/version.ts +1 -1
  91. package/version.d.mts +1 -1
  92. package/version.d.ts +1 -1
  93. package/version.js +1 -1
  94. package/version.mjs +1 -1
@@ -178,6 +178,152 @@ export interface ErrorDetail {
178
178
  */
179
179
  message?: string;
180
180
  }
181
+ /**
182
+ * The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
183
+ * this shape and varies only in Payload.
184
+ */
185
+ export interface InboundMessageEvent {
186
+ /**
187
+ * The specific event within the family, for example message.delivered or
188
+ * message.received. Absent on events that have no subtype, so treat it as
189
+ * optional.
190
+ */
191
+ event?: string | null;
192
+ /**
193
+ * The event family, for example message or templates. Route on this first, then on
194
+ * event for the specific change.
195
+ */
196
+ field?: string;
197
+ /**
198
+ * Body of a message.received event. Delivered when a contact messages one of your
199
+ * numbers.
200
+ */
201
+ payload?: InboundMessageEventPayload | null;
202
+ /**
203
+ * When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
204
+ * time, not the time the underlying change happened. Use the timestamp inside the
205
+ * payload for the latter.
206
+ */
207
+ timestamp?: string;
208
+ }
209
+ /**
210
+ * Body of a message.received event. Delivered when a contact messages one of your
211
+ * numbers.
212
+ */
213
+ export interface InboundMessageEventPayload {
214
+ /**
215
+ * The account the message belongs to.
216
+ */
217
+ account_id?: string;
218
+ /**
219
+ * The channel the message arrived on, for example sms or whatsapp.
220
+ */
221
+ channel?: string;
222
+ /**
223
+ * The contact's number in E.164 format, meaning the number the message came from.
224
+ */
225
+ inbound_number?: string;
226
+ /**
227
+ * The inbound message.
228
+ */
229
+ message_id?: string;
230
+ /**
231
+ * Your number in E.164 format, meaning the number the message was addressed to.
232
+ */
233
+ outbound_number?: string;
234
+ /**
235
+ * When the message was received, in UTC (yyyy-MM-ddTHH:mm:ssZ).
236
+ */
237
+ received_at?: string;
238
+ /**
239
+ * The message body. Sent as null when the inbound message carried no text, for
240
+ * example a media-only message. The field is always present, so read it and check
241
+ * for null rather than checking whether the key exists.
242
+ */
243
+ text?: string | null;
244
+ /**
245
+ * When the message was received, in UTC (yyyy-MM-ddTHH:mm:ssZ). Same value as
246
+ * ReceivedAt, kept for envelope consistency with outbound events.
247
+ */
248
+ updated_at?: string;
249
+ }
250
+ /**
251
+ * The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
252
+ * this shape and varies only in Payload.
253
+ */
254
+ export interface MessageEvent {
255
+ /**
256
+ * The specific event within the family, for example message.delivered or
257
+ * message.received. Absent on events that have no subtype, so treat it as
258
+ * optional.
259
+ */
260
+ event?: string | null;
261
+ /**
262
+ * The event family, for example message or templates. Route on this first, then on
263
+ * event for the specific change.
264
+ */
265
+ field?: string;
266
+ /**
267
+ * Body of an outbound message lifecycle event. Delivered once per status change,
268
+ * so a single message produces several of these as it moves toward a terminal
269
+ * status.
270
+ */
271
+ payload?: MessageEventPayload | null;
272
+ /**
273
+ * When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
274
+ * time, not the time the underlying change happened. Use the timestamp inside the
275
+ * payload for the latter.
276
+ */
277
+ timestamp?: string;
278
+ }
279
+ /**
280
+ * Body of an outbound message lifecycle event. Delivered once per status change,
281
+ * so a single message produces several of these as it moves toward a terminal
282
+ * status.
283
+ */
284
+ export interface MessageEventPayload {
285
+ /**
286
+ * The account the message belongs to.
287
+ */
288
+ account_id?: string;
289
+ /**
290
+ * The agent attributed to the send, when the send was attributed to one.
291
+ */
292
+ agent_id?: string | null;
293
+ /**
294
+ * The channel the message went out on, for example sms or whatsapp. A message that
295
+ * falls back to another channel reports the channel actually used.
296
+ */
297
+ channel?: string;
298
+ /**
299
+ * The message this event describes. Stable across every event in the message's
300
+ * lifecycle, so use it to correlate them.
301
+ */
302
+ message_id?: string;
303
+ /**
304
+ * The status the message just reached, for example SENT, DELIVERED, or FAILED.
305
+ * Sent means dispatched and delivered means confirmed, so treat them as distinct
306
+ * outcomes.
307
+ */
308
+ message_status?: string;
309
+ /**
310
+ * The recipient's number in E.164 format.
311
+ */
312
+ outbound_number?: string;
313
+ /**
314
+ * The template the message was sent from, when it was sent from one.
315
+ */
316
+ template_id?: string | null;
317
+ /**
318
+ * Name of the template the message was sent from. Omitted when the message wasn't
319
+ * template-based.
320
+ */
321
+ template_name?: string | null;
322
+ /**
323
+ * When the message reached MessageStatus, in UTC (yyyy-MM-ddTHH:mm:ssZ).
324
+ */
325
+ updated_at?: string;
326
+ }
181
327
  export interface MutationRequest {
182
328
  /**
183
329
  * Sandbox flag - when true, the operation is simulated without side effects Useful
@@ -229,6 +375,78 @@ export declare namespace PaginationMeta {
229
375
  before?: string | null;
230
376
  }
231
377
  }
378
+ /**
379
+ * The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
380
+ * this shape and varies only in Payload.
381
+ */
382
+ export interface TemplateEvent {
383
+ /**
384
+ * The specific event within the family, for example message.delivered or
385
+ * message.received. Absent on events that have no subtype, so treat it as
386
+ * optional.
387
+ */
388
+ event?: string | null;
389
+ /**
390
+ * The event family, for example message or templates. Route on this first, then on
391
+ * event for the specific change.
392
+ */
393
+ field?: string;
394
+ /**
395
+ * Body of a template status event. Delivered when a template's review outcome
396
+ * changes, so you can react without polling.
397
+ */
398
+ payload?: TemplateEventPayload | null;
399
+ /**
400
+ * When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
401
+ * time, not the time the underlying change happened. Use the timestamp inside the
402
+ * payload for the latter.
403
+ */
404
+ timestamp?: string;
405
+ }
406
+ /**
407
+ * Body of a template status event. Delivered when a template's review outcome
408
+ * changes, so you can react without polling.
409
+ */
410
+ export interface TemplateEventPayload {
411
+ /**
412
+ * The account the template belongs to.
413
+ */
414
+ account_id?: string;
415
+ /**
416
+ * The template's category, for example UTILITY, MARKETING, or AUTHENTICATION.
417
+ */
418
+ category?: string;
419
+ /**
420
+ * The channel the template applies to.
421
+ */
422
+ channel?: string;
423
+ /**
424
+ * The template's language code, for example en_US.
425
+ */
426
+ language?: string;
427
+ /**
428
+ * Why the template reached Status, when a reason was given. Populated on a
429
+ * rejection.
430
+ */
431
+ reason?: string | null;
432
+ /**
433
+ * The review status the template just reached, for example APPROVED or REJECTED.
434
+ */
435
+ status?: string;
436
+ /**
437
+ * The template in Sent.
438
+ */
439
+ template_id?: string;
440
+ /**
441
+ * The template's display name.
442
+ */
443
+ template_name?: string;
444
+ /**
445
+ * The template's identifier with Meta, assigned when the template is submitted for
446
+ * review.
447
+ */
448
+ whatsapp_template_id?: string;
449
+ }
232
450
  export interface WebhookEventType {
233
451
  description?: string | null;
234
452
  display_name?: string;
@@ -356,7 +574,13 @@ export declare namespace WebhookListEventsResponse {
356
574
  delivery_attempts?: number;
357
575
  delivery_status?: string;
358
576
  error_message?: string | null;
359
- event_data?: unknown;
577
+ /**
578
+ * The exact event body that was delivered, or attempted, for this record. One of
579
+ * the three webhook envelopes: a message status change, an inbound message, or a
580
+ * template status change. Read field and event to tell which, the same way your
581
+ * endpoint does.
582
+ */
583
+ event_data?: WebhooksAPI.MessageEvent | WebhooksAPI.InboundMessageEvent | WebhooksAPI.TemplateEvent;
360
584
  event_type?: string;
361
585
  http_status_code?: number | null;
362
586
  processing_completed_at?: string | null;
@@ -645,6 +869,6 @@ export interface WebhookToggleStatusParams {
645
869
  'x-profile-id'?: string;
646
870
  }
647
871
  export declare namespace Webhooks {
648
- export { type APIMeta as APIMeta, type APIResponseWebhook as APIResponseWebhook, type ErrorDetail as ErrorDetail, type MutationRequest as MutationRequest, type PaginationMeta as PaginationMeta, type WebhookEventType as WebhookEventType, type WebhookResponse as WebhookResponse, type WebhookListResponse as WebhookListResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, 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, };
872
+ 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 WebhookListResponse as WebhookListResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, 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, };
649
873
  }
650
874
  //# 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;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;I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B,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,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
@@ -19,15 +19,25 @@ import * as API from './resources/index';
19
19
  import { APIPromise } from './core/api-promise';
20
20
  import {
21
21
  APIResponseOfContact,
22
+ APIResponseOfContactMessageSummary,
22
23
  ContactCreateParams,
23
24
  ContactDeleteParams,
24
25
  ContactListParams,
25
26
  ContactListResponse,
27
+ ContactMessageSummary,
26
28
  ContactResponse,
29
+ ContactRetrieveMessageSummaryParams,
27
30
  ContactRetrieveParams,
28
31
  ContactUpdateParams,
29
32
  Contacts,
30
33
  } from './resources/contacts';
34
+ import {
35
+ APIResponseOfConversationMessagesList,
36
+ ConversationListMessagesParams,
37
+ ConversationListParams,
38
+ ConversationMessagesList,
39
+ Conversations,
40
+ } from './resources/conversations';
31
41
  import { Me, MeRetrieveParams, MeRetrieveResponse, ProfileSettings } from './resources/me';
32
42
  import {
33
43
  MessageRetrieveActivitiesParams,
@@ -41,17 +51,17 @@ import {
41
51
  import { NumberLookupParams, NumberLookupResponse, Numbers } from './resources/numbers';
42
52
  import {
43
53
  APIResponseTemplate,
44
- SentDmServicesCommonContractsPocOsAuthenticationConfig,
45
- SentDmServicesCommonContractsPocOsTemplateBody,
46
- SentDmServicesCommonContractsPocOsTemplateButton,
47
- SentDmServicesCommonContractsPocOsTemplateButtonProps,
48
- SentDmServicesCommonContractsPocOsTemplateFooter,
49
- SentDmServicesCommonContractsPocOsTemplateHeader,
54
+ AuthenticationConfig,
50
55
  Template,
56
+ TemplateBody,
51
57
  TemplateBodyContent,
58
+ TemplateButton,
59
+ TemplateButtonProps,
52
60
  TemplateCreateParams,
53
61
  TemplateDefinition,
54
62
  TemplateDeleteParams,
63
+ TemplateFooter,
64
+ TemplateHeader,
55
65
  TemplateListParams,
56
66
  TemplateListResponse,
57
67
  TemplateRetrieveParams,
@@ -74,8 +84,14 @@ import {
74
84
  APIMeta,
75
85
  APIResponseWebhook,
76
86
  ErrorDetail,
87
+ InboundMessageEvent,
88
+ InboundMessageEventPayload,
89
+ MessageEvent,
90
+ MessageEventPayload,
77
91
  MutationRequest,
78
92
  PaginationMeta,
93
+ TemplateEvent,
94
+ TemplateEventPayload,
79
95
  WebhookCreateParams,
80
96
  WebhookDeleteParams,
81
97
  WebhookEventType,
@@ -98,6 +114,9 @@ import {
98
114
  import {
99
115
  APIResponseOfProfileDetail,
100
116
  BillingContactInfo,
117
+ BrandBusinessInfo,
118
+ BrandComplianceInfo,
119
+ BrandContactInfo,
101
120
  BrandsBrandData,
102
121
  DestinationCountry,
103
122
  PaymentDetails,
@@ -111,9 +130,6 @@ import {
111
130
  ProfileRetrieveParams,
112
131
  ProfileUpdateParams,
113
132
  Profiles,
114
- SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo,
115
- SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
116
- SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
117
133
  TcrBrandRelationship,
118
134
  TcrVertical,
119
135
  } from './resources/profiles/profiles';
@@ -865,6 +881,7 @@ export class Sent {
865
881
  * Create, update, and manage customer contact lists
866
882
  */
867
883
  contacts: API.Contacts = new API.Contacts(this);
884
+ conversations: API.Conversations = new API.Conversations(this);
868
885
  /**
869
886
  * Retrieve account details
870
887
  */
@@ -878,6 +895,7 @@ Sent.Profiles = Profiles;
878
895
  Sent.Numbers = Numbers;
879
896
  Sent.Messages = Messages;
880
897
  Sent.Contacts = Contacts;
898
+ Sent.Conversations = Conversations;
881
899
  Sent.Me = Me;
882
900
 
883
901
  export declare namespace Sent {
@@ -888,8 +906,14 @@ export declare namespace Sent {
888
906
  type APIMeta as APIMeta,
889
907
  type APIResponseWebhook as APIResponseWebhook,
890
908
  type ErrorDetail as ErrorDetail,
909
+ type InboundMessageEvent as InboundMessageEvent,
910
+ type InboundMessageEventPayload as InboundMessageEventPayload,
911
+ type MessageEvent as MessageEvent,
912
+ type MessageEventPayload as MessageEventPayload,
891
913
  type MutationRequest as MutationRequest,
892
914
  type PaginationMeta as PaginationMeta,
915
+ type TemplateEvent as TemplateEvent,
916
+ type TemplateEventPayload as TemplateEventPayload,
893
917
  type WebhookEventType as WebhookEventType,
894
918
  type WebhookResponse as WebhookResponse,
895
919
  type WebhookListResponse as WebhookListResponse,
@@ -924,15 +948,15 @@ export declare namespace Sent {
924
948
  export {
925
949
  Templates as Templates,
926
950
  type APIResponseTemplate as APIResponseTemplate,
927
- type SentDmServicesCommonContractsPocOsAuthenticationConfig as SentDmServicesCommonContractsPocOsAuthenticationConfig,
928
- type SentDmServicesCommonContractsPocOsTemplateBody as SentDmServicesCommonContractsPocOsTemplateBody,
929
- type SentDmServicesCommonContractsPocOsTemplateButton as SentDmServicesCommonContractsPocOsTemplateButton,
930
- type SentDmServicesCommonContractsPocOsTemplateButtonProps as SentDmServicesCommonContractsPocOsTemplateButtonProps,
931
- type SentDmServicesCommonContractsPocOsTemplateFooter as SentDmServicesCommonContractsPocOsTemplateFooter,
932
- type SentDmServicesCommonContractsPocOsTemplateHeader as SentDmServicesCommonContractsPocOsTemplateHeader,
951
+ type AuthenticationConfig as AuthenticationConfig,
933
952
  type Template as Template,
953
+ type TemplateBody as TemplateBody,
934
954
  type TemplateBodyContent as TemplateBodyContent,
955
+ type TemplateButton as TemplateButton,
956
+ type TemplateButtonProps as TemplateButtonProps,
935
957
  type TemplateDefinition as TemplateDefinition,
958
+ type TemplateFooter as TemplateFooter,
959
+ type TemplateHeader as TemplateHeader,
936
960
  type TemplateVariable as TemplateVariable,
937
961
  type TemplateListResponse as TemplateListResponse,
938
962
  type TemplateCreateParams as TemplateCreateParams,
@@ -946,13 +970,13 @@ export declare namespace Sent {
946
970
  Profiles as Profiles,
947
971
  type APIResponseOfProfileDetail as APIResponseOfProfileDetail,
948
972
  type BillingContactInfo as BillingContactInfo,
973
+ type BrandBusinessInfo as BrandBusinessInfo,
974
+ type BrandComplianceInfo as BrandComplianceInfo,
975
+ type BrandContactInfo as BrandContactInfo,
949
976
  type BrandsBrandData as BrandsBrandData,
950
977
  type DestinationCountry as DestinationCountry,
951
978
  type PaymentDetails as PaymentDetails,
952
979
  type ProfileDetail as ProfileDetail,
953
- type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo as SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo,
954
- type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo as SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
955
- type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo as SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
956
980
  type TcrBrandRelationship as TcrBrandRelationship,
957
981
  type TcrVertical as TcrVertical,
958
982
  type ProfileListResponse as ProfileListResponse,
@@ -984,6 +1008,8 @@ export declare namespace Sent {
984
1008
  export {
985
1009
  Contacts as Contacts,
986
1010
  type APIResponseOfContact as APIResponseOfContact,
1011
+ type APIResponseOfContactMessageSummary as APIResponseOfContactMessageSummary,
1012
+ type ContactMessageSummary as ContactMessageSummary,
987
1013
  type ContactResponse as ContactResponse,
988
1014
  type ContactListResponse as ContactListResponse,
989
1015
  type ContactCreateParams as ContactCreateParams,
@@ -991,6 +1017,15 @@ export declare namespace Sent {
991
1017
  type ContactUpdateParams as ContactUpdateParams,
992
1018
  type ContactListParams as ContactListParams,
993
1019
  type ContactDeleteParams as ContactDeleteParams,
1020
+ type ContactRetrieveMessageSummaryParams as ContactRetrieveMessageSummaryParams,
1021
+ };
1022
+
1023
+ export {
1024
+ Conversations as Conversations,
1025
+ type APIResponseOfConversationMessagesList as APIResponseOfConversationMessagesList,
1026
+ type ConversationMessagesList as ConversationMessagesList,
1027
+ type ConversationListParams as ConversationListParams,
1028
+ type ConversationListMessagesParams as ConversationListMessagesParams,
994
1029
  };
995
1030
 
996
1031
  export {
@@ -141,6 +141,35 @@ export class Contacts extends APIResource {
141
141
  ]),
142
142
  });
143
143
  }
144
+
145
+ /**
146
+ * Returns aggregate message counts, time bounds, channels used, and per-channel
147
+ * success/fail scores (each as a percentage 0-100 of messages on that channel) for
148
+ * one of your contacts. Successful terminal states: SENT/DELIVERED/READ for
149
+ * outbound, RECEIVED for inbound. Fail: FAILED.
150
+ *
151
+ * @example
152
+ * ```ts
153
+ * const apiResponseOfContactMessageSummary =
154
+ * await client.contacts.retrieveMessageSummary(
155
+ * '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
156
+ * );
157
+ * ```
158
+ */
159
+ retrieveMessageSummary(
160
+ contactID: string,
161
+ params: ContactRetrieveMessageSummaryParams | null | undefined = {},
162
+ options?: RequestOptions,
163
+ ): APIPromise<APIResponseOfContactMessageSummary> {
164
+ const { 'x-profile-id': xProfileID } = params ?? {};
165
+ return this._client.get(path`/v3/contacts/${contactID}/message-summary`, {
166
+ ...options,
167
+ headers: buildHeaders([
168
+ { ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
169
+ options?.headers,
170
+ ]),
171
+ });
172
+ }
144
173
  }
145
174
 
146
175
  /**
@@ -168,6 +197,62 @@ export interface APIResponseOfContact {
168
197
  success?: boolean;
169
198
  }
170
199
 
200
+ /**
201
+ * Standard API response envelope for all v3 endpoints
202
+ */
203
+ export interface APIResponseOfContactMessageSummary {
204
+ /**
205
+ * The response data (null if error)
206
+ */
207
+ data?: ContactMessageSummary | null;
208
+
209
+ /**
210
+ * Error information
211
+ */
212
+ error?: WebhooksAPI.ErrorDetail | null;
213
+
214
+ /**
215
+ * Request and response metadata
216
+ */
217
+ meta?: WebhooksAPI.APIMeta;
218
+
219
+ /**
220
+ * Indicates whether the request was successful
221
+ */
222
+ success?: boolean;
223
+ }
224
+
225
+ export interface ContactMessageSummary {
226
+ channel_scores?: Array<ContactMessageSummary.ChannelScore>;
227
+
228
+ channels_used?: Array<string>;
229
+
230
+ contact_id?: string;
231
+
232
+ first_message_at?: string | null;
233
+
234
+ last_message_at?: string | null;
235
+
236
+ message_count?: number;
237
+ }
238
+
239
+ export namespace ContactMessageSummary {
240
+ export interface ChannelScore {
241
+ channel?: string;
242
+
243
+ /**
244
+ * Percentage (0-100) of messages on this channel that ended in FAILED.
245
+ */
246
+ fail_score?: number;
247
+
248
+ /**
249
+ * Percentage (0-100) of messages on this channel that reached a successful
250
+ * terminal state: SENT/DELIVERED/READ for outbound, RECEIVED for inbound.
251
+ */
252
+ success_score?: number;
253
+ }
254
+ }
255
+
171
256
  /**
172
257
  * Contact response for v3 API Uses snake_case for JSON property names
173
258
  */
@@ -403,9 +488,19 @@ export interface ContactDeleteParams {
403
488
  'x-profile-id'?: string;
404
489
  }
405
490
 
491
+ export interface ContactRetrieveMessageSummaryParams {
492
+ /**
493
+ * Profile UUID to scope the request to a child profile. Only organization API keys
494
+ * can use this header. The profile must belong to the calling organization.
495
+ */
496
+ 'x-profile-id'?: string;
497
+ }
498
+
406
499
  export declare namespace Contacts {
407
500
  export {
408
501
  type APIResponseOfContact as APIResponseOfContact,
502
+ type APIResponseOfContactMessageSummary as APIResponseOfContactMessageSummary,
503
+ type ContactMessageSummary as ContactMessageSummary,
409
504
  type ContactResponse as ContactResponse,
410
505
  type ContactListResponse as ContactListResponse,
411
506
  type ContactCreateParams as ContactCreateParams,
@@ -413,5 +508,6 @@ export declare namespace Contacts {
413
508
  type ContactUpdateParams as ContactUpdateParams,
414
509
  type ContactListParams as ContactListParams,
415
510
  type ContactDeleteParams as ContactDeleteParams,
511
+ type ContactRetrieveMessageSummaryParams as ContactRetrieveMessageSummaryParams,
416
512
  };
417
513
  }