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
@@ -18,6 +18,7 @@ import { FeedbackGroup } from "./feedback.js";
18
18
  import { IntegrationsGroup } from "./integrations.js";
19
19
  import { IntegrationsCatalogGroup } from "./integrations-catalog.js";
20
20
  import { JourneysGroup } from "./journeys.js";
21
+ import { LogsGroup } from "./logs.js";
21
22
  import { MailboxesGroup } from "./mailboxes.js";
22
23
  import { MediaGroup } from "./media.js";
23
24
  import { MessagesGroup } from "./messages.js";
@@ -60,6 +61,7 @@ export * from "./feedback.js";
60
61
  export * from "./integrations.js";
61
62
  export * from "./integrations-catalog.js";
62
63
  export * from "./journeys.js";
64
+ export * from "./logs.js";
63
65
  export * from "./mailboxes.js";
64
66
  export * from "./media.js";
65
67
  export * from "./messages.js";
@@ -82,6 +84,6 @@ export * from "./whats-app.js";
82
84
  export * from "./whats-app-flows.js";
83
85
  export * from "./whats-app-setup-links.js";
84
86
  export * from "./whoami.js";
85
- declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AccountsGroup | typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof ApprovalRequestsGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof FeedbackGroup | typeof IntegrationsGroup | typeof IntegrationsCatalogGroup | typeof JourneysGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplateShareLinksGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
87
+ declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AccountsGroup | typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof ApprovalRequestsGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof FeedbackGroup | typeof IntegrationsGroup | typeof IntegrationsCatalogGroup | typeof JourneysGroup | typeof LogsGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplateShareLinksGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
86
88
  export declare class SamvaApi extends SamvaApi_base {
87
89
  }
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } from "./shared.js";
3
+ import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } from "./shared.js";
4
4
  export type RecipeHandoff = {
5
5
  readonly url: string;
6
6
  readonly organizationSlug: string;
@@ -213,10 +213,7 @@ export type RecipeReadinessResponse = {
213
213
  readonly ready: boolean;
214
214
  readonly channel: "email" | "whatsapp";
215
215
  readonly availability: {
216
- readonly shopify: boolean;
217
- readonly journeys: boolean;
218
- readonly whatsapp: boolean;
219
- readonly plan: "granted" | "denied" | "unreachable" | "disabled" | null;
216
+ readonly plan: "granted" | "denied" | "unreachable" | null;
220
217
  };
221
218
  readonly shopify: {
222
219
  readonly id: IntegrationAccountId;
@@ -258,10 +255,7 @@ export declare const RecipeReadinessResponse: Schema.Struct<{
258
255
  readonly ready: Schema.Boolean;
259
256
  readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
260
257
  readonly availability: Schema.Struct<{
261
- readonly shopify: Schema.Boolean;
262
- readonly journeys: Schema.Boolean;
263
- readonly whatsapp: Schema.Boolean;
264
- readonly plan: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"granted">, Schema.Literal<"denied">, Schema.Literal<"unreachable">, Schema.Literal<"disabled">]>, Schema.Null]>;
258
+ readonly plan: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"granted">, Schema.Literal<"denied">, Schema.Literal<"unreachable">]>, Schema.Null]>;
265
259
  }>;
