@sentdm/sentdm 0.34.0 → 0.35.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 (120) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +53 -22
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +53 -22
  5. package/client.d.ts.map +1 -1
  6. package/client.js +39 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +39 -8
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/contacts.d.mts +606 -89
  12. package/resources/contacts.d.mts.map +1 -1
  13. package/resources/contacts.d.ts +606 -89
  14. package/resources/contacts.d.ts.map +1 -1
  15. package/resources/contacts.js +21 -15
  16. package/resources/contacts.js.map +1 -1
  17. package/resources/contacts.mjs +21 -15
  18. package/resources/contacts.mjs.map +1 -1
  19. package/resources/conversations.d.mts +335 -69
  20. package/resources/conversations.d.mts.map +1 -1
  21. package/resources/conversations.d.ts +335 -69
  22. package/resources/conversations.d.ts.map +1 -1
  23. package/resources/conversations.js +15 -10
  24. package/resources/conversations.js.map +1 -1
  25. package/resources/conversations.mjs +15 -10
  26. package/resources/conversations.mjs.map +1 -1
  27. package/resources/index.d.mts +7 -7
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +7 -7
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js.map +1 -1
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/me.d.mts +132 -41
  34. package/resources/me.d.mts.map +1 -1
  35. package/resources/me.d.ts +132 -41
  36. package/resources/me.d.ts.map +1 -1
  37. package/resources/me.js +3 -1
  38. package/resources/me.js.map +1 -1
  39. package/resources/me.mjs +3 -1
  40. package/resources/me.mjs.map +1 -1
  41. package/resources/messages.d.mts +206 -27
  42. package/resources/messages.d.mts.map +1 -1
  43. package/resources/messages.d.ts +206 -27
  44. package/resources/messages.d.ts.map +1 -1
  45. package/resources/messages.js +5 -1
  46. package/resources/messages.js.map +1 -1
  47. package/resources/messages.mjs +5 -1
  48. package/resources/messages.mjs.map +1 -1
  49. package/resources/numbers.d.mts +45 -4
  50. package/resources/numbers.d.mts.map +1 -1
  51. package/resources/numbers.d.ts +45 -4
  52. package/resources/numbers.d.ts.map +1 -1
  53. package/resources/numbers.js +3 -1
  54. package/resources/numbers.js.map +1 -1
  55. package/resources/numbers.mjs +3 -1
  56. package/resources/numbers.mjs.map +1 -1
  57. package/resources/profiles/campaigns.d.mts +579 -209
  58. package/resources/profiles/campaigns.d.mts.map +1 -1
  59. package/resources/profiles/campaigns.d.ts +579 -209
  60. package/resources/profiles/campaigns.d.ts.map +1 -1
  61. package/resources/profiles/campaigns.js +33 -64
  62. package/resources/profiles/campaigns.js.map +1 -1
  63. package/resources/profiles/campaigns.mjs +33 -64
  64. package/resources/profiles/campaigns.mjs.map +1 -1
  65. package/resources/profiles/index.d.mts +2 -2
  66. package/resources/profiles/index.d.mts.map +1 -1
  67. package/resources/profiles/index.d.ts +2 -2
  68. package/resources/profiles/index.d.ts.map +1 -1
  69. package/resources/profiles/index.js.map +1 -1
  70. package/resources/profiles/index.mjs.map +1 -1
  71. package/resources/profiles/profiles.d.mts +2006 -508
  72. package/resources/profiles/profiles.d.mts.map +1 -1
  73. package/resources/profiles/profiles.d.ts +2006 -508
  74. package/resources/profiles/profiles.d.ts.map +1 -1
  75. package/resources/profiles/profiles.js +98 -75
  76. package/resources/profiles/profiles.js.map +1 -1
  77. package/resources/profiles/profiles.mjs +98 -75
  78. package/resources/profiles/profiles.mjs.map +1 -1
  79. package/resources/templates.d.mts +497 -84
  80. package/resources/templates.d.mts.map +1 -1
  81. package/resources/templates.d.ts +497 -84
  82. package/resources/templates.d.ts.map +1 -1
  83. package/resources/templates.js +6 -4
  84. package/resources/templates.js.map +1 -1
  85. package/resources/templates.mjs +6 -4
  86. package/resources/templates.mjs.map +1 -1
  87. package/resources/users.d.mts +444 -43
  88. package/resources/users.d.mts.map +1 -1
  89. package/resources/users.d.ts +444 -43
  90. package/resources/users.d.ts.map +1 -1
  91. package/resources/users.js +6 -4
  92. package/resources/users.js.map +1 -1
  93. package/resources/users.mjs +6 -4
  94. package/resources/users.mjs.map +1 -1
  95. package/resources/webhooks.d.mts +770 -169
  96. package/resources/webhooks.d.mts.map +1 -1
  97. package/resources/webhooks.d.ts +770 -169
  98. package/resources/webhooks.d.ts.map +1 -1
  99. package/resources/webhooks.js +11 -8
  100. package/resources/webhooks.js.map +1 -1
  101. package/resources/webhooks.mjs +11 -8
  102. package/resources/webhooks.mjs.map +1 -1
  103. package/src/client.ts +78 -60
  104. package/src/resources/contacts.ts +696 -92
  105. package/src/resources/conversations.ts +400 -77
  106. package/src/resources/index.ts +20 -26
  107. package/src/resources/me.ts +151 -52
  108. package/src/resources/messages.ts +230 -27
  109. package/src/resources/numbers.ts +50 -4
  110. package/src/resources/profiles/campaigns.ts +706 -232
  111. package/src/resources/profiles/index.ts +6 -14
  112. package/src/resources/profiles/profiles.ts +2421 -646
  113. package/src/resources/templates.ts +583 -99
  114. package/src/resources/users.ts +514 -44
  115. package/src/resources/webhooks.ts +1006 -283
  116. package/src/version.ts +1 -1
  117. package/version.d.mts +1 -1
  118. package/version.d.ts +1 -1
  119. package/version.js +1 -1
  120. package/version.mjs +1 -1
