samva 0.51.0 → 0.53.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 (89) hide show
  1. package/AGENTS.md +5 -2
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +82 -36
  4. package/dist/client/sdk.gen.js +192 -57
  5. package/dist/client/types.gen.d.ts +607 -291
  6. package/dist/effect/campaigns.d.ts +56 -56
  7. package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
  8. package/dist/effect/descriptors/integrations-catalog.js +1 -1
  9. package/dist/effect/descriptors/integrations.d.ts +1 -1
  10. package/dist/effect/descriptors/integrations.js +1 -1
  11. package/dist/effect/descriptors/logs.d.ts +21 -0
  12. package/dist/effect/descriptors/logs.js +23 -0
  13. package/dist/effect/descriptors/whats-app.d.ts +1 -1
  14. package/dist/effect/descriptors/whats-app.js +1 -1
  15. package/dist/effect/events.d.ts +16 -0
  16. package/dist/effect/generated/agents.js +4 -4
  17. package/dist/effect/generated/campaigns.d.ts +18 -6
  18. package/dist/effect/generated/campaigns.js +2 -6
  19. package/dist/effect/generated/email.js +3 -3
  20. package/dist/effect/generated/events.d.ts +48 -0
  21. package/dist/effect/generated/events.js +1 -1
  22. package/dist/effect/generated/index.d.ts +3 -1
  23. package/dist/effect/generated/integrations-catalog.d.ts +93 -49
  24. package/dist/effect/generated/integrations-catalog.js +17 -28
  25. package/dist/effect/generated/integrations.d.ts +20 -40
  26. package/dist/effect/generated/integrations.js +9 -13
  27. package/dist/effect/generated/journeys.d.ts +1113 -67
  28. package/dist/effect/generated/journeys.js +14 -8
  29. package/dist/effect/generated/logs.d.ts +2323 -0
  30. package/dist/effect/generated/logs.js +312 -0
  31. package/dist/effect/generated/mailboxes.d.ts +38 -24
  32. package/dist/effect/generated/mailboxes.js +22 -21
  33. package/dist/effect/generated/messages.d.ts +11 -882
  34. package/dist/effect/generated/messages.js +4 -243
  35. package/dist/effect/generated/newsletter-domains.d.ts +61 -13
  36. package/dist/effect/generated/newsletter-domains.js +5 -5
  37. package/dist/effect/generated/newsletter-issues.d.ts +166 -34
  38. package/dist/effect/generated/newsletter-issues.js +12 -12
  39. package/dist/effect/generated/newsletters.d.ts +76 -16
  40. package/dist/effect/generated/newsletters.js +6 -6
  41. package/dist/effect/generated/organizations.js +1 -1
  42. package/dist/effect/generated/scheduled-messages.d.ts +36 -0
  43. package/dist/effect/generated/scheduled-messages.js +1 -1
  44. package/dist/effect/generated/shared.d.ts +1706 -442
  45. package/dist/effect/generated/shared.js +370 -93
  46. package/dist/effect/generated/subscriptions.d.ts +4 -4
  47. package/dist/effect/generated/subscriptions.js +2 -6
  48. package/dist/effect/generated/template-registrations.d.ts +46 -10
  49. package/dist/effect/generated/template-registrations.js +4 -4
  50. package/dist/effect/generated/templates.js +2 -2
  51. package/dist/effect/generated/whats-app-flows.d.ts +173 -35
  52. package/dist/effect/generated/whats-app-flows.js +19 -17
  53. package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
  54. package/dist/effect/generated/whats-app-setup-links.js +5 -5
  55. package/dist/effect/generated/whats-app.d.ts +187 -65
  56. package/dist/effect/generated/whats-app.js +18 -24
  57. package/dist/effect/generated-metadata.d.ts +15 -3
  58. package/dist/effect/generated-metadata.js +375 -349
  59. package/dist/effect/index.d.ts +1 -0
  60. package/dist/effect/index.js +2 -1
  61. package/dist/effect/integrations-catalog.d.ts +92 -4
  62. package/dist/effect/integrations.d.ts +40 -8
  63. package/dist/effect/internal/client.js +25 -3
  64. package/dist/effect/internal/log-events.d.ts +19 -0
  65. package/dist/effect/internal/log-events.js +53 -0
  66. package/dist/effect/internal/mailbox-events.d.ts +6 -2
  67. package/dist/effect/internal/mailbox-events.js +4 -3
  68. package/dist/effect/journeys.d.ts +212 -146
  69. package/dist/effect/logs.d.ts +149 -0
  70. package/dist/effect/logs.js +18 -0
  71. package/dist/effect/mailboxes.d.ts +158 -150
  72. package/dist/effect/mailboxes.js +1 -1
  73. package/dist/effect/newsletter-domains.d.ts +2 -2
  74. package/dist/effect/scheduled-messages.d.ts +66 -0
  75. package/dist/effect/whatsapp-flows.d.ts +30 -0
  76. package/dist/effect/whatsapp-setup-links.d.ts +2 -2
  77. package/dist/effect/whatsapp.d.ts +73 -3
  78. package/dist/mailbox-events.d.ts +50 -3
  79. package/dist/mailbox-events.js +38 -19
  80. package/dist/package.js +1 -1
  81. package/dist/promises/client.d.ts +3 -1
  82. package/dist/promises/client.js +3 -1
  83. package/dist/promises/errors.gen.d.ts +2 -0
  84. package/dist/promises/errors.gen.js +137 -34
  85. package/dist/promises/types.gen.d.ts +1 -1
  86. package/dist/request-id.d.ts +3 -0
  87. package/dist/request-id.js +7 -0
  88. package/dist/service-map.d.ts +14 -3
  89. package/package.json +6 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