266
260
  readonly shopify: Schema.Union<readonly [Schema.Struct<{
267
261
  readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
@@ -301,8 +295,7 @@ export declare const RecipeReadinessResponse: Schema.Struct<{
301
295
  }>;
302
296
  export type IntegrationCatalogSearchPage = {
303
297
  readonly items: ReadonlyArray<IntegrationCatalogSearchEntry>;
304
- readonly total: number;
305
- readonly nextOffset: number | null;
298
+ readonly nextCursor: string | null;
306
299
  };
307
300
  export declare const IntegrationCatalogSearchPage: Schema.Struct<{
308
301
  readonly items: Schema.$Array<Schema.Struct<{
@@ -337,8 +330,7 @@ export declare const IntegrationCatalogSearchPage: Schema.Struct<{
337
330
  readonly connectState: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"checkedAtConnect">, Schema.Literal<"unavailable">]>;
338
331
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
339
332
  }>>;
340
- readonly total: Schema.Finite;
341
- readonly nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
333
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
342
334
  }>;
343
335
  export type IntegrationCatalogEntry = {
344
336
  readonly id: string;
@@ -639,8 +631,8 @@ export type IntegrationCatalogRecipeConnectionHandoff400 = MalformedRequestError
639
631
  export declare const IntegrationCatalogRecipeConnectionHandoff400: typeof MalformedRequestError;
640
632
  export type IntegrationCatalogRecipeConnectionHandoff401 = UnauthorizedError;
641
633
  export declare const IntegrationCatalogRecipeConnectionHandoff401: typeof UnauthorizedError;
642
- export type IntegrationCatalogRecipeConnectionHandoff403 = ForbiddenError | FlagDisabledError;
643
- export declare const IntegrationCatalogRecipeConnectionHandoff403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
634
+ export type IntegrationCatalogRecipeConnectionHandoff403 = ForbiddenError;
635
+ export declare const IntegrationCatalogRecipeConnectionHandoff403: typeof ForbiddenError;
644
636
  export type IntegrationCatalogRecipeConnectionHandoff404 = ResourceNotFoundError;
645
637
  export declare const IntegrationCatalogRecipeConnectionHandoff404: typeof ResourceNotFoundError;
646
638
  export type IntegrationCatalogRecipeConnectionHandoff422 = ValidationError;
@@ -709,8 +701,8 @@ export type IntegrationCatalogRecipeTest401 = UnauthorizedError;
709
701
  export declare const IntegrationCatalogRecipeTest401: typeof UnauthorizedError;
710
702
  export type IntegrationCatalogRecipeTest402 = PaymentRequiredError;
711
703
  export declare const IntegrationCatalogRecipeTest402: typeof PaymentRequiredError;
712
- export type IntegrationCatalogRecipeTest403 = ForbiddenError | FlagDisabledError | OnboardingReviewRequiredError;
713
- export declare const IntegrationCatalogRecipeTest403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError, typeof OnboardingReviewRequiredError]>;
704
+ export type IntegrationCatalogRecipeTest403 = ForbiddenError | OnboardingReviewRequiredError;
705
+ export declare const IntegrationCatalogRecipeTest403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]>;
714
706
  export type IntegrationCatalogRecipeTest404 = ResourceNotFoundError;
715
707
  export declare const IntegrationCatalogRecipeTest404: typeof ResourceNotFoundError;
716
708
  export type IntegrationCatalogRecipeTest409 = ConflictError;
@@ -809,8 +801,8 @@ export type IntegrationCatalogRecipeWhatsAppChallengeBegin400 = MalformedRequest
809
801
  export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin400: typeof MalformedRequestError;
810
802
  export type IntegrationCatalogRecipeWhatsAppChallengeBegin401 = UnauthorizedError;
811
803
  export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin401: typeof UnauthorizedError;
812
- export type IntegrationCatalogRecipeWhatsAppChallengeBegin403 = ForbiddenError | FlagDisabledError;
813
- export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
804
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin403 = ForbiddenError;
805
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin403: typeof ForbiddenError;
814
806
  export type IntegrationCatalogRecipeWhatsAppChallengeBegin404 = ResourceNotFoundError;
815
807
  export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin404: typeof ResourceNotFoundError;
816
808
  export type IntegrationCatalogRecipeWhatsAppChallengeBegin409 = ConflictError;
@@ -840,8 +832,8 @@ export type IntegrationCatalogRecipeWhatsAppChallengeGet400 = MalformedRequestEr
840
832
  export declare const IntegrationCatalogRecipeWhatsAppChallengeGet400: typeof MalformedRequestError;
841
833
  export type IntegrationCatalogRecipeWhatsAppChallengeGet401 = UnauthorizedError;
842
834
  export declare const IntegrationCatalogRecipeWhatsAppChallengeGet401: typeof UnauthorizedError;
843
- export type IntegrationCatalogRecipeWhatsAppChallengeGet403 = ForbiddenError | FlagDisabledError;
844
- export declare const IntegrationCatalogRecipeWhatsAppChallengeGet403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
835
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet403 = ForbiddenError;
836
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet403: typeof ForbiddenError;
845
837
  export type IntegrationCatalogRecipeWhatsAppChallengeGet404 = ResourceNotFoundError;
846
838
  export declare const IntegrationCatalogRecipeWhatsAppChallengeGet404: typeof ResourceNotFoundError;
847
839
  export type IntegrationCatalogRecipeWhatsAppChallengeGet409 = ConflictError;
@@ -877,8 +869,8 @@ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm400 = MalformedReque
877
869
  export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm400: typeof MalformedRequestError;
878
870
  export type IntegrationCatalogRecipeWhatsAppChallengeConfirm401 = UnauthorizedError;
879
871
  export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm401: typeof UnauthorizedError;
880
- export type IntegrationCatalogRecipeWhatsAppChallengeConfirm403 = ForbiddenError | FlagDisabledError;
881
- export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
872
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm403 = ForbiddenError;
873
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm403: typeof ForbiddenError;
882
874
  export type IntegrationCatalogRecipeWhatsAppChallengeConfirm404 = ResourceNotFoundError;
883
875
  export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm404: typeof ResourceNotFoundError;
884
876
  export type IntegrationCatalogRecipeWhatsAppChallengeConfirm409 = ConflictError;
@@ -973,10 +965,7 @@ export declare const IntegrationCatalogRecipeReadiness200: Schema.Struct<{
973
965
  readonly ready: Schema.Boolean;
974
966
  readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
975
967
  readonly availability: Schema.Struct<{
976
- readonly shopify: Schema.Boolean;
977
- readonly journeys: Schema.Boolean;
978
- readonly whatsapp: Schema.Boolean;
979
- readonly plan: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"granted">, Schema.Literal<"denied">, Schema.Literal<"unreachable">, Schema.Literal<"disabled">]>, Schema.Null]>;
968
+ readonly plan: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"granted">, Schema.Literal<"denied">, Schema.Literal<"unreachable">]>, Schema.Null]>;
980
969
  }>;
