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.
- package/dist/client/sdk.gen.d.ts +272 -33
- package/dist/client/sdk.gen.js +693 -55
- package/dist/client/types.gen.d.ts +1571 -206
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/agents.d.ts +13 -13
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/api-keys.d.ts +11 -11
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/campaigns.d.ts +15 -15
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contacts.d.ts +25 -25
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
- package/dist/effect/descriptors/integrations-catalog.js +122 -0
- package/dist/effect/descriptors/mailboxes.d.ts +73 -13
- package/dist/effect/descriptors/mailboxes.js +85 -13
- package/dist/effect/email.d.ts +61 -61
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/generated/accounts.d.ts +1 -3
- package/dist/effect/generated/accounts.js +2 -7
- package/dist/effect/generated/api-keys.d.ts +15 -15
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
- package/dist/effect/generated/integrations-catalog.js +578 -3
- package/dist/effect/generated/journeys.d.ts +9 -11
- package/dist/effect/generated/journeys.js +6 -12
- package/dist/effect/generated/mailboxes.d.ts +1661 -669
- package/dist/effect/generated/mailboxes.js +291 -103
- package/dist/effect/generated/messages.d.ts +109 -4
- package/dist/effect/generated/messages.js +41 -8
- package/dist/effect/generated/shared.d.ts +199 -21
- package/dist/effect/generated/shared.js +50 -13
- package/dist/effect/generated/template-registrations.d.ts +32 -1
- package/dist/effect/generated/template-registrations.js +8 -5
- package/dist/effect/generated/templates.d.ts +1 -4
- package/dist/effect/generated/templates.js +2 -6
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -8
- package/dist/effect/generated/whoami.d.ts +4 -4
- package/dist/effect/generated-metadata.d.ts +138 -18
- package/dist/effect/generated-metadata.js +366 -340
- package/dist/effect/integrations-catalog.d.ts +228 -3
- package/dist/effect/integrations-catalog.js +29 -1
- package/dist/effect/integrations.d.ts +7 -7
- package/dist/effect/internal/client.d.ts +7 -3
- package/dist/effect/internal/operation.d.ts +10 -6
- package/dist/effect/internal/operation.js +3 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/mailboxes.d.ts +142 -92
- package/dist/effect/mailboxes.js +20 -8
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/namespaces.d.ts +11 -11
- package/dist/effect/newsletter-domains.d.ts +4 -4
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +5 -5
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/template-registrations.d.ts +9 -3
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topics.d.ts +9 -9
- package/dist/effect/webhooks.d.ts +15 -15
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-setup-links.d.ts +4 -4
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/inline-attachments.d.ts +0 -5
- package/dist/mailbox-events.d.ts +1 -5
- package/dist/mailbox-events.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -4
- package/dist/promises/client.js +8 -4
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +105 -11
- package/package.json +3 -3
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, IntegrationKey, IntegrationStatus, InternalError, JsonObject, MalformedRequestError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
1
|
+
import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
// src/effect/generated/integrations-catalog.ts
|
|
5
|
+
const RecipeHandoff = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
|
+
url: Schema.String,
|
|
7
|
+
organizationSlug: Schema.String,
|
|
8
|
+
setupId: Schema.Union([Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })), Schema.Null])
|
|
9
|
+
}).annotate({ identifier: "RecipeHandoff" }))();
|
|
10
|
+
const RecipeChallengeStarted = /* @__PURE__ */ (() => Schema.Struct({
|
|
11
|
+
id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
|
|
12
|
+
expiresAt: Schema.String,
|
|
13
|
+
address: Schema.String,
|
|
14
|
+
message: Schema.String
|
|
15
|
+
}).annotate({ identifier: "RecipeChallengeStarted" }))();
|
|
16
|
+
const RecipeChallengeStatus = /* @__PURE__ */ (() => Schema.Struct({
|
|
17
|
+
id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
|
|
18
|
+
expiresAt: Schema.String,
|
|
19
|
+
observedPhone: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" })), Schema.Null]),
|
|
20
|
+
confirmedAt: Schema.Union([Schema.String, Schema.Null])
|
|
21
|
+
}).annotate({ identifier: "RecipeChallengeStatus" }))();
|
|
5
22
|
const IntegrationCatalogSearchEntry = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
23
|
key: IntegrationKey,
|
|
7
24
|
kind: Schema.Union([
|
|
@@ -60,11 +77,149 @@ const IntegrationCatalogSearchEntry = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
60
77
|
]),
|
|
61
78
|
reason: Schema.Union([Schema.String, Schema.Null])
|
|
62
79
|
}).annotate({ identifier: "IntegrationCatalogSearchEntry" }))();
|
|
80
|
+
const RecipeCatalogResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
81
|
+
recipes: Schema.Array(Schema.Struct({
|
|
82
|
+
id: Schema.Literal("post-delivery-check-in"),
|
|
83
|
+
title: Schema.String,
|
|
84
|
+
trigger: Schema.Union([
|
|
85
|
+
Schema.Literal("shopify.order_created"),
|
|
86
|
+
Schema.Literal("shopify.order_fulfilled"),
|
|
87
|
+
Schema.Literal("shopify.order_delivered"),
|
|
88
|
+
Schema.Literal("shopify.refund_created"),
|
|
89
|
+
Schema.Literal("shopify.checkout_started")
|
|
90
|
+
]),
|
|
91
|
+
stopEvent: Schema.Union([
|
|
92
|
+
Schema.Literal("shopify.order_created"),
|
|
93
|
+
Schema.Literal("shopify.order_fulfilled"),
|
|
94
|
+
Schema.Literal("shopify.order_delivered"),
|
|
95
|
+
Schema.Literal("shopify.refund_created"),
|
|
96
|
+
Schema.Literal("shopify.checkout_started")
|
|
97
|
+
]),
|
|
98
|
+
waitDays: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
99
|
+
channels: Schema.Array(Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]))
|
|
100
|
+
})),
|
|
101
|
+
events: Schema.Array(Schema.Struct({
|
|
102
|
+
event: Schema.Union([
|
|
103
|
+
Schema.Literal("shopify.order_created"),
|
|
104
|
+
Schema.Literal("shopify.order_fulfilled"),
|
|
105
|
+
Schema.Literal("shopify.order_delivered"),
|
|
106
|
+
Schema.Literal("shopify.refund_created"),
|
|
107
|
+
Schema.Literal("shopify.checkout_started")
|
|
108
|
+
]),
|
|
109
|
+
version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
110
|
+
producer: Schema.String,
|
|
111
|
+
schema: JsonObject,
|
|
112
|
+
paths: Schema.Array(Schema.Struct({
|
|
113
|
+
path: Schema.String,
|
|
114
|
+
mayBeEmpty: Schema.Boolean
|
|
115
|
+
})),
|
|
116
|
+
samples: Schema.Array(Schema.Struct({
|
|
117
|
+
fixture: Schema.String,
|
|
118
|
+
label: Schema.String,
|
|
119
|
+
properties: JsonObject
|
|
120
|
+
}))
|
|
121
|
+
}))
|
|
122
|
+
}).annotate({ identifier: "RecipeCatalogResponse" }))();
|
|
123
|
+
const RecipeTestResponse = /* @__PURE__ */ (() => Schema.Struct({ messageId: MessageId }).annotate({ identifier: "RecipeTestResponse" }))();
|
|
124
|
+
const RecipeTestReceipt = /* @__PURE__ */ (() => Schema.Struct({
|
|
125
|
+
messageId: MessageId,
|
|
126
|
+
state: Schema.Union([
|
|
127
|
+
Schema.Literal("queued"),
|
|
128
|
+
Schema.Literal("unresolved"),
|
|
129
|
+
Schema.Literal("rejected")
|
|
130
|
+
])
|
|
131
|
+
}).annotate({ identifier: "RecipeTestReceipt" }))();
|
|
132
|
+
const RecipePreviewResponse = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
133
|
+
fixture: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
134
|
+
publicationId: TemplatePublicationId,
|
|
135
|
+
channel: Schema.Literal("email"),
|
|
136
|
+
content: Schema.Struct({
|
|
137
|
+
subject: Schema.String,
|
|
138
|
+
preheader: Schema.optionalKey(Schema.String),
|
|
139
|
+
html: Schema.String.check(Schema.isMaxCodePoints(2097152).annotate({ expected: "a string with at most 2097152 code points" })).check(Schema.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
|
|
140
|
+
text: Schema.String.check(Schema.isMaxCodePoints(2097152).annotate({ expected: "a string with at most 2097152 code points" })).check(Schema.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" }))
|
|
141
|
+
})
|
|
142
|
+
}), Schema.Struct({
|
|
143
|
+
fixture: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
144
|
+
publicationId: TemplatePublicationId,
|
|
145
|
+
channel: Schema.Literal("whatsapp"),
|
|
146
|
+
content: JsonObject
|
|
147
|
+
})]).annotate({ identifier: "RecipePreviewResponse" }))();
|
|
63
148
|
const IntegrationCatalogConnection = /* @__PURE__ */ (() => Schema.Struct({
|
|
64
149
|
id: Schema.String,
|
|
65
150
|
account: Schema.Union([Schema.String, Schema.Null]),
|
|
66
151
|
status: IntegrationStatus
|
|
67
152
|
}).annotate({ identifier: "IntegrationCatalogConnection" }))();
|
|
153
|
+
const RecipeReadinessResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
154
|
+
ready: Schema.Boolean,
|
|
155
|
+
channel: Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]),
|
|
156
|
+
availability: Schema.Struct({
|
|
157
|
+
shopify: Schema.Boolean,
|
|
158
|
+
journeys: Schema.Boolean,
|
|
159
|
+
whatsapp: Schema.Boolean,
|
|
160
|
+
plan: Schema.Union([Schema.Union([
|
|
161
|
+
Schema.Literal("granted"),
|
|
162
|
+
Schema.Literal("denied"),
|
|
163
|
+
Schema.Literal("unreachable"),
|
|
164
|
+
Schema.Literal("disabled")
|
|
165
|
+
]), Schema.Null])
|
|
166
|
+
}),
|
|
167
|
+
shopify: Schema.Union([Schema.Struct({
|
|
168
|
+
id: IntegrationAccountId,
|
|
169
|
+
status: AccountStatus,
|
|
170
|
+
shop: Schema.String
|
|
171
|
+
}), Schema.Null]),
|
|
172
|
+
publication: Schema.Union([Schema.Struct({
|
|
173
|
+
id: TemplatePublicationId,
|
|
174
|
+
templateId: TemplateId,
|
|
175
|
+
parameters: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
176
|
+
name: Schema.String,
|
|
177
|
+
required: Schema.Boolean
|
|
178
|
+
})).annotate({ description: "Top-level inputs of the selected email publication or approved WhatsApp registration." })),
|
|
179
|
+
inputIssues: Schema.optionalKey(Schema.Array(Schema.String).annotate({ description: "Email input diagnostics and guidance when the journey cannot fill this publication." }))
|
|
180
|
+
}), Schema.Null]),
|
|
181
|
+
email: Schema.Union([Schema.Struct({
|
|
182
|
+
senderId: Schema.Union([EmailSenderId, Schema.Null]),
|
|
183
|
+
domainId: Schema.Union([EmailDomainId, Schema.Null]),
|
|
184
|
+
address: Schema.String,
|
|
185
|
+
status: Schema.Union([
|
|
186
|
+
Schema.Literal("ready"),
|
|
187
|
+
Schema.Literal("unverified"),
|
|
188
|
+
Schema.Literal("inactive")
|
|
189
|
+
])
|
|
190
|
+
}), Schema.Null]),
|
|
191
|
+
whatsapp: Schema.Union([Schema.Struct({
|
|
192
|
+
accountId: WhatsAppBusinessAccountId,
|
|
193
|
+
address: Schema.String,
|
|
194
|
+
status: Schema.Union([
|
|
195
|
+
Schema.Literal("ready"),
|
|
196
|
+
Schema.Literal("reconnect"),
|
|
197
|
+
Schema.Literal("unverified"),
|
|
198
|
+
Schema.Literal("inactive")
|
|
199
|
+
]),
|
|
200
|
+
registration: Schema.Union([Schema.Struct({
|
|
201
|
+
id: TemplateRegistrationId,
|
|
202
|
+
status: Schema.Union([
|
|
203
|
+
Schema.Literal("draft"),
|
|
204
|
+
Schema.Literal("submitted"),
|
|
205
|
+
Schema.Literal("approved"),
|
|
206
|
+
Schema.Literal("rejected"),
|
|
207
|
+
Schema.Literal("paused"),
|
|
208
|
+
Schema.Literal("disabled")
|
|
209
|
+
])
|
|
210
|
+
}), Schema.Null])
|
|
211
|
+
}), Schema.Null]),
|
|
212
|
+
reply: Schema.Union([Schema.Struct({
|
|
213
|
+
endpointId: MailboxEndpointId,
|
|
214
|
+
mailboxId: MailboxId,
|
|
215
|
+
address: Schema.String,
|
|
216
|
+
status: Schema.Union([
|
|
217
|
+
Schema.Literal("ready"),
|
|
218
|
+
Schema.Literal("inactive"),
|
|
219
|
+
Schema.Literal("different_account")
|
|
220
|
+
])
|
|
221
|
+
}), Schema.Null])
|
|
222
|
+
}).annotate({ identifier: "RecipeReadinessResponse" }))();
|
|
68
223
|
const IntegrationCatalogSearchPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
69
224
|
items: Schema.Array(IntegrationCatalogSearchEntry),
|
|
70
225
|
total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
@@ -104,7 +259,22 @@ const IntegrationCatalogEntry = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
104
259
|
journeys: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
105
260
|
})
|
|
106
261
|
}).annotate({ identifier: "IntegrationCatalogEntry" }))();
|
|
262
|
+
const RecipeSetup = /* @__PURE__ */ (() => Schema.Struct({
|
|
263
|
+
id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
|
|
264
|
+
revision: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
|
|
265
|
+
references: RecipeSetupReferences,
|
|
266
|
+
updatedAt: Schema.String
|
|
267
|
+
}).annotate({ identifier: "RecipeSetup" }))();
|
|
107
268
|
const IntegrationCatalogResponse = /* @__PURE__ */ (() => Schema.Struct({ entries: Schema.Array(IntegrationCatalogEntry) }).annotate({ identifier: "IntegrationCatalogResponse" }))();
|
|
269
|
+
const RecipeSetups = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(RecipeSetup) }).annotate({ identifier: "RecipeSetups" }))();
|
|
270
|
+
const ActivatedRecipeSetup = /* @__PURE__ */ (() => Schema.Struct({
|
|
271
|
+
setup: RecipeSetup,
|
|
272
|
+
journey: Schema.Struct({
|
|
273
|
+
id: JourneyId,
|
|
274
|
+
status: JourneyStatus,
|
|
275
|
+
publishedVersion: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
276
|
+
})
|
|
277
|
+
}).annotate({ identifier: "ActivatedRecipeSetup" }))();
|
|
108
278
|
const IntegrationCatalogList200 = IntegrationCatalogResponse;
|
|
109
279
|
const IntegrationCatalogList400 = MalformedRequestError;
|
|
110
280
|
const IntegrationCatalogList401 = UnauthorizedError;
|
|
@@ -150,6 +320,231 @@ const IntegrationCatalogPrepare403 = ForbiddenError;
|
|
|
150
320
|
const IntegrationCatalogPrepare422 = ValidationError;
|
|
151
321
|
const IntegrationCatalogPrepare500 = InternalError;
|
|
152
322
|
const IntegrationCatalogPrepare504 = GatewayTimeoutError;
|
|
323
|
+
const IntegrationCatalogRecipeCatalog200 = RecipeCatalogResponse;
|
|
324
|
+
const IntegrationCatalogRecipeCatalog400 = MalformedRequestError;
|
|
325
|
+
const IntegrationCatalogRecipeCatalog401 = UnauthorizedError;
|
|
326
|
+
const IntegrationCatalogRecipeCatalog403 = ForbiddenError;
|
|
327
|
+
const IntegrationCatalogRecipeCatalog422 = ValidationError;
|
|
328
|
+
const IntegrationCatalogRecipeCatalog500 = InternalError;
|
|
329
|
+
const IntegrationCatalogRecipeCatalog504 = GatewayTimeoutError;
|
|
330
|
+
const IntegrationCatalogRecipeConnectionHandoffPathParams = /* @__PURE__ */ (() => Schema.Struct({ provider: Schema.Union([Schema.Literal("shopify"), Schema.Literal("whatsapp")]) }))();
|
|
331
|
+
const IntegrationCatalogRecipeConnectionHandoffQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
332
|
+
integrationAccountId: Schema.optionalKey(IntegrationAccountId),
|
|
333
|
+
whatsappAccountId: Schema.optionalKey(WhatsAppBusinessAccountId),
|
|
334
|
+
setupId: Schema.optionalKey(Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })))
|
|
335
|
+
}))();
|
|
336
|
+
const IntegrationCatalogRecipeConnectionHandoff200 = RecipeHandoff;
|
|
337
|
+
const IntegrationCatalogRecipeConnectionHandoff400 = MalformedRequestError;
|
|
338
|
+
const IntegrationCatalogRecipeConnectionHandoff401 = UnauthorizedError;
|
|
339
|
+
const IntegrationCatalogRecipeConnectionHandoff403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
|
|
340
|
+
const IntegrationCatalogRecipeConnectionHandoff404 = ResourceNotFoundError;
|
|
341
|
+
const IntegrationCatalogRecipeConnectionHandoff422 = ValidationError;
|
|
342
|
+
const IntegrationCatalogRecipeConnectionHandoff500 = InternalError;
|
|
343
|
+
const IntegrationCatalogRecipeConnectionHandoff504 = GatewayTimeoutError;
|
|
344
|
+
const IntegrationCatalogRecipeTestRequestJson = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
345
|
+
templateId: TemplateId,
|
|
346
|
+
publicationId: TemplatePublicationId,
|
|
347
|
+
fixture: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))),
|
|
348
|
+
templateData: Schema.optionalKey(JsonObject),
|
|
349
|
+
channel: Schema.Literal("email"),
|
|
350
|
+
requestId: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
|
|
351
|
+
mailboxEndpointId: MailboxEndpointId,
|
|
352
|
+
topicId: Schema.optionalKey(TopicId),
|
|
353
|
+
senderId: Schema.optionalKey(EmailSenderId)
|
|
354
|
+
}), Schema.Struct({
|
|
355
|
+
templateId: TemplateId,
|
|
356
|
+
publicationId: TemplatePublicationId,
|
|
357
|
+
fixture: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))),
|
|
358
|
+
templateData: Schema.optionalKey(JsonObject),
|
|
359
|
+
channel: Schema.Literal("whatsapp"),
|
|
360
|
+
eventBindings: Schema.optionalKey(Schema.Record(Schema.String, Schema.String.check(Schema.isMaxCodePoints(160).annotate({ expected: "a string with at most 160 code points" })).check(Schema.isMaxLength(160).annotate({ expected: "a value with a length of at most 160" })))),
|
|
361
|
+
requestId: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
|
|
362
|
+
mailboxEndpointId: MailboxEndpointId,
|
|
363
|
+
topicId: Schema.optionalKey(TopicId),
|
|
364
|
+
businessAccountId: WhatsAppBusinessAccountId,
|
|
365
|
+
registrationId: TemplateRegistrationId,
|
|
366
|
+
challengeId: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" }))
|
|
367
|
+
})]))();
|
|
368
|
+
const IntegrationCatalogRecipeTest200 = RecipeTestResponse;
|
|
369
|
+
const IntegrationCatalogRecipeTest400 = MalformedRequestError;
|
|
370
|
+
const IntegrationCatalogRecipeTest401 = UnauthorizedError;
|
|
371
|
+
const IntegrationCatalogRecipeTest402 = PaymentRequiredError;
|
|
372
|
+
const IntegrationCatalogRecipeTest403 = /* @__PURE__ */ (() => Schema.Union([
|
|
373
|
+
ForbiddenError,
|
|
374
|
+
FlagDisabledError,
|
|
375
|
+
OnboardingReviewRequiredError
|
|
376
|
+
]))();
|
|
377
|
+
const IntegrationCatalogRecipeTest404 = ResourceNotFoundError;
|
|
378
|
+
const IntegrationCatalogRecipeTest409 = ConflictError;
|
|
379
|
+
const IntegrationCatalogRecipeTest422 = /* @__PURE__ */ (() => Schema.Union([
|
|
380
|
+
ValidationError,
|
|
381
|
+
FromAddressRequiredError,
|
|
382
|
+
BrandAddressRequiredError,
|
|
383
|
+
CampaignFooterRequiredError
|
|
384
|
+
]))();
|
|
385
|
+
const IntegrationCatalogRecipeTest429 = RateLimitedError;
|
|
386
|
+
const IntegrationCatalogRecipeTest500 = InternalError;
|
|
387
|
+
const IntegrationCatalogRecipeTest502 = /* @__PURE__ */ (() => Schema.Union([BillingProviderError, ExternalServiceError]))();
|
|
388
|
+
const IntegrationCatalogRecipeTest503 = /* @__PURE__ */ (() => Schema.Union([SenderNotReadyError, DeliveryUnavailableError]))();
|
|
389
|
+
const IntegrationCatalogRecipeTest504 = GatewayTimeoutError;
|
|
390
|
+
const IntegrationCatalogRecipeTestReceiptPathParams = /* @__PURE__ */ (() => Schema.Struct({ requestId: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })) }))();
|
|
391
|
+
const IntegrationCatalogRecipeTestReceipt200 = /* @__PURE__ */ (() => Schema.Union([RecipeTestReceipt, Schema.Null]))();
|
|
392
|
+
const IntegrationCatalogRecipeTestReceipt400 = MalformedRequestError;
|
|
393
|
+
const IntegrationCatalogRecipeTestReceipt401 = UnauthorizedError;
|
|
394
|
+
const IntegrationCatalogRecipeTestReceipt403 = ForbiddenError;
|
|
395
|
+
const IntegrationCatalogRecipeTestReceipt404 = ResourceNotFoundError;
|
|
396
|
+
const IntegrationCatalogRecipeTestReceipt422 = ValidationError;
|
|
397
|
+
const IntegrationCatalogRecipeTestReceipt500 = InternalError;
|
|
398
|
+
const IntegrationCatalogRecipeTestReceipt504 = GatewayTimeoutError;
|
|
399
|
+
const IntegrationCatalogRecipeTestHandoffQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
400
|
+
channel: Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]),
|
|
401
|
+
templateId: TemplateId,
|
|
402
|
+
publicationId: TemplatePublicationId,
|
|
403
|
+
mailboxEndpointId: MailboxEndpointId,
|
|
404
|
+
fixture: Schema.optionalKey(Schema.String.check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))),
|
|
405
|
+
senderId: Schema.optionalKey(EmailSenderId),
|
|
406
|
+
businessAccountId: Schema.optionalKey(WhatsAppBusinessAccountId),
|
|
407
|
+
registrationId: Schema.optionalKey(TemplateRegistrationId)
|
|
408
|
+
}))();
|
|
409
|
+
const IntegrationCatalogRecipeTestHandoff200 = RecipeHandoff;
|
|
410
|
+
const IntegrationCatalogRecipeTestHandoff400 = MalformedRequestError;
|
|
411
|
+
const IntegrationCatalogRecipeTestHandoff401 = UnauthorizedError;
|
|
412
|
+
const IntegrationCatalogRecipeTestHandoff403 = ForbiddenError;
|
|
413
|
+
const IntegrationCatalogRecipeTestHandoff404 = ResourceNotFoundError;
|
|
414
|
+
const IntegrationCatalogRecipeTestHandoff422 = ValidationError;
|
|
415
|
+
const IntegrationCatalogRecipeTestHandoff500 = InternalError;
|
|
416
|
+
const IntegrationCatalogRecipeTestHandoff504 = GatewayTimeoutError;
|
|
417
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBeginPathParams = /* @__PURE__ */ (() => Schema.Struct({ accountId: WhatsAppBusinessAccountId }))();
|
|
418
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin200 = RecipeChallengeStarted;
|
|
419
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin400 = MalformedRequestError;
|
|
420
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin401 = UnauthorizedError;
|
|
421
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
|
|
422
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin404 = ResourceNotFoundError;
|
|
423
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin409 = ConflictError;
|
|
424
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin422 = ValidationError;
|
|
425
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin500 = InternalError;
|
|
426
|
+
const IntegrationCatalogRecipeWhatsAppChallengeBegin504 = GatewayTimeoutError;
|
|
427
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGetPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
428
|
+
accountId: WhatsAppBusinessAccountId,
|
|
429
|
+
id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" }))
|
|
430
|
+
}))();
|
|
431
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet200 = RecipeChallengeStatus;
|
|
432
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet400 = MalformedRequestError;
|
|
433
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet401 = UnauthorizedError;
|
|
434
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
|
|
435
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet404 = ResourceNotFoundError;
|
|
436
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet409 = ConflictError;
|
|
437
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet422 = ValidationError;
|
|
438
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet500 = InternalError;
|
|
439
|
+
const IntegrationCatalogRecipeWhatsAppChallengeGet504 = GatewayTimeoutError;
|
|
440
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirmPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
441
|
+
accountId: WhatsAppBusinessAccountId,
|
|
442
|
+
id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" }))
|
|
443
|
+
}))();
|
|
444
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirmRequestJson = /* @__PURE__ */ (() => Schema.Struct({ observedPhone: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" })) }))();
|
|
445
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm200 = RecipeChallengeStatus;
|
|
446
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm400 = MalformedRequestError;
|
|
447
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm401 = UnauthorizedError;
|
|
448
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
|
|
449
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm404 = ResourceNotFoundError;
|
|
450
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm409 = ConflictError;
|
|
451
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm422 = ValidationError;
|
|
452
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm500 = InternalError;
|
|
453
|
+
const IntegrationCatalogRecipeWhatsAppChallengeConfirm504 = GatewayTimeoutError;
|
|
454
|
+
const IntegrationCatalogRecipePreviewRequestJson = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
455
|
+
templateId: TemplateId,
|
|
456
|
+
publicationId: TemplatePublicationId,
|
|
457
|
+
fixture: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))),
|
|
458
|
+
templateData: Schema.optionalKey(JsonObject),
|
|
459
|
+
channel: Schema.Literal("email")
|
|
460
|
+
}), Schema.Struct({
|
|
461
|
+
templateId: TemplateId,
|
|
462
|
+
publicationId: TemplatePublicationId,
|
|
463
|
+
fixture: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))),
|
|
464
|
+
templateData: Schema.optionalKey(JsonObject),
|
|
465
|
+
channel: Schema.Literal("whatsapp"),
|
|
466
|
+
eventBindings: Schema.optionalKey(Schema.Record(Schema.String, Schema.String.check(Schema.isMaxCodePoints(160).annotate({ expected: "a string with at most 160 code points" })).check(Schema.isMaxLength(160).annotate({ expected: "a value with a length of at most 160" }))))
|
|
467
|
+
})]))();
|
|
468
|
+
const IntegrationCatalogRecipePreview200 = RecipePreviewResponse;
|
|
469
|
+
const IntegrationCatalogRecipePreview400 = MalformedRequestError;
|
|
470
|
+
const IntegrationCatalogRecipePreview401 = UnauthorizedError;
|
|
471
|
+
const IntegrationCatalogRecipePreview403 = ForbiddenError;
|
|
472
|
+
const IntegrationCatalogRecipePreview404 = ResourceNotFoundError;
|
|
473
|
+
const IntegrationCatalogRecipePreview422 = ValidationError;
|
|
474
|
+
const IntegrationCatalogRecipePreview500 = InternalError;
|
|
475
|
+
const IntegrationCatalogRecipePreview504 = GatewayTimeoutError;
|
|
476
|
+
const IntegrationCatalogRecipeReadinessQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
477
|
+
channel: Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]),
|
|
478
|
+
integrationAccountId: Schema.optionalKey(IntegrationAccountId),
|
|
479
|
+
publicationId: Schema.optionalKey(TemplatePublicationId),
|
|
480
|
+
senderId: Schema.optionalKey(EmailSenderId),
|
|
481
|
+
whatsappAccountId: Schema.optionalKey(WhatsAppBusinessAccountId),
|
|
482
|
+
registrationId: Schema.optionalKey(TemplateRegistrationId),
|
|
483
|
+
mailboxEndpointId: Schema.optionalKey(MailboxEndpointId)
|
|
484
|
+
}))();
|
|
485
|
+
const IntegrationCatalogRecipeReadiness200 = RecipeReadinessResponse;
|
|
486
|
+
const IntegrationCatalogRecipeReadiness400 = MalformedRequestError;
|
|
487
|
+
const IntegrationCatalogRecipeReadiness401 = UnauthorizedError;
|
|
488
|
+
const IntegrationCatalogRecipeReadiness403 = ForbiddenError;
|
|
489
|
+
const IntegrationCatalogRecipeReadiness422 = ValidationError;
|
|
490
|
+
const IntegrationCatalogRecipeReadiness500 = InternalError;
|
|
491
|
+
const IntegrationCatalogRecipeReadiness502 = BillingProviderError;
|
|
492
|
+
const IntegrationCatalogRecipeReadiness504 = GatewayTimeoutError;
|
|
493
|
+
const IntegrationCatalogRecipeSetupsList200 = RecipeSetups;
|
|
494
|
+
const IntegrationCatalogRecipeSetupsList400 = MalformedRequestError;
|
|
495
|
+
const IntegrationCatalogRecipeSetupsList401 = UnauthorizedError;
|
|
496
|
+
const IntegrationCatalogRecipeSetupsList403 = ForbiddenError;
|
|
497
|
+
const IntegrationCatalogRecipeSetupsList422 = ValidationError;
|
|
498
|
+
const IntegrationCatalogRecipeSetupsList500 = InternalError;
|
|
499
|
+
const IntegrationCatalogRecipeSetupsList504 = GatewayTimeoutError;
|
|
500
|
+
const IntegrationCatalogRecipeSetupGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })) }))();
|
|
501
|
+
const IntegrationCatalogRecipeSetupGet200 = RecipeSetup;
|
|
502
|
+
const IntegrationCatalogRecipeSetupGet400 = MalformedRequestError;
|
|
503
|
+
const IntegrationCatalogRecipeSetupGet401 = UnauthorizedError;
|
|
504
|
+
const IntegrationCatalogRecipeSetupGet403 = ForbiddenError;
|
|
505
|
+
const IntegrationCatalogRecipeSetupGet404 = ResourceNotFoundError;
|
|
506
|
+
const IntegrationCatalogRecipeSetupGet422 = ValidationError;
|
|
507
|
+
const IntegrationCatalogRecipeSetupGet500 = InternalError;
|
|
508
|
+
const IntegrationCatalogRecipeSetupGet504 = GatewayTimeoutError;
|
|
509
|
+
const IntegrationCatalogRecipeSetupReplacePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })) }))();
|
|
510
|
+
const IntegrationCatalogRecipeSetupReplaceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
511
|
+
references: RecipeSetupReferences,
|
|
512
|
+
revision: Schema.Union([Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })), Schema.Null])
|
|
513
|
+
}))();
|
|
514
|
+
const IntegrationCatalogRecipeSetupReplace200 = RecipeSetup;
|
|
515
|
+
const IntegrationCatalogRecipeSetupReplace400 = MalformedRequestError;
|
|
516
|
+
const IntegrationCatalogRecipeSetupReplace401 = UnauthorizedError;
|
|
517
|
+
const IntegrationCatalogRecipeSetupReplace403 = ForbiddenError;
|
|
518
|
+
const IntegrationCatalogRecipeSetupReplace404 = ResourceNotFoundError;
|
|
519
|
+
const IntegrationCatalogRecipeSetupReplace409 = ConflictError;
|
|
520
|
+
const IntegrationCatalogRecipeSetupReplace422 = ValidationError;
|
|
521
|
+
const IntegrationCatalogRecipeSetupReplace500 = InternalError;
|
|
522
|
+
const IntegrationCatalogRecipeSetupReplace504 = GatewayTimeoutError;
|
|
523
|
+
const IntegrationCatalogRecipeSetupActivatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })) }))();
|
|
524
|
+
const IntegrationCatalogRecipeSetupActivateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
525
|
+
revision: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(new globalThis.RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
|
|
526
|
+
selection: Schema.Union([Schema.Struct({
|
|
527
|
+
channel: Schema.Literal("email"),
|
|
528
|
+
publicationId: TemplatePublicationId,
|
|
529
|
+
senderId: Schema.optionalKey(EmailSenderId)
|
|
530
|
+
}), Schema.Struct({
|
|
531
|
+
channel: Schema.Literal("whatsapp"),
|
|
532
|
+
whatsappAccountId: WhatsAppBusinessAccountId,
|
|
533
|
+
registrationId: TemplateRegistrationId,
|
|
534
|
+
eventBindings: Schema.Record(Schema.String, Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))).annotate({ expected: "an object with property names matching the schema" }))
|
|
535
|
+
})])
|
|
536
|
+
}))();
|
|
537
|
+
const IntegrationCatalogRecipeSetupActivate200 = ActivatedRecipeSetup;
|
|
538
|
+
const IntegrationCatalogRecipeSetupActivate400 = MalformedRequestError;
|
|
539
|
+
const IntegrationCatalogRecipeSetupActivate401 = UnauthorizedError;
|
|
540
|
+
const IntegrationCatalogRecipeSetupActivate402 = PaymentRequiredError;
|
|
541
|
+
const IntegrationCatalogRecipeSetupActivate403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
|
|
542
|
+
const IntegrationCatalogRecipeSetupActivate404 = ResourceNotFoundError;
|
|
543
|
+
const IntegrationCatalogRecipeSetupActivate409 = ConflictError;
|
|
544
|
+
const IntegrationCatalogRecipeSetupActivate422 = ValidationError;
|
|
545
|
+
const IntegrationCatalogRecipeSetupActivate500 = InternalError;
|
|
546
|
+
const IntegrationCatalogRecipeSetupActivate502 = BillingProviderError;
|
|
547
|
+
const IntegrationCatalogRecipeSetupActivate504 = GatewayTimeoutError;
|
|
153
548
|
const IntegrationCatalogSearchQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
154
549
|
key: Schema.optionalKey(IntegrationKey),
|
|
155
550
|
query: Schema.optionalKey(Schema.String.check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))),
|
|
@@ -200,7 +595,187 @@ var IntegrationsCatalogGroup = class extends HttpApiGroup.make("Integrations cat
|
|
|
200
595
|
IntegrationCatalogPrepare500,
|
|
201
596
|
IntegrationCatalogPrepare504.pipe(HttpApiSchema.status(504))
|
|
202
597
|
]
|
|
203
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.prepare").annotate(OpenApi.Summary, "Prepare an integration connection").annotate(OpenApi.Description, "Resolves what connecting a catalog provider needs: the inputs and credentials it asks for, the hosts its API and OAuth credentials reach, and whether it can connect. Pass input for server inputs such as an API description URL. An unavailable provider carries a reason."), HttpApiEndpoint.get("
|
|
598
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.prepare").annotate(OpenApi.Summary, "Prepare an integration connection").annotate(OpenApi.Description, "Resolves what connecting a catalog provider needs: the inputs and credentials it asks for, the hosts its API and OAuth credentials reach, and whether it can connect. Pass input for server inputs such as an API description URL. An unavailable provider carries a reason."), HttpApiEndpoint.get("integrationCatalogRecipeCatalog", "/v1/integrations/catalog/recipes", {
|
|
599
|
+
success: IntegrationCatalogRecipeCatalog200,
|
|
600
|
+
error: [
|
|
601
|
+
IntegrationCatalogRecipeCatalog400.pipe(HttpApiSchema.status(400)),
|
|
602
|
+
IntegrationCatalogRecipeCatalog401.pipe(HttpApiSchema.status(401)),
|
|
603
|
+
IntegrationCatalogRecipeCatalog403.pipe(HttpApiSchema.status(403)),
|
|
604
|
+
IntegrationCatalogRecipeCatalog422.pipe(HttpApiSchema.status(422)),
|
|
605
|
+
IntegrationCatalogRecipeCatalog500,
|
|
606
|
+
IntegrationCatalogRecipeCatalog504.pipe(HttpApiSchema.status(504))
|
|
607
|
+
]
|
|
608
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeCatalog").annotate(OpenApi.Summary, "List Shopify journey recipes and event inputs").annotate(OpenApi.Description, "Returns recipe defaults, event property schemas and labelled sample payloads."), HttpApiEndpoint.get("integrationCatalogRecipeConnectionHandoff", "/v1/integrations/catalog/recipes/post-delivery-check-in/connections/:provider", {
|
|
609
|
+
params: IntegrationCatalogRecipeConnectionHandoffPathParams,
|
|
610
|
+
query: IntegrationCatalogRecipeConnectionHandoffQuery,
|
|
611
|
+
success: IntegrationCatalogRecipeConnectionHandoff200,
|
|
612
|
+
error: [
|
|
613
|
+
IntegrationCatalogRecipeConnectionHandoff400.pipe(HttpApiSchema.status(400)),
|
|
614
|
+
IntegrationCatalogRecipeConnectionHandoff401.pipe(HttpApiSchema.status(401)),
|
|
615
|
+
IntegrationCatalogRecipeConnectionHandoff403.pipe(HttpApiSchema.status(403)),
|
|
616
|
+
IntegrationCatalogRecipeConnectionHandoff404.pipe(HttpApiSchema.status(404)),
|
|
617
|
+
IntegrationCatalogRecipeConnectionHandoff422.pipe(HttpApiSchema.status(422)),
|
|
618
|
+
IntegrationCatalogRecipeConnectionHandoff500,
|
|
619
|
+
IntegrationCatalogRecipeConnectionHandoff504.pipe(HttpApiSchema.status(504))
|
|
620
|
+
]
|
|
621
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeConnectionHandoff").annotate(OpenApi.Summary, "Get a Shopify or WhatsApp browser connection handoff").annotate(OpenApi.Description, "Returns a browser link for an organization administrator. Shopify opens the saved check-in when setupId is supplied and the Shopify integration page otherwise. WhatsApp opens its settings page with the specified account, if any, even when setupId is supplied. Provider authorization takes place in the browser."), HttpApiEndpoint.post("integrationCatalogRecipeTest", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test", {
|
|
622
|
+
payload: IntegrationCatalogRecipeTestRequestJson,
|
|
623
|
+
success: IntegrationCatalogRecipeTest200,
|
|
624
|
+
error: [
|
|
625
|
+
IntegrationCatalogRecipeTest400.pipe(HttpApiSchema.status(400)),
|
|
626
|
+
IntegrationCatalogRecipeTest401.pipe(HttpApiSchema.status(401)),
|
|
627
|
+
IntegrationCatalogRecipeTest402.pipe(HttpApiSchema.status(402)),
|
|
628
|
+
IntegrationCatalogRecipeTest403.pipe(HttpApiSchema.status(403)),
|
|
629
|
+
IntegrationCatalogRecipeTest404.pipe(HttpApiSchema.status(404)),
|
|
630
|
+
IntegrationCatalogRecipeTest409.pipe(HttpApiSchema.status(409)),
|
|
631
|
+
IntegrationCatalogRecipeTest422.pipe(HttpApiSchema.status(422)),
|
|
632
|
+
IntegrationCatalogRecipeTest429.pipe(HttpApiSchema.status(429)),
|
|
633
|
+
IntegrationCatalogRecipeTest500,
|
|
634
|
+
IntegrationCatalogRecipeTest502.pipe(HttpApiSchema.status(502)),
|
|
635
|
+
IntegrationCatalogRecipeTest503.pipe(HttpApiSchema.status(503)),
|
|
636
|
+
IntegrationCatalogRecipeTest504.pipe(HttpApiSchema.status(504))
|
|
637
|
+
]
|
|
638
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeTest").annotate(OpenApi.Summary, "Run an owner-only test of a Shopify check-in").annotate(OpenApi.Description, "Takes no recipient. Samva resolves the acting owner's signed-in verified email or confirmed WhatsApp challenge. Normal send admission, billing, suppression and consent apply. Reuse the same request ID to reconcile an uncertain response."), HttpApiEndpoint.get("integrationCatalogRecipeTestReceipt", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/:requestId", {
|
|
639
|
+
params: IntegrationCatalogRecipeTestReceiptPathParams,
|
|
640
|
+
success: IntegrationCatalogRecipeTestReceipt200,
|
|
641
|
+
error: [
|
|
642
|
+
IntegrationCatalogRecipeTestReceipt400.pipe(HttpApiSchema.status(400)),
|
|
643
|
+
IntegrationCatalogRecipeTestReceipt401.pipe(HttpApiSchema.status(401)),
|
|
644
|
+
IntegrationCatalogRecipeTestReceipt403.pipe(HttpApiSchema.status(403)),
|
|
645
|
+
IntegrationCatalogRecipeTestReceipt404.pipe(HttpApiSchema.status(404)),
|
|
646
|
+
IntegrationCatalogRecipeTestReceipt422.pipe(HttpApiSchema.status(422)),
|
|
647
|
+
IntegrationCatalogRecipeTestReceipt500,
|
|
648
|
+
IntegrationCatalogRecipeTestReceipt504.pipe(HttpApiSchema.status(504))
|
|
649
|
+
]
|
|
650
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeTestReceipt").annotate(OpenApi.Summary, "Reconcile an owner test after an uncertain response").annotate(OpenApi.Description, "Requires messages:read and the signed-in owner in the dashboard or Samva CLI. Returns that owner's test receipt by request ID. Read message deliveries for provider and reply state."), HttpApiEndpoint.get("integrationCatalogRecipeTestHandoff", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/handoff", {
|
|
651
|
+
query: IntegrationCatalogRecipeTestHandoffQuery,
|
|
652
|
+
success: IntegrationCatalogRecipeTestHandoff200,
|
|
653
|
+
error: [
|
|
654
|
+
IntegrationCatalogRecipeTestHandoff400.pipe(HttpApiSchema.status(400)),
|
|
655
|
+
IntegrationCatalogRecipeTestHandoff401.pipe(HttpApiSchema.status(401)),
|
|
656
|
+
IntegrationCatalogRecipeTestHandoff403.pipe(HttpApiSchema.status(403)),
|
|
657
|
+
IntegrationCatalogRecipeTestHandoff404.pipe(HttpApiSchema.status(404)),
|
|
658
|
+
IntegrationCatalogRecipeTestHandoff422.pipe(HttpApiSchema.status(422)),
|
|
659
|
+
IntegrationCatalogRecipeTestHandoff500,
|
|
660
|
+
IntegrationCatalogRecipeTestHandoff504.pipe(HttpApiSchema.status(504))
|
|
661
|
+
]
|
|
662
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeTestHandoff").annotate(OpenApi.Summary, "Get a browser handoff for a verified owner test").annotate(OpenApi.Description, "Opens the owner review screen for the specified publication and reply mailbox endpoint. Creating this link submits no message or provider request."), HttpApiEndpoint.post("integrationCatalogRecipeWhatsAppChallengeBegin", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/:accountId/challenges", {
|
|
663
|
+
params: IntegrationCatalogRecipeWhatsAppChallengeBeginPathParams,
|
|
664
|
+
success: IntegrationCatalogRecipeWhatsAppChallengeBegin200,
|
|
665
|
+
error: [
|
|
666
|
+
IntegrationCatalogRecipeWhatsAppChallengeBegin400.pipe(HttpApiSchema.status(400)),
|
|
667
|
+
IntegrationCatalogRecipeWhatsAppChallengeBegin401.pipe(HttpApiSchema.status(401)),
|
|
668
|
+
IntegrationCatalogRecipeWhatsAppChallengeBegin403.pipe(HttpApiSchema.status(403)),
|
|
669
|
+
IntegrationCatalogRecipeWhatsAppChallengeBegin404.pipe(HttpApiSchema.status(404)),
|
|
670
|
+
IntegrationCatalogRecipeWhatsAppChallengeBegin409.pipe(HttpApiSchema.status(409)),
|
|
671
|
+
IntegrationCatalogRecipeWhatsAppChallengeBegin422.pipe(HttpApiSchema.status(422)),
|
|
672
|
+
IntegrationCatalogRecipeWhatsAppChallengeBegin500,
|
|
673
|
+
IntegrationCatalogRecipeWhatsAppChallengeBegin504.pipe(HttpApiSchema.status(504))
|
|
674
|
+
]
|
|
675
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeWhatsAppChallengeBegin").annotate(OpenApi.Summary, "Open a WhatsApp owner verification challenge").annotate(OpenApi.Description, "Requires a signed-in owner. The owner sends the returned code directly from their personal WhatsApp to the listed business number before the code expires."), HttpApiEndpoint.get("integrationCatalogRecipeWhatsAppChallengeGet", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/:accountId/challenges/:id", {
|
|
676
|
+
params: IntegrationCatalogRecipeWhatsAppChallengeGetPathParams,
|
|
677
|
+
success: IntegrationCatalogRecipeWhatsAppChallengeGet200,
|
|
678
|
+
error: [
|
|
679
|
+
IntegrationCatalogRecipeWhatsAppChallengeGet400.pipe(HttpApiSchema.status(400)),
|
|
680
|
+
IntegrationCatalogRecipeWhatsAppChallengeGet401.pipe(HttpApiSchema.status(401)),
|
|
681
|
+
IntegrationCatalogRecipeWhatsAppChallengeGet403.pipe(HttpApiSchema.status(403)),
|
|
682
|
+
IntegrationCatalogRecipeWhatsAppChallengeGet404.pipe(HttpApiSchema.status(404)),
|
|
683
|
+
IntegrationCatalogRecipeWhatsAppChallengeGet409.pipe(HttpApiSchema.status(409)),
|
|
684
|
+
IntegrationCatalogRecipeWhatsAppChallengeGet422.pipe(HttpApiSchema.status(422)),
|
|
685
|
+
IntegrationCatalogRecipeWhatsAppChallengeGet500,
|
|
686
|
+
IntegrationCatalogRecipeWhatsAppChallengeGet504.pipe(HttpApiSchema.status(504))
|
|
687
|
+
]
|
|
688
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeWhatsAppChallengeGet").annotate(OpenApi.Summary, "Read the observed sender for a WhatsApp owner challenge").annotate(OpenApi.Description, "Requires the same signed-in owner. The observed phone is available only after authenticated inbound delivery on the selected business number."), HttpApiEndpoint.post("integrationCatalogRecipeWhatsAppChallengeConfirm", "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/:accountId/challenges/:id/confirm", {
|
|
689
|
+
params: IntegrationCatalogRecipeWhatsAppChallengeConfirmPathParams,
|
|
690
|
+
payload: IntegrationCatalogRecipeWhatsAppChallengeConfirmRequestJson,
|
|
691
|
+
success: IntegrationCatalogRecipeWhatsAppChallengeConfirm200,
|
|
692
|
+
error: [
|
|
693
|
+
IntegrationCatalogRecipeWhatsAppChallengeConfirm400.pipe(HttpApiSchema.status(400)),
|
|
694
|
+
IntegrationCatalogRecipeWhatsAppChallengeConfirm401.pipe(HttpApiSchema.status(401)),
|
|
695
|
+
IntegrationCatalogRecipeWhatsAppChallengeConfirm403.pipe(HttpApiSchema.status(403)),
|
|
696
|
+
IntegrationCatalogRecipeWhatsAppChallengeConfirm404.pipe(HttpApiSchema.status(404)),
|
|
697
|
+
IntegrationCatalogRecipeWhatsAppChallengeConfirm409.pipe(HttpApiSchema.status(409)),
|
|
698
|
+
IntegrationCatalogRecipeWhatsAppChallengeConfirm422.pipe(HttpApiSchema.status(422)),
|
|
699
|
+
IntegrationCatalogRecipeWhatsAppChallengeConfirm500,
|
|
700
|
+
IntegrationCatalogRecipeWhatsAppChallengeConfirm504.pipe(HttpApiSchema.status(504))
|
|
701
|
+
]
|
|
702
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeWhatsAppChallengeConfirm").annotate(OpenApi.Summary, "Confirm the phone observed on a WhatsApp test challenge").annotate(OpenApi.Description, "Requires the same signed-in owner and an exact match with the number reported by WhatsApp. Confirmation does not record consent."), HttpApiEndpoint.post("integrationCatalogRecipePreview", "/v1/integrations/catalog/recipes/post-delivery-check-in/preview", {
|
|
703
|
+
payload: IntegrationCatalogRecipePreviewRequestJson,
|
|
704
|
+
success: IntegrationCatalogRecipePreview200,
|
|
705
|
+
error: [
|
|
706
|
+
IntegrationCatalogRecipePreview400.pipe(HttpApiSchema.status(400)),
|
|
707
|
+
IntegrationCatalogRecipePreview401.pipe(HttpApiSchema.status(401)),
|
|
708
|
+
IntegrationCatalogRecipePreview403.pipe(HttpApiSchema.status(403)),
|
|
709
|
+
IntegrationCatalogRecipePreview404.pipe(HttpApiSchema.status(404)),
|
|
710
|
+
IntegrationCatalogRecipePreview422.pipe(HttpApiSchema.status(422)),
|
|
711
|
+
IntegrationCatalogRecipePreview500,
|
|
712
|
+
IntegrationCatalogRecipePreview504.pipe(HttpApiSchema.status(504))
|
|
713
|
+
]
|
|
714
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipePreview").annotate(OpenApi.Summary, "Render a check-in preview with a labelled sample order").annotate(OpenApi.Description, "Renders the exact publication without sending, enrolling a recipient, or requiring a verified test destination."), HttpApiEndpoint.get("integrationCatalogRecipeReadiness", "/v1/integrations/catalog/recipes/post-delivery-check-in/readiness", {
|
|
715
|
+
query: IntegrationCatalogRecipeReadinessQuery,
|
|
716
|
+
success: IntegrationCatalogRecipeReadiness200,
|
|
717
|
+
error: [
|
|
718
|
+
IntegrationCatalogRecipeReadiness400.pipe(HttpApiSchema.status(400)),
|
|
719
|
+
IntegrationCatalogRecipeReadiness401.pipe(HttpApiSchema.status(401)),
|
|
720
|
+
IntegrationCatalogRecipeReadiness403.pipe(HttpApiSchema.status(403)),
|
|
721
|
+
IntegrationCatalogRecipeReadiness422.pipe(HttpApiSchema.status(422)),
|
|
722
|
+
IntegrationCatalogRecipeReadiness500,
|
|
723
|
+
IntegrationCatalogRecipeReadiness502.pipe(HttpApiSchema.status(502)),
|
|
724
|
+
IntegrationCatalogRecipeReadiness504.pipe(HttpApiSchema.status(504))
|
|
725
|
+
]
|
|
726
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeReadiness").annotate(OpenApi.Summary, "Read Shopify post-delivery check-in readiness").annotate(OpenApi.Description, "Checks selected resources and current feature availability. A namespace caller sees its reachable resources. Shopify account and plan fields are null, and full recipe readiness requires organization-wide access. Omit the email sender or WhatsApp account to see the sender or number selected for the publication and caller scope. Requires email:read and domains:read for email, or whatsappAccounts:read for WhatsApp."), HttpApiEndpoint.get("integrationCatalogRecipeSetupsList", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups", {
|
|
727
|
+
success: IntegrationCatalogRecipeSetupsList200,
|
|
728
|
+
error: [
|
|
729
|
+
IntegrationCatalogRecipeSetupsList400.pipe(HttpApiSchema.status(400)),
|
|
730
|
+
IntegrationCatalogRecipeSetupsList401.pipe(HttpApiSchema.status(401)),
|
|
731
|
+
IntegrationCatalogRecipeSetupsList403.pipe(HttpApiSchema.status(403)),
|
|
732
|
+
IntegrationCatalogRecipeSetupsList422.pipe(HttpApiSchema.status(422)),
|
|
733
|
+
IntegrationCatalogRecipeSetupsList500,
|
|
734
|
+
IntegrationCatalogRecipeSetupsList504.pipe(HttpApiSchema.status(504))
|
|
735
|
+
]
|
|
736
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeSetupsList").annotate(OpenApi.Summary, "List saved post-delivery check-in setups").annotate(OpenApi.Description, "Requires organization-wide access. Lists the 100 most recently updated selections the caller can read. Read live readiness separately."), HttpApiEndpoint.get("integrationCatalogRecipeSetupGet", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/:id", {
|
|
737
|
+
params: IntegrationCatalogRecipeSetupGetPathParams,
|
|
738
|
+
success: IntegrationCatalogRecipeSetupGet200,
|
|
739
|
+
error: [
|
|
740
|
+
IntegrationCatalogRecipeSetupGet400.pipe(HttpApiSchema.status(400)),
|
|
741
|
+
IntegrationCatalogRecipeSetupGet401.pipe(HttpApiSchema.status(401)),
|
|
742
|
+
IntegrationCatalogRecipeSetupGet403.pipe(HttpApiSchema.status(403)),
|
|
743
|
+
IntegrationCatalogRecipeSetupGet404.pipe(HttpApiSchema.status(404)),
|
|
744
|
+
IntegrationCatalogRecipeSetupGet422.pipe(HttpApiSchema.status(422)),
|
|
745
|
+
IntegrationCatalogRecipeSetupGet500,
|
|
746
|
+
IntegrationCatalogRecipeSetupGet504.pipe(HttpApiSchema.status(504))
|
|
747
|
+
]
|
|
748
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeSetupGet").annotate(OpenApi.Summary, "Read post-delivery check-in setup references").annotate(OpenApi.Description, "Requires organization-wide access. Returns the saved resource IDs and revision for a setup the caller can read."), HttpApiEndpoint.put("integrationCatalogRecipeSetupReplace", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/:id", {
|
|
749
|
+
params: IntegrationCatalogRecipeSetupReplacePathParams,
|
|
750
|
+
payload: IntegrationCatalogRecipeSetupReplaceRequestJson,
|
|
751
|
+
success: IntegrationCatalogRecipeSetupReplace200,
|
|
752
|
+
error: [
|
|
753
|
+
IntegrationCatalogRecipeSetupReplace400.pipe(HttpApiSchema.status(400)),
|
|
754
|
+
IntegrationCatalogRecipeSetupReplace401.pipe(HttpApiSchema.status(401)),
|
|
755
|
+
IntegrationCatalogRecipeSetupReplace403.pipe(HttpApiSchema.status(403)),
|
|
756
|
+
IntegrationCatalogRecipeSetupReplace404.pipe(HttpApiSchema.status(404)),
|
|
757
|
+
IntegrationCatalogRecipeSetupReplace409.pipe(HttpApiSchema.status(409)),
|
|
758
|
+
IntegrationCatalogRecipeSetupReplace422.pipe(HttpApiSchema.status(422)),
|
|
759
|
+
IntegrationCatalogRecipeSetupReplace500,
|
|
760
|
+
IntegrationCatalogRecipeSetupReplace504.pipe(HttpApiSchema.status(504))
|
|
761
|
+
]
|
|
762
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeSetupReplace").annotate(OpenApi.Summary, "Save post-delivery check-in setup references").annotate(OpenApi.Description, "Requires organization-wide access. Creates a setup under a new UUID with a null revision or replaces it with its current revision. Validates references without submitting provider requests."), HttpApiEndpoint.post("integrationCatalogRecipeSetupActivate", "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/:id/activate", {
|
|
763
|
+
params: IntegrationCatalogRecipeSetupActivatePathParams,
|
|
764
|
+
payload: IntegrationCatalogRecipeSetupActivateRequestJson,
|
|
765
|
+
success: IntegrationCatalogRecipeSetupActivate200,
|
|
766
|
+
error: [
|
|
767
|
+
IntegrationCatalogRecipeSetupActivate400.pipe(HttpApiSchema.status(400)),
|
|
768
|
+
IntegrationCatalogRecipeSetupActivate401.pipe(HttpApiSchema.status(401)),
|
|
769
|
+
IntegrationCatalogRecipeSetupActivate402.pipe(HttpApiSchema.status(402)),
|
|
770
|
+
IntegrationCatalogRecipeSetupActivate403.pipe(HttpApiSchema.status(403)),
|
|
771
|
+
IntegrationCatalogRecipeSetupActivate404.pipe(HttpApiSchema.status(404)),
|
|
772
|
+
IntegrationCatalogRecipeSetupActivate409.pipe(HttpApiSchema.status(409)),
|
|
773
|
+
IntegrationCatalogRecipeSetupActivate422.pipe(HttpApiSchema.status(422)),
|
|
774
|
+
IntegrationCatalogRecipeSetupActivate500,
|
|
775
|
+
IntegrationCatalogRecipeSetupActivate502.pipe(HttpApiSchema.status(502)),
|
|
776
|
+
IntegrationCatalogRecipeSetupActivate504.pipe(HttpApiSchema.status(504))
|
|
777
|
+
]
|
|
778
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.recipeSetupActivate").annotate(OpenApi.Summary, "Activate the reviewed Shopify post-delivery check-in").annotate(OpenApi.Description, "Publishes the saved setup's reviewed send selection on its own journey. Reuse the same revision and selection after an interrupted response. A changed setup returns 409. Existing runs keep their published version."), HttpApiEndpoint.get("integrationCatalogSearch", "/v1/integrations/catalog/search", {
|
|
204
779
|
query: IntegrationCatalogSearchQuery,
|
|
205
780
|
success: IntegrationCatalogSearch200,
|
|
206
781
|
error: [
|
|
@@ -212,6 +787,6 @@ var IntegrationsCatalogGroup = class extends HttpApiGroup.make("Integrations cat
|
|
|
212
787
|
IntegrationCatalogSearch504.pipe(HttpApiSchema.status(504))
|
|
213
788
|
]
|
|
214
789
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "integrationCatalog.search").annotate(OpenApi.Summary, "Search the integrations catalog").annotate(OpenApi.Description, "Searches the providers this organization can connect, by key, text or category. Each entry carries its connection requirements and whether it can connect. Follow nextOffset until it is null.")).annotate(OpenApi.Description, "Providers an organization can connect") {};
|
|
215
|
-
export { IntegrationCatalogConnection, IntegrationCatalogEntry, IntegrationCatalogList200, IntegrationCatalogList400, IntegrationCatalogList401, IntegrationCatalogList403, IntegrationCatalogList422, IntegrationCatalogList500, IntegrationCatalogList504, IntegrationCatalogPrepare200, IntegrationCatalogPrepare400, IntegrationCatalogPrepare401, IntegrationCatalogPrepare403, IntegrationCatalogPrepare422, IntegrationCatalogPrepare500, IntegrationCatalogPrepare504, IntegrationCatalogPrepareRequestJson, IntegrationCatalogResponse, IntegrationCatalogSearch200, IntegrationCatalogSearch400, IntegrationCatalogSearch401, IntegrationCatalogSearch403, IntegrationCatalogSearch422, IntegrationCatalogSearch500, IntegrationCatalogSearch504, IntegrationCatalogSearchEntry, IntegrationCatalogSearchPage, IntegrationCatalogSearchQuery, IntegrationsCatalogGroup };
|
|
790
|
+
export { ActivatedRecipeSetup, IntegrationCatalogConnection, IntegrationCatalogEntry, IntegrationCatalogList200, IntegrationCatalogList400, IntegrationCatalogList401, IntegrationCatalogList403, IntegrationCatalogList422, IntegrationCatalogList500, IntegrationCatalogList504, IntegrationCatalogPrepare200, IntegrationCatalogPrepare400, IntegrationCatalogPrepare401, IntegrationCatalogPrepare403, IntegrationCatalogPrepare422, IntegrationCatalogPrepare500, IntegrationCatalogPrepare504, IntegrationCatalogPrepareRequestJson, IntegrationCatalogRecipeCatalog200, IntegrationCatalogRecipeCatalog400, IntegrationCatalogRecipeCatalog401, IntegrationCatalogRecipeCatalog403, IntegrationCatalogRecipeCatalog422, IntegrationCatalogRecipeCatalog500, IntegrationCatalogRecipeCatalog504, IntegrationCatalogRecipeConnectionHandoff200, IntegrationCatalogRecipeConnectionHandoff400, IntegrationCatalogRecipeConnectionHandoff401, IntegrationCatalogRecipeConnectionHandoff403, IntegrationCatalogRecipeConnectionHandoff404, IntegrationCatalogRecipeConnectionHandoff422, IntegrationCatalogRecipeConnectionHandoff500, IntegrationCatalogRecipeConnectionHandoff504, IntegrationCatalogRecipeConnectionHandoffPathParams, IntegrationCatalogRecipeConnectionHandoffQuery, IntegrationCatalogRecipePreview200, IntegrationCatalogRecipePreview400, IntegrationCatalogRecipePreview401, IntegrationCatalogRecipePreview403, IntegrationCatalogRecipePreview404, IntegrationCatalogRecipePreview422, IntegrationCatalogRecipePreview500, IntegrationCatalogRecipePreview504, IntegrationCatalogRecipePreviewRequestJson, IntegrationCatalogRecipeReadiness200, IntegrationCatalogRecipeReadiness400, IntegrationCatalogRecipeReadiness401, IntegrationCatalogRecipeReadiness403, IntegrationCatalogRecipeReadiness422, IntegrationCatalogRecipeReadiness500, IntegrationCatalogRecipeReadiness502, IntegrationCatalogRecipeReadiness504, IntegrationCatalogRecipeReadinessQuery, IntegrationCatalogRecipeSetupActivate200, IntegrationCatalogRecipeSetupActivate400, IntegrationCatalogRecipeSetupActivate401, IntegrationCatalogRecipeSetupActivate402, IntegrationCatalogRecipeSetupActivate403, IntegrationCatalogRecipeSetupActivate404, IntegrationCatalogRecipeSetupActivate409, IntegrationCatalogRecipeSetupActivate422, IntegrationCatalogRecipeSetupActivate500, IntegrationCatalogRecipeSetupActivate502, IntegrationCatalogRecipeSetupActivate504, IntegrationCatalogRecipeSetupActivatePathParams, IntegrationCatalogRecipeSetupActivateRequestJson, IntegrationCatalogRecipeSetupGet200, IntegrationCatalogRecipeSetupGet400, IntegrationCatalogRecipeSetupGet401, IntegrationCatalogRecipeSetupGet403, IntegrationCatalogRecipeSetupGet404, IntegrationCatalogRecipeSetupGet422, IntegrationCatalogRecipeSetupGet500, IntegrationCatalogRecipeSetupGet504, IntegrationCatalogRecipeSetupGetPathParams, IntegrationCatalogRecipeSetupReplace200, IntegrationCatalogRecipeSetupReplace400, IntegrationCatalogRecipeSetupReplace401, IntegrationCatalogRecipeSetupReplace403, IntegrationCatalogRecipeSetupReplace404, IntegrationCatalogRecipeSetupReplace409, IntegrationCatalogRecipeSetupReplace422, IntegrationCatalogRecipeSetupReplace500, IntegrationCatalogRecipeSetupReplace504, IntegrationCatalogRecipeSetupReplacePathParams, IntegrationCatalogRecipeSetupReplaceRequestJson, IntegrationCatalogRecipeSetupsList200, IntegrationCatalogRecipeSetupsList400, IntegrationCatalogRecipeSetupsList401, IntegrationCatalogRecipeSetupsList403, IntegrationCatalogRecipeSetupsList422, IntegrationCatalogRecipeSetupsList500, IntegrationCatalogRecipeSetupsList504, IntegrationCatalogRecipeTest200, IntegrationCatalogRecipeTest400, IntegrationCatalogRecipeTest401, IntegrationCatalogRecipeTest402, IntegrationCatalogRecipeTest403, IntegrationCatalogRecipeTest404, IntegrationCatalogRecipeTest409, IntegrationCatalogRecipeTest422, IntegrationCatalogRecipeTest429, IntegrationCatalogRecipeTest500, IntegrationCatalogRecipeTest502, IntegrationCatalogRecipeTest503, IntegrationCatalogRecipeTest504, IntegrationCatalogRecipeTestHandoff200, IntegrationCatalogRecipeTestHandoff400, IntegrationCatalogRecipeTestHandoff401, IntegrationCatalogRecipeTestHandoff403, IntegrationCatalogRecipeTestHandoff404, IntegrationCatalogRecipeTestHandoff422, IntegrationCatalogRecipeTestHandoff500, IntegrationCatalogRecipeTestHandoff504, IntegrationCatalogRecipeTestHandoffQuery, IntegrationCatalogRecipeTestReceipt200, IntegrationCatalogRecipeTestReceipt400, IntegrationCatalogRecipeTestReceipt401, IntegrationCatalogRecipeTestReceipt403, IntegrationCatalogRecipeTestReceipt404, IntegrationCatalogRecipeTestReceipt422, IntegrationCatalogRecipeTestReceipt500, IntegrationCatalogRecipeTestReceipt504, IntegrationCatalogRecipeTestReceiptPathParams, IntegrationCatalogRecipeTestRequestJson, IntegrationCatalogRecipeWhatsAppChallengeBegin200, IntegrationCatalogRecipeWhatsAppChallengeBegin400, IntegrationCatalogRecipeWhatsAppChallengeBegin401, IntegrationCatalogRecipeWhatsAppChallengeBegin403, IntegrationCatalogRecipeWhatsAppChallengeBegin404, IntegrationCatalogRecipeWhatsAppChallengeBegin409, IntegrationCatalogRecipeWhatsAppChallengeBegin422, IntegrationCatalogRecipeWhatsAppChallengeBegin500, IntegrationCatalogRecipeWhatsAppChallengeBegin504, IntegrationCatalogRecipeWhatsAppChallengeBeginPathParams, IntegrationCatalogRecipeWhatsAppChallengeConfirm200, IntegrationCatalogRecipeWhatsAppChallengeConfirm400, IntegrationCatalogRecipeWhatsAppChallengeConfirm401, IntegrationCatalogRecipeWhatsAppChallengeConfirm403, IntegrationCatalogRecipeWhatsAppChallengeConfirm404, IntegrationCatalogRecipeWhatsAppChallengeConfirm409, IntegrationCatalogRecipeWhatsAppChallengeConfirm422, IntegrationCatalogRecipeWhatsAppChallengeConfirm500, IntegrationCatalogRecipeWhatsAppChallengeConfirm504, IntegrationCatalogRecipeWhatsAppChallengeConfirmPathParams, IntegrationCatalogRecipeWhatsAppChallengeConfirmRequestJson, IntegrationCatalogRecipeWhatsAppChallengeGet200, IntegrationCatalogRecipeWhatsAppChallengeGet400, IntegrationCatalogRecipeWhatsAppChallengeGet401, IntegrationCatalogRecipeWhatsAppChallengeGet403, IntegrationCatalogRecipeWhatsAppChallengeGet404, IntegrationCatalogRecipeWhatsAppChallengeGet409, IntegrationCatalogRecipeWhatsAppChallengeGet422, IntegrationCatalogRecipeWhatsAppChallengeGet500, IntegrationCatalogRecipeWhatsAppChallengeGet504, IntegrationCatalogRecipeWhatsAppChallengeGetPathParams, IntegrationCatalogResponse, IntegrationCatalogSearch200, IntegrationCatalogSearch400, IntegrationCatalogSearch401, IntegrationCatalogSearch403, IntegrationCatalogSearch422, IntegrationCatalogSearch500, IntegrationCatalogSearch504, IntegrationCatalogSearchEntry, IntegrationCatalogSearchPage, IntegrationCatalogSearchQuery, IntegrationsCatalogGroup, RecipeCatalogResponse, RecipeChallengeStarted, RecipeChallengeStatus, RecipeHandoff, RecipePreviewResponse, RecipeReadinessResponse, RecipeSetup, RecipeSetups, RecipeTestReceipt, RecipeTestResponse };
|
|
216
791
|
|
|
217
792
|
//# sourceMappingURL=integrations-catalog.js.map
|