samva 0.30.0 → 0.32.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 (48) hide show
  1. package/dist/client/sdk.gen.d.ts +72 -5
  2. package/dist/client/sdk.gen.js +229 -4
  3. package/dist/client/types.gen.d.ts +592 -34
  4. package/dist/effect/conversations.d.ts +3 -0
  5. package/dist/effect/errors.d.ts +1 -1
  6. package/dist/effect/errors.js +2 -2
  7. package/dist/effect/generated/campaigns.d.ts +131 -57
  8. package/dist/effect/generated/campaigns.js +27 -9
  9. package/dist/effect/generated/contact-groups.js +2 -2
  10. package/dist/effect/generated/contacts.js +6 -6
  11. package/dist/effect/generated/conversations.d.ts +4 -1
  12. package/dist/effect/generated/conversations.js +3 -2
  13. package/dist/effect/generated/email.js +1 -1
  14. package/dist/effect/generated/mailboxes.d.ts +969 -16
  15. package/dist/effect/generated/mailboxes.js +263 -11
  16. package/dist/effect/generated/newsletter-issues.d.ts +199 -1
  17. package/dist/effect/generated/newsletter-issues.js +24 -2
  18. package/dist/effect/generated/newsletters.js +1 -1
  19. package/dist/effect/generated/organizations.d.ts +345 -2
  20. package/dist/effect/generated/organizations.js +65 -5
  21. package/dist/effect/generated/scheduled-messages.d.ts +25 -8
  22. package/dist/effect/generated/scheduled-messages.js +17 -9
  23. package/dist/effect/generated/shared.d.ts +90 -9
  24. package/dist/effect/generated/shared.js +14 -10
  25. package/dist/effect/generated/subscriptions.js +1 -1
  26. package/dist/effect/generated/templates.d.ts +307 -1
  27. package/dist/effect/generated/templates.js +36 -2
  28. package/dist/effect/generated/topics.js +2 -2
  29. package/dist/effect/generated/whoami.d.ts +5 -5
  30. package/dist/effect/generated/whoami.js +1 -0
  31. package/dist/effect/generated-metadata.d.ts +40 -0
  32. package/dist/effect/generated-metadata.js +10 -0
  33. package/dist/effect/index.js +2 -2
  34. package/dist/effect/internal/send.d.ts +1 -1
  35. package/dist/effect/mailboxes.d.ts +273 -0
  36. package/dist/effect/mailboxes.js +7 -1
  37. package/dist/effect/organizations.d.ts +6 -0
  38. package/dist/effect/organizations.js +7 -1
  39. package/dist/index.js +2 -2
  40. package/dist/package.js +1 -1
  41. package/dist/promises/client.js +2 -2
  42. package/dist/promises/errors.gen.d.ts +12 -2
  43. package/dist/promises/errors.gen.js +28 -1
  44. package/dist/promises/index.js +2 -2
  45. package/dist/promises/types.gen.d.ts +1 -1
  46. package/dist/service-map.d.ts +25 -0
  47. package/dist/service-map.js +9 -0
  48. package/package.json +8 -8
@@ -242,14 +242,6 @@ export type EmailCustomHeaders = {
242
242
  readonly [x: string]: string;
243
243
  };
244
244
  export declare const EmailCustomHeaders: Schema.$Record<Schema.String, Schema.String>;
245
- export type CampaignFrom = {
246
- readonly email: string;
247
- readonly name?: string | null;
248
- } | null;
249
- export declare const CampaignFrom: Schema.Union<readonly [Schema.Struct<{
250
- readonly email: Schema.String;
251
- readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
252
- }>, Schema.Null]>;
253
245
  export type ConversationId = string & EffectBrand.Brand<"ConversationId">;
254
246
  export declare const ConversationId: Schema.brand<Schema.String, "ConversationId">;
