samva 0.30.0 → 0.32.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 +72 -5
- package/dist/client/sdk.gen.js +229 -4
- package/dist/client/types.gen.d.ts +592 -34
- package/dist/effect/conversations.d.ts +3 -0
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/generated/campaigns.d.ts +131 -57
- package/dist/effect/generated/campaigns.js +27 -9
- package/dist/effect/generated/contact-groups.js +2 -2
- package/dist/effect/generated/contacts.js +6 -6
- package/dist/effect/generated/conversations.d.ts +4 -1
- package/dist/effect/generated/conversations.js +3 -2
- package/dist/effect/generated/email.js +1 -1
- package/dist/effect/generated/mailboxes.d.ts +969 -16
- package/dist/effect/generated/mailboxes.js +263 -11
- package/dist/effect/generated/newsletter-issues.d.ts +199 -1
- package/dist/effect/generated/newsletter-issues.js +24 -2
- package/dist/effect/generated/newsletters.js +1 -1
- package/dist/effect/generated/organizations.d.ts +345 -2
- package/dist/effect/generated/organizations.js +65 -5
- package/dist/effect/generated/scheduled-messages.d.ts +25 -8
- package/dist/effect/generated/scheduled-messages.js +17 -9
- package/dist/effect/generated/shared.d.ts +90 -9
- package/dist/effect/generated/shared.js +14 -10
- package/dist/effect/generated/subscriptions.js +1 -1
- package/dist/effect/generated/templates.d.ts +307 -1
- package/dist/effect/generated/templates.js +36 -2
- package/dist/effect/generated/topics.js +2 -2
- package/dist/effect/generated/whoami.d.ts +5 -5
- package/dist/effect/generated/whoami.js +1 -0
- package/dist/effect/generated-metadata.d.ts +40 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/mailboxes.d.ts +273 -0
- package/dist/effect/mailboxes.js +7 -1
- package/dist/effect/organizations.d.ts +6 -0
- package/dist/effect/organizations.js +7 -1
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +12 -2
- package/dist/promises/errors.gen.js +28 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +25 -0
- package/dist/service-map.js +9 -0
- package/package.json +8 -8
|
@@ -4,6 +4,7 @@ export declare const list: ((input?: {
|
|
|
4
4
|
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
5
5
|
readonly channel?: "email" | null | undefined;
|
|
6
6
|
readonly contactId?: string | null | undefined;
|
|
7
|
+
readonly mailboxId?: string | null | undefined;
|
|
7
8
|
readonly after?: string | null | undefined;
|
|
8
9
|
readonly before?: string | null | undefined;
|
|
9
10
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsList">) & {
|
|
@@ -13,6 +14,7 @@ export declare const list: ((input?: {
|
|
|
13
14
|
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
14
15
|
readonly channel?: "email" | null | undefined;
|
|
15
16
|
readonly contactId?: string | null | undefined;
|
|
17
|
+
readonly mailboxId?: string | null | undefined;
|
|
16
18
|
readonly after?: string | null | undefined;
|
|
17
19
|
readonly before?: string | null | undefined;
|
|
18
20
|
} | undefined) => import("effect/Stream").Stream<{
|
|
@@ -39,6 +41,7 @@ export declare const list: ((input?: {
|
|
|
39
41
|
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
40
42
|
readonly channel?: "email" | null | undefined;
|
|
41
43
|
readonly contactId?: string | null | undefined;
|
|
44
|
+
readonly mailboxId?: string | null | undefined;
|
|
42
45
|
readonly after?: string | null | undefined;
|
|
43
46
|
readonly before?: string | null | undefined;
|
|
44
47
|
} | undefined) => import("effect/Stream").Stream<{
|
package/dist/effect/errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError, TemplateSourceError, DeliveryUnavailableError, } from "./generated/shared";
|
|
1
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, UnauthorizedError, ValidationError, TemplateSourceError, DeliveryUnavailableError, } from "./generated/shared";
|
|
2
2
|
export { MediaUploadError } from "../inline-attachments";
|
package/dist/effect/errors.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
|
-
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TemplateSourceError, UnauthorizedError, ValidationError } from "./generated/shared.js";
|
|
3
|
-
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TemplateSourceError, UnauthorizedError, ValidationError };
|
|
2
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateSourceError, UnauthorizedError, ValidationError } from "./generated/shared.js";
|
|
3
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateSourceError, UnauthorizedError, ValidationError };
|
|
@@ -1,7 +1,15 @@
|
|
|
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, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError,
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, Cursor, DeliveryUnavailableError, EmailAttachments, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SenderNotReadyError, SendsSeries, ServiceUnavailableError, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateSourceError, TopicId, UnauthorizedError, ValidationError, __SamvaRuntimeAbsoluteInstant } from "./shared";
|
|
5
|
+
export type CampaignFrom = {
|
|
6
|
+
readonly email: string;
|
|
7
|
+
readonly name?: string | null;
|
|
8
|
+
} | null;
|
|
9
|
+
export declare const CampaignFrom: Schema.Union<readonly [Schema.Struct<{
|
|
10
|
+
readonly email: Schema.String;
|
|
11
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
12
|
+
}>, Schema.Null]>;
|
|
5
13
|
export type CampaignPolicy = {
|
|
6
14
|
readonly pageSize?: number | null;
|
|
7
15
|
};
|
|
@@ -1086,12 +1094,16 @@ export declare const CampaignsCreate201: Schema.Struct<{
|
|
|
1086
1094
|
}>;
|
|
1087
1095
|
export type CampaignsCreate401 = UnauthorizedError;
|
|
1088
1096
|
export declare const CampaignsCreate401: typeof UnauthorizedError;
|
|
1097
|
+
export type CampaignsCreate402 = PaymentRequiredError;
|
|
1098
|
+
export declare const CampaignsCreate402: typeof PaymentRequiredError;
|
|
1089
1099
|
export type CampaignsCreate403 = FlagDisabledError | ForbiddenError;
|
|
1090
1100
|
export declare const CampaignsCreate403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
1091
1101
|
export type CampaignsCreate422 = ValidationError;
|
|
1092
1102
|
export declare const CampaignsCreate422: typeof ValidationError;
|
|
1093
1103
|
export type CampaignsCreate500 = InternalError;
|
|
1094
1104
|
export declare const CampaignsCreate500: typeof InternalError;
|
|
1105
|
+
export type CampaignsCreate502 = BillingProviderError;
|
|
1106
|
+
export declare const CampaignsCreate502: typeof BillingProviderError;
|
|
1095
1107
|
export type CampaignsCreate504 = GatewayTimeoutError;
|
|
1096
1108
|
export declare const CampaignsCreate504: typeof GatewayTimeoutError;
|
|
1097
1109
|
export type CampaignsGetPathParams = {
|
|
@@ -1685,6 +1697,8 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1685
1697
|
}>;
|
|
1686
1698
|
export type CampaignsScheduleRun401 = UnauthorizedError;
|
|
1687
1699
|
export declare const CampaignsScheduleRun401: typeof UnauthorizedError;
|
|
1700
|
+
export type CampaignsScheduleRun402 = PaymentRequiredError;
|
|
1701
|
+
export declare const CampaignsScheduleRun402: typeof PaymentRequiredError;
|
|
1688
1702
|
export type CampaignsScheduleRun403 = FlagDisabledError | ForbiddenError;
|
|
1689
1703
|
export declare const CampaignsScheduleRun403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
1690
1704
|
export type CampaignsScheduleRun404 = ResourceNotFoundError;
|
|
@@ -1695,10 +1709,10 @@ export type CampaignsScheduleRun422 = TemplateSourceError | FromAddressRequiredE
|
|
|
1695
1709
|
export declare const CampaignsScheduleRun422: Schema.Union<readonly [typeof TemplateSourceError, typeof FromAddressRequiredError, typeof ValidationError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]>;
|
|
1696
1710
|
export type CampaignsScheduleRun500 = InternalError;
|
|
1697
1711
|
export declare const CampaignsScheduleRun500: typeof InternalError;
|
|
1698
|
-
export type CampaignsScheduleRun502 = ExternalServiceError;
|
|
1699
|
-
export declare const CampaignsScheduleRun502: typeof ExternalServiceError
|
|
1700
|
-
export type CampaignsScheduleRun503 = SenderNotReadyError;
|
|
1701
|
-
export declare const CampaignsScheduleRun503: typeof SenderNotReadyError
|
|
1712
|
+
export type CampaignsScheduleRun502 = ExternalServiceError | BillingProviderError;
|
|
1713
|
+
export declare const CampaignsScheduleRun502: Schema.Union<readonly [typeof ExternalServiceError, typeof BillingProviderError]>;
|
|
1714
|
+
export type CampaignsScheduleRun503 = SenderNotReadyError | ServiceUnavailableError;
|
|
1715
|
+
export declare const CampaignsScheduleRun503: Schema.Union<readonly [typeof SenderNotReadyError, typeof ServiceUnavailableError]>;
|
|
1702
1716
|
export type CampaignsScheduleRun504 = GatewayTimeoutError;
|
|
1703
1717
|
export declare const CampaignsScheduleRun504: typeof GatewayTimeoutError;
|
|
1704
1718
|
export type CampaignsGetRunPathParams = {
|
|
@@ -2224,6 +2238,8 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2224
2238
|
}>;
|
|
2225
2239
|
export type CampaignsResumeRun401 = UnauthorizedError;
|
|
2226
2240
|
export declare const CampaignsResumeRun401: typeof UnauthorizedError;
|
|
2241
|
+
export type CampaignsResumeRun402 = PaymentRequiredError;
|
|
2242
|
+
export declare const CampaignsResumeRun402: typeof PaymentRequiredError;
|
|
2227
2243
|
export type CampaignsResumeRun403 = ForbiddenError;
|
|
2228
2244
|
export declare const CampaignsResumeRun403: typeof ForbiddenError;
|
|
2229
2245
|
export type CampaignsResumeRun404 = ResourceNotFoundError;
|
|
@@ -2234,8 +2250,8 @@ export type CampaignsResumeRun422 = ValidationError;
|
|
|
2234
2250
|
export declare const CampaignsResumeRun422: typeof ValidationError;
|
|
2235
2251
|
export type CampaignsResumeRun500 = InternalError;
|
|
2236
2252
|
export declare const CampaignsResumeRun500: typeof InternalError;
|
|
2237
|
-
export type CampaignsResumeRun502 = ExternalServiceError;
|
|
2238
|
-
export declare const CampaignsResumeRun502: typeof ExternalServiceError
|
|
2253
|
+
export type CampaignsResumeRun502 = ExternalServiceError | BillingProviderError;
|
|
2254
|
+
export declare const CampaignsResumeRun502: Schema.Union<readonly [typeof ExternalServiceError, typeof BillingProviderError]>;
|
|
2239
2255
|
export type CampaignsResumeRun504 = GatewayTimeoutError;
|
|
2240
2256
|
export declare const CampaignsResumeRun504: typeof GatewayTimeoutError;
|
|
2241
2257
|
export type CampaignsPreviewRequestJson = {
|
|
@@ -2317,6 +2333,8 @@ export type CampaignsPreview422 = TemplateSourceError | ValidationError;
|
|
|
2317
2333
|
export declare const CampaignsPreview422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
2318
2334
|
export type CampaignsPreview500 = InternalError;
|
|
2319
2335
|
export declare const CampaignsPreview500: typeof InternalError;
|
|
2336
|
+
export type CampaignsPreview503 = ServiceUnavailableError;
|
|
2337
|
+
export declare const CampaignsPreview503: typeof ServiceUnavailableError;
|
|
2320
2338
|
export type CampaignsPreview504 = GatewayTimeoutError;
|
|
2321
2339
|
export declare const CampaignsPreview504: typeof GatewayTimeoutError;
|
|
2322
2340
|
export type CampaignsSendTestRequestJson = {
|
|
@@ -2401,8 +2419,8 @@ export type CampaignsSendTest500 = InternalError;
|
|
|
2401
2419
|
export declare const CampaignsSendTest500: typeof InternalError;
|
|
2402
2420
|
export type CampaignsSendTest502 = BillingProviderError | ExternalServiceError;
|
|
2403
2421
|
export declare const CampaignsSendTest502: Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]>;
|
|
2404
|
-
export type CampaignsSendTest503 = SenderNotReadyError | DeliveryUnavailableError;
|
|
2405
|
-
export declare const CampaignsSendTest503: Schema.Union<readonly [typeof SenderNotReadyError, typeof DeliveryUnavailableError]>;
|
|
2422
|
+
export type CampaignsSendTest503 = ServiceUnavailableError | SenderNotReadyError | DeliveryUnavailableError;
|
|
2423
|
+
export declare const CampaignsSendTest503: Schema.Union<readonly [typeof ServiceUnavailableError, typeof SenderNotReadyError, typeof DeliveryUnavailableError]>;
|
|
2406
2424
|
export type CampaignsSendTest504 = GatewayTimeoutError;
|
|
2407
2425
|
export declare const CampaignsSendTest504: typeof GatewayTimeoutError;
|
|
2408
2426
|
declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpApiEndpoint.HttpApiEndpoint<"campaignsArchive", "POST", "/v1/campaigns/:id/archive", Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -2927,7 +2945,19 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2927
2945
|
readonly memberRole: Schema.String;
|
|
2928
2946
|
readonly createdAt: Schema.String;
|
|
2929
2947
|
readonly updatedAt: Schema.String;
|
|
2930
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
2948
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
2949
|
+
readonly _tag: "BillingProviderError";
|
|
2950
|
+
readonly message: string;
|
|
2951
|
+
}, readonly [Schema.Struct<{
|
|
2952
|
+
readonly _tag: Schema.tag<"BillingProviderError">;
|
|
2953
|
+
readonly message: Schema.String;
|
|
2954
|
+
}>], {
|
|
2955
|
+
readonly _tag: "BillingProviderError";
|
|
2956
|
+
readonly message: string;
|
|
2957
|
+
}>, Schema.Struct<{
|
|
2958
|
+
readonly _tag: Schema.tag<"BillingProviderError">;
|
|
2959
|
+
readonly message: Schema.String;
|
|
2960
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
2931
2961
|
readonly _tag: "GatewayTimeoutError";
|
|
2932
2962
|
readonly message: string;
|
|
2933
2963
|
readonly retryAfterSeconds: number;
|
|
@@ -2943,6 +2973,30 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2943
2973
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2944
2974
|
readonly message: Schema.String;
|
|
2945
2975
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2976
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
2977
|
+
readonly _tag: "PaymentRequiredError";
|
|
2978
|
+
readonly message: string;
|
|
2979
|
+
readonly resource: string;
|
|
2980
|
+
readonly currentUsage: number;
|
|
2981
|
+
readonly limit: number;
|
|
2982
|
+
}, readonly [Schema.Struct<{
|
|
2983
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
2984
|
+
readonly message: Schema.String;
|
|
2985
|
+
readonly resource: Schema.String;
|
|
2986
|
+
readonly currentUsage: Schema.Finite;
|
|
2987
|
+
readonly limit: Schema.Finite;
|
|
2988
|
+
}>], {
|
|
2989
|
+
readonly _tag: "PaymentRequiredError";
|
|
2990
|
+
readonly message: string;
|
|
2991
|
+
readonly resource: string;
|
|
2992
|
+
readonly currentUsage: number;
|
|
2993
|
+
readonly limit: number;
|
|
2994
|
+
}>, Schema.Struct<{
|
|
2995
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
2996
|
+
readonly message: Schema.String;
|
|
2997
|
+
readonly resource: Schema.String;
|
|
2998
|
+
readonly currentUsage: Schema.Finite;
|
|
2999
|
+
readonly limit: Schema.Finite;
|
|
2946
3000
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
2947
3001
|
readonly _tag: "UnauthorizedError";
|
|
2948
3002
|
readonly message: string;
|
|
@@ -4150,6 +4204,22 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4150
4204
|
readonly resource: Schema.String;
|
|
4151
4205
|
readonly id: Schema.String;
|
|
4152
4206
|
readonly message: Schema.String;
|
|
4207
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ServiceUnavailableError, {
|
|
4208
|
+
readonly _tag: "ServiceUnavailableError";
|
|
4209
|
+
readonly message: string;
|
|
4210
|
+
readonly retryAfterSeconds: number;
|
|
4211
|
+
}, readonly [Schema.Struct<{
|
|
4212
|
+
readonly _tag: Schema.tag<"ServiceUnavailableError">;
|
|
4213
|
+
readonly message: Schema.String;
|
|
4214
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
4215
|
+
}>], {
|
|
4216
|
+
readonly _tag: "ServiceUnavailableError";
|
|
4217
|
+
readonly message: string;
|
|
4218
|
+
readonly retryAfterSeconds: number;
|
|
4219
|
+
}>, Schema.Struct<{
|
|
4220
|
+
readonly _tag: Schema.tag<"ServiceUnavailableError">;
|
|
4221
|
+
readonly message: Schema.String;
|
|
4222
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
4153
4223
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
4154
4224
|
readonly _tag: "UnauthorizedError";
|
|
4155
4225
|
readonly message: string;
|
|
@@ -4252,7 +4322,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4252
4322
|
readonly createdAt: Schema.String;
|
|
4253
4323
|
readonly updatedAt: Schema.String;
|
|
4254
4324
|
}>;
|
|
4255
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
4325
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ExternalServiceError, typeof BillingProviderError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
4256
4326
|
readonly _tag: "ConflictError";
|
|
4257
4327
|
readonly message: string;
|
|
4258
4328
|
readonly resource: string;
|
|
@@ -4272,18 +4342,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4272
4342
|
readonly message: Schema.String;
|
|
4273
4343
|
readonly resource: Schema.String;
|
|
4274
4344
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4275
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ExternalServiceError, {
|
|
4276
|
-
readonly _tag: "ExternalServiceError";
|
|
4277
|
-
readonly message: string;
|
|
4278
|
-
}, readonly [Schema.Struct<{
|
|
4279
|
-
readonly _tag: Schema.tag<"ExternalServiceError">;
|
|
4280
|
-
readonly message: Schema.String;
|
|
4281
|
-
}>], {
|
|
4282
|
-
readonly _tag: "ExternalServiceError";
|
|
4283
|
-
readonly message: string;
|
|
4284
|
-
}>, Schema.Struct<{
|
|
4285
|
-
readonly _tag: Schema.tag<"ExternalServiceError">;
|
|
4286
|
-
readonly message: Schema.String;
|
|
4287
4345
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
4288
4346
|
readonly _tag: "ForbiddenError";
|
|
4289
4347
|
readonly message: string;
|
|
@@ -4312,6 +4370,30 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4312
4370
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4313
4371
|
readonly message: Schema.String;
|
|
4314
4372
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4373
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4374
|
+
readonly _tag: "PaymentRequiredError";
|
|
4375
|
+
readonly message: string;
|
|
4376
|
+
readonly resource: string;
|
|
4377
|
+
readonly currentUsage: number;
|
|
4378
|
+
readonly limit: number;
|
|
4379
|
+
}, readonly [Schema.Struct<{
|
|
4380
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
4381
|
+
readonly message: Schema.String;
|
|
4382
|
+
readonly resource: Schema.String;
|
|
4383
|
+
readonly currentUsage: Schema.Finite;
|
|
4384
|
+
readonly limit: Schema.Finite;
|
|
4385
|
+
}>], {
|
|
4386
|
+
readonly _tag: "PaymentRequiredError";
|
|
4387
|
+
readonly message: string;
|
|
4388
|
+
readonly resource: string;
|
|
4389
|
+
readonly currentUsage: number;
|
|
4390
|
+
readonly limit: number;
|
|
4391
|
+
}>, Schema.Struct<{
|
|
4392
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
4393
|
+
readonly message: Schema.String;
|
|
4394
|
+
readonly resource: Schema.String;
|
|
4395
|
+
readonly currentUsage: Schema.Finite;
|
|
4396
|
+
readonly limit: Schema.Finite;
|
|
4315
4397
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4316
4398
|
readonly _tag: "ResourceNotFoundError";
|
|
4317
4399
|
readonly resource: string;
|
|
@@ -4454,7 +4536,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4454
4536
|
readonly memberRole: Schema.String;
|
|
4455
4537
|
readonly createdAt: Schema.String;
|
|
4456
4538
|
readonly updatedAt: Schema.String;
|
|
4457
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof FromAddressRequiredError, typeof ValidationError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
4539
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.Union<readonly [typeof ExternalServiceError, typeof BillingProviderError]> | Schema.Union<readonly [typeof SenderNotReadyError, typeof ServiceUnavailableError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof FromAddressRequiredError, typeof ValidationError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
4458
4540
|
readonly _tag: "ConflictError";
|
|
4459
4541
|
readonly message: string;
|
|
4460
4542
|
readonly resource: string;
|
|
@@ -4474,18 +4556,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4474
4556
|
readonly message: Schema.String;
|
|
4475
4557
|
readonly resource: Schema.String;
|
|
4476
4558
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4477
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ExternalServiceError, {
|
|
4478
|
-
readonly _tag: "ExternalServiceError";
|
|
4479
|
-
readonly message: string;
|
|
4480
|
-
}, readonly [Schema.Struct<{
|
|
4481
|
-
readonly _tag: Schema.tag<"ExternalServiceError">;
|
|
4482
|
-
readonly message: Schema.String;
|
|
4483
|
-
}>], {
|
|
4484
|
-
readonly _tag: "ExternalServiceError";
|
|
4485
|
-
readonly message: string;
|
|
4486
|
-
}>, Schema.Struct<{
|
|
4487
|
-
readonly _tag: Schema.tag<"ExternalServiceError">;
|
|
4488
|
-
readonly message: Schema.String;
|
|
4489
4559
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
4490
4560
|
readonly _tag: "GatewayTimeoutError";
|
|
4491
4561
|
readonly message: string;
|
|
@@ -4502,6 +4572,30 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4502
4572
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4503
4573
|
readonly message: Schema.String;
|
|
4504
4574
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4575
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4576
|
+
readonly _tag: "PaymentRequiredError";
|
|
4577
|
+
readonly message: string;
|
|
4578
|
+
readonly resource: string;
|
|
4579
|
+
readonly currentUsage: number;
|
|
4580
|
+
readonly limit: number;
|
|
4581
|
+
}, readonly [Schema.Struct<{
|
|
4582
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
4583
|
+
readonly message: Schema.String;
|
|
4584
|
+
readonly resource: Schema.String;
|
|
4585
|
+
readonly currentUsage: Schema.Finite;
|
|
4586
|
+
readonly limit: Schema.Finite;
|
|
4587
|
+
}>], {
|
|
4588
|
+
readonly _tag: "PaymentRequiredError";
|
|
4589
|
+
readonly message: string;
|
|
4590
|
+
readonly resource: string;
|
|
4591
|
+
readonly currentUsage: number;
|
|
4592
|
+
readonly limit: number;
|
|
4593
|
+
}>, Schema.Struct<{
|
|
4594
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
4595
|
+
readonly message: Schema.String;
|
|
4596
|
+
readonly resource: Schema.String;
|
|
4597
|
+
readonly currentUsage: Schema.Finite;
|
|
4598
|
+
readonly limit: Schema.Finite;
|
|
4505
4599
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4506
4600
|
readonly _tag: "ResourceNotFoundError";
|
|
4507
4601
|
readonly resource: string;
|
|
@@ -4522,26 +4616,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4522
4616
|
readonly resource: Schema.String;
|
|
4523
4617
|
readonly id: Schema.String;
|
|
4524
4618
|
readonly message: Schema.String;
|
|
4525
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<SenderNotReadyError, {
|
|
4526
|
-
readonly _tag: "SenderNotReadyError";
|
|
4527
|
-
readonly message: string;
|
|
4528
|
-
readonly sender: string;
|
|
4529
|
-
readonly retryAfterSeconds?: number | null;
|
|
4530
|
-
}, readonly [Schema.Struct<{
|
|
4531
|
-
readonly _tag: Schema.tag<"SenderNotReadyError">;
|
|
4532
|
-
readonly message: Schema.String;
|
|
4533
|
-
readonly sender: Schema.String;
|
|
4534
|
-
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4535
|
-
}>], {
|
|
4536
|
-
readonly _tag: "SenderNotReadyError";
|
|
4537
|
-
readonly message: string;
|
|
4538
|
-
readonly sender: string;
|
|
4539
|
-
readonly retryAfterSeconds?: number | null;
|
|
4540
|
-
}>, Schema.Struct<{
|
|
4541
|
-
readonly _tag: Schema.tag<"SenderNotReadyError">;
|
|
4542
|
-
readonly message: Schema.String;
|
|
4543
|
-
readonly sender: Schema.String;
|
|
4544
|
-
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4545
4619
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
4546
4620
|
readonly _tag: "UnauthorizedError";
|
|
4547
4621
|
readonly message: string;
|
|
@@ -4610,7 +4684,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4610
4684
|
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
4611
4685
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4612
4686
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
4613
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof
|
|
4687
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError, typeof FlagDisabledError]> | Schema.Union<readonly [typeof ServiceUnavailableError, typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
4614
4688
|
readonly _tag: "ConflictError";
|
|
4615
4689
|
readonly message: string;
|
|
4616
4690
|
readonly resource: string;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { AbsoluteInstant } from "../runtime.js";
|
|
2
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError,
|
|
2
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, Cursor, DeliveryUnavailableError, EmailAttachments, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SenderNotReadyError, SendsSeries, ServiceUnavailableError, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateSourceError, TopicId, UnauthorizedError, ValidationError } 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/campaigns.ts
|
|
6
|
+
const CampaignFrom = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
7
|
+
email: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
8
|
+
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
9
|
+
}), Schema.Null]).annotate({ identifier: "CampaignFrom" }))();
|
|
6
10
|
const CampaignPolicy = /* @__PURE__ */ (() => Schema.Struct({ pageSize: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema.isLessThanOrEqualTo(1e3).annotate({ expected: "a value less than or equal to 1000" })), Schema.Null])) }).annotate({ identifier: "CampaignPolicy" }))();
|
|
7
11
|
const CampaignDefinitionSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
8
12
|
state: Schema.Union([
|
|
@@ -234,7 +238,7 @@ const CampaignsList422 = ValidationError;
|
|
|
234
238
|
const CampaignsList500 = InternalError;
|
|
235
239
|
const CampaignsList504 = GatewayTimeoutError;
|
|
236
240
|
const CampaignsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
237
|
-
name: Schema.String,
|
|
241
|
+
name: Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })),
|
|
238
242
|
channel: Schema.Literal("email"),
|
|
239
243
|
content: CampaignContentInput,
|
|
240
244
|
audience: CampaignAudience,
|
|
@@ -242,9 +246,11 @@ const CampaignsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
242
246
|
}))();
|
|
243
247
|
const CampaignsCreate201 = Campaign;
|
|
244
248
|
const CampaignsCreate401 = UnauthorizedError;
|
|
249
|
+
const CampaignsCreate402 = PaymentRequiredError;
|
|
245
250
|
const CampaignsCreate403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
246
251
|
const CampaignsCreate422 = ValidationError;
|
|
247
252
|
const CampaignsCreate500 = InternalError;
|
|
253
|
+
const CampaignsCreate502 = BillingProviderError;
|
|
248
254
|
const CampaignsCreate504 = GatewayTimeoutError;
|
|
249
255
|
const CampaignsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CampaignId }))();
|
|
250
256
|
const CampaignsGet200 = Campaign;
|
|
@@ -256,7 +262,7 @@ const CampaignsGet500 = InternalError;
|
|
|
256
262
|
const CampaignsGet504 = GatewayTimeoutError;
|
|
257
263
|
const CampaignsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CampaignId }))();
|
|
258
264
|
const CampaignsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
259
|
-
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
265
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
260
266
|
content: Schema.optionalKey(Schema.Union([CampaignContentInput, Schema.Null])),
|
|
261
267
|
audience: Schema.optionalKey(Schema.Union([CampaignAudience, Schema.Null])),
|
|
262
268
|
policy: Schema.optionalKey(Schema.Union([CampaignPolicy, Schema.Null]))
|
|
@@ -304,6 +310,7 @@ const CampaignsScheduleRunHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idem
|
|
|
304
310
|
const CampaignsScheduleRunRequestJson = /* @__PURE__ */ (() => Schema.Struct({ scheduledFor: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])) }))();
|
|
305
311
|
const CampaignsScheduleRun201 = CampaignRun;
|
|
306
312
|
const CampaignsScheduleRun401 = UnauthorizedError;
|
|
313
|
+
const CampaignsScheduleRun402 = PaymentRequiredError;
|
|
307
314
|
const CampaignsScheduleRun403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
|
|
308
315
|
const CampaignsScheduleRun404 = ResourceNotFoundError;
|
|
309
316
|
const CampaignsScheduleRun409 = ConflictError;
|
|
@@ -315,8 +322,8 @@ const CampaignsScheduleRun422 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
315
322
|
CampaignFooterRequiredError
|
|
316
323
|
]))();
|
|
317
324
|
const CampaignsScheduleRun500 = InternalError;
|
|
318
|
-
const CampaignsScheduleRun502 = ExternalServiceError;
|
|
319
|
-
const CampaignsScheduleRun503 = SenderNotReadyError;
|
|
325
|
+
const CampaignsScheduleRun502 = /* @__PURE__ */ (() => Schema.Union([ExternalServiceError, BillingProviderError]))();
|
|
326
|
+
const CampaignsScheduleRun503 = /* @__PURE__ */ (() => Schema.Union([SenderNotReadyError, ServiceUnavailableError]))();
|
|
320
327
|
const CampaignsScheduleRun504 = GatewayTimeoutError;
|
|
321
328
|
const CampaignsGetRunPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
322
329
|
id: CampaignId,
|
|
@@ -394,12 +401,13 @@ const CampaignsResumeRunPathParams = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
394
401
|
}))();
|
|
395
402
|
const CampaignsResumeRun200 = CampaignRunAction;
|
|
396
403
|
const CampaignsResumeRun401 = UnauthorizedError;
|
|
404
|
+
const CampaignsResumeRun402 = PaymentRequiredError;
|
|
397
405
|
const CampaignsResumeRun403 = ForbiddenError;
|
|
398
406
|
const CampaignsResumeRun404 = ResourceNotFoundError;
|
|
399
407
|
const CampaignsResumeRun409 = ConflictError;
|
|
400
408
|
const CampaignsResumeRun422 = ValidationError;
|
|
401
409
|
const CampaignsResumeRun500 = InternalError;
|
|
402
|
-
const CampaignsResumeRun502 = ExternalServiceError;
|
|
410
|
+
const CampaignsResumeRun502 = /* @__PURE__ */ (() => Schema.Union([ExternalServiceError, BillingProviderError]))();
|
|
403
411
|
const CampaignsResumeRun504 = GatewayTimeoutError;
|
|
404
412
|
const CampaignsPreviewRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
405
413
|
content: CampaignContentInput,
|
|
@@ -413,6 +421,7 @@ const CampaignsPreview404 = ResourceNotFoundError;
|
|
|
413
421
|
const CampaignsPreview409 = ConflictError;
|
|
414
422
|
const CampaignsPreview422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
415
423
|
const CampaignsPreview500 = InternalError;
|
|
424
|
+
const CampaignsPreview503 = ServiceUnavailableError;
|
|
416
425
|
const CampaignsPreview504 = GatewayTimeoutError;
|
|
417
426
|
const CampaignsSendTestRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
418
427
|
content: CampaignContentInput,
|
|
@@ -439,7 +448,11 @@ const CampaignsSendTest422 = /* @__PURE__ */ (() => Schema.Union([
|
|
|
439
448
|
const CampaignsSendTest429 = RateLimitedError;
|
|
440
449
|
const CampaignsSendTest500 = InternalError;
|
|
441
450
|
const CampaignsSendTest502 = /* @__PURE__ */ (() => Schema.Union([BillingProviderError, ExternalServiceError]))();
|
|
442
|
-
const CampaignsSendTest503 = /* @__PURE__ */ (() => Schema.Union([
|
|
451
|
+
const CampaignsSendTest503 = /* @__PURE__ */ (() => Schema.Union([
|
|
452
|
+
ServiceUnavailableError,
|
|
453
|
+
SenderNotReadyError,
|
|
454
|
+
DeliveryUnavailableError
|
|
455
|
+
]))();
|
|
443
456
|
const CampaignsSendTest504 = GatewayTimeoutError;
|
|
444
457
|
var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEndpoint.get("campaignsList", "/v1/campaigns", {
|
|
445
458
|
query: CampaignsListQuery,
|
|
@@ -456,9 +469,11 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
456
469
|
success: CampaignsCreate201.pipe(HttpApiSchema.status(201)),
|
|
457
470
|
error: [
|
|
458
471
|
CampaignsCreate401.pipe(HttpApiSchema.status(401)),
|
|
472
|
+
CampaignsCreate402.pipe(HttpApiSchema.status(402)),
|
|
459
473
|
CampaignsCreate403.pipe(HttpApiSchema.status(403)),
|
|
460
474
|
CampaignsCreate422.pipe(HttpApiSchema.status(422)),
|
|
461
475
|
CampaignsCreate500,
|
|
476
|
+
CampaignsCreate502.pipe(HttpApiSchema.status(502)),
|
|
462
477
|
CampaignsCreate504.pipe(HttpApiSchema.status(504))
|
|
463
478
|
]
|
|
464
479
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.create").annotate(OpenApi.Summary, "Create a campaign").annotate(OpenApi.Description, "Creates an email campaign draft for the given audience and content, returning the created campaign."), HttpApiEndpoint.get("campaignsGet", "/v1/campaigns/:id", {
|
|
@@ -516,6 +531,7 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
516
531
|
success: CampaignsScheduleRun201.pipe(HttpApiSchema.status(201)),
|
|
517
532
|
error: [
|
|
518
533
|
CampaignsScheduleRun401.pipe(HttpApiSchema.status(401)),
|
|
534
|
+
CampaignsScheduleRun402.pipe(HttpApiSchema.status(402)),
|
|
519
535
|
CampaignsScheduleRun403.pipe(HttpApiSchema.status(403)),
|
|
520
536
|
CampaignsScheduleRun404.pipe(HttpApiSchema.status(404)),
|
|
521
537
|
CampaignsScheduleRun409.pipe(HttpApiSchema.status(409)),
|
|
@@ -590,6 +606,7 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
590
606
|
success: CampaignsResumeRun200,
|
|
591
607
|
error: [
|
|
592
608
|
CampaignsResumeRun401.pipe(HttpApiSchema.status(401)),
|
|
609
|
+
CampaignsResumeRun402.pipe(HttpApiSchema.status(402)),
|
|
593
610
|
CampaignsResumeRun403.pipe(HttpApiSchema.status(403)),
|
|
594
611
|
CampaignsResumeRun404.pipe(HttpApiSchema.status(404)),
|
|
595
612
|
CampaignsResumeRun409.pipe(HttpApiSchema.status(409)),
|
|
@@ -598,7 +615,7 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
598
615
|
CampaignsResumeRun502.pipe(HttpApiSchema.status(502)),
|
|
599
616
|
CampaignsResumeRun504.pipe(HttpApiSchema.status(504))
|
|
600
617
|
]
|
|
601
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.resumeRun").annotate(OpenApi.Summary, "Resume a campaign run").annotate(OpenApi.Description, "Resumes a paused campaign run and returns the updated run."), HttpApiEndpoint.post("campaignsPreview", "/v1/campaigns/preview", {
|
|
618
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.resumeRun").annotate(OpenApi.Summary, "Resume a campaign run").annotate(OpenApi.Description, "Resumes a paused campaign run and returns the updated run. Campaigns need a paid plan: on Free this is refused with PaymentRequiredError."), HttpApiEndpoint.post("campaignsPreview", "/v1/campaigns/preview", {
|
|
602
619
|
payload: CampaignsPreviewRequestJson,
|
|
603
620
|
success: CampaignsPreview200,
|
|
604
621
|
error: [
|
|
@@ -608,6 +625,7 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
608
625
|
CampaignsPreview409.pipe(HttpApiSchema.status(409)),
|
|
609
626
|
CampaignsPreview422.pipe(HttpApiSchema.status(422)),
|
|
610
627
|
CampaignsPreview500,
|
|
628
|
+
CampaignsPreview503.pipe(HttpApiSchema.status(503)),
|
|
611
629
|
CampaignsPreview504.pipe(HttpApiSchema.status(504))
|
|
612
630
|
]
|
|
613
631
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.preview").annotate(OpenApi.Summary, "Preview a campaign email").annotate(OpenApi.Description, "Renders draft email content using the selected contact's fields and declared templateData fallbacks. Creates no campaign run or message. Omit contactId to preview the fallback data alone."), HttpApiEndpoint.post("campaignsSendTest", "/v1/campaigns/test-send", {
|
|
@@ -627,6 +645,6 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
627
645
|
CampaignsSendTest504.pipe(HttpApiSchema.status(504))
|
|
628
646
|
]
|
|
629
647
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.sendTest").annotate(OpenApi.Summary, "Send a campaign test").annotate(OpenApi.Description, "Sends one rendered draft email to the authenticated actor's email address, using optional contactId only for personalization. Creates no campaign run. Normal sending permissions, billing, and delivery policies apply.")).annotate(OpenApi.Description, "Campaign drafts and scheduled campaign runs") {};
|
|
630
|
-
export { Campaign, CampaignContent, CampaignDefinitionSummary, CampaignEmailContent, CampaignListItem, CampaignPage, CampaignPolicy, CampaignPreview, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunPage, CampaignRunReport, CampaignRunReportEngagement, CampaignRunReportSkippedReason, CampaignRunReportTopicUnsubscribes, CampaignRunSkippedReason, CampaignTestSend, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGetRunReport200, CampaignsGetRunReport401, CampaignsGetRunReport403, CampaignsGetRunReport404, CampaignsGetRunReport422, CampaignsGetRunReport500, CampaignsGetRunReport504, CampaignsGetRunReportPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsPreview200, CampaignsPreview401, CampaignsPreview403, CampaignsPreview404, CampaignsPreview409, CampaignsPreview422, CampaignsPreview500, CampaignsPreview504, CampaignsPreviewRequestJson, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunHeaders, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsSendTest200, CampaignsSendTest401, CampaignsSendTest402, CampaignsSendTest403, CampaignsSendTest404, CampaignsSendTest409, CampaignsSendTest422, CampaignsSendTest429, CampaignsSendTest500, CampaignsSendTest502, CampaignsSendTest503, CampaignsSendTest504, CampaignsSendTestRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
|
|
648
|
+
export { Campaign, CampaignContent, CampaignDefinitionSummary, CampaignEmailContent, CampaignFrom, CampaignListItem, CampaignPage, CampaignPolicy, CampaignPreview, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunPage, CampaignRunReport, CampaignRunReportEngagement, CampaignRunReportSkippedReason, CampaignRunReportTopicUnsubscribes, CampaignRunSkippedReason, CampaignTestSend, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate402, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate502, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGetRunReport200, CampaignsGetRunReport401, CampaignsGetRunReport403, CampaignsGetRunReport404, CampaignsGetRunReport422, CampaignsGetRunReport500, CampaignsGetRunReport504, CampaignsGetRunReportPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsPreview200, CampaignsPreview401, CampaignsPreview403, CampaignsPreview404, CampaignsPreview409, CampaignsPreview422, CampaignsPreview500, CampaignsPreview503, CampaignsPreview504, CampaignsPreviewRequestJson, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun402, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun402, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunHeaders, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsSendTest200, CampaignsSendTest401, CampaignsSendTest402, CampaignsSendTest403, CampaignsSendTest404, CampaignsSendTest409, CampaignsSendTest422, CampaignsSendTest429, CampaignsSendTest500, CampaignsSendTest502, CampaignsSendTest503, CampaignsSendTest504, CampaignsSendTestRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
|
|
631
649
|
|
|
632
650
|
//# sourceMappingURL=campaigns.js.map
|
|
@@ -81,7 +81,7 @@ const ContactGroupsList422 = ValidationError;
|
|
|
81
81
|
const ContactGroupsList500 = InternalError;
|
|
82
82
|
const ContactGroupsList504 = GatewayTimeoutError;
|
|
83
83
|
const ContactGroupsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
84
|
-
name: Schema.String,
|
|
84
|
+
name: Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })),
|
|
85
85
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
86
86
|
type: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
87
87
|
Schema.Literal("static"),
|
|
@@ -177,7 +177,7 @@ const ContactGroupsRemove500 = InternalError;
|
|
|
177
177
|
const ContactGroupsRemove504 = GatewayTimeoutError;
|
|
178
178
|
const ContactGroupsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactGroupId }))();
|
|
179
179
|
const ContactGroupsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
180
|
-
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
180
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
181
181
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
182
182
|
type: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
183
183
|
Schema.Literal("static"),
|
|
@@ -262,8 +262,8 @@ const ContactsList500 = InternalError;
|
|
|
262
262
|
const ContactsList504 = GatewayTimeoutError;
|
|
263
263
|
const ContactsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
264
264
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
265
|
-
name: Schema.String,
|
|
266
|
-
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
265
|
+
name: Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })),
|
|
266
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
267
267
|
avatar: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
268
268
|
identities: Schema.optionalKey(Schema.Union([Schema.Array(ContactIdentityInput), Schema.Null])),
|
|
269
269
|
profile: Schema.optionalKey(Schema.Union([ContactProfile, Schema.Null])),
|
|
@@ -308,8 +308,8 @@ const ContactsRemove502 = BillingProviderError;
|
|
|
308
308
|
const ContactsRemove504 = GatewayTimeoutError;
|
|
309
309
|
const ContactsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactId }))();
|
|
310
310
|
const ContactsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
311
|
-
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
312
|
-
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
311
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
312
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
313
313
|
avatar: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
314
314
|
profile: Schema.optionalKey(Schema.Union([ContactProfileUpdate, Schema.Null])),
|
|
315
315
|
preferences: Schema.optionalKey(Schema.Union([ContactPreferences, Schema.Null])),
|
|
@@ -518,8 +518,8 @@ const ContactsFindOrCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
518
518
|
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
519
519
|
lookup: ContactLookup,
|
|
520
520
|
create: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
521
|
-
name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
522
|
-
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
521
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
522
|
+
displayName: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
523
523
|
avatar: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
524
524
|
identities: Schema.optionalKey(Schema.Union([Schema.Array(ContactIdentityInput), Schema.Null])),
|
|
525
525
|
profile: Schema.optionalKey(Schema.Union([ContactProfile, Schema.Null])),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, ContactId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, JsonValue, MessagePage, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
3
|
+
import { ApiKeySecurityMiddleware, ContactId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, JsonValue, MailboxId, MessagePage, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
4
4
|
export type UnknownRecord = {
|
|
5
5
|
readonly [x: string]: JsonValue;
|
|
6
6
|
};
|
|
@@ -188,6 +188,7 @@ export type ConversationsListQuery = {
|
|
|
188
188
|
readonly status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null;
|
|
189
189
|
readonly channel?: "email" | null;
|
|
190
190
|
readonly contactId?: ContactId | null;
|
|
191
|
+
readonly mailboxId?: MailboxId | null;
|
|
191
192
|
readonly after?: string | null;
|
|
192
193
|
readonly before?: string | null;
|
|
193
194
|
};
|
|
@@ -197,6 +198,7 @@ export declare const ConversationsListQuery: Schema.Struct<{
|
|
|
197
198
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"waiting">, Schema.Literal<"resolved">, Schema.Literal<"escalated">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
198
199
|
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
199
200
|
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
201
|
+
readonly mailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
200
202
|
readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
201
203
|
readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
202
204
|
}>;
|
|
@@ -1995,6 +1997,7 @@ declare const ConversationsGroup_base: HttpApiGroup.HttpApiGroup<"Conversations"
|
|
|
1995
1997
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"waiting">, Schema.Literal<"resolved">, Schema.Literal<"escalated">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
1996
1998
|
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
1997
1999
|
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
2000
|
+
readonly mailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1998
2001
|
readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1999
2002
|
readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2000
2003
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|