3
+ import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type SubscribeResult = {
5
5
  readonly success: boolean;
6
6
  readonly expiresAt: string;
@@ -42,8 +42,8 @@ export type SubscriptionsSubscribe401 = UnauthorizedError;
42
42
  export declare const SubscriptionsSubscribe401: typeof UnauthorizedError;
43
43
  export type SubscriptionsSubscribe402 = PaymentRequiredError;
44
44
  export declare const SubscriptionsSubscribe402: typeof PaymentRequiredError;
45
- export type SubscriptionsSubscribe403 = ForbiddenError | OnboardingReviewRequiredError | FlagDisabledError;
46
- export declare const SubscriptionsSubscribe403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError, typeof FlagDisabledError]>;
45
+ export type SubscriptionsSubscribe403 = ForbiddenError | OnboardingReviewRequiredError;
46
+ export declare const SubscriptionsSubscribe403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]>;
47
47
  export type SubscriptionsSubscribe404 = ResourceNotFoundError;
48
48
  export declare const SubscriptionsSubscribe404: typeof ResourceNotFoundError;
49
49
  export type SubscriptionsSubscribe409 = ConflictError;
@@ -73,7 +73,7 @@ declare const SubscriptionsGroup_base: HttpApiGroup.HttpApiGroup<"Subscriptions"
73
73
  }>>, never, Schema.toCodecJson<Schema.Struct<{
74
74
  readonly success: Schema.Boolean;
75
75
  readonly expiresAt: Schema.String;
76
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError, typeof FlagDisabledError]> | Schema.Union<readonly [typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
76
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]> | Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
77
77
  readonly _tag: "ConflictError";
78
78
  readonly message: string;
79
79
  readonly resource: string;
@@ -1,4 +1,4 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/subscriptions.ts
@@ -21,11 +21,7 @@ const SubscriptionsSubscribe200 = SubscribeResult;
21
21
  const SubscriptionsSubscribe400 = MalformedRequestError;
22
22
  const SubscriptionsSubscribe401 = UnauthorizedError;
23
23
  const SubscriptionsSubscribe402 = PaymentRequiredError;
24
- const SubscriptionsSubscribe403 = /* @__PURE__ */ (() => Schema.Union([
25
- ForbiddenError,
26
- OnboardingReviewRequiredError,
27
- FlagDisabledError
28
- ]))();
24
+ const SubscriptionsSubscribe403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, OnboardingReviewRequiredError]))();
29
25
  const SubscriptionsSubscribe404 = ResourceNotFoundError;
30
26
  const SubscriptionsSubscribe409 = ConflictError;
