samva 0.43.3 → 0.45.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 (103) hide show
  1. package/AGENTS.md +3 -0
  2. package/README.md +4 -0
  3. package/dist/client/sdk.gen.d.ts +308 -2
  4. package/dist/client/sdk.gen.js +937 -2
  5. package/dist/client/types.gen.d.ts +2294 -54
  6. package/dist/effect/agents.d.ts +86 -86
  7. package/dist/effect/agents.js +2 -2
  8. package/dist/effect/api-keys.d.ts +36 -36
  9. package/dist/effect/api-keys.js +2 -2
  10. package/dist/effect/attachments.d.ts +3 -3
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/campaigns.d.ts +250 -250
  13. package/dist/effect/campaigns.js +3 -3
  14. package/dist/effect/categories.d.ts +23 -5
  15. package/dist/effect/categories.js +11 -20
  16. package/dist/effect/contact-groups.d.ts +44 -44
  17. package/dist/effect/contact-groups.js +3 -3
  18. package/dist/effect/contacts.d.ts +3 -3
  19. package/dist/effect/contacts.js +1 -1
  20. package/dist/effect/conversations.d.ts +53 -53
  21. package/dist/effect/conversations.js +1 -1
  22. package/dist/effect/email.d.ts +99 -97
  23. package/dist/effect/email.js +21 -21
  24. package/dist/effect/errors.d.ts +1 -1
  25. package/dist/effect/errors.js +2 -2
  26. package/dist/effect/extension-installations.d.ts +6 -6
  27. package/dist/effect/extension-installations.js +1 -1
  28. package/dist/effect/generated/campaigns.js +2 -2
  29. package/dist/effect/generated/email.d.ts +7 -0
  30. package/dist/effect/generated/email.js +8 -9
  31. package/dist/effect/generated/index.d.ts +9 -1
  32. package/dist/effect/generated/journeys.d.ts +1 -3
  33. package/dist/effect/generated/journeys.js +2 -6
  34. package/dist/effect/generated/mailboxes.d.ts +14 -14
  35. package/dist/effect/generated/mailboxes.js +2 -0
  36. package/dist/effect/generated/messages.d.ts +1 -5
  37. package/dist/effect/generated/messages.js +2 -10
  38. package/dist/effect/generated/newsletter-issues.js +29 -29
  39. package/dist/effect/generated/organizations.js +2 -2
  40. package/dist/effect/generated/scheduled-messages.js +3 -3
  41. package/dist/effect/generated/shared.d.ts +112 -2
  42. package/dist/effect/generated/shared.js +66 -25
  43. package/dist/effect/generated/subscriptions.js +4 -4
  44. package/dist/effect/generated/template-registrations.d.ts +651 -0
  45. package/dist/effect/generated/template-registrations.js +138 -0
  46. package/dist/effect/generated/templates.d.ts +789 -6
  47. package/dist/effect/generated/templates.js +156 -54
  48. package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
  49. package/dist/effect/generated/whats-app-flows.js +338 -0
  50. package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
  51. package/dist/effect/generated/whats-app-setup-links.js +150 -0
  52. package/dist/effect/generated/whats-app.d.ts +2089 -0
  53. package/dist/effect/generated/whats-app.js +633 -0
  54. package/dist/effect/generated-metadata.d.ts +257 -0
  55. package/dist/effect/generated-metadata.js +223 -48
  56. package/dist/effect/index.d.ts +4 -0
  57. package/dist/effect/index.js +6 -2
  58. package/dist/effect/mailboxes.d.ts +301 -301
  59. package/dist/effect/mailboxes.js +3 -3
  60. package/dist/effect/media.d.ts +4 -4
  61. package/dist/effect/media.js +2 -2
  62. package/dist/effect/messages.d.ts +17 -17
  63. package/dist/effect/messages.js +4 -4
  64. package/dist/effect/namespaces.d.ts +5 -5
  65. package/dist/effect/namespaces.js +1 -1
  66. package/dist/effect/newsletter-issues.d.ts +8 -8
  67. package/dist/effect/newsletter-issues.js +2 -2
  68. package/dist/effect/newsletters.d.ts +3 -3
  69. package/dist/effect/newsletters.js +1 -1
  70. package/dist/effect/organizations.d.ts +10 -10
  71. package/dist/effect/organizations.js +1 -1
  72. package/dist/effect/runtime.d.ts +2 -0
  73. package/dist/effect/runtime.js +2 -1
  74. package/dist/effect/scheduled-messages.d.ts +839 -839
  75. package/dist/effect/scheduled-messages.js +1 -1
  76. package/dist/effect/template-registrations.d.ts +12 -0
  77. package/dist/effect/template-registrations.js +16 -0
  78. package/dist/effect/templates.d.ts +66 -56
  79. package/dist/effect/templates.js +16 -12
  80. package/dist/effect/topic-forms.d.ts +4 -4
  81. package/dist/effect/topic-forms.js +1 -1
  82. package/dist/effect/topics.d.ts +11 -11
  83. package/dist/effect/topics.js +2 -2
  84. package/dist/effect/webhooks.d.ts +18 -18
  85. package/dist/effect/webhooks.js +3 -3
  86. package/dist/effect/whatsapp-flows.d.ts +34 -0
  87. package/dist/effect/whatsapp-flows.js +30 -0
  88. package/dist/effect/whatsapp-setup-links.d.ts +66 -0
  89. package/dist/effect/whatsapp-setup-links.js +18 -0
  90. package/dist/effect/whatsapp.d.ts +51 -0
  91. package/dist/effect/whatsapp.js +34 -0
  92. package/dist/index.js +2 -2
  93. package/dist/mailbox/types.d.ts +2 -1
  94. package/dist/package.js +1 -1
  95. package/dist/promises/client.d.ts +9 -1
  96. package/dist/promises/client.js +11 -3
  97. package/dist/promises/errors.gen.d.ts +38 -2
  98. package/dist/promises/errors.gen.js +160 -3
  99. package/dist/promises/index.js +2 -2
  100. package/dist/promises/types.gen.d.ts +1 -1
  101. package/dist/service-map.d.ts +923 -734
  102. package/dist/service-map.js +288 -233
  103. package/package.json +27 -11
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiMiddleware, HttpApiSecurity } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString } from "../runtime";
4
+ import { AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString } from "../runtime";
5
5
  export type JsonValue = string | number | boolean | null | ReadonlyArray<JsonValue> | {
6
6
  readonly [x: string]: JsonValue;
7
7
  };
