samva 0.35.0 → 0.37.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.
Files changed (70) hide show
  1. package/AGENTS.md +17 -0
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +102 -82
  4. package/dist/client/sdk.gen.js +322 -244
  5. package/dist/client/types.gen.d.ts +600 -378
  6. package/dist/effect/agents.d.ts +194 -4
  7. package/dist/effect/agents.js +3 -1
  8. package/dist/effect/analytics.d.ts +6 -0
  9. package/dist/effect/api-keys.d.ts +3 -6
  10. package/dist/effect/campaigns.d.ts +216 -216
  11. package/dist/effect/conversations.d.ts +6 -0
  12. package/dist/effect/errors.d.ts +1 -1
  13. package/dist/effect/errors.js +2 -2
  14. package/dist/effect/extension-installations.d.ts +53 -1
  15. package/dist/effect/generated/agents.d.ts +1803 -81
  16. package/dist/effect/generated/agents.js +92 -26
  17. package/dist/effect/generated/analytics.d.ts +19 -1
  18. package/dist/effect/generated/analytics.js +8 -2
  19. package/dist/effect/generated/api-keys.d.ts +4 -29
  20. package/dist/effect/generated/api-keys.js +5 -6
  21. package/dist/effect/generated/campaigns.d.ts +22 -0
  22. package/dist/effect/generated/campaigns.js +3 -1
  23. package/dist/effect/generated/conversations.d.ts +104 -3
  24. package/dist/effect/generated/conversations.js +12 -2
  25. package/dist/effect/generated/extension-installations.d.ts +845 -68
  26. package/dist/effect/generated/extension-installations.js +22 -26
  27. package/dist/effect/generated/index.d.ts +3 -1
  28. package/dist/effect/generated/mailboxes.d.ts +3423 -1446
  29. package/dist/effect/generated/mailboxes.js +226 -220
  30. package/dist/effect/generated/namespaces.d.ts +7 -31
  31. package/dist/effect/generated/namespaces.js +4 -4
  32. package/dist/effect/generated/policies.d.ts +953 -0
  33. package/dist/effect/generated/policies.js +116 -0
  34. package/dist/effect/generated/scheduled-messages.d.ts +45 -4
  35. package/dist/effect/generated/scheduled-messages.js +8 -3
  36. package/dist/effect/generated/shared.d.ts +893 -224
  37. package/dist/effect/generated/shared.js +194 -60
  38. package/dist/effect/generated/templates.d.ts +474 -668
  39. package/dist/effect/generated/templates.js +65 -45
  40. package/dist/effect/generated/webhooks.d.ts +22 -19
  41. package/dist/effect/generated/webhooks.js +10 -1
  42. package/dist/effect/generated/whoami.d.ts +0 -4
  43. package/dist/effect/generated-metadata.d.ts +36 -32
  44. package/dist/effect/generated-metadata.js +127 -105
  45. package/dist/effect/index.d.ts +1 -0
  46. package/dist/effect/index.js +3 -2
  47. package/dist/effect/internal/operation.js +5 -32
  48. package/dist/effect/journeys.d.ts +146 -146
  49. package/dist/effect/mailboxes.d.ts +575 -129
  50. package/dist/effect/mailboxes.js +1 -11
  51. package/dist/effect/policies.d.ts +65 -0
  52. package/dist/effect/policies.js +16 -0
  53. package/dist/effect/scheduled-messages.d.ts +6 -0
  54. package/dist/effect/templates.d.ts +6 -8
  55. package/dist/effect/templates.js +5 -3
  56. package/dist/effect/topics.d.ts +2 -2
  57. package/dist/effect/webhooks.d.ts +7 -4
  58. package/dist/index.js +2 -2
  59. package/dist/mailbox/test.js +11 -4
  60. package/dist/mailbox/types.d.ts +39 -3
  61. package/dist/package.js +1 -1
  62. package/dist/promises/client.d.ts +3 -1
  63. package/dist/promises/client.js +5 -3
  64. package/dist/promises/errors.gen.d.ts +18 -2
  65. package/dist/promises/errors.gen.js +335 -33
  66. package/dist/promises/index.js +2 -2
  67. package/dist/promises/types.gen.d.ts +1 -1
  68. package/dist/service-map.d.ts +30 -28
  69. package/dist/service-map.js +219 -786
  70. package/package.json +6 -2