31
27
  const SubscriptionsSubscribe422 = /* @__PURE__ */ (() => Schema.Union([
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
3
+ import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
4
4
  export type WhatsAppRegistrationTarget = {
5
5
  readonly provider: "whatsapp";
6
6
  readonly wabaId: string;
@@ -143,8 +143,8 @@ export type TemplateRegistrationsList400 = MalformedRequestError;
143
143
  export declare const TemplateRegistrationsList400: typeof MalformedRequestError;
144
144
  export type TemplateRegistrationsList401 = UnauthorizedError;
145
145
  export declare const TemplateRegistrationsList401: typeof UnauthorizedError;
146
- export type TemplateRegistrationsList403 = FlagDisabledError | ForbiddenError;
147
- export declare const TemplateRegistrationsList403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
146
+ export type TemplateRegistrationsList403 = ForbiddenError;
147
+ export declare const TemplateRegistrationsList403: typeof ForbiddenError;
148
148
  export type TemplateRegistrationsList404 = ResourceNotFoundError;
149
149
  export declare const TemplateRegistrationsList404: typeof ResourceNotFoundError;
150
150
  export type TemplateRegistrationsList422 = ValidationError;
@@ -205,8 +205,8 @@ export type TemplateRegistrationsSubmit400 = MalformedRequestError;
205
205
  export declare const TemplateRegistrationsSubmit400: typeof MalformedRequestError;
206
206
  export type TemplateRegistrationsSubmit401 = UnauthorizedError;
207
207
  export declare const TemplateRegistrationsSubmit401: typeof UnauthorizedError;
208
- export type TemplateRegistrationsSubmit403 = ForbiddenError | FlagDisabledError;
209
- export declare const TemplateRegistrationsSubmit403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
208
+ export type TemplateRegistrationsSubmit403 = ForbiddenError;
209
+ export declare const TemplateRegistrationsSubmit403: typeof ForbiddenError;
210
210
  export type TemplateRegistrationsSubmit404 = ResourceNotFoundError;
211
211
  export declare const TemplateRegistrationsSubmit404: typeof ResourceNotFoundError;
212
212
  export type TemplateRegistrationsSubmit409 = ConflictError;
@@ -260,8 +260,8 @@ export type TemplateRegistrationsGet400 = MalformedRequestError;
260
260
  export declare const TemplateRegistrationsGet400: typeof MalformedRequestError;
261
261
  export type TemplateRegistrationsGet401 = UnauthorizedError;
262
262
  export declare const TemplateRegistrationsGet401: typeof UnauthorizedError;
263
- export type TemplateRegistrationsGet403 = FlagDisabledError | ForbiddenError;
264
- export declare const TemplateRegistrationsGet403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
263
+ export type TemplateRegistrationsGet403 = ForbiddenError;
264
+ export declare const TemplateRegistrationsGet403: typeof ForbiddenError;
265
265
  export type TemplateRegistrationsGet404 = ResourceNotFoundError;
266
266
  export declare const TemplateRegistrationsGet404: typeof ResourceNotFoundError;
267
267
  export type TemplateRegistrationsGet422 = ValidationError;
@@ -298,7 +298,19 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
298
298
  readonly statusChangedAt: Schema.String;
299
299
  readonly createdAt: Schema.String;
300
300
  readonly updatedAt: Schema.String;
301
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
301
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
302
+ readonly _tag: "ForbiddenError";
303
+ readonly message: string;
304
+ }, readonly [Schema.Struct<{
305
+ readonly _tag: Schema.tag<"ForbiddenError">;
306
+ readonly message: Schema.String;
307
+ }>], {
308
+ readonly _tag: "ForbiddenError";
309
+ readonly message: string;
310
+ }>, Schema.Struct<{
311
+ readonly _tag: Schema.tag<"ForbiddenError">;
312
+ readonly message: Schema.String;
313
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
302
314
  readonly _tag: "GatewayTimeoutError";
303
315
  readonly message: string;
304
316
  readonly retryAfterSeconds: number;
@@ -415,7 +427,19 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
415
427
  readonly createdAt: Schema.String;
416
428
  readonly updatedAt: Schema.String;
417
429
  }>>;
418
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
430
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
431
+ readonly _tag: "ForbiddenError";
432
+ readonly message: string;
433
+ }, readonly [Schema.Struct<{
434
+ readonly _tag: Schema.tag<"ForbiddenError">;
435
+ readonly message: Schema.String;
436
+ }>], {
437
+ readonly _tag: "ForbiddenError";
438
+ readonly message: string;
439
+ }>, Schema.Struct<{
440
+ readonly _tag: Schema.tag<"ForbiddenError">;
441
+ readonly message: Schema.String;
442
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
419
443
  readonly _tag: "GatewayTimeoutError";
420
444
  readonly message: string;
421
445
  readonly retryAfterSeconds: number;
@@ -539,7 +563,7 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
539
563
  readonly statusChangedAt: Schema.String;
540
564
  readonly createdAt: Schema.String;
541
565
  readonly updatedAt: Schema.String;
542
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
566
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
543
567
  readonly _tag: "ConflictError";
544
568
  readonly message: string;
545
569
  readonly resource: string;
@@ -559,6 +583,18 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
559
583
  readonly message: Schema.String;
560
584
  readonly resource: Schema.String;
561
585
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
586
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
587
+ readonly _tag: "ForbiddenError";
588
+ readonly message: string;
589
+ }, readonly [Schema.Struct<{
590
+ readonly _tag: Schema.tag<"ForbiddenError">;
591
+ readonly message: Schema.String;
592
+ }>], {
593
+ readonly _tag: "ForbiddenError";
594
+ readonly message: string;
595
+ }>, Schema.Struct<{
596
+ readonly _tag: Schema.tag<"ForbiddenError">;
597
+ readonly message: Schema.String;
562
598
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
563
599
  readonly _tag: "GatewayTimeoutError";
564
600
  readonly message: string;
@@ -1,4 +1,4 @@
1
- import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/template-registrations.ts
@@ -62,7 +62,7 @@ const TemplateRegistrationsListPathParams = /* @__PURE__ */ (() => Schema.Struct
62
62
  const TemplateRegistrationsList200 = TemplateRegistrationList;
63
63
  const TemplateRegistrationsList400 = MalformedRequestError;
64
64
  const TemplateRegistrationsList401 = UnauthorizedError;
65
- const TemplateRegistrationsList403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
65
+ const TemplateRegistrationsList403 = ForbiddenError;
66
66
  const TemplateRegistrationsList404 = ResourceNotFoundError;
67
67
  const TemplateRegistrationsList422 = ValidationError;
68
68
  const TemplateRegistrationsList500 = InternalError;
@@ -76,7 +76,7 @@ const TemplateRegistrationsSubmitRequestJson = /* @__PURE__ */ (() => Schema.Str
76
76
  const TemplateRegistrationsSubmit201 = TemplateRegistration;
77
77
  const TemplateRegistrationsSubmit400 = MalformedRequestError;
78
78
  const TemplateRegistrationsSubmit401 = UnauthorizedError;
79
- const TemplateRegistrationsSubmit403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
79
+ const TemplateRegistrationsSubmit403 = ForbiddenError;
80
80
  const TemplateRegistrationsSubmit404 = ResourceNotFoundError;
81
81
  const TemplateRegistrationsSubmit409 = ConflictError;
82
82
  const TemplateRegistrationsSubmit422 = ValidationError;
@@ -91,7 +91,7 @@ const TemplateRegistrationsGetPathParams = /* @__PURE__ */ (() => Schema.Struct(
91
91
  const TemplateRegistrationsGet200 = TemplateRegistration;
92
92
  const TemplateRegistrationsGet400 = MalformedRequestError;
93
93
  const TemplateRegistrationsGet401 = UnauthorizedError;
94
- const TemplateRegistrationsGet403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
94
+ const TemplateRegistrationsGet403 = ForbiddenError;
95
95
  const TemplateRegistrationsGet404 = ResourceNotFoundError;
96
96
  const TemplateRegistrationsGet422 = ValidationError;
97
97
  const TemplateRegistrationsGet500 = InternalError;
@@ -2076,7 +2076,7 @@ const TemplatesCreateFamilyFromTemplate504 = GatewayTimeoutError;
2076
2076
  const TemplatesCreateFromBriefHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) }))();
2077
2077
  const TemplatesCreateFromBriefRequestJson = /* @__PURE__ */ (() => Schema.Struct({
2078
2078
  brief: Schema.String.annotate({ description: "What the message is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email (\"like the Vercel login email\") starts from Samva's recreation of it when the gallery has one." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
2079
- channel: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]), Schema.Null]).annotate({ description: "The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters and is available where WhatsApp is enabled for the organization." })),
2079
+ channel: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]), Schema.Null]).annotate({ description: "The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters." })),
2080
2080
  name: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The template's name. Defaults to the name of the design it starts from." }).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])),
2081
2081
  galleryTemplateId: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Start from this gallery design instead of the first suggestion, for example another one the suggestions offered." }).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])),
2082
2082
  useBrand: Schema.optionalKey(Schema.Union([Schema.Boolean.annotate({ description: "Whether the new project's `theme.css` imports the organization's default brand over the design's look. Defaults to false." }), Schema.Null])),
@@ -2146,7 +2146,7 @@ const TemplatesAddEntry500 = InternalError;
2146
2146
  const TemplatesAddEntry504 = GatewayTimeoutError;
2147
2147
  const TemplatesSuggestStartersRequestJson = /* @__PURE__ */ (() => Schema.Struct({
2148
2148
  brief: Schema.String.annotate({ description: "What the message is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email (\"like the Vercel login email\") starts from Samva's recreation of it when the gallery has one." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
2149
- channel: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]), Schema.Null]).annotate({ description: "The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters and is available where WhatsApp is enabled for the organization." }))
2149
+ channel: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]), Schema.Null]).annotate({ description: "The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters." }))
2150
2150
  }))();
2151
2151
  const TemplatesSuggestStarters200 = TemplateStarterSuggestions;
2152
2152
  const TemplatesSuggestStarters400 = MalformedRequestError;