@@ -435,6 +435,8 @@ export declare const FeedbackContext: Schema.Struct<{
435
435
  readonly operation: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
436
436
  readonly resourceId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
437
437
  }>;
438
+ export type JourneyId = string & EffectBrand.Brand<"JourneyId">;
439
+ export declare const JourneyId: Schema.brand<Schema.String, "JourneyId">;
438
440
  export type JourneyName = string;
439
441
  export declare const JourneyName: Schema.String;
440
442
  export type JourneyCustomEventName = string;
@@ -831,6 +833,10 @@ export declare const WhatsAppContactCard: Schema.Struct<{
831
833
  }>>>;
832
834
  readonly birthday: Schema.optionalKey<Schema.String>;
833
835
  }>;
836
+ export type WhatsAppFlowVersionId = string & EffectBrand.Brand<"WhatsAppFlowVersionId">;
837
+ export declare const WhatsAppFlowVersionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
838
+ export type MessageDeliveryId = string & EffectBrand.Brand<"MessageDeliveryId">;
839
+ export declare const MessageDeliveryId: Schema.brand<Schema.String, "MessageDeliveryId">;
834
840
  export type IanaTimezone = string;
835
841
  export declare const IanaTimezone: Schema.String;
836
842
  export type NamespaceMetadata = {
@@ -885,6 +891,23 @@ export declare const TemplateFromDefaultInput: Schema.Struct<{
885
891
  readonly email: Schema.String;
886
892
  readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
887
893
  }>;
894
+ declare const CredentialsError_base: Schema.Class<CredentialsError, Schema.Struct<{
895
+ readonly _tag: Schema.tag<"CredentialsError">;
896
+ readonly message: Schema.String;
897
+ readonly retryable: Schema.Boolean;
898
+ }>, import("effect/Cause").YieldableError>;
899
+ export declare class CredentialsError extends CredentialsError_base {
900
+ }
901
+ declare const WhatsAppChannelError_base: Schema.Class<WhatsAppChannelError, Schema.Struct<{
902
+ readonly _tag: Schema.tag<"WhatsAppChannelError">;
903
+ readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">, Schema.Literal<"unsupported">]>;
904
+ readonly message: Schema.String;
905
+ readonly provider: Schema.String;
906
+ readonly providerCode: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
907
+ readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
908
+ }>, import("effect/Cause").YieldableError>;
909
+ export declare class WhatsAppChannelError extends WhatsAppChannelError_base {
910
+ }
888
911
  export type TopicContactByEmail = {
889
912
  readonly email: string;
890
913
  };
@@ -897,6 +920,17 @@ export type TopicContactByPhone = {
897
920
  export declare const TopicContactByPhone: Schema.Struct<{
898
921
  readonly phone: Schema.String;
899
922
  }>;
923
+ export type WhatsAppSetupLinkMetadata = {
924
+ readonly [x: string]: string;
925
+ };
926
+ export declare const WhatsAppSetupLinkMetadata: Schema.$Record<Schema.String, Schema.String>;
927
+ declare const WhatsAppSetupLinkUnavailableError_base: Schema.Class<WhatsAppSetupLinkUnavailableError, Schema.Struct<{
928
+ readonly _tag: Schema.tag<"WhatsAppSetupLinkUnavailableError">;
929
+ readonly reason: Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"revoked">, Schema.Literal<"expired">]>;
930
+ readonly message: Schema.String;
931
+ }>, import("effect/Cause").YieldableError>;
932
+ export declare class WhatsAppSetupLinkUnavailableError extends WhatsAppSetupLinkUnavailableError_base {
933
+ }
900
934
  export type AddTemplateEntryPayload = {
901
935
  readonly entryPath: string;
902
936
  readonly name: string;
@@ -1098,6 +1132,26 @@ export type ReapplyOnboardingReviewInput = {
1098
1132
  export declare const ReapplyOnboardingReviewInput: Schema.Struct<{
1099
1133
  readonly expectedGeneration: Schema.Finite;
1100
1134
  }>;
1135
+ export type RecordWhatsAppFlowVersionPayload = {
1136
+ readonly commitSha: string;
1137
+ readonly expectedWorkspaceRevision: string;
1138
+ };
1139
+ export declare const RecordWhatsAppFlowVersionPayload: Schema.Struct<{
1140
+ readonly commitSha: Schema.String;
1141
+ readonly expectedWorkspaceRevision: Schema.String;
1142
+ }>;
1143
+ export type SetWhatsAppFlowEndpointPayload = {
1144
+ readonly url: string;
1145
+ };
1146
+ export declare const SetWhatsAppFlowEndpointPayload: Schema.Struct<{
1147
+ readonly url: Schema.String;
1148
+ }>;
1149
+ export type SuggestTemplateStartersPayload = {
1150
+ readonly brief: string;
1151
+ };
1152
+ export declare const SuggestTemplateStartersPayload: Schema.Struct<{
1153
+ readonly brief: Schema.String;
1154
+ }>;
1101
1155
  export type TemplateFamilyName = {
1102
1156
  readonly name: string;
1103
1157
  };
@@ -1190,6 +1244,20 @@ export declare const UpdateNamespacePayload: Schema.Struct<{
1190
1244
  readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1191
1245
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>, Schema.Null]>>;
1192
1246
  }>;
1247
+ export type CreateTemplateFromBriefPayload = {
1248
+ readonly brief: string;
1249
+ readonly name?: string | null;
1250
+ readonly galleryTemplateId?: string | null;
1251
+ readonly useBrand?: boolean | null;
1252
+ readonly namespaceId?: NamespaceId | null;
1253
+ };
1254
+ export declare const CreateTemplateFromBriefPayload: Schema.Struct<{
1255
+ readonly brief: Schema.String;
1256
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1257
+ readonly galleryTemplateId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1258
+ readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
1259
+ readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
1260
+ }>;
1193
1261
  export type CreateTemplateFromWebsitePayload = {
1194
1262
  readonly url: string;
1195
1263
  readonly name?: string | null;
@@ -1608,6 +1676,26 @@ export declare const WhatsAppTemplateBinding: Schema.Union<readonly [Schema.Stru
1608
1676
  }>, Schema.Struct<{
1609
1677
  readonly customField: Schema.String;
1610
1678
  }>]>;
1679
+ export type RegisterWhatsAppFlowPayload = {
1680
+ readonly businessAccountId?: WhatsAppBusinessAccountId;
1681
+ };
1682
+ export declare const RegisterWhatsAppFlowPayload: Schema.Struct<{
1683
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1684
+ }>;
1685
+ export type RotateWhatsAppFlowEncryptionKeyPayload = {
1686
+ readonly businessAccountId?: WhatsAppBusinessAccountId;
1687
+ };
1688
+ export declare const RotateWhatsAppFlowEncryptionKeyPayload: Schema.Struct<{
1689
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1690
+ }>;
1691
+ export type SubmitTemplateRegistrationPayload = {
1692
+ readonly provider: "whatsapp";
1693
+ readonly businessAccountId?: WhatsAppBusinessAccountId;
1694
+ };
1695
+ export declare const SubmitTemplateRegistrationPayload: Schema.Struct<{
1696
+ readonly provider: Schema.Literal<"whatsapp">;
1697
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1698
+ }>;
1611
1699
  export type ContactEvent = {
1612
1700
  readonly id: string;
1613
1701
  readonly contactId: ContactId;
@@ -2241,6 +2329,16 @@ export declare const AssignNamespaceResourcePayload: Schema.Struct<{
2241
2329
  readonly type: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"whatsappNumber">, Schema.Literal<"smsNumber">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
2242
2330
  readonly resourceId: Schema.String;
2243
2331
  }>;
2332
+ export type CreateWhatsAppFlowPayload = {
2333
+ readonly projectId: TemplateProjectId;
2334
+ readonly handle: string;
2335
+ readonly categories: ReadonlyArray<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
2336
+ };
2337
+ export declare const CreateWhatsAppFlowPayload: Schema.Struct<{
2338
+ readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
2339
+ readonly handle: Schema.String;
2340
+ readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
2341
+ }>;
2244
2342
  export type Operation = {
2245
2343
  readonly id: OperationId;
2246
2344
  readonly organizationId: string;
@@ -2327,6 +2425,18 @@ export declare const UpdateTemplatePayload: Schema.Struct<{
2327
2425
  readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
2328
2426
  }>;
2329
2427
  }>;
2428
+ export type CreateWhatsAppSetupLinkPayload = {
2429
+ readonly namespaceId: NamespaceId;
2430
+ readonly redirectUrl?: WhatsAppSetupLinkRedirectUrl | null;
2431
+ readonly metadata?: WhatsAppSetupLinkMetadata | null;
2432
+ readonly expiresAt?: string | null;
2433
+ };
2434
+ export declare const CreateWhatsAppSetupLinkPayload: Schema.Struct<{
2435
+ readonly namespaceId: Schema.brand<Schema.String, "NamespaceId">;
2436
+ readonly redirectUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2437
+ readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
2438
+ readonly expiresAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2439
+ }>;
2330
2440
  export type PolicyRuleMatch = {
2331
2441
  readonly kind?: "send" | "reply" | "toolCall" | "handoff" | null;
2332
2442
  readonly effect?: PolicyEffect | null;
@@ -6705,7 +6815,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
6705
6815
  readonly reentry: Schema.optionalKey<Schema.Boolean>;
6706
6816
  }>;
6707
6817
  }>;
6708
- export { __SamvaRuntimeAbsoluteInstant, __SamvaRuntimeSensitiveString };
6818
+ export { __SamvaRuntimeAbsoluteInstant, __SamvaRuntimeSensitiveString, __SamvaRuntimeNonEmptySensitiveString, };
6709
6819
  export declare const ApiKeySecurity: HttpApiSecurity.ApiKey;
6710
6820
  declare const ApiKeySecurityMiddleware_base: HttpApiMiddleware.ServiceClass<ApiKeySecurityMiddleware, "apiKey security", {
6711
6821
  requires: never;
@@ -1,4 +1,4 @@
1
- import { AbsoluteInstant, SensitiveString } from "../runtime.js";
1
+ import { AbsoluteInstant, NonEmptySensitiveString, SensitiveString } from "../runtime.js";
2
2
  import { HttpApiMiddleware, HttpApiSecurity } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/shared.ts
@@ -266,10 +266,10 @@ const SendsSeries = /* @__PURE__ */ (() => Schema.Array(Schema.Finite.check(Sche
266
266
  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.",
267
267
  identifier: "SendsSeries"
268
268
  }))();
269
- const ReplyToAddresses = /* @__PURE__ */ (() => Schema.Union([Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" }))), Schema.Null]).annotate({ identifier: "ReplyToAddresses" }))();
269
+ const ReplyToAddresses = /* @__PURE__ */ (() => Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({ identifier: "ReplyToAddresses" }))();
270
270
  const CampaignFromInput = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
271
- email: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" })),
272
- name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[^\\p{Cc}]*$", "u")).annotate({ expected: "a string matching the RegExp ^[^\\p{Cc}]*$" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
271
+ email: Schema.String,
272
+ 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]))
273
273
  }), Schema.Null]).annotate({ identifier: "CampaignFromInput" }))();