981
970
  readonly shopify: Schema.Union<readonly [Schema.Struct<{
982
971
  readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
@@ -1222,8 +1211,8 @@ export type IntegrationCatalogRecipeSetupActivate401 = UnauthorizedError;
1222
1211
  export declare const IntegrationCatalogRecipeSetupActivate401: typeof UnauthorizedError;
1223
1212
  export type IntegrationCatalogRecipeSetupActivate402 = PaymentRequiredError;
1224
1213
  export declare const IntegrationCatalogRecipeSetupActivate402: typeof PaymentRequiredError;
1225
- export type IntegrationCatalogRecipeSetupActivate403 = ForbiddenError | FlagDisabledError;
1226
- export declare const IntegrationCatalogRecipeSetupActivate403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
1214
+ export type IntegrationCatalogRecipeSetupActivate403 = ForbiddenError;
1215
+ export declare const IntegrationCatalogRecipeSetupActivate403: typeof ForbiddenError;
1227
1216
  export type IntegrationCatalogRecipeSetupActivate404 = ResourceNotFoundError;
1228
1217
  export declare const IntegrationCatalogRecipeSetupActivate404: typeof ResourceNotFoundError;
1229
1218
  export type IntegrationCatalogRecipeSetupActivate409 = ConflictError;
@@ -1240,15 +1229,15 @@ export type IntegrationCatalogSearchQuery = {
1240
1229
  readonly key?: IntegrationKey;
1241
1230
  readonly query?: string;
1242
1231
  readonly category?: "commerce" | "payments" | "shipping" | "calendar" | "crm" | "helpdesk" | "knowledge" | "forms" | "accounting" | "reviews" | "productivity" | "dns" | "channel" | "other";
1243
- readonly offset?: number;
1244
- readonly limit?: number;
1232
+ readonly limit?: number | null;
1233
+ readonly cursor?: string;
1245
1234
  };
1246
1235
  export declare const IntegrationCatalogSearchQuery: Schema.Struct<{
1247
1236
  readonly key: Schema.optionalKey<Schema.String>;
1248
1237
  readonly query: Schema.optionalKey<Schema.String>;
1249
1238
  readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"commerce">, Schema.Literal<"payments">, Schema.Literal<"shipping">, Schema.Literal<"calendar">, Schema.Literal<"crm">, Schema.Literal<"helpdesk">, Schema.Literal<"knowledge">, Schema.Literal<"forms">, Schema.Literal<"accounting">, Schema.Literal<"reviews">, Schema.Literal<"productivity">, Schema.Literal<"dns">, Schema.Literal<"channel">, Schema.Literal<"other">]>>;
1250
- readonly offset: Schema.optionalKey<Schema.Finite>;
1251
- readonly limit: Schema.optionalKey<Schema.Finite>;
1239
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1240
+ readonly cursor: Schema.optionalKey<Schema.String>;
1252
1241
  }>;
1253
1242
  export type IntegrationCatalogSearch200 = IntegrationCatalogSearchPage;
1254
1243
  export declare const IntegrationCatalogSearch200: Schema.Struct<{
@@ -1284,8 +1273,7 @@ export declare const IntegrationCatalogSearch200: Schema.Struct<{
1284
1273
  readonly connectState: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"checkedAtConnect">, Schema.Literal<"unavailable">]>;
1285
1274
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1286
1275
  }>>;
1287
- readonly total: Schema.Finite;
1288
- readonly nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
1276
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
1289
1277
  }>;
1290
1278
  export type IntegrationCatalogSearch400 = MalformedRequestError;
1291
1279
  export declare const IntegrationCatalogSearch400: typeof MalformedRequestError;
@@ -1616,7 +1604,19 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
1616
1604
  readonly url: Schema.String;
1617
1605
  readonly organizationSlug: Schema.String;
1618
1606
  readonly setupId: Schema.Union<readonly [Schema.String, Schema.Null]>;
1619
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1607
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1608
+ readonly _tag: "ForbiddenError";
1609
+ readonly message: string;
1610
+ }, readonly [Schema.Struct<{
1611
+ readonly _tag: Schema.tag<"ForbiddenError">;
1612
+ readonly message: Schema.String;
1613
+ }>], {
1614
+ readonly _tag: "ForbiddenError";
1615
+ readonly message: string;
1616
+ }>, Schema.Struct<{
1617
+ readonly _tag: Schema.tag<"ForbiddenError">;
1618
+ readonly message: Schema.String;
1619
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1620
1620
  readonly _tag: "GatewayTimeoutError";
1621
1621
  readonly message: string;
1622
1622
  readonly retryAfterSeconds: number;
@@ -1844,10 +1844,7 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
1844
1844
  readonly ready: Schema.Boolean;
1845
1845
  readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
1846
1846
  readonly availability: Schema.Struct<{
1847
- readonly shopify: Schema.Boolean;
1848
- readonly journeys: Schema.Boolean;
1849
- readonly whatsapp: Schema.Boolean;
1850
- readonly plan: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"granted">, Schema.Literal<"denied">, Schema.Literal<"unreachable">, Schema.Literal<"disabled">]>, Schema.Null]>;
1847
+ readonly plan: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"granted">, Schema.Literal<"denied">, Schema.Literal<"unreachable">]>, Schema.Null]>;
1851
1848
  }>;