@@ -7,6 +7,10 @@ const NamespaceId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(
7
7
  expected: "a string matching the RegExp ^ns_[0-9a-hjkmnp-tv-z]{16,24}$",
8
8
  identifier: "NamespaceId"
9
9
  })).pipe(Schema.brand("NamespaceId")))();
10
+ const AgentId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^agt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
11
+ expected: "a string matching the RegExp ^agt_[0-9a-hjkmnp-tv-z]{16,24}$",
12
+ identifier: "AgentId"
13
+ })).pipe(Schema.brand("AgentId")))();
10
14
  var MalformedRequestError = class extends Schema.TaggedError()("MalformedRequestError", Schema.Struct({
11
15
  message: Schema.String,
12
16
  fields: Schema.Record(Schema.String, Schema.Array(Schema.String))
@@ -46,7 +50,29 @@ const AgentToolScope = /* @__PURE__ */ (() => Schema.Union([
46
50
  names: Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z][a-z0-9_.]{0,63}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z][a-z0-9_.]{0,63}$" }))).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
47
51
  })
48
52
  ]).annotate({ identifier: "AgentToolScope" }))();
49
- const AgentMode = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("live"), Schema.Literal("supervised")]).annotate({ identifier: "AgentMode" }))();
53
+ const PolicyEffect = /* @__PURE__ */ (() => Schema.Union([
54
+ Schema.Literal("read"),
55
+ Schema.Literal("write"),
56
+ Schema.Literal("final")
57
+ ]).annotate({ identifier: "PolicyEffect" }))();
58
+ const ApiKeyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^key_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
59
+ expected: "a string matching the RegExp ^key_[0-9a-hjkmnp-tv-z]{16,24}$",
60
+ identifier: "ApiKeyId"
61
+ })).pipe(Schema.brand("ApiKeyId")))();
62
+ const UserId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^user_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
63
+ expected: "a string matching the RegExp ^user_[0-9a-hjkmnp-tv-z]{16,24}$",
64
+ identifier: "UserId"
65
+ })).pipe(Schema.brand("UserId")))();
66
+ const ExtensionInstallationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^exti_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
67
+ expected: "a string matching the RegExp ^exti_[0-9a-hjkmnp-tv-z]{16,24}$",
68
+ identifier: "ExtensionInstallationId"
69
+ })).pipe(Schema.brand("ExtensionInstallationId")))();
70
+ const PolicyRequirement = /* @__PURE__ */ (() => Schema.Union([
71
+ Schema.Literal("run"),
72
+ Schema.Literal("model"),
73
+ Schema.Literal("person"),
74
+ Schema.Literal("never")
75
+ ]).annotate({ identifier: "PolicyRequirement" }))();
50
76
  const AgentModel = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("standard"), Schema.Literal("max")]).annotate({ identifier: "AgentModel" }))();
51
77
  const CatalogModelId = /* @__PURE__ */ (() => Schema.String.check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9][a-z0-9._-]*\\/[A-Za-z0-9._:~-]+$", "u")).annotate({
52
78
  expected: "a string matching the RegExp ^[a-z0-9][a-z0-9._-]*\\/[A-Za-z0-9._:~-]+$",
@@ -115,19 +141,11 @@ const MailboxId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(ne
115
141
  expected: "a string matching the RegExp ^mbx_[0-9a-hjkmnp-tv-z]{16,24}$",
116
142
  identifier: "MailboxId"
117
143
  })).pipe(Schema.brand("MailboxId")))();