274
274
  var FlagDisabledError = class extends Schema.TaggedError()("FlagDisabledError", Schema.Struct({
275
275
  flag: Schema.String,
@@ -408,6 +408,10 @@ const FeedbackContext = /* @__PURE__ */ (() => Schema.Struct({
408
408
  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])),
409
409
  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]))
410
410
  }).annotate({ identifier: "FeedbackContext" }))();
411
+ const JourneyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
412
+ expected: "a string matching the RegExp ^jrny_[0-9a-hjkmnp-tv-z]{16,24}$",
413
+ identifier: "JourneyId"
414
+ })).pipe(Schema.brand("JourneyId")))();
411
415
  const JourneyName = /* @__PURE__ */ (() => 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.isPattern(new globalThis.RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({
412
416
  expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$",
413
417
  identifier: "JourneyName"
@@ -609,8 +613,8 @@ const MailboxThreadPriority = /* @__PURE__ */ (() => Schema.Union([
609
613
  ]).annotate({ identifier: "MailboxThreadPriority" }))();
610
614
  const MessageMetadata = /* @__PURE__ */ (() => Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]).annotate({ identifier: "MessageMetadata" }))();
611
615
  const EmailSender = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
612
- email: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" })),
613
- name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[^\\p{Cc}]*$", "u")).annotate({ expected: "a string matching the RegExp ^[^\\p{Cc}]*$" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
616
+ email: Schema.String,
617
+ 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]))
614
618
  }), Schema.Null]).annotate({ identifier: "EmailSender" }))();
