samva 0.48.0 → 0.50.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 (85) hide show
  1. package/dist/client/sdk.gen.d.ts +272 -33
  2. package/dist/client/sdk.gen.js +693 -55
  3. package/dist/client/types.gen.d.ts +1571 -206
  4. package/dist/effect/accounts.d.ts +6 -6
  5. package/dist/effect/agents.d.ts +13 -13
  6. package/dist/effect/analytics.d.ts +6 -6
  7. package/dist/effect/api-keys.d.ts +11 -11
  8. package/dist/effect/approval-requests.d.ts +4 -4
  9. package/dist/effect/attachments.d.ts +4 -4
  10. package/dist/effect/brands.d.ts +6 -6
  11. package/dist/effect/campaigns.d.ts +15 -15
  12. package/dist/effect/contact-groups.d.ts +10 -10
  13. package/dist/effect/contacts.d.ts +25 -25
  14. package/dist/effect/conversations.d.ts +13 -13
  15. package/dist/effect/custom-fields.d.ts +4 -4
  16. package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
  17. package/dist/effect/descriptors/integrations-catalog.js +122 -0
  18. package/dist/effect/descriptors/mailboxes.d.ts +73 -13
  19. package/dist/effect/descriptors/mailboxes.js +85 -13
  20. package/dist/effect/email.d.ts +61 -61
  21. package/dist/effect/events.d.ts +2 -2
  22. package/dist/effect/feedback.d.ts +1 -1
  23. package/dist/effect/generated/accounts.d.ts +1 -3
  24. package/dist/effect/generated/accounts.js +2 -7
  25. package/dist/effect/generated/api-keys.d.ts +15 -15
  26. package/dist/effect/generated/attachments.js +1 -1
  27. package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
  28. package/dist/effect/generated/integrations-catalog.js +578 -3
  29. package/dist/effect/generated/journeys.d.ts +9 -11
  30. package/dist/effect/generated/journeys.js +6 -12
  31. package/dist/effect/generated/mailboxes.d.ts +1661 -669
  32. package/dist/effect/generated/mailboxes.js +291 -103
  33. package/dist/effect/generated/messages.d.ts +109 -4
  34. package/dist/effect/generated/messages.js +41 -8
  35. package/dist/effect/generated/shared.d.ts +199 -21
  36. package/dist/effect/generated/shared.js +50 -13
  37. package/dist/effect/generated/template-registrations.d.ts +32 -1
  38. package/dist/effect/generated/template-registrations.js +8 -5
  39. package/dist/effect/generated/templates.d.ts +1 -4
  40. package/dist/effect/generated/templates.js +2 -6
  41. package/dist/effect/generated/webhooks.d.ts +19 -19
  42. package/dist/effect/generated/webhooks.js +8 -8
  43. package/dist/effect/generated/whoami.d.ts +4 -4
  44. package/dist/effect/generated-metadata.d.ts +138 -18
  45. package/dist/effect/generated-metadata.js +366 -340
  46. package/dist/effect/integrations-catalog.d.ts +228 -3
  47. package/dist/effect/integrations-catalog.js +29 -1
  48. package/dist/effect/integrations.d.ts +7 -7
  49. package/dist/effect/internal/client.d.ts +7 -3
  50. package/dist/effect/internal/operation.d.ts +10 -6
  51. package/dist/effect/internal/operation.js +3 -3
  52. package/dist/effect/journeys.d.ts +14 -14
  53. package/dist/effect/mailboxes.d.ts +142 -92
  54. package/dist/effect/mailboxes.js +20 -8
  55. package/dist/effect/media.d.ts +5 -5
  56. package/dist/effect/messages.d.ts +9 -9
  57. package/dist/effect/namespaces.d.ts +11 -11
  58. package/dist/effect/newsletter-domains.d.ts +4 -4
  59. package/dist/effect/newsletter-issues.d.ts +11 -11
  60. package/dist/effect/newsletters.d.ts +5 -5
  61. package/dist/effect/operations.d.ts +3 -3
  62. package/dist/effect/organizations.d.ts +12 -12
  63. package/dist/effect/policies.d.ts +3 -3
  64. package/dist/effect/retry.js +1 -1
  65. package/dist/effect/scheduled-messages.d.ts +5 -5
  66. package/dist/effect/subscriptions.d.ts +1 -1
  67. package/dist/effect/template-registrations.d.ts +9 -3
  68. package/dist/effect/template-share-links.d.ts +5 -5
  69. package/dist/effect/templates.d.ts +37 -37
  70. package/dist/effect/topic-forms.d.ts +5 -5
  71. package/dist/effect/topics.d.ts +9 -9
  72. package/dist/effect/webhooks.d.ts +15 -15
  73. package/dist/effect/whatsapp-flows.d.ts +10 -10
  74. package/dist/effect/whatsapp-setup-links.d.ts +4 -4
  75. package/dist/effect/whatsapp.d.ts +12 -12
  76. package/dist/effect/whoami.d.ts +1 -1
  77. package/dist/inline-attachments.d.ts +0 -5
  78. package/dist/mailbox-events.d.ts +1 -5
  79. package/dist/mailbox-events.js +2 -2
  80. package/dist/package.js +1 -1
  81. package/dist/promises/client.d.ts +4 -4
  82. package/dist/promises/client.js +8 -4
  83. package/dist/promises/types.gen.d.ts +1 -1
  84. package/dist/service-map.d.ts +105 -11
  85. package/package.json +3 -3
@@ -1,6 +1,40 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, IntegrationKey, IntegrationStatus, InternalError, JsonObject, MalformedRequestError, UnauthorizedError, ValidationError } from "./shared.js";
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";
4
+ export type RecipeHandoff = {
5
+ readonly url: string;
6
+ readonly organizationSlug: string;
7
+ readonly setupId: string | null;
8
+ };
9
+ export declare const RecipeHandoff: Schema.Struct<{
10
+ readonly url: Schema.String;
11
+ readonly organizationSlug: Schema.String;
12
+ readonly setupId: Schema.Union<readonly [Schema.String, Schema.Null]>;
13
+ }>;
14
+ export type RecipeChallengeStarted = {
15
+ readonly id: string;
16
+ readonly expiresAt: string;
17
+ readonly address: string;
18
+ readonly message: string;
19
+ };
20
+ export declare const RecipeChallengeStarted: Schema.Struct<{
21
+ readonly id: Schema.String;
22
+ readonly expiresAt: Schema.String;
23
+ readonly address: Schema.String;
24
+ readonly message: Schema.String;
25
+ }>;
26
+ export type RecipeChallengeStatus = {
27
+ readonly id: string;
28
+ readonly expiresAt: string;
29
+ readonly observedPhone: string | null;
30
+ readonly confirmedAt: string | null;
31
+ };
32
+ export declare const RecipeChallengeStatus: Schema.Struct<{
33
+ readonly id: Schema.String;
34
+ readonly expiresAt: Schema.String;
35
+ readonly observedPhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
36
+ readonly confirmedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
37
+ }>;
4
38
  export type IntegrationCatalogSearchEntry = {
5
39
  readonly key: IntegrationKey;
6
40
  readonly kind: "mcp" | "openapi" | "graphql";
@@ -69,6 +103,102 @@ export declare const IntegrationCatalogSearchEntry: Schema.Struct<{
69
103
  readonly connectState: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"checkedAtConnect">, Schema.Literal<"unavailable">]>;
70
104
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
71
105
  }>;
106
+ export type RecipeCatalogResponse = {
107
+ readonly recipes: ReadonlyArray<{
108
+ readonly id: "post-delivery-check-in";
109
+ readonly title: string;
110
+ readonly trigger: "shopify.order_created" | "shopify.order_fulfilled" | "shopify.order_delivered" | "shopify.refund_created" | "shopify.checkout_started";
111
+ readonly stopEvent: "shopify.order_created" | "shopify.order_fulfilled" | "shopify.order_delivered" | "shopify.refund_created" | "shopify.checkout_started";
112
+ readonly waitDays: number;
113
+ readonly channels: ReadonlyArray<"email" | "whatsapp">;
114
+ }>;
115
+ readonly events: ReadonlyArray<{
116
+ readonly event: "shopify.order_created" | "shopify.order_fulfilled" | "shopify.order_delivered" | "shopify.refund_created" | "shopify.checkout_started";
117
+ readonly version: number;
118
+ readonly producer: string;
119
+ readonly schema: JsonObject;
120
+ readonly paths: ReadonlyArray<{
121
+ readonly path: string;
122
+ readonly mayBeEmpty: boolean;
123
+ }>;
124
+ readonly samples: ReadonlyArray<{
125
+ readonly fixture: string;
126
+ readonly label: string;
127
+ readonly properties: JsonObject;
128
+ }>;
129
+ }>;
130
+ };
131
+ export declare const RecipeCatalogResponse: Schema.Struct<{
132
+ readonly recipes: Schema.$Array<Schema.Struct<{
133
+ readonly id: Schema.Literal<"post-delivery-check-in">;
134
+ readonly title: Schema.String;
135
+ readonly trigger: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
136
+ readonly stopEvent: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
137
+ readonly waitDays: Schema.Finite;
138
+ readonly channels: Schema.$Array<Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>>;
139
+ }>>;
140
+ readonly events: Schema.$Array<Schema.Struct<{
141
+ readonly event: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
142
+ readonly version: Schema.Finite;
143
+ readonly producer: Schema.String;
144
+ readonly schema: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
145
+ readonly paths: Schema.$Array<Schema.Struct<{
146
+ readonly path: Schema.String;
147
+ readonly mayBeEmpty: Schema.Boolean;
148
+ }>>;
149
+ readonly samples: Schema.$Array<Schema.Struct<{
150
+ readonly fixture: Schema.String;
151
+ readonly label: Schema.String;
152
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
153
+ }>>;
154
+ }>>;
155
+ }>;
156
+ export type RecipeTestResponse = {
157
+ readonly messageId: MessageId;
158
+ };
159
+ export declare const RecipeTestResponse: Schema.Struct<{
160
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
161
+ }>;
162
+ export type RecipeTestReceipt = {
163
+ readonly messageId: MessageId;
164
+ readonly state: "queued" | "unresolved" | "rejected";
165
+ };
166
+ export declare const RecipeTestReceipt: Schema.Struct<{
167
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
168
+ readonly state: Schema.Union<readonly [Schema.Literal<"queued">, Schema.Literal<"unresolved">, Schema.Literal<"rejected">]>;
169
+ }>;
170
+ export type RecipePreviewResponse = {
171
+ readonly fixture: string;
172
+ readonly publicationId: TemplatePublicationId;
173
+ readonly channel: "email";
174
+ readonly content: {
175
+ readonly subject: string;
176
+ readonly preheader?: string;
177
+ readonly html: string;
178
+ readonly text: string;
179
+ };
180
+ } | {
181
+ readonly fixture: string;
182
+ readonly publicationId: TemplatePublicationId;
183
+ readonly channel: "whatsapp";
184
+ readonly content: JsonObject;
185
+ };
186
+ export declare const RecipePreviewResponse: Schema.Union<readonly [Schema.Struct<{
187
+ readonly fixture: Schema.String;
188
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
189
+ readonly channel: Schema.Literal<"email">;
190
+ readonly content: Schema.Struct<{
191
+ readonly subject: Schema.String;
192
+ readonly preheader: Schema.optionalKey<Schema.String>;
193
+ readonly html: Schema.String;
194
+ readonly text: Schema.String;
195
+ }>;
196
+ }>, Schema.Struct<{
197
+ readonly fixture: Schema.String;
198
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
199
+ readonly channel: Schema.Literal<"whatsapp">;
200
+ readonly content: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
201
+ }>]>;
72
202
  export type IntegrationCatalogConnection = {
73
203
  readonly id: string;
74
204
  readonly account: string | null;
@@ -79,6 +209,96 @@ export declare const IntegrationCatalogConnection: Schema.Struct<{
79
209
  readonly account: Schema.Union<readonly [Schema.String, Schema.Null]>;
80
210
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
81
211
  }>;
212
+ export type RecipeReadinessResponse = {
213
+ readonly ready: boolean;
214
+ readonly channel: "email" | "whatsapp";
215
+ readonly availability: {
216
+ readonly shopify: boolean;
217
+ readonly journeys: boolean;
218
+ readonly whatsapp: boolean;
219
+ readonly plan: "granted" | "denied" | "unreachable" | "disabled" | null;
220
+ };
221
+ readonly shopify: {
222
+ readonly id: IntegrationAccountId;
223
+ readonly status: AccountStatus;
224
+ readonly shop: string;
225
+ } | null;
226
+ readonly publication: {
227
+ readonly id: TemplatePublicationId;
228
+ readonly templateId: TemplateId;
229
+ readonly parameters?: ReadonlyArray<{
230
+ readonly name: string;
231
+ readonly required: boolean;
232
+ }>;
233
+ readonly inputIssues?: ReadonlyArray<string>;
234
+ } | null;
235
+ readonly email: {
236
+ readonly senderId: EmailSenderId | null;
237
+ readonly domainId: EmailDomainId | null;
238
+ readonly address: string;
239
+ readonly status: "ready" | "unverified" | "inactive";
240
+ } | null;
241
+ readonly whatsapp: {
242
+ readonly accountId: WhatsAppBusinessAccountId;
243
+ readonly address: string;
244
+ readonly status: "ready" | "reconnect" | "unverified" | "inactive";
245
+ readonly registration: {
246
+ readonly id: TemplateRegistrationId;
247
+ readonly status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
248
+ } | null;
249
+ } | null;
250
+ readonly reply: {
251
+ readonly endpointId: MailboxEndpointId;
252
+ readonly mailboxId: MailboxId;
253
+ readonly address: string;
254
+ readonly status: "ready" | "inactive" | "different_account";
255
+ } | null;
256
+ };
257
+ export declare const RecipeReadinessResponse: Schema.Struct<{
258
+ readonly ready: Schema.Boolean;
259
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
260
+ 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]>;
265
+ }>;
266
+ readonly shopify: Schema.Union<readonly [Schema.Struct<{
267
+ readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
268
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
269
+ readonly shop: Schema.String;
270
+ }>, Schema.Null]>;
271
+ readonly publication: Schema.Union<readonly [Schema.Struct<{
272
+ readonly id: Schema.brand<Schema.String, "TemplatePublicationId">;
273
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
274
+ readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
275
+ readonly name: Schema.String;
276
+ readonly required: Schema.Boolean;
277
+ }>>>;
278
+ readonly inputIssues: Schema.optionalKey<Schema.$Array<Schema.String>>;
279
+ }>, Schema.Null]>;
280
+ readonly email: Schema.Union<readonly [Schema.Struct<{
281
+ readonly senderId: Schema.Union<readonly [Schema.brand<Schema.String, "EmailSenderId">, Schema.Null]>;
282
+ readonly domainId: Schema.Union<readonly [Schema.brand<Schema.String, "EmailDomainId">, Schema.Null]>;
283
+ readonly address: Schema.String;
284
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
285
+ }>, Schema.Null]>;
286
+ readonly whatsapp: Schema.Union<readonly [Schema.Struct<{
287
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
288
+ readonly address: Schema.String;
289
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
290
+ readonly registration: Schema.Union<readonly [Schema.Struct<{
291
+ readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
292
+ readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
293
+ }>, Schema.Null]>;
294
+ }>, Schema.Null]>;
295
+ readonly reply: Schema.Union<readonly [Schema.Struct<{
296
+ readonly endpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
297
+ readonly mailboxId: Schema.brand<Schema.String, "MailboxId">;
298
+ readonly address: Schema.String;
299
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"inactive">, Schema.Literal<"different_account">]>;
300
+ }>, Schema.Null]>;
301
+ }>;
82
302
  export type IntegrationCatalogSearchPage = {
83
303
  readonly items: ReadonlyArray<IntegrationCatalogSearchEntry>;
84
304
  readonly total: number;
@@ -154,6 +374,29 @@ export declare const IntegrationCatalogEntry: Schema.Struct<{
154
374
  readonly journeys: Schema.Finite;
155
375
  }>;
156
376
  }>;