118
- const MailboxSendMode = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("send"), Schema.Literal("approval")]).annotate({
119
- description: "How the grantee's sends execute: `send` runs them within account limits; `approval` holds each one until a different member approves it.",
120
- identifier: "MailboxSendMode"
121
- }))();
122
144
  var RateLimitedError = class extends Schema.TaggedError()("RateLimitedError", Schema.Struct({
123
145
  message: Schema.String,
124
146
  retryAfterSeconds: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
125
147
  })) {};
126
148
  var BillingProviderError = class extends Schema.TaggedError()("BillingProviderError", Schema.Struct({ message: Schema.String })) {};
127
- const ApiKeyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^key_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
128
- expected: "a string matching the RegExp ^key_[0-9a-hjkmnp-tv-z]{16,24}$",
129
- identifier: "ApiKeyId"
130
- })).pipe(Schema.brand("ApiKeyId")))();
131
149
  const SuccessResponse = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Boolean }).annotate({ identifier: "SuccessResponse" }))();
132
150
  const MessageId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^msg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
133
151
  expected: "a string matching the RegExp ^msg_[0-9a-hjkmnp-tv-z]{16,24}$",
@@ -380,10 +398,6 @@ const ExtensionVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isP
380
398
  expected: "a string matching the RegExp ^extver_[0-9a-hjkmnp-tv-z]{16,24}$",
381
399
  identifier: "ExtensionVersionId"
382
400
  })).pipe(Schema.brand("ExtensionVersionId")))();
383
- const UserId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^user_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
384
- expected: "a string matching the RegExp ^user_[0-9a-hjkmnp-tv-z]{16,24}$",
385
- identifier: "UserId"
386
- })).pipe(Schema.brand("UserId")))();
387
401
  const FeedbackContext = /* @__PURE__ */ (() => Schema.Struct({
388
402
  operation: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The operation the report is about, as an SDK method, MCP tool, CLI command, or `METHOD /path` (for example `POST /v1/messages`)." }).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" })), Schema.Null])),
389
403
  resourceId: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The id of the resource involved, such as a message or domain id." }).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" })), Schema.Null]))
@@ -487,10 +501,20 @@ const MailboxDraftId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPatte
487
501
  expected: "a string matching the RegExp ^mdraft_[0-9a-hjkmnp-tv-z]{16,24}$",
488
502
  identifier: "MailboxDraftId"
489
503
  })).pipe(Schema.brand("MailboxDraftId")))();