615
619
  const WhatsAppTextContent = /* @__PURE__ */ (() => Schema.Struct({ text: 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" })) }).annotate({ identifier: "WhatsAppTextContent" }))();
616
620
  const WhatsAppTemplateData = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({ identifier: "WhatsAppTemplateData" }))();
@@ -712,6 +716,14 @@ const WhatsAppContactCard = /* @__PURE__ */ (() => Schema.Struct({
712
716
  }))),
713
717
  birthday: Schema.optionalKey(Schema.String)
714
718
  }).annotate({ identifier: "WhatsAppContactCard" }))();
719
+ const WhatsAppFlowVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
720
+ expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$",
721
+ identifier: "WhatsAppFlowVersionId"
722
+ })).pipe(Schema.brand("WhatsAppFlowVersionId")))();
723
+ const MessageDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
724
+ expected: "a string matching the RegExp ^mdel_[0-9a-hjkmnp-tv-z]{16,24}$",
725
+ identifier: "MessageDeliveryId"
726
+ })).pipe(Schema.brand("MessageDeliveryId")))();
715
727
  const IanaTimezone = /* @__PURE__ */ (() => Schema.String.annotate({ identifier: "IanaTimezone" }))();
716
728
  const NamespaceMetadata = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.String).annotate({
717
729
  description: "Your own labels for the namespace, such as the id of your customer it serves. Samva stores them and never reads them.",
@@ -761,16 +773,45 @@ var TemplateInUseError = class extends Schema.TaggedError()("TemplateInUseError"
761
773
  }))
