samva 0.50.0 → 0.52.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/AGENTS.md +49 -5
- package/README.md +137 -7
- package/dist/client/sdk.gen.d.ts +78 -38
- package/dist/client/sdk.gen.js +1554 -967
- package/dist/client/types.gen.d.ts +541 -291
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +222 -230
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +18 -68
- package/dist/effect/generated/campaigns.js +5 -15
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +6 -5
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +25 -25
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +2 -4
- package/dist/effect/generated/shared.d.ts +1139 -257
- package/dist/effect/generated/shared.js +323 -83
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +42 -10
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +35 -5
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +184 -178
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +8 -1
- package/dist/promises/client.js +15 -9
- package/dist/promises/errors.gen.d.ts +14 -1
- package/dist/promises/errors.gen.js +158 -36
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError,
|
|
1
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
// src/effect/generated/subscriptions.ts
|
|
@@ -21,11 +21,7 @@ const SubscriptionsSubscribe200 = SubscribeResult;
|
|
|
21
21
|
const SubscriptionsSubscribe400 = MalformedRequestError;
|
|
22
22
|
const SubscriptionsSubscribe401 = UnauthorizedError;
|
|
23
23
|
const SubscriptionsSubscribe402 = PaymentRequiredError;
|
|
24
|
-
const SubscriptionsSubscribe403 = /* @__PURE__ */ (() => Schema.Union([
|
|
25
|
-
ForbiddenError,
|
|
26
|
-
OnboardingReviewRequiredError,
|
|
27
|
-
FlagDisabledError
|
|
28
|
-
]))();
|
|
24
|
+
const SubscriptionsSubscribe403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, OnboardingReviewRequiredError]))();
|
|
29
25
|
const SubscriptionsSubscribe404 = ResourceNotFoundError;
|
|
30
26
|
const SubscriptionsSubscribe409 = ConflictError;
|
|
31
27
|
const SubscriptionsSubscribe422 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError,
|
|
3
|
+
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
|
|
4
4
|
export type WhatsAppRegistrationTarget = {
|
|
5
5
|
readonly provider: "whatsapp";
|
|
6
6
|
readonly wabaId: string;
|
|
@@ -143,8 +143,8 @@ export type TemplateRegistrationsList400 = MalformedRequestError;
|
|
|
143
143
|
export declare const TemplateRegistrationsList400: typeof MalformedRequestError;
|
|
144
144
|
export type TemplateRegistrationsList401 = UnauthorizedError;
|
|
145
145
|
export declare const TemplateRegistrationsList401: typeof UnauthorizedError;
|
|
146
|
-
export type TemplateRegistrationsList403 =
|
|
147
|
-
export declare const TemplateRegistrationsList403:
|
|
146
|
+
export type TemplateRegistrationsList403 = ForbiddenError;
|
|
147
|
+
export declare const TemplateRegistrationsList403: typeof ForbiddenError;
|
|
148
148
|
export type TemplateRegistrationsList404 = ResourceNotFoundError;
|
|
149
149
|
export declare const TemplateRegistrationsList404: typeof ResourceNotFoundError;
|
|
150
150
|
export type TemplateRegistrationsList422 = ValidationError;
|
|
@@ -205,8 +205,8 @@ export type TemplateRegistrationsSubmit400 = MalformedRequestError;
|
|
|
205
205
|
export declare const TemplateRegistrationsSubmit400: typeof MalformedRequestError;
|
|
206
206
|
export type TemplateRegistrationsSubmit401 = UnauthorizedError;
|
|
207
207
|
export declare const TemplateRegistrationsSubmit401: typeof UnauthorizedError;
|
|
208
|
-
export type TemplateRegistrationsSubmit403 = ForbiddenError
|
|
209
|
-
export declare const TemplateRegistrationsSubmit403:
|
|
208
|
+
export type TemplateRegistrationsSubmit403 = ForbiddenError;
|
|
209
|
+
export declare const TemplateRegistrationsSubmit403: typeof ForbiddenError;
|
|
210
210
|
export type TemplateRegistrationsSubmit404 = ResourceNotFoundError;
|
|
211
211
|
export declare const TemplateRegistrationsSubmit404: typeof ResourceNotFoundError;
|
|
212
212
|
export type TemplateRegistrationsSubmit409 = ConflictError;
|
|
@@ -260,8 +260,8 @@ export type TemplateRegistrationsGet400 = MalformedRequestError;
|
|
|
260
260
|
export declare const TemplateRegistrationsGet400: typeof MalformedRequestError;
|
|
261
261
|
export type TemplateRegistrationsGet401 = UnauthorizedError;
|
|
262
262
|
export declare const TemplateRegistrationsGet401: typeof UnauthorizedError;
|
|
263
|
-
export type TemplateRegistrationsGet403 =
|
|
264
|
-
export declare const TemplateRegistrationsGet403:
|
|
263
|
+
export type TemplateRegistrationsGet403 = ForbiddenError;
|
|
264
|
+
export declare const TemplateRegistrationsGet403: typeof ForbiddenError;
|
|
265
265
|
export type TemplateRegistrationsGet404 = ResourceNotFoundError;
|
|
266
266
|
export declare const TemplateRegistrationsGet404: typeof ResourceNotFoundError;
|
|
267
267
|
export type TemplateRegistrationsGet422 = ValidationError;
|
|
@@ -298,7 +298,19 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
|
|
|
298
298
|
readonly statusChangedAt: Schema.String;
|
|
299
299
|
readonly createdAt: Schema.String;
|
|
300
300
|
readonly updatedAt: Schema.String;
|
|
301
|
-
}>>, Schema.toCodecJson<Schema.
|
|
301
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
302
|
+
readonly _tag: "ForbiddenError";
|
|
303
|
+
readonly message: string;
|
|
304
|
+
}, readonly [Schema.Struct<{
|
|
305
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
306
|
+
readonly message: Schema.String;
|
|
307
|
+
}>], {
|
|
308
|
+
readonly _tag: "ForbiddenError";
|
|
309
|
+
readonly message: string;
|
|
310
|
+
}>, Schema.Struct<{
|
|
311
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
312
|
+
readonly message: Schema.String;
|
|
313
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
302
314
|
readonly _tag: "GatewayTimeoutError";
|
|
303
315
|
readonly message: string;
|
|
304
316
|
readonly retryAfterSeconds: number;
|
|
@@ -415,7 +427,19 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
|
|
|
415
427
|
readonly createdAt: Schema.String;
|
|
416
428
|
readonly updatedAt: Schema.String;
|
|
417
429
|
}>>;
|
|
418
|
-
}>>, Schema.toCodecJson<Schema.
|
|
430
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
431
|
+
readonly _tag: "ForbiddenError";
|
|
432
|
+
readonly message: string;
|
|
433
|
+
}, readonly [Schema.Struct<{
|
|
434
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
435
|
+
readonly message: Schema.String;
|
|
436
|
+
}>], {
|
|
437
|
+
readonly _tag: "ForbiddenError";
|
|
438
|
+
readonly message: string;
|
|
439
|
+
}>, Schema.Struct<{
|
|
440
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
441
|
+
readonly message: Schema.String;
|
|
442
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
419
443
|
readonly _tag: "GatewayTimeoutError";
|
|
420
444
|
readonly message: string;
|
|
421
445
|
readonly retryAfterSeconds: number;
|
|
@@ -539,7 +563,7 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
|
|
|
539
563
|
readonly statusChangedAt: Schema.String;
|
|
540
564
|
readonly createdAt: Schema.String;
|
|
541
565
|
readonly updatedAt: Schema.String;
|
|
542
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
566
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
543
567
|
readonly _tag: "ConflictError";
|
|
544
568
|
readonly message: string;
|
|
545
569
|
readonly resource: string;
|
|
@@ -559,6 +583,18 @@ declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Templa
|
|
|
559
583
|
readonly message: Schema.String;
|
|
560
584
|
readonly resource: Schema.String;
|
|
561
585
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
586
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
587
|
+
readonly _tag: "ForbiddenError";
|
|
588
|
+
readonly message: string;
|
|
589
|
+
}, readonly [Schema.Struct<{
|
|
590
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
591
|
+
readonly message: Schema.String;
|
|
592
|
+
}>], {
|
|
593
|
+
readonly _tag: "ForbiddenError";
|
|
594
|
+
readonly message: string;
|
|
595
|
+
}>, Schema.Struct<{
|
|
596
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
597
|
+
readonly message: Schema.String;
|
|
562
598
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
563
599
|
readonly _tag: "GatewayTimeoutError";
|
|
564
600
|
readonly message: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError,
|
|
1
|
+
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateChannelVariantId, TemplateId, TemplatePublicationId, TemplateRegistrationApproval, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
// src/effect/generated/template-registrations.ts
|
|
@@ -62,7 +62,7 @@ const TemplateRegistrationsListPathParams = /* @__PURE__ */ (() => Schema.Struct
|
|
|
62
62
|
const TemplateRegistrationsList200 = TemplateRegistrationList;
|
|
63
63
|
const TemplateRegistrationsList400 = MalformedRequestError;
|
|
64
64
|
const TemplateRegistrationsList401 = UnauthorizedError;
|
|
65
|
-
const TemplateRegistrationsList403 =
|
|
65
|
+
const TemplateRegistrationsList403 = ForbiddenError;
|
|
66
66
|
const TemplateRegistrationsList404 = ResourceNotFoundError;
|
|
67
67
|
const TemplateRegistrationsList422 = ValidationError;
|
|
68
68
|
const TemplateRegistrationsList500 = InternalError;
|
|
@@ -76,7 +76,7 @@ const TemplateRegistrationsSubmitRequestJson = /* @__PURE__ */ (() => Schema.Str
|
|
|
76
76
|
const TemplateRegistrationsSubmit201 = TemplateRegistration;
|
|
77
77
|
const TemplateRegistrationsSubmit400 = MalformedRequestError;
|
|
78
78
|
const TemplateRegistrationsSubmit401 = UnauthorizedError;
|
|
79
|
-
const TemplateRegistrationsSubmit403 =
|
|
79
|
+
const TemplateRegistrationsSubmit403 = ForbiddenError;
|
|
80
80
|
const TemplateRegistrationsSubmit404 = ResourceNotFoundError;
|
|
81
81
|
const TemplateRegistrationsSubmit409 = ConflictError;
|
|
82
82
|
const TemplateRegistrationsSubmit422 = ValidationError;
|
|
@@ -91,7 +91,7 @@ const TemplateRegistrationsGetPathParams = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
91
91
|
const TemplateRegistrationsGet200 = TemplateRegistration;
|
|
92
92
|
const TemplateRegistrationsGet400 = MalformedRequestError;
|
|
93
93
|
const TemplateRegistrationsGet401 = UnauthorizedError;
|
|
94
|
-
const TemplateRegistrationsGet403 =
|
|
94
|
+
const TemplateRegistrationsGet403 = ForbiddenError;
|
|
95
95
|
const TemplateRegistrationsGet404 = ResourceNotFoundError;
|
|
96
96
|
const TemplateRegistrationsGet422 = ValidationError;
|
|
97
97
|
const TemplateRegistrationsGet500 = InternalError;
|
|
@@ -2076,7 +2076,7 @@ const TemplatesCreateFamilyFromTemplate504 = GatewayTimeoutError;
|
|
|
2076
2076
|
const TemplatesCreateFromBriefHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) }))();
|
|
2077
2077
|
const TemplatesCreateFromBriefRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
2078
2078
|
brief: Schema.String.annotate({ description: "What the message is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email (\"like the Vercel login email\") starts from Samva's recreation of it when the gallery has one." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
|
|
2079
|
-
channel: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]), Schema.Null]).annotate({ description: "The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters
|
|
2079
|
+
channel: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]), Schema.Null]).annotate({ description: "The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters." })),
|
|
2080
2080
|
name: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The template's name. Defaults to the name of the design it starts from." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema.Null])),
|
|
2081
2081
|
galleryTemplateId: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Start from this gallery design instead of the first suggestion, for example another one the suggestions offered." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),
|
|
2082
2082
|
useBrand: Schema.optionalKey(Schema.Union([Schema.Boolean.annotate({ description: "Whether the new project's `theme.css` imports the organization's default brand over the design's look. Defaults to false." }), Schema.Null])),
|
|
@@ -2146,7 +2146,7 @@ const TemplatesAddEntry500 = InternalError;
|
|
|
2146
2146
|
const TemplatesAddEntry504 = GatewayTimeoutError;
|
|
2147
2147
|
const TemplatesSuggestStartersRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
2148
2148
|
brief: Schema.String.annotate({ description: "What the message is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email (\"like the Vercel login email\") starts from Samva's recreation of it when the gallery has one." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
|
|
2149
|
-
channel: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]), Schema.Null]).annotate({ description: "The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters
|
|
2149
|
+
channel: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]), Schema.Null]).annotate({ description: "The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters." }))
|
|
2150
2150
|
}))();
|
|
2151
2151
|
const TemplatesSuggestStarters200 = TemplateStarterSuggestions;
|
|
2152
2152
|
const TemplatesSuggestStarters400 = MalformedRequestError;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError,
|
|
4
|
+
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateProjectId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, WhatsAppFlowId, WhatsAppFlowVersionId, __SamvaRuntimeSensitiveString } from "./shared.js";
|
|
5
5
|
export type WhatsAppFlowEndpoint = {
|
|
6
6
|
readonly url: string;
|
|
7
7
|
readonly updatedAt: string;
|
|
@@ -272,8 +272,8 @@ export type WhatsappFlowsList400 = MalformedRequestError;
|
|
|
272
272
|
export declare const WhatsappFlowsList400: typeof MalformedRequestError;
|
|
273
273
|
export type WhatsappFlowsList401 = UnauthorizedError;
|
|
274
274
|
export declare const WhatsappFlowsList401: typeof UnauthorizedError;
|
|
275
|
-
export type WhatsappFlowsList403 =
|
|
276
|
-
export declare const WhatsappFlowsList403:
|
|
275
|
+
export type WhatsappFlowsList403 = ForbiddenError;
|
|
276
|
+
export declare const WhatsappFlowsList403: typeof ForbiddenError;
|
|
277
277
|
export type WhatsappFlowsList422 = ValidationError;
|
|
278
278
|
export declare const WhatsappFlowsList422: typeof ValidationError;
|
|
279
279
|
export type WhatsappFlowsList500 = InternalError;
|
|
@@ -319,8 +319,8 @@ export type WhatsappFlowsCreate400 = MalformedRequestError;
|
|
|
319
319
|
export declare const WhatsappFlowsCreate400: typeof MalformedRequestError;
|
|
320
320
|
export type WhatsappFlowsCreate401 = UnauthorizedError;
|
|
321
321
|
export declare const WhatsappFlowsCreate401: typeof UnauthorizedError;
|
|
322
|
-
export type WhatsappFlowsCreate403 =
|
|
323
|
-
export declare const WhatsappFlowsCreate403:
|
|
322
|
+
export type WhatsappFlowsCreate403 = ForbiddenError;
|
|
323
|
+
export declare const WhatsappFlowsCreate403: typeof ForbiddenError;
|
|
324
324
|
export type WhatsappFlowsCreate404 = ResourceNotFoundError;
|
|
325
325
|
export declare const WhatsappFlowsCreate404: typeof ResourceNotFoundError;
|
|
326
326
|
export type WhatsappFlowsCreate409 = ConflictError;
|
|
@@ -366,8 +366,8 @@ export type WhatsappFlowsGet400 = MalformedRequestError;
|
|
|
366
366
|
export declare const WhatsappFlowsGet400: typeof MalformedRequestError;
|
|
367
367
|
export type WhatsappFlowsGet401 = UnauthorizedError;
|
|
368
368
|
export declare const WhatsappFlowsGet401: typeof UnauthorizedError;
|
|
369
|
-
export type WhatsappFlowsGet403 =
|
|
370
|
-
export declare const WhatsappFlowsGet403:
|
|
369
|
+
export type WhatsappFlowsGet403 = ForbiddenError;
|
|
370
|
+
export declare const WhatsappFlowsGet403: typeof ForbiddenError;
|
|
371
371
|
export type WhatsappFlowsGet404 = ResourceNotFoundError;
|
|
372
372
|
export declare const WhatsappFlowsGet404: typeof ResourceNotFoundError;
|
|
373
373
|
export type WhatsappFlowsGet422 = ValidationError;
|
|
@@ -398,8 +398,8 @@ export type WhatsappFlowsSetEndpoint400 = MalformedRequestError;
|
|
|
398
398
|
export declare const WhatsappFlowsSetEndpoint400: typeof MalformedRequestError;
|
|
399
399
|
export type WhatsappFlowsSetEndpoint401 = UnauthorizedError;
|
|
400
400
|
export declare const WhatsappFlowsSetEndpoint401: typeof UnauthorizedError;
|
|
401
|
-
export type WhatsappFlowsSetEndpoint403 =
|
|
402
|
-
export declare const WhatsappFlowsSetEndpoint403:
|
|
401
|
+
export type WhatsappFlowsSetEndpoint403 = ForbiddenError;
|
|
402
|
+
export declare const WhatsappFlowsSetEndpoint403: typeof ForbiddenError;
|
|
403
403
|
export type WhatsappFlowsSetEndpoint404 = ResourceNotFoundError;
|
|
404
404
|
export declare const WhatsappFlowsSetEndpoint404: typeof ResourceNotFoundError;
|
|
405
405
|
export type WhatsappFlowsSetEndpoint422 = ValidationError;
|
|
@@ -424,8 +424,8 @@ export type WhatsappFlowsRotateEndpointSecret400 = MalformedRequestError;
|
|
|
424
424
|
export declare const WhatsappFlowsRotateEndpointSecret400: typeof MalformedRequestError;
|
|
425
425
|
export type WhatsappFlowsRotateEndpointSecret401 = UnauthorizedError;
|
|
426
426
|
export declare const WhatsappFlowsRotateEndpointSecret401: typeof UnauthorizedError;
|
|
427
|
-
export type WhatsappFlowsRotateEndpointSecret403 =
|
|
428
|
-
export declare const WhatsappFlowsRotateEndpointSecret403:
|
|
427
|
+
export type WhatsappFlowsRotateEndpointSecret403 = ForbiddenError;
|
|
428
|
+
export declare const WhatsappFlowsRotateEndpointSecret403: typeof ForbiddenError;
|
|
429
429
|
export type WhatsappFlowsRotateEndpointSecret404 = ResourceNotFoundError;
|
|
430
430
|
export declare const WhatsappFlowsRotateEndpointSecret404: typeof ResourceNotFoundError;
|
|
431
431
|
export type WhatsappFlowsRotateEndpointSecret422 = ValidationError;
|
|
@@ -475,8 +475,8 @@ export type WhatsappFlowsListRegistrations400 = MalformedRequestError;
|
|
|
475
475
|
export declare const WhatsappFlowsListRegistrations400: typeof MalformedRequestError;
|
|
476
476
|
export type WhatsappFlowsListRegistrations401 = UnauthorizedError;
|
|
477
477
|
export declare const WhatsappFlowsListRegistrations401: typeof UnauthorizedError;
|
|
478
|
-
export type WhatsappFlowsListRegistrations403 =
|
|
479
|
-
export declare const WhatsappFlowsListRegistrations403:
|
|
478
|
+
export type WhatsappFlowsListRegistrations403 = ForbiddenError;
|
|
479
|
+
export declare const WhatsappFlowsListRegistrations403: typeof ForbiddenError;
|
|
480
480
|
export type WhatsappFlowsListRegistrations404 = ResourceNotFoundError;
|
|
481
481
|
export declare const WhatsappFlowsListRegistrations404: typeof ResourceNotFoundError;
|
|
482
482
|
export type WhatsappFlowsListRegistrations422 = ValidationError;
|
|
@@ -530,8 +530,8 @@ export type WhatsappFlowsRegister400 = MalformedRequestError;
|
|
|
530
530
|
export declare const WhatsappFlowsRegister400: typeof MalformedRequestError;
|
|
531
531
|
export type WhatsappFlowsRegister401 = UnauthorizedError;
|
|
532
532
|
export declare const WhatsappFlowsRegister401: typeof UnauthorizedError;
|
|
533
|
-
export type WhatsappFlowsRegister403 =
|
|
534
|
-
export declare const WhatsappFlowsRegister403:
|
|
533
|
+
export type WhatsappFlowsRegister403 = ForbiddenError;
|
|
534
|
+
export declare const WhatsappFlowsRegister403: typeof ForbiddenError;
|
|
535
535
|
export type WhatsappFlowsRegister404 = ResourceNotFoundError;
|
|
536
536
|
export declare const WhatsappFlowsRegister404: typeof ResourceNotFoundError;
|
|
537
537
|
export type WhatsappFlowsRegister409 = ConflictError;
|
|
@@ -568,8 +568,8 @@ export type WhatsappFlowsListVersions400 = MalformedRequestError;
|
|
|
568
568
|
export declare const WhatsappFlowsListVersions400: typeof MalformedRequestError;
|
|
569
569
|
export type WhatsappFlowsListVersions401 = UnauthorizedError;
|
|
570
570
|
export declare const WhatsappFlowsListVersions401: typeof UnauthorizedError;
|
|
571
|
-
export type WhatsappFlowsListVersions403 =
|
|
572
|
-
export declare const WhatsappFlowsListVersions403:
|
|
571
|
+
export type WhatsappFlowsListVersions403 = ForbiddenError;
|
|
572
|
+
export declare const WhatsappFlowsListVersions403: typeof ForbiddenError;
|
|
573
573
|
export type WhatsappFlowsListVersions404 = ResourceNotFoundError;
|
|
574
574
|
export declare const WhatsappFlowsListVersions404: typeof ResourceNotFoundError;
|
|
575
575
|
export type WhatsappFlowsListVersions422 = ValidationError;
|
|
@@ -608,8 +608,8 @@ export type WhatsappFlowsRecordVersion400 = MalformedRequestError;
|
|
|
608
608
|
export declare const WhatsappFlowsRecordVersion400: typeof MalformedRequestError;
|
|
609
609
|
export type WhatsappFlowsRecordVersion401 = UnauthorizedError;
|
|
610
610
|
export declare const WhatsappFlowsRecordVersion401: typeof UnauthorizedError;
|
|
611
|
-
export type WhatsappFlowsRecordVersion403 =
|
|
612
|
-
export declare const WhatsappFlowsRecordVersion403:
|
|
611
|
+
export type WhatsappFlowsRecordVersion403 = ForbiddenError;
|
|
612
|
+
export declare const WhatsappFlowsRecordVersion403: typeof ForbiddenError;
|
|
613
613
|
export type WhatsappFlowsRecordVersion404 = ResourceNotFoundError;
|
|
614
614
|
export declare const WhatsappFlowsRecordVersion404: typeof ResourceNotFoundError;
|
|
615
615
|
export type WhatsappFlowsRecordVersion409 = ConflictError;
|
|
@@ -639,8 +639,8 @@ export type WhatsappFlowsRotateEncryptionKey400 = MalformedRequestError;
|
|
|
639
639
|
export declare const WhatsappFlowsRotateEncryptionKey400: typeof MalformedRequestError;
|
|
640
640
|
export type WhatsappFlowsRotateEncryptionKey401 = UnauthorizedError;
|
|
641
641
|
export declare const WhatsappFlowsRotateEncryptionKey401: typeof UnauthorizedError;
|
|
642
|
-
export type WhatsappFlowsRotateEncryptionKey403 =
|
|
643
|
-
export declare const WhatsappFlowsRotateEncryptionKey403:
|
|
642
|
+
export type WhatsappFlowsRotateEncryptionKey403 = ForbiddenError;
|
|
643
|
+
export declare const WhatsappFlowsRotateEncryptionKey403: typeof ForbiddenError;
|
|
644
644
|
export type WhatsappFlowsRotateEncryptionKey404 = ResourceNotFoundError;
|
|
645
645
|
export declare const WhatsappFlowsRotateEncryptionKey404: typeof ResourceNotFoundError;
|
|
646
646
|
export type WhatsappFlowsRotateEncryptionKey422 = ValidationError;
|
|
@@ -678,7 +678,7 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
678
678
|
}>, Schema.Null]>;
|
|
679
679
|
readonly createdAt: Schema.String;
|
|
680
680
|
readonly updatedAt: Schema.String;
|
|
681
|
-
}>>, Schema.toCodecJson<Schema.
|
|
681
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
682
682
|
readonly _tag: "ConflictError";
|
|
683
683
|
readonly message: string;
|
|
684
684
|
readonly resource: string;
|
|
@@ -698,6 +698,18 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
698
698
|
readonly message: Schema.String;
|
|
699
699
|
readonly resource: Schema.String;
|
|
700
700
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
701
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
702
|
+
readonly _tag: "ForbiddenError";
|
|
703
|
+
readonly message: string;
|
|
704
|
+
}, readonly [Schema.Struct<{
|
|
705
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
706
|
+
readonly message: Schema.String;
|
|
707
|
+
}>], {
|
|
708
|
+
readonly _tag: "ForbiddenError";
|
|
709
|
+
readonly message: string;
|
|
710
|
+
}>, Schema.Struct<{
|
|
711
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
712
|
+
readonly message: Schema.String;
|
|
701
713
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
702
714
|
readonly _tag: "GatewayTimeoutError";
|
|
703
715
|
readonly message: string;
|
|
@@ -811,7 +823,19 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
811
823
|
}>, Schema.Null]>;
|
|
812
824
|
readonly createdAt: Schema.String;
|
|
813
825
|
readonly updatedAt: Schema.String;
|
|
814
|
-
}>>, Schema.toCodecJson<Schema.
|
|
826
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
827
|
+
readonly _tag: "ForbiddenError";
|
|
828
|
+
readonly message: string;
|
|
829
|
+
}, readonly [Schema.Struct<{
|
|
830
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
831
|
+
readonly message: Schema.String;
|
|
832
|
+
}>], {
|
|
833
|
+
readonly _tag: "ForbiddenError";
|
|
834
|
+
readonly message: string;
|
|
835
|
+
}>, Schema.Struct<{
|
|
836
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
837
|
+
readonly message: Schema.String;
|
|
838
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
815
839
|
readonly _tag: "GatewayTimeoutError";
|
|
816
840
|
readonly message: string;
|
|
817
841
|
readonly retryAfterSeconds: number;
|
|
@@ -924,7 +948,19 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
924
948
|
readonly createdAt: Schema.String;
|
|
925
949
|
readonly updatedAt: Schema.String;
|
|
926
950
|
}>>;
|
|
927
|
-
}>>, Schema.toCodecJson<Schema.
|
|
951
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
952
|
+
readonly _tag: "ForbiddenError";
|
|
953
|
+
readonly message: string;
|
|
954
|
+
}, readonly [Schema.Struct<{
|
|
955
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
956
|
+
readonly message: Schema.String;
|
|
957
|
+
}>], {
|
|
958
|
+
readonly _tag: "ForbiddenError";
|
|
959
|
+
readonly message: string;
|
|
960
|
+
}>, Schema.Struct<{
|
|
961
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
962
|
+
readonly message: Schema.String;
|
|
963
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
928
964
|
readonly _tag: "GatewayTimeoutError";
|
|
929
965
|
readonly message: string;
|
|
930
966
|
readonly retryAfterSeconds: number;
|
|
@@ -1023,7 +1059,19 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1023
1059
|
readonly createdAt: Schema.String;
|
|
1024
1060
|
readonly updatedAt: Schema.String;
|
|
1025
1061
|
}>>;
|
|
1026
|
-
}>>, Schema.toCodecJson<Schema.
|
|
1062
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1063
|
+
readonly _tag: "ForbiddenError";
|
|
1064
|
+
readonly message: string;
|
|
1065
|
+
}, readonly [Schema.Struct<{
|
|
1066
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1067
|
+
readonly message: Schema.String;
|
|
1068
|
+
}>], {
|
|
1069
|
+
readonly _tag: "ForbiddenError";
|
|
1070
|
+
readonly message: string;
|
|
1071
|
+
}>, Schema.Struct<{
|
|
1072
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1073
|
+
readonly message: Schema.String;
|
|
1074
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1027
1075
|
readonly _tag: "GatewayTimeoutError";
|
|
1028
1076
|
readonly message: string;
|
|
1029
1077
|
readonly retryAfterSeconds: number;
|
|
@@ -1125,7 +1173,19 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1125
1173
|
readonly dataExchange: Schema.Boolean;
|
|
1126
1174
|
readonly createdAt: Schema.String;
|
|
1127
1175
|
}>>;
|
|
1128
|
-
}>>, Schema.toCodecJson<Schema.
|
|
1176
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1177
|
+
readonly _tag: "ForbiddenError";
|
|
1178
|
+
readonly message: string;
|
|
1179
|
+
}, readonly [Schema.Struct<{
|
|
1180
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1181
|
+
readonly message: Schema.String;
|
|
1182
|
+
}>], {
|
|
1183
|
+
readonly _tag: "ForbiddenError";
|
|
1184
|
+
readonly message: string;
|
|
1185
|
+
}>, Schema.Struct<{
|
|
1186
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1187
|
+
readonly message: Schema.String;
|
|
1188
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1129
1189
|
readonly _tag: "GatewayTimeoutError";
|
|
1130
1190
|
readonly message: string;
|
|
1131
1191
|
readonly retryAfterSeconds: number;
|
|
@@ -1228,7 +1288,7 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1228
1288
|
readonly screens: Schema.$Array<Schema.String>;
|
|
1229
1289
|
readonly dataExchange: Schema.Boolean;
|
|
1230
1290
|
readonly createdAt: Schema.String;
|
|
1231
|
-
}>>, Schema.toCodecJson<Schema.
|
|
1291
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
1232
1292
|
readonly _tag: "ConflictError";
|
|
1233
1293
|
readonly message: string;
|
|
1234
1294
|
readonly resource: string;
|
|
@@ -1248,6 +1308,18 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1248
1308
|
readonly message: Schema.String;
|
|
1249
1309
|
readonly resource: Schema.String;
|
|
1250
1310
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1311
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1312
|
+
readonly _tag: "ForbiddenError";
|
|
1313
|
+
readonly message: string;
|
|
1314
|
+
}, readonly [Schema.Struct<{
|
|
1315
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1316
|
+
readonly message: Schema.String;
|
|
1317
|
+
}>], {
|
|
1318
|
+
readonly _tag: "ForbiddenError";
|
|
1319
|
+
readonly message: string;
|
|
1320
|
+
}>, Schema.Struct<{
|
|
1321
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1322
|
+
readonly message: Schema.String;
|
|
1251
1323
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1252
1324
|
readonly _tag: "GatewayTimeoutError";
|
|
1253
1325
|
readonly message: string;
|
|
@@ -1383,7 +1455,7 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1383
1455
|
readonly statusChangedAt: Schema.String;
|
|
1384
1456
|
readonly createdAt: Schema.String;
|
|
1385
1457
|
readonly updatedAt: Schema.String;
|
|
1386
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
1458
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
1387
1459
|
readonly _tag: "ConflictError";
|
|
1388
1460
|
readonly message: string;
|
|
1389
1461
|
readonly resource: string;
|
|
@@ -1403,6 +1475,18 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1403
1475
|
readonly message: Schema.String;
|
|
1404
1476
|
readonly resource: Schema.String;
|
|
1405
1477
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1478
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1479
|
+
readonly _tag: "ForbiddenError";
|
|
1480
|
+
readonly message: string;
|
|
1481
|
+
}, readonly [Schema.Struct<{
|
|
1482
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1483
|
+
readonly message: Schema.String;
|
|
1484
|
+
}>], {
|
|
1485
|
+
readonly _tag: "ForbiddenError";
|
|
1486
|
+
readonly message: string;
|
|
1487
|
+
}>, Schema.Struct<{
|
|
1488
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1489
|
+
readonly message: Schema.String;
|
|
1406
1490
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1407
1491
|
readonly _tag: "GatewayTimeoutError";
|
|
1408
1492
|
readonly message: string;
|
|
@@ -1526,7 +1610,19 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1526
1610
|
readonly publicKey: Schema.String;
|
|
1527
1611
|
readonly phoneNumberIds: Schema.$Array<Schema.String>;
|
|
1528
1612
|
readonly createdAt: Schema.String;
|
|
1529
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
1613
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1614
|
+
readonly _tag: "ForbiddenError";
|
|
1615
|
+
readonly message: string;
|
|
1616
|
+
}, readonly [Schema.Struct<{
|
|
1617
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1618
|
+
readonly message: Schema.String;
|
|
1619
|
+
}>], {
|
|
1620
|
+
readonly _tag: "ForbiddenError";
|
|
1621
|
+
readonly message: string;
|
|
1622
|
+
}>, Schema.Struct<{
|
|
1623
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1624
|
+
readonly message: Schema.String;
|
|
1625
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1530
1626
|
readonly _tag: "GatewayTimeoutError";
|
|
1531
1627
|
readonly message: string;
|
|
1532
1628
|
readonly retryAfterSeconds: number;
|
|
@@ -1648,7 +1744,19 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1648
1744
|
readonly url: Schema.String;
|
|
1649
1745
|
readonly updatedAt: Schema.String;
|
|
1650
1746
|
readonly secret: Schema.optionalKey<Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>>;
|
|
1651
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
1747
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1748
|
+
readonly _tag: "ForbiddenError";
|
|
1749
|
+
readonly message: string;
|
|
1750
|
+
}, readonly [Schema.Struct<{
|
|
1751
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1752
|
+
readonly message: Schema.String;
|
|
1753
|
+
}>], {
|
|
1754
|
+
readonly _tag: "ForbiddenError";
|
|
1755
|
+
readonly message: string;
|
|
1756
|
+
}>, Schema.Struct<{
|
|
1757
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1758
|
+
readonly message: Schema.String;
|
|
1759
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1652
1760
|
readonly _tag: "GatewayTimeoutError";
|
|
1653
1761
|
readonly message: string;
|
|
1654
1762
|
readonly retryAfterSeconds: number;
|
|
@@ -1744,7 +1852,19 @@ declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows
|
|
|
1744
1852
|
readonly url: Schema.String;
|
|
1745
1853
|
readonly updatedAt: Schema.String;
|
|
1746
1854
|
readonly secret: Schema.optionalKey<Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>>;
|
|
1747
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
1855
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1856
|
+
readonly _tag: "ForbiddenError";
|
|
1857
|
+
readonly message: string;
|
|
1858
|
+
}, readonly [Schema.Struct<{
|
|
1859
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1860
|
+
readonly message: Schema.String;
|
|
1861
|
+
}>], {
|
|
1862
|
+
readonly _tag: "ForbiddenError";
|
|
1863
|
+
readonly message: string;
|
|
1864
|
+
}>, Schema.Struct<{
|
|
1865
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1866
|
+
readonly message: Schema.String;
|
|
1867
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1748
1868
|
readonly _tag: "GatewayTimeoutError";
|
|
1749
1869
|
readonly message: string;
|
|
1750
1870
|
readonly retryAfterSeconds: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SensitiveString } from "../runtime.js";
|
|
2
|
-
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError,
|
|
2
|
+
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateProjectId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, WhatsAppFlowId, WhatsAppFlowVersionId } from "./shared.js";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
5
|
// src/effect/generated/whats-app-flows.ts
|
|
@@ -95,7 +95,7 @@ const WhatsAppFlowList = /* @__PURE__ */ (() => Schema.Struct({ data: Schema.Arr
|
|
|
95
95
|
const WhatsappFlowsList200 = WhatsAppFlowList;
|
|
96
96
|
const WhatsappFlowsList400 = MalformedRequestError;
|
|
97
97
|
const WhatsappFlowsList401 = UnauthorizedError;
|
|
98
|
-
const WhatsappFlowsList403 =
|
|
98
|
+
const WhatsappFlowsList403 = ForbiddenError;
|
|
99
99
|
const WhatsappFlowsList422 = ValidationError;
|
|
100
100
|
const WhatsappFlowsList500 = InternalError;
|
|
101
101
|
const WhatsappFlowsList504 = GatewayTimeoutError;
|
|
@@ -116,7 +116,7 @@ const WhatsappFlowsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
116
116
|
const WhatsappFlowsCreate201 = WhatsAppFlow;
|
|
117
117
|
const WhatsappFlowsCreate400 = MalformedRequestError;
|
|
118
118
|
const WhatsappFlowsCreate401 = UnauthorizedError;
|
|
119
|
-
const WhatsappFlowsCreate403 =
|
|
119
|
+
const WhatsappFlowsCreate403 = ForbiddenError;
|
|
120
120
|
const WhatsappFlowsCreate404 = ResourceNotFoundError;
|
|
121
121
|
const WhatsappFlowsCreate409 = ConflictError;
|
|
122
122
|
const WhatsappFlowsCreate422 = ValidationError;
|
|
@@ -126,7 +126,7 @@ const WhatsappFlowsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: Wh
|
|
|
126
126
|
const WhatsappFlowsGet200 = WhatsAppFlow;
|
|
127
127
|
const WhatsappFlowsGet400 = MalformedRequestError;
|
|
128
128
|
const WhatsappFlowsGet401 = UnauthorizedError;
|
|
129
|
-
const WhatsappFlowsGet403 =
|
|
129
|
+
const WhatsappFlowsGet403 = ForbiddenError;
|
|
130
130
|
const WhatsappFlowsGet404 = ResourceNotFoundError;
|
|
131
131
|
const WhatsappFlowsGet422 = ValidationError;
|
|
132
132
|
const WhatsappFlowsGet500 = InternalError;
|
|
@@ -136,7 +136,7 @@ const WhatsappFlowsSetEndpointRequestJson = /* @__PURE__ */ (() => Schema.Struct
|
|
|
136
136
|
const WhatsappFlowsSetEndpoint200 = WhatsAppFlowEndpointSettings;
|
|
137
137
|
const WhatsappFlowsSetEndpoint400 = MalformedRequestError;
|
|
138
138
|
const WhatsappFlowsSetEndpoint401 = UnauthorizedError;
|
|
139
|
-
const WhatsappFlowsSetEndpoint403 =
|
|
139
|
+
const WhatsappFlowsSetEndpoint403 = ForbiddenError;
|
|
140
140
|
const WhatsappFlowsSetEndpoint404 = ResourceNotFoundError;
|
|
141
141
|
const WhatsappFlowsSetEndpoint422 = ValidationError;
|
|
142
142
|
const WhatsappFlowsSetEndpoint500 = /* @__PURE__ */ (() => Schema.Union([CredentialsError, InternalError]))();
|
|
@@ -145,7 +145,7 @@ const WhatsappFlowsRotateEndpointSecretPathParams = /* @__PURE__ */ (() => Schem
|
|
|
145
145
|
const WhatsappFlowsRotateEndpointSecret200 = WhatsAppFlowEndpointSettings;
|
|
146
146
|
const WhatsappFlowsRotateEndpointSecret400 = MalformedRequestError;
|
|
147
147
|
const WhatsappFlowsRotateEndpointSecret401 = UnauthorizedError;
|
|
148
|
-
const WhatsappFlowsRotateEndpointSecret403 =
|
|
148
|
+
const WhatsappFlowsRotateEndpointSecret403 = ForbiddenError;
|
|
149
149
|
const WhatsappFlowsRotateEndpointSecret404 = ResourceNotFoundError;
|
|
150
150
|
const WhatsappFlowsRotateEndpointSecret422 = ValidationError;
|
|
151
151
|
const WhatsappFlowsRotateEndpointSecret500 = /* @__PURE__ */ (() => Schema.Union([CredentialsError, InternalError]))();
|
|
@@ -154,7 +154,7 @@ const WhatsappFlowsListRegistrationsPathParams = /* @__PURE__ */ (() => Schema.S
|
|
|
154
154
|
const WhatsappFlowsListRegistrations200 = WhatsAppFlowRegistrationList;
|
|
155
155
|
const WhatsappFlowsListRegistrations400 = MalformedRequestError;
|
|
156
156
|
const WhatsappFlowsListRegistrations401 = UnauthorizedError;
|
|
157
|
-
const WhatsappFlowsListRegistrations403 =
|
|
157
|
+
const WhatsappFlowsListRegistrations403 = ForbiddenError;
|
|
158
158
|
const WhatsappFlowsListRegistrations404 = ResourceNotFoundError;
|
|
159
159
|
const WhatsappFlowsListRegistrations422 = ValidationError;
|
|
160
160
|
const WhatsappFlowsListRegistrations500 = InternalError;
|
|
@@ -164,7 +164,7 @@ const WhatsappFlowsRegisterRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
164
164
|
const WhatsappFlowsRegister201 = WhatsAppFlowRegistration;
|
|
165
165
|
const WhatsappFlowsRegister400 = MalformedRequestError;
|
|
166
166
|
const WhatsappFlowsRegister401 = UnauthorizedError;
|
|
167
|
-
const WhatsappFlowsRegister403 =
|
|
167
|
+
const WhatsappFlowsRegister403 = ForbiddenError;
|
|
168
168
|
const WhatsappFlowsRegister404 = ResourceNotFoundError;
|
|
169
169
|
const WhatsappFlowsRegister409 = ConflictError;
|
|
170
170
|
const WhatsappFlowsRegister422 = ValidationError;
|
|
@@ -175,7 +175,7 @@ const WhatsappFlowsListVersionsPathParams = /* @__PURE__ */ (() => Schema.Struct
|
|
|
175
175
|
const WhatsappFlowsListVersions200 = WhatsAppFlowVersionList;
|
|
176
176
|
const WhatsappFlowsListVersions400 = MalformedRequestError;
|
|
177
177
|
const WhatsappFlowsListVersions401 = UnauthorizedError;
|
|
178
|
-
const WhatsappFlowsListVersions403 =
|
|
178
|
+
const WhatsappFlowsListVersions403 = ForbiddenError;
|
|
179
179
|
const WhatsappFlowsListVersions404 = ResourceNotFoundError;
|
|
180
180
|
const WhatsappFlowsListVersions422 = ValidationError;
|
|
181
181
|
const WhatsappFlowsListVersions500 = InternalError;
|
|
@@ -188,7 +188,7 @@ const WhatsappFlowsRecordVersionRequestJson = /* @__PURE__ */ (() => Schema.Stru
|
|
|
188
188
|
const WhatsappFlowsRecordVersion201 = WhatsAppFlowVersion;
|
|
189
189
|
const WhatsappFlowsRecordVersion400 = MalformedRequestError;
|
|
190
190
|
const WhatsappFlowsRecordVersion401 = UnauthorizedError;
|
|
191
|
-
const WhatsappFlowsRecordVersion403 =
|
|
191
|
+
const WhatsappFlowsRecordVersion403 = ForbiddenError;
|
|
192
192
|
const WhatsappFlowsRecordVersion404 = ResourceNotFoundError;
|
|
193
193
|
const WhatsappFlowsRecordVersion409 = ConflictError;
|
|
194
194
|
const WhatsappFlowsRecordVersion422 = ValidationError;
|
|
@@ -199,7 +199,7 @@ const WhatsappFlowsRotateEncryptionKeyRequestJson = /* @__PURE__ */ (() => Schem
|
|
|
199
199
|
const WhatsappFlowsRotateEncryptionKey200 = WhatsAppFlowEncryptionKey;
|
|
200
200
|
const WhatsappFlowsRotateEncryptionKey400 = MalformedRequestError;
|
|
201
201
|
const WhatsappFlowsRotateEncryptionKey401 = UnauthorizedError;
|
|
202
|
-
const WhatsappFlowsRotateEncryptionKey403 =
|
|
202
|
+
const WhatsappFlowsRotateEncryptionKey403 = ForbiddenError;
|
|
203
203
|
const WhatsappFlowsRotateEncryptionKey404 = ResourceNotFoundError;
|
|
204
204
|
const WhatsappFlowsRotateEncryptionKey422 = ValidationError;
|
|
205
205
|
const WhatsappFlowsRotateEncryptionKey500 = /* @__PURE__ */ (() => Schema.Union([CredentialsError, InternalError]))();
|