@samva/webhooks 0.15.0 → 0.16.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/dist/effect.js +4 -4
- package/dist/{json-schemas.gen-eya_ZDps.js → json-schemas.gen-CC-lSu4T.js} +756 -5
- package/dist/promise.js +2 -2
- package/dist/protocol-DxerOUFO.js +668 -0
- package/dist/protocol.js +1 -1
- package/dist/schemas.gen.d.ts +443 -0
- package/dist/schemas.gen.js +344 -1
- package/dist/types.gen.d.ts +320 -1
- package/package.json +1 -1
- package/dist/protocol-CLrYczjc.js +0 -570
package/dist/protocol.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as WebhookTimestampError, a as encodeWebhookSignature, c as signWebhook, d as webhookSignedContent, f as InvalidWebhookHeadersError, g as WebhookSignatureError, h as WebhookCryptoError, i as WEBHOOK_TIMESTAMP_HEADER, l as verifyWebhookAt, m as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, o as generateWebhookSecret, p as InvalidWebhookSecretError, r as WEBHOOK_SIGNATURE_HEADER, s as readWebhookHeaders, t as DEFAULT_TOLERANCE_SECONDS, u as verifyWebhookAtWithPublicKeys, v as WebhookVerificationError, y as isKnownEvent } from "./protocol-
|
|
1
|
+
import { _ as WebhookTimestampError, a as encodeWebhookSignature, c as signWebhook, d as webhookSignedContent, f as InvalidWebhookHeadersError, g as WebhookSignatureError, h as WebhookCryptoError, i as WEBHOOK_TIMESTAMP_HEADER, l as verifyWebhookAt, m as MalformedWebhookPayloadError, n as WEBHOOK_ID_HEADER, o as generateWebhookSecret, p as InvalidWebhookSecretError, r as WEBHOOK_SIGNATURE_HEADER, s as readWebhookHeaders, t as DEFAULT_TOLERANCE_SECONDS, u as verifyWebhookAtWithPublicKeys, v as WebhookVerificationError, y as isKnownEvent } from "./protocol-DxerOUFO.js";
|
|
2
2
|
export { DEFAULT_TOLERANCE_SECONDS, InvalidWebhookHeadersError, InvalidWebhookSecretError, MalformedWebhookPayloadError, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WebhookCryptoError, WebhookSignatureError, WebhookTimestampError, WebhookVerificationError, encodeWebhookSignature, generateWebhookSecret, isKnownEvent, readWebhookHeaders, signWebhook, verifyWebhookAt, verifyWebhookAtWithPublicKeys, webhookSignedContent };
|
package/dist/schemas.gen.d.ts
CHANGED
|
@@ -240,6 +240,198 @@ export declare const MessageReceivedEventSchema: Schema.StructWithRest<Schema.St
|
|
|
240
240
|
readonly errorMessage: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
241
241
|
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
242
242
|
readonly carrier: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
243
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
244
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
245
|
+
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
246
|
+
readonly name: Schema.String;
|
|
247
|
+
readonly language: Schema.String;
|
|
248
|
+
readonly components: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
249
|
+
readonly type: Schema.Literals<readonly ["header", "body", "footer", "button"]>;
|
|
250
|
+
readonly sub_type: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["url", "quick_reply", "copy_code"]>, Schema.Null]>>;
|
|
251
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
252
|
+
readonly parameters: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
253
|
+
readonly type: Schema.Literals<readonly ["text", "currency", "date_time", "image", "document", "video", "coupon_code"]>;
|
|
254
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
255
|
+
readonly currency: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
256
|
+
readonly fallback_value: Schema.String;
|
|
257
|
+
readonly code: Schema.String;
|
|
258
|
+
readonly amount_1000: Schema.Finite;
|
|
259
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
260
|
+
readonly date_time: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
261
|
+
readonly fallback_value: Schema.String;
|
|
262
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
263
|
+
readonly image: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
264
|
+
readonly link: Schema.String;
|
|
265
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
266
|
+
readonly document: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
267
|
+
readonly link: Schema.String;
|
|
268
|
+
readonly filename: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
269
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
270
|
+
readonly video: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
271
|
+
readonly link: Schema.String;
|
|
272
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
273
|
+
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
274
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
275
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
276
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
277
|
+
readonly interactive: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
278
|
+
readonly type: Schema.Literal<"buttons">;
|
|
279
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
280
|
+
readonly type: Schema.Literal<"text">;
|
|
281
|
+
readonly text: Schema.String;
|
|
282
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
283
|
+
readonly type: Schema.Literal<"image">;
|
|
284
|
+
readonly url: Schema.String;
|
|
285
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
286
|
+
readonly type: Schema.Literal<"image">;
|
|
287
|
+
readonly mediaId: Schema.String;
|
|
288
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
289
|
+
readonly type: Schema.Literal<"video">;
|
|
290
|
+
readonly url: Schema.String;
|
|
291
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
292
|
+
readonly type: Schema.Literal<"video">;
|
|
293
|
+
readonly mediaId: Schema.String;
|
|
294
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
295
|
+
readonly type: Schema.Literal<"document">;
|
|
296
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
297
|
+
readonly url: Schema.String;
|
|
298
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
299
|
+
readonly type: Schema.Literal<"document">;
|
|
300
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
301
|
+
readonly mediaId: Schema.String;
|
|
302
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>]>>;
|
|
303
|
+
readonly body: Schema.String;
|
|
304
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
305
|
+
readonly buttons: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
306
|
+
readonly id: Schema.String;
|
|
307
|
+
readonly title: Schema.String;
|
|
308
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
309
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
310
|
+
readonly type: Schema.Literal<"list">;
|
|
311
|
+
readonly header: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
312
|
+
readonly type: Schema.Literal<"text">;
|
|
313
|
+
readonly text: Schema.String;
|
|
314
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
315
|
+
readonly body: Schema.String;
|
|
316
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
317
|
+
readonly button: Schema.String;
|
|
318
|
+
readonly sections: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
319
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
320
|
+
readonly rows: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
321
|
+
readonly id: Schema.String;
|
|
322
|
+
readonly title: Schema.String;
|
|
323
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
324
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
325
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
326
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
327
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
328
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
329
|
+
readonly type: Schema.Literal<"text">;
|
|
330
|
+
readonly text: Schema.String;
|
|
331
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
332
|
+
readonly type: Schema.Literal<"image">;
|
|
333
|
+
readonly url: Schema.String;
|
|
334
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
335
|
+
readonly type: Schema.Literal<"image">;
|
|
336
|
+
readonly mediaId: Schema.String;
|
|
337
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
338
|
+
readonly type: Schema.Literal<"video">;
|
|
339
|
+
readonly url: Schema.String;
|
|
340
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
341
|
+
readonly type: Schema.Literal<"video">;
|
|
342
|
+
readonly mediaId: Schema.String;
|
|
343
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
344
|
+
readonly type: Schema.Literal<"document">;
|
|
345
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
346
|
+
readonly url: Schema.String;
|
|
347
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
348
|
+
readonly type: Schema.Literal<"document">;
|
|
349
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
350
|
+
readonly mediaId: Schema.String;
|
|
351
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>]>>;
|
|
352
|
+
readonly body: Schema.String;
|
|
353
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
354
|
+
readonly displayText: Schema.String;
|
|
355
|
+
readonly url: Schema.String;
|
|
356
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>;
|
|
357
|
+
readonly media: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
358
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
359
|
+
readonly url: Schema.String;
|
|
360
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
361
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
362
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
363
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
364
|
+
readonly mediaId: Schema.String;
|
|
365
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
366
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
367
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
368
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
369
|
+
readonly providerMediaId: Schema.String;
|
|
370
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
371
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
372
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
373
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Null]>>;
|
|
374
|
+
readonly reaction: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
375
|
+
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
376
|
+
readonly providerMessageId: Schema.String;
|
|
377
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
378
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
379
|
+
readonly location: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
380
|
+
readonly latitude: Schema.Finite;
|
|
381
|
+
readonly longitude: Schema.Finite;
|
|
382
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
383
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
384
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
385
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
386
|
+
readonly contacts: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
387
|
+
readonly name: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
388
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
389
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
390
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
391
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
392
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
393
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
394
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
395
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
396
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
397
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
398
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
399
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
400
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
401
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
402
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
403
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
404
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
405
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
406
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
407
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
408
|
+
readonly org: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
409
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
410
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
411
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
412
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
413
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
414
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
415
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
416
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
417
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
418
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
419
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
420
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
421
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
422
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
423
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
424
|
+
readonly reply: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
425
|
+
readonly type: Schema.Literals<readonly ["button", "list", "template_button"]>;
|
|
426
|
+
readonly id: Schema.String;
|
|
427
|
+
readonly title: Schema.String;
|
|
428
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
429
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
430
|
+
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
431
|
+
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
432
|
+
readonly providerMessageId: Schema.String;
|
|
433
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
434
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
243
435
|
readonly messageId: Schema.String;
|
|
244
436
|
readonly organizationId: Schema.String;
|
|
245
437
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
@@ -566,6 +758,36 @@ export declare const DomainWarmingUpdatedEventSchema: Schema.StructWithRest<Sche
|
|
|
566
758
|
readonly updatedAt: Schema.String;
|
|
567
759
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
568
760
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
761
|
+
export declare const TemplateRegistrationUpdatedEventSchema: Schema.StructWithRest<Schema.Struct<{
|
|
762
|
+
readonly type: Schema.Literal<"template.registration.updated">;
|
|
763
|
+
readonly timestamp: Schema.String;
|
|
764
|
+
readonly data: Schema.StructWithRest<Schema.Struct<{
|
|
765
|
+
readonly id: Schema.String;
|
|
766
|
+
readonly templateId: Schema.String;
|
|
767
|
+
readonly publicationId: Schema.String;
|
|
768
|
+
readonly target: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
769
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
770
|
+
readonly wabaId: Schema.String;
|
|
771
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
772
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
773
|
+
readonly entityId: Schema.String;
|
|
774
|
+
readonly headerId: Schema.String;
|
|
775
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
|
|
776
|
+
readonly name: Schema.String;
|
|
777
|
+
readonly language: Schema.String;
|
|
778
|
+
readonly status: Schema.Literals<readonly ["draft", "submitted", "approved", "rejected", "paused", "disabled"]>;
|
|
779
|
+
readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "transactional", "service_implicit", "service_explicit", "promotional"]>;
|
|
780
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Literals<readonly ["marketing", "utility", "authentication", "transactional", "service_implicit", "service_explicit", "promotional"]>, Schema.Null]>;
|
|
781
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
782
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
783
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
784
|
+
readonly statusChangedAt: Schema.String;
|
|
785
|
+
readonly createdAt: Schema.String;
|
|
786
|
+
readonly updatedAt: Schema.String;
|
|
787
|
+
readonly organizationId: Schema.String;
|
|
788
|
+
readonly previousStatus: Schema.Literals<readonly ["draft", "submitted", "approved", "rejected", "paused", "disabled"]>;
|
|
789
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
790
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
569
791
|
export declare const MailboxMessageReceivedEventSchema: Schema.StructWithRest<Schema.Struct<{
|
|
570
792
|
readonly type: Schema.Literal<"mailbox.message.received">;
|
|
571
793
|
readonly timestamp: Schema.String;
|
|
@@ -990,6 +1212,198 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
990
1212
|
readonly errorMessage: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
991
1213
|
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
992
1214
|
readonly carrier: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1215
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1216
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1217
|
+
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1218
|
+
readonly name: Schema.String;
|
|
1219
|
+
readonly language: Schema.String;
|
|
1220
|
+
readonly components: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1221
|
+
readonly type: Schema.Literals<readonly ["header", "body", "footer", "button"]>;
|
|
1222
|
+
readonly sub_type: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["url", "quick_reply", "copy_code"]>, Schema.Null]>>;
|
|
1223
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1224
|
+
readonly parameters: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1225
|
+
readonly type: Schema.Literals<readonly ["text", "currency", "date_time", "image", "document", "video", "coupon_code"]>;
|
|
1226
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1227
|
+
readonly currency: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1228
|
+
readonly fallback_value: Schema.String;
|
|
1229
|
+
readonly code: Schema.String;
|
|
1230
|
+
readonly amount_1000: Schema.Finite;
|
|
1231
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1232
|
+
readonly date_time: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1233
|
+
readonly fallback_value: Schema.String;
|
|
1234
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1235
|
+
readonly image: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1236
|
+
readonly link: Schema.String;
|
|
1237
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1238
|
+
readonly document: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1239
|
+
readonly link: Schema.String;
|
|
1240
|
+
readonly filename: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1241
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1242
|
+
readonly video: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1243
|
+
readonly link: Schema.String;
|
|
1244
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1245
|
+
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1246
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1247
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1248
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1249
|
+
readonly interactive: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1250
|
+
readonly type: Schema.Literal<"buttons">;
|
|
1251
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1252
|
+
readonly type: Schema.Literal<"text">;
|
|
1253
|
+
readonly text: Schema.String;
|
|
1254
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1255
|
+
readonly type: Schema.Literal<"image">;
|
|
1256
|
+
readonly url: Schema.String;
|
|
1257
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1258
|
+
readonly type: Schema.Literal<"image">;
|
|
1259
|
+
readonly mediaId: Schema.String;
|
|
1260
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1261
|
+
readonly type: Schema.Literal<"video">;
|
|
1262
|
+
readonly url: Schema.String;
|
|
1263
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1264
|
+
readonly type: Schema.Literal<"video">;
|
|
1265
|
+
readonly mediaId: Schema.String;
|
|
1266
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1267
|
+
readonly type: Schema.Literal<"document">;
|
|
1268
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1269
|
+
readonly url: Schema.String;
|
|
1270
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1271
|
+
readonly type: Schema.Literal<"document">;
|
|
1272
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1273
|
+
readonly mediaId: Schema.String;
|
|
1274
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>]>>;
|
|
1275
|
+
readonly body: Schema.String;
|
|
1276
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
1277
|
+
readonly buttons: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1278
|
+
readonly id: Schema.String;
|
|
1279
|
+
readonly title: Schema.String;
|
|
1280
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1281
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1282
|
+
readonly type: Schema.Literal<"list">;
|
|
1283
|
+
readonly header: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1284
|
+
readonly type: Schema.Literal<"text">;
|
|
1285
|
+
readonly text: Schema.String;
|
|
1286
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1287
|
+
readonly body: Schema.String;
|
|
1288
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
1289
|
+
readonly button: Schema.String;
|
|
1290
|
+
readonly sections: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1291
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1292
|
+
readonly rows: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1293
|
+
readonly id: Schema.String;
|
|
1294
|
+
readonly title: Schema.String;
|
|
1295
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
1296
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1297
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1298
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1299
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
1300
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1301
|
+
readonly type: Schema.Literal<"text">;
|
|
1302
|
+
readonly text: Schema.String;
|
|
1303
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1304
|
+
readonly type: Schema.Literal<"image">;
|
|
1305
|
+
readonly url: Schema.String;
|
|
1306
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1307
|
+
readonly type: Schema.Literal<"image">;
|
|
1308
|
+
readonly mediaId: Schema.String;
|
|
1309
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1310
|
+
readonly type: Schema.Literal<"video">;
|
|
1311
|
+
readonly url: Schema.String;
|
|
1312
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1313
|
+
readonly type: Schema.Literal<"video">;
|
|
1314
|
+
readonly mediaId: Schema.String;
|
|
1315
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1316
|
+
readonly type: Schema.Literal<"document">;
|
|
1317
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1318
|
+
readonly url: Schema.String;
|
|
1319
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1320
|
+
readonly type: Schema.Literal<"document">;
|
|
1321
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1322
|
+
readonly mediaId: Schema.String;
|
|
1323
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>]>>;
|
|
1324
|
+
readonly body: Schema.String;
|
|
1325
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
1326
|
+
readonly displayText: Schema.String;
|
|
1327
|
+
readonly url: Schema.String;
|
|
1328
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>;
|
|
1329
|
+
readonly media: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1330
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
1331
|
+
readonly url: Schema.String;
|
|
1332
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1333
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1334
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1335
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
1336
|
+
readonly mediaId: Schema.String;
|
|
1337
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1338
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1339
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1340
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
1341
|
+
readonly providerMediaId: Schema.String;
|
|
1342
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1343
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1344
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1345
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Null]>>;
|
|
1346
|
+
readonly reaction: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1347
|
+
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1348
|
+
readonly providerMessageId: Schema.String;
|
|
1349
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1350
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1351
|
+
readonly location: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1352
|
+
readonly latitude: Schema.Finite;
|
|
1353
|
+
readonly longitude: Schema.Finite;
|
|
1354
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
1355
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
1356
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
1357
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1358
|
+
readonly contacts: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1359
|
+
readonly name: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1360
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
1361
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
1362
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
1363
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
1364
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
1365
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
1366
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1367
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1368
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
1369
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
1370
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
1371
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1372
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1373
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
1374
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
1375
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1376
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1377
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
1378
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
1379
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1380
|
+
readonly org: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1381
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
1382
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
1383
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1384
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1385
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1386
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
1387
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
1388
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
1389
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
1390
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
1391
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
1392
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
1393
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1394
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
1395
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1396
|
+
readonly reply: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1397
|
+
readonly type: Schema.Literals<readonly ["button", "list", "template_button"]>;
|
|
1398
|
+
readonly id: Schema.String;
|
|
1399
|
+
readonly title: Schema.String;
|
|
1400
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
1401
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1402
|
+
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1403
|
+
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1404
|
+
readonly providerMessageId: Schema.String;
|
|
1405
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1406
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
993
1407
|
readonly messageId: Schema.String;
|
|
994
1408
|
readonly organizationId: Schema.String;
|
|
995
1409
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
@@ -1298,6 +1712,35 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
1298
1712
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>;
|
|
1299
1713
|
readonly updatedAt: Schema.String;
|
|
1300
1714
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1715
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1716
|
+
readonly type: Schema.Literal<"template.registration.updated">;
|
|
1717
|
+
readonly timestamp: Schema.String;
|
|
1718
|
+
readonly data: Schema.StructWithRest<Schema.Struct<{
|
|
1719
|
+
readonly id: Schema.String;
|
|
1720
|
+
readonly templateId: Schema.String;
|
|
1721
|
+
readonly publicationId: Schema.String;
|
|
1722
|
+
readonly target: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1723
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
1724
|
+
readonly wabaId: Schema.String;
|
|
1725
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1726
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
1727
|
+
readonly entityId: Schema.String;
|
|
1728
|
+
readonly headerId: Schema.String;
|
|
1729
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
|
|
1730
|
+
readonly name: Schema.String;
|
|
1731
|
+
readonly language: Schema.String;
|
|
1732
|
+
readonly status: Schema.Literals<readonly ["draft", "submitted", "approved", "rejected", "paused", "disabled"]>;
|
|
1733
|
+
readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "transactional", "service_implicit", "service_explicit", "promotional"]>;
|
|
1734
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Literals<readonly ["marketing", "utility", "authentication", "transactional", "service_implicit", "service_explicit", "promotional"]>, Schema.Null]>;
|
|
1735
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1736
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1737
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1738
|
+
readonly statusChangedAt: Schema.String;
|
|
1739
|
+
readonly createdAt: Schema.String;
|
|
1740
|
+
readonly updatedAt: Schema.String;
|
|
1741
|
+
readonly organizationId: Schema.String;
|
|
1742
|
+
readonly previousStatus: Schema.Literals<readonly ["draft", "submitted", "approved", "rejected", "paused", "disabled"]>;
|
|
1743
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1301
1744
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1302
1745
|
readonly type: Schema.Literal<"mailbox.message.received">;
|
|
1303
1746
|
readonly timestamp: Schema.String;
|