762
774
  })) {};
763
775
  const TemplateFromDefaultInput = /* @__PURE__ */ (() => Schema.Struct({
764
- email: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" })),
765
- name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[^\\p{Cc}]*$", "u")).annotate({ expected: "a string matching the RegExp ^[^\\p{Cc}]*$" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
776
+ email: Schema.String,
777
+ 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]))
766
778
  }).annotate({ identifier: "TemplateFromDefaultInput" }))();
779
+ var CredentialsError = class extends Schema.TaggedError()("CredentialsError", Schema.Struct({
780
+ message: Schema.String,
781
+ retryable: Schema.Boolean
782
+ })) {};
783
+ var WhatsAppChannelError = class extends Schema.TaggedError()("WhatsAppChannelError", Schema.Struct({
784
+ reason: Schema.Union([
785
+ Schema.Literal("transport"),
786
+ Schema.Literal("rejected"),
787
+ Schema.Literal("rate_limited"),
788
+ Schema.Literal("auth"),
789
+ Schema.Literal("unsupported")
790
+ ]),
791
+ message: Schema.String,
792
+ provider: Schema.String,
793
+ providerCode: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
794
+ statusCode: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
795
+ })) {};
767
796
  const TopicContactByEmail = /* @__PURE__ */ (() => Schema.Struct({ email: Schema.String }).annotate({ identifier: "TopicContactByEmail" }))();