377
+ export type RecipeSetup = {
378
+ readonly id: string;
379
+ readonly revision: string;
380
+ readonly references: RecipeSetupReferences;
381
+ readonly updatedAt: string;
382
+ };
383
+ export declare const RecipeSetup: Schema.Struct<{
384
+ readonly id: Schema.String;
385
+ readonly revision: Schema.String;
386
+ readonly references: Schema.Struct<{
387
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
388
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
389
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
390
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
391
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
392
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
393
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
394
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
395
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
396
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
397
+ }>;
398
+ readonly updatedAt: Schema.String;
399
+ }>;
157
400
  export type IntegrationCatalogResponse = {
158
401
  readonly entries: ReadonlyArray<IntegrationCatalogEntry>;
159
402
  };
@@ -178,6 +421,60 @@ export declare const IntegrationCatalogResponse: Schema.Struct<{
178
421
  }>;
179
422
  }>>;
180
423
  }>;
424
+ export type RecipeSetups = {
425
+ readonly items: ReadonlyArray<RecipeSetup>;
426
+ };
427
+ export declare const RecipeSetups: Schema.Struct<{
428
+ readonly items: Schema.$Array<Schema.Struct<{
429
+ readonly id: Schema.String;
430
+ readonly revision: Schema.String;
431
+ readonly references: Schema.Struct<{
432
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
433
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
434
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
435
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
436
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
437
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
438
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
439
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
440
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
441
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
442
+ }>;
443
+ readonly updatedAt: Schema.String;
444
+ }>>;
445
+ }>;
446
+ export type ActivatedRecipeSetup = {
447
+ readonly setup: RecipeSetup;
448
+ readonly journey: {
449
+ readonly id: JourneyId;
450
+ readonly status: JourneyStatus;
451
+ readonly publishedVersion: number;
452
+ };
453
+ };
454
+ export declare const ActivatedRecipeSetup: Schema.Struct<{
455
+ readonly setup: Schema.Struct<{
456
+ readonly id: Schema.String;
457
+ readonly revision: Schema.String;
458
+ readonly references: Schema.Struct<{
459
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
460
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
461
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
462
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
463
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
464
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
465
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
466
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
467
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
468
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
469
+ }>;
470
+ readonly updatedAt: Schema.String;
471
+ }>;
472
+ readonly journey: Schema.Struct<{
473
+ readonly id: Schema.brand<Schema.String, "JourneyId">;
474
+ readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
475
+ readonly publishedVersion: Schema.Finite;
476
+ }>;
477
+ }>;
181
478
  export type IntegrationCatalogList200 = IntegrationCatalogResponse;
