samva 0.50.0 → 0.52.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/AGENTS.md +49 -5
- package/README.md +137 -7
- package/dist/client/sdk.gen.d.ts +78 -38
- package/dist/client/sdk.gen.js +1554 -967
- package/dist/client/types.gen.d.ts +541 -291
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +222 -230
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +18 -68
- package/dist/effect/generated/campaigns.js +5 -15
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +6 -5
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +25 -25
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +2 -4
- package/dist/effect/generated/shared.d.ts +1139 -257
- package/dist/effect/generated/shared.js +323 -83
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +42 -10
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +35 -5
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +184 -178
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +8 -1
- package/dist/promises/client.js +15 -9
- package/dist/promises/errors.gen.d.ts +14 -1
- package/dist/promises/errors.gen.js +158 -36
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -334,7 +334,8 @@ var TemplateSourceError = class extends Schema.TaggedError()("TemplateSourceErro
|
|
|
334
334
|
})) {};
|
|
335
335
|
var FromAddressRequiredError = class extends Schema.TaggedError()("FromAddressRequiredError", Schema.Struct({
|
|
336
336
|
message: Schema.String,
|
|
337
|
-
verifiedDomains: Schema.Array(Schema.String)
|
|
337
|
+
verifiedDomains: Schema.Array(Schema.String),
|
|
338
|
+
addresses: Schema.Array(Schema.String)
|
|
338
339
|
})) {};
|
|
339
340
|
var BrandAddressRequiredError = class extends Schema.TaggedError()("BrandAddressRequiredError", Schema.Struct({
|
|
340
341
|
message: Schema.String,
|
|
@@ -524,6 +525,129 @@ const ShopifyShop = /* @__PURE__ */ (() => Schema.String.check(Schema.isMaxCodeP
|
|
|
524
525
|
expected: "a string matching the RegExp ^[a-z0-9][a-z0-9-]*\\.myshopify\\.com$",
|
|
525
526
|
identifier: "ShopifyShop"
|
|
526
527
|
})).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))();
|
|
528
|
+
const SubmissionClient = /* @__PURE__ */ (() => Schema.Struct({
|
|
529
|
+
surface: Schema.Union([
|
|
530
|
+
Schema.Literal("typescript-promise"),
|
|
531
|
+
Schema.Literal("typescript-effect"),
|
|
532
|
+
Schema.Literal("cli"),
|
|
533
|
+
Schema.Literal("mcp")
|
|
534
|
+
]),
|
|
535
|
+
version: Schema.String
|
|
536
|
+
}).annotate({ identifier: "SubmissionClient" }))();
|
|
537
|
+
const DeliveryErrorDetails = /* @__PURE__ */ (() => Schema.Struct({
|
|
538
|
+
code: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
539
|
+
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
540
|
+
message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
541
|
+
details: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Union([
|
|
542
|
+
Schema.String,
|
|
543
|
+
Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
544
|
+
Schema.Null
|
|
545
|
+
])), Schema.Null])),
|
|
546
|
+
retryable: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
547
|
+
}).annotate({ identifier: "DeliveryErrorDetails" }))();
|
|
548
|
+
const SmsMessageContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
549
|
+
text: Schema.String,
|
|
550
|
+
unicode: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
551
|
+
parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
|
|
552
|
+
}).annotate({ identifier: "SmsMessageContent" }))();
|
|
553
|
+
const WhatsAppTextHeader = /* @__PURE__ */ (() => Schema.Struct({
|
|
554
|
+
type: Schema.Literal("text"),
|
|
555
|
+
text: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(60).annotate({ expected: "a string with at most 60 code points" })).check(Schema.isMaxLength(60).annotate({ expected: "a value with a length of at most 60" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))
|
|
556
|
+
}).annotate({ identifier: "WhatsAppTextHeader" }))();
|
|
557
|
+
const WhatsAppImageHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
558
|
+
type: Schema.Literal("image"),
|
|
559
|
+
url: Schema.String
|
|
560
|
+
}).annotate({ identifier: "WhatsAppImageHeaderLink" }))();
|
|
561
|
+
const WhatsAppVideoHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
562
|
+
type: Schema.Literal("video"),
|
|
563
|
+
url: Schema.String
|
|
564
|
+
}).annotate({ identifier: "WhatsAppVideoHeaderLink" }))();
|
|
565
|
+
const WhatsAppDocumentHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
566
|
+
type: Schema.Literal("document"),
|
|
567
|
+
filename: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
568
|
+
url: Schema.String
|
|
569
|
+
}).annotate({ identifier: "WhatsAppDocumentHeaderLink" }))();
|
|
570
|
+
const WhatsAppReplyButton = /* @__PURE__ */ (() => Schema.Struct({
|
|
571
|
+
id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
572
|
+
title: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(20).annotate({ expected: "a string with at most 20 code points" })).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))
|
|
573
|
+
}).annotate({ identifier: "WhatsAppReplyButton" }))();
|
|
574
|
+
const WhatsAppListRow = /* @__PURE__ */ (() => Schema.Struct({
|
|
575
|
+
id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
576
|
+
title: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(24).annotate({ expected: "a string with at most 24 code points" })).check(Schema.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
577
|
+
description: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(72).annotate({ expected: "a string with at most 72 code points" })).check(Schema.isMaxLength(72).annotate({ expected: "a value with a length of at most 72" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })))
|
|
578
|
+
}).annotate({ identifier: "WhatsAppListRow" }))();
|
|
579
|
+
const WhatsAppFlowId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^waflow_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
580
|
+
expected: "a string matching the RegExp ^waflow_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
581
|
+
identifier: "WhatsAppFlowId"
|
|
582
|
+
})).pipe(Schema.brand("WhatsAppFlowId")))();
|
|
583
|
+
const WhatsAppFlowVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
584
|
+
expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
585
|
+
identifier: "WhatsAppFlowVersionId"
|
|
586
|
+
})).pipe(Schema.brand("WhatsAppFlowVersionId")))();
|
|
587
|
+
const WhatsAppStoredLocation = /* @__PURE__ */ (() => Schema.Struct({
|
|
588
|
+
latitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
589
|
+
longitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
590
|
+
name: Schema.optionalKey(Schema.String),
|
|
591
|
+
address: Schema.optionalKey(Schema.String),
|
|
592
|
+
url: Schema.optionalKey(Schema.String)
|
|
593
|
+
}).annotate({ identifier: "WhatsAppStoredLocation" }))();
|
|
594
|
+
const WhatsAppStoredContactCard = /* @__PURE__ */ (() => Schema.Struct({
|
|
595
|
+
name: Schema.optionalKey(Schema.Struct({
|
|
596
|
+
formattedName: Schema.optionalKey(Schema.String),
|
|
597
|
+
firstName: Schema.optionalKey(Schema.String),
|
|
598
|
+
lastName: Schema.optionalKey(Schema.String),
|
|
599
|
+
middleName: Schema.optionalKey(Schema.String),
|
|
600
|
+
prefix: Schema.optionalKey(Schema.String),
|
|
601
|
+
suffix: Schema.optionalKey(Schema.String)
|
|
602
|
+
})),
|
|
603
|
+
phones: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
604
|
+
phone: Schema.optionalKey(Schema.String),
|
|
605
|
+
type: Schema.optionalKey(Schema.String),
|
|
606
|
+
waId: Schema.optionalKey(Schema.String)
|
|
607
|
+
}))),
|
|
608
|
+
emails: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
609
|
+
email: Schema.optionalKey(Schema.String),
|
|
610
|
+
type: Schema.optionalKey(Schema.String)
|
|
611
|
+
}))),
|
|
612
|
+
urls: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
613
|
+
url: Schema.optionalKey(Schema.String),
|
|
614
|
+
type: Schema.optionalKey(Schema.String)
|
|
615
|
+
}))),
|
|
616
|
+
org: Schema.optionalKey(Schema.Struct({
|
|
617
|
+
company: Schema.optionalKey(Schema.String),
|
|
618
|
+
department: Schema.optionalKey(Schema.String),
|
|
619
|
+
title: Schema.optionalKey(Schema.String)
|
|
620
|
+
})),
|
|
621
|
+
addresses: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
622
|
+
street: Schema.optionalKey(Schema.String),
|
|
623
|
+
city: Schema.optionalKey(Schema.String),
|
|
624
|
+
state: Schema.optionalKey(Schema.String),
|
|
625
|
+
zip: Schema.optionalKey(Schema.String),
|
|
626
|
+
country: Schema.optionalKey(Schema.String),
|
|
627
|
+
countryCode: Schema.optionalKey(Schema.String),
|
|
628
|
+
type: Schema.optionalKey(Schema.String)
|
|
629
|
+
}))),
|
|
630
|
+
birthday: Schema.optionalKey(Schema.String)
|
|
631
|
+
}).annotate({ identifier: "WhatsAppStoredContactCard" }))();
|
|
632
|
+
const WhatsAppReceivedReply = /* @__PURE__ */ (() => Schema.Struct({
|
|
633
|
+
type: Schema.Union([
|
|
634
|
+
Schema.Literal("button"),
|
|
635
|
+
Schema.Literal("list"),
|
|
636
|
+
Schema.Literal("template_button")
|
|
637
|
+
]),
|
|
638
|
+
id: Schema.String,
|
|
639
|
+
title: Schema.String,
|
|
640
|
+
description: Schema.optionalKey(Schema.String)
|
|
641
|
+
}).annotate({ identifier: "WhatsAppReceivedReply" }))();
|
|
642
|
+
const WhatsAppReceivedFlowResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
643
|
+
flowToken: Schema.Union([Schema.String, Schema.Null]),
|
|
644
|
+
response: Schema.Record(Schema.String, JsonValue),
|
|
645
|
+
body: Schema.optionalKey(Schema.String)
|
|
646
|
+
}).annotate({ identifier: "WhatsAppReceivedFlowResponse" }))();
|
|
647
|
+
const WhatsAppStructuredContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
648
|
+
type: Schema.String,
|
|
649
|
+
data: Schema.Record(Schema.String, JsonValue)
|
|
650
|
+
}).annotate({ identifier: "WhatsAppStructuredContent" }))();
|
|
527
651
|
const MailboxChannel = /* @__PURE__ */ (() => Schema.Union([
|
|
528
652
|
Schema.Literal("sms"),
|
|
529
653
|
Schema.Literal("whatsapp"),
|
|
@@ -684,36 +808,6 @@ const WhatsAppStickerLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
684
808
|
type: Schema.Literal("sticker"),
|
|
685
809
|
url: Schema.String
|
|
686
810
|
}).annotate({ identifier: "WhatsAppStickerLink" }))();
|
|
687
|
-
const WhatsAppTextHeader = /* @__PURE__ */ (() => Schema.Struct({
|
|
688
|
-
type: Schema.Literal("text"),
|
|
689
|
-
text: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(60).annotate({ expected: "a string with at most 60 code points" })).check(Schema.isMaxLength(60).annotate({ expected: "a value with a length of at most 60" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))
|
|
690
|
-
}).annotate({ identifier: "WhatsAppTextHeader" }))();
|
|
691
|
-
const WhatsAppImageHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
692
|
-
type: Schema.Literal("image"),
|
|
693
|
-
url: Schema.String
|
|
694
|
-
}).annotate({ identifier: "WhatsAppImageHeaderLink" }))();
|
|
695
|
-
const WhatsAppVideoHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
696
|
-
type: Schema.Literal("video"),
|
|
697
|
-
url: Schema.String
|
|
698
|
-
}).annotate({ identifier: "WhatsAppVideoHeaderLink" }))();
|
|
699
|
-
const WhatsAppDocumentHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
700
|
-
type: Schema.Literal("document"),
|
|
701
|
-
filename: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
702
|
-
url: Schema.String
|
|
703
|
-
}).annotate({ identifier: "WhatsAppDocumentHeaderLink" }))();
|
|
704
|
-
const WhatsAppReplyButton = /* @__PURE__ */ (() => Schema.Struct({
|
|
705
|
-
id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
706
|
-
title: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(20).annotate({ expected: "a string with at most 20 code points" })).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))
|
|
707
|
-
}).annotate({ identifier: "WhatsAppReplyButton" }))();
|
|
708
|
-
const WhatsAppListRow = /* @__PURE__ */ (() => Schema.Struct({
|
|
709
|
-
id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
710
|
-
title: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(24).annotate({ expected: "a string with at most 24 code points" })).check(Schema.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
711
|
-
description: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(72).annotate({ expected: "a string with at most 72 code points" })).check(Schema.isMaxLength(72).annotate({ expected: "a value with a length of at most 72" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })))
|
|
712
|
-
}).annotate({ identifier: "WhatsAppListRow" }))();
|
|
713
|
-
const WhatsAppFlowId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^waflow_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
714
|
-
expected: "a string matching the RegExp ^waflow_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
715
|
-
identifier: "WhatsAppFlowId"
|
|
716
|
-
})).pipe(Schema.brand("WhatsAppFlowId")))();
|
|
717
811
|
const WhatsAppLocation = /* @__PURE__ */ (() => Schema.Struct({
|
|
718
812
|
latitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })).check(Schema.isGreaterThanOrEqualTo(-90).annotate({ expected: "a value greater than or equal to -90" })).check(Schema.isLessThanOrEqualTo(90).annotate({ expected: "a value less than or equal to 90" })),
|
|
719
813
|
longitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })).check(Schema.isGreaterThanOrEqualTo(-180).annotate({ expected: "a value greater than or equal to -180" })).check(Schema.isLessThanOrEqualTo(180).annotate({ expected: "a value less than or equal to 180" })),
|
|
@@ -758,10 +852,6 @@ const WhatsAppContactCard = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
758
852
|
}))),
|
|
759
853
|
birthday: Schema.optionalKey(Schema.String)
|
|
760
854
|
}).annotate({ identifier: "WhatsAppContactCard" }))();
|
|
761
|
-
const WhatsAppFlowVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
762
|
-
expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
763
|
-
identifier: "WhatsAppFlowVersionId"
|
|
764
|
-
})).pipe(Schema.brand("WhatsAppFlowVersionId")))();
|
|
765
855
|
const MessageDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
766
856
|
expected: "a string matching the RegExp ^mdel_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
767
857
|
identifier: "MessageDeliveryId"
|
|
@@ -1106,6 +1196,15 @@ const UpdateWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1106
1196
|
headers: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])),
|
|
1107
1197
|
status: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("active"), Schema.Literal("disabled")]), Schema.Null]))
|
|
1108
1198
|
}).annotate({ identifier: "UpdateWebhookPayload" }))();
|
|
1199
|
+
const WhatsAppStoredReaction = /* @__PURE__ */ (() => Schema.Struct({
|
|
1200
|
+
messageId: Schema.Union([MessageId, Schema.Null]),
|
|
1201
|
+
providerMessageId: Schema.String,
|
|
1202
|
+
emoji: Schema.Union([Schema.String, Schema.Null])
|
|
1203
|
+
}).annotate({ identifier: "WhatsAppStoredReaction" }))();
|
|
1204
|
+
const WhatsAppMessageReference = /* @__PURE__ */ (() => Schema.Struct({
|
|
1205
|
+
messageId: Schema.Union([MessageId, Schema.Null]),
|
|
1206
|
+
providerMessageId: Schema.String
|
|
1207
|
+
}).annotate({ identifier: "WhatsAppMessageReference" }))();
|
|
1109
1208
|
const CreateMailboxChatDraftPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1110
1209
|
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
1111
1210
|
to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1129,6 +1228,58 @@ const EmailAttachment = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1129
1228
|
contentType: Schema.String,
|
|
1130
1229
|
size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
1131
1230
|
}).annotate({ identifier: "EmailAttachment" }))();
|
|
1231
|
+
const WhatsAppImageHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1232
|
+
type: Schema.Literal("image"),
|
|
1233
|
+
mediaId: MediaId
|
|
1234
|
+
}).annotate({ identifier: "WhatsAppImageHeaderUpload" }))();
|
|
1235
|
+
const WhatsAppVideoHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1236
|
+
type: Schema.Literal("video"),
|
|
1237
|
+
mediaId: MediaId
|
|
1238
|
+
}).annotate({ identifier: "WhatsAppVideoHeaderUpload" }))();
|
|
1239
|
+
const WhatsAppDocumentHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1240
|
+
type: Schema.Literal("document"),
|
|
1241
|
+
filename: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1242
|
+
mediaId: MediaId
|
|
1243
|
+
}).annotate({ identifier: "WhatsAppDocumentHeaderUpload" }))();
|
|
1244
|
+
const WhatsAppStoredMedia = /* @__PURE__ */ (() => Schema.Union([
|
|
1245
|
+
Schema.Struct({
|
|
1246
|
+
type: Schema.Union([
|
|
1247
|
+
Schema.Literal("image"),
|
|
1248
|
+
Schema.Literal("video"),
|
|
1249
|
+
Schema.Literal("audio"),
|
|
1250
|
+
Schema.Literal("document"),
|
|
1251
|
+
Schema.Literal("sticker")
|
|
1252
|
+
]),
|
|
1253
|
+
url: Schema.String,
|
|
1254
|
+
caption: Schema.optionalKey(Schema.String),
|
|
1255
|
+
filename: Schema.optionalKey(Schema.String)
|
|
1256
|
+
}),
|
|
1257
|
+
Schema.Struct({
|
|
1258
|
+
type: Schema.Union([
|
|
1259
|
+
Schema.Literal("image"),
|
|
1260
|
+
Schema.Literal("video"),
|
|
1261
|
+
Schema.Literal("audio"),
|
|
1262
|
+
Schema.Literal("document"),
|
|
1263
|
+
Schema.Literal("sticker")
|
|
1264
|
+
]),
|
|
1265
|
+
mediaId: MediaId,
|
|
1266
|
+
caption: Schema.optionalKey(Schema.String),
|
|
1267
|
+
filename: Schema.optionalKey(Schema.String)
|
|
1268
|
+
}),
|
|
1269
|
+
Schema.Struct({
|
|
1270
|
+
type: Schema.Union([
|
|
1271
|
+
Schema.Literal("image"),
|
|
1272
|
+
Schema.Literal("video"),
|
|
1273
|
+
Schema.Literal("audio"),
|
|
1274
|
+
Schema.Literal("document"),
|
|
1275
|
+
Schema.Literal("sticker")
|
|
1276
|
+
]),
|
|
1277
|
+
providerMediaId: Schema.String,
|
|
1278
|
+
mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1279
|
+
caption: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1280
|
+
filename: Schema.optionalKey(Schema.String)
|
|
1281
|
+
})
|
|
1282
|
+
]).annotate({ identifier: "WhatsAppStoredMedia" }))();
|
|
1132
1283
|
const WhatsAppImageUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1133
1284
|
type: Schema.Literal("image"),
|
|
1134
1285
|
caption: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
@@ -1153,19 +1304,6 @@ const WhatsAppStickerUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1153
1304
|
type: Schema.Literal("sticker"),
|
|
1154
1305
|
mediaId: MediaId
|
|
1155
1306
|
}).annotate({ identifier: "WhatsAppStickerUpload" }))();
|
|
1156
|
-
const WhatsAppImageHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1157
|
-
type: Schema.Literal("image"),
|
|
1158
|
-
mediaId: MediaId
|
|
1159
|
-
}).annotate({ identifier: "WhatsAppImageHeaderUpload" }))();
|
|
1160
|
-
const WhatsAppVideoHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1161
|
-
type: Schema.Literal("video"),
|
|
1162
|
-
mediaId: MediaId
|
|
1163
|
-
}).annotate({ identifier: "WhatsAppVideoHeaderUpload" }))();
|
|
1164
|
-
const WhatsAppDocumentHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1165
|
-
type: Schema.Literal("document"),
|
|
1166
|
-
filename: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1167
|
-
mediaId: MediaId
|
|
1168
|
-
}).annotate({ identifier: "WhatsAppDocumentHeaderUpload" }))();
|
|
1169
1307
|
const SkippedRecipient = /* @__PURE__ */ (() => Schema.Struct({
|
|
1170
1308
|
address: Schema.String,
|
|
1171
1309
|
reason: Schema.Union([
|
|
@@ -1315,6 +1453,36 @@ const JourneyComparison = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1315
1453
|
JourneyStringComparison,
|
|
1316
1454
|
JourneyPresenceComparison
|
|
1317
1455
|
]).annotate({ identifier: "JourneyComparison" }))();
|
|
1456
|
+
const WhatsAppListSection = /* @__PURE__ */ (() => Schema.Struct({
|
|
1457
|
+
title: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(24).annotate({ expected: "a string with at most 24 code points" })).check(Schema.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1458
|
+
rows: Schema.Array(WhatsAppListRow).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
|
|
1459
|
+
}).annotate({ identifier: "WhatsAppListSection" }))();
|
|
1460
|
+
const WhatsAppFlowMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1461
|
+
type: Schema.Literal("flow"),
|
|
1462
|
+
header: Schema.optionalKey(WhatsAppTextHeader),
|
|
1463
|
+
body: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1464
|
+
footer: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(60).annotate({ expected: "a string with at most 60 code points" })).check(Schema.isMaxLength(60).annotate({ expected: "a value with a length of at most 60" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1465
|
+
flowId: WhatsAppFlowId,
|
|
1466
|
+
cta: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(30).annotate({ expected: "a string with at most 30 code points" })).check(Schema.isMaxLength(30).annotate({ expected: "a value with a length of at most 30" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1467
|
+
token: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1468
|
+
action: Schema.optionalKey(Schema.Union([Schema.Literal("navigate"), Schema.Literal("data_exchange")])),
|
|
1469
|
+
screen: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z_]{1,100}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z_]{1,100}$" }))),
|
|
1470
|
+
data: Schema.optionalKey(Schema.Record(Schema.String, JsonValue))
|
|
1471
|
+
}).annotate({ identifier: "WhatsAppFlowMessage" }))();
|
|
1472
|
+
const WhatsAppStoredFlowMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1473
|
+
type: Schema.Literal("flow"),
|
|
1474
|
+
header: Schema.optionalKey(WhatsAppTextHeader),
|
|
1475
|
+
body: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1476
|
+
footer: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(60).annotate({ expected: "a string with at most 60 code points" })).check(Schema.isMaxLength(60).annotate({ expected: "a value with a length of at most 60" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1477
|
+
flowId: WhatsAppFlowId,
|
|
1478
|
+
cta: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(30).annotate({ expected: "a string with at most 30 code points" })).check(Schema.isMaxLength(30).annotate({ expected: "a value with a length of at most 30" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1479
|
+
token: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1480
|
+
action: Schema.optionalKey(Schema.Union([Schema.Literal("navigate"), Schema.Literal("data_exchange")])),
|
|
1481
|
+
screen: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z_]{1,100}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z_]{1,100}$" }))),
|
|
1482
|
+
data: Schema.optionalKey(Schema.Record(Schema.String, JsonValue)),
|
|
1483
|
+
flowVersionId: WhatsAppFlowVersionId,
|
|
1484
|
+
providerFlowId: Schema.String
|
|
1485
|
+
}).annotate({ identifier: "WhatsAppStoredFlowMessage" }))();
|
|
1318
1486
|
const CreateMailboxEndpointPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1319
1487
|
channel: MailboxChannel,
|
|
1320
1488
|
address: Schema.String,
|
|
@@ -1392,22 +1560,6 @@ const WhatsAppTemplateSlugContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1392
1560
|
templateData: Schema.optionalKey(WhatsAppTemplateData),
|
|
1393
1561
|
flowToken: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })))
|
|
1394
1562
|
}).annotate({ identifier: "WhatsAppTemplateSlugContent" }))();
|
|
1395
|
-
const WhatsAppListSection = /* @__PURE__ */ (() => Schema.Struct({
|
|
1396
|
-
title: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(24).annotate({ expected: "a string with at most 24 code points" })).check(Schema.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1397
|
-
rows: Schema.Array(WhatsAppListRow).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
|
|
1398
|
-
}).annotate({ identifier: "WhatsAppListSection" }))();
|
|
1399
|
-
const WhatsAppFlowMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1400
|
-
type: Schema.Literal("flow"),
|
|
1401
|
-
header: Schema.optionalKey(WhatsAppTextHeader),
|
|
1402
|
-
body: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1403
|
-
footer: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(60).annotate({ expected: "a string with at most 60 code points" })).check(Schema.isMaxLength(60).annotate({ expected: "a value with a length of at most 60" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1404
|
-
flowId: WhatsAppFlowId,
|
|
1405
|
-
cta: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(30).annotate({ expected: "a string with at most 30 code points" })).check(Schema.isMaxLength(30).annotate({ expected: "a value with a length of at most 30" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1406
|
-
token: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1407
|
-
action: Schema.optionalKey(Schema.Union([Schema.Literal("navigate"), Schema.Literal("data_exchange")])),
|
|
1408
|
-
screen: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z_]{1,100}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z_]{1,100}$" }))),
|
|
1409
|
-
data: Schema.optionalKey(Schema.Record(Schema.String, JsonValue))
|
|
1410
|
-
}).annotate({ identifier: "WhatsAppFlowMessage" }))();
|
|
1411
1563
|
const WhatsAppLocationContent = /* @__PURE__ */ (() => Schema.Struct({ location: WhatsAppLocation }).annotate({ identifier: "WhatsAppLocationContent" }))();
|
|
1412
1564
|
const WhatsAppContactsContent = /* @__PURE__ */ (() => Schema.Struct({ contacts: Schema.Array(WhatsAppContactCard).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(257).annotate({ expected: "a value with a length of at most 257" })) }).annotate({ identifier: "WhatsAppContactsContent" }))();
|
|
1413
1565
|
const Operation = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -1613,14 +1765,14 @@ const ReplyMailboxEmailPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1613
1765
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1614
1766
|
attachments: Schema.optionalKey(Schema.Union([Schema.Array(EmailAttachment).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema.Null]))
|
|
1615
1767
|
}).annotate({ identifier: "ReplyMailboxEmailPayload" }))();
|
|
1768
|
+
const WhatsAppImageHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload]).annotate({ identifier: "WhatsAppImageHeader" }))();
|
|
1769
|
+
const WhatsAppVideoHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload]).annotate({ identifier: "WhatsAppVideoHeader" }))();
|
|
1770
|
+
const WhatsAppDocumentHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload]).annotate({ identifier: "WhatsAppDocumentHeader" }))();
|
|
1616
1771
|
const WhatsAppImage = /* @__PURE__ */ (() => Schema.Union([WhatsAppImageLink, WhatsAppImageUpload]).annotate({ identifier: "WhatsAppImage" }))();
|
|
1617
1772
|
const WhatsAppVideo = /* @__PURE__ */ (() => Schema.Union([WhatsAppVideoLink, WhatsAppVideoUpload]).annotate({ identifier: "WhatsAppVideo" }))();
|
|
1618
1773
|
const WhatsAppAudio = /* @__PURE__ */ (() => Schema.Union([WhatsAppAudioLink, WhatsAppAudioUpload]).annotate({ identifier: "WhatsAppAudio" }))();
|
|
1619
1774
|
const WhatsAppDocument = /* @__PURE__ */ (() => Schema.Union([WhatsAppDocumentLink, WhatsAppDocumentUpload]).annotate({ identifier: "WhatsAppDocument" }))();
|
|
1620
1775
|
const WhatsAppSticker = /* @__PURE__ */ (() => Schema.Union([WhatsAppStickerLink, WhatsAppStickerUpload]).annotate({ identifier: "WhatsAppSticker" }))();
|
|
1621
|
-
const WhatsAppImageHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload]).annotate({ identifier: "WhatsAppImageHeader" }))();
|
|
1622
|
-
const WhatsAppVideoHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload]).annotate({ identifier: "WhatsAppVideoHeader" }))();
|
|
1623
|
-
const WhatsAppDocumentHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload]).annotate({ identifier: "WhatsAppDocumentHeader" }))();
|
|
1624
1776
|
const WhatsAppTemplateBindings = /* @__PURE__ */ (() => Schema.Record(Schema.String, WhatsAppTemplateBinding).annotate({ description: "Template parameters filled per recipient: parameter name to the contact field it reads." }).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))).annotate({
|
|
1625
1777
|
expected: "an object with property names matching the schema",
|
|
1626
1778
|
identifier: "WhatsAppTemplateBindings"
|
|
@@ -1675,6 +1827,14 @@ const JourneyCustomFieldPredicate = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1675
1827
|
key: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1676
1828
|
comparison: JourneyComparison
|
|
1677
1829
|
}).annotate({ identifier: "JourneyCustomFieldPredicate" }))();
|
|
1830
|
+
const WhatsAppListMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1831
|
+
type: Schema.Literal("list"),
|
|
1832
|
+
header: Schema.optionalKey(WhatsAppTextHeader),
|
|
1833
|
+
body: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4096).annotate({ expected: "a string with at most 4096 code points" })).check(Schema.isMaxLength(4096).annotate({ expected: "a value with a length of at most 4096" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1834
|
+
footer: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(60).annotate({ expected: "a string with at most 60 code points" })).check(Schema.isMaxLength(60).annotate({ expected: "a value with a length of at most 60" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1835
|
+
button: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(20).annotate({ expected: "a string with at most 20 code points" })).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1836
|
+
sections: Schema.Array(WhatsAppListSection).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" }))
|
|
1837
|
+
}).annotate({ identifier: "WhatsAppListMessage" }))();
|
|
1678
1838
|
const MailboxSendReceipt = /* @__PURE__ */ (() => Schema.Struct({
|
|
1679
1839
|
actionId: MailboxActionId,
|
|
1680
1840
|
draftId: Schema.Union([MailboxDraftId, Schema.Null]),
|
|
@@ -1712,14 +1872,6 @@ const MailboxSendReceipt = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1712
1872
|
createdAt: Schema.String,
|
|
1713
1873
|
updatedAt: Schema.String
|
|
1714
1874
|
}).annotate({ identifier: "MailboxSendReceipt" }))();
|
|
1715
|
-
const WhatsAppListMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1716
|
-
type: Schema.Literal("list"),
|
|
1717
|
-
header: Schema.optionalKey(WhatsAppTextHeader),
|
|
1718
|
-
body: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4096).annotate({ expected: "a string with at most 4096 code points" })).check(Schema.isMaxLength(4096).annotate({ expected: "a value with a length of at most 4096" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1719
|
-
footer: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(60).annotate({ expected: "a string with at most 60 code points" })).check(Schema.isMaxLength(60).annotate({ expected: "a value with a length of at most 60" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
1720
|
-
button: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(20).annotate({ expected: "a string with at most 20 code points" })).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1721
|
-
sections: Schema.Array(WhatsAppListSection).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" }))
|
|
1722
|
-
}).annotate({ identifier: "WhatsAppListMessage" }))();
|
|
1723
1875
|
const OperationAccepted = /* @__PURE__ */ (() => Schema.Struct({
|
|
1724
1876
|
operation: Operation,
|
|
1725
1877
|
links: Schema.Struct({
|
|
@@ -1800,6 +1952,12 @@ const EmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1800
1952
|
footer: Schema.optionalKey(EmailFooterOverride),
|
|
1801
1953
|
headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null]))
|
|
1802
1954
|
}).annotate({ identifier: "EmailContent" }))();
|
|
1955
|
+
const WhatsAppInteractiveHeader = /* @__PURE__ */ (() => Schema.Union([
|
|
1956
|
+
WhatsAppTextHeader,
|
|
1957
|
+
WhatsAppImageHeader,
|
|
1958
|
+
WhatsAppVideoHeader,
|
|
1959
|
+
WhatsAppDocumentHeader
|
|
1960
|
+
]).annotate({ identifier: "WhatsAppInteractiveHeader" }))();
|
|
1803
1961
|
const WhatsAppOutboundMedia = /* @__PURE__ */ (() => Schema.Union([
|
|
1804
1962
|
WhatsAppImage,
|
|
1805
1963
|
WhatsAppVideo,
|
|
@@ -1807,12 +1965,6 @@ const WhatsAppOutboundMedia = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1807
1965
|
WhatsAppDocument,
|
|
1808
1966
|
WhatsAppSticker
|
|
1809
1967
|
]).annotate({ identifier: "WhatsAppOutboundMedia" }))();
|
|
1810
|
-
const WhatsAppInteractiveHeader = /* @__PURE__ */ (() => Schema.Union([
|
|
1811
|
-
WhatsAppTextHeader,
|
|
1812
|
-
WhatsAppImageHeader,
|
|
1813
|
-
WhatsAppVideoHeader,
|
|
1814
|
-
WhatsAppDocumentHeader
|
|
1815
|
-
]).annotate({ identifier: "WhatsAppInteractiveHeader" }))();
|
|
1816
1968
|
const WhatsAppTemplateDispatch = /* @__PURE__ */ (() => Schema.Struct({
|
|
1817
1969
|
template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" }))]),
|
|
1818
1970
|
templateData: Schema.optionalKey(WhatsAppTemplateDispatchData),
|
|
@@ -1878,7 +2030,6 @@ const EmailSendMessagePayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1878
2030
|
from: Schema.optionalKey(EmailSender),
|
|
1879
2031
|
email: EmailContent
|
|
1880
2032
|
}).annotate({ identifier: "EmailSendMessagePayload" }))();
|
|
1881
|
-
const WhatsAppMediaContent = /* @__PURE__ */ (() => Schema.Struct({ media: WhatsAppOutboundMedia }).annotate({ identifier: "WhatsAppMediaContent" }))();
|
|
1882
2033
|
const WhatsAppButtonsMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1883
2034
|
type: Schema.Literal("buttons"),
|
|
1884
2035
|
header: Schema.optionalKey(WhatsAppInteractiveHeader),
|
|
@@ -1894,6 +2045,7 @@ const WhatsAppCtaUrlMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1894
2045
|
displayText: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(20).annotate({ expected: "a string with at most 20 code points" })).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
1895
2046
|
url: Schema.String
|
|
1896
2047
|
}).annotate({ identifier: "WhatsAppCtaUrlMessage" }))();
|
|
2048
|
+
const WhatsAppMediaContent = /* @__PURE__ */ (() => Schema.Struct({ media: WhatsAppOutboundMedia }).annotate({ identifier: "WhatsAppMediaContent" }))();
|
|
1897
2049
|
const WhatsAppCampaignContentInput = /* @__PURE__ */ (() => Schema.Struct({
|
|
1898
2050
|
channel: Schema.Literal("whatsapp"),
|
|
1899
2051
|
whatsapp: WhatsAppTemplateDispatch,
|
|
@@ -1941,6 +2093,12 @@ const AgentModuleManifest = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1941
2093
|
events: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
1942
2094
|
schedules: Schema.Array(Schema.String.check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\S+\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$", "u")).annotate({ expected: "a string matching the RegExp ^\\S+\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" }))).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))
|
|
1943
2095
|
}).annotate({ identifier: "AgentModuleManifest" }))();
|
|
2096
|
+
const WhatsAppStoredInteractive = /* @__PURE__ */ (() => Schema.Union([
|
|
2097
|
+
WhatsAppButtonsMessage,
|
|
2098
|
+
WhatsAppListMessage,
|
|
2099
|
+
WhatsAppCtaUrlMessage,
|
|
2100
|
+
WhatsAppStoredFlowMessage
|
|
2101
|
+
]).annotate({ identifier: "WhatsAppStoredInteractive" }))();
|
|
1944
2102
|
const WhatsAppInteractive = /* @__PURE__ */ (() => Schema.Union([
|
|
1945
2103
|
WhatsAppButtonsMessage,
|
|
1946
2104
|
WhatsAppListMessage,
|
|
@@ -1960,12 +2118,94 @@ const AgentModuleBundle = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1960
2118
|
source: Schema.String,
|
|
1961
2119
|
manifest: AgentModuleManifest
|
|
1962
2120
|
}).annotate({ identifier: "AgentModuleBundle" }))();
|
|
2121
|
+
const WhatsAppMessageContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
2122
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2123
|
+
template: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
2124
|
+
name: Schema.String,
|
|
2125
|
+
language: Schema.String,
|
|
2126
|
+
components: Schema.Array(Schema.Struct({
|
|
2127
|
+
type: Schema.Union([
|
|
2128
|
+
Schema.Literal("header"),
|
|
2129
|
+
Schema.Literal("body"),
|
|
2130
|
+
Schema.Literal("footer"),
|
|
2131
|
+
Schema.Literal("button")
|
|
2132
|
+
]),
|
|
2133
|
+
sub_type: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
2134
|
+
Schema.Literal("url"),
|
|
2135
|
+
Schema.Literal("quick_reply"),
|
|
2136
|
+
Schema.Literal("copy_code"),
|
|
2137
|
+
Schema.Literal("flow")
|
|
2138
|
+
]), Schema.Null])),
|
|
2139
|
+
index: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2140
|
+
parameters: Schema.Array(Schema.Struct({
|
|
2141
|
+
type: Schema.Union([
|
|
2142
|
+
Schema.Literal("text"),
|
|
2143
|
+
Schema.Literal("currency"),
|
|
2144
|
+
Schema.Literal("date_time"),
|
|
2145
|
+
Schema.Literal("image"),
|
|
2146
|
+
Schema.Literal("document"),
|
|
2147
|
+
Schema.Literal("video"),
|
|
2148
|
+
Schema.Literal("coupon_code"),
|
|
2149
|
+
Schema.Literal("action")
|
|
2150
|
+
]),
|
|
2151
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2152
|
+
currency: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
2153
|
+
fallback_value: Schema.String,
|
|
2154
|
+
code: Schema.String,
|
|
2155
|
+
amount_1000: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
2156
|
+
}), Schema.Null])),
|
|
2157
|
+
date_time: Schema.optionalKey(Schema.Union([Schema.Struct({ fallback_value: Schema.String }), Schema.Null])),
|
|
2158
|
+
image: Schema.optionalKey(Schema.Union([Schema.Struct({ link: Schema.String }), Schema.Null])),
|
|
2159
|
+
document: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
2160
|
+
link: Schema.String,
|
|
2161
|
+
filename: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
2162
|
+
}), Schema.Null])),
|
|
2163
|
+
video: Schema.optionalKey(Schema.Union([Schema.Struct({ link: Schema.String }), Schema.Null])),
|
|
2164
|
+
coupon_code: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2165
|
+
action: Schema.optionalKey(Schema.Union([Schema.Struct({ flow_token: Schema.String }), Schema.Null]))
|
|
2166
|
+
}))
|
|
2167
|
+
}))
|
|
2168
|
+
}), Schema.Null])),
|
|
2169
|
+
interactive: Schema.optionalKey(WhatsAppStoredInteractive),
|
|
2170
|
+
media: Schema.optionalKey(Schema.Union([WhatsAppStoredMedia, Schema.Null])),
|
|
2171
|
+
reaction: Schema.optionalKey(WhatsAppStoredReaction),
|
|
2172
|
+
location: Schema.optionalKey(WhatsAppStoredLocation),
|
|
2173
|
+
contacts: Schema.optionalKey(Schema.Array(WhatsAppStoredContactCard)),
|
|
2174
|
+
reply: Schema.optionalKey(WhatsAppReceivedReply),
|
|
2175
|
+
flowResponse: Schema.optionalKey(WhatsAppReceivedFlowResponse),
|
|
2176
|
+
context: Schema.optionalKey(WhatsAppMessageReference)
|
|
2177
|
+
}).annotate({ identifier: "WhatsAppMessageContent" }))();
|
|
1963
2178
|
const WhatsAppInteractiveContent = /* @__PURE__ */ (() => Schema.Struct({ interactive: WhatsAppInteractive }).annotate({ identifier: "WhatsAppInteractiveContent" }))();
|
|
1964
2179
|
const JourneyBranchNode = /* @__PURE__ */ (() => Schema.Struct({
|
|
1965
2180
|
type: Schema.Literal("branch"),
|
|
1966
2181
|
config: JourneyEmptyConfig,
|
|
1967
2182
|
next: Schema.Array(JourneyBranchEdge).check(Schema.isMinLength(2).annotate({ expected: "a value with a length of at least 2" }))
|
|
1968
2183
|
}).annotate({ identifier: "JourneyBranchNode" }))();
|
|
2184
|
+
const MessageContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
2185
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2186
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2187
|
+
markdown: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2188
|
+
sms: Schema.optionalKey(Schema.Union([SmsMessageContent, Schema.Null])),
|
|
2189
|
+
whatsapp: Schema.optionalKey(Schema.Union([WhatsAppMessageContent, Schema.Null])),
|
|
2190
|
+
email: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
2191
|
+
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2192
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2193
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2194
|
+
headers: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])),
|
|
2195
|
+
tracking: Schema.optionalKey(EmailTrackingOverrideV1),
|
|
2196
|
+
attachments: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Struct({
|
|
2197
|
+
filename: Schema.String,
|
|
2198
|
+
contentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2199
|
+
isInline: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2200
|
+
content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
2201
|
+
mediaId: Schema.optionalKey(Schema.Union([MediaId, Schema.Null])),
|
|
2202
|
+
contentType: Schema.String,
|
|
2203
|
+
size: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
2204
|
+
})), Schema.Null]))
|
|
2205
|
+
}), Schema.Null])),
|
|
2206
|
+
structured: Schema.optionalKey(Schema.Union([WhatsAppStructuredContent, Schema.Null])),
|
|
2207
|
+
metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]))
|
|
2208
|
+
}).annotate({ identifier: "MessageContent" }))();
|
|
1969
2209
|
const WhatsAppContent = /* @__PURE__ */ (() => Schema.Union([
|
|
1970
2210
|
WhatsAppTextContent,
|
|
1971
2211
|
WhatsAppTemplateIdContent,
|
|
@@ -2023,6 +2263,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
|
|
|
2023
2263
|
in: "header"
|
|
2024
2264
|
});
|
|
2025
2265
|
var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
|
|
2026
|
-
export { AccountLinks, AccountStatus, AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, AgentModuleTool, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, AnswerWithoutApproval, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFromInput, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, CatalogModelId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, CredentialsError, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionInstallationId, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, IntegrationStatus, IntegrationTool, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyId, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneySendWhatsAppConfig, JourneyStatus, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, KnowledgeSourceId, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespacePortalLinkMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, PolicyConfiguration, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicyRule, PolicyRuleMatch, PolicySubject, PolicyVersion, RateLimitedError, RecipeSetupReferences, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, ShareLinkUnavailable, ShopifyShop, SkippedRecipient, SlugTaken, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SuccessResponse, TemplateChannelVariantId, TemplateData, TemplateFamilyId, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppChannelError, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppFlowVersionId, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, WhatsAppTemplateBinding, WhatsAppTemplateBindings, WhatsAppTemplateContactBinding, WhatsAppTemplateCustomFieldBinding, WhatsAppTemplateData, WhatsAppTemplateDispatch, WhatsAppTemplateDispatchData, WhatsAppTemplateIdContent, WhatsAppTemplateSlugContent, WhatsAppTextContent, WhatsAppTextHeader, WhatsAppVideo, WhatsAppVideoHeader, WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload, WhatsAppVideoLink, WhatsAppVideoUpload, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString };
|
|
2266
|
+
export { AccountLinks, AccountStatus, AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, AgentModuleTool, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, AnswerWithoutApproval, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFromInput, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, CatalogModelId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, CredentialsError, DeliveryErrorDetails, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionInstallationId, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, IntegrationStatus, IntegrationTool, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyId, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneySendWhatsAppConfig, JourneyStatus, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, KnowledgeSourceId, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageContent, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespacePortalLinkMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, PolicyConfiguration, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicyRule, PolicyRuleMatch, PolicySubject, PolicyVersion, RateLimitedError, RecipeSetupReferences, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, ShareLinkUnavailable, ShopifyShop, SkippedRecipient, SlugTaken, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsMessageContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SubmissionClient, SuccessResponse, TemplateChannelVariantId, TemplateData, TemplateFamilyId, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppChannelError, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppFlowVersionId, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppMessageContent, WhatsAppMessageReference, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppReceivedFlowResponse, WhatsAppReceivedReply, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, WhatsAppStoredContactCard, WhatsAppStoredFlowMessage, WhatsAppStoredInteractive, WhatsAppStoredLocation, WhatsAppStoredMedia, WhatsAppStoredReaction, WhatsAppStructuredContent, WhatsAppTemplateBinding, WhatsAppTemplateBindings, WhatsAppTemplateContactBinding, WhatsAppTemplateCustomFieldBinding, WhatsAppTemplateData, WhatsAppTemplateDispatch, WhatsAppTemplateDispatchData, WhatsAppTemplateIdContent, WhatsAppTemplateSlugContent, WhatsAppTextContent, WhatsAppTextHeader, WhatsAppVideo, WhatsAppVideoHeader, WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload, WhatsAppVideoLink, WhatsAppVideoUpload, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString };
|
|
2027
2267
|
|
|
2028
2268
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError,
|
|
3
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
export type SubscribeResult = {
|
|
5
5
|
readonly success: boolean;
|
|
6
6
|
readonly expiresAt: string;
|
|
@@ -42,8 +42,8 @@ export type SubscriptionsSubscribe401 = UnauthorizedError;
|
|
|
42
42
|
export declare const SubscriptionsSubscribe401: typeof UnauthorizedError;
|
|
43
43
|
export type SubscriptionsSubscribe402 = PaymentRequiredError;
|
|
44
44
|
export declare const SubscriptionsSubscribe402: typeof PaymentRequiredError;
|
|
45
|
-
export type SubscriptionsSubscribe403 = ForbiddenError | OnboardingReviewRequiredError
|
|
46
|
-
export declare const SubscriptionsSubscribe403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError
|
|
45
|
+
export type SubscriptionsSubscribe403 = ForbiddenError | OnboardingReviewRequiredError;
|
|
46
|
+
export declare const SubscriptionsSubscribe403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]>;
|
|
47
47
|
export type SubscriptionsSubscribe404 = ResourceNotFoundError;
|
|
48
48
|
export declare const SubscriptionsSubscribe404: typeof ResourceNotFoundError;
|
|
49
49
|
export type SubscriptionsSubscribe409 = ConflictError;
|
|
@@ -73,7 +73,7 @@ declare const SubscriptionsGroup_base: HttpApiGroup.HttpApiGroup<"Subscriptions"
|
|
|
73
73
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
74
74
|
readonly success: Schema.Boolean;
|
|
75
75
|
readonly expiresAt: Schema.String;
|
|
76
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
76
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]> | Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
77
77
|
readonly _tag: "ConflictError";
|
|
78
78
|
readonly message: string;
|
|
79
79
|
readonly resource: string;
|