768
797
  const TopicContactByPhone = /* @__PURE__ */ (() => Schema.Struct({ phone: Schema.String }).annotate({ identifier: "TopicContactByPhone" }))();
798
+ const WhatsAppSetupLinkMetadata = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.String.check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" }))).annotate({
799
+ expected: "an object with property names matching the schema",
800
+ identifier: "WhatsAppSetupLinkMetadata"
801
+ })))();
802
+ var WhatsAppSetupLinkUnavailableError = class extends Schema.TaggedError()("WhatsAppSetupLinkUnavailableError", Schema.Struct({
803
+ reason: Schema.Union([
804
+ Schema.Literal("completed"),
805
+ Schema.Literal("revoked"),
806
+ Schema.Literal("expired")
807
+ ]),
808
+ message: Schema.String
809
+ })) {};
769
810
  const TestWebhookPayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])) }).annotate({ identifier: "TestWebhookPayload" }))();
770
811
  const CreateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({
771
812
  name: 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" })),
772
813
  projectName: Schema.optionalKey(Schema.Union([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" })), Schema.Null])),
773
- slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.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])),
814
+ slug: Schema.optionalKey(Schema.Union([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]+)*$" })), Schema.Null])),
774
815
  galleryTemplateId: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).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])),
775
816
  useBrand: Schema.optionalKey(Schema.Union([Schema.Boolean.annotate({ description: "With `galleryTemplateId`: whether the new project's `theme.css` imports the organization's default brand (`@import \"samva:brand\";`) over the starter's look. Defaults to false." }), Schema.Null])),
776
817
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -1060,13 +1101,13 @@ const ContactEventReference = /* @__PURE__ */ (() => Schema.Union([
1060
1101
  email: Schema.optionalKey(Schema.Never)
1061
1102
  }),
1062
1103
  Schema.Struct({
1063
- email: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" })),
1104
+ email: Schema.String,
1064
1105
  id: Schema.optionalKey(Schema.Never),
1065
1106
  externalId: Schema.optionalKey(Schema.Never)
1066
1107
  })
1067
1108
  ]).annotate({ identifier: "ContactEventReference" }))();
1068
1109
  const EmailRecipient = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({ contactId: ContactId }), Schema.Struct({
1069
- email: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" })),
1110
+ email: Schema.String,
1070
1111
  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])),
1071
1112
  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]))
1072
1113
  })]).annotate({ identifier: "EmailRecipient" }))();
@@ -1155,7 +1196,7 @@ const MessageSummary = /* @__PURE__ */ (() => Schema.Struct({
1155
1196
  createdAt: Schema.String
1156
1197
  }).annotate({ identifier: "MessageSummary" }))();
1157
1198
  const JourneySendEmailConfig = /* @__PURE__ */ (() => Schema.Struct({
1158
- template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.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]+)*$" }))]),
1199
+ 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]+)*$" }))]),
1159
1200
  senderId: Schema.optionalKey(EmailSenderId),
1160
1201
  templateData: Schema.optionalKey(JsonObject)
1161
1202
  }).annotate({ identifier: "JourneySendEmailConfig" }))();