1852
1849
  readonly shopify: Schema.Union<readonly [Schema.Struct<{
1853
1850
  readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
@@ -2013,7 +2010,7 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
2013
2010
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
2014
2011
  readonly publishedVersion: Schema.Finite;
2015
2012
  }>;
2016
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
2013
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
2017
2014
  readonly _tag: "BillingProviderError";
2018
2015
  readonly message: string;
2019
2016
  }, readonly [Schema.Struct<{
@@ -2045,6 +2042,18 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
2045
2042
  readonly message: Schema.String;
2046
2043
  readonly resource: Schema.String;
2047
2044
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2045
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
2046
+ readonly _tag: "ForbiddenError";
2047
+ readonly message: string;
2048
+ }, readonly [Schema.Struct<{
2049
+ readonly _tag: Schema.tag<"ForbiddenError">;
2050
+ readonly message: Schema.String;
2051
+ }>], {
2052
+ readonly _tag: "ForbiddenError";
2053
+ readonly message: string;
2054
+ }>, Schema.Struct<{
2055
+ readonly _tag: Schema.tag<"ForbiddenError">;
2056
+ readonly message: Schema.String;
2048
2057
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2049
2058
  readonly _tag: "GatewayTimeoutError";
2050
2059
  readonly message: string;
@@ -2550,7 +2559,7 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
2550
2559
  readonly challengeId: Schema.String;
2551
2560
  }>]>>, never, Schema.toCodecJson<Schema.Struct<{
2552
2561
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
2553
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError, typeof OnboardingReviewRequiredError]> | Schema.Union<readonly [typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
2562
+ }>>, 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, {
2554
2563
  readonly _tag: "ConflictError";
2555
2564
  readonly message: string;
2556
2565
  readonly resource: string;
@@ -2903,7 +2912,7 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
2903
2912
  readonly expiresAt: Schema.String;
2904
2913
  readonly address: Schema.String;
2905
2914
  readonly message: Schema.String;
2906
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
2915
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
2907
2916
  readonly _tag: "ConflictError";
2908
2917
  readonly message: string;
2909
2918
  readonly resource: string;
@@ -2923,6 +2932,18 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
2923
2932
  readonly message: Schema.String;
2924
2933
  readonly resource: Schema.String;
2925
2934
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2935
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
2936
+ readonly _tag: "ForbiddenError";
2937
+ readonly message: string;
2938
+ }, readonly [Schema.Struct<{
2939
+ readonly _tag: Schema.tag<"ForbiddenError">;
2940
+ readonly message: Schema.String;
2941
+ }>], {
2942
+ readonly _tag: "ForbiddenError";
2943
+ readonly message: string;
2944
+ }>, Schema.Struct<{
2945
+ readonly _tag: Schema.tag<"ForbiddenError">;
2946
+ readonly message: Schema.String;
2926
2947
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2927
2948
  readonly _tag: "GatewayTimeoutError";
2928
2949
  readonly message: string;
@@ -3021,7 +3042,7 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
3021
3042
  readonly expiresAt: Schema.String;
3022
3043
  readonly observedPhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
3023
3044
  readonly confirmedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3024
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
3045
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
3025
3046
  readonly _tag: "ConflictError";
3026
3047
  readonly message: string;
3027
3048
  readonly resource: string;
@@ -3041,6 +3062,18 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
3041
3062
  readonly message: Schema.String;
3042
3063
  readonly resource: Schema.String;
3043
3064
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3065
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
3066
+ readonly _tag: "ForbiddenError";
3067
+ readonly message: string;
3068
+ }, readonly [Schema.Struct<{
3069
+ readonly _tag: Schema.tag<"ForbiddenError">;
3070
+ readonly message: Schema.String;
3071
+ }>], {
3072
+ readonly _tag: "ForbiddenError";
3073
+ readonly message: string;
3074
+ }>, Schema.Struct<{
3075
+ readonly _tag: Schema.tag<"ForbiddenError">;
3076
+ readonly message: Schema.String;
3044
3077
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
3045
3078
  readonly _tag: "GatewayTimeoutError";
3046
3079
  readonly message: string;
@@ -3137,7 +3170,7 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
3137
3170
  readonly expiresAt: Schema.String;
3138
3171
  readonly observedPhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
3139
3172
  readonly confirmedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3140
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
3173
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
3141
3174
  readonly _tag: "ConflictError";
3142
3175
  readonly message: string;
3143
3176
  readonly resource: string;
@@ -3157,6 +3190,18 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
3157
3190
  readonly message: Schema.String;
3158
3191
  readonly resource: Schema.String;
3159
3192
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3193
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
3194
+ readonly _tag: "ForbiddenError";
3195
+ readonly message: string;
3196
+ }, readonly [Schema.Struct<{
3197
+ readonly _tag: Schema.tag<"ForbiddenError">;
3198
+ readonly message: Schema.String;
3199
+ }>], {
3200
+ readonly _tag: "ForbiddenError";
3201
+ readonly message: string;
3202
+ }>, Schema.Struct<{
3203
+ readonly _tag: Schema.tag<"ForbiddenError">;
3204
+ readonly message: Schema.String;
3160
3205
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
3161
3206
  readonly _tag: "GatewayTimeoutError";
3162
3207
  readonly message: string;
@@ -3249,8 +3294,8 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
3249
3294
  readonly key: Schema.optionalKey<Schema.String>;
3250
3295
  readonly query: Schema.optionalKey<Schema.String>;
3251
3296
  readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"commerce">, Schema.Literal<"payments">, Schema.Literal<"shipping">, Schema.Literal<"calendar">, Schema.Literal<"crm">, Schema.Literal<"helpdesk">, Schema.Literal<"knowledge">, Schema.Literal<"forms">, Schema.Literal<"accounting">, Schema.Literal<"reviews">, Schema.Literal<"productivity">, Schema.Literal<"dns">, Schema.Literal<"channel">, Schema.Literal<"other">]>>;