490
- const MailboxPolicyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
491
- expected: "a string matching the RegExp ^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$",
492
- identifier: "MailboxPolicyId"
493
- })).pipe(Schema.brand("MailboxPolicyId")))();
504
+ const PolicyDecisionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^pdec_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
505
+ expected: "a string matching the RegExp ^pdec_[0-9a-hjkmnp-tv-z]{16,24}$",
506
+ identifier: "PolicyDecisionId"
507
+ })).pipe(Schema.brand("PolicyDecisionId")))();
508
+ const PolicyReviewRound = /* @__PURE__ */ (() => Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({
509
+ expected: "a value greater than 0",
510
+ identifier: "PolicyReviewRound"
511
+ })))();
512
+ const PolicyDecider = /* @__PURE__ */ (() => Schema.Union([
513
+ Schema.Literal("rule"),
514
+ Schema.Literal("model"),
515
+ Schema.Literal("person"),
516
+ Schema.Literal("agent")
517
+ ]).annotate({ identifier: "PolicyDecider" }))();
494
518
  const MailboxSendError = /* @__PURE__ */ (() => Schema.Union([
495
519
  Schema.TaggedStruct("SenderNotReadyError", {
496
520
  message: Schema.String,
@@ -571,7 +595,6 @@ const MailboxLabelId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPatte
571
595
  expected: "a string matching the RegExp ^label_[0-9a-hjkmnp-tv-z]{16,24}$",
572
596
  identifier: "MailboxLabelId"
573
597
  })).pipe(Schema.brand("MailboxLabelId")))();
574
- const MailboxPolicyOutcomeKind = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("requireApproval"), Schema.Literal("deny")]).annotate({ identifier: "MailboxPolicyOutcomeKind" }))();
575
598
  const MailboxThreadPriority = /* @__PURE__ */ (() => Schema.Union([
576
599
  Schema.Literal("low"),
577
600
  Schema.Literal("normal"),
@@ -708,6 +731,10 @@ const OperationResource = /* @__PURE__ */ (() => Schema.Struct({
708
731
  type: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(80).annotate({ expected: "a string with at most 80 code points" })).check(Schema.isMaxLength(80).annotate({ expected: "a value with a length of at most 80" })),
709
732
  id: 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" }))
710
733
  }).annotate({ identifier: "OperationResource" }))();
734
+ const PolicyVersion = /* @__PURE__ */ (() => Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({
735
+ expected: "a value less than or equal to 9007199254740991",
736
+ identifier: "PolicyVersion"
737
+ })))();
711
738
  const TemplateFromDefault = /* @__PURE__ */ (() => Schema.Struct({
712
739
  email: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
713
740
  name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
@@ -716,6 +743,13 @@ const TemplateTrackingDefault = /* @__PURE__ */ (() => Schema.Struct({
716
743
  opens: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
717
744
  clicks: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
718
745
  }).annotate({ identifier: "TemplateTrackingDefault" }))();
746
+ var TemplateInUseError = class extends Schema.TaggedError()("TemplateInUseError", Schema.Struct({
747
+ message: Schema.String,
748
+ references: Schema.Array(Schema.Struct({
749
+ kind: Schema.String,
750
+ id: Schema.String
751
+ }))
752
+ })) {};
719
753
  const TopicContactByEmail = /* @__PURE__ */ (() => Schema.Struct({ email: Schema.String }).annotate({ identifier: "TopicContactByEmail" }))();
720
754
  const TopicContactByPhone = /* @__PURE__ */ (() => Schema.Struct({ phone: Schema.String }).annotate({ identifier: "TopicContactByPhone" }))();
721
755
  const TestWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])) }).annotate({ identifier: "TestWebhookPayload" }))();
@@ -735,21 +769,51 @@ const CreateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({
735
769
  Schema.Literal("reminder"),
736
770
  Schema.Literal("alert")
737
771
  ]), Schema.Null])),
738
- isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
739
772
  namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace." })),
740
773
  shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key." }))
741
774
  }).annotate({ identifier: "CreateTemplatePayload" }))();
742
775
  const AgentIntegrationGrant = /* @__PURE__ */ (() => Schema.Struct({
743
776
  integrationId: IntegrationId,
744
- tools: AgentToolScope,
745
- requireApproval: Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z][a-z0-9_.]{0,63}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z][a-z0-9_.]{0,63}$" })))
777
+ tools: AgentToolScope
746
778
  }).annotate({ identifier: "AgentIntegrationGrant" }))();
779
+ const PolicySubject = /* @__PURE__ */ (() => Schema.Union([
780
+ Schema.Struct({
781
+ kind: Schema.Literal("agent"),
782
+ id: AgentId
783
+ }),
784
+ Schema.Struct({
785
+ kind: Schema.Literal("apiKey"),
786
+ id: ApiKeyId
787
+ }),
788
+ Schema.Struct({
789
+ kind: Schema.Literal("member"),
790
+ userId: UserId
791
+ }),
792
+ Schema.Struct({
793
+ kind: Schema.Literal("extension"),
794
+ id: ExtensionInstallationId
795
+ })
796
+ ]).annotate({ identifier: "PolicySubject" }))();
747
797
  const AgentModelChoice = /* @__PURE__ */ (() => Schema.Union([AgentModel, CatalogModelId]).annotate({ identifier: "AgentModelChoice" }))();
748
798
  const WorkingHoursRange = /* @__PURE__ */ (() => Schema.Struct({
749
799
  day: Weekday,
750
800
  opens: ClockTime,
751
801
  closes: ClockTime
752
802
  }).annotate({ identifier: "WorkingHoursRange" }))();