@@ -1271,7 +1312,7 @@ const WhatsAppTemplateIdContent = /* @__PURE__ */ (() => Schema.Struct({
1271
1312
  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" })))
1272
1313
  }).annotate({ identifier: "WhatsAppTemplateIdContent" }))();
1273
1314
  const WhatsAppTemplateSlugContent = /* @__PURE__ */ (() => Schema.Struct({
1274
- templateSlug: Schema.String.check(Schema.isPattern(new globalThis.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]+)*$" })),
1315
+ templateSlug: 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]+)*$" })),
1275
1316
  templateData: Schema.optionalKey(WhatsAppTemplateData),
1276
1317
  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" })))
1277
1318
  }).annotate({ identifier: "WhatsAppTemplateSlugContent" }))();
@@ -1343,8 +1384,8 @@ const OperationResourceLink = /* @__PURE__ */ (() => Schema.Struct({
1343
1384
  }).annotate({ identifier: "OperationResourceLink" }))();
1344
1385
  const UpdateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.Struct({
1345
1386
  name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1346
- slug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.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])),
1347
- entryPath: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.Null])),
1387
+ slug: Schema.optionalKey(Schema.Union([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]+)*$" })), Schema.Null])),
1388
+ entryPath: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments." }).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" })), Schema.Null])),
1348
1389
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1349
1390
  category: Schema.optionalKey(Schema.Union([Schema.Union([
1350
1391
  Schema.Literal("transactional"),
@@ -1356,7 +1397,7 @@ const UpdateTemplatePayload = /* @__PURE__ */ (() => Schema.Struct({ data: Schem
1356
1397
  Schema.Literal("alert")
1357
1398
  ]), Schema.Null])),
1358
1399
  fromDefault: Schema.optionalKey(Schema.Union([TemplateFromDefaultInput, Schema.Null])),
1359
- replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" }))), Schema.Null])),
1400
+ replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1360
1401
  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." })),
1361
1402
  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." }))
1362
1403
  }) }).annotate({ identifier: "UpdateTemplatePayload" }))();
@@ -1457,13 +1498,13 @@ const WhatsAppDocumentHeader = /* @__PURE__ */ (() => Schema.Union([WhatsAppDocu
1457
1498
  const SmsContent = /* @__PURE__ */ (() => Schema.Struct({
1458
1499
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1459
1500
  templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
1460
- templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.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])),
1501
+ templateSlug: Schema.optionalKey(Schema.Union([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]+)*$" })), Schema.Null])),
1461
1502
  templateData: Schema.optionalKey(SmsTemplateData)
1462
1503
  }).annotate({ identifier: "SmsContent" }))();
1463
1504
  const SmsDispatchContent = /* @__PURE__ */ (() => Schema.Struct({
1464
1505
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1465
1506
  templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
1466
- templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.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])),
1507
+ templateSlug: Schema.optionalKey(Schema.Union([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]+)*$" })), Schema.Null])),
1467
1508
  templateData: Schema.optionalKey(SmsTemplateData)
1468
1509
  }).annotate({ identifier: "SmsDispatchContent" }))();
1469
1510
  const ContactIdentityChannel = /* @__PURE__ */ (() => Schema.Struct({
@@ -1622,14 +1663,14 @@ const PolicyRule = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
1622
1663
  atLeast: PolicyRequirement
1623
1664
  })]).annotate({ identifier: "PolicyRule" }))();