255
247
  export type CampaignContentMetadata = {
@@ -264,6 +256,14 @@ export type CampaignRunId = string & EffectBrand.Brand<"CampaignRunId">;
264
256
  export declare const CampaignRunId: Schema.brand<Schema.String, "CampaignRunId">;
265
257
  export type SendsSeries = ReadonlyArray<number>;
266
258
  export declare const SendsSeries: Schema.$Array<Schema.Finite>;
259
+ export type CampaignFromInput = {
260
+ readonly email: string;
261
+ readonly name?: string | null;
262
+ } | null;
263
+ export declare const CampaignFromInput: Schema.Union<readonly [Schema.Struct<{
264
+ readonly email: Schema.String;
265
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
266
+ }>, Schema.Null]>;
267
267
  declare const FlagDisabledError_base: Schema.Class<FlagDisabledError, Schema.Struct<{
268
268
  readonly _tag: Schema.tag<"FlagDisabledError">;
269
269
  readonly flag: Schema.String;
@@ -337,6 +337,13 @@ declare const SenderNotReadyError_base: Schema.Class<SenderNotReadyError, Schema
337
337
  }>, import("effect/Cause").YieldableError>;
338
338
  export declare class SenderNotReadyError extends SenderNotReadyError_base {
339
339
  }
340
+ declare const ServiceUnavailableError_base: Schema.Class<ServiceUnavailableError, Schema.Struct<{
341
+ readonly _tag: Schema.tag<"ServiceUnavailableError">;
342
+ readonly message: Schema.String;
343
+ readonly retryAfterSeconds: Schema.Finite;
344
+ }>, import("effect/Cause").YieldableError>;
345
+ export declare class ServiceUnavailableError extends ServiceUnavailableError_base {
346
+ }
340
347
  declare const OnboardingReviewRequiredError_base: Schema.Class<OnboardingReviewRequiredError, Schema.Struct<{
341
348
  readonly _tag: Schema.tag<"OnboardingReviewRequiredError">;
342
349
  readonly message: Schema.String;
@@ -1595,6 +1602,8 @@ export declare const UpdateMailboxPolicyPayload: Schema.Struct<{
1595
1602
  export type UpdateMailboxThreadPayload = {
1596
1603
  readonly folder?: MailboxThreadFolder | null;
1597
1604
  readonly priority?: MailboxThreadPriority | null;
1605
+ readonly done?: boolean | null;
1606
+ readonly closed?: boolean | null;
1598
1607
  readonly read?: boolean | null;
1599
1608
  readonly starred?: boolean | null;
1600
1609
  readonly snoozedUntil?: string | null;
@@ -1602,6 +1611,8 @@ export type UpdateMailboxThreadPayload = {
1602
1611
  export declare const UpdateMailboxThreadPayload: Schema.Struct<{
1603
1612
  readonly folder: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>, Schema.Null]>>;
1604
1613
  readonly priority: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"normal">, Schema.Literal<"high">, Schema.Literal<"urgent">]>, Schema.Null]>>;
1614
+ readonly done: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
1615
+ readonly closed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
1605
1616
  readonly read: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
1606
1617
  readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
1607
1618
  readonly snoozedUntil: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -2822,7 +2833,7 @@ export type CampaignContentInput = {
2822
2833
  readonly path: string;
2823
2834
  readonly commit: string;
2824
2835
  } | null;
2825
- readonly from?: CampaignFrom;
2836
+ readonly from?: CampaignFromInput;
2826
2837
  readonly replyMailboxId?: CampaignReplyMailbox;
2827
2838
  readonly conversationId?: CampaignConversationRef;
2828
2839
  readonly metadata?: CampaignContentMetadata;
@@ -2942,6 +2953,76 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
2942
2953
  readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
2943
2954
  }>;
2944
2955
  }>;
2956
+ export type SendMessagePayload = {
2957
+ readonly conversationId?: ConversationId | null;
2958
+ readonly metadata?: MessageMetadata;
2959
+ readonly channel: "email";
2960
+ readonly to: EmailRecipients;
2961
+ readonly cc?: EmailCcRecipients;
2962
+ readonly bcc?: EmailBccRecipients;
2963
+ readonly from?: EmailSender;
2964
+ readonly email: EmailContent;
2965
+ };
2966
+ export declare const SendMessagePayload: Schema.Struct<{
2967
+ readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
2968
+ readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
2969
+ readonly channel: Schema.Literal<"email">;
2970
+ readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2971
+ readonly contactId: Schema.brand<Schema.String, "ContactId">;
2972
+ }>, Schema.Struct<{
2973
+ readonly email: Schema.String;
2974
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2975
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2976
+ }>]>>;
2977
+ readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2978
+ readonly contactId: Schema.brand<Schema.String, "ContactId">;
2979
+ }>, Schema.Struct<{
2980
+ readonly email: Schema.String;
2981
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2982
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2983
+ }>]>>, Schema.Null]>>;
2984
+ readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2985
+ readonly contactId: Schema.brand<Schema.String, "ContactId">;
2986
+ }>, Schema.Struct<{
2987
+ readonly email: Schema.String;
2988
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2989
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2990
+ }>]>>, Schema.Null]>>;
2991
+ readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2992
+ readonly email: Schema.String;
2993
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2994
+ }>, Schema.Null]>>;
2995
+ readonly email: Schema.Struct<{
2996
+ readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2997
+ readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2998
+ readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2999
+ readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
3000
+ readonly filename: Schema.String;
3001
+ readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3002
+ readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
3003
+ readonly contentType: Schema.String;
3004
+ readonly size: Schema.Finite;
3005
+ }>>, Schema.Null]>>;
3006
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
3007
+ readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
3008
+ readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
3009
+ readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3010
+ readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
3011
+ readonly locale: Schema.optionalKey<Schema.String>;
3012
+ readonly timeZone: Schema.optionalKey<Schema.String>;
3013
+ readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
3014
+ readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
3015
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
3016
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
3017
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
3018
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
3019
+ }>>;
3020
+ readonly footer: Schema.optionalKey<Schema.Struct<{
3021
+ readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
3022
+ }>>;
3023
+ readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
3024
+ }>;
3025
+ }>;
2945
3026
  export type JourneyCondition = {
2946
3027
  readonly match: "all" | "any";
2947
3028
  readonly predicates: readonly [JourneyPredicate, ...Array<JourneyPredicate>];
@@ -181,10 +181,6 @@ const EmailCustomHeaders = /* @__PURE__ */ (() => Schema.Record(Schema.String, S
181
181
  expected: "a value with at most 11 entries",
182
182
  identifier: "EmailCustomHeaders"
183
183
  })))();