182
479
  export declare const IntegrationCatalogList200: Schema.Struct<{
183
480
  readonly entries: Schema.$Array<Schema.Struct<{
@@ -278,6 +575,667 @@ export type IntegrationCatalogPrepare500 = InternalError;
278
575
  export declare const IntegrationCatalogPrepare500: typeof InternalError;
279
576
  export type IntegrationCatalogPrepare504 = GatewayTimeoutError;
280
577
  export declare const IntegrationCatalogPrepare504: typeof GatewayTimeoutError;
578
+ export type IntegrationCatalogRecipeCatalog200 = RecipeCatalogResponse;
579
+ export declare const IntegrationCatalogRecipeCatalog200: Schema.Struct<{
580
+ readonly recipes: Schema.$Array<Schema.Struct<{
581
+ readonly id: Schema.Literal<"post-delivery-check-in">;
582
+ readonly title: Schema.String;
583
+ readonly trigger: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
584
+ readonly stopEvent: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
585
+ readonly waitDays: Schema.Finite;
586
+ readonly channels: Schema.$Array<Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>>;
587
+ }>>;
588
+ readonly events: Schema.$Array<Schema.Struct<{
589
+ readonly event: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
590
+ readonly version: Schema.Finite;
591
+ readonly producer: Schema.String;
592
+ readonly schema: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
593
+ readonly paths: Schema.$Array<Schema.Struct<{
594
+ readonly path: Schema.String;
595
+ readonly mayBeEmpty: Schema.Boolean;
596
+ }>>;
597
+ readonly samples: Schema.$Array<Schema.Struct<{
598
+ readonly fixture: Schema.String;
599
+ readonly label: Schema.String;
600
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
601
+ }>>;
602
+ }>>;
603
+ }>;
604
+ export type IntegrationCatalogRecipeCatalog400 = MalformedRequestError;
605
+ export declare const IntegrationCatalogRecipeCatalog400: typeof MalformedRequestError;
606
+ export type IntegrationCatalogRecipeCatalog401 = UnauthorizedError;
607
+ export declare const IntegrationCatalogRecipeCatalog401: typeof UnauthorizedError;
608
+ export type IntegrationCatalogRecipeCatalog403 = ForbiddenError;
609
+ export declare const IntegrationCatalogRecipeCatalog403: typeof ForbiddenError;
610
+ export type IntegrationCatalogRecipeCatalog422 = ValidationError;
611
+ export declare const IntegrationCatalogRecipeCatalog422: typeof ValidationError;
612
+ export type IntegrationCatalogRecipeCatalog500 = InternalError;
613
+ export declare const IntegrationCatalogRecipeCatalog500: typeof InternalError;
614
+ export type IntegrationCatalogRecipeCatalog504 = GatewayTimeoutError;
615
+ export declare const IntegrationCatalogRecipeCatalog504: typeof GatewayTimeoutError;
616
+ export type IntegrationCatalogRecipeConnectionHandoffPathParams = {
617
+ readonly provider: "shopify" | "whatsapp";
618
+ };
619
+ export declare const IntegrationCatalogRecipeConnectionHandoffPathParams: Schema.Struct<{
620
+ readonly provider: Schema.Union<readonly [Schema.Literal<"shopify">, Schema.Literal<"whatsapp">]>;
621
+ }>;
622
+ export type IntegrationCatalogRecipeConnectionHandoffQuery = {
623
+ readonly integrationAccountId?: IntegrationAccountId;
624
+ readonly whatsappAccountId?: WhatsAppBusinessAccountId;
625
+ readonly setupId?: string;
626
+ };
627
+ export declare const IntegrationCatalogRecipeConnectionHandoffQuery: Schema.Struct<{
628
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
629
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
630
+ readonly setupId: Schema.optionalKey<Schema.String>;
631
+ }>;
632
+ export type IntegrationCatalogRecipeConnectionHandoff200 = RecipeHandoff;
633
+ export declare const IntegrationCatalogRecipeConnectionHandoff200: Schema.Struct<{
634
+ readonly url: Schema.String;
635
+ readonly organizationSlug: Schema.String;
636
+ readonly setupId: Schema.Union<readonly [Schema.String, Schema.Null]>;
637
+ }>;
638
+ export type IntegrationCatalogRecipeConnectionHandoff400 = MalformedRequestError;
639
+ export declare const IntegrationCatalogRecipeConnectionHandoff400: typeof MalformedRequestError;
640
+ export type IntegrationCatalogRecipeConnectionHandoff401 = UnauthorizedError;
641
+ export declare const IntegrationCatalogRecipeConnectionHandoff401: typeof UnauthorizedError;
642
+ export type IntegrationCatalogRecipeConnectionHandoff403 = ForbiddenError | FlagDisabledError;
643
+ export declare const IntegrationCatalogRecipeConnectionHandoff403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
644
+ export type IntegrationCatalogRecipeConnectionHandoff404 = ResourceNotFoundError;
645
+ export declare const IntegrationCatalogRecipeConnectionHandoff404: typeof ResourceNotFoundError;
646
+ export type IntegrationCatalogRecipeConnectionHandoff422 = ValidationError;
647
+ export declare const IntegrationCatalogRecipeConnectionHandoff422: typeof ValidationError;
648
+ export type IntegrationCatalogRecipeConnectionHandoff500 = InternalError;
649
+ export declare const IntegrationCatalogRecipeConnectionHandoff500: typeof InternalError;
650
+ export type IntegrationCatalogRecipeConnectionHandoff504 = GatewayTimeoutError;
651
+ export declare const IntegrationCatalogRecipeConnectionHandoff504: typeof GatewayTimeoutError;
652
+ export type IntegrationCatalogRecipeTestRequestJson = {
653
+ readonly templateId: TemplateId;
654
+ readonly publicationId: TemplatePublicationId;
655
+ readonly fixture?: string;
656
+ readonly templateData?: JsonObject;
657
+ readonly channel: "email";
658
+ readonly requestId: string;
659
+ readonly mailboxEndpointId: MailboxEndpointId;
660
+ readonly topicId?: TopicId;
661
+ readonly senderId?: EmailSenderId;
662
+ } | {
663
+ readonly templateId: TemplateId;
664
+ readonly publicationId: TemplatePublicationId;
665
+ readonly fixture?: string;
666
+ readonly templateData?: JsonObject;
667
+ readonly channel: "whatsapp";
668
+ readonly eventBindings?: {
669
+ readonly [x: string]: string;
670
+ };
671
+ readonly requestId: string;
672
+ readonly mailboxEndpointId: MailboxEndpointId;
673
+ readonly topicId?: TopicId;
674
+ readonly businessAccountId: WhatsAppBusinessAccountId;
675
+ readonly registrationId: TemplateRegistrationId;
676
+ readonly challengeId: string;
677
+ };
678
+ export declare const IntegrationCatalogRecipeTestRequestJson: Schema.Union<readonly [Schema.Struct<{
679
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
680
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
681
+ readonly fixture: Schema.optionalKey<Schema.String>;
682
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
683
+ readonly channel: Schema.Literal<"email">;
684
+ readonly requestId: Schema.String;
685
+ readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
686
+ readonly topicId: Schema.optionalKey<Schema.brand<Schema.String, "TopicId">>;
687
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
688
+ }>, Schema.Struct<{
689
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
690
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
691
+ readonly fixture: Schema.optionalKey<Schema.String>;
692
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
693
+ readonly channel: Schema.Literal<"whatsapp">;
694
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
695
+ readonly requestId: Schema.String;
696
+ readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
697
+ readonly topicId: Schema.optionalKey<Schema.brand<Schema.String, "TopicId">>;
698
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
699
+ readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
700
+ readonly challengeId: Schema.String;
701
+ }>]>;
702
+ export type IntegrationCatalogRecipeTest200 = RecipeTestResponse;
703
+ export declare const IntegrationCatalogRecipeTest200: Schema.Struct<{
704
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
705
+ }>;
706
+ export type IntegrationCatalogRecipeTest400 = MalformedRequestError;
707
+ export declare const IntegrationCatalogRecipeTest400: typeof MalformedRequestError;
708
+ export type IntegrationCatalogRecipeTest401 = UnauthorizedError;
709
+ export declare const IntegrationCatalogRecipeTest401: typeof UnauthorizedError;
710
+ export type IntegrationCatalogRecipeTest402 = PaymentRequiredError;
711
+ 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]>;
714
+ export type IntegrationCatalogRecipeTest404 = ResourceNotFoundError;
715
+ export declare const IntegrationCatalogRecipeTest404: typeof ResourceNotFoundError;
716
+ export type IntegrationCatalogRecipeTest409 = ConflictError;
717
+ export declare const IntegrationCatalogRecipeTest409: typeof ConflictError;
718
+ export type IntegrationCatalogRecipeTest422 = ValidationError | FromAddressRequiredError | BrandAddressRequiredError | CampaignFooterRequiredError;
719
+ export declare const IntegrationCatalogRecipeTest422: Schema.Union<readonly [typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]>;
720
+ export type IntegrationCatalogRecipeTest429 = RateLimitedError;
721
+ export declare const IntegrationCatalogRecipeTest429: typeof RateLimitedError;
722
+ export type IntegrationCatalogRecipeTest500 = InternalError;
723
+ export declare const IntegrationCatalogRecipeTest500: typeof InternalError;
724
+ export type IntegrationCatalogRecipeTest502 = BillingProviderError | ExternalServiceError;
725
+ export declare const IntegrationCatalogRecipeTest502: Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]>;
726
+ export type IntegrationCatalogRecipeTest503 = SenderNotReadyError | DeliveryUnavailableError;
727
+ export declare const IntegrationCatalogRecipeTest503: Schema.Union<readonly [typeof SenderNotReadyError, typeof DeliveryUnavailableError]>;
728
+ export type IntegrationCatalogRecipeTest504 = GatewayTimeoutError;
729
+ export declare const IntegrationCatalogRecipeTest504: typeof GatewayTimeoutError;
730
+ export type IntegrationCatalogRecipeTestReceiptPathParams = {
731
+ readonly requestId: string;
732
+ };
733
+ export declare const IntegrationCatalogRecipeTestReceiptPathParams: Schema.Struct<{
734
+ readonly requestId: Schema.String;
735
+ }>;
736
+ export type IntegrationCatalogRecipeTestReceipt200 = RecipeTestReceipt | null;
737
+ export declare const IntegrationCatalogRecipeTestReceipt200: Schema.Union<readonly [Schema.Struct<{
738
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
739
+ readonly state: Schema.Union<readonly [Schema.Literal<"queued">, Schema.Literal<"unresolved">, Schema.Literal<"rejected">]>;
740
+ }>, Schema.Null]>;
741
+ export type IntegrationCatalogRecipeTestReceipt400 = MalformedRequestError;
742
+ export declare const IntegrationCatalogRecipeTestReceipt400: typeof MalformedRequestError;
743
+ export type IntegrationCatalogRecipeTestReceipt401 = UnauthorizedError;
744
+ export declare const IntegrationCatalogRecipeTestReceipt401: typeof UnauthorizedError;
745
+ export type IntegrationCatalogRecipeTestReceipt403 = ForbiddenError;
746
+ export declare const IntegrationCatalogRecipeTestReceipt403: typeof ForbiddenError;
747
+ export type IntegrationCatalogRecipeTestReceipt404 = ResourceNotFoundError;
748
+ export declare const IntegrationCatalogRecipeTestReceipt404: typeof ResourceNotFoundError;
749
+ export type IntegrationCatalogRecipeTestReceipt422 = ValidationError;
750
+ export declare const IntegrationCatalogRecipeTestReceipt422: typeof ValidationError;
751
+ export type IntegrationCatalogRecipeTestReceipt500 = InternalError;
752
+ export declare const IntegrationCatalogRecipeTestReceipt500: typeof InternalError;
753
+ export type IntegrationCatalogRecipeTestReceipt504 = GatewayTimeoutError;
754
+ export declare const IntegrationCatalogRecipeTestReceipt504: typeof GatewayTimeoutError;
755
+ export type IntegrationCatalogRecipeTestHandoffQuery = {
756
+ readonly channel: "email" | "whatsapp";
757
+ readonly templateId: TemplateId;
758
+ readonly publicationId: TemplatePublicationId;
759
+ readonly mailboxEndpointId: MailboxEndpointId;
760
+ readonly fixture?: string;
761
+ readonly senderId?: EmailSenderId;
762
+ readonly businessAccountId?: WhatsAppBusinessAccountId;
763
+ readonly registrationId?: TemplateRegistrationId;
764
+ };
765
+ export declare const IntegrationCatalogRecipeTestHandoffQuery: Schema.Struct<{
766
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
767
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
768
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
769
+ readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
770
+ readonly fixture: Schema.optionalKey<Schema.String>;
771
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
772
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
773
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
774
+ }>;
775
+ export type IntegrationCatalogRecipeTestHandoff200 = RecipeHandoff;
776
+ export declare const IntegrationCatalogRecipeTestHandoff200: Schema.Struct<{
777
+ readonly url: Schema.String;
778
+ readonly organizationSlug: Schema.String;
779
+ readonly setupId: Schema.Union<readonly [Schema.String, Schema.Null]>;
780
+ }>;
781
+ export type IntegrationCatalogRecipeTestHandoff400 = MalformedRequestError;
782
+ export declare const IntegrationCatalogRecipeTestHandoff400: typeof MalformedRequestError;
783
+ export type IntegrationCatalogRecipeTestHandoff401 = UnauthorizedError;
784
+ export declare const IntegrationCatalogRecipeTestHandoff401: typeof UnauthorizedError;
785
+ export type IntegrationCatalogRecipeTestHandoff403 = ForbiddenError;
786
+ export declare const IntegrationCatalogRecipeTestHandoff403: typeof ForbiddenError;
787
+ export type IntegrationCatalogRecipeTestHandoff404 = ResourceNotFoundError;
788
+ export declare const IntegrationCatalogRecipeTestHandoff404: typeof ResourceNotFoundError;
789
+ export type IntegrationCatalogRecipeTestHandoff422 = ValidationError;
790
+ export declare const IntegrationCatalogRecipeTestHandoff422: typeof ValidationError;
791
+ export type IntegrationCatalogRecipeTestHandoff500 = InternalError;
792
+ export declare const IntegrationCatalogRecipeTestHandoff500: typeof InternalError;
793
+ export type IntegrationCatalogRecipeTestHandoff504 = GatewayTimeoutError;
794
+ export declare const IntegrationCatalogRecipeTestHandoff504: typeof GatewayTimeoutError;
795
+ export type IntegrationCatalogRecipeWhatsAppChallengeBeginPathParams = {
796
+ readonly accountId: WhatsAppBusinessAccountId;
797
+ };
798
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBeginPathParams: Schema.Struct<{
799
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
800
+ }>;
801
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin200 = RecipeChallengeStarted;
802
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin200: Schema.Struct<{
803
+ readonly id: Schema.String;
804
+ readonly expiresAt: Schema.String;
805
+ readonly address: Schema.String;
806
+ readonly message: Schema.String;
807
+ }>;
808
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin400 = MalformedRequestError;
809
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin400: typeof MalformedRequestError;
810
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin401 = UnauthorizedError;
811
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin401: typeof UnauthorizedError;
812
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin403 = ForbiddenError | FlagDisabledError;
813
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
814
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin404 = ResourceNotFoundError;
815
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin404: typeof ResourceNotFoundError;
816
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin409 = ConflictError;
817
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin409: typeof ConflictError;
818
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin422 = ValidationError;
819
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin422: typeof ValidationError;
820
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin500 = InternalError;
821
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin500: typeof InternalError;
822
+ export type IntegrationCatalogRecipeWhatsAppChallengeBegin504 = GatewayTimeoutError;
823
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeBegin504: typeof GatewayTimeoutError;
824
+ export type IntegrationCatalogRecipeWhatsAppChallengeGetPathParams = {
825
+ readonly accountId: WhatsAppBusinessAccountId;
826
+ readonly id: string;
827
+ };
828
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGetPathParams: Schema.Struct<{
829
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
830
+ readonly id: Schema.String;
831
+ }>;
832
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet200 = RecipeChallengeStatus;
833
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet200: Schema.Struct<{
834
+ readonly id: Schema.String;
835
+ readonly expiresAt: Schema.String;
836
+ readonly observedPhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
837
+ readonly confirmedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
838
+ }>;
839
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet400 = MalformedRequestError;
840
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet400: typeof MalformedRequestError;
841
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet401 = UnauthorizedError;
842
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet401: typeof UnauthorizedError;
843
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet403 = ForbiddenError | FlagDisabledError;
844
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
845
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet404 = ResourceNotFoundError;
846
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet404: typeof ResourceNotFoundError;
847
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet409 = ConflictError;
848
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet409: typeof ConflictError;
849
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet422 = ValidationError;
850
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet422: typeof ValidationError;
851
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet500 = InternalError;
852
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet500: typeof InternalError;
853
+ export type IntegrationCatalogRecipeWhatsAppChallengeGet504 = GatewayTimeoutError;
854
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeGet504: typeof GatewayTimeoutError;
855
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirmPathParams = {
856
+ readonly accountId: WhatsAppBusinessAccountId;
857
+ readonly id: string;
858
+ };
859
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirmPathParams: Schema.Struct<{
860
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
861
+ readonly id: Schema.String;
862
+ }>;
863
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirmRequestJson = {
864
+ readonly observedPhone: string;
865
+ };
866
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirmRequestJson: Schema.Struct<{
867
+ readonly observedPhone: Schema.String;
868
+ }>;
869
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm200 = RecipeChallengeStatus;
870
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm200: Schema.Struct<{
871
+ readonly id: Schema.String;
872
+ readonly expiresAt: Schema.String;
873
+ readonly observedPhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
874
+ readonly confirmedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
875
+ }>;
876
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm400 = MalformedRequestError;
877
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm400: typeof MalformedRequestError;
878
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm401 = UnauthorizedError;
879
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm401: typeof UnauthorizedError;
880
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm403 = ForbiddenError | FlagDisabledError;
881
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
882
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm404 = ResourceNotFoundError;
883
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm404: typeof ResourceNotFoundError;
884
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm409 = ConflictError;
885
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm409: typeof ConflictError;
886
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm422 = ValidationError;
887
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm422: typeof ValidationError;
888
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm500 = InternalError;
889
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm500: typeof InternalError;
890
+ export type IntegrationCatalogRecipeWhatsAppChallengeConfirm504 = GatewayTimeoutError;
891
+ export declare const IntegrationCatalogRecipeWhatsAppChallengeConfirm504: typeof GatewayTimeoutError;
892
+ export type IntegrationCatalogRecipePreviewRequestJson = {
893
+ readonly templateId: TemplateId;
894
+ readonly publicationId: TemplatePublicationId;
895
+ readonly fixture?: string;
896
+ readonly templateData?: JsonObject;
897
+ readonly channel: "email";
898
+ } | {
899
+ readonly templateId: TemplateId;
900
+ readonly publicationId: TemplatePublicationId;
901
+ readonly fixture?: string;
902
+ readonly templateData?: JsonObject;
903
+ readonly channel: "whatsapp";
904
+ readonly eventBindings?: {
905
+ readonly [x: string]: string;
906
+ };
907
+ };
908
+ export declare const IntegrationCatalogRecipePreviewRequestJson: Schema.Union<readonly [Schema.Struct<{
909
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
910
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
911
+ readonly fixture: Schema.optionalKey<Schema.String>;
912
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
913
+ readonly channel: Schema.Literal<"email">;
914
+ }>, Schema.Struct<{
915
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
916
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
917
+ readonly fixture: Schema.optionalKey<Schema.String>;
918
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
919
+ readonly channel: Schema.Literal<"whatsapp">;
920
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
921
+ }>]>;
922
+ export type IntegrationCatalogRecipePreview200 = RecipePreviewResponse;
923
+ export declare const IntegrationCatalogRecipePreview200: Schema.Union<readonly [Schema.Struct<{
924
+ readonly fixture: Schema.String;
925
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
926
+ readonly channel: Schema.Literal<"email">;
927
+ readonly content: Schema.Struct<{
928
+ readonly subject: Schema.String;
929
+ readonly preheader: Schema.optionalKey<Schema.String>;
930
+ readonly html: Schema.String;
931
+ readonly text: Schema.String;
932
+ }>;
933
+ }>, Schema.Struct<{
934
+ readonly fixture: Schema.String;
935
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
936
+ readonly channel: Schema.Literal<"whatsapp">;
937
+ readonly content: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
938
+ }>]>;
939
+ export type IntegrationCatalogRecipePreview400 = MalformedRequestError;
940
+ export declare const IntegrationCatalogRecipePreview400: typeof MalformedRequestError;
941
+ export type IntegrationCatalogRecipePreview401 = UnauthorizedError;
942
+ export declare const IntegrationCatalogRecipePreview401: typeof UnauthorizedError;
943
+ export type IntegrationCatalogRecipePreview403 = ForbiddenError;
944
+ export declare const IntegrationCatalogRecipePreview403: typeof ForbiddenError;
945
+ export type IntegrationCatalogRecipePreview404 = ResourceNotFoundError;
946
+ export declare const IntegrationCatalogRecipePreview404: typeof ResourceNotFoundError;
947
+ export type IntegrationCatalogRecipePreview422 = ValidationError;
948
+ export declare const IntegrationCatalogRecipePreview422: typeof ValidationError;
949
+ export type IntegrationCatalogRecipePreview500 = InternalError;
950
+ export declare const IntegrationCatalogRecipePreview500: typeof InternalError;
951
+ export type IntegrationCatalogRecipePreview504 = GatewayTimeoutError;
952
+ export declare const IntegrationCatalogRecipePreview504: typeof GatewayTimeoutError;
953
+ export type IntegrationCatalogRecipeReadinessQuery = {
954
+ readonly channel: "email" | "whatsapp";
955
+ readonly integrationAccountId?: IntegrationAccountId;
956
+ readonly publicationId?: TemplatePublicationId;
957
+ readonly senderId?: EmailSenderId;
958
+ readonly whatsappAccountId?: WhatsAppBusinessAccountId;
959
+ readonly registrationId?: TemplateRegistrationId;
960
+ readonly mailboxEndpointId?: MailboxEndpointId;
961
+ };
962
+ export declare const IntegrationCatalogRecipeReadinessQuery: Schema.Struct<{
963
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
964
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
965
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
966
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
967
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
968
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
969
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
970
+ }>;
971
+ export type IntegrationCatalogRecipeReadiness200 = RecipeReadinessResponse;
972
+ export declare const IntegrationCatalogRecipeReadiness200: Schema.Struct<{
973
+ readonly ready: Schema.Boolean;
974
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
975
+ 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]>;
980
+ }>;
981
+ readonly shopify: Schema.Union<readonly [Schema.Struct<{
982
+ readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
983
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
984
+ readonly shop: Schema.String;
985
+ }>, Schema.Null]>;
986
+ readonly publication: Schema.Union<readonly [Schema.Struct<{
987
+ readonly id: Schema.brand<Schema.String, "TemplatePublicationId">;
988
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
989
+ readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
990
+ readonly name: Schema.String;
991
+ readonly required: Schema.Boolean;
992
+ }>>>;
993
+ readonly inputIssues: Schema.optionalKey<Schema.$Array<Schema.String>>;
994
+ }>, Schema.Null]>;
995
+ readonly email: Schema.Union<readonly [Schema.Struct<{
996
+ readonly senderId: Schema.Union<readonly [Schema.brand<Schema.String, "EmailSenderId">, Schema.Null]>;
997
+ readonly domainId: Schema.Union<readonly [Schema.brand<Schema.String, "EmailDomainId">, Schema.Null]>;
998
+ readonly address: Schema.String;
999
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
1000
+ }>, Schema.Null]>;
1001
+ readonly whatsapp: Schema.Union<readonly [Schema.Struct<{
1002
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1003
+ readonly address: Schema.String;
1004
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
1005
+ readonly registration: Schema.Union<readonly [Schema.Struct<{
1006
+ readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
1007
+ readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
1008
+ }>, Schema.Null]>;
1009
+ }>, Schema.Null]>;
1010
+ readonly reply: Schema.Union<readonly [Schema.Struct<{
1011
+ readonly endpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
1012
+ readonly mailboxId: Schema.brand<Schema.String, "MailboxId">;
1013
+ readonly address: Schema.String;
1014
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"inactive">, Schema.Literal<"different_account">]>;
1015
+ }>, Schema.Null]>;
1016
+ }>;
1017
+ export type IntegrationCatalogRecipeReadiness400 = MalformedRequestError;
1018
+ export declare const IntegrationCatalogRecipeReadiness400: typeof MalformedRequestError;
1019
+ export type IntegrationCatalogRecipeReadiness401 = UnauthorizedError;
1020
+ export declare const IntegrationCatalogRecipeReadiness401: typeof UnauthorizedError;
1021
+ export type IntegrationCatalogRecipeReadiness403 = ForbiddenError;
1022
+ export declare const IntegrationCatalogRecipeReadiness403: typeof ForbiddenError;
1023
+ export type IntegrationCatalogRecipeReadiness422 = ValidationError;
1024
+ export declare const IntegrationCatalogRecipeReadiness422: typeof ValidationError;
1025
+ export type IntegrationCatalogRecipeReadiness500 = InternalError;
1026
+ export declare const IntegrationCatalogRecipeReadiness500: typeof InternalError;
1027
+ export type IntegrationCatalogRecipeReadiness502 = BillingProviderError;
1028
+ export declare const IntegrationCatalogRecipeReadiness502: typeof BillingProviderError;
1029
+ export type IntegrationCatalogRecipeReadiness504 = GatewayTimeoutError;
1030
+ export declare const IntegrationCatalogRecipeReadiness504: typeof GatewayTimeoutError;
1031
+ export type IntegrationCatalogRecipeSetupsList200 = RecipeSetups;
1032
+ export declare const IntegrationCatalogRecipeSetupsList200: Schema.Struct<{
1033
+ readonly items: Schema.$Array<Schema.Struct<{
1034
+ readonly id: Schema.String;
1035
+ readonly revision: Schema.String;
1036
+ readonly references: Schema.Struct<{
1037
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
1038
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
1039
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
1040
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1041
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1042
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1043
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
1044
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
1045
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
1046
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1047
+ }>;
1048
+ readonly updatedAt: Schema.String;
1049
+ }>>;
1050
+ }>;
1051
+ export type IntegrationCatalogRecipeSetupsList400 = MalformedRequestError;
1052
+ export declare const IntegrationCatalogRecipeSetupsList400: typeof MalformedRequestError;
1053
+ export type IntegrationCatalogRecipeSetupsList401 = UnauthorizedError;
1054
+ export declare const IntegrationCatalogRecipeSetupsList401: typeof UnauthorizedError;
1055
+ export type IntegrationCatalogRecipeSetupsList403 = ForbiddenError;
1056
+ export declare const IntegrationCatalogRecipeSetupsList403: typeof ForbiddenError;
1057
+ export type IntegrationCatalogRecipeSetupsList422 = ValidationError;
1058
+ export declare const IntegrationCatalogRecipeSetupsList422: typeof ValidationError;
1059
+ export type IntegrationCatalogRecipeSetupsList500 = InternalError;
1060
+ export declare const IntegrationCatalogRecipeSetupsList500: typeof InternalError;
1061
+ export type IntegrationCatalogRecipeSetupsList504 = GatewayTimeoutError;
1062
+ export declare const IntegrationCatalogRecipeSetupsList504: typeof GatewayTimeoutError;
1063
+ export type IntegrationCatalogRecipeSetupGetPathParams = {
1064
+ readonly id: string;
1065
+ };
1066
+ export declare const IntegrationCatalogRecipeSetupGetPathParams: Schema.Struct<{
1067
+ readonly id: Schema.String;
1068
+ }>;
1069
+ export type IntegrationCatalogRecipeSetupGet200 = RecipeSetup;
1070
+ export declare const IntegrationCatalogRecipeSetupGet200: Schema.Struct<{
1071
+ readonly id: Schema.String;
1072
+ readonly revision: Schema.String;
1073
+ readonly references: Schema.Struct<{
1074
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
1075
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
1076
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
1077
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1078
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1079
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1080
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
1081
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
1082
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
1083
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1084
+ }>;
1085
+ readonly updatedAt: Schema.String;
1086
+ }>;
1087
+ export type IntegrationCatalogRecipeSetupGet400 = MalformedRequestError;
1088
+ export declare const IntegrationCatalogRecipeSetupGet400: typeof MalformedRequestError;
1089
+ export type IntegrationCatalogRecipeSetupGet401 = UnauthorizedError;
1090
+ export declare const IntegrationCatalogRecipeSetupGet401: typeof UnauthorizedError;
1091
+ export type IntegrationCatalogRecipeSetupGet403 = ForbiddenError;
1092
+ export declare const IntegrationCatalogRecipeSetupGet403: typeof ForbiddenError;
1093
+ export type IntegrationCatalogRecipeSetupGet404 = ResourceNotFoundError;
1094
+ export declare const IntegrationCatalogRecipeSetupGet404: typeof ResourceNotFoundError;
1095
+ export type IntegrationCatalogRecipeSetupGet422 = ValidationError;
1096
+ export declare const IntegrationCatalogRecipeSetupGet422: typeof ValidationError;
1097
+ export type IntegrationCatalogRecipeSetupGet500 = InternalError;
1098
+ export declare const IntegrationCatalogRecipeSetupGet500: typeof InternalError;
1099
+ export type IntegrationCatalogRecipeSetupGet504 = GatewayTimeoutError;
1100
+ export declare const IntegrationCatalogRecipeSetupGet504: typeof GatewayTimeoutError;
1101
+ export type IntegrationCatalogRecipeSetupReplacePathParams = {
1102
+ readonly id: string;
1103
+ };
1104
+ export declare const IntegrationCatalogRecipeSetupReplacePathParams: Schema.Struct<{
1105
+ readonly id: Schema.String;
1106
+ }>;
1107
+ export type IntegrationCatalogRecipeSetupReplaceRequestJson = {
1108
+ readonly references: RecipeSetupReferences;
1109
+ readonly revision: string | null;
1110
+ };
1111
+ export declare const IntegrationCatalogRecipeSetupReplaceRequestJson: Schema.Struct<{
1112
+ readonly references: Schema.Struct<{
1113
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
1114
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
1115
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
1116
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1117
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1118
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1119
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
1120
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
1121
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
1122
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1123
+ }>;
1124
+ readonly revision: Schema.Union<readonly [Schema.String, Schema.Null]>;
1125
+ }>;
1126
+ export type IntegrationCatalogRecipeSetupReplace200 = RecipeSetup;
1127
+ export declare const IntegrationCatalogRecipeSetupReplace200: Schema.Struct<{
1128
+ readonly id: Schema.String;
1129
+ readonly revision: Schema.String;
1130
+ readonly references: Schema.Struct<{
1131
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
1132
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
1133
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
1134
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1135
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1136
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1137
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
1138
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
1139
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
1140
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1141
+ }>;
1142
+ readonly updatedAt: Schema.String;
1143
+ }>;
1144
+ export type IntegrationCatalogRecipeSetupReplace400 = MalformedRequestError;
1145
+ export declare const IntegrationCatalogRecipeSetupReplace400: typeof MalformedRequestError;
1146
+ export type IntegrationCatalogRecipeSetupReplace401 = UnauthorizedError;
1147
+ export declare const IntegrationCatalogRecipeSetupReplace401: typeof UnauthorizedError;
1148
+ export type IntegrationCatalogRecipeSetupReplace403 = ForbiddenError;
1149
+ export declare const IntegrationCatalogRecipeSetupReplace403: typeof ForbiddenError;
1150
+ export type IntegrationCatalogRecipeSetupReplace404 = ResourceNotFoundError;
1151
+ export declare const IntegrationCatalogRecipeSetupReplace404: typeof ResourceNotFoundError;
1152
+ export type IntegrationCatalogRecipeSetupReplace409 = ConflictError;
1153
+ export declare const IntegrationCatalogRecipeSetupReplace409: typeof ConflictError;
1154
+ export type IntegrationCatalogRecipeSetupReplace422 = ValidationError;
1155
+ export declare const IntegrationCatalogRecipeSetupReplace422: typeof ValidationError;
1156
+ export type IntegrationCatalogRecipeSetupReplace500 = InternalError;
1157
+ export declare const IntegrationCatalogRecipeSetupReplace500: typeof InternalError;
1158
+ export type IntegrationCatalogRecipeSetupReplace504 = GatewayTimeoutError;
1159
+ export declare const IntegrationCatalogRecipeSetupReplace504: typeof GatewayTimeoutError;
1160
+ export type IntegrationCatalogRecipeSetupActivatePathParams = {
1161
+ readonly id: string;
1162
+ };
1163
+ export declare const IntegrationCatalogRecipeSetupActivatePathParams: Schema.Struct<{
1164
+ readonly id: Schema.String;
1165
+ }>;
1166
+ export type IntegrationCatalogRecipeSetupActivateRequestJson = {
1167
+ readonly revision: string;
1168
+ readonly selection: {
1169
+ readonly channel: "email";
1170
+ readonly publicationId: TemplatePublicationId;
1171
+ readonly senderId?: EmailSenderId;
1172
+ } | {
1173
+ readonly channel: "whatsapp";
1174
+ readonly whatsappAccountId: WhatsAppBusinessAccountId;
1175
+ readonly registrationId: TemplateRegistrationId;
1176
+ readonly eventBindings: {
1177
+ readonly [x: string]: string;
1178
+ };
1179
+ };
1180
+ };
1181
+ export declare const IntegrationCatalogRecipeSetupActivateRequestJson: Schema.Struct<{
1182
+ readonly revision: Schema.String;
1183
+ readonly selection: Schema.Union<readonly [Schema.Struct<{
1184
+ readonly channel: Schema.Literal<"email">;
1185
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1186
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1187
+ }>, Schema.Struct<{
1188
+ readonly channel: Schema.Literal<"whatsapp">;
1189
+ readonly whatsappAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1190
+ readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
1191
+ readonly eventBindings: Schema.$Record<Schema.String, Schema.String>;
1192
+ }>]>;
1193
+ }>;
1194
+ export type IntegrationCatalogRecipeSetupActivate200 = ActivatedRecipeSetup;
1195
+ export declare const IntegrationCatalogRecipeSetupActivate200: Schema.Struct<{
1196
+ readonly setup: Schema.Struct<{
1197
+ readonly id: Schema.String;
1198
+ readonly revision: Schema.String;
1199
+ readonly references: Schema.Struct<{
1200
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
1201
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
1202
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
1203
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1204
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1205
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1206
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
1207
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
1208
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
1209
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1210
+ }>;
1211
+ readonly updatedAt: Schema.String;
1212
+ }>;
1213
+ readonly journey: Schema.Struct<{
1214
+ readonly id: Schema.brand<Schema.String, "JourneyId">;
1215
+ readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
1216
+ readonly publishedVersion: Schema.Finite;
1217
+ }>;
1218
+ }>;
1219
+ export type IntegrationCatalogRecipeSetupActivate400 = MalformedRequestError;
1220
+ export declare const IntegrationCatalogRecipeSetupActivate400: typeof MalformedRequestError;
1221
+ export type IntegrationCatalogRecipeSetupActivate401 = UnauthorizedError;
1222
+ export declare const IntegrationCatalogRecipeSetupActivate401: typeof UnauthorizedError;
1223
+ export type IntegrationCatalogRecipeSetupActivate402 = PaymentRequiredError;
1224
+ export declare const IntegrationCatalogRecipeSetupActivate402: typeof PaymentRequiredError;
1225
+ export type IntegrationCatalogRecipeSetupActivate403 = ForbiddenError | FlagDisabledError;
1226
+ export declare const IntegrationCatalogRecipeSetupActivate403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
1227
+ export type IntegrationCatalogRecipeSetupActivate404 = ResourceNotFoundError;
1228
+ export declare const IntegrationCatalogRecipeSetupActivate404: typeof ResourceNotFoundError;
1229
+ export type IntegrationCatalogRecipeSetupActivate409 = ConflictError;
1230
+ export declare const IntegrationCatalogRecipeSetupActivate409: typeof ConflictError;
1231
+ export type IntegrationCatalogRecipeSetupActivate422 = ValidationError;
1232
+ export declare const IntegrationCatalogRecipeSetupActivate422: typeof ValidationError;
1233
+ export type IntegrationCatalogRecipeSetupActivate500 = InternalError;
1234
+ export declare const IntegrationCatalogRecipeSetupActivate500: typeof InternalError;
1235
+ export type IntegrationCatalogRecipeSetupActivate502 = BillingProviderError;
1236
+ export declare const IntegrationCatalogRecipeSetupActivate502: typeof BillingProviderError;
1237
+ export type IntegrationCatalogRecipeSetupActivate504 = GatewayTimeoutError;
1238
+ export declare const IntegrationCatalogRecipeSetupActivate504: typeof GatewayTimeoutError;
281
1239
  export type IntegrationCatalogSearchQuery = {
282
1240
  readonly key?: IntegrationKey;
283
1241
  readonly query?: string;
@@ -544,6 +1502,1749 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
544
1502
  readonly _tag: Schema.tag<"ValidationError">;
545
1503
  readonly message: Schema.String;
546
1504
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1505
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeCatalog", "GET", "/v1/integrations/catalog/recipes", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
1506
+ readonly recipes: Schema.$Array<Schema.Struct<{
1507
+ readonly id: Schema.Literal<"post-delivery-check-in">;
1508
+ readonly title: Schema.String;
1509
+ readonly trigger: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
1510
+ readonly stopEvent: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
1511
+ readonly waitDays: Schema.Finite;
1512
+ readonly channels: Schema.$Array<Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>>;
1513
+ }>>;
1514
+ readonly events: Schema.$Array<Schema.Struct<{
1515
+ readonly event: Schema.Union<readonly [Schema.Literal<"shopify.order_created">, Schema.Literal<"shopify.order_fulfilled">, Schema.Literal<"shopify.order_delivered">, Schema.Literal<"shopify.refund_created">, Schema.Literal<"shopify.checkout_started">]>;
1516
+ readonly version: Schema.Finite;
1517
+ readonly producer: Schema.String;
1518
+ readonly schema: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
1519
+ readonly paths: Schema.$Array<Schema.Struct<{
1520
+ readonly path: Schema.String;
1521
+ readonly mayBeEmpty: Schema.Boolean;
1522
+ }>>;
1523
+ readonly samples: Schema.$Array<Schema.Struct<{
1524
+ readonly fixture: Schema.String;
1525
+ readonly label: Schema.String;
1526
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
1527
+ }>>;
1528
+ }>>;
1529
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1530
+ readonly _tag: "ForbiddenError";
1531
+ readonly message: string;
1532
+ }, readonly [Schema.Struct<{
1533
+ readonly _tag: Schema.tag<"ForbiddenError">;
1534
+ readonly message: Schema.String;
1535
+ }>], {
1536
+ readonly _tag: "ForbiddenError";
1537
+ readonly message: string;
1538
+ }>, Schema.Struct<{
1539
+ readonly _tag: Schema.tag<"ForbiddenError">;
1540
+ readonly message: Schema.String;
1541
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1542
+ readonly _tag: "GatewayTimeoutError";
1543
+ readonly message: string;
1544
+ readonly retryAfterSeconds: number;
1545
+ }, readonly [Schema.Struct<{
1546
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
1547
+ readonly message: Schema.String;
1548
+ readonly retryAfterSeconds: Schema.Finite;
1549
+ }>], {
1550
+ readonly _tag: "GatewayTimeoutError";
1551
+ readonly message: string;
1552
+ readonly retryAfterSeconds: number;
1553
+ }>, Schema.Struct<{
1554
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
1555
+ readonly message: Schema.String;
1556
+ readonly retryAfterSeconds: Schema.Finite;
1557
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1558
+ readonly _tag: "MalformedRequestError";
1559
+ readonly message: string;
1560
+ readonly fields: {
1561
+ readonly [x: string]: readonly string[];
1562
+ };
1563
+ }, readonly [Schema.Struct<{
1564
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1565
+ readonly message: Schema.String;
1566
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1567
+ }>], {
1568
+ readonly _tag: "MalformedRequestError";
1569
+ readonly message: string;
1570
+ readonly fields: {
1571
+ readonly [x: string]: readonly string[];
1572
+ };
1573
+ }>, Schema.Struct<{
1574
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1575
+ readonly message: Schema.String;
1576
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1577
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
1578
+ readonly _tag: "UnauthorizedError";
1579
+ readonly message: string;
1580
+ }, readonly [Schema.Struct<{
1581
+ readonly _tag: Schema.tag<"UnauthorizedError">;
1582
+ readonly message: Schema.String;
1583
+ }>], {
1584
+ readonly _tag: "UnauthorizedError";
1585
+ readonly message: string;
1586
+ }>, Schema.Struct<{
1587
+ readonly _tag: Schema.tag<"UnauthorizedError">;
1588
+ readonly message: Schema.String;
1589
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
1590
+ readonly _tag: "ValidationError";
1591
+ readonly message: string;
1592
+ readonly fields?: {
1593
+ readonly [x: string]: readonly string[];
1594
+ } | null;
1595
+ }, readonly [Schema.Struct<{
1596
+ readonly _tag: Schema.tag<"ValidationError">;
1597
+ readonly message: Schema.String;
1598
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1599
+ }>], {
1600
+ readonly _tag: "ValidationError";
1601
+ readonly message: string;
1602
+ readonly fields?: {
1603
+ readonly [x: string]: readonly string[];
1604
+ } | null;
1605
+ }>, Schema.Struct<{
1606
+ readonly _tag: Schema.tag<"ValidationError">;
1607
+ readonly message: Schema.String;
1608
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1609
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeConnectionHandoff", "GET", "/v1/integrations/catalog/recipes/post-delivery-check-in/connections/:provider", Schema.toCodecStringTree<Schema.Struct<{
1610
+ readonly provider: Schema.Union<readonly [Schema.Literal<"shopify">, Schema.Literal<"whatsapp">]>;
1611
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
1612
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
1613
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1614
+ readonly setupId: Schema.optionalKey<Schema.String>;
1615
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1616
+ readonly url: Schema.String;
1617
+ readonly organizationSlug: Schema.String;
1618
+ readonly setupId: Schema.Union<readonly [Schema.String, Schema.Null]>;
1619
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1620
+ readonly _tag: "GatewayTimeoutError";
1621
+ readonly message: string;
1622
+ readonly retryAfterSeconds: number;
1623
+ }, readonly [Schema.Struct<{
1624
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
1625
+ readonly message: Schema.String;
1626
+ readonly retryAfterSeconds: Schema.Finite;
1627
+ }>], {
1628
+ readonly _tag: "GatewayTimeoutError";
1629
+ readonly message: string;
1630
+ readonly retryAfterSeconds: number;
1631
+ }>, Schema.Struct<{
1632
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
1633
+ readonly message: Schema.String;
1634
+ readonly retryAfterSeconds: Schema.Finite;
1635
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1636
+ readonly _tag: "MalformedRequestError";
1637
+ readonly message: string;
1638
+ readonly fields: {
1639
+ readonly [x: string]: readonly string[];
1640
+ };
1641
+ }, readonly [Schema.Struct<{
1642
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1643
+ readonly message: Schema.String;
1644
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1645
+ }>], {
1646
+ readonly _tag: "MalformedRequestError";
1647
+ readonly message: string;
1648
+ readonly fields: {
1649
+ readonly [x: string]: readonly string[];
1650
+ };
1651
+ }>, Schema.Struct<{
1652
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1653
+ readonly message: Schema.String;
1654
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1655
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
1656
+ readonly _tag: "ResourceNotFoundError";
1657
+ readonly resource: string;
1658
+ readonly id: string;
1659
+ readonly message: string;
1660
+ }, readonly [Schema.Struct<{
1661
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
1662
+ readonly resource: Schema.String;
1663
+ readonly id: Schema.String;
1664
+ readonly message: Schema.String;
1665
+ }>], {
1666
+ readonly _tag: "ResourceNotFoundError";
1667
+ readonly resource: string;
1668
+ readonly id: string;
1669
+ readonly message: string;
1670
+ }>, Schema.Struct<{
1671
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
1672
+ readonly resource: Schema.String;
1673
+ readonly id: Schema.String;
1674
+ readonly message: Schema.String;
1675
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
1676
+ readonly _tag: "UnauthorizedError";
1677
+ readonly message: string;
1678
+ }, readonly [Schema.Struct<{
1679
+ readonly _tag: Schema.tag<"UnauthorizedError">;
1680
+ readonly message: Schema.String;
1681
+ }>], {
1682
+ readonly _tag: "UnauthorizedError";
1683
+ readonly message: string;
1684
+ }>, Schema.Struct<{
1685
+ readonly _tag: Schema.tag<"UnauthorizedError">;
1686
+ readonly message: Schema.String;
1687
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
1688
+ readonly _tag: "ValidationError";
1689
+ readonly message: string;
1690
+ readonly fields?: {
1691
+ readonly [x: string]: readonly string[];
1692
+ } | null;
1693
+ }, readonly [Schema.Struct<{
1694
+ readonly _tag: Schema.tag<"ValidationError">;
1695
+ readonly message: Schema.String;
1696
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1697
+ }>], {
1698
+ readonly _tag: "ValidationError";
1699
+ readonly message: string;
1700
+ readonly fields?: {
1701
+ readonly [x: string]: readonly string[];
1702
+ } | null;
1703
+ }>, Schema.Struct<{
1704
+ readonly _tag: Schema.tag<"ValidationError">;
1705
+ readonly message: Schema.String;
1706
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1707
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipePreview", "POST", "/v1/integrations/catalog/recipes/post-delivery-check-in/preview", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
1708
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1709
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1710
+ readonly fixture: Schema.optionalKey<Schema.String>;
1711
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1712
+ readonly channel: Schema.Literal<"email">;
1713
+ }>, Schema.Struct<{
1714
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1715
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1716
+ readonly fixture: Schema.optionalKey<Schema.String>;
1717
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1718
+ readonly channel: Schema.Literal<"whatsapp">;
1719
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1720
+ }>]>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
1721
+ readonly fixture: Schema.String;
1722
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1723
+ readonly channel: Schema.Literal<"email">;
1724
+ readonly content: Schema.Struct<{
1725
+ readonly subject: Schema.String;
1726
+ readonly preheader: Schema.optionalKey<Schema.String>;
1727
+ readonly html: Schema.String;
1728
+ readonly text: Schema.String;
1729
+ }>;
1730
+ }>, Schema.Struct<{
1731
+ readonly fixture: Schema.String;
1732
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1733
+ readonly channel: Schema.Literal<"whatsapp">;
1734
+ readonly content: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
1735
+ }>]>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1736
+ readonly _tag: "ForbiddenError";
1737
+ readonly message: string;
1738
+ }, readonly [Schema.Struct<{
1739
+ readonly _tag: Schema.tag<"ForbiddenError">;
1740
+ readonly message: Schema.String;
1741
+ }>], {
1742
+ readonly _tag: "ForbiddenError";
1743
+ readonly message: string;
1744
+ }>, Schema.Struct<{
1745
+ readonly _tag: Schema.tag<"ForbiddenError">;
1746
+ readonly message: Schema.String;
1747
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1748
+ readonly _tag: "GatewayTimeoutError";
1749
+ readonly message: string;
1750
+ readonly retryAfterSeconds: number;
1751
+ }, readonly [Schema.Struct<{
1752
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
1753
+ readonly message: Schema.String;
1754
+ readonly retryAfterSeconds: Schema.Finite;
1755
+ }>], {
1756
+ readonly _tag: "GatewayTimeoutError";
1757
+ readonly message: string;
1758
+ readonly retryAfterSeconds: number;
1759
+ }>, Schema.Struct<{
1760
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
1761
+ readonly message: Schema.String;
1762
+ readonly retryAfterSeconds: Schema.Finite;
1763
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1764
+ readonly _tag: "MalformedRequestError";
1765
+ readonly message: string;
1766
+ readonly fields: {
1767
+ readonly [x: string]: readonly string[];
1768
+ };
1769
+ }, readonly [Schema.Struct<{
1770
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1771
+ readonly message: Schema.String;
1772
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1773
+ }>], {
1774
+ readonly _tag: "MalformedRequestError";
1775
+ readonly message: string;
1776
+ readonly fields: {
1777
+ readonly [x: string]: readonly string[];
1778
+ };
1779
+ }>, Schema.Struct<{
1780
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1781
+ readonly message: Schema.String;
1782
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1783
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
1784
+ readonly _tag: "ResourceNotFoundError";
1785
+ readonly resource: string;
1786
+ readonly id: string;
1787
+ readonly message: string;
1788
+ }, readonly [Schema.Struct<{
1789
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
1790
+ readonly resource: Schema.String;
1791
+ readonly id: Schema.String;
1792
+ readonly message: Schema.String;
1793
+ }>], {
1794
+ readonly _tag: "ResourceNotFoundError";
1795
+ readonly resource: string;
1796
+ readonly id: string;
1797
+ readonly message: string;
1798
+ }>, Schema.Struct<{
1799
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
1800
+ readonly resource: Schema.String;
1801
+ readonly id: Schema.String;
1802
+ readonly message: Schema.String;
1803
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
1804
+ readonly _tag: "UnauthorizedError";
1805
+ readonly message: string;
1806
+ }, readonly [Schema.Struct<{
1807
+ readonly _tag: Schema.tag<"UnauthorizedError">;
1808
+ readonly message: Schema.String;
1809
+ }>], {
1810
+ readonly _tag: "UnauthorizedError";
1811
+ readonly message: string;
1812
+ }>, Schema.Struct<{
1813
+ readonly _tag: Schema.tag<"UnauthorizedError">;
1814
+ readonly message: Schema.String;
1815
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
1816
+ readonly _tag: "ValidationError";
1817
+ readonly message: string;
1818
+ readonly fields?: {
1819
+ readonly [x: string]: readonly string[];
1820
+ } | null;
1821
+ }, readonly [Schema.Struct<{
1822
+ readonly _tag: Schema.tag<"ValidationError">;
1823
+ readonly message: Schema.String;
1824
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1825
+ }>], {
1826
+ readonly _tag: "ValidationError";
1827
+ readonly message: string;
1828
+ readonly fields?: {
1829
+ readonly [x: string]: readonly string[];
1830
+ } | null;
1831
+ }>, Schema.Struct<{
1832
+ readonly _tag: Schema.tag<"ValidationError">;
1833
+ readonly message: Schema.String;
1834
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1835
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeReadiness", "GET", "/v1/integrations/catalog/recipes/post-delivery-check-in/readiness", never, Schema.toCodecStringTree<Schema.Struct<{
1836
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
1837
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
1838
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1839
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1840
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
1841
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
1842
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
1843
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1844
+ readonly ready: Schema.Boolean;
1845
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
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]>;
1851
+ }>;
1852
+ readonly shopify: Schema.Union<readonly [Schema.Struct<{
1853
+ readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
1854
+ readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
1855
+ readonly shop: Schema.String;
1856
+ }>, Schema.Null]>;
1857
+ readonly publication: Schema.Union<readonly [Schema.Struct<{
1858
+ readonly id: Schema.brand<Schema.String, "TemplatePublicationId">;
1859
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1860
+ readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1861
+ readonly name: Schema.String;
1862
+ readonly required: Schema.Boolean;
1863
+ }>>>;
1864
+ readonly inputIssues: Schema.optionalKey<Schema.$Array<Schema.String>>;
1865
+ }>, Schema.Null]>;
1866
+ readonly email: Schema.Union<readonly [Schema.Struct<{
1867
+ readonly senderId: Schema.Union<readonly [Schema.brand<Schema.String, "EmailSenderId">, Schema.Null]>;
1868
+ readonly domainId: Schema.Union<readonly [Schema.brand<Schema.String, "EmailDomainId">, Schema.Null]>;
1869
+ readonly address: Schema.String;
1870
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
1871
+ }>, Schema.Null]>;
1872
+ readonly whatsapp: Schema.Union<readonly [Schema.Struct<{
1873
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1874
+ readonly address: Schema.String;
1875
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
1876
+ readonly registration: Schema.Union<readonly [Schema.Struct<{
1877
+ readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
1878
+ readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
1879
+ }>, Schema.Null]>;
1880
+ }>, Schema.Null]>;
1881
+ readonly reply: Schema.Union<readonly [Schema.Struct<{
1882
+ readonly endpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
1883
+ readonly mailboxId: Schema.brand<Schema.String, "MailboxId">;
1884
+ readonly address: Schema.String;
1885
+ readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"inactive">, Schema.Literal<"different_account">]>;
1886
+ }>, Schema.Null]>;
1887
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
1888
+ readonly _tag: "BillingProviderError";
1889
+ readonly message: string;
1890
+ }, readonly [Schema.Struct<{
1891
+ readonly _tag: Schema.tag<"BillingProviderError">;
1892
+ readonly message: Schema.String;
1893
+ }>], {
1894
+ readonly _tag: "BillingProviderError";
1895
+ readonly message: string;
1896
+ }>, Schema.Struct<{
1897
+ readonly _tag: Schema.tag<"BillingProviderError">;
1898
+ readonly message: Schema.String;
1899
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1900
+ readonly _tag: "ForbiddenError";
1901
+ readonly message: string;
1902
+ }, readonly [Schema.Struct<{
1903
+ readonly _tag: Schema.tag<"ForbiddenError">;
1904
+ readonly message: Schema.String;
1905
+ }>], {
1906
+ readonly _tag: "ForbiddenError";
1907
+ readonly message: string;
1908
+ }>, Schema.Struct<{
1909
+ readonly _tag: Schema.tag<"ForbiddenError">;
1910
+ readonly message: Schema.String;
1911
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
1912
+ readonly _tag: "GatewayTimeoutError";
1913
+ readonly message: string;
1914
+ readonly retryAfterSeconds: number;
1915
+ }, readonly [Schema.Struct<{
1916
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
1917
+ readonly message: Schema.String;
1918
+ readonly retryAfterSeconds: Schema.Finite;
1919
+ }>], {
1920
+ readonly _tag: "GatewayTimeoutError";
1921
+ readonly message: string;
1922
+ readonly retryAfterSeconds: number;
1923
+ }>, Schema.Struct<{
1924
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
1925
+ readonly message: Schema.String;
1926
+ readonly retryAfterSeconds: Schema.Finite;
1927
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1928
+ readonly _tag: "MalformedRequestError";
1929
+ readonly message: string;
1930
+ readonly fields: {
1931
+ readonly [x: string]: readonly string[];
1932
+ };
1933
+ }, readonly [Schema.Struct<{
1934
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1935
+ readonly message: Schema.String;
1936
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1937
+ }>], {
1938
+ readonly _tag: "MalformedRequestError";
1939
+ readonly message: string;
1940
+ readonly fields: {
1941
+ readonly [x: string]: readonly string[];
1942
+ };
1943
+ }>, Schema.Struct<{
1944
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1945
+ readonly message: Schema.String;
1946
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1947
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
1948
+ readonly _tag: "UnauthorizedError";
1949
+ readonly message: string;
1950
+ }, readonly [Schema.Struct<{
1951
+ readonly _tag: Schema.tag<"UnauthorizedError">;
1952
+ readonly message: Schema.String;
1953
+ }>], {
1954
+ readonly _tag: "UnauthorizedError";
1955
+ readonly message: string;
1956
+ }>, Schema.Struct<{
1957
+ readonly _tag: Schema.tag<"UnauthorizedError">;
1958
+ readonly message: Schema.String;
1959
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
1960
+ readonly _tag: "ValidationError";
1961
+ readonly message: string;
1962
+ readonly fields?: {
1963
+ readonly [x: string]: readonly string[];
1964
+ } | null;
1965
+ }, readonly [Schema.Struct<{
1966
+ readonly _tag: Schema.tag<"ValidationError">;
1967
+ readonly message: Schema.String;
1968
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1969
+ }>], {
1970
+ readonly _tag: "ValidationError";
1971
+ readonly message: string;
1972
+ readonly fields?: {
1973
+ readonly [x: string]: readonly string[];
1974
+ } | null;
1975
+ }>, Schema.Struct<{
1976
+ readonly _tag: Schema.tag<"ValidationError">;
1977
+ readonly message: Schema.String;
1978
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1979
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeSetupActivate", "POST", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/:id/activate", Schema.toCodecStringTree<Schema.Struct<{
1980
+ readonly id: Schema.String;
1981
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1982
+ readonly revision: Schema.String;
1983
+ readonly selection: Schema.Union<readonly [Schema.Struct<{
1984
+ readonly channel: Schema.Literal<"email">;
1985
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
1986
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1987
+ }>, Schema.Struct<{
1988
+ readonly channel: Schema.Literal<"whatsapp">;
1989
+ readonly whatsappAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1990
+ readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
1991
+ readonly eventBindings: Schema.$Record<Schema.String, Schema.String>;
1992
+ }>]>;
1993
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1994
+ readonly setup: Schema.Struct<{
1995
+ readonly id: Schema.String;
1996
+ readonly revision: Schema.String;
1997
+ readonly references: Schema.Struct<{
1998
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
1999
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
2000
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
2001
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2002
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2003
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
2004
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
2005
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
2006
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
2007
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2008
+ }>;
2009
+ readonly updatedAt: Schema.String;
2010
+ }>;
2011
+ readonly journey: Schema.Struct<{
2012
+ readonly id: Schema.brand<Schema.String, "JourneyId">;
2013
+ readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
2014
+ readonly publishedVersion: Schema.Finite;
2015
+ }>;
2016
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
2017
+ readonly _tag: "BillingProviderError";
2018
+ readonly message: string;
2019
+ }, readonly [Schema.Struct<{
2020
+ readonly _tag: Schema.tag<"BillingProviderError">;
2021
+ readonly message: Schema.String;
2022
+ }>], {
2023
+ readonly _tag: "BillingProviderError";
2024
+ readonly message: string;
2025
+ }>, Schema.Struct<{
2026
+ readonly _tag: Schema.tag<"BillingProviderError">;
2027
+ readonly message: Schema.String;
2028
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
2029
+ readonly _tag: "ConflictError";
2030
+ readonly message: string;
2031
+ readonly resource: string;
2032
+ readonly id?: string | null;
2033
+ }, readonly [Schema.Struct<{
2034
+ readonly _tag: Schema.tag<"ConflictError">;
2035
+ readonly message: Schema.String;
2036
+ readonly resource: Schema.String;
2037
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2038
+ }>], {
2039
+ readonly _tag: "ConflictError";
2040
+ readonly message: string;
2041
+ readonly resource: string;
2042
+ readonly id?: string | null;
2043
+ }>, Schema.Struct<{
2044
+ readonly _tag: Schema.tag<"ConflictError">;
2045
+ readonly message: Schema.String;
2046
+ readonly resource: Schema.String;
2047
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2048
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2049
+ readonly _tag: "GatewayTimeoutError";
2050
+ readonly message: string;
2051
+ readonly retryAfterSeconds: number;
2052
+ }, readonly [Schema.Struct<{
2053
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2054
+ readonly message: Schema.String;
2055
+ readonly retryAfterSeconds: Schema.Finite;
2056
+ }>], {
2057
+ readonly _tag: "GatewayTimeoutError";
2058
+ readonly message: string;
2059
+ readonly retryAfterSeconds: number;
2060
+ }>, Schema.Struct<{
2061
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2062
+ readonly message: Schema.String;
2063
+ readonly retryAfterSeconds: Schema.Finite;
2064
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
2065
+ readonly _tag: "MalformedRequestError";
2066
+ readonly message: string;
2067
+ readonly fields: {
2068
+ readonly [x: string]: readonly string[];
2069
+ };
2070
+ }, readonly [Schema.Struct<{
2071
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2072
+ readonly message: Schema.String;
2073
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2074
+ }>], {
2075
+ readonly _tag: "MalformedRequestError";
2076
+ readonly message: string;
2077
+ readonly fields: {
2078
+ readonly [x: string]: readonly string[];
2079
+ };
2080
+ }>, Schema.Struct<{
2081
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2082
+ readonly message: Schema.String;
2083
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2084
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
2085
+ readonly _tag: "PaymentRequiredError";
2086
+ readonly message: string;
2087
+ readonly resource: string;
2088
+ readonly currentUsage: number;
2089
+ readonly limit: number;
2090
+ }, readonly [Schema.Struct<{
2091
+ readonly _tag: Schema.tag<"PaymentRequiredError">;
2092
+ readonly message: Schema.String;
2093
+ readonly resource: Schema.String;
2094
+ readonly currentUsage: Schema.Finite;
2095
+ readonly limit: Schema.Finite;
2096
+ }>], {
2097
+ readonly _tag: "PaymentRequiredError";
2098
+ readonly message: string;
2099
+ readonly resource: string;
2100
+ readonly currentUsage: number;
2101
+ readonly limit: number;
2102
+ }>, Schema.Struct<{
2103
+ readonly _tag: Schema.tag<"PaymentRequiredError">;
2104
+ readonly message: Schema.String;
2105
+ readonly resource: Schema.String;
2106
+ readonly currentUsage: Schema.Finite;
2107
+ readonly limit: Schema.Finite;
2108
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
2109
+ readonly _tag: "ResourceNotFoundError";
2110
+ readonly resource: string;
2111
+ readonly id: string;
2112
+ readonly message: string;
2113
+ }, readonly [Schema.Struct<{
2114
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2115
+ readonly resource: Schema.String;
2116
+ readonly id: Schema.String;
2117
+ readonly message: Schema.String;
2118
+ }>], {
2119
+ readonly _tag: "ResourceNotFoundError";
2120
+ readonly resource: string;
2121
+ readonly id: string;
2122
+ readonly message: string;
2123
+ }>, Schema.Struct<{
2124
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2125
+ readonly resource: Schema.String;
2126
+ readonly id: Schema.String;
2127
+ readonly message: Schema.String;
2128
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
2129
+ readonly _tag: "UnauthorizedError";
2130
+ readonly message: string;
2131
+ }, readonly [Schema.Struct<{
2132
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2133
+ readonly message: Schema.String;
2134
+ }>], {
2135
+ readonly _tag: "UnauthorizedError";
2136
+ readonly message: string;
2137
+ }>, Schema.Struct<{
2138
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2139
+ readonly message: Schema.String;
2140
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
2141
+ readonly _tag: "ValidationError";
2142
+ readonly message: string;
2143
+ readonly fields?: {
2144
+ readonly [x: string]: readonly string[];
2145
+ } | null;
2146
+ }, readonly [Schema.Struct<{
2147
+ readonly _tag: Schema.tag<"ValidationError">;
2148
+ readonly message: Schema.String;
2149
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2150
+ }>], {
2151
+ readonly _tag: "ValidationError";
2152
+ readonly message: string;
2153
+ readonly fields?: {
2154
+ readonly [x: string]: readonly string[];
2155
+ } | null;
2156
+ }>, Schema.Struct<{
2157
+ readonly _tag: Schema.tag<"ValidationError">;
2158
+ readonly message: Schema.String;
2159
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2160
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeSetupGet", "GET", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/:id", Schema.toCodecStringTree<Schema.Struct<{
2161
+ readonly id: Schema.String;
2162
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
2163
+ readonly id: Schema.String;
2164
+ readonly revision: Schema.String;
2165
+ readonly references: Schema.Struct<{
2166
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
2167
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
2168
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
2169
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2170
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2171
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
2172
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
2173
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
2174
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
2175
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2176
+ }>;
2177
+ readonly updatedAt: Schema.String;
2178
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
2179
+ readonly _tag: "ForbiddenError";
2180
+ readonly message: string;
2181
+ }, readonly [Schema.Struct<{
2182
+ readonly _tag: Schema.tag<"ForbiddenError">;
2183
+ readonly message: Schema.String;
2184
+ }>], {
2185
+ readonly _tag: "ForbiddenError";
2186
+ readonly message: string;
2187
+ }>, Schema.Struct<{
2188
+ readonly _tag: Schema.tag<"ForbiddenError">;
2189
+ readonly message: Schema.String;
2190
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2191
+ readonly _tag: "GatewayTimeoutError";
2192
+ readonly message: string;
2193
+ readonly retryAfterSeconds: number;
2194
+ }, readonly [Schema.Struct<{
2195
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2196
+ readonly message: Schema.String;
2197
+ readonly retryAfterSeconds: Schema.Finite;
2198
+ }>], {
2199
+ readonly _tag: "GatewayTimeoutError";
2200
+ readonly message: string;
2201
+ readonly retryAfterSeconds: number;
2202
+ }>, Schema.Struct<{
2203
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2204
+ readonly message: Schema.String;
2205
+ readonly retryAfterSeconds: Schema.Finite;
2206
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
2207
+ readonly _tag: "MalformedRequestError";
2208
+ readonly message: string;
2209
+ readonly fields: {
2210
+ readonly [x: string]: readonly string[];
2211
+ };
2212
+ }, readonly [Schema.Struct<{
2213
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2214
+ readonly message: Schema.String;
2215
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2216
+ }>], {
2217
+ readonly _tag: "MalformedRequestError";
2218
+ readonly message: string;
2219
+ readonly fields: {
2220
+ readonly [x: string]: readonly string[];
2221
+ };
2222
+ }>, Schema.Struct<{
2223
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2224
+ readonly message: Schema.String;
2225
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2226
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
2227
+ readonly _tag: "ResourceNotFoundError";
2228
+ readonly resource: string;
2229
+ readonly id: string;
2230
+ readonly message: string;
2231
+ }, readonly [Schema.Struct<{
2232
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2233
+ readonly resource: Schema.String;
2234
+ readonly id: Schema.String;
2235
+ readonly message: Schema.String;
2236
+ }>], {
2237
+ readonly _tag: "ResourceNotFoundError";
2238
+ readonly resource: string;
2239
+ readonly id: string;
2240
+ readonly message: string;
2241
+ }>, Schema.Struct<{
2242
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2243
+ readonly resource: Schema.String;
2244
+ readonly id: Schema.String;
2245
+ readonly message: Schema.String;
2246
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
2247
+ readonly _tag: "UnauthorizedError";
2248
+ readonly message: string;
2249
+ }, readonly [Schema.Struct<{
2250
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2251
+ readonly message: Schema.String;
2252
+ }>], {
2253
+ readonly _tag: "UnauthorizedError";
2254
+ readonly message: string;
2255
+ }>, Schema.Struct<{
2256
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2257
+ readonly message: Schema.String;
2258
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
2259
+ readonly _tag: "ValidationError";
2260
+ readonly message: string;
2261
+ readonly fields?: {
2262
+ readonly [x: string]: readonly string[];
2263
+ } | null;
2264
+ }, readonly [Schema.Struct<{
2265
+ readonly _tag: Schema.tag<"ValidationError">;
2266
+ readonly message: Schema.String;
2267
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2268
+ }>], {
2269
+ readonly _tag: "ValidationError";
2270
+ readonly message: string;
2271
+ readonly fields?: {
2272
+ readonly [x: string]: readonly string[];
2273
+ } | null;
2274
+ }>, Schema.Struct<{
2275
+ readonly _tag: Schema.tag<"ValidationError">;
2276
+ readonly message: Schema.String;
2277
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2278
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeSetupReplace", "PUT", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/:id", Schema.toCodecStringTree<Schema.Struct<{
2279
+ readonly id: Schema.String;
2280
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2281
+ readonly references: Schema.Struct<{
2282
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
2283
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
2284
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
2285
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2286
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2287
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
2288
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
2289
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
2290
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
2291
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2292
+ }>;
2293
+ readonly revision: Schema.Union<readonly [Schema.String, Schema.Null]>;
2294
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2295
+ readonly id: Schema.String;
2296
+ readonly revision: Schema.String;
2297
+ readonly references: Schema.Struct<{
2298
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
2299
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
2300
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
2301
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2302
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2303
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
2304
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
2305
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
2306
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
2307
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2308
+ }>;
2309
+ readonly updatedAt: Schema.String;
2310
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
2311
+ readonly _tag: "ConflictError";
2312
+ readonly message: string;
2313
+ readonly resource: string;
2314
+ readonly id?: string | null;
2315
+ }, readonly [Schema.Struct<{
2316
+ readonly _tag: Schema.tag<"ConflictError">;
2317
+ readonly message: Schema.String;
2318
+ readonly resource: Schema.String;
2319
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2320
+ }>], {
2321
+ readonly _tag: "ConflictError";
2322
+ readonly message: string;
2323
+ readonly resource: string;
2324
+ readonly id?: string | null;
2325
+ }>, Schema.Struct<{
2326
+ readonly _tag: Schema.tag<"ConflictError">;
2327
+ readonly message: Schema.String;
2328
+ readonly resource: Schema.String;
2329
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2330
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
2331
+ readonly _tag: "ForbiddenError";
2332
+ readonly message: string;
2333
+ }, readonly [Schema.Struct<{
2334
+ readonly _tag: Schema.tag<"ForbiddenError">;
2335
+ readonly message: Schema.String;
2336
+ }>], {
2337
+ readonly _tag: "ForbiddenError";
2338
+ readonly message: string;
2339
+ }>, Schema.Struct<{
2340
+ readonly _tag: Schema.tag<"ForbiddenError">;
2341
+ readonly message: Schema.String;
2342
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2343
+ readonly _tag: "GatewayTimeoutError";
2344
+ readonly message: string;
2345
+ readonly retryAfterSeconds: number;
2346
+ }, readonly [Schema.Struct<{
2347
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2348
+ readonly message: Schema.String;
2349
+ readonly retryAfterSeconds: Schema.Finite;
2350
+ }>], {
2351
+ readonly _tag: "GatewayTimeoutError";
2352
+ readonly message: string;
2353
+ readonly retryAfterSeconds: number;
2354
+ }>, Schema.Struct<{
2355
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2356
+ readonly message: Schema.String;
2357
+ readonly retryAfterSeconds: Schema.Finite;
2358
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
2359
+ readonly _tag: "MalformedRequestError";
2360
+ readonly message: string;
2361
+ readonly fields: {
2362
+ readonly [x: string]: readonly string[];
2363
+ };
2364
+ }, readonly [Schema.Struct<{
2365
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2366
+ readonly message: Schema.String;
2367
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2368
+ }>], {
2369
+ readonly _tag: "MalformedRequestError";
2370
+ readonly message: string;
2371
+ readonly fields: {
2372
+ readonly [x: string]: readonly string[];
2373
+ };
2374
+ }>, Schema.Struct<{
2375
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2376
+ readonly message: Schema.String;
2377
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2378
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
2379
+ readonly _tag: "ResourceNotFoundError";
2380
+ readonly resource: string;
2381
+ readonly id: string;
2382
+ readonly message: string;
2383
+ }, readonly [Schema.Struct<{
2384
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2385
+ readonly resource: Schema.String;
2386
+ readonly id: Schema.String;
2387
+ readonly message: Schema.String;
2388
+ }>], {
2389
+ readonly _tag: "ResourceNotFoundError";
2390
+ readonly resource: string;
2391
+ readonly id: string;
2392
+ readonly message: string;
2393
+ }>, Schema.Struct<{
2394
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2395
+ readonly resource: Schema.String;
2396
+ readonly id: Schema.String;
2397
+ readonly message: Schema.String;
2398
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
2399
+ readonly _tag: "UnauthorizedError";
2400
+ readonly message: string;
2401
+ }, readonly [Schema.Struct<{
2402
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2403
+ readonly message: Schema.String;
2404
+ }>], {
2405
+ readonly _tag: "UnauthorizedError";
2406
+ readonly message: string;
2407
+ }>, Schema.Struct<{
2408
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2409
+ readonly message: Schema.String;
2410
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
2411
+ readonly _tag: "ValidationError";
2412
+ readonly message: string;
2413
+ readonly fields?: {
2414
+ readonly [x: string]: readonly string[];
2415
+ } | null;
2416
+ }, readonly [Schema.Struct<{
2417
+ readonly _tag: Schema.tag<"ValidationError">;
2418
+ readonly message: Schema.String;
2419
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2420
+ }>], {
2421
+ readonly _tag: "ValidationError";
2422
+ readonly message: string;
2423
+ readonly fields?: {
2424
+ readonly [x: string]: readonly string[];
2425
+ } | null;
2426
+ }>, Schema.Struct<{
2427
+ readonly _tag: Schema.tag<"ValidationError">;
2428
+ readonly message: Schema.String;
2429
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2430
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeSetupsList", "GET", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
2431
+ readonly items: Schema.$Array<Schema.Struct<{
2432
+ readonly id: Schema.String;
2433
+ readonly revision: Schema.String;
2434
+ readonly references: Schema.Struct<{
2435
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
2436
+ readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
2437
+ readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
2438
+ readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2439
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2440
+ readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
2441
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
2442
+ readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
2443
+ readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
2444
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2445
+ }>;
2446
+ readonly updatedAt: Schema.String;
2447
+ }>>;
2448
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
2449
+ readonly _tag: "ForbiddenError";
2450
+ readonly message: string;
2451
+ }, readonly [Schema.Struct<{
2452
+ readonly _tag: Schema.tag<"ForbiddenError">;
2453
+ readonly message: Schema.String;
2454
+ }>], {
2455
+ readonly _tag: "ForbiddenError";
2456
+ readonly message: string;
2457
+ }>, Schema.Struct<{
2458
+ readonly _tag: Schema.tag<"ForbiddenError">;
2459
+ readonly message: Schema.String;
2460
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2461
+ readonly _tag: "GatewayTimeoutError";
2462
+ readonly message: string;
2463
+ readonly retryAfterSeconds: number;
2464
+ }, readonly [Schema.Struct<{
2465
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2466
+ readonly message: Schema.String;
2467
+ readonly retryAfterSeconds: Schema.Finite;
2468
+ }>], {
2469
+ readonly _tag: "GatewayTimeoutError";
2470
+ readonly message: string;
2471
+ readonly retryAfterSeconds: number;
2472
+ }>, Schema.Struct<{
2473
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2474
+ readonly message: Schema.String;
2475
+ readonly retryAfterSeconds: Schema.Finite;
2476
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
2477
+ readonly _tag: "MalformedRequestError";
2478
+ readonly message: string;
2479
+ readonly fields: {
2480
+ readonly [x: string]: readonly string[];
2481
+ };
2482
+ }, readonly [Schema.Struct<{
2483
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2484
+ readonly message: Schema.String;
2485
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2486
+ }>], {
2487
+ readonly _tag: "MalformedRequestError";
2488
+ readonly message: string;
2489
+ readonly fields: {
2490
+ readonly [x: string]: readonly string[];
2491
+ };
2492
+ }>, Schema.Struct<{
2493
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2494
+ readonly message: Schema.String;
2495
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2496
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
2497
+ readonly _tag: "UnauthorizedError";
2498
+ readonly message: string;
2499
+ }, readonly [Schema.Struct<{
2500
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2501
+ readonly message: Schema.String;
2502
+ }>], {
2503
+ readonly _tag: "UnauthorizedError";
2504
+ readonly message: string;
2505
+ }>, Schema.Struct<{
2506
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2507
+ readonly message: Schema.String;
2508
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
2509
+ readonly _tag: "ValidationError";
2510
+ readonly message: string;
2511
+ readonly fields?: {
2512
+ readonly [x: string]: readonly string[];
2513
+ } | null;
2514
+ }, readonly [Schema.Struct<{
2515
+ readonly _tag: Schema.tag<"ValidationError">;
2516
+ readonly message: Schema.String;
2517
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2518
+ }>], {
2519
+ readonly _tag: "ValidationError";
2520
+ readonly message: string;
2521
+ readonly fields?: {
2522
+ readonly [x: string]: readonly string[];
2523
+ } | null;
2524
+ }>, Schema.Struct<{
2525
+ readonly _tag: Schema.tag<"ValidationError">;
2526
+ readonly message: Schema.String;
2527
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2528
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeTest", "POST", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2529
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2530
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
2531
+ readonly fixture: Schema.optionalKey<Schema.String>;
2532
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2533
+ readonly channel: Schema.Literal<"email">;
2534
+ readonly requestId: Schema.String;
2535
+ readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
2536
+ readonly topicId: Schema.optionalKey<Schema.brand<Schema.String, "TopicId">>;
2537
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2538
+ }>, Schema.Struct<{
2539
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2540
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
2541
+ readonly fixture: Schema.optionalKey<Schema.String>;
2542
+ readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2543
+ readonly channel: Schema.Literal<"whatsapp">;
2544
+ readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2545
+ readonly requestId: Schema.String;
2546
+ readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
2547
+ readonly topicId: Schema.optionalKey<Schema.brand<Schema.String, "TopicId">>;
2548
+ readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
2549
+ readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
2550
+ readonly challengeId: Schema.String;
2551
+ }>]>>, never, Schema.toCodecJson<Schema.Struct<{
2552
+ 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, {
2554
+ readonly _tag: "ConflictError";
2555
+ readonly message: string;
2556
+ readonly resource: string;
2557
+ readonly id?: string | null;
2558
+ }, readonly [Schema.Struct<{
2559
+ readonly _tag: Schema.tag<"ConflictError">;
2560
+ readonly message: Schema.String;
2561
+ readonly resource: Schema.String;
2562
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2563
+ }>], {
2564
+ readonly _tag: "ConflictError";
2565
+ readonly message: string;
2566
+ readonly resource: string;
2567
+ readonly id?: string | null;
2568
+ }>, Schema.Struct<{
2569
+ readonly _tag: Schema.tag<"ConflictError">;
2570
+ readonly message: Schema.String;
2571
+ readonly resource: Schema.String;
2572
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2573
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2574
+ readonly _tag: "GatewayTimeoutError";
2575
+ readonly message: string;
2576
+ readonly retryAfterSeconds: number;
2577
+ }, readonly [Schema.Struct<{
2578
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2579
+ readonly message: Schema.String;
2580
+ readonly retryAfterSeconds: Schema.Finite;
2581
+ }>], {
2582
+ readonly _tag: "GatewayTimeoutError";
2583
+ readonly message: string;
2584
+ readonly retryAfterSeconds: number;
2585
+ }>, Schema.Struct<{
2586
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2587
+ readonly message: Schema.String;
2588
+ readonly retryAfterSeconds: Schema.Finite;
2589
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
2590
+ readonly _tag: "MalformedRequestError";
2591
+ readonly message: string;
2592
+ readonly fields: {
2593
+ readonly [x: string]: readonly string[];
2594
+ };
2595
+ }, readonly [Schema.Struct<{
2596
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2597
+ readonly message: Schema.String;
2598
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2599
+ }>], {
2600
+ readonly _tag: "MalformedRequestError";
2601
+ readonly message: string;
2602
+ readonly fields: {
2603
+ readonly [x: string]: readonly string[];
2604
+ };
2605
+ }>, Schema.Struct<{
2606
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2607
+ readonly message: Schema.String;
2608
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2609
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
2610
+ readonly _tag: "PaymentRequiredError";
2611
+ readonly message: string;
2612
+ readonly resource: string;
2613
+ readonly currentUsage: number;
2614
+ readonly limit: number;
2615
+ }, readonly [Schema.Struct<{
2616
+ readonly _tag: Schema.tag<"PaymentRequiredError">;
2617
+ readonly message: Schema.String;
2618
+ readonly resource: Schema.String;
2619
+ readonly currentUsage: Schema.Finite;
2620
+ readonly limit: Schema.Finite;
2621
+ }>], {
2622
+ readonly _tag: "PaymentRequiredError";
2623
+ readonly message: string;
2624
+ readonly resource: string;
2625
+ readonly currentUsage: number;
2626
+ readonly limit: number;
2627
+ }>, Schema.Struct<{
2628
+ readonly _tag: Schema.tag<"PaymentRequiredError">;
2629
+ readonly message: Schema.String;
2630
+ readonly resource: Schema.String;
2631
+ readonly currentUsage: Schema.Finite;
2632
+ readonly limit: Schema.Finite;
2633
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
2634
+ readonly _tag: "RateLimitedError";
2635
+ readonly message: string;
2636
+ readonly retryAfterSeconds: number;
2637
+ }, readonly [Schema.Struct<{
2638
+ readonly _tag: Schema.tag<"RateLimitedError">;
2639
+ readonly message: Schema.String;
2640
+ readonly retryAfterSeconds: Schema.Finite;
2641
+ }>], {
2642
+ readonly _tag: "RateLimitedError";
2643
+ readonly message: string;
2644
+ readonly retryAfterSeconds: number;
2645
+ }>, Schema.Struct<{
2646
+ readonly _tag: Schema.tag<"RateLimitedError">;
2647
+ readonly message: Schema.String;
2648
+ readonly retryAfterSeconds: Schema.Finite;
2649
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
2650
+ readonly _tag: "ResourceNotFoundError";
2651
+ readonly resource: string;
2652
+ readonly id: string;
2653
+ readonly message: string;
2654
+ }, readonly [Schema.Struct<{
2655
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2656
+ readonly resource: Schema.String;
2657
+ readonly id: Schema.String;
2658
+ readonly message: Schema.String;
2659
+ }>], {
2660
+ readonly _tag: "ResourceNotFoundError";
2661
+ readonly resource: string;
2662
+ readonly id: string;
2663
+ readonly message: string;
2664
+ }>, Schema.Struct<{
2665
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2666
+ readonly resource: Schema.String;
2667
+ readonly id: Schema.String;
2668
+ readonly message: Schema.String;
2669
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
2670
+ readonly _tag: "UnauthorizedError";
2671
+ readonly message: string;
2672
+ }, readonly [Schema.Struct<{
2673
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2674
+ readonly message: Schema.String;
2675
+ }>], {
2676
+ readonly _tag: "UnauthorizedError";
2677
+ readonly message: string;
2678
+ }>, Schema.Struct<{
2679
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2680
+ readonly message: Schema.String;
2681
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeTestHandoff", "GET", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/handoff", never, Schema.toCodecStringTree<Schema.Struct<{
2682
+ readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
2683
+ readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2684
+ readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
2685
+ readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
2686
+ readonly fixture: Schema.optionalKey<Schema.String>;
2687
+ readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2688
+ readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
2689
+ readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
2690
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2691
+ readonly url: Schema.String;
2692
+ readonly organizationSlug: Schema.String;
2693
+ readonly setupId: Schema.Union<readonly [Schema.String, Schema.Null]>;
2694
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
2695
+ readonly _tag: "ForbiddenError";
2696
+ readonly message: string;
2697
+ }, readonly [Schema.Struct<{
2698
+ readonly _tag: Schema.tag<"ForbiddenError">;
2699
+ readonly message: Schema.String;
2700
+ }>], {
2701
+ readonly _tag: "ForbiddenError";
2702
+ readonly message: string;
2703
+ }>, Schema.Struct<{
2704
+ readonly _tag: Schema.tag<"ForbiddenError">;
2705
+ readonly message: Schema.String;
2706
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2707
+ readonly _tag: "GatewayTimeoutError";
2708
+ readonly message: string;
2709
+ readonly retryAfterSeconds: number;
2710
+ }, readonly [Schema.Struct<{
2711
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2712
+ readonly message: Schema.String;
2713
+ readonly retryAfterSeconds: Schema.Finite;
2714
+ }>], {
2715
+ readonly _tag: "GatewayTimeoutError";
2716
+ readonly message: string;
2717
+ readonly retryAfterSeconds: number;
2718
+ }>, Schema.Struct<{
2719
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2720
+ readonly message: Schema.String;
2721
+ readonly retryAfterSeconds: Schema.Finite;
2722
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
2723
+ readonly _tag: "MalformedRequestError";
2724
+ readonly message: string;
2725
+ readonly fields: {
2726
+ readonly [x: string]: readonly string[];
2727
+ };
2728
+ }, readonly [Schema.Struct<{
2729
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2730
+ readonly message: Schema.String;
2731
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2732
+ }>], {
2733
+ readonly _tag: "MalformedRequestError";
2734
+ readonly message: string;
2735
+ readonly fields: {
2736
+ readonly [x: string]: readonly string[];
2737
+ };
2738
+ }>, Schema.Struct<{
2739
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2740
+ readonly message: Schema.String;
2741
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2742
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
2743
+ readonly _tag: "ResourceNotFoundError";
2744
+ readonly resource: string;
2745
+ readonly id: string;
2746
+ readonly message: string;
2747
+ }, readonly [Schema.Struct<{
2748
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2749
+ readonly resource: Schema.String;
2750
+ readonly id: Schema.String;
2751
+ readonly message: Schema.String;
2752
+ }>], {
2753
+ readonly _tag: "ResourceNotFoundError";
2754
+ readonly resource: string;
2755
+ readonly id: string;
2756
+ readonly message: string;
2757
+ }>, Schema.Struct<{
2758
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2759
+ readonly resource: Schema.String;
2760
+ readonly id: Schema.String;
2761
+ readonly message: Schema.String;
2762
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
2763
+ readonly _tag: "UnauthorizedError";
2764
+ readonly message: string;
2765
+ }, readonly [Schema.Struct<{
2766
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2767
+ readonly message: Schema.String;
2768
+ }>], {
2769
+ readonly _tag: "UnauthorizedError";
2770
+ readonly message: string;
2771
+ }>, Schema.Struct<{
2772
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2773
+ readonly message: Schema.String;
2774
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
2775
+ readonly _tag: "ValidationError";
2776
+ readonly message: string;
2777
+ readonly fields?: {
2778
+ readonly [x: string]: readonly string[];
2779
+ } | null;
2780
+ }, readonly [Schema.Struct<{
2781
+ readonly _tag: Schema.tag<"ValidationError">;
2782
+ readonly message: Schema.String;
2783
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2784
+ }>], {
2785
+ readonly _tag: "ValidationError";
2786
+ readonly message: string;
2787
+ readonly fields?: {
2788
+ readonly [x: string]: readonly string[];
2789
+ } | null;
2790
+ }>, Schema.Struct<{
2791
+ readonly _tag: Schema.tag<"ValidationError">;
2792
+ readonly message: Schema.String;
2793
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2794
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeTestReceipt", "GET", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/:requestId", Schema.toCodecStringTree<Schema.Struct<{
2795
+ readonly requestId: Schema.String;
2796
+ }>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
2797
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
2798
+ readonly state: Schema.Union<readonly [Schema.Literal<"queued">, Schema.Literal<"unresolved">, Schema.Literal<"rejected">]>;
2799
+ }>, Schema.Null]>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
2800
+ readonly _tag: "ForbiddenError";
2801
+ readonly message: string;
2802
+ }, readonly [Schema.Struct<{
2803
+ readonly _tag: Schema.tag<"ForbiddenError">;
2804
+ readonly message: Schema.String;
2805
+ }>], {
2806
+ readonly _tag: "ForbiddenError";
2807
+ readonly message: string;
2808
+ }>, Schema.Struct<{
2809
+ readonly _tag: Schema.tag<"ForbiddenError">;
2810
+ readonly message: Schema.String;
2811
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2812
+ readonly _tag: "GatewayTimeoutError";
2813
+ readonly message: string;
2814
+ readonly retryAfterSeconds: number;
2815
+ }, readonly [Schema.Struct<{
2816
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2817
+ readonly message: Schema.String;
2818
+ readonly retryAfterSeconds: Schema.Finite;
2819
+ }>], {
2820
+ readonly _tag: "GatewayTimeoutError";
2821
+ readonly message: string;
2822
+ readonly retryAfterSeconds: number;
2823
+ }>, Schema.Struct<{
2824
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2825
+ readonly message: Schema.String;
2826
+ readonly retryAfterSeconds: Schema.Finite;
2827
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
2828
+ readonly _tag: "MalformedRequestError";
2829
+ readonly message: string;
2830
+ readonly fields: {
2831
+ readonly [x: string]: readonly string[];
2832
+ };
2833
+ }, readonly [Schema.Struct<{
2834
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2835
+ readonly message: Schema.String;
2836
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2837
+ }>], {
2838
+ readonly _tag: "MalformedRequestError";
2839
+ readonly message: string;
2840
+ readonly fields: {
2841
+ readonly [x: string]: readonly string[];
2842
+ };
2843
+ }>, Schema.Struct<{
2844
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2845
+ readonly message: Schema.String;
2846
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2847
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
2848
+ readonly _tag: "ResourceNotFoundError";
2849
+ readonly resource: string;
2850
+ readonly id: string;
2851
+ readonly message: string;
2852
+ }, readonly [Schema.Struct<{
2853
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2854
+ readonly resource: Schema.String;
2855
+ readonly id: Schema.String;
2856
+ readonly message: Schema.String;
2857
+ }>], {
2858
+ readonly _tag: "ResourceNotFoundError";
2859
+ readonly resource: string;
2860
+ readonly id: string;
2861
+ readonly message: string;
2862
+ }>, Schema.Struct<{
2863
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2864
+ readonly resource: Schema.String;
2865
+ readonly id: Schema.String;
2866
+ readonly message: Schema.String;
2867
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
2868
+ readonly _tag: "UnauthorizedError";
2869
+ readonly message: string;
2870
+ }, readonly [Schema.Struct<{
2871
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2872
+ readonly message: Schema.String;
2873
+ }>], {
2874
+ readonly _tag: "UnauthorizedError";
2875
+ readonly message: string;
2876
+ }>, Schema.Struct<{
2877
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2878
+ readonly message: Schema.String;
2879
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
2880
+ readonly _tag: "ValidationError";
2881
+ readonly message: string;
2882
+ readonly fields?: {
2883
+ readonly [x: string]: readonly string[];
2884
+ } | null;
2885
+ }, readonly [Schema.Struct<{
2886
+ readonly _tag: Schema.tag<"ValidationError">;
2887
+ readonly message: Schema.String;
2888
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2889
+ }>], {
2890
+ readonly _tag: "ValidationError";
2891
+ readonly message: string;
2892
+ readonly fields?: {
2893
+ readonly [x: string]: readonly string[];
2894
+ } | null;
2895
+ }>, Schema.Struct<{
2896
+ readonly _tag: Schema.tag<"ValidationError">;
2897
+ readonly message: Schema.String;
2898
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
2899
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeWhatsAppChallengeBegin", "POST", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/:accountId/challenges", Schema.toCodecStringTree<Schema.Struct<{
2900
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
2901
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
2902
+ readonly id: Schema.String;
2903
+ readonly expiresAt: Schema.String;
2904
+ readonly address: Schema.String;
2905
+ readonly message: Schema.String;
2906
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
2907
+ readonly _tag: "ConflictError";
2908
+ readonly message: string;
2909
+ readonly resource: string;
2910
+ readonly id?: string | null;
2911
+ }, readonly [Schema.Struct<{
2912
+ readonly _tag: Schema.tag<"ConflictError">;
2913
+ readonly message: Schema.String;
2914
+ readonly resource: Schema.String;
2915
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2916
+ }>], {
2917
+ readonly _tag: "ConflictError";
2918
+ readonly message: string;
2919
+ readonly resource: string;
2920
+ readonly id?: string | null;
2921
+ }>, Schema.Struct<{
2922
+ readonly _tag: Schema.tag<"ConflictError">;
2923
+ readonly message: Schema.String;
2924
+ readonly resource: Schema.String;
2925
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2926
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
2927
+ readonly _tag: "GatewayTimeoutError";
2928
+ readonly message: string;
2929
+ readonly retryAfterSeconds: number;
2930
+ }, readonly [Schema.Struct<{
2931
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2932
+ readonly message: Schema.String;
2933
+ readonly retryAfterSeconds: Schema.Finite;
2934
+ }>], {
2935
+ readonly _tag: "GatewayTimeoutError";
2936
+ readonly message: string;
2937
+ readonly retryAfterSeconds: number;
2938
+ }>, Schema.Struct<{
2939
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
2940
+ readonly message: Schema.String;
2941
+ readonly retryAfterSeconds: Schema.Finite;
2942
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
2943
+ readonly _tag: "MalformedRequestError";
2944
+ readonly message: string;
2945
+ readonly fields: {
2946
+ readonly [x: string]: readonly string[];
2947
+ };
2948
+ }, readonly [Schema.Struct<{
2949
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2950
+ readonly message: Schema.String;
2951
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2952
+ }>], {
2953
+ readonly _tag: "MalformedRequestError";
2954
+ readonly message: string;
2955
+ readonly fields: {
2956
+ readonly [x: string]: readonly string[];
2957
+ };
2958
+ }>, Schema.Struct<{
2959
+ readonly _tag: Schema.tag<"MalformedRequestError">;
2960
+ readonly message: Schema.String;
2961
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
2962
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
2963
+ readonly _tag: "ResourceNotFoundError";
2964
+ readonly resource: string;
2965
+ readonly id: string;
2966
+ readonly message: string;
2967
+ }, readonly [Schema.Struct<{
2968
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2969
+ readonly resource: Schema.String;
2970
+ readonly id: Schema.String;
2971
+ readonly message: Schema.String;
2972
+ }>], {
2973
+ readonly _tag: "ResourceNotFoundError";
2974
+ readonly resource: string;
2975
+ readonly id: string;
2976
+ readonly message: string;
2977
+ }>, Schema.Struct<{
2978
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
2979
+ readonly resource: Schema.String;
2980
+ readonly id: Schema.String;
2981
+ readonly message: Schema.String;
2982
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
2983
+ readonly _tag: "UnauthorizedError";
2984
+ readonly message: string;
2985
+ }, readonly [Schema.Struct<{
2986
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2987
+ readonly message: Schema.String;
2988
+ }>], {
2989
+ readonly _tag: "UnauthorizedError";
2990
+ readonly message: string;
2991
+ }>, Schema.Struct<{
2992
+ readonly _tag: Schema.tag<"UnauthorizedError">;
2993
+ readonly message: Schema.String;
2994
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
2995
+ readonly _tag: "ValidationError";
2996
+ readonly message: string;
2997
+ readonly fields?: {
2998
+ readonly [x: string]: readonly string[];
2999
+ } | null;
3000
+ }, readonly [Schema.Struct<{
3001
+ readonly _tag: Schema.tag<"ValidationError">;
3002
+ readonly message: Schema.String;
3003
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
3004
+ }>], {
3005
+ readonly _tag: "ValidationError";
3006
+ readonly message: string;
3007
+ readonly fields?: {
3008
+ readonly [x: string]: readonly string[];
3009
+ } | null;
3010
+ }>, Schema.Struct<{
3011
+ readonly _tag: Schema.tag<"ValidationError">;
3012
+ readonly message: Schema.String;
3013
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
3014
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeWhatsAppChallengeConfirm", "POST", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/:accountId/challenges/:id/confirm", Schema.toCodecStringTree<Schema.Struct<{
3015
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
3016
+ readonly id: Schema.String;
3017
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3018
+ readonly observedPhone: Schema.String;
3019
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
3020
+ readonly id: Schema.String;
3021
+ readonly expiresAt: Schema.String;
3022
+ readonly observedPhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
3023
+ readonly confirmedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3024
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
3025
+ readonly _tag: "ConflictError";
3026
+ readonly message: string;
3027
+ readonly resource: string;
3028
+ readonly id?: string | null;
3029
+ }, readonly [Schema.Struct<{
3030
+ readonly _tag: Schema.tag<"ConflictError">;
3031
+ readonly message: Schema.String;
3032
+ readonly resource: Schema.String;
3033
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3034
+ }>], {
3035
+ readonly _tag: "ConflictError";
3036
+ readonly message: string;
3037
+ readonly resource: string;
3038
+ readonly id?: string | null;
3039
+ }>, Schema.Struct<{
3040
+ readonly _tag: Schema.tag<"ConflictError">;
3041
+ readonly message: Schema.String;
3042
+ readonly resource: Schema.String;
3043
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3044
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
3045
+ readonly _tag: "GatewayTimeoutError";
3046
+ readonly message: string;
3047
+ readonly retryAfterSeconds: number;
3048
+ }, readonly [Schema.Struct<{
3049
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
3050
+ readonly message: Schema.String;
3051
+ readonly retryAfterSeconds: Schema.Finite;
3052
+ }>], {
3053
+ readonly _tag: "GatewayTimeoutError";
3054
+ readonly message: string;
3055
+ readonly retryAfterSeconds: number;
3056
+ }>, Schema.Struct<{
3057
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
3058
+ readonly message: Schema.String;
3059
+ readonly retryAfterSeconds: Schema.Finite;
3060
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
3061
+ readonly _tag: "MalformedRequestError";
3062
+ readonly message: string;
3063
+ readonly fields: {
3064
+ readonly [x: string]: readonly string[];
3065
+ };
3066
+ }, readonly [Schema.Struct<{
3067
+ readonly _tag: Schema.tag<"MalformedRequestError">;
3068
+ readonly message: Schema.String;
3069
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
3070
+ }>], {
3071
+ readonly _tag: "MalformedRequestError";
3072
+ readonly message: string;
3073
+ readonly fields: {
3074
+ readonly [x: string]: readonly string[];
3075
+ };
3076
+ }>, Schema.Struct<{
3077
+ readonly _tag: Schema.tag<"MalformedRequestError">;
3078
+ readonly message: Schema.String;
3079
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
3080
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
3081
+ readonly _tag: "ResourceNotFoundError";
3082
+ readonly resource: string;
3083
+ readonly id: string;
3084
+ readonly message: string;
3085
+ }, readonly [Schema.Struct<{
3086
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
3087
+ readonly resource: Schema.String;
3088
+ readonly id: Schema.String;
3089
+ readonly message: Schema.String;
3090
+ }>], {
3091
+ readonly _tag: "ResourceNotFoundError";
3092
+ readonly resource: string;
3093
+ readonly id: string;
3094
+ readonly message: string;
3095
+ }>, Schema.Struct<{
3096
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
3097
+ readonly resource: Schema.String;
3098
+ readonly id: Schema.String;
3099
+ readonly message: Schema.String;
3100
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
3101
+ readonly _tag: "UnauthorizedError";
3102
+ readonly message: string;
3103
+ }, readonly [Schema.Struct<{
3104
+ readonly _tag: Schema.tag<"UnauthorizedError">;
3105
+ readonly message: Schema.String;
3106
+ }>], {
3107
+ readonly _tag: "UnauthorizedError";
3108
+ readonly message: string;
3109
+ }>, Schema.Struct<{
3110
+ readonly _tag: Schema.tag<"UnauthorizedError">;
3111
+ readonly message: Schema.String;
3112
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
3113
+ readonly _tag: "ValidationError";
3114
+ readonly message: string;
3115
+ readonly fields?: {
3116
+ readonly [x: string]: readonly string[];
3117
+ } | null;
3118
+ }, readonly [Schema.Struct<{
3119
+ readonly _tag: Schema.tag<"ValidationError">;
3120
+ readonly message: Schema.String;
3121
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
3122
+ }>], {
3123
+ readonly _tag: "ValidationError";
3124
+ readonly message: string;
3125
+ readonly fields?: {
3126
+ readonly [x: string]: readonly string[];
3127
+ } | null;
3128
+ }>, Schema.Struct<{
3129
+ readonly _tag: Schema.tag<"ValidationError">;
3130
+ readonly message: Schema.String;
3131
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
3132
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogRecipeWhatsAppChallengeGet", "GET", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/:accountId/challenges/:id", Schema.toCodecStringTree<Schema.Struct<{
3133
+ readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
3134
+ readonly id: Schema.String;
3135
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
3136
+ readonly id: Schema.String;
3137
+ readonly expiresAt: Schema.String;
3138
+ readonly observedPhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
3139
+ readonly confirmedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3140
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
3141
+ readonly _tag: "ConflictError";
3142
+ readonly message: string;
3143
+ readonly resource: string;
3144
+ readonly id?: string | null;
3145
+ }, readonly [Schema.Struct<{
3146
+ readonly _tag: Schema.tag<"ConflictError">;
3147
+ readonly message: Schema.String;
3148
+ readonly resource: Schema.String;
3149
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3150
+ }>], {
3151
+ readonly _tag: "ConflictError";
3152
+ readonly message: string;
3153
+ readonly resource: string;
3154
+ readonly id?: string | null;
3155
+ }>, Schema.Struct<{
3156
+ readonly _tag: Schema.tag<"ConflictError">;
3157
+ readonly message: Schema.String;
3158
+ readonly resource: Schema.String;
3159
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3160
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
3161
+ readonly _tag: "GatewayTimeoutError";
3162
+ readonly message: string;
3163
+ readonly retryAfterSeconds: number;
3164
+ }, readonly [Schema.Struct<{
3165
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
3166
+ readonly message: Schema.String;
3167
+ readonly retryAfterSeconds: Schema.Finite;
3168
+ }>], {
3169
+ readonly _tag: "GatewayTimeoutError";
3170
+ readonly message: string;
3171
+ readonly retryAfterSeconds: number;
3172
+ }>, Schema.Struct<{
3173
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
3174
+ readonly message: Schema.String;
3175
+ readonly retryAfterSeconds: Schema.Finite;
3176
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
3177
+ readonly _tag: "MalformedRequestError";
3178
+ readonly message: string;
3179
+ readonly fields: {
3180
+ readonly [x: string]: readonly string[];
3181
+ };
3182
+ }, readonly [Schema.Struct<{
3183
+ readonly _tag: Schema.tag<"MalformedRequestError">;
3184
+ readonly message: Schema.String;
3185
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
3186
+ }>], {
3187
+ readonly _tag: "MalformedRequestError";
3188
+ readonly message: string;
3189
+ readonly fields: {
3190
+ readonly [x: string]: readonly string[];
3191
+ };
3192
+ }>, Schema.Struct<{
3193
+ readonly _tag: Schema.tag<"MalformedRequestError">;
3194
+ readonly message: Schema.String;
3195
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
3196
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
3197
+ readonly _tag: "ResourceNotFoundError";
3198
+ readonly resource: string;
3199
+ readonly id: string;
3200
+ readonly message: string;
3201
+ }, readonly [Schema.Struct<{
3202
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
3203
+ readonly resource: Schema.String;
3204
+ readonly id: Schema.String;
3205
+ readonly message: Schema.String;
3206
+ }>], {
3207
+ readonly _tag: "ResourceNotFoundError";
3208
+ readonly resource: string;
3209
+ readonly id: string;
3210
+ readonly message: string;
3211
+ }>, Schema.Struct<{
3212
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
3213
+ readonly resource: Schema.String;
3214
+ readonly id: Schema.String;
3215
+ readonly message: Schema.String;
3216
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
3217
+ readonly _tag: "UnauthorizedError";
3218
+ readonly message: string;
3219
+ }, readonly [Schema.Struct<{
3220
+ readonly _tag: Schema.tag<"UnauthorizedError">;
3221
+ readonly message: Schema.String;
3222
+ }>], {
3223
+ readonly _tag: "UnauthorizedError";
3224
+ readonly message: string;
3225
+ }>, Schema.Struct<{
3226
+ readonly _tag: Schema.tag<"UnauthorizedError">;
3227
+ readonly message: Schema.String;
3228
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
3229
+ readonly _tag: "ValidationError";
3230
+ readonly message: string;
3231
+ readonly fields?: {
3232
+ readonly [x: string]: readonly string[];
3233
+ } | null;
3234
+ }, readonly [Schema.Struct<{
3235
+ readonly _tag: Schema.tag<"ValidationError">;
3236
+ readonly message: Schema.String;
3237
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
3238
+ }>], {
3239
+ readonly _tag: "ValidationError";
3240
+ readonly message: string;
3241
+ readonly fields?: {
3242
+ readonly [x: string]: readonly string[];
3243
+ } | null;
3244
+ }>, Schema.Struct<{
3245
+ readonly _tag: Schema.tag<"ValidationError">;
3246
+ readonly message: Schema.String;
3247
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
547
3248
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogSearch", "GET", "/v1/integrations/catalog/search", never, Schema.toCodecStringTree<Schema.Struct<{
548
3249
  readonly key: Schema.optionalKey<Schema.String>;
549
3250
  readonly query: Schema.optionalKey<Schema.String>;