@samva/webhooks 0.15.0 → 0.17.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-DC_ZmYw2.js} +872 -5
- package/dist/promise.js +2 -2
- package/dist/protocol-GkuvvobW.js +679 -0
- package/dist/protocol.js +1 -1
- package/dist/schemas.gen.d.ts +486 -0
- package/dist/schemas.gen.js +407 -2
- package/dist/types.gen.d.ts +351 -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-GkuvvobW.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;
|
|
@@ -574,6 +796,7 @@ export declare const MailboxMessageReceivedEventSchema: Schema.StructWithRest<Sc
|
|
|
574
796
|
readonly namespaceId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
575
797
|
readonly message: Schema.StructWithRest<Schema.Struct<{
|
|
576
798
|
readonly id: Schema.String;
|
|
799
|
+
readonly channel: Schema.optionalKey<Schema.Literals<readonly ["email", "whatsapp", "sms"]>>;
|
|
577
800
|
readonly threadId: Schema.String;
|
|
578
801
|
readonly from: Schema.StructWithRest<Schema.Struct<{
|
|
579
802
|
readonly address: Schema.String;
|
|
@@ -594,6 +817,7 @@ export declare const MailboxMessageReceivedEventSchema: Schema.StructWithRest<Sc
|
|
|
594
817
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
595
818
|
readonly thread: Schema.StructWithRest<Schema.Struct<{
|
|
596
819
|
readonly id: Schema.String;
|
|
820
|
+
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
597
821
|
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
598
822
|
readonly preview: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
599
823
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
@@ -616,6 +840,7 @@ export declare const MailboxMessageSentEventSchema: Schema.StructWithRest<Schema
|
|
|
616
840
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
617
841
|
readonly message: Schema.StructWithRest<Schema.Struct<{
|
|
618
842
|
readonly id: Schema.String;
|
|
843
|
+
readonly channel: Schema.optionalKey<Schema.Literals<readonly ["email", "whatsapp", "sms"]>>;
|
|
619
844
|
readonly threadId: Schema.String;
|
|
620
845
|
readonly from: Schema.StructWithRest<Schema.Struct<{
|
|
621
846
|
readonly address: Schema.String;
|
|
@@ -705,6 +930,7 @@ export declare const MailboxMessageReleasedEventSchema: Schema.StructWithRest<Sc
|
|
|
705
930
|
readonly reason: Schema.Literals<readonly ["spam", "dmarc", "virus", "virus_unscanned", "phishing", "fraud", "prompt_injection"]>;
|
|
706
931
|
readonly message: Schema.StructWithRest<Schema.Struct<{
|
|
707
932
|
readonly id: Schema.String;
|
|
933
|
+
readonly channel: Schema.optionalKey<Schema.Literals<readonly ["email", "whatsapp", "sms"]>>;
|
|
708
934
|
readonly threadId: Schema.String;
|
|
709
935
|
readonly from: Schema.StructWithRest<Schema.Struct<{
|
|
710
936
|
readonly address: Schema.String;
|
|
@@ -725,6 +951,7 @@ export declare const MailboxMessageReleasedEventSchema: Schema.StructWithRest<Sc
|
|
|
725
951
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
726
952
|
readonly thread: Schema.StructWithRest<Schema.Struct<{
|
|
727
953
|
readonly id: Schema.String;
|
|
954
|
+
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
728
955
|
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
729
956
|
readonly preview: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
730
957
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
@@ -755,6 +982,23 @@ export declare const MailboxMessageDiscardedEventSchema: Schema.StructWithRest<S
|
|
|
755
982
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
756
983
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
757
984
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
985
|
+
export declare const JourneyWebhookEventSchema: Schema.StructWithRest<Schema.Struct<{
|
|
986
|
+
readonly type: Schema.Literal<"journey.webhook">;
|
|
987
|
+
readonly timestamp: Schema.String;
|
|
988
|
+
readonly data: Schema.StructWithRest<Schema.Struct<{
|
|
989
|
+
readonly organizationId: Schema.String;
|
|
990
|
+
readonly journeyId: Schema.String;
|
|
991
|
+
readonly journeyVersion: Schema.Finite;
|
|
992
|
+
readonly runId: Schema.String;
|
|
993
|
+
readonly nodeId: Schema.String;
|
|
994
|
+
readonly contact: Schema.StructWithRest<Schema.Struct<{
|
|
995
|
+
readonly id: Schema.String;
|
|
996
|
+
readonly externalId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
997
|
+
readonly email: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
998
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
999
|
+
readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1000
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1001
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
758
1002
|
export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
759
1003
|
readonly type: Schema.Literal<"message.sent">;
|
|
760
1004
|
readonly timestamp: Schema.String;
|
|
@@ -990,6 +1234,198 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
990
1234
|
readonly errorMessage: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
991
1235
|
readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
992
1236
|
readonly carrier: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1237
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1238
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1239
|
+
readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1240
|
+
readonly name: Schema.String;
|
|
1241
|
+
readonly language: Schema.String;
|
|
1242
|
+
readonly components: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1243
|
+
readonly type: Schema.Literals<readonly ["header", "body", "footer", "button"]>;
|
|
1244
|
+
readonly sub_type: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["url", "quick_reply", "copy_code"]>, Schema.Null]>>;
|
|
1245
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1246
|
+
readonly parameters: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1247
|
+
readonly type: Schema.Literals<readonly ["text", "currency", "date_time", "image", "document", "video", "coupon_code"]>;
|
|
1248
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1249
|
+
readonly currency: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1250
|
+
readonly fallback_value: Schema.String;
|
|
1251
|
+
readonly code: Schema.String;
|
|
1252
|
+
readonly amount_1000: Schema.Finite;
|
|
1253
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1254
|
+
readonly date_time: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1255
|
+
readonly fallback_value: Schema.String;
|
|
1256
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1257
|
+
readonly image: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1258
|
+
readonly link: Schema.String;
|
|
1259
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1260
|
+
readonly document: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1261
|
+
readonly link: Schema.String;
|
|
1262
|
+
readonly filename: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1263
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1264
|
+
readonly video: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1265
|
+
readonly link: Schema.String;
|
|
1266
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1267
|
+
readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1268
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1269
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1270
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
1271
|
+
readonly interactive: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1272
|
+
readonly type: Schema.Literal<"buttons">;
|
|
1273
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1274
|
+
readonly type: Schema.Literal<"text">;
|
|
1275
|
+
readonly text: Schema.String;
|
|
1276
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1277
|
+
readonly type: Schema.Literal<"image">;
|
|
1278
|
+
readonly url: Schema.String;
|
|
1279
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1280
|
+
readonly type: Schema.Literal<"image">;
|
|
1281
|
+
readonly mediaId: Schema.String;
|
|
1282
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1283
|
+
readonly type: Schema.Literal<"video">;
|
|
1284
|
+
readonly url: Schema.String;
|
|
1285
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1286
|
+
readonly type: Schema.Literal<"video">;
|
|
1287
|
+
readonly mediaId: Schema.String;
|
|
1288
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1289
|
+
readonly type: Schema.Literal<"document">;
|
|
1290
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1291
|
+
readonly url: Schema.String;
|
|
1292
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1293
|
+
readonly type: Schema.Literal<"document">;
|
|
1294
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1295
|
+
readonly mediaId: Schema.String;
|
|
1296
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>]>>;
|
|
1297
|
+
readonly body: Schema.String;
|
|
1298
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
1299
|
+
readonly buttons: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1300
|
+
readonly id: Schema.String;
|
|
1301
|
+
readonly title: Schema.String;
|
|
1302
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1303
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1304
|
+
readonly type: Schema.Literal<"list">;
|
|
1305
|
+
readonly header: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1306
|
+
readonly type: Schema.Literal<"text">;
|
|
1307
|
+
readonly text: Schema.String;
|
|
1308
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1309
|
+
readonly body: Schema.String;
|
|
1310
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
1311
|
+
readonly button: Schema.String;
|
|
1312
|
+
readonly sections: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1313
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1314
|
+
readonly rows: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1315
|
+
readonly id: Schema.String;
|
|
1316
|
+
readonly title: Schema.String;
|
|
1317
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
1318
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1319
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1320
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1321
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
1322
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1323
|
+
readonly type: Schema.Literal<"text">;
|
|
1324
|
+
readonly text: Schema.String;
|
|
1325
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1326
|
+
readonly type: Schema.Literal<"image">;
|
|
1327
|
+
readonly url: Schema.String;
|
|
1328
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1329
|
+
readonly type: Schema.Literal<"image">;
|
|
1330
|
+
readonly mediaId: Schema.String;
|
|
1331
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1332
|
+
readonly type: Schema.Literal<"video">;
|
|
1333
|
+
readonly url: Schema.String;
|
|
1334
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1335
|
+
readonly type: Schema.Literal<"video">;
|
|
1336
|
+
readonly mediaId: Schema.String;
|
|
1337
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1338
|
+
readonly type: Schema.Literal<"document">;
|
|
1339
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1340
|
+
readonly url: Schema.String;
|
|
1341
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1342
|
+
readonly type: Schema.Literal<"document">;
|
|
1343
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1344
|
+
readonly mediaId: Schema.String;
|
|
1345
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>]>>;
|
|
1346
|
+
readonly body: Schema.String;
|
|
1347
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
1348
|
+
readonly displayText: Schema.String;
|
|
1349
|
+
readonly url: Schema.String;
|
|
1350
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>;
|
|
1351
|
+
readonly media: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1352
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
1353
|
+
readonly url: Schema.String;
|
|
1354
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1355
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1356
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1357
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
1358
|
+
readonly mediaId: Schema.String;
|
|
1359
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1360
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1361
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1362
|
+
readonly type: Schema.Literals<readonly ["image", "video", "audio", "document", "sticker"]>;
|
|
1363
|
+
readonly providerMediaId: Schema.String;
|
|
1364
|
+
readonly mimeType: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1365
|
+
readonly caption: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1366
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1367
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>, Schema.Null]>>;
|
|
1368
|
+
readonly reaction: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1369
|
+
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1370
|
+
readonly providerMessageId: Schema.String;
|
|
1371
|
+
readonly emoji: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1372
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1373
|
+
readonly location: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1374
|
+
readonly latitude: Schema.Finite;
|
|
1375
|
+
readonly longitude: Schema.Finite;
|
|
1376
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
1377
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
1378
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
1379
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1380
|
+
readonly contacts: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1381
|
+
readonly name: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1382
|
+
readonly formattedName: Schema.optionalKey<Schema.String>;
|
|
1383
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
1384
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
1385
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
1386
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
1387
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
1388
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1389
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1390
|
+
readonly phone: Schema.optionalKey<Schema.String>;
|
|
1391
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
1392
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
1393
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1394
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1395
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
1396
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
1397
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1398
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1399
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
1400
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
1401
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1402
|
+
readonly org: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1403
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
1404
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
1405
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1406
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1407
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
1408
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
1409
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
1410
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
1411
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
1412
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
1413
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
1414
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
1415
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1416
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
1417
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
|
|
1418
|
+
readonly reply: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1419
|
+
readonly type: Schema.Literals<readonly ["button", "list", "template_button"]>;
|
|
1420
|
+
readonly id: Schema.String;
|
|
1421
|
+
readonly title: Schema.String;
|
|
1422
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
1423
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1424
|
+
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1425
|
+
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1426
|
+
readonly providerMessageId: Schema.String;
|
|
1427
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
1428
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>>;
|
|
993
1429
|
readonly messageId: Schema.String;
|
|
994
1430
|
readonly organizationId: Schema.String;
|
|
995
1431
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
@@ -1298,6 +1734,35 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
1298
1734
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>;
|
|
1299
1735
|
readonly updatedAt: Schema.String;
|
|
1300
1736
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1737
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1738
|
+
readonly type: Schema.Literal<"template.registration.updated">;
|
|
1739
|
+
readonly timestamp: Schema.String;
|
|
1740
|
+
readonly data: Schema.StructWithRest<Schema.Struct<{
|
|
1741
|
+
readonly id: Schema.String;
|
|
1742
|
+
readonly templateId: Schema.String;
|
|
1743
|
+
readonly publicationId: Schema.String;
|
|
1744
|
+
readonly target: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
1745
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
1746
|
+
readonly wabaId: Schema.String;
|
|
1747
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1748
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
1749
|
+
readonly entityId: Schema.String;
|
|
1750
|
+
readonly headerId: Schema.String;
|
|
1751
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
|
|
1752
|
+
readonly name: Schema.String;
|
|
1753
|
+
readonly language: Schema.String;
|
|
1754
|
+
readonly status: Schema.Literals<readonly ["draft", "submitted", "approved", "rejected", "paused", "disabled"]>;
|
|
1755
|
+
readonly category: Schema.Literals<readonly ["marketing", "utility", "authentication", "transactional", "service_implicit", "service_explicit", "promotional"]>;
|
|
1756
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Literals<readonly ["marketing", "utility", "authentication", "transactional", "service_implicit", "service_explicit", "promotional"]>, Schema.Null]>;
|
|
1757
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1758
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1759
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1760
|
+
readonly statusChangedAt: Schema.String;
|
|
1761
|
+
readonly createdAt: Schema.String;
|
|
1762
|
+
readonly updatedAt: Schema.String;
|
|
1763
|
+
readonly organizationId: Schema.String;
|
|
1764
|
+
readonly previousStatus: Schema.Literals<readonly ["draft", "submitted", "approved", "rejected", "paused", "disabled"]>;
|
|
1765
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1301
1766
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1302
1767
|
readonly type: Schema.Literal<"mailbox.message.received">;
|
|
1303
1768
|
readonly timestamp: Schema.String;
|
|
@@ -1306,6 +1771,7 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
1306
1771
|
readonly namespaceId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1307
1772
|
readonly message: Schema.StructWithRest<Schema.Struct<{
|
|
1308
1773
|
readonly id: Schema.String;
|
|
1774
|
+
readonly channel: Schema.optionalKey<Schema.Literals<readonly ["email", "whatsapp", "sms"]>>;
|
|
1309
1775
|
readonly threadId: Schema.String;
|
|
1310
1776
|
readonly from: Schema.StructWithRest<Schema.Struct<{
|
|
1311
1777
|
readonly address: Schema.String;
|
|
@@ -1326,6 +1792,7 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
1326
1792
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1327
1793
|
readonly thread: Schema.StructWithRest<Schema.Struct<{
|
|
1328
1794
|
readonly id: Schema.String;
|
|
1795
|
+
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1329
1796
|
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1330
1797
|
readonly preview: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1331
1798
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
@@ -1347,6 +1814,7 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
1347
1814
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1348
1815
|
readonly message: Schema.StructWithRest<Schema.Struct<{
|
|
1349
1816
|
readonly id: Schema.String;
|
|
1817
|
+
readonly channel: Schema.optionalKey<Schema.Literals<readonly ["email", "whatsapp", "sms"]>>;
|
|
1350
1818
|
readonly threadId: Schema.String;
|
|
1351
1819
|
readonly from: Schema.StructWithRest<Schema.Struct<{
|
|
1352
1820
|
readonly address: Schema.String;
|
|
@@ -1433,6 +1901,7 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
1433
1901
|
readonly reason: Schema.Literals<readonly ["spam", "dmarc", "virus", "virus_unscanned", "phishing", "fraud", "prompt_injection"]>;
|
|
1434
1902
|
readonly message: Schema.StructWithRest<Schema.Struct<{
|
|
1435
1903
|
readonly id: Schema.String;
|
|
1904
|
+
readonly channel: Schema.optionalKey<Schema.Literals<readonly ["email", "whatsapp", "sms"]>>;
|
|
1436
1905
|
readonly threadId: Schema.String;
|
|
1437
1906
|
readonly from: Schema.StructWithRest<Schema.Struct<{
|
|
1438
1907
|
readonly address: Schema.String;
|
|
@@ -1453,6 +1922,7 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
1453
1922
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1454
1923
|
readonly thread: Schema.StructWithRest<Schema.Struct<{
|
|
1455
1924
|
readonly id: Schema.String;
|
|
1925
|
+
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1456
1926
|
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1457
1927
|
readonly preview: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1458
1928
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
@@ -1481,4 +1951,20 @@ export declare const SamvaWebhookEventSchema: Schema.Union<readonly [Schema.Stru
|
|
|
1481
1951
|
readonly receivedAt: Schema.String;
|
|
1482
1952
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1483
1953
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1954
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
|
|
1955
|
+
readonly type: Schema.Literal<"journey.webhook">;
|
|
1956
|
+
readonly timestamp: Schema.String;
|
|
1957
|
+
readonly data: Schema.StructWithRest<Schema.Struct<{
|
|
1958
|
+
readonly organizationId: Schema.String;
|
|
1959
|
+
readonly journeyId: Schema.String;
|
|
1960
|
+
readonly journeyVersion: Schema.Finite;
|
|
1961
|
+
readonly runId: Schema.String;
|
|
1962
|
+
readonly nodeId: Schema.String;
|
|
1963
|
+
readonly contact: Schema.StructWithRest<Schema.Struct<{
|
|
1964
|
+
readonly id: Schema.String;
|
|
1965
|
+
readonly externalId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1966
|
+
readonly email: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1967
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1968
|
+
readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1969
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
1484
1970
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
|