@zavudev/sdk 0.53.0 → 0.55.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 +36 -0
- package/package.json +1 -1
- package/resources/broadcasts/broadcasts.d.mts +23 -4
- package/resources/broadcasts/broadcasts.d.mts.map +1 -1
- package/resources/broadcasts/broadcasts.d.ts +23 -4
- package/resources/broadcasts/broadcasts.d.ts.map +1 -1
- package/resources/broadcasts/broadcasts.js +23 -4
- package/resources/broadcasts/broadcasts.js.map +1 -1
- package/resources/broadcasts/broadcasts.mjs +23 -4
- package/resources/broadcasts/broadcasts.mjs.map +1 -1
- package/resources/functions/functions.d.mts +88 -3
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +88 -3
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/messages.d.mts +69 -0
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +69 -0
- package/resources/messages.d.ts.map +1 -1
- package/resources/phone-numbers.d.mts +7 -3
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +7 -3
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +4 -1
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +4 -1
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/senders/agent/tools.d.mts +13 -1
- package/resources/senders/agent/tools.d.mts.map +1 -1
- package/resources/senders/agent/tools.d.ts +13 -1
- package/resources/senders/agent/tools.d.ts.map +1 -1
- package/resources/senders/senders.d.mts +51 -1
- package/resources/senders/senders.d.mts.map +1 -1
- package/resources/senders/senders.d.ts +51 -1
- package/resources/senders/senders.d.ts.map +1 -1
- package/resources/senders/senders.js.map +1 -1
- package/resources/senders/senders.mjs.map +1 -1
- package/src/resources/broadcasts/broadcasts.ts +23 -4
- package/src/resources/functions/functions.ts +90 -3
- package/src/resources/messages.ts +80 -0
- package/src/resources/phone-numbers.ts +7 -3
- package/src/resources/senders/agent/tools.ts +14 -1
- package/src/resources/senders/senders.ts +54 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"senders.d.mts","sourceRoot":"","sources":["../../src/resources/senders/senders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,eAAe,4BAAwB;AACnD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,4BAA4B,EAC5B,qCAAqC,EACrC,oCAAoC,EACrC,4BAAwB;AACzB,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,iBAAiB,EAClB,0BAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAE/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAA4C;IACzE,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIxE;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,EAAE,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IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oCAAoC,IAAI,oCAAoC,GAClF,CAAC;CACH"}
|
|
@@ -214,6 +214,21 @@ export interface SenderWebhook {
|
|
|
214
214
|
* List of events the webhook is subscribed to.
|
|
215
215
|
*/
|
|
216
216
|
events: Array<WebhookEvent>;
|
|
217
|
+
/**
|
|
218
|
+
* Which `X-Zavu-Signature` scheme this receiver is sent.
|
|
219
|
+
*
|
|
220
|
+
* - `v1`: `v1=HMAC_SHA256(secret, body)`. The scheme used before this was
|
|
221
|
+
* configurable. Existing webhooks stay on it until you move them.
|
|
222
|
+
* - `v2`: `v2=HMAC_SHA256(secret, "{t}.{body}")`. The current scheme, and the
|
|
223
|
+
* default for new senders. It signs the timestamp together with the body.
|
|
224
|
+
* - `v1+v2`: both signatures, sharing one `t`. The migration setting: a receiver
|
|
225
|
+
* reading either one works, so you can deploy and confirm your new verifier
|
|
226
|
+
* before switching over.
|
|
227
|
+
*
|
|
228
|
+
* Moving from `v1` straight to `v2` returns `400`. Set `v1+v2` first. See
|
|
229
|
+
* https://docs.zavu.dev/guides/receiving-messages/signature-migration
|
|
230
|
+
*/
|
|
231
|
+
signatureVersion: 'v1' | 'v1+v2' | 'v2';
|
|
217
232
|
/**
|
|
218
233
|
* HTTPS URL that will receive webhook events.
|
|
219
234
|
*/
|
|
@@ -254,7 +269,12 @@ export interface SenderWebhook {
|
|
|
254
269
|
* receive time in Unix milliseconds (the moment the channel received the message
|
|
255
270
|
* from the contact — WhatsApp, Telegram, Instagram, Messenger; `null` for SMS
|
|
256
271
|
* and email). Compare it against the top-level `timestamp` (when Zavu dispatched
|
|
257
|
-
* the webhook) to detect and ignore delayed deliveries.
|
|
272
|
+
* the webhook) to detect and ignore delayed deliveries. When the conversation
|
|
273
|
+
* was opened from a Click-to-WhatsApp ad or post, `data.referral` carries the ad
|
|
274
|
+
* attribution — including `ctwaClid`, the identifier Meta's Conversions API
|
|
275
|
+
* needs to credit a conversion back to that ad. WhatsApp only, and only on the
|
|
276
|
+
* first message of the thread: it is absent from every later message, so persist
|
|
277
|
+
* it when it arrives.
|
|
258
278
|
* - `message.unsupported`: Received a message type that is not supported
|
|
259
279
|
*
|
|
260
280
|
* **Broadcast events:**
|
|
@@ -420,6 +440,21 @@ export interface SenderCreateParams {
|
|
|
420
440
|
* Events to subscribe to.
|
|
421
441
|
*/
|
|
422
442
|
webhookEvents?: Array<WebhookEvent>;
|
|
443
|
+
/**
|
|
444
|
+
* Which `X-Zavu-Signature` scheme this receiver is sent.
|
|
445
|
+
*
|
|
446
|
+
* - `v1`: `v1=HMAC_SHA256(secret, body)`. The scheme used before this was
|
|
447
|
+
* configurable. Existing webhooks stay on it until you move them.
|
|
448
|
+
* - `v2`: `v2=HMAC_SHA256(secret, "{t}.{body}")`. The current scheme, and the
|
|
449
|
+
* default for new senders. It signs the timestamp together with the body.
|
|
450
|
+
* - `v1+v2`: both signatures, sharing one `t`. The migration setting: a receiver
|
|
451
|
+
* reading either one works, so you can deploy and confirm your new verifier
|
|
452
|
+
* before switching over.
|
|
453
|
+
*
|
|
454
|
+
* Moving from `v1` straight to `v2` returns `400`. Set `v1+v2` first. See
|
|
455
|
+
* https://docs.zavu.dev/guides/receiving-messages/signature-migration
|
|
456
|
+
*/
|
|
457
|
+
webhookSignatureVersion?: 'v1' | 'v1+v2' | 'v2';
|
|
423
458
|
/**
|
|
424
459
|
* HTTPS URL for webhook events.
|
|
425
460
|
*/
|
|
@@ -472,6 +507,21 @@ export interface SenderUpdateParams {
|
|
|
472
507
|
* Events to subscribe to.
|
|
473
508
|
*/
|
|
474
509
|
webhookEvents?: Array<WebhookEvent>;
|
|
510
|
+
/**
|
|
511
|
+
* Which `X-Zavu-Signature` scheme this receiver is sent.
|
|
512
|
+
*
|
|
513
|
+
* - `v1`: `v1=HMAC_SHA256(secret, body)`. The scheme used before this was
|
|
514
|
+
* configurable. Existing webhooks stay on it until you move them.
|
|
515
|
+
* - `v2`: `v2=HMAC_SHA256(secret, "{t}.{body}")`. The current scheme, and the
|
|
516
|
+
* default for new senders. It signs the timestamp together with the body.
|
|
517
|
+
* - `v1+v2`: both signatures, sharing one `t`. The migration setting: a receiver
|
|
518
|
+
* reading either one works, so you can deploy and confirm your new verifier
|
|
519
|
+
* before switching over.
|
|
520
|
+
*
|
|
521
|
+
* Moving from `v1` straight to `v2` returns `400`. Set `v1+v2` first. See
|
|
522
|
+
* https://docs.zavu.dev/guides/receiving-messages/signature-migration
|
|
523
|
+
*/
|
|
524
|
+
webhookSignatureVersion?: 'v1' | 'v1+v2' | 'v2';
|
|
475
525
|
/**
|
|
476
526
|
* HTTPS URL for webhook events. Set to null to remove webhook.
|
|
477
527
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"senders.d.ts","sourceRoot":"","sources":["../../src/resources/senders/senders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,2BAAwB;AACnD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,4BAA4B,EAC5B,qCAAqC,EACrC,oCAAoC,EACrC,2BAAwB;AACzB,OAAO,KAAK,QAAQ,yBAAsB;AAC1C,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,iBAAiB,EAClB,yBAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,iCAA8B;AAE/E,OAAO,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EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;OASG;IACH,uBAAuB,CAAC,QAAgB,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,QAAQ,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,aAAa,CACX,QAAgB,EAChB,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,eAAe,QAAQ,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,oBAAoB,CAClB,QAAgB,EAChB,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,QAAQ,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AA8iBD,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;AACtC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -180,10 +180,29 @@ export class Broadcasts extends APIResource {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
* Start sending the broadcast immediately or schedule for later.
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
183
|
+
* Start sending the broadcast immediately or schedule for later.
|
|
184
|
+
*
|
|
185
|
+
* **Verification is required to send, except on WhatsApp.** On every channel other
|
|
186
|
+
* than `whatsapp`, the team must have completed both identity verification (KYC)
|
|
187
|
+
* and business verification (KYB); passing one is not enough. A `whatsapp`
|
|
188
|
+
* broadcast requires neither: it can only be built on a template, and Meta vets
|
|
189
|
+
* the business and the content when it approves that template, so an unapproved
|
|
190
|
+
* template is refused instead. `smart` is not exempt — it can route a contact to
|
|
191
|
+
* SMS or email. Drafts can be created, edited and kept without any check. Every
|
|
192
|
+
* send path — dashboard, API and CLI alike — enforces the same rule, returning
|
|
193
|
+
* `403` with code `kyc_required` or `kyb_required` for whichever is outstanding.
|
|
194
|
+
*
|
|
195
|
+
* **Review depends on the channel, and cannot be bypassed.** A draft is submitted
|
|
196
|
+
* to automated content review here; it does not go straight out. A WhatsApp
|
|
197
|
+
* broadcast built on a Meta-approved template skips review (Meta already vetted
|
|
198
|
+
* the content) and begins sending. An email broadcast sends as soon as the
|
|
199
|
+
* automated review passes. Every other channel moves to `pending_admin_review` and
|
|
200
|
+
* waits for a person. If the review rejects it, use PATCH to edit the content then
|
|
201
|
+
* call POST /retry-review.
|
|
202
|
+
*
|
|
203
|
+
* Calling this on a broadcast that is already `approved` or `scheduled` sends or
|
|
204
|
+
* reschedules it directly, since it has already been reviewed. Reserves the
|
|
205
|
+
* estimated cost from your balance.
|
|
187
206
|
*
|
|
188
207
|
* @example
|
|
189
208
|
* ```ts
|
|
@@ -401,6 +401,18 @@ export namespace FunctionDeployResponse {
|
|
|
401
401
|
*/
|
|
402
402
|
version: number;
|
|
403
403
|
|
|
404
|
+
/**
|
|
405
|
+
* What the build printed: dependency installation, the bundler's output, and the
|
|
406
|
+
* compiler's message when it failed. Returned when fetching a single deployment,
|
|
407
|
+
* omitted from the list. Read this first when a deploy fails — `errorMessage` is
|
|
408
|
+
* often the outer wrapper's summary, and the line that names the broken import or
|
|
409
|
+
* the syntax error is here.
|
|
410
|
+
*/
|
|
411
|
+
buildLogs?: string | null;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Size of the built bundle in bytes. Null until the build finishes.
|
|
415
|
+
*/
|
|
404
416
|
bundleBytes?: number | null;
|
|
405
417
|
|
|
406
418
|
deployedAt?: string | null;
|
|
@@ -410,6 +422,9 @@ export namespace FunctionDeployResponse {
|
|
|
410
422
|
*/
|
|
411
423
|
errorMessage?: string | null;
|
|
412
424
|
|
|
425
|
+
/**
|
|
426
|
+
* Total size of the deployed source tree in bytes.
|
|
427
|
+
*/
|
|
413
428
|
sourceCodeBytes?: number | null;
|
|
414
429
|
}
|
|
415
430
|
}
|
|
@@ -436,6 +451,18 @@ export namespace FunctionGetDeploymentResponse {
|
|
|
436
451
|
*/
|
|
437
452
|
version: number;
|
|
438
453
|
|
|
454
|
+
/**
|
|
455
|
+
* What the build printed: dependency installation, the bundler's output, and the
|
|
456
|
+
* compiler's message when it failed. Returned when fetching a single deployment,
|
|
457
|
+
* omitted from the list. Read this first when a deploy fails — `errorMessage` is
|
|
458
|
+
* often the outer wrapper's summary, and the line that names the broken import or
|
|
459
|
+
* the syntax error is here.
|
|
460
|
+
*/
|
|
461
|
+
buildLogs?: string | null;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Size of the built bundle in bytes. Null until the build finishes.
|
|
465
|
+
*/
|
|
439
466
|
bundleBytes?: number | null;
|
|
440
467
|
|
|
441
468
|
deployedAt?: string | null;
|
|
@@ -445,6 +472,9 @@ export namespace FunctionGetDeploymentResponse {
|
|
|
445
472
|
*/
|
|
446
473
|
errorMessage?: string | null;
|
|
447
474
|
|
|
475
|
+
/**
|
|
476
|
+
* Total size of the deployed source tree in bytes.
|
|
477
|
+
*/
|
|
448
478
|
sourceCodeBytes?: number | null;
|
|
449
479
|
}
|
|
450
480
|
}
|
|
@@ -481,6 +511,23 @@ export interface FunctionCreateParams {
|
|
|
481
511
|
|
|
482
512
|
description?: string;
|
|
483
513
|
|
|
514
|
+
/**
|
|
515
|
+
* Which file in `files` is the entry point. Defaults to `index.ts`.
|
|
516
|
+
*/
|
|
517
|
+
entrypoint?: string;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* The project's source files, keyed by path relative to the project root (e.g.
|
|
521
|
+
* `index.ts`, `lib/orders.ts`). Imports between them are resolved when the
|
|
522
|
+
* function is built, so a function can be split across as many files as it needs.
|
|
523
|
+
*
|
|
524
|
+
* Paths must be relative and use forward slashes; `..`, `node_modules/` and
|
|
525
|
+
* `package.json` are rejected. npm packages are not uploaded here — declare them
|
|
526
|
+
* under `dependencies` and Zavu installs them. Limits: 200 files and 900,000 bytes
|
|
527
|
+
* for the whole tree.
|
|
528
|
+
*/
|
|
529
|
+
files?: { [key: string]: string };
|
|
530
|
+
|
|
484
531
|
/**
|
|
485
532
|
* Whether to expose a public HTTPS URL for this function.
|
|
486
533
|
*/
|
|
@@ -494,7 +541,9 @@ export interface FunctionCreateParams {
|
|
|
494
541
|
runtime?: 'nodejs24';
|
|
495
542
|
|
|
496
543
|
/**
|
|
497
|
-
*
|
|
544
|
+
* Shortcut for a single-file function: exactly equivalent to sending `files` with
|
|
545
|
+
* one entry named after `entrypoint` (`index.ts` by default). Fully supported —
|
|
546
|
+
* use whichever fits. If both are sent, `files` wins.
|
|
498
547
|
*/
|
|
499
548
|
sourceCode?: string;
|
|
500
549
|
|
|
@@ -513,6 +562,23 @@ export interface FunctionUpdateParams {
|
|
|
513
562
|
*/
|
|
514
563
|
dependencies?: { [key: string]: string };
|
|
515
564
|
|
|
565
|
+
/**
|
|
566
|
+
* Which file in `files` is the entry point. Defaults to `index.ts`.
|
|
567
|
+
*/
|
|
568
|
+
entrypoint?: string;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* The project's source files, keyed by path relative to the project root (e.g.
|
|
572
|
+
* `index.ts`, `lib/orders.ts`). Imports between them are resolved when the
|
|
573
|
+
* function is built, so a function can be split across as many files as it needs.
|
|
574
|
+
*
|
|
575
|
+
* Paths must be relative and use forward slashes; `..`, `node_modules/` and
|
|
576
|
+
* `package.json` are rejected. npm packages are not uploaded here — declare them
|
|
577
|
+
* under `dependencies` and Zavu installs them. Limits: 200 files and 900,000 bytes
|
|
578
|
+
* for the whole tree.
|
|
579
|
+
*/
|
|
580
|
+
files?: { [key: string]: string };
|
|
581
|
+
|
|
516
582
|
/**
|
|
517
583
|
* Expose the function on its public HTTPS URL, or take it down. Applies to the
|
|
518
584
|
* already-deployed function without redeploying; the URL is returned as
|
|
@@ -521,7 +587,9 @@ export interface FunctionUpdateParams {
|
|
|
521
587
|
httpEnabled?: boolean;
|
|
522
588
|
|
|
523
589
|
/**
|
|
524
|
-
*
|
|
590
|
+
* Shortcut for a single-file function: exactly equivalent to sending `files` with
|
|
591
|
+
* one entry named after `entrypoint` (`index.ts` by default). Fully supported —
|
|
592
|
+
* use whichever fits. If both are sent, `files` wins.
|
|
525
593
|
*/
|
|
526
594
|
sourceCode?: string;
|
|
527
595
|
}
|
|
@@ -533,7 +601,26 @@ export interface FunctionDeployParams {
|
|
|
533
601
|
dependencies?: { [key: string]: string };
|
|
534
602
|
|
|
535
603
|
/**
|
|
536
|
-
*
|
|
604
|
+
* Which file in `files` is the entry point. Defaults to `index.ts`.
|
|
605
|
+
*/
|
|
606
|
+
entrypoint?: string;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* The project's source files, keyed by path relative to the project root (e.g.
|
|
610
|
+
* `index.ts`, `lib/orders.ts`). Imports between them are resolved when the
|
|
611
|
+
* function is built, so a function can be split across as many files as it needs.
|
|
612
|
+
*
|
|
613
|
+
* Paths must be relative and use forward slashes; `..`, `node_modules/` and
|
|
614
|
+
* `package.json` are rejected. npm packages are not uploaded here — declare them
|
|
615
|
+
* under `dependencies` and Zavu installs them. Limits: 200 files and 900,000 bytes
|
|
616
|
+
* for the whole tree.
|
|
617
|
+
*/
|
|
618
|
+
files?: { [key: string]: string };
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Shortcut for a single-file function: exactly equivalent to sending `files` with
|
|
622
|
+
* one entry named after `entrypoint` (`index.ts` by default). Fully supported —
|
|
623
|
+
* use whichever fits. If both are sent, `files` wins.
|
|
537
624
|
*/
|
|
538
625
|
sourceCode?: string;
|
|
539
626
|
}
|
|
@@ -361,6 +361,20 @@ export interface MessageContent {
|
|
|
361
361
|
*/
|
|
362
362
|
reactToMessageId?: string;
|
|
363
363
|
|
|
364
|
+
/**
|
|
365
|
+
* Click-to-WhatsApp (CTWA) ad attribution: where an inbound conversation came
|
|
366
|
+
* from.
|
|
367
|
+
*
|
|
368
|
+
* WhatsApp only. Present on the **first inbound message** of a conversation opened
|
|
369
|
+
* from a Meta ad or post, and on no message after it — so store it when it arrives
|
|
370
|
+
* rather than expecting it again. Organic conversations never carry it.
|
|
371
|
+
*
|
|
372
|
+
* Field names are camelCased to match the rest of this API; Meta sends them as
|
|
373
|
+
* snake_case (`ctwa_clid`, `source_id`, ...). Fields that do not apply are
|
|
374
|
+
* omitted: a `post` source has no click id, and an image ad has no `videoUrl`.
|
|
375
|
+
*/
|
|
376
|
+
referral?: MessageContent.Referral;
|
|
377
|
+
|
|
364
378
|
/**
|
|
365
379
|
* Sender of the quoted message (phone number in E.164 format).
|
|
366
380
|
*/
|
|
@@ -450,6 +464,72 @@ export namespace MessageContent {
|
|
|
450
464
|
phones?: Array<string>;
|
|
451
465
|
}
|
|
452
466
|
|
|
467
|
+
/**
|
|
468
|
+
* Click-to-WhatsApp (CTWA) ad attribution: where an inbound conversation came
|
|
469
|
+
* from.
|
|
470
|
+
*
|
|
471
|
+
* WhatsApp only. Present on the **first inbound message** of a conversation opened
|
|
472
|
+
* from a Meta ad or post, and on no message after it — so store it when it arrives
|
|
473
|
+
* rather than expecting it again. Organic conversations never carry it.
|
|
474
|
+
*
|
|
475
|
+
* Field names are camelCased to match the rest of this API; Meta sends them as
|
|
476
|
+
* snake_case (`ctwa_clid`, `source_id`, ...). Fields that do not apply are
|
|
477
|
+
* omitted: a `post` source has no click id, and an image ad has no `videoUrl`.
|
|
478
|
+
*/
|
|
479
|
+
export interface Referral {
|
|
480
|
+
/**
|
|
481
|
+
* Body copy of the ad or post.
|
|
482
|
+
*/
|
|
483
|
+
body?: string;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Click-to-WhatsApp click identifier. This is the value Meta's Conversions API
|
|
487
|
+
* needs to credit a conversion back to the ad that produced the conversation.
|
|
488
|
+
* Present on `ad` sources; a `post` source has none.
|
|
489
|
+
*/
|
|
490
|
+
ctwaClid?: string;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Headline of the ad or post.
|
|
494
|
+
*/
|
|
495
|
+
headline?: string;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Image of the ad. Present when `mediaType` is `image`.
|
|
499
|
+
*/
|
|
500
|
+
imageUrl?: string;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Type of media on the ad, when it had any.
|
|
504
|
+
*/
|
|
505
|
+
mediaType?: 'image' | 'video';
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Identifier of the ad or post that produced the click.
|
|
509
|
+
*/
|
|
510
|
+
sourceId?: string;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Where the click came from.
|
|
514
|
+
*/
|
|
515
|
+
sourceType?: 'ad' | 'post';
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Meta permalink to the ad or post.
|
|
519
|
+
*/
|
|
520
|
+
sourceUrl?: string;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Thumbnail of the ad media.
|
|
524
|
+
*/
|
|
525
|
+
thumbnailUrl?: string;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Video of the ad. Present when `mediaType` is `video`.
|
|
529
|
+
*/
|
|
530
|
+
videoUrl?: string;
|
|
531
|
+
}
|
|
532
|
+
|
|
453
533
|
export interface Section {
|
|
454
534
|
rows: Array<Section.Row>;
|
|
455
535
|
|
|
@@ -62,7 +62,10 @@ export class PhoneNumbers extends APIResource {
|
|
|
62
62
|
/**
|
|
63
63
|
* Purchase an available phone number. Requires a paid plan: the Free plan cannot
|
|
64
64
|
* purchase phone numbers and receives `402` with code `paid_plan_required`. Paid
|
|
65
|
-
* plans include
|
|
65
|
+
* plans include one US number at no charge. The included number is one per account
|
|
66
|
+
* and is granted once: claiming it spends the benefit for good, so releasing that
|
|
67
|
+
* number does not make another one free, and numbers the account already bought do
|
|
68
|
+
* not consume it.
|
|
66
69
|
*
|
|
67
70
|
* @example
|
|
68
71
|
* ```ts
|
|
@@ -207,8 +210,9 @@ export interface PhoneNumberCapabilities {
|
|
|
207
210
|
|
|
208
211
|
export interface PhoneNumberPricing {
|
|
209
212
|
/**
|
|
210
|
-
* Whether this number qualifies as the plan-included
|
|
211
|
-
*
|
|
213
|
+
* Whether this number qualifies as the plan-included US number on paid plans. The
|
|
214
|
+
* benefit is one per account: it is never offered again once claimed, not even
|
|
215
|
+
* after the number is released.
|
|
212
216
|
*/
|
|
213
217
|
isFreeEligible?: boolean;
|
|
214
218
|
|
|
@@ -172,6 +172,17 @@ export interface AgentTool {
|
|
|
172
172
|
* HTTPS URL to call when the tool is executed.
|
|
173
173
|
*/
|
|
174
174
|
webhookUrl: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Signing secret for this tool's webhook. **Returned only when the tool is
|
|
178
|
+
* created**, never on a later read.
|
|
179
|
+
*
|
|
180
|
+
* Zavu generates one if you do not supply it, and signs every call to this tool
|
|
181
|
+
* with it: `X-Zavu-Signature: <hex>`, the HMAC-SHA256 of the request body. Verify
|
|
182
|
+
* it before trusting the call. Lost it? Rotate with
|
|
183
|
+
* `POST /v1/senders/{senderId}/agent/tools/{toolId}/webhook/secret`.
|
|
184
|
+
*/
|
|
185
|
+
webhookSecret?: string;
|
|
175
186
|
}
|
|
176
187
|
|
|
177
188
|
export interface ToolParameters {
|
|
@@ -268,7 +279,9 @@ export interface ToolCreateParams {
|
|
|
268
279
|
enabled?: boolean;
|
|
269
280
|
|
|
270
281
|
/**
|
|
271
|
-
*
|
|
282
|
+
* Signing secret for the webhook. Optional: Zavu generates one when omitted and
|
|
283
|
+
* returns it on this response only. Supply your own if you already have a secret
|
|
284
|
+
* you want reused.
|
|
272
285
|
*/
|
|
273
286
|
webhookSecret?: string;
|
|
274
287
|
}
|
|
@@ -300,6 +300,22 @@ export interface SenderWebhook {
|
|
|
300
300
|
*/
|
|
301
301
|
events: Array<WebhookEvent>;
|
|
302
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Which `X-Zavu-Signature` scheme this receiver is sent.
|
|
305
|
+
*
|
|
306
|
+
* - `v1`: `v1=HMAC_SHA256(secret, body)`. The scheme used before this was
|
|
307
|
+
* configurable. Existing webhooks stay on it until you move them.
|
|
308
|
+
* - `v2`: `v2=HMAC_SHA256(secret, "{t}.{body}")`. The current scheme, and the
|
|
309
|
+
* default for new senders. It signs the timestamp together with the body.
|
|
310
|
+
* - `v1+v2`: both signatures, sharing one `t`. The migration setting: a receiver
|
|
311
|
+
* reading either one works, so you can deploy and confirm your new verifier
|
|
312
|
+
* before switching over.
|
|
313
|
+
*
|
|
314
|
+
* Moving from `v1` straight to `v2` returns `400`. Set `v1+v2` first. See
|
|
315
|
+
* https://docs.zavu.dev/guides/receiving-messages/signature-migration
|
|
316
|
+
*/
|
|
317
|
+
signatureVersion: 'v1' | 'v1+v2' | 'v2';
|
|
318
|
+
|
|
303
319
|
/**
|
|
304
320
|
* HTTPS URL that will receive webhook events.
|
|
305
321
|
*/
|
|
@@ -342,7 +358,12 @@ export interface SenderWebhook {
|
|
|
342
358
|
* receive time in Unix milliseconds (the moment the channel received the message
|
|
343
359
|
* from the contact — WhatsApp, Telegram, Instagram, Messenger; `null` for SMS
|
|
344
360
|
* and email). Compare it against the top-level `timestamp` (when Zavu dispatched
|
|
345
|
-
* the webhook) to detect and ignore delayed deliveries.
|
|
361
|
+
* the webhook) to detect and ignore delayed deliveries. When the conversation
|
|
362
|
+
* was opened from a Click-to-WhatsApp ad or post, `data.referral` carries the ad
|
|
363
|
+
* attribution — including `ctwaClid`, the identifier Meta's Conversions API
|
|
364
|
+
* needs to credit a conversion back to that ad. WhatsApp only, and only on the
|
|
365
|
+
* first message of the thread: it is absent from every later message, so persist
|
|
366
|
+
* it when it arrives.
|
|
346
367
|
* - `message.unsupported`: Received a message type that is not supported
|
|
347
368
|
*
|
|
348
369
|
* **Broadcast events:**
|
|
@@ -570,6 +591,22 @@ export interface SenderCreateParams {
|
|
|
570
591
|
*/
|
|
571
592
|
webhookEvents?: Array<WebhookEvent>;
|
|
572
593
|
|
|
594
|
+
/**
|
|
595
|
+
* Which `X-Zavu-Signature` scheme this receiver is sent.
|
|
596
|
+
*
|
|
597
|
+
* - `v1`: `v1=HMAC_SHA256(secret, body)`. The scheme used before this was
|
|
598
|
+
* configurable. Existing webhooks stay on it until you move them.
|
|
599
|
+
* - `v2`: `v2=HMAC_SHA256(secret, "{t}.{body}")`. The current scheme, and the
|
|
600
|
+
* default for new senders. It signs the timestamp together with the body.
|
|
601
|
+
* - `v1+v2`: both signatures, sharing one `t`. The migration setting: a receiver
|
|
602
|
+
* reading either one works, so you can deploy and confirm your new verifier
|
|
603
|
+
* before switching over.
|
|
604
|
+
*
|
|
605
|
+
* Moving from `v1` straight to `v2` returns `400`. Set `v1+v2` first. See
|
|
606
|
+
* https://docs.zavu.dev/guides/receiving-messages/signature-migration
|
|
607
|
+
*/
|
|
608
|
+
webhookSignatureVersion?: 'v1' | 'v1+v2' | 'v2';
|
|
609
|
+
|
|
573
610
|
/**
|
|
574
611
|
* HTTPS URL for webhook events.
|
|
575
612
|
*/
|
|
@@ -634,6 +671,22 @@ export interface SenderUpdateParams {
|
|
|
634
671
|
*/
|
|
635
672
|
webhookEvents?: Array<WebhookEvent>;
|
|
636
673
|
|
|
674
|
+
/**
|
|
675
|
+
* Which `X-Zavu-Signature` scheme this receiver is sent.
|
|
676
|
+
*
|
|
677
|
+
* - `v1`: `v1=HMAC_SHA256(secret, body)`. The scheme used before this was
|
|
678
|
+
* configurable. Existing webhooks stay on it until you move them.
|
|
679
|
+
* - `v2`: `v2=HMAC_SHA256(secret, "{t}.{body}")`. The current scheme, and the
|
|
680
|
+
* default for new senders. It signs the timestamp together with the body.
|
|
681
|
+
* - `v1+v2`: both signatures, sharing one `t`. The migration setting: a receiver
|
|
682
|
+
* reading either one works, so you can deploy and confirm your new verifier
|
|
683
|
+
* before switching over.
|
|
684
|
+
*
|
|
685
|
+
* Moving from `v1` straight to `v2` returns `400`. Set `v1+v2` first. See
|
|
686
|
+
* https://docs.zavu.dev/guides/receiving-messages/signature-migration
|
|
687
|
+
*/
|
|
688
|
+
webhookSignatureVersion?: 'v1' | 'v1+v2' | 'v2';
|
|
689
|
+
|
|
637
690
|
/**
|
|
638
691
|
* HTTPS URL for webhook events. Set to null to remove webhook.
|
|
639
692
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.55.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.55.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.55.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.55.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|