803
+ const ApiKeyMailboxAccess = /* @__PURE__ */ (() => Schema.Struct({
804
+ permissions: Schema.TupleWithRest(Schema.Tuple([Schema.Union([
805
+ Schema.Literal("read"),
806
+ Schema.Literal("update"),
807
+ Schema.Literal("send"),
808
+ Schema.Literal("quarantine.read")
809
+ ])]), [Schema.Union([
810
+ Schema.Literal("read"),
811
+ Schema.Literal("update"),
812
+ Schema.Literal("send"),
813
+ Schema.Literal("quarantine.read")
814
+ ])]).annotate({ description: "`read` reads mailboxes, threads, and messages; `update` changes thread state, labels, drafts, and notes; `send` sends and replies; `quarantine.read` reads quarantined mail." }),
815
+ mailboxIds: Schema.optionalKey(Schema.Union([Schema.TupleWithRest(Schema.Tuple([MailboxId]), [MailboxId]), Schema.Null]).annotate({ description: "The mailboxes the key may act on. Omit to reach every mailbox the owner can." }))
816
+ }).annotate({ identifier: "ApiKeyMailboxAccess" }))();
753
817
  const CampaignReplyMailbox = /* @__PURE__ */ (() => Schema.Union([MailboxId, Schema.Null]).annotate({
754
818
  description: "Omit to inherit the topic mailbox; null disables mailbox inheritance. An explicit email.replyTo overrides an inherited mailbox.",
755
819
  identifier: "CampaignReplyMailbox"
@@ -783,6 +847,8 @@ const CreateWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({
783
847
  Schema.Literal("webhook.test"),
784
848
  Schema.Literal("domain.updated"),
785
849
  Schema.Literal("domain.warming.updated"),
850
+ Schema.Literal("email.sending.paused"),
851
+ Schema.Literal("email.sending.resumed"),
786
852
  Schema.Literal("template.registration.updated"),
787
853
  Schema.Literal("flow.registration.updated"),
788
854
  Schema.Literal("whatsapp.number.connected"),
@@ -837,6 +903,8 @@ const UpdateWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({
837
903
  Schema.Literal("webhook.test"),
838
904
  Schema.Literal("domain.updated"),
839
905
  Schema.Literal("domain.warming.updated"),
906
+ Schema.Literal("email.sending.paused"),
907
+ Schema.Literal("email.sending.resumed"),
840
908
  Schema.Literal("template.registration.updated"),
841
909
  Schema.Literal("flow.registration.updated"),
842
910
  Schema.Literal("whatsapp.number.connected"),
@@ -862,21 +930,6 @@ const UpdateWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({
862
930
  headers: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])),
863
931
  status: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("active"), Schema.Literal("disabled")]), Schema.Null]))
864
932
  }).annotate({ identifier: "UpdateWebhookPayload" }))();