@@ -1,12 +1,18 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import * as WebhooksAPI from './webhooks';
5
4
  import { APIPromise } from '../core/api-promise';
6
5
  import { buildHeaders } from '../internal/headers';
7
6
  import { RequestOptions } from '../internal/request-options';
8
7
  import { path } from '../internal/utils/path';
9
8
 
9
+ /**
10
+ * Inbound and outbound messages, grouped by the person they are with.
11
+ *
12
+ * A conversation is the thread for one contact across every channel — a reply by SMS and one by WhatsApp belong to the same conversation, because they are the same person talking to you.
13
+ *
14
+ * Read-only. Sending is **Messages**; a reply arrives here and through your webhooks.
15
+ */
10
16
  export class Conversations extends APIResource {
11
17
  /**
12
18
  * Retrieves a paginated list of the authenticated customer's messages across all
@@ -14,17 +20,13 @@ export class Conversations extends APIResource {
14
20
  *
15
21
  * @example
16
22
  * ```ts
17
- * const apiResponseOfConversationMessagesList =
18
- * await client.conversations.list({
19
- * page: 0,
20
- * page_size: 0,
21
- * });
23
+ * const conversations = await client.conversations.list({
24
+ * page: 0,
25
+ * page_size: 0,
26
+ * });
22
27
  * ```
23
28
  */
24
- list(
25
- params: ConversationListParams,
26
- options?: RequestOptions,
27
- ): APIPromise<APIResponseOfConversationMessagesList> {
29
+ list(params: ConversationListParams, options?: RequestOptions): APIPromise<ConversationListResponse> {
28
30
  const { 'x-profile-id': xProfileID, ...query } = params;
29
31
  return this._client.get('/v3/conversations', {
30
32
  query,
@@ -42,18 +44,17 @@ export class Conversations extends APIResource {
42
44
  *
43
45
  * @example
44
46
  * ```ts
45
- * const apiResponseOfConversationMessagesList =
46
- * await client.conversations.listMessages(
47
- * '08fab313-c9e2-502c-975e-08b0356c432e',
48
- * { page: 0, page_size: 0 },
49
- * );
47
+ * const response = await client.conversations.listMessages(
48
+ * '08fab313-c9e2-502c-975e-08b0356c432e',
49
+ * { page: 0, page_size: 0 },
50
+ * );
50
51
  * ```
51
52
  */
52
53
  listMessages(
53
54
  id: string,
54
55
  params: ConversationListMessagesParams,
55
56
  options?: RequestOptions,
56
- ): APIPromise<APIResponseOfConversationMessagesList> {
57
+ ): APIPromise<ConversationListMessagesResponse> {
57
58
  const { 'x-profile-id': xProfileID, ...query } = params;
58
59
  return this._client.get(path`/v3/conversations/${id}`, {
59
60
  query,
@@ -69,21 +70,21 @@ export class Conversations extends APIResource {
69
70
  /**
70
71
  * Standard API response envelope for all v3 endpoints
71
72
  */
72
- export interface APIResponseOfConversationMessagesList {
73
+ export interface ConversationListResponse {
73
74
  /**
74
75
  * A paginated list of messages — used by both conversation read endpoints.
75
76
  */
76
- data?: ConversationMessagesList | null;
77
+ data?: ConversationListResponse.Data | null;
77
78
 
78
79
  /**
79
80
  * Error information
80
81
  */
81
- error?: WebhooksAPI.ErrorDetail | null;
82
+ error?: ConversationListResponse.Error | null;
82
83
 
83
84
  /**
84
85
  * Request and response metadata
85
86
  */
86
- meta?: WebhooksAPI.APIMeta;
87
+ meta?: ConversationListResponse.Meta;
87
88
 
88
89
  /**
89
90
  * Indicates whether the request was successful
@@ -91,102 +92,424 @@ export interface APIResponseOfConversationMessagesList {
91
92
  success?: boolean;
92
93
  }
93
94
 
95
+ export namespace ConversationListResponse {
96
+ /**
97
+ * A paginated list of messages — used by both conversation read endpoints.
98
+ */
99
+ export interface Data {
100
+ /**
101
+ * The messages on this page.
102
+ */
103
+ messages?: Array<Data.Message>;
104
+
105
+ /**
106
+ * Pagination metadata for list responses
107
+ */
108
+ pagination?: Data.Pagination;
109
+ }
110
+
111
+ export namespace Data {
112
+ /**
113
+ * Message response for v3 API — same shape as v2 with snake_case JSON conventions
114
+ */
115
+ export interface Message {
116
+ id?: string;
117
+
118
+ active_contact_price?: number | null;
119
+
120
+ channel?: string;
121
+
122
+ contact_id?: string;
123
+
124
+ created_at?: string;
125
+
126
+ customer_id?: string;
127
+
128
+ direction?: string;
129
+
130
+ events?: Array<Message.Event> | null;
131
+
132
+ /**
133
+ * Structured message body format for database storage. Preserves channel-specific
134
+ * components (header, body, footer, buttons).
135
+ */
136
+ message_body?: Message.MessageBody | null;
137
+
138
+ phone?: string;
139
+
140
+ phone_international?: string;
141
+
142
+ price?: number | null;
143
+
144
+ region_code?: string;
145
+
146
+ status?: string;
147
+
148
+ template_category?: string | null;
149
+
150
+ template_id?: string | null;
151
+
152
+ template_name?: string | null;
153
+ }
154
+
155
+ export namespace Message {
156
+ /**
157
+ * Represents a status change event in a message's lifecycle (v3)
158
+ */
159
+ export interface Event {
160
+ status: string;
161
+
162
+ timestamp: string;
163
+
164
+ description?: string | null;
165
+ }
166
+
167
+ /**
168
+ * Structured message body format for database storage. Preserves channel-specific
169
+ * components (header, body, footer, buttons).
170
+ */
171
+ export interface MessageBody {
172
+ buttons?: Array<MessageBody.Button> | null;
173
+
174
+ content?: string;
175
+
176
+ footer?: string | null;
177
+
178
+ header?: string | null;
179
+ }
180
+
181
+ export namespace MessageBody {
182
+ export interface Button {
183
+ postbackData?: string | null;
184
+
185
+ text?: string | null;
186
+
187
+ type?: string;
188
+
189
+ value?: string;
190
+ }
191
+ }
192
+ }
193
+
194
+ /**
195
+ * Pagination metadata for list responses
196
+ */
197
+ export interface Pagination {
198
+ /**
199
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
200
+ */
201
+ cursors?: Pagination.Cursors | null;
202
+
203
+ /**
204
+ * Whether there are more pages after this one
205
+ */
206
+ has_more?: boolean;
207
+
208
+ /**
209
+ * Current page number (1-indexed)
210
+ */
211
+ page?: number;
212
+
213
+ /**
214
+ * Number of items per page
215
+ */
216
+ page_size?: number;
217
+
218
+ /**
219
+ * Total number of items across all pages
220
+ */
221
+ total_count?: number;
222
+
223
+ /**
224
+ * Total number of pages
225
+ */
226
+ total_pages?: number;
227
+ }
228
+
229
+ export namespace Pagination {
230
+ /**
231
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
232
+ */
233
+ export interface Cursors {
234
+ /**
235
+ * Cursor to fetch the next page.
236
+ */
237
+ after?: string | null;
238
+
239
+ /**
240
+ * Cursor to fetch the previous page.
241
+ */
242
+ before?: string | null;
243
+ }
244
+ }
245
+ }
246
+
247
+ /**
248
+ * Error information
249
+ */
250
+ export interface Error {
251
+ /**
252
+ * Machine-readable error code (e.g., "RESOURCE_001")
253
+ */
254
+ code?: string;
255
+
256
+ /**
257
+ * Additional validation error details (field-level errors)
258
+ */
259
+ details?: { [key: string]: Array<string> } | null;
260
+
261
+ /**
262
+ * URL to documentation about this error
263
+ */
264
+ doc_url?: string | null;
265
+
266
+ /**
267
+ * Human-readable error message
268
+ */
269
+ message?: string;
270
+ }
271
+
272
+ /**
273
+ * Request and response metadata
274
+ */
275
+ export interface Meta {
276
+ /**
277
+ * Unique identifier for this request (for tracing and support)
278
+ */
279
+ request_id?: string;
280
+
281
+ /**
282
+ * Server timestamp when the response was generated
283
+ */
284
+ timestamp?: string;
285
+
286
+ /**
287
+ * API version used for this request
288
+ */
289
+ version?: string;
290
+ }
291
+ }
292
+
94
293
  /**
95
- * A paginated list of messages — used by both conversation read endpoints.
294
+ * Standard API response envelope for all v3 endpoints
96
295
  */
97
- export interface ConversationMessagesList {
296
+ export interface ConversationListMessagesResponse {
98
297
  /**
99
- * The messages on this page, most recent first.
298
+ * A paginated list of messages — used by both conversation read endpoints.
299
+ */
300
+ data?: ConversationListMessagesResponse.Data | null;
301
+
302
+ /**
303
+ * Error information
100
304
  */
101
- messages?: Array<ConversationMessagesList.Message>;
305
+ error?: ConversationListMessagesResponse.Error | null;
102
306
 
103
307
  /**
104
- * Pagination metadata for list responses
308
+ * Request and response metadata
309
+ */
310
+ meta?: ConversationListMessagesResponse.Meta;
311
+
312
+ /**
313
+ * Indicates whether the request was successful
105
314
  */
106
- pagination?: WebhooksAPI.PaginationMeta;
315
+ success?: boolean;
107
316
  }
108
317
 
109
- export namespace ConversationMessagesList {
318
+ export namespace ConversationListMessagesResponse {
110
319
  /**
111
- * Message response for v3 API — same shape as v2 with snake_case JSON conventions
320
+ * A paginated list of messages — used by both conversation read endpoints.
112
321
  */
113
- export interface Message {
114
- id?: string;
322
+ export interface Data {
323
+ /**
324
+ * The messages on this page.
325
+ */
326
+ messages?: Array<Data.Message>;
115
327
 
116
- active_contact_price?: number | null;
328
+ /**
329
+ * Pagination metadata for list responses
330
+ */
331
+ pagination?: Data.Pagination;
332
+ }
117
333
 
118
- channel?: string;
334
+ export namespace Data {
335
+ /**
336
+ * Message response for v3 API — same shape as v2 with snake_case JSON conventions
337
+ */
338
+ export interface Message {
339
+ id?: string;
119
340
 
120
- contact_id?: string;
341
+ active_contact_price?: number | null;
121
342
 
122
- created_at?: string;
343
+ channel?: string;
123
344
 
124
- customer_id?: string;
345
+ contact_id?: string;
125
346
 
126
- direction?: string;
347
+ created_at?: string;
127
348
 
128
- events?: Array<Message.Event> | null;
349
+ customer_id?: string;
129
350
 
130
- /**
131
- * Structured message body format for database storage. Preserves channel-specific
132
- * components (header, body, footer, buttons).
133
- */
134
- message_body?: Message.MessageBody | null;
351
+ direction?: string;
135
352
 
136
- phone?: string;
353
+ events?: Array<Message.Event> | null;
137
354
 
138
- phone_international?: string;
355
+ /**
356
+ * Structured message body format for database storage. Preserves channel-specific
357
+ * components (header, body, footer, buttons).
358
+ */
359
+ message_body?: Message.MessageBody | null;
139
360
 
140
- price?: number | null;
361
+ phone?: string;
141
362
 
142
- region_code?: string;
363
+ phone_international?: string;
143
364
 
144
- status?: string;
365
+ price?: number | null;
145
366
 
146
- template_category?: string | null;
367
+ region_code?: string;
147
368
 
148
- template_id?: string | null;
369
+ status?: string;
149
370
 
150
- template_name?: string | null;
151
- }
371
+ template_category?: string | null;
152
372
 
153
- export namespace Message {
154
- /**
155
- * Represents a status change event in a message's lifecycle (v3)
156
- */
157
- export interface Event {
158
- status: string;
373
+ template_id?: string | null;
159
374
 
160
- timestamp: string;
375
+ template_name?: string | null;
376
+ }
377
+
378
+ export namespace Message {
379
+ /**
380
+ * Represents a status change event in a message's lifecycle (v3)
381
+ */
382
+ export interface Event {
383
+ status: string;
384
+
385
+ timestamp: string;
386
+
387
+ description?: string | null;
388
+ }
161
389
 
162
- description?: string | null;
390
+ /**
391
+ * Structured message body format for database storage. Preserves channel-specific
392
+ * components (header, body, footer, buttons).
393
+ */
394
+ export interface MessageBody {
395
+ buttons?: Array<MessageBody.Button> | null;
396
+
397
+ content?: string;
398
+
399
+ footer?: string | null;
400
+
401
+ header?: string | null;
402
+ }
403
+
404
+ export namespace MessageBody {
405
+ export interface Button {
406
+ postbackData?: string | null;
407
+
408
+ text?: string | null;
409
+
410
+ type?: string;
411
+
412
+ value?: string;
413
+ }
414
+ }
163
415
  }
164
416
 
165
417
  /**
166
- * Structured message body format for database storage. Preserves channel-specific
167
- * components (header, body, footer, buttons).
418
+ * Pagination metadata for list responses
168
419
  */
169
- export interface MessageBody {
170
- buttons?: Array<MessageBody.Button> | null;
420
+ export interface Pagination {
421
+ /**
422
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
423
+ */
424
+ cursors?: Pagination.Cursors | null;
425
+
426
+ /**
427
+ * Whether there are more pages after this one
428
+ */
429
+ has_more?: boolean;
430
+
431
+ /**
432
+ * Current page number (1-indexed)
433
+ */
434
+ page?: number;
435
+
436
+ /**
437
+ * Number of items per page
438
+ */
439
+ page_size?: number;
440
+
441
+ /**
442
+ * Total number of items across all pages
443
+ */
444
+ total_count?: number;
445
+
446
+ /**
447
+ * Total number of pages
448
+ */
449
+ total_pages?: number;
450
+ }
171
451
 
172
- content?: string;
452
+ export namespace Pagination {
453
+ /**
454
+ * @deprecated Cursor-based pagination. Never populated — see Cursors.
455
+ */
456
+ export interface Cursors {
457
+ /**
458
+ * Cursor to fetch the next page.
459
+ */
460
+ after?: string | null;
461
+
462
+ /**
463
+ * Cursor to fetch the previous page.
464
+ */
465
+ before?: string | null;
466
+ }
467
+ }
468
+ }
173
469
 
174
- footer?: string | null;
470
+ /**
471
+ * Error information
472
+ */
473
+ export interface Error {
474
+ /**
475
+ * Machine-readable error code (e.g., "RESOURCE_001")
476
+ */
477
+ code?: string;
175
478
 
176
- header?: string | null;
177
- }
479
+ /**
480
+ * Additional validation error details (field-level errors)
481
+ */
482
+ details?: { [key: string]: Array<string> } | null;
178
483
 
179
- export namespace MessageBody {
180
- export interface Button {
181
- postbackData?: string | null;
484
+ /**
485
+ * URL to documentation about this error
486
+ */
487
+ doc_url?: string | null;
182
488
 
183
- text?: string | null;
489
+ /**
490
+ * Human-readable error message
491
+ */
492
+ message?: string;
493
+ }
184
494
 
185
- type?: string;
495
+ /**
496
+ * Request and response metadata
497
+ */
498
+ export interface Meta {
499
+ /**
500
+ * Unique identifier for this request (for tracing and support)
501
+ */
502
+ request_id?: string;
186
503
 
187
- value?: string;
188
- }
189
- }
504
+ /**
505
+ * Server timestamp when the response was generated
506
+ */
507
+ timestamp?: string;
508
+
509
+ /**
510
+ * API version used for this request
511
+ */
512
+ version?: string;
190
513
  }
191
514
  }
192
515
 
@@ -230,8 +553,8 @@ export interface ConversationListMessagesParams {
230
553
 
231
554
  export declare namespace Conversations {
232
555
  export {
233
- type APIResponseOfConversationMessagesList as APIResponseOfConversationMessagesList,
234
- type ConversationMessagesList as ConversationMessagesList,
556
+ type ConversationListResponse as ConversationListResponse,
557
+ type ConversationListMessagesResponse as ConversationListMessagesResponse,
235
558
  type ConversationListParams as ConversationListParams,
236
559
  type ConversationListMessagesParams as ConversationListMessagesParams,
237
560
  };
@@ -2,11 +2,11 @@
2
2
 
3
3
  export {
4
4
  Contacts,
5
- type APIResponseOfContact,
6
- type APIResponseOfContactMessageSummary,
7
- type ContactMessageSummary,
8
- type ContactResponse,
5
+ type ContactCreateResponse,
6
+ type ContactRetrieveResponse,
7
+ type ContactUpdateResponse,
9
8
  type ContactListResponse,
9
+ type ContactRetrieveMessageSummaryResponse,
10
10
  type ContactCreateParams,
11
11
  type ContactRetrieveParams,
12
12
  type ContactUpdateParams,
@@ -16,12 +16,12 @@ export {
16
16
  } from './contacts';
17
17
  export {
18
18
  Conversations,
19
- type APIResponseOfConversationMessagesList,
20
- type ConversationMessagesList,
19
+ type ConversationListResponse,
20
+ type ConversationListMessagesResponse,
21
21
  type ConversationListParams,
22
22
  type ConversationListMessagesParams,
23
23
  } from './conversations';
24
- export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from './me';
24
+ export { Me, type MeRetrieveResponse, type MeRetrieveParams } from './me';
25
25
  export {
26
26
  Messages,
27
27
  type MessageRetrieveActivitiesResponse,
@@ -34,17 +34,12 @@ export {
34
34
  export { Numbers, type NumberLookupResponse, type NumberLookupParams } from './numbers';
35
35
  export {
36
36
  Profiles,
37
- type APIResponseOfProfileDetail,
38
- type BillingContactInfo,
39
- type BrandBusinessInfo,
40
- type BrandComplianceInfo,
41
- type BrandContactInfo,
42
- type BrandsBrandData,
43
37
  type DestinationCountry,
44
- type PaymentDetails,
45
- type ProfileDetail,
46
38
  type TcrBrandRelationship,
47
39
  type TcrVertical,
40
+ type ProfileCreateResponse,
41
+ type ProfileRetrieveResponse,
42
+ type ProfileUpdateResponse,
48
43
  type ProfileListResponse,
49
44
  type ProfileCompleteResponse,
50
45
  type ProfileCreateParams,
@@ -56,9 +51,7 @@ export {
56
51
  } from './profiles/profiles';
57
52
  export {
58
53
  Templates,
59
- type APIResponseTemplate,
60
54
  type AuthenticationConfig,
61
- type Template,
62
55
  type TemplateBody,
63
56
  type TemplateBodyContent,
64
57
  type TemplateButton,
@@ -67,6 +60,9 @@ export {
67
60
  type TemplateFooter,
68
61
  type TemplateHeader,
69
62
  type TemplateVariable,
63
+ type TemplateCreateResponse,
64
+ type TemplateRetrieveResponse,
65
+ type TemplateUpdateResponse,
70
66
  type TemplateListResponse,
71
67
  type TemplateCreateParams,
72
68
  type TemplateRetrieveParams,
@@ -76,9 +72,10 @@ export {
76
72
  } from './templates';
77
73
  export {
78
74
  Users,
79
- type APIResponseOfUser,
80
- type UserResponse,
75
+ type UserRetrieveResponse,
81
76
  type UserListResponse,
77
+ type UserInviteResponse,
78
+ type UserUpdateRoleResponse,
82
79
  type UserRetrieveParams,
83
80
  type UserListParams,
84
81
  type UserInviteParams,
@@ -87,24 +84,21 @@ export {
87
84
  } from './users';
88
85
  export {
89
86
  Webhooks,
90
- type APIMeta,
91
- type APIResponseWebhook,
92
- type ErrorDetail,
93
87
  type InboundMessageEvent,
94
88
  type InboundMessageEventPayload,
95
89
  type MessageEvent,
96
90
  type MessageEventPayload,
97
- type MutationRequest,
98
- type PaginationMeta,
99
91
  type TemplateEvent,
100
92
  type TemplateEventPayload,
101
- type WebhookEventType,
102
- type WebhookResponse,
93
+ type WebhookCreateResponse,
94
+ type WebhookRetrieveResponse,
95
+ type WebhookUpdateResponse,
103
96
  type WebhookListResponse,
104
97
  type WebhookListEventTypesResponse,
105
98
  type WebhookListEventsResponse,
106
99
  type WebhookRotateSecretResponse,
107
100
  type WebhookTestResponse,
101
+ type WebhookToggleStatusResponse,
108
102
  type WebhookCreateParams,
109
103
  type WebhookRetrieveParams,
110
104
  type WebhookUpdateParams,