1624
1665
  const CampaignEmailInput = /* @__PURE__ */ (() => Schema.Struct({
1625
- subject: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[^\\p{Cc}]*$", "u")).annotate({ expected: "a string matching the RegExp ^[^\\p{Cc}]*$" })), Schema.Null])),
1666
+ subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1626
1667
  html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1627
1668
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1628
1669
  attachments: Schema.optionalKey(EmailAttachments),
1629
1670
  publicationId: Schema.optionalKey(TemplatePublicationId),
1630
1671
  inputContractId: Schema.optionalKey(TemplateInputContractId),
1631
1672
  templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
1632
- templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.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])),
1673
+ templateSlug: Schema.optionalKey(Schema.Union([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]+)*$" })), Schema.Null])),
1633
1674
  templateData: Schema.optionalKey(TemplateData),
1634
1675
  locale: Schema.optionalKey(RenderLocale),
1635
1676
  timeZone: Schema.optionalKey(RenderTimeZone),
@@ -1642,14 +1683,14 @@ const CampaignEmailInput = /* @__PURE__ */ (() => Schema.Struct({
1642
1683
  preheader: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
1643
1684
  }).annotate({ identifier: "CampaignEmailInput" }))();
1644
1685
  const EmailContent = /* @__PURE__ */ (() => Schema.Struct({
1645
- subject: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[^\\p{Cc}]*$", "u")).annotate({ expected: "a string matching the RegExp ^[^\\p{Cc}]*$" })), Schema.Null])),
1686
+ subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1646
1687
  html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1647
1688
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1648
1689
  attachments: Schema.optionalKey(EmailAttachments),
1649
1690
  publicationId: Schema.optionalKey(TemplatePublicationId),
1650
1691
  inputContractId: Schema.optionalKey(TemplateInputContractId),
1651
1692
  templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
1652
- templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.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])),
1693
+ templateSlug: Schema.optionalKey(Schema.Union([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]+)*$" })), Schema.Null])),
1653
1694
  templateData: Schema.optionalKey(TemplateData),
1654
1695
  locale: Schema.optionalKey(RenderLocale),
1655
1696
  timeZone: Schema.optionalKey(RenderTimeZone),
@@ -1687,7 +1728,7 @@ const ContactIdentity = /* @__PURE__ */ (() => Schema.Struct({
1687
1728
  channels: Schema.Array(ContactIdentityChannel)
1688
1729
  }).annotate({ identifier: "ContactIdentity" }))();
1689
1730
  const WhatsAppTemplateDispatch = /* @__PURE__ */ (() => Schema.Struct({
1690
- template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.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]+)*$" }))]),
1731
+ 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]+)*$" }))]),
1691
1732
  templateData: Schema.optionalKey(WhatsAppTemplateDispatchData),
1692
1733
  bindings: Schema.optionalKey(WhatsAppTemplateBindings),
1693
1734
  businessAccountId: Schema.optionalKey(WhatsAppBusinessAccountId)
@@ -1732,7 +1773,7 @@ const EmailCampaignContentInput = /* @__PURE__ */ (() => Schema.Struct({
1732
1773
  channel: Schema.Literal("email"),
1733
1774
  email: CampaignEmailInput,
1734
1775
  issue: Schema.optionalKey(Schema.Union([Schema.Struct({
1735
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.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" })),
1776
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).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" })),
1736
1777
  commit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
1737
1778
  }), 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." })),
1738
1779
  from: Schema.optionalKey(CampaignFromInput),
@@ -1867,6 +1908,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
1867
1908
  in: "header"
1868
1909
  });
1869
1910
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
1870
- export { AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, 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, NamespacePortalLinkMetadata, 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, StoredEmailAttachments, StoredReplyToAddresses, SuccessResponse, TemplateData, TemplateFromDefaultInput, 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, WhatsAppSetupLinkRedirectUrl, 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 };
1911
+ export { AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, 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, CredentialsError, 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, JourneyId, 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, 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, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SkippedRecipient, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SuccessResponse, TemplateData, TemplateFromDefaultInput, 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, 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 };
1871
1912
 
1872
1913
  //# sourceMappingURL=shared.js.map
@@ -7,13 +7,13 @@ const SubscribeResult = /* @__PURE__ */ (() => Schema.Struct({
7
7
  expiresAt: Schema.String
8
8
  }).annotate({ identifier: "SubscribeResult" }))();
9
9
  const SubscriptionsSubscribeRequestJson = /* @__PURE__ */ (() => Schema.Struct({
10
- email: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" })),
10
+ email: Schema.String,
11
11
  topicId: TopicId,
12
12
  from: Schema.Struct({
13
- email: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" })),
14
- name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[^\\p{Cc}]*$", "u")).annotate({ expected: "a string matching the RegExp ^[^\\p{Cc}]*$" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null]))
13
+ email: Schema.String,
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
- 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(new globalThis.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])),
16
+ templateSlug: Schema.optionalKey(Schema.Union([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]+)*$" })), 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])),
18
18
  consentSource: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The signup page or source recorded by your server when consent was requested." }).check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })), Schema.Null]))
19
19
  }))();