samva 0.51.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 +5 -2
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +67 -28
- package/dist/client/sdk.gen.js +157 -29
- package/dist/client/types.gen.d.ts +520 -281
- package/dist/effect/campaigns.d.ts +56 -56
- 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/generated/agents.js +4 -4
- package/dist/effect/generated/campaigns.d.ts +18 -6
- package/dist/effect/generated/campaigns.js +2 -6
- package/dist/effect/generated/email.js +3 -3
- 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 +20 -20
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- 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/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +1138 -257
- package/dist/effect/generated/shared.js +321 -82
- 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 +2 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +40 -8
- package/dist/effect/internal/client.js +25 -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/journeys.d.ts +148 -148
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +156 -150
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- 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 +3 -1
- package/dist/promises/client.js +3 -1
- package/dist/promises/errors.gen.d.ts +2 -0
- package/dist/promises/errors.gen.js +137 -34
- 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/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -525,6 +525,129 @@ const ShopifyShop = /* @__PURE__ */ (() => Schema.String.check(Schema.isMaxCodeP
|
|
|
525
525
|
expected: "a string matching the RegExp ^[a-z0-9][a-z0-9-]*\\.myshopify\\.com$",
|
|
526
526
|
identifier: "ShopifyShop"
|
|
527
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" }))();
|
|
528
651
|
const MailboxChannel = /* @__PURE__ */ (() => Schema.Union([
|
|
529
652
|
Schema.Literal("sms"),
|
|
530
653
|
Schema.Literal("whatsapp"),
|
|
@@ -685,36 +808,6 @@ const WhatsAppStickerLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
685
808
|
type: Schema.Literal("sticker"),
|
|
686
809
|
url: Schema.String
|
|
687
810
|
}).annotate({ identifier: "WhatsAppStickerLink" }))();
|
|
688
|
-
const WhatsAppTextHeader = /* @__PURE__ */ (() => Schema.Struct({
|
|
689
|
-
type: Schema.Literal("text"),
|
|
690
|
-
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" }))
|
|
691
|
-
}).annotate({ identifier: "WhatsAppTextHeader" }))();
|
|
692
|
-
const WhatsAppImageHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
693
|
-
type: Schema.Literal("image"),
|
|
694
|
-
url: Schema.String
|
|
695
|
-
}).annotate({ identifier: "WhatsAppImageHeaderLink" }))();
|
|
696
|
-
const WhatsAppVideoHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
697
|
-
type: Schema.Literal("video"),
|
|
698
|
-
url: Schema.String
|
|
699
|
-
}).annotate({ identifier: "WhatsAppVideoHeaderLink" }))();
|
|
700
|
-
const WhatsAppDocumentHeaderLink = /* @__PURE__ */ (() => Schema.Struct({
|
|
701
|
-
type: Schema.Literal("document"),
|
|
702
|
-
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" }))),
|
|
703
|
-
url: Schema.String
|
|
704
|
-
}).annotate({ identifier: "WhatsAppDocumentHeaderLink" }))();
|
|
705
|
-
const WhatsAppReplyButton = /* @__PURE__ */ (() => Schema.Struct({
|
|
706
|
-
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" })),
|
|
707
|
-
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" }))
|
|
708
|
-
}).annotate({ identifier: "WhatsAppReplyButton" }))();
|
|
709
|
-
const WhatsAppListRow = /* @__PURE__ */ (() => Schema.Struct({
|
|
710
|
-
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" })),
|
|
711
|
-
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" })),
|
|
712
|
-
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" })))
|
|
713
|
-
}).annotate({ identifier: "WhatsAppListRow" }))();
|
|
714
|
-
const WhatsAppFlowId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^waflow_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
715
|
-
expected: "a string matching the RegExp ^waflow_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
716
|
-
identifier: "WhatsAppFlowId"
|
|
717
|
-
})).pipe(Schema.brand("WhatsAppFlowId")))();
|
|
718
811
|
const WhatsAppLocation = /* @__PURE__ */ (() => Schema.Struct({
|
|
719
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" })),
|
|
720
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" })),
|
|
@@ -759,10 +852,6 @@ const WhatsAppContactCard = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
759
852
|
}))),
|
|
760
853
|
birthday: Schema.optionalKey(Schema.String)
|
|
761
854
|
}).annotate({ identifier: "WhatsAppContactCard" }))();
|
|
762
|
-
const WhatsAppFlowVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
763
|
-
expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
764
|
-
identifier: "WhatsAppFlowVersionId"
|
|
765
|
-
})).pipe(Schema.brand("WhatsAppFlowVersionId")))();
|
|
766
855
|
const MessageDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
767
856
|
expected: "a string matching the RegExp ^mdel_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
768
857
|
identifier: "MessageDeliveryId"
|
|
@@ -1107,6 +1196,15 @@ const UpdateWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1107
1196
|
headers: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])),
|
|
1108
1197
|
status: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("active"), Schema.Literal("disabled")]), Schema.Null]))
|
|
1109
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" }))();
|
|
1110
1208
|
const CreateMailboxChatDraftPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1111
1209
|
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
1112
1210
|
to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1130,6 +1228,58 @@ const EmailAttachment = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1130
1228
|
contentType: Schema.String,
|
|
1131
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" }))
|
|
1132
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" }))();
|
|
1133
1283
|
const WhatsAppImageUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1134
1284
|
type: Schema.Literal("image"),
|
|
1135
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" }))),
|
|
@@ -1154,19 +1304,6 @@ const WhatsAppStickerUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1154
1304
|
type: Schema.Literal("sticker"),
|
|
1155
1305
|
mediaId: MediaId
|
|
1156
1306
|
}).annotate({ identifier: "WhatsAppStickerUpload" }))();
|
|
1157
|
-
const WhatsAppImageHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1158
|
-
type: Schema.Literal("image"),
|
|
1159
|
-
mediaId: MediaId
|
|
1160
|
-
}).annotate({ identifier: "WhatsAppImageHeaderUpload" }))();
|
|
1161
|
-
const WhatsAppVideoHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1162
|
-
type: Schema.Literal("video"),
|
|
1163
|
-
mediaId: MediaId
|
|
1164
|
-
}).annotate({ identifier: "WhatsAppVideoHeaderUpload" }))();
|
|
1165
|
-
const WhatsAppDocumentHeaderUpload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1166
|
-
type: Schema.Literal("document"),
|
|
1167
|
-
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" }))),
|
|
1168
|
-
mediaId: MediaId
|
|
1169
|
-
}).annotate({ identifier: "WhatsAppDocumentHeaderUpload" }))();
|
|
1170
1307
|
const SkippedRecipient = /* @__PURE__ */ (() => Schema.Struct({
|
|
1171
1308
|
address: Schema.String,
|
|
1172
1309
|
reason: Schema.Union([
|
|
@@ -1316,6 +1453,36 @@ const JourneyComparison = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1316
1453
|
JourneyStringComparison,
|
|
1317
1454
|
JourneyPresenceComparison
|
|
1318
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" }))();
|
|
1319
1486
|
const CreateMailboxEndpointPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
1320
1487
|
channel: MailboxChannel,
|
|
1321
1488
|
address: Schema.String,
|
|
@@ -1393,22 +1560,6 @@ const WhatsAppTemplateSlugContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1393
1560
|
templateData: Schema.optionalKey(WhatsAppTemplateData),
|
|
1394
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" })))
|
|
1395
1562
|
}).annotate({ identifier: "WhatsAppTemplateSlugContent" }))();
|
|
1396
|
-
const WhatsAppListSection = /* @__PURE__ */ (() => Schema.Struct({
|
|
1397
|
-
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" }))),
|
|
1398
|
-
rows: Schema.Array(WhatsAppListRow).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
|
|
1399
|
-
}).annotate({ identifier: "WhatsAppListSection" }))();
|
|
1400
|
-
const WhatsAppFlowMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1401
|
-
type: Schema.Literal("flow"),
|
|
1402
|
-
header: Schema.optionalKey(WhatsAppTextHeader),
|
|
1403
|
-
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" })),
|
|
1404
|
-
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" }))),
|
|
1405
|
-
flowId: WhatsAppFlowId,
|
|
1406
|
-
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" })),
|
|
1407
|
-
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" }))),
|
|
1408
|
-
action: Schema.optionalKey(Schema.Union([Schema.Literal("navigate"), Schema.Literal("data_exchange")])),
|
|
1409
|
-
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}$" }))),
|
|
1410
|
-
data: Schema.optionalKey(Schema.Record(Schema.String, JsonValue))
|
|
1411
|
-
}).annotate({ identifier: "WhatsAppFlowMessage" }))();
|
|
1412
1563
|
const WhatsAppLocationContent = /* @__PURE__ */ (() => Schema.Struct({ location: WhatsAppLocation }).annotate({ identifier: "WhatsAppLocationContent" }))();
|
|
1413
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" }))();
|
|
1414
1565
|
const Operation = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -1614,14 +1765,14 @@ const ReplyMailboxEmailPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1614
1765
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1615
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]))
|
|
1616
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" }))();
|
|
1617
1771
|
const WhatsAppImage = /* @__PURE__ */ (() => Schema.Union([WhatsAppImageLink, WhatsAppImageUpload]).annotate({ identifier: "WhatsAppImage" }))();
|
|
1618
1772
|
const WhatsAppVideo = /* @__PURE__ */ (() => Schema.Union([WhatsAppVideoLink, WhatsAppVideoUpload]).annotate({ identifier: "WhatsAppVideo" }))();
|
|
1619
1773
|
const WhatsAppAudio = /* @__PURE__ */ (() => Schema.Union([WhatsAppAudioLink, WhatsAppAudioUpload]).annotate({ identifier: "WhatsAppAudio" }))();
|
|
1620
1774
|
const WhatsAppDocument = /* @__PURE__ */ (() => Schema.Union([WhatsAppDocumentLink, WhatsAppDocumentUpload]).annotate({ identifier: "WhatsAppDocument" }))();
|
|
1621
1775
|
const WhatsAppSticker = /* @__PURE__ */ (() => Schema.Union([WhatsAppStickerLink, WhatsAppStickerUpload]).annotate({ identifier: "WhatsAppSticker" }))();
|
|
1622
|
-
const WhatsAppImageHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload]).annotate({ identifier: "WhatsAppImageHeader" }))();
|
|
1623
|
-
const WhatsAppVideoHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload]).annotate({ identifier: "WhatsAppVideoHeader" }))();
|
|
1624
|
-
const WhatsAppDocumentHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload]).annotate({ identifier: "WhatsAppDocumentHeader" }))();
|
|
1625
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({
|
|
1626
1777
|
expected: "an object with property names matching the schema",
|
|
1627
1778
|
identifier: "WhatsAppTemplateBindings"
|
|
@@ -1676,6 +1827,14 @@ const JourneyCustomFieldPredicate = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1676
1827
|
key: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1677
1828
|
comparison: JourneyComparison
|
|
1678
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" }))();
|
|
1679
1838
|
const MailboxSendReceipt = /* @__PURE__ */ (() => Schema.Struct({
|
|
1680
1839
|
actionId: MailboxActionId,
|
|
1681
1840
|
draftId: Schema.Union([MailboxDraftId, Schema.Null]),
|
|
@@ -1713,14 +1872,6 @@ const MailboxSendReceipt = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1713
1872
|
createdAt: Schema.String,
|
|
1714
1873
|
updatedAt: Schema.String
|
|
1715
1874
|
}).annotate({ identifier: "MailboxSendReceipt" }))();
|
|
1716
|
-
const WhatsAppListMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1717
|
-
type: Schema.Literal("list"),
|
|
1718
|
-
header: Schema.optionalKey(WhatsAppTextHeader),
|
|
1719
|
-
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" })),
|
|
1720
|
-
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" }))),
|
|
1721
|
-
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" })),
|
|
1722
|
-
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" }))
|
|
1723
|
-
}).annotate({ identifier: "WhatsAppListMessage" }))();
|
|
1724
1875
|
const OperationAccepted = /* @__PURE__ */ (() => Schema.Struct({
|
|
1725
1876
|
operation: Operation,
|
|
1726
1877
|
links: Schema.Struct({
|
|
@@ -1801,6 +1952,12 @@ const EmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1801
1952
|
footer: Schema.optionalKey(EmailFooterOverride),
|
|
1802
1953
|
headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null]))
|
|
1803
1954
|
}).annotate({ identifier: "EmailContent" }))();
|
|
1955
|
+
const WhatsAppInteractiveHeader = /* @__PURE__ */ (() => Schema.Union([
|
|
1956
|
+
WhatsAppTextHeader,
|
|
1957
|
+
WhatsAppImageHeader,
|
|
1958
|
+
WhatsAppVideoHeader,
|
|
1959
|
+
WhatsAppDocumentHeader
|
|
1960
|
+
]).annotate({ identifier: "WhatsAppInteractiveHeader" }))();
|
|
1804
1961
|
const WhatsAppOutboundMedia = /* @__PURE__ */ (() => Schema.Union([
|
|
1805
1962
|
WhatsAppImage,
|
|
1806
1963
|
WhatsAppVideo,
|
|
@@ -1808,12 +1965,6 @@ const WhatsAppOutboundMedia = /* @__PURE__ */ (() => Schema.Union([
|
|
|
1808
1965
|
WhatsAppDocument,
|
|
1809
1966
|
WhatsAppSticker
|
|
1810
1967
|
]).annotate({ identifier: "WhatsAppOutboundMedia" }))();
|
|
1811
|
-
const WhatsAppInteractiveHeader = /* @__PURE__ */ (() => Schema.Union([
|
|
1812
|
-
WhatsAppTextHeader,
|
|
1813
|
-
WhatsAppImageHeader,
|
|
1814
|
-
WhatsAppVideoHeader,
|
|
1815
|
-
WhatsAppDocumentHeader
|
|
1816
|
-
]).annotate({ identifier: "WhatsAppInteractiveHeader" }))();
|
|
1817
1968
|
const WhatsAppTemplateDispatch = /* @__PURE__ */ (() => Schema.Struct({
|
|
1818
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]+)*$" }))]),
|
|
1819
1970
|
templateData: Schema.optionalKey(WhatsAppTemplateDispatchData),
|
|
@@ -1879,7 +2030,6 @@ const EmailSendMessagePayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1879
2030
|
from: Schema.optionalKey(EmailSender),
|
|
1880
2031
|
email: EmailContent
|
|
1881
2032
|
}).annotate({ identifier: "EmailSendMessagePayload" }))();
|
|
1882
|
-
const WhatsAppMediaContent = /* @__PURE__ */ (() => Schema.Struct({ media: WhatsAppOutboundMedia }).annotate({ identifier: "WhatsAppMediaContent" }))();
|
|
1883
2033
|
const WhatsAppButtonsMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
1884
2034
|
type: Schema.Literal("buttons"),
|
|
1885
2035
|
header: Schema.optionalKey(WhatsAppInteractiveHeader),
|
|
@@ -1895,6 +2045,7 @@ const WhatsAppCtaUrlMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1895
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" })),
|
|
1896
2046
|
url: Schema.String
|
|
1897
2047
|
}).annotate({ identifier: "WhatsAppCtaUrlMessage" }))();
|
|
2048
|
+
const WhatsAppMediaContent = /* @__PURE__ */ (() => Schema.Struct({ media: WhatsAppOutboundMedia }).annotate({ identifier: "WhatsAppMediaContent" }))();
|
|
1898
2049
|
const WhatsAppCampaignContentInput = /* @__PURE__ */ (() => Schema.Struct({
|
|
1899
2050
|
channel: Schema.Literal("whatsapp"),
|
|
1900
2051
|
whatsapp: WhatsAppTemplateDispatch,
|
|
@@ -1942,6 +2093,12 @@ const AgentModuleManifest = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1942
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" })),
|
|
1943
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" }))
|
|
1944
2095
|
}).annotate({ identifier: "AgentModuleManifest" }))();
|
|
2096
|
+
const WhatsAppStoredInteractive = /* @__PURE__ */ (() => Schema.Union([
|
|
2097
|
+
WhatsAppButtonsMessage,
|
|
2098
|
+
WhatsAppListMessage,
|
|
2099
|
+
WhatsAppCtaUrlMessage,
|
|
2100
|
+
WhatsAppStoredFlowMessage
|
|
2101
|
+
]).annotate({ identifier: "WhatsAppStoredInteractive" }))();
|
|
1945
2102
|
const WhatsAppInteractive = /* @__PURE__ */ (() => Schema.Union([
|
|
1946
2103
|
WhatsAppButtonsMessage,
|
|
1947
2104
|
WhatsAppListMessage,
|
|
@@ -1961,12 +2118,94 @@ const AgentModuleBundle = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1961
2118
|
source: Schema.String,
|
|
1962
2119
|
manifest: AgentModuleManifest
|
|
1963
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" }))();
|
|
1964
2178
|
const WhatsAppInteractiveContent = /* @__PURE__ */ (() => Schema.Struct({ interactive: WhatsAppInteractive }).annotate({ identifier: "WhatsAppInteractiveContent" }))();
|
|
1965
2179
|
const JourneyBranchNode = /* @__PURE__ */ (() => Schema.Struct({
|
|
1966
2180
|
type: Schema.Literal("branch"),
|
|
1967
2181
|
config: JourneyEmptyConfig,
|
|
1968
2182
|
next: Schema.Array(JourneyBranchEdge).check(Schema.isMinLength(2).annotate({ expected: "a value with a length of at least 2" }))
|
|
1969
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" }))();
|
|
1970
2209
|
const WhatsAppContent = /* @__PURE__ */ (() => Schema.Union([
|
|
1971
2210
|
WhatsAppTextContent,
|
|
1972
2211
|
WhatsAppTemplateIdContent,
|
|
@@ -2024,6 +2263,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
|
|
|
2024
2263
|
in: "header"
|
|
2025
2264
|
});
|
|
2026
2265
|
var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
|
|
2027
|
-
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 };
|
|
2028
2267
|
|
|
2029
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;
|