@sentdm/sentdm 0.32.0 → 0.33.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 +13 -0
- package/client.d.mts +9 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/contacts.d.mts +66 -1
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +66 -1
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +24 -0
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +24 -0
- package/resources/contacts.mjs.map +1 -1
- package/resources/conversations.d.mts +160 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +160 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +59 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +55 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +5 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +5 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +4 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +4 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/profiles/campaigns.d.mts +112 -83
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +112 -83
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/campaigns.js +6 -5
- package/resources/profiles/campaigns.js.map +1 -1
- package/resources/profiles/campaigns.mjs +6 -5
- package/resources/profiles/campaigns.mjs.map +1 -1
- package/resources/profiles/index.d.mts +2 -2
- package/resources/profiles/index.d.mts.map +1 -1
- package/resources/profiles/index.d.ts +2 -2
- package/resources/profiles/index.d.ts.map +1 -1
- package/resources/profiles/profiles.d.mts +138 -135
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +138 -135
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +30 -18
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +30 -18
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/templates.d.mts +87 -87
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +87 -87
- package/resources/templates.d.ts.map +1 -1
- package/src/client.ts +41 -18
- package/src/resources/contacts.ts +96 -0
- package/src/resources/conversations.ts +238 -0
- package/src/resources/index.ts +19 -9
- package/src/resources/messages.ts +5 -3
- package/src/resources/profiles/campaigns.ts +160 -132
- package/src/resources/profiles/index.ts +8 -8
- package/src/resources/profiles/profiles.ts +172 -171
- package/src/resources/templates.ts +105 -105
- 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
|
@@ -169,7 +169,7 @@ export interface APIResponseTemplate {
|
|
|
169
169
|
/**
|
|
170
170
|
* Configuration for AUTHENTICATION category templates
|
|
171
171
|
*/
|
|
172
|
-
export interface
|
|
172
|
+
export interface AuthenticationConfig {
|
|
173
173
|
/**
|
|
174
174
|
* Whether to add the security recommendation text: "For your security, do not
|
|
175
175
|
* share this code."
|
|
@@ -183,10 +183,65 @@ export interface SentDmServicesCommonContractsPocOsAuthenticationConfig {
|
|
|
183
183
|
codeExpirationMinutes?: number | null;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Template response for v3 API
|
|
188
|
+
*/
|
|
189
|
+
export interface Template {
|
|
190
|
+
/**
|
|
191
|
+
* Unique template identifier
|
|
192
|
+
*/
|
|
193
|
+
id?: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
197
|
+
*/
|
|
198
|
+
category?: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Supported channels: sms, whatsapp
|
|
202
|
+
*/
|
|
203
|
+
channels?: Array<string> | null;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* When the template was created
|
|
207
|
+
*/
|
|
208
|
+
created_at?: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Whether the template is published and active
|
|
212
|
+
*/
|
|
213
|
+
is_published?: boolean;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Template language code (e.g., en_US)
|
|
217
|
+
*/
|
|
218
|
+
language?: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Template display name
|
|
222
|
+
*/
|
|
223
|
+
name?: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Template status: APPROVED, PENDING, REJECTED
|
|
227
|
+
*/
|
|
228
|
+
status?: string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* When the template was last updated
|
|
232
|
+
*/
|
|
233
|
+
updated_at?: string | null;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Template variables for personalization
|
|
237
|
+
*/
|
|
238
|
+
variables?: Array<string> | null;
|
|
239
|
+
}
|
|
240
|
+
|
|
186
241
|
/**
|
|
187
242
|
* Body section of a message template with channel-specific content
|
|
188
243
|
*/
|
|
189
|
-
export interface
|
|
244
|
+
export interface TemplateBody {
|
|
190
245
|
/**
|
|
191
246
|
* Content that will be used for all channels (SMS and WhatsApp) unless
|
|
192
247
|
* channel-specific content is provided
|
|
@@ -210,14 +265,22 @@ export interface SentDmServicesCommonContractsPocOsTemplateBody {
|
|
|
210
265
|
whatsapp?: TemplateBodyContent | null;
|
|
211
266
|
}
|
|
212
267
|
|
|
268
|
+
export interface TemplateBodyContent {
|
|
269
|
+
template: string;
|
|
270
|
+
|
|
271
|
+
type?: string | null;
|
|
272
|
+
|
|
273
|
+
variables?: Array<TemplateVariable> | null;
|
|
274
|
+
}
|
|
275
|
+
|
|
213
276
|
/**
|
|
214
277
|
* Interactive button in a message template
|
|
215
278
|
*/
|
|
216
|
-
export interface
|
|
279
|
+
export interface TemplateButton {
|
|
217
280
|
/**
|
|
218
281
|
* Properties specific to the button type
|
|
219
282
|
*/
|
|
220
|
-
props:
|
|
283
|
+
props: TemplateButtonProps;
|
|
221
284
|
|
|
222
285
|
/**
|
|
223
286
|
* The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
|
|
@@ -230,7 +293,7 @@ export interface SentDmServicesCommonContractsPocOsTemplateButton {
|
|
|
230
293
|
id?: number;
|
|
231
294
|
}
|
|
232
295
|
|
|
233
|
-
export interface
|
|
296
|
+
export interface TemplateButtonProps {
|
|
234
297
|
activeFor: number;
|
|
235
298
|
|
|
236
299
|
countryCode: string;
|
|
@@ -264,143 +327,80 @@ export interface SentDmServicesCommonContractsPocOsTemplateButtonProps {
|
|
|
264
327
|
}
|
|
265
328
|
|
|
266
329
|
/**
|
|
267
|
-
*
|
|
330
|
+
* Complete definition of a message template including header, body, footer, and
|
|
331
|
+
* buttons
|
|
268
332
|
*/
|
|
269
|
-
export interface
|
|
333
|
+
export interface TemplateDefinition {
|
|
270
334
|
/**
|
|
271
|
-
*
|
|
335
|
+
* Body section of a message template with channel-specific content
|
|
272
336
|
*/
|
|
273
|
-
|
|
337
|
+
body: TemplateBody;
|
|
274
338
|
|
|
275
339
|
/**
|
|
276
|
-
*
|
|
340
|
+
* Configuration for AUTHENTICATION category templates
|
|
277
341
|
*/
|
|
278
|
-
|
|
342
|
+
authenticationConfig?: AuthenticationConfig | null;
|
|
279
343
|
|
|
280
344
|
/**
|
|
281
|
-
*
|
|
345
|
+
* Optional list of interactive buttons (e.g., quick replies, URLs, phone numbers)
|
|
282
346
|
*/
|
|
283
|
-
|
|
284
|
-
}
|
|
347
|
+
buttons?: Array<TemplateButton> | null;
|
|
285
348
|
|
|
286
|
-
/**
|
|
287
|
-
* Header section of a message template
|
|
288
|
-
*/
|
|
289
|
-
export interface SentDmServicesCommonContractsPocOsTemplateHeader {
|
|
290
349
|
/**
|
|
291
|
-
* The
|
|
292
|
-
* {{0:variable}}")
|
|
350
|
+
* The version of the template definition format
|
|
293
351
|
*/
|
|
294
|
-
|
|
352
|
+
definitionVersion?: string | null;
|
|
295
353
|
|
|
296
354
|
/**
|
|
297
|
-
*
|
|
355
|
+
* Footer section of a message template
|
|
298
356
|
*/
|
|
299
|
-
|
|
357
|
+
footer?: TemplateFooter | null;
|
|
300
358
|
|
|
301
359
|
/**
|
|
302
|
-
*
|
|
360
|
+
* Header section of a message template
|
|
303
361
|
*/
|
|
304
|
-
|
|
362
|
+
header?: TemplateHeader | null;
|
|
305
363
|
}
|
|
306
364
|
|
|
307
365
|
/**
|
|
308
|
-
*
|
|
366
|
+
* Footer section of a message template
|
|
309
367
|
*/
|
|
310
|
-
export interface
|
|
311
|
-
/**
|
|
312
|
-
* Unique template identifier
|
|
313
|
-
*/
|
|
314
|
-
id?: string;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
318
|
-
*/
|
|
319
|
-
category?: string;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Supported channels: sms, whatsapp
|
|
323
|
-
*/
|
|
324
|
-
channels?: Array<string> | null;
|
|
325
|
-
|
|
368
|
+
export interface TemplateFooter {
|
|
326
369
|
/**
|
|
327
|
-
*
|
|
328
|
-
*/
|
|
329
|
-
created_at?: string;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Whether the template is published and active
|
|
333
|
-
*/
|
|
334
|
-
is_published?: boolean;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Template language code (e.g., en_US)
|
|
338
|
-
*/
|
|
339
|
-
language?: string;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Template display name
|
|
343
|
-
*/
|
|
344
|
-
name?: string;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Template status: APPROVED, PENDING, REJECTED
|
|
370
|
+
* The footer template text with optional variable placeholders
|
|
348
371
|
*/
|
|
349
|
-
|
|
372
|
+
template: string;
|
|
350
373
|
|
|
351
374
|
/**
|
|
352
|
-
*
|
|
375
|
+
* The type of footer (typically "text")
|
|
353
376
|
*/
|
|
354
|
-
|
|
377
|
+
type?: string | null;
|
|
355
378
|
|
|
356
379
|
/**
|
|
357
|
-
*
|
|
380
|
+
* List of variables used in the footer template
|
|
358
381
|
*/
|
|
359
|
-
variables?: Array<string> | null;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export interface TemplateBodyContent {
|
|
363
|
-
template: string;
|
|
364
|
-
|
|
365
|
-
type?: string | null;
|
|
366
|
-
|
|
367
382
|
variables?: Array<TemplateVariable> | null;
|
|
368
383
|
}
|
|
369
384
|
|
|
370
385
|
/**
|
|
371
|
-
*
|
|
372
|
-
* buttons
|
|
386
|
+
* Header section of a message template
|
|
373
387
|
*/
|
|
374
|
-
export interface
|
|
388
|
+
export interface TemplateHeader {
|
|
375
389
|
/**
|
|
376
|
-
*
|
|
377
|
-
|
|
378
|
-
body: SentDmServicesCommonContractsPocOsTemplateBody;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Configuration for AUTHENTICATION category templates
|
|
382
|
-
*/
|
|
383
|
-
authenticationConfig?: SentDmServicesCommonContractsPocOsAuthenticationConfig | null;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Optional list of interactive buttons (e.g., quick replies, URLs, phone numbers)
|
|
387
|
-
*/
|
|
388
|
-
buttons?: Array<SentDmServicesCommonContractsPocOsTemplateButton> | null;
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* The version of the template definition format
|
|
390
|
+
* The header template text with optional variable placeholders (e.g., "Welcome to
|
|
391
|
+
* {{0:variable}}")
|
|
392
392
|
*/
|
|
393
|
-
|
|
393
|
+
template: string;
|
|
394
394
|
|
|
395
395
|
/**
|
|
396
|
-
*
|
|
396
|
+
* The type of header (e.g., "text", "image", "video", "document")
|
|
397
397
|
*/
|
|
398
|
-
|
|
398
|
+
type?: string | null;
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
|
-
*
|
|
401
|
+
* List of variables used in the header template
|
|
402
402
|
*/
|
|
403
|
-
|
|
403
|
+
variables?: Array<TemplateVariable> | null;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
export interface TemplateVariable {
|
|
@@ -644,15 +644,15 @@ export interface TemplateDeleteParams {
|
|
|
644
644
|
export declare namespace Templates {
|
|
645
645
|
export {
|
|
646
646
|
type APIResponseTemplate as APIResponseTemplate,
|
|
647
|
-
type
|
|
648
|
-
type SentDmServicesCommonContractsPocOsTemplateBody as SentDmServicesCommonContractsPocOsTemplateBody,
|
|
649
|
-
type SentDmServicesCommonContractsPocOsTemplateButton as SentDmServicesCommonContractsPocOsTemplateButton,
|
|
650
|
-
type SentDmServicesCommonContractsPocOsTemplateButtonProps as SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
651
|
-
type SentDmServicesCommonContractsPocOsTemplateFooter as SentDmServicesCommonContractsPocOsTemplateFooter,
|
|
652
|
-
type SentDmServicesCommonContractsPocOsTemplateHeader as SentDmServicesCommonContractsPocOsTemplateHeader,
|
|
647
|
+
type AuthenticationConfig as AuthenticationConfig,
|
|
653
648
|
type Template as Template,
|
|
649
|
+
type TemplateBody as TemplateBody,
|
|
654
650
|
type TemplateBodyContent as TemplateBodyContent,
|
|
651
|
+
type TemplateButton as TemplateButton,
|
|
652
|
+
type TemplateButtonProps as TemplateButtonProps,
|
|
655
653
|
type TemplateDefinition as TemplateDefinition,
|
|
654
|
+
type TemplateFooter as TemplateFooter,
|
|
655
|
+
type TemplateHeader as TemplateHeader,
|
|
656
656
|
type TemplateVariable as TemplateVariable,
|
|
657
657
|
type TemplateListResponse as TemplateListResponse,
|
|
658
658
|
type TemplateCreateParams as TemplateCreateParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.33.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.33.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.33.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.33.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|