865
- const ApiKeyMailboxAccess = /* @__PURE__ */ (() => Schema.Struct({
866
- permissions: Schema.TupleWithRest(Schema.Tuple([Schema.Union([
867
- Schema.Literal("read"),
868
- Schema.Literal("update"),
869
- Schema.Literal("send"),
870
- Schema.Literal("quarantine.read")
871
- ])]), [Schema.Union([
872
- Schema.Literal("read"),
873
- Schema.Literal("update"),
874
- Schema.Literal("send"),
875
- Schema.Literal("quarantine.read")
876
- ])]).annotate({ description: "`read` reads mailboxes, threads, and messages; `update` changes thread state, labels, drafts, and notes; `send` sends and replies; `quarantine.read` reads quarantined mail." }),
877
- mailboxIds: Schema.optionalKey(Schema.Union([Schema.TupleWithRest(Schema.Tuple([MailboxId]), [MailboxId]), Schema.Null]).annotate({ description: "The mailboxes the key may act on. Omit to reach every mailbox the owner can." })),
878
- sendMode: Schema.optionalKey(Schema.Union([MailboxSendMode, Schema.Null]).annotate({ description: "Defaults to `send`. With `approval`, each send waits until a person other than the key approves it." }))
879
- }).annotate({ identifier: "ApiKeyMailboxAccess" }))();
880
933
  const CreateMailboxChatDraftPayload = /* @__PURE__ */ (() => Schema.Struct({
881
934
  channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
882
935
  to: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -1137,19 +1190,59 @@ const CreateMailboxEndpointPayload = /* @__PURE__ */ (() => Schema.Struct({
1137
1190
  displayName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
1138
1191
  }).annotate({ identifier: "CreateMailboxEndpointPayload" }))();
1139
1192
  const MailboxActionDecision = /* @__PURE__ */ (() => Schema.Struct({
1193
+ id: PolicyDecisionId,
1194
+ reviewRound: PolicyReviewRound,
1195
+ requirement: PolicyRequirement,
1196
+ decider: PolicyDecider,
1140
1197
  outcome: Schema.Union([
1141
1198
  Schema.Literal("allow"),
1142
- Schema.Literal("requireApproval"),
1143
- Schema.Literal("deny")
1199
+ Schema.Literal("hold"),
1200
+ Schema.Literal("refuse")
1144
1201
  ]),
1145
- reason: Schema.Union([Schema.String, Schema.Null]),
1146
- policyId: Schema.Union([MailboxPolicyId, Schema.Null]),
1147
- source: Schema.Union([Schema.Union([
1148
- Schema.Literal("grant"),
1149
- Schema.Literal("installation"),
1150
- Schema.Literal("policy")
1151
- ]), Schema.Null]),
1152
- decidedAt: Schema.String
1202
+ reason: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
1203
+ scopes: Schema.Array(Schema.Struct({
1204
+ kind: Schema.Union([
1205
+ Schema.Literal("organization"),
1206
+ Schema.Literal("mailbox"),
1207
+ Schema.Literal("agent"),
1208
+ Schema.Literal("apiKey")
1209
+ ]),
1210
+ id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
1211
+ })),
1212
+ rule: Schema.optionalKey(Schema.Union([Schema.Struct({
1213
+ scope: Schema.Struct({
1214
+ kind: Schema.Union([
1215
+ Schema.Literal("organization"),
1216
+ Schema.Literal("mailbox"),
1217
+ Schema.Literal("agent"),
1218
+ Schema.Literal("apiKey")
1219
+ ]),
1220
+ id: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
1221
+ }),
1222
+ index: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
1223
+ }), Schema.Null])),
1224
+ guard: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
1225
+ guardReason: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
1226
+ resolution: Schema.optionalKey(Schema.Union([Schema.Struct({
1227
+ by: UserId,
1228
+ at: Schema.String,
1229
+ as: Schema.Union([
1230
+ Schema.Literal("approved"),
1231
+ Schema.Literal("edited"),
1232
+ Schema.Literal("denied"),
1233
+ Schema.Literal("alwaysAllowed")
1234
+ ]),
1235
+ diff: Schema.optionalKey(Schema.Union([Schema.Struct({
1236
+ text: Schema.optionalKey(Schema.Union([Schema.Struct({
1237
+ before: Schema.Union([Schema.String, Schema.Null]),
1238
+ after: Schema.Union([Schema.String, Schema.Null])
1239
+ }), Schema.Null])),
1240
+ html: Schema.optionalKey(Schema.Union([Schema.Struct({
1241
+ before: Schema.Union([Schema.String, Schema.Null]),
1242
+ after: Schema.Union([Schema.String, Schema.Null])
1243
+ }), Schema.Null]))
1244
+ }), Schema.Null]))
1245
+ }), Schema.Null]))
1153
1246
  }).annotate({ identifier: "MailboxActionDecision" }))();
1154
1247
  const MailboxSendOutcome = /* @__PURE__ */ (() => Schema.Struct({
1155
1248
  code: Schema.String,
@@ -1249,9 +1342,34 @@ const UpdateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schem
1249
1342
  fromDefault: Schema.optionalKey(Schema.Union([TemplateFromDefault, Schema.Null])),
1250
1343
  replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1251
1344
  trackingDefault: Schema.optionalKey(Schema.Union([TemplateTrackingDefault, Schema.Null]).annotate({ description: "Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default." })),
1252
- isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1253
1345
  shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared." }))
1254
1346
  }) }).annotate({ identifier: "UpdateTemplatePayload" }))();
1347
+ const PolicyRuleMatch = /* @__PURE__ */ (() => Schema.Struct({
1348
+ kind: Schema.optionalKey(Schema.Union([Schema.Union([
1349
+ Schema.Literal("send"),
1350
+ Schema.Literal("reply"),
1351
+ Schema.Literal("toolCall"),
1352
+ Schema.Literal("handoff")
1353
+ ]), Schema.Null])),
1354
+ effect: Schema.optionalKey(Schema.Union([PolicyEffect, Schema.Null])),
1355
+ channel: Schema.optionalKey(Schema.Union([Schema.Union([
1356
+ Schema.Literal("sms"),
1357
+ Schema.Literal("whatsapp"),
1358
+ Schema.Literal("email")
1359
+ ]), Schema.Null])),
1360
+ integration: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
1361
+ tool: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*(?:\\.\\*)?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*(?:\\.\\*)?$" })), Schema.Null])),
1362
+ subject: Schema.optionalKey(Schema.Union([
1363
+ Schema.Union([
1364
+ Schema.Literal("agent"),
1365
+ Schema.Literal("apiKey"),
1366
+ Schema.Literal("member"),
1367
+ Schema.Literal("extension")
1368
+ ]),
1369
+ PolicySubject,
1370
+ Schema.Null
1371
+ ]))
1372
+ }).annotate({ identifier: "PolicyRuleMatch" }))();
1255
1373
  const WorkingHours = /* @__PURE__ */ (() => Schema.Struct({
1256
1374
  timeZone: TimeZone,
1257
1375
  ranges: Schema.Array(WorkingHoursRange).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(28).annotate({ expected: "a value with a length of at most 28" }))
@@ -1475,18 +1593,17 @@ const OperationAccepted = /* @__PURE__ */ (() => Schema.Struct({
1475
1593
  resource: OperationResourceLink
1476
1594
  })
1477
1595
  }).annotate({ identifier: "OperationAccepted" }))();
1478
- const AgentDefinition = /* @__PURE__ */ (() => Schema.Struct({
1479
- instructions: Schema.String.check(Schema.isMaxCodePoints(2e4).annotate({ expected: "a string with at most 20000 code points" })).check(Schema.isMaxLength(2e4).annotate({ expected: "a value with a length of at most 20000" })),
1480
- knowledge: Schema.String.check(Schema.isMaxCodePoints(1e5).annotate({ expected: "a string with at most 100000 code points" })).check(Schema.isMaxLength(1e5).annotate({ expected: "a value with a length of at most 100000" })),
1481
- knowledgeSourceIds: Schema.optionalKey(Schema.Array(KnowledgeSourceId).check(Schema.isMaxLength(25).annotate({ expected: "a value with a length of at most 25" }))),
1482
- endpointIds: Schema.Array(MailboxEndpointId).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
1483
- integrations: Schema.Array(AgentIntegrationGrant).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
1484
- mode: AgentMode,
1485
- model: AgentModelChoice,
1486
- reasoning: AgentReasoning,
1487
- workingHours: Schema.Union([WorkingHours, Schema.Null]),
1488
- takeoverTimeoutMinutes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(10080).annotate({ expected: "a value less than or equal to 10080" }))
1489
- }).annotate({ identifier: "AgentDefinition" }))();
1596
+ const PolicyRule = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
1597
+ match: PolicyRuleMatch,
1598
+ note: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1599
+ decide: PolicyRequirement,
1600
+ atLeast: Schema.optionalKey(Schema.Union([Schema.Never, Schema.Null]))
1601
+ }), Schema.Struct({
1602
+ match: PolicyRuleMatch,
1603
+ note: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1604
+ decide: Schema.optionalKey(Schema.Union([Schema.Never, Schema.Null])),
1605
+ atLeast: PolicyRequirement
1606
+ })]).annotate({ identifier: "PolicyRule" }))();
1490
1607
  const CampaignEmailInput = /* @__PURE__ */ (() => Schema.Struct({
1491
1608
  subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1492
1609
  html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -1589,6 +1706,11 @@ var MailboxSendConflictError = class extends Schema.TaggedError()("MailboxSendCo
1589
1706
  id: MailboxActionId,
1590
1707
  receipt: MailboxSendReceipt
1591
1708
  })) {};
1709
+ const PolicyConfiguration = /* @__PURE__ */ (() => Schema.Struct({
1710
+ presets: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))),
1711
+ rules: Schema.Array(PolicyRule),
1712
+ instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
1713
+ }).annotate({ identifier: "PolicyConfiguration" }))();
1592
1714
  const EmailCampaignContentInput = /* @__PURE__ */ (() => Schema.Struct({
1593
1715
  channel: Schema.Literal("email"),
1594
1716
  email: CampaignEmailInput,
@@ -1642,6 +1764,18 @@ const JourneyCondition = /* @__PURE__ */ (() => Schema.Struct({
1642
1764
  match: Schema.Union([Schema.Literal("all"), Schema.Literal("any")]),
1643
1765
  predicates: Schema.TupleWithRest(Schema.Tuple([JourneyPredicate]), [JourneyPredicate])
1644
1766
  }).annotate({ identifier: "JourneyCondition" }))();
1767
+ const AgentDefinition = /* @__PURE__ */ (() => Schema.Struct({
1768
+ instructions: Schema.String.check(Schema.isMaxCodePoints(2e4).annotate({ expected: "a string with at most 20000 code points" })).check(Schema.isMaxLength(2e4).annotate({ expected: "a value with a length of at most 20000" })),
1769
+ knowledge: Schema.String.check(Schema.isMaxCodePoints(1e5).annotate({ expected: "a string with at most 100000 code points" })).check(Schema.isMaxLength(1e5).annotate({ expected: "a value with a length of at most 100000" })),
1770
+ knowledgeSourceIds: Schema.optionalKey(Schema.Array(KnowledgeSourceId).check(Schema.isMaxLength(25).annotate({ expected: "a value with a length of at most 25" }))),
1771
+ endpointIds: Schema.Array(MailboxEndpointId).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
1772
+ integrations: Schema.Array(AgentIntegrationGrant).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
1773
+ policy: PolicyConfiguration,
1774
+ model: AgentModelChoice,
1775
+ reasoning: AgentReasoning,
1776
+ workingHours: Schema.Union([WorkingHours, Schema.Null]),
1777
+ takeoverTimeoutMinutes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(10080).annotate({ expected: "a value less than or equal to 10080" }))
1778
+ }).annotate({ identifier: "AgentDefinition" }))();
1645
1779
  const WhatsAppInteractive = /* @__PURE__ */ (() => Schema.Union([
1646
1780
  WhatsAppButtonsMessage,
1647
1781
  WhatsAppListMessage,
@@ -1716,6 +1850,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
1716
1850
  in: "header"
1717
1851
  });
1718
1852
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
1719
- export { AgentDefinition, AgentIntegrationGrant, AgentMode, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentToolScope, AnalyticsQueryError, 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, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionVersionId, ExtensionVersionRef, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationId, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, 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, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SkippedRecipient, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, SuccessResponse, TemplateData, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, 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, SensitiveString as __SamvaRuntimeSensitiveString };
1853
+ export { AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentToolScope, AnalyticsQueryError, 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, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionInstallationId, ExtensionVersionId, ExtensionVersionRef, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationId, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, 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, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, PolicyConfiguration, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicyRule, PolicyRuleMatch, PolicySubject, PolicyVersion, RateLimitedError, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SkippedRecipient, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, SuccessResponse, TemplateData, TemplateFromDefault, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, 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, SensitiveString as __SamvaRuntimeSensitiveString };
1720
1854
 
1721
1855
  //# sourceMappingURL=shared.js.map