184
- const CampaignFrom = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
185
- email: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
186
- name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
187
- }), Schema.Null]).annotate({ identifier: "CampaignFrom" }))();
188
184
  const ConversationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^conv_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
189
185
  expected: "a string matching the RegExp ^conv_[0-9a-hjkmnp-tv-z]{16,24}$",
190
186
  identifier: "ConversationId"
@@ -206,6 +202,10 @@ const SendsSeries = /* @__PURE__ */ (() => Schema.Array(Schema.Finite.check(Sche
206
202
  description: "Daily email sends for the last 14 calendar days in the organization's own timezone, oldest first and zero-filled. Always fourteen entries; an entity that has never sent reports fourteen zeroes.",
207
203
  identifier: "SendsSeries"
208
204
  }))();
205
+ const CampaignFromInput = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
206
+ email: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
207
+ name: 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]))
208
+ }), Schema.Null]).annotate({ identifier: "CampaignFromInput" }))();
209
209
  var FlagDisabledError = class extends Schema.TaggedError()("FlagDisabledError", Schema.Struct({
210
210
  flag: Schema.String,
211
211
  message: Schema.String
@@ -265,6 +265,10 @@ var SenderNotReadyError = class extends Schema.TaggedError()("SenderNotReadyErro
265
265
  sender: Schema.String,
266
266
  retryAfterSeconds: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
267
267
  })) {};
268
+ var ServiceUnavailableError = class extends Schema.TaggedError()("ServiceUnavailableError", Schema.Struct({
269
+ message: Schema.String,
270
+ retryAfterSeconds: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
271
+ })) {};
268
272
  var OnboardingReviewRequiredError = class extends Schema.TaggedError()("OnboardingReviewRequiredError", Schema.Struct({
269
273
  message: Schema.String,
270
274
  code: Schema.Union([
@@ -528,7 +532,7 @@ const MailboxThreadPriority = /* @__PURE__ */ (() => Schema.Union([
528
532
  const MessageMetadata = /* @__PURE__ */ (() => Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]).annotate({ identifier: "MessageMetadata" }))();
529
533
  const EmailSender = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
530
534
  email: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
531
- name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
535
+ name: 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]))
532
536
  }), Schema.Null]).annotate({ identifier: "EmailSender" }))();