3252
- readonly offset: Schema.optionalKey<Schema.Finite>;
3253
- readonly limit: Schema.optionalKey<Schema.Finite>;
3297
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
3298
+ readonly cursor: Schema.optionalKey<Schema.String>;
3254
3299
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
3255
3300
  readonly items: Schema.$Array<Schema.Struct<{
3256
3301
  readonly key: Schema.String;
@@ -3284,8 +3329,7 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
3284
3329
  readonly connectState: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"checkedAtConnect">, Schema.Literal<"unavailable">]>;
3285
3330
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
3286
3331
  }>>;
3287
- readonly total: Schema.Finite;
3288
- readonly nextOffset: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
3332
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
3289
3333
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
3290
3334
  readonly _tag: "ForbiddenError";
3291
3335
  readonly message: string;
@@ -1,4 +1,4 @@
1
- import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } from "./shared.js";
1
+ import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } 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/integrations-catalog.ts
@@ -153,17 +153,11 @@ const IntegrationCatalogConnection = /* @__PURE__ */ (() => Schema.Struct({
153
153
  const RecipeReadinessResponse = /* @__PURE__ */ (() => Schema.Struct({
154
154
  ready: Schema.Boolean,
155
155
  channel: Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]),
156
- availability: Schema.Struct({
157
- shopify: Schema.Boolean,
158
- journeys: Schema.Boolean,
159
- whatsapp: Schema.Boolean,
160
- plan: Schema.Union([Schema.Union([
161
- Schema.Literal("granted"),
162
- Schema.Literal("denied"),
163
- Schema.Literal("unreachable"),
164
- Schema.Literal("disabled")
165
- ]), Schema.Null])
166
- }),
156
+ availability: Schema.Struct({ plan: Schema.Union([Schema.Union([
157
+ Schema.Literal("granted"),
158
+ Schema.Literal("denied"),
159
+ Schema.Literal("unreachable")
160
+ ]), Schema.Null]) }),
167
161
  shopify: Schema.Union([Schema.Struct({
168
162
  id: IntegrationAccountId,
169
163
  status: AccountStatus,
@@ -222,8 +216,7 @@ const RecipeReadinessResponse = /* @__PURE__ */ (() => Schema.Struct({
222
216
  }).annotate({ identifier: "RecipeReadinessResponse" }))();
223
217
  const IntegrationCatalogSearchPage = /* @__PURE__ */ (() => Schema.Struct({
224
218
  items: Schema.Array(IntegrationCatalogSearchEntry),
225
- total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
226
- nextOffset: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])
219
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
227
220
  }).annotate({ identifier: "IntegrationCatalogSearchPage" }))();
228
221
  const IntegrationCatalogEntry = /* @__PURE__ */ (() => Schema.Struct({
229
222
  id: Schema.String.check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" })).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })),
@@ -336,7 +329,7 @@ const IntegrationCatalogRecipeConnectionHandoffQuery = /* @__PURE__ */ (() => Sc
336
329
  const IntegrationCatalogRecipeConnectionHandoff200 = RecipeHandoff;
337
330
  const IntegrationCatalogRecipeConnectionHandoff400 = MalformedRequestError;
338
331
  const IntegrationCatalogRecipeConnectionHandoff401 = UnauthorizedError;
339
- const IntegrationCatalogRecipeConnectionHandoff403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
332
+ const IntegrationCatalogRecipeConnectionHandoff403 = ForbiddenError;
340
333
  const IntegrationCatalogRecipeConnectionHandoff404 = ResourceNotFoundError;
341
334
  const IntegrationCatalogRecipeConnectionHandoff422 = ValidationError;
342
335
  const IntegrationCatalogRecipeConnectionHandoff500 = InternalError;
@@ -369,11 +362,7 @@ const IntegrationCatalogRecipeTest200 = RecipeTestResponse;
369
362
  const IntegrationCatalogRecipeTest400 = MalformedRequestError;
370
363
  const IntegrationCatalogRecipeTest401 = UnauthorizedError;
371
364
  const IntegrationCatalogRecipeTest402 = PaymentRequiredError;
372
- const IntegrationCatalogRecipeTest403 = /* @__PURE__ */ (() => Schema.Union([
373
- ForbiddenError,
374
- FlagDisabledError,
375
- OnboardingReviewRequiredError
376
- ]))();
365
+ const IntegrationCatalogRecipeTest403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, OnboardingReviewRequiredError]))();
377
366
  const IntegrationCatalogRecipeTest404 = ResourceNotFoundError;
378
367
  const IntegrationCatalogRecipeTest409 = ConflictError;
379
368
  const IntegrationCatalogRecipeTest422 = /* @__PURE__ */ (() => Schema.Union([
@@ -418,7 +407,7 @@ const IntegrationCatalogRecipeWhatsAppChallengeBeginPathParams = /* @__PURE__ */
418
407
  const IntegrationCatalogRecipeWhatsAppChallengeBegin200 = RecipeChallengeStarted;
419
408
  const IntegrationCatalogRecipeWhatsAppChallengeBegin400 = MalformedRequestError;
420
409
  const IntegrationCatalogRecipeWhatsAppChallengeBegin401 = UnauthorizedError;
421
- const IntegrationCatalogRecipeWhatsAppChallengeBegin403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
410
+ const IntegrationCatalogRecipeWhatsAppChallengeBegin403 = ForbiddenError;
422
411
  const IntegrationCatalogRecipeWhatsAppChallengeBegin404 = ResourceNotFoundError;
423
412
  const IntegrationCatalogRecipeWhatsAppChallengeBegin409 = ConflictError;
424
413
  const IntegrationCatalogRecipeWhatsAppChallengeBegin422 = ValidationError;
@@ -431,7 +420,7 @@ const IntegrationCatalogRecipeWhatsAppChallengeGetPathParams = /* @__PURE__ */ (
431
420
  const IntegrationCatalogRecipeWhatsAppChallengeGet200 = RecipeChallengeStatus;
432
421
  const IntegrationCatalogRecipeWhatsAppChallengeGet400 = MalformedRequestError;
433
422
  const IntegrationCatalogRecipeWhatsAppChallengeGet401 = UnauthorizedError;
434
- const IntegrationCatalogRecipeWhatsAppChallengeGet403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
423
+ const IntegrationCatalogRecipeWhatsAppChallengeGet403 = ForbiddenError;
435
424
  const IntegrationCatalogRecipeWhatsAppChallengeGet404 = ResourceNotFoundError;
436
425
  const IntegrationCatalogRecipeWhatsAppChallengeGet409 = ConflictError;
437
426
  const IntegrationCatalogRecipeWhatsAppChallengeGet422 = ValidationError;
@@ -445,7 +434,7 @@ const IntegrationCatalogRecipeWhatsAppChallengeConfirmRequestJson = /* @__PURE__
445
434
  const IntegrationCatalogRecipeWhatsAppChallengeConfirm200 = RecipeChallengeStatus;
446
435
  const IntegrationCatalogRecipeWhatsAppChallengeConfirm400 = MalformedRequestError;
447
436
  const IntegrationCatalogRecipeWhatsAppChallengeConfirm401 = UnauthorizedError;
448
- const IntegrationCatalogRecipeWhatsAppChallengeConfirm403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
437
+ const IntegrationCatalogRecipeWhatsAppChallengeConfirm403 = ForbiddenError;
449
438
  const IntegrationCatalogRecipeWhatsAppChallengeConfirm404 = ResourceNotFoundError;
450
439
  const IntegrationCatalogRecipeWhatsAppChallengeConfirm409 = ConflictError;
451
440
  const IntegrationCatalogRecipeWhatsAppChallengeConfirm422 = ValidationError;
@@ -538,7 +527,7 @@ const IntegrationCatalogRecipeSetupActivate200 = ActivatedRecipeSetup;
538
527
  const IntegrationCatalogRecipeSetupActivate400 = MalformedRequestError;
539
528
  const IntegrationCatalogRecipeSetupActivate401 = UnauthorizedError;
540
529
  const IntegrationCatalogRecipeSetupActivate402 = PaymentRequiredError;
541
- const IntegrationCatalogRecipeSetupActivate403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
530
+ const IntegrationCatalogRecipeSetupActivate403 = ForbiddenError;
542
531
  const IntegrationCatalogRecipeSetupActivate404 = ResourceNotFoundError;
543
532
  const IntegrationCatalogRecipeSetupActivate409 = ConflictError;
544
533
  const IntegrationCatalogRecipeSetupActivate422 = ValidationError;
@@ -564,8 +553,8 @@ const IntegrationCatalogSearchQuery = /* @__PURE__ */ (() => Schema.Struct({
564
553
  Schema.Literal("channel"),
565
554
  Schema.Literal("other")
566
555
  ])),
567
- offset: Schema.optionalKey(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))),
568
- limit: Schema.optionalKey(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })))
556
+ limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
557
+ cursor: Schema.optionalKey(Schema.String)
569
558
  }))();
570
559
  const IntegrationCatalogSearch200 = IntegrationCatalogSearchPage;
571
560
  const IntegrationCatalogSearch400 = MalformedRequestError;
@@ -723,7 +712,7 @@ var IntegrationsCatalogGroup = class extends HttpApiGroup.make("Integrations cat
723
712
  IntegrationCatalogRecipeReadiness502.pipe(HttpApiSchema.status(502)),
724
713
  IntegrationCatalogRecipeReadiness504.pipe(HttpApiSchema.status(504))
725
714
  ]
726
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeReadiness").annotate(OpenApi.Summary, "Read Shopify post-delivery check-in readiness").annotate(OpenApi.Description, "Checks selected resources and current feature availability. A namespace caller sees its reachable resources. Shopify account and plan fields are null, and full recipe readiness requires organization-wide access. Omit the email sender or WhatsApp account to see the sender or number selected for the publication and caller scope. Requires email:read and domains:read for email, or whatsappAccounts:read for WhatsApp."), HttpApiEndpoint.get("integrationCatalogRecipeSetupsList", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups", {
715
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeReadiness").annotate(OpenApi.Summary, "Read Shopify post-delivery check-in readiness").annotate(OpenApi.Description, "Checks selected resources and plan access. A namespace caller sees its reachable resources. Shopify account and plan fields are null, and full recipe readiness requires organization-wide access. Omit the email sender or WhatsApp account to see the sender or number selected for the publication and caller scope. Requires email:read and domains:read for email, or whatsappAccounts:read for WhatsApp."), HttpApiEndpoint.get("integrationCatalogRecipeSetupsList", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups", {
727
716
  success: IntegrationCatalogRecipeSetupsList200,
728
717
  error: [
729
718
  IntegrationCatalogRecipeSetupsList400.pipe(HttpApiSchema.status(400)),
@@ -786,7 +775,7 @@ var IntegrationsCatalogGroup = class extends HttpApiGroup.make("Integrations cat
786
775
  IntegrationCatalogSearch500,
787
776
  IntegrationCatalogSearch504.pipe(HttpApiSchema.status(504))
788
777
  ]
789
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.search").annotate(OpenApi.Summary, "Search the integrations catalog").annotate(OpenApi.Description, "Searches the providers this organization can connect, by key, text or category. Each entry carries its connection requirements and whether it can connect. Follow nextOffset until it is null.")).annotate(OpenApi.Description, "Providers an organization can connect") {};
778
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.search").annotate(OpenApi.Summary, "Search the integrations catalog").annotate(OpenApi.Description, "Searches the providers this organization can connect, by key, text or category. Each entry carries its connection requirements and whether it can connect. Pass nextCursor back as cursor until it is null.")).annotate(OpenApi.Description, "Providers an organization can connect") {};
790
779
  export { ActivatedRecipeSetup, IntegrationCatalogConnection, IntegrationCatalogEntry, IntegrationCatalogList200, IntegrationCatalogList400, IntegrationCatalogList401, IntegrationCatalogList403, IntegrationCatalogList422, IntegrationCatalogList500, IntegrationCatalogList504, IntegrationCatalogPrepare200, IntegrationCatalogPrepare400, IntegrationCatalogPrepare401, IntegrationCatalogPrepare403, IntegrationCatalogPrepare422, IntegrationCatalogPrepare500, IntegrationCatalogPrepare504, IntegrationCatalogPrepareRequestJson, IntegrationCatalogRecipeCatalog200, IntegrationCatalogRecipeCatalog400, IntegrationCatalogRecipeCatalog401, IntegrationCatalogRecipeCatalog403, IntegrationCatalogRecipeCatalog422, IntegrationCatalogRecipeCatalog500, IntegrationCatalogRecipeCatalog504, IntegrationCatalogRecipeConnectionHandoff200, IntegrationCatalogRecipeConnectionHandoff400, IntegrationCatalogRecipeConnectionHandoff401, IntegrationCatalogRecipeConnectionHandoff403, IntegrationCatalogRecipeConnectionHandoff404, IntegrationCatalogRecipeConnectionHandoff422, IntegrationCatalogRecipeConnectionHandoff500, IntegrationCatalogRecipeConnectionHandoff504, IntegrationCatalogRecipeConnectionHandoffPathParams, IntegrationCatalogRecipeConnectionHandoffQuery, IntegrationCatalogRecipePreview200, IntegrationCatalogRecipePreview400, IntegrationCatalogRecipePreview401, IntegrationCatalogRecipePreview403, IntegrationCatalogRecipePreview404, IntegrationCatalogRecipePreview422, IntegrationCatalogRecipePreview500, IntegrationCatalogRecipePreview504, IntegrationCatalogRecipePreviewRequestJson, IntegrationCatalogRecipeReadiness200, IntegrationCatalogRecipeReadiness400, IntegrationCatalogRecipeReadiness401, IntegrationCatalogRecipeReadiness403, IntegrationCatalogRecipeReadiness422, IntegrationCatalogRecipeReadiness500, IntegrationCatalogRecipeReadiness502, IntegrationCatalogRecipeReadiness504, IntegrationCatalogRecipeReadinessQuery, IntegrationCatalogRecipeSetupActivate200, IntegrationCatalogRecipeSetupActivate400, IntegrationCatalogRecipeSetupActivate401, IntegrationCatalogRecipeSetupActivate402, IntegrationCatalogRecipeSetupActivate403, IntegrationCatalogRecipeSetupActivate404, IntegrationCatalogRecipeSetupActivate409, IntegrationCatalogRecipeSetupActivate422, IntegrationCatalogRecipeSetupActivate500, IntegrationCatalogRecipeSetupActivate502, IntegrationCatalogRecipeSetupActivate504, IntegrationCatalogRecipeSetupActivatePathParams, IntegrationCatalogRecipeSetupActivateRequestJson, IntegrationCatalogRecipeSetupGet200, IntegrationCatalogRecipeSetupGet400, IntegrationCatalogRecipeSetupGet401, IntegrationCatalogRecipeSetupGet403, IntegrationCatalogRecipeSetupGet404, IntegrationCatalogRecipeSetupGet422, IntegrationCatalogRecipeSetupGet500, IntegrationCatalogRecipeSetupGet504, IntegrationCatalogRecipeSetupGetPathParams, IntegrationCatalogRecipeSetupReplace200, IntegrationCatalogRecipeSetupReplace400, IntegrationCatalogRecipeSetupReplace401, IntegrationCatalogRecipeSetupReplace403, IntegrationCatalogRecipeSetupReplace404, IntegrationCatalogRecipeSetupReplace409, IntegrationCatalogRecipeSetupReplace422, IntegrationCatalogRecipeSetupReplace500, IntegrationCatalogRecipeSetupReplace504, IntegrationCatalogRecipeSetupReplacePathParams, IntegrationCatalogRecipeSetupReplaceRequestJson, IntegrationCatalogRecipeSetupsList200, IntegrationCatalogRecipeSetupsList400, IntegrationCatalogRecipeSetupsList401, IntegrationCatalogRecipeSetupsList403, IntegrationCatalogRecipeSetupsList422, IntegrationCatalogRecipeSetupsList500, IntegrationCatalogRecipeSetupsList504, IntegrationCatalogRecipeTest200, IntegrationCatalogRecipeTest400, IntegrationCatalogRecipeTest401, IntegrationCatalogRecipeTest402, IntegrationCatalogRecipeTest403, IntegrationCatalogRecipeTest404, IntegrationCatalogRecipeTest409, IntegrationCatalogRecipeTest422, IntegrationCatalogRecipeTest429, IntegrationCatalogRecipeTest500, IntegrationCatalogRecipeTest502, IntegrationCatalogRecipeTest503, IntegrationCatalogRecipeTest504, IntegrationCatalogRecipeTestHandoff200, IntegrationCatalogRecipeTestHandoff400, IntegrationCatalogRecipeTestHandoff401, IntegrationCatalogRecipeTestHandoff403, IntegrationCatalogRecipeTestHandoff404, IntegrationCatalogRecipeTestHandoff422, IntegrationCatalogRecipeTestHandoff500, IntegrationCatalogRecipeTestHandoff504, IntegrationCatalogRecipeTestHandoffQuery, IntegrationCatalogRecipeTestReceipt200, IntegrationCatalogRecipeTestReceipt400, IntegrationCatalogRecipeTestReceipt401, IntegrationCatalogRecipeTestReceipt403, IntegrationCatalogRecipeTestReceipt404, IntegrationCatalogRecipeTestReceipt422, IntegrationCatalogRecipeTestReceipt500, IntegrationCatalogRecipeTestReceipt504, IntegrationCatalogRecipeTestReceiptPathParams, IntegrationCatalogRecipeTestRequestJson, IntegrationCatalogRecipeWhatsAppChallengeBegin200, IntegrationCatalogRecipeWhatsAppChallengeBegin400, IntegrationCatalogRecipeWhatsAppChallengeBegin401, IntegrationCatalogRecipeWhatsAppChallengeBegin403, IntegrationCatalogRecipeWhatsAppChallengeBegin404, IntegrationCatalogRecipeWhatsAppChallengeBegin409, IntegrationCatalogRecipeWhatsAppChallengeBegin422, IntegrationCatalogRecipeWhatsAppChallengeBegin500, IntegrationCatalogRecipeWhatsAppChallengeBegin504, IntegrationCatalogRecipeWhatsAppChallengeBeginPathParams, IntegrationCatalogRecipeWhatsAppChallengeConfirm200, IntegrationCatalogRecipeWhatsAppChallengeConfirm400, IntegrationCatalogRecipeWhatsAppChallengeConfirm401, IntegrationCatalogRecipeWhatsAppChallengeConfirm403, IntegrationCatalogRecipeWhatsAppChallengeConfirm404, IntegrationCatalogRecipeWhatsAppChallengeConfirm409, IntegrationCatalogRecipeWhatsAppChallengeConfirm422, IntegrationCatalogRecipeWhatsAppChallengeConfirm500, IntegrationCatalogRecipeWhatsAppChallengeConfirm504, IntegrationCatalogRecipeWhatsAppChallengeConfirmPathParams, IntegrationCatalogRecipeWhatsAppChallengeConfirmRequestJson, IntegrationCatalogRecipeWhatsAppChallengeGet200, IntegrationCatalogRecipeWhatsAppChallengeGet400, IntegrationCatalogRecipeWhatsAppChallengeGet401, IntegrationCatalogRecipeWhatsAppChallengeGet403, IntegrationCatalogRecipeWhatsAppChallengeGet404, IntegrationCatalogRecipeWhatsAppChallengeGet409, IntegrationCatalogRecipeWhatsAppChallengeGet422, IntegrationCatalogRecipeWhatsAppChallengeGet500, IntegrationCatalogRecipeWhatsAppChallengeGet504, IntegrationCatalogRecipeWhatsAppChallengeGetPathParams, IntegrationCatalogResponse, IntegrationCatalogSearch200, IntegrationCatalogSearch400, IntegrationCatalogSearch401, IntegrationCatalogSearch403, IntegrationCatalogSearch422, IntegrationCatalogSearch500, IntegrationCatalogSearch504, IntegrationCatalogSearchEntry, IntegrationCatalogSearchPage, IntegrationCatalogSearchQuery, IntegrationsCatalogGroup, RecipeCatalogResponse, RecipeChallengeStarted, RecipeChallengeStatus, RecipeHandoff, RecipePreviewResponse, RecipeReadinessResponse, RecipeSetup, RecipeSetups, RecipeTestReceipt, RecipeTestResponse };
791
780
 
792
781
  //# sourceMappingURL=integrations-catalog.js.map