533
537
  const IanaTimezone = /* @__PURE__ */ (() => Schema.String.annotate({ identifier: "IanaTimezone" }))();
534
538
  const NamespaceMetadata = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.String).annotate({
@@ -774,8 +778,8 @@ const ContactEventReference = /* @__PURE__ */ (() => Schema.Union([
774
778
  ]).annotate({ identifier: "ContactEventReference" }))();
775
779
  const EmailRecipient = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({ contactId: ContactId }), Schema.Struct({
776
780
  email: Schema.String,
777
- name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
778
- displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
781
+ name: 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])),
782
+ 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]))
779
783
  })]).annotate({ identifier: "EmailRecipient" }))();
780
784
  const TopicContactById = /* @__PURE__ */ (() => Schema.Struct({ contactId: ContactId }).annotate({ identifier: "TopicContactById" }))();
781
785
  const CampaignAudience = /* @__PURE__ */ (() => Schema.Struct({
@@ -894,7 +898,7 @@ const JourneyComparison = /* @__PURE__ */ (() => Schema.Union([
894
898
  const CreateMailboxEndpointPayload = /* @__PURE__ */ (() => Schema.Struct({
895
899
  channel: MailboxChannel,
896
900
  address: Schema.String,
897
- displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
901
+ 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]))
898
902
  }).annotate({ identifier: "CreateMailboxEndpointPayload" }))();
899
903
  const MailboxActionDecision = /* @__PURE__ */ (() => Schema.Struct({
900
904
  outcome: Schema.Union([
@@ -1214,7 +1218,7 @@ const CampaignContentInput = /* @__PURE__ */ (() => Schema.Struct({
1214
1218
  path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
1215
1219
  commit: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
1216
1220
  }), Schema.Null]).annotate({ description: "Render a saved Markdown issue from the audience topic's repository. Its saved title and preheader supply the email content; templateData supplies recipient fallbacks." })),
1217
- from: Schema.optionalKey(CampaignFrom),
1221
+ from: Schema.optionalKey(CampaignFromInput),
1218
1222
  replyMailboxId: Schema.optionalKey(CampaignReplyMailbox),
1219
1223
  conversationId: Schema.optionalKey(CampaignConversationRef),
1220
1224
  metadata: Schema.optionalKey(CampaignContentMetadata)
@@ -1261,6 +1265,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
1261
1265
  in: "header"
1262
1266
  });
1263
1267
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
1264
- export { AgentDefinition, AgentIntegrationGrant, AgentMode, AgentModel, AgentName, AgentToolScope, AnalyticsQueryError, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFrom, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, Cursor, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, 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, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, NamespaceId, NamespaceMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SenderNotReadyError, SendsSeries, SkippedRecipient, SuccessResponse, TemplateData, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, VersionCursor, WebhookEndpointId, Weekday, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString };
1268
+ export { AgentDefinition, AgentIntegrationGrant, AgentMode, AgentModel, AgentName, 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, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, Cursor, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, 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, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, NamespaceId, NamespaceMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SkippedRecipient, SuccessResponse, TemplateData, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, VersionCursor, WebhookEndpointId, Weekday, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString };
1265
1269
 
1266
1270
  //# sourceMappingURL=shared.js.map
@@ -11,7 +11,7 @@ const SubscriptionsSubscribeRequestJson = /* @__PURE__ */ (() => Schema.Struct({
11
11
  topicId: TopicId,
12
12
  from: Schema.Struct({
13
13
  email: Schema.String,
14
- name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
14
+ name: 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]))
15
15
  }).annotate({ description: "Your verified email sender. The ordinary send pipeline selects its domain and customer brand." }),
16
16
  templateSlug: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "A published email template slug receiving confirmUrl. Omit it to send the default confirmation email." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
17
17
  consentIp: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The recipient IP recorded by your server when they requested subscription." }).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),