@apollo-deploy/signal-schemas 1.0.0 → 1.1.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/.tsbuildinfo +1 -1
- package/dist/definitions/domains/domain.schema.d.ts +10 -10
- package/dist/definitions/domains/request.schema.d.ts +4 -0
- package/dist/definitions/domains/request.schema.d.ts.map +1 -1
- package/dist/definitions/domains/request.schema.js +4 -0
- package/dist/definitions/domains/request.schema.js.map +1 -1
- package/dist/definitions/domains/response.schema.d.ts +36 -36
- package/dist/definitions/emails/domain.schema.d.ts +1 -1
- package/dist/definitions/emails/request.schema.d.ts +1 -1
- package/dist/definitions/emails/response.schema.d.ts +32 -2
- package/dist/definitions/emails/response.schema.d.ts.map +1 -1
- package/dist/definitions/emails/response.schema.js +14 -0
- package/dist/definitions/emails/response.schema.js.map +1 -1
- package/dist/definitions/index.d.ts +1 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +1 -0
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/migrations/index.d.ts +3 -0
- package/dist/definitions/migrations/index.d.ts.map +1 -0
- package/dist/definitions/migrations/index.js +3 -0
- package/dist/definitions/migrations/index.js.map +1 -0
- package/dist/definitions/migrations/request.schema.d.ts +10 -0
- package/dist/definitions/migrations/request.schema.d.ts.map +1 -0
- package/dist/definitions/migrations/request.schema.js +10 -0
- package/dist/definitions/migrations/request.schema.js.map +1 -0
- package/dist/definitions/migrations/response.schema.d.ts +18 -0
- package/dist/definitions/migrations/response.schema.d.ts.map +1 -0
- package/dist/definitions/migrations/response.schema.js +18 -0
- package/dist/definitions/migrations/response.schema.js.map +1 -0
- package/dist/definitions/projects/domain.schema.d.ts +2 -2
- package/dist/definitions/projects/request.schema.d.ts +1 -1
- package/dist/definitions/projects/response.schema.d.ts +3 -3
- package/dist/definitions/signal-email/domain.schema.d.ts +2 -2
- package/dist/definitions/signal-email/response.schema.d.ts +2 -2
- package/dist/definitions/signal-projects/domain.schema.d.ts +6 -6
- package/dist/definitions/signal-projects/request.schema.d.ts +2 -2
- package/dist/definitions/signal-projects/response.schema.d.ts +20 -20
- package/dist/definitions/webhooks/domain.schema.d.ts +1 -1
- package/dist/definitions/webhooks/response.schema.d.ts +1 -1
- package/package.json +7 -3
- package/dist/definitions/deliverability/deliverability.schema.d.ts +0 -98
- package/dist/definitions/deliverability/deliverability.schema.d.ts.map +0 -1
- package/dist/definitions/deliverability/deliverability.schema.js +0 -77
- package/dist/definitions/deliverability/schemas.d.ts +0 -91
- package/dist/definitions/deliverability/schemas.d.ts.map +0 -1
- package/dist/definitions/deliverability/schemas.js +0 -67
- package/dist/definitions/domains/domains.schema.d.ts +0 -668
- package/dist/definitions/domains/domains.schema.d.ts.map +0 -1
- package/dist/definitions/domains/domains.schema.js +0 -113
- package/dist/definitions/domains/schemas.d.ts +0 -545
- package/dist/definitions/domains/schemas.d.ts.map +0 -1
- package/dist/definitions/domains/schemas.js +0 -110
- package/dist/definitions/emails/emails.schema.d.ts +0 -230
- package/dist/definitions/emails/emails.schema.d.ts.map +0 -1
- package/dist/definitions/emails/emails.schema.js +0 -176
- package/dist/definitions/emails/schemas.d.ts +0 -284
- package/dist/definitions/emails/schemas.d.ts.map +0 -1
- package/dist/definitions/emails/schemas.js +0 -227
- package/dist/definitions/health/health.schema.d.ts +0 -27
- package/dist/definitions/health/health.schema.d.ts.map +0 -1
- package/dist/definitions/health/health.schema.js +0 -23
- package/dist/definitions/health/schemas.d.ts +0 -30
- package/dist/definitions/health/schemas.d.ts.map +0 -1
- package/dist/definitions/health/schemas.js +0 -23
- package/dist/definitions/projects/projects.schema.d.ts +0 -8
- package/dist/definitions/projects/projects.schema.d.ts.map +0 -1
- package/dist/definitions/projects/projects.schema.js +0 -23
- package/dist/definitions/projects/schemas.d.ts +0 -114
- package/dist/definitions/projects/schemas.d.ts.map +0 -1
- package/dist/definitions/projects/schemas.js +0 -87
- package/dist/definitions/suppressions/schemas.d.ts +0 -90
- package/dist/definitions/suppressions/schemas.d.ts.map +0 -1
- package/dist/definitions/suppressions/schemas.js +0 -68
- package/dist/definitions/suppressions/suppressions.schema.d.ts +0 -79
- package/dist/definitions/suppressions/suppressions.schema.d.ts.map +0 -1
- package/dist/definitions/suppressions/suppressions.schema.js +0 -63
- package/dist/definitions/templates/schemas.d.ts +0 -113
- package/dist/definitions/templates/schemas.d.ts.map +0 -1
- package/dist/definitions/templates/schemas.js +0 -80
- package/dist/definitions/usage/schemas.d.ts +0 -156
- package/dist/definitions/usage/schemas.d.ts.map +0 -1
- package/dist/definitions/usage/schemas.js +0 -83
- package/dist/definitions/usage/usage.schema.d.ts +0 -140
- package/dist/definitions/usage/usage.schema.d.ts.map +0 -1
- package/dist/definitions/usage/usage.schema.js +0 -77
- package/dist/definitions/webhooks/schemas.d.ts +0 -145
- package/dist/definitions/webhooks/schemas.d.ts.map +0 -1
- package/dist/definitions/webhooks/schemas.js +0 -97
- package/dist/definitions/webhooks/webhooks.schema.d.ts +0 -152
- package/dist/definitions/webhooks/webhooks.schema.d.ts.map +0 -1
- package/dist/definitions/webhooks/webhooks.schema.js +0 -96
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export declare const DomainStatusSchema: z.ZodEnum<{
|
|
7
|
-
pending: "pending";
|
|
8
|
-
verified: "verified";
|
|
9
7
|
failed: "failed";
|
|
10
8
|
deleted: "deleted";
|
|
9
|
+
pending: "pending";
|
|
10
|
+
verified: "verified";
|
|
11
11
|
degraded: "degraded";
|
|
12
12
|
}>;
|
|
13
13
|
export declare const DomainSubStatusSchema: z.ZodEnum<{
|
|
14
14
|
unknown: "unknown";
|
|
15
|
+
failed: "failed";
|
|
15
16
|
pending: "pending";
|
|
16
17
|
verified: "verified";
|
|
17
|
-
failed: "failed";
|
|
18
18
|
missing: "missing";
|
|
19
19
|
monitor: "monitor";
|
|
20
20
|
quarantine: "quarantine";
|
|
@@ -22,9 +22,9 @@ export declare const DomainSubStatusSchema: z.ZodEnum<{
|
|
|
22
22
|
}>;
|
|
23
23
|
export declare const BimiStatusSchema: z.ZodEnum<{
|
|
24
24
|
unknown: "unknown";
|
|
25
|
+
failed: "failed";
|
|
25
26
|
pending: "pending";
|
|
26
27
|
verified: "verified";
|
|
27
|
-
failed: "failed";
|
|
28
28
|
not_applicable: "not_applicable";
|
|
29
29
|
}>;
|
|
30
30
|
export declare const VerificationRecordSchema: z.ZodObject<{
|
|
@@ -35,9 +35,9 @@ export declare const VerificationRecordSchema: z.ZodObject<{
|
|
|
35
35
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
36
36
|
status: z.ZodOptional<z.ZodEnum<{
|
|
37
37
|
unknown: "unknown";
|
|
38
|
+
failed: "failed";
|
|
38
39
|
pending: "pending";
|
|
39
40
|
verified: "verified";
|
|
40
|
-
failed: "failed";
|
|
41
41
|
missing: "missing";
|
|
42
42
|
monitor: "monitor";
|
|
43
43
|
quarantine: "quarantine";
|
|
@@ -54,9 +54,9 @@ export declare const VerificationRecordsSchema: z.ZodObject<{
|
|
|
54
54
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
55
55
|
status: z.ZodOptional<z.ZodEnum<{
|
|
56
56
|
unknown: "unknown";
|
|
57
|
+
failed: "failed";
|
|
57
58
|
pending: "pending";
|
|
58
59
|
verified: "verified";
|
|
59
|
-
failed: "failed";
|
|
60
60
|
missing: "missing";
|
|
61
61
|
monitor: "monitor";
|
|
62
62
|
quarantine: "quarantine";
|
|
@@ -72,9 +72,9 @@ export declare const VerificationRecordsSchema: z.ZodObject<{
|
|
|
72
72
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
73
73
|
status: z.ZodOptional<z.ZodEnum<{
|
|
74
74
|
unknown: "unknown";
|
|
75
|
+
failed: "failed";
|
|
75
76
|
pending: "pending";
|
|
76
77
|
verified: "verified";
|
|
77
|
-
failed: "failed";
|
|
78
78
|
missing: "missing";
|
|
79
79
|
monitor: "monitor";
|
|
80
80
|
quarantine: "quarantine";
|
|
@@ -90,9 +90,9 @@ export declare const VerificationRecordsSchema: z.ZodObject<{
|
|
|
90
90
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
91
91
|
status: z.ZodOptional<z.ZodEnum<{
|
|
92
92
|
unknown: "unknown";
|
|
93
|
+
failed: "failed";
|
|
93
94
|
pending: "pending";
|
|
94
95
|
verified: "verified";
|
|
95
|
-
failed: "failed";
|
|
96
96
|
missing: "missing";
|
|
97
97
|
monitor: "monitor";
|
|
98
98
|
quarantine: "quarantine";
|
|
@@ -108,9 +108,9 @@ export declare const VerificationRecordsSchema: z.ZodObject<{
|
|
|
108
108
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
109
109
|
status: z.ZodOptional<z.ZodEnum<{
|
|
110
110
|
unknown: "unknown";
|
|
111
|
+
failed: "failed";
|
|
111
112
|
pending: "pending";
|
|
112
113
|
verified: "verified";
|
|
113
|
-
failed: "failed";
|
|
114
114
|
missing: "missing";
|
|
115
115
|
monitor: "monitor";
|
|
116
116
|
quarantine: "quarantine";
|
|
@@ -126,9 +126,9 @@ export declare const VerificationRecordsSchema: z.ZodObject<{
|
|
|
126
126
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
127
127
|
status: z.ZodOptional<z.ZodEnum<{
|
|
128
128
|
unknown: "unknown";
|
|
129
|
+
failed: "failed";
|
|
129
130
|
pending: "pending";
|
|
130
131
|
verified: "verified";
|
|
131
|
-
failed: "failed";
|
|
132
132
|
missing: "missing";
|
|
133
133
|
monitor: "monitor";
|
|
134
134
|
quarantine: "quarantine";
|
|
@@ -20,7 +20,11 @@ export declare const ListDomainsQuerySchema: z.ZodObject<{
|
|
|
20
20
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
21
21
|
cursor: z.ZodOptional<z.ZodString>;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
|
+
export declare const BimiUpdateBodySchema: z.ZodObject<{
|
|
24
|
+
logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
23
26
|
export type RegisterDomainBody = z.infer<typeof RegisterDomainBodySchema>;
|
|
24
27
|
export type DomainIdParam = z.infer<typeof DomainIdParamSchema>;
|
|
25
28
|
export type ListDomainsQuery = z.infer<typeof ListDomainsQuerySchema>;
|
|
29
|
+
export type BimiUpdateBody = z.infer<typeof BimiUpdateBodySchema>;
|
|
26
30
|
//# sourceMappingURL=request.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/domains/request.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"request.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/domains/request.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -15,7 +15,11 @@ export const ListDomainsQuerySchema = z.object({
|
|
|
15
15
|
limit: z.coerce.number().int().min(1).max(100).default(25),
|
|
16
16
|
cursor: z.string().optional(),
|
|
17
17
|
});
|
|
18
|
+
export const BimiUpdateBodySchema = z.object({
|
|
19
|
+
logoUrl: z.string().url().nullable().optional(),
|
|
20
|
+
});
|
|
18
21
|
z.globalRegistry.add(RegisterDomainBodySchema, { id: 'RegisterDomainBody' });
|
|
19
22
|
z.globalRegistry.add(DomainIdParamSchema, { id: 'DomainIdParam' });
|
|
20
23
|
z.globalRegistry.add(ListDomainsQuerySchema, { id: 'ListDomainsQuery' });
|
|
24
|
+
z.globalRegistry.add(BimiUpdateBodySchema, { id: 'BimiUpdateBody' });
|
|
21
25
|
//# sourceMappingURL=request.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.schema.js","sourceRoot":"","sources":["../../../src/definitions/domains/request.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAC,YAAY,EAAC,WAAW,EAAC,gBAAgB,CAAC,CAAC;CACxE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"request.schema.js","sourceRoot":"","sources":["../../../src/definitions/domains/request.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAC,YAAY,EAAC,WAAW,EAAC,gBAAgB,CAAC,CAAC;CACxE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAOH,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC;AAC7E,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;AACnE,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,CAAC,CAAC;AACzE,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC","sourcesContent":["/**\n * Apollo Signal — Domains Request Schemas\n * Subpath: @apollo-deploy/signal-schemas/domains\n */\nimport { z } from 'zod';\n\nexport const RegisterDomainBodySchema = z.object({\n domain: z.string().min(1).max(253),\n region: z.enum(['us-east-1','af-south-1','eu-west-1','ap-southeast-1']),\n});\n\nexport const DomainIdParamSchema = z.object({\n projectId: z.string().min(1),\n domainId: z.string().min(1),\n});\n\nexport const ListDomainsQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(100).default(25),\n cursor: z.string().optional(),\n});\n\nexport const BimiUpdateBodySchema = z.object({\n logoUrl: z.string().url().nullable().optional(),\n});\n\nexport type RegisterDomainBody = z.infer<typeof RegisterDomainBodySchema>;\nexport type DomainIdParam = z.infer<typeof DomainIdParamSchema>;\nexport type ListDomainsQuery = z.infer<typeof ListDomainsQuerySchema>;\nexport type BimiUpdateBody = z.infer<typeof BimiUpdateBodySchema>;\n\nz.globalRegistry.add(RegisterDomainBodySchema, { id: 'RegisterDomainBody' });\nz.globalRegistry.add(DomainIdParamSchema, { id: 'DomainIdParam' });\nz.globalRegistry.add(ListDomainsQuerySchema, { id: 'ListDomainsQuery' });\nz.globalRegistry.add(BimiUpdateBodySchema, { id: 'BimiUpdateBody' });\n"]}
|
|
@@ -9,17 +9,17 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
9
9
|
domain: z.ZodString;
|
|
10
10
|
region: z.ZodString;
|
|
11
11
|
status: z.ZodEnum<{
|
|
12
|
-
pending: "pending";
|
|
13
|
-
verified: "verified";
|
|
14
12
|
failed: "failed";
|
|
15
13
|
deleted: "deleted";
|
|
14
|
+
pending: "pending";
|
|
15
|
+
verified: "verified";
|
|
16
16
|
degraded: "degraded";
|
|
17
17
|
}>;
|
|
18
18
|
dkimStatus: z.ZodEnum<{
|
|
19
19
|
unknown: "unknown";
|
|
20
|
+
failed: "failed";
|
|
20
21
|
pending: "pending";
|
|
21
22
|
verified: "verified";
|
|
22
|
-
failed: "failed";
|
|
23
23
|
missing: "missing";
|
|
24
24
|
monitor: "monitor";
|
|
25
25
|
quarantine: "quarantine";
|
|
@@ -27,9 +27,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
27
27
|
}>;
|
|
28
28
|
spfStatus: z.ZodEnum<{
|
|
29
29
|
unknown: "unknown";
|
|
30
|
+
failed: "failed";
|
|
30
31
|
pending: "pending";
|
|
31
32
|
verified: "verified";
|
|
32
|
-
failed: "failed";
|
|
33
33
|
missing: "missing";
|
|
34
34
|
monitor: "monitor";
|
|
35
35
|
quarantine: "quarantine";
|
|
@@ -37,9 +37,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
37
37
|
}>;
|
|
38
38
|
dmarcStatus: z.ZodEnum<{
|
|
39
39
|
unknown: "unknown";
|
|
40
|
+
failed: "failed";
|
|
40
41
|
pending: "pending";
|
|
41
42
|
verified: "verified";
|
|
42
|
-
failed: "failed";
|
|
43
43
|
missing: "missing";
|
|
44
44
|
monitor: "monitor";
|
|
45
45
|
quarantine: "quarantine";
|
|
@@ -47,9 +47,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
47
47
|
}>;
|
|
48
48
|
mailFromStatus: z.ZodEnum<{
|
|
49
49
|
unknown: "unknown";
|
|
50
|
+
failed: "failed";
|
|
50
51
|
pending: "pending";
|
|
51
52
|
verified: "verified";
|
|
52
|
-
failed: "failed";
|
|
53
53
|
missing: "missing";
|
|
54
54
|
monitor: "monitor";
|
|
55
55
|
quarantine: "quarantine";
|
|
@@ -65,9 +65,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
65
65
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
66
66
|
status: z.ZodOptional<z.ZodEnum<{
|
|
67
67
|
unknown: "unknown";
|
|
68
|
+
failed: "failed";
|
|
68
69
|
pending: "pending";
|
|
69
70
|
verified: "verified";
|
|
70
|
-
failed: "failed";
|
|
71
71
|
missing: "missing";
|
|
72
72
|
monitor: "monitor";
|
|
73
73
|
quarantine: "quarantine";
|
|
@@ -83,9 +83,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
83
83
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
84
84
|
status: z.ZodOptional<z.ZodEnum<{
|
|
85
85
|
unknown: "unknown";
|
|
86
|
+
failed: "failed";
|
|
86
87
|
pending: "pending";
|
|
87
88
|
verified: "verified";
|
|
88
|
-
failed: "failed";
|
|
89
89
|
missing: "missing";
|
|
90
90
|
monitor: "monitor";
|
|
91
91
|
quarantine: "quarantine";
|
|
@@ -101,9 +101,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
101
101
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
102
102
|
status: z.ZodOptional<z.ZodEnum<{
|
|
103
103
|
unknown: "unknown";
|
|
104
|
+
failed: "failed";
|
|
104
105
|
pending: "pending";
|
|
105
106
|
verified: "verified";
|
|
106
|
-
failed: "failed";
|
|
107
107
|
missing: "missing";
|
|
108
108
|
monitor: "monitor";
|
|
109
109
|
quarantine: "quarantine";
|
|
@@ -119,9 +119,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
119
119
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
120
120
|
status: z.ZodOptional<z.ZodEnum<{
|
|
121
121
|
unknown: "unknown";
|
|
122
|
+
failed: "failed";
|
|
122
123
|
pending: "pending";
|
|
123
124
|
verified: "verified";
|
|
124
|
-
failed: "failed";
|
|
125
125
|
missing: "missing";
|
|
126
126
|
monitor: "monitor";
|
|
127
127
|
quarantine: "quarantine";
|
|
@@ -137,9 +137,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
137
137
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
138
138
|
status: z.ZodOptional<z.ZodEnum<{
|
|
139
139
|
unknown: "unknown";
|
|
140
|
+
failed: "failed";
|
|
140
141
|
pending: "pending";
|
|
141
142
|
verified: "verified";
|
|
142
|
-
failed: "failed";
|
|
143
143
|
missing: "missing";
|
|
144
144
|
monitor: "monitor";
|
|
145
145
|
quarantine: "quarantine";
|
|
@@ -150,9 +150,9 @@ export declare const DomainResponseSchema: z.ZodObject<{
|
|
|
150
150
|
}, z.core.$strip>;
|
|
151
151
|
bimiStatus: z.ZodEnum<{
|
|
152
152
|
unknown: "unknown";
|
|
153
|
+
failed: "failed";
|
|
153
154
|
pending: "pending";
|
|
154
155
|
verified: "verified";
|
|
155
|
-
failed: "failed";
|
|
156
156
|
not_applicable: "not_applicable";
|
|
157
157
|
}>;
|
|
158
158
|
bimiLogoUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -166,17 +166,17 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
166
166
|
domain: z.ZodString;
|
|
167
167
|
region: z.ZodString;
|
|
168
168
|
status: z.ZodEnum<{
|
|
169
|
-
pending: "pending";
|
|
170
|
-
verified: "verified";
|
|
171
169
|
failed: "failed";
|
|
172
170
|
deleted: "deleted";
|
|
171
|
+
pending: "pending";
|
|
172
|
+
verified: "verified";
|
|
173
173
|
degraded: "degraded";
|
|
174
174
|
}>;
|
|
175
175
|
dkimStatus: z.ZodEnum<{
|
|
176
176
|
unknown: "unknown";
|
|
177
|
+
failed: "failed";
|
|
177
178
|
pending: "pending";
|
|
178
179
|
verified: "verified";
|
|
179
|
-
failed: "failed";
|
|
180
180
|
missing: "missing";
|
|
181
181
|
monitor: "monitor";
|
|
182
182
|
quarantine: "quarantine";
|
|
@@ -184,9 +184,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
184
184
|
}>;
|
|
185
185
|
spfStatus: z.ZodEnum<{
|
|
186
186
|
unknown: "unknown";
|
|
187
|
+
failed: "failed";
|
|
187
188
|
pending: "pending";
|
|
188
189
|
verified: "verified";
|
|
189
|
-
failed: "failed";
|
|
190
190
|
missing: "missing";
|
|
191
191
|
monitor: "monitor";
|
|
192
192
|
quarantine: "quarantine";
|
|
@@ -194,9 +194,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
194
194
|
}>;
|
|
195
195
|
dmarcStatus: z.ZodEnum<{
|
|
196
196
|
unknown: "unknown";
|
|
197
|
+
failed: "failed";
|
|
197
198
|
pending: "pending";
|
|
198
199
|
verified: "verified";
|
|
199
|
-
failed: "failed";
|
|
200
200
|
missing: "missing";
|
|
201
201
|
monitor: "monitor";
|
|
202
202
|
quarantine: "quarantine";
|
|
@@ -204,9 +204,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
204
204
|
}>;
|
|
205
205
|
mailFromStatus: z.ZodEnum<{
|
|
206
206
|
unknown: "unknown";
|
|
207
|
+
failed: "failed";
|
|
207
208
|
pending: "pending";
|
|
208
209
|
verified: "verified";
|
|
209
|
-
failed: "failed";
|
|
210
210
|
missing: "missing";
|
|
211
211
|
monitor: "monitor";
|
|
212
212
|
quarantine: "quarantine";
|
|
@@ -222,9 +222,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
222
222
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
223
223
|
status: z.ZodOptional<z.ZodEnum<{
|
|
224
224
|
unknown: "unknown";
|
|
225
|
+
failed: "failed";
|
|
225
226
|
pending: "pending";
|
|
226
227
|
verified: "verified";
|
|
227
|
-
failed: "failed";
|
|
228
228
|
missing: "missing";
|
|
229
229
|
monitor: "monitor";
|
|
230
230
|
quarantine: "quarantine";
|
|
@@ -240,9 +240,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
240
240
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
241
241
|
status: z.ZodOptional<z.ZodEnum<{
|
|
242
242
|
unknown: "unknown";
|
|
243
|
+
failed: "failed";
|
|
243
244
|
pending: "pending";
|
|
244
245
|
verified: "verified";
|
|
245
|
-
failed: "failed";
|
|
246
246
|
missing: "missing";
|
|
247
247
|
monitor: "monitor";
|
|
248
248
|
quarantine: "quarantine";
|
|
@@ -258,9 +258,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
258
258
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
259
259
|
status: z.ZodOptional<z.ZodEnum<{
|
|
260
260
|
unknown: "unknown";
|
|
261
|
+
failed: "failed";
|
|
261
262
|
pending: "pending";
|
|
262
263
|
verified: "verified";
|
|
263
|
-
failed: "failed";
|
|
264
264
|
missing: "missing";
|
|
265
265
|
monitor: "monitor";
|
|
266
266
|
quarantine: "quarantine";
|
|
@@ -276,9 +276,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
276
276
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
277
277
|
status: z.ZodOptional<z.ZodEnum<{
|
|
278
278
|
unknown: "unknown";
|
|
279
|
+
failed: "failed";
|
|
279
280
|
pending: "pending";
|
|
280
281
|
verified: "verified";
|
|
281
|
-
failed: "failed";
|
|
282
282
|
missing: "missing";
|
|
283
283
|
monitor: "monitor";
|
|
284
284
|
quarantine: "quarantine";
|
|
@@ -294,9 +294,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
294
294
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
295
295
|
status: z.ZodOptional<z.ZodEnum<{
|
|
296
296
|
unknown: "unknown";
|
|
297
|
+
failed: "failed";
|
|
297
298
|
pending: "pending";
|
|
298
299
|
verified: "verified";
|
|
299
|
-
failed: "failed";
|
|
300
300
|
missing: "missing";
|
|
301
301
|
monitor: "monitor";
|
|
302
302
|
quarantine: "quarantine";
|
|
@@ -307,9 +307,9 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
307
307
|
}, z.core.$strip>;
|
|
308
308
|
bimiStatus: z.ZodEnum<{
|
|
309
309
|
unknown: "unknown";
|
|
310
|
+
failed: "failed";
|
|
310
311
|
pending: "pending";
|
|
311
312
|
verified: "verified";
|
|
312
|
-
failed: "failed";
|
|
313
313
|
not_applicable: "not_applicable";
|
|
314
314
|
}>;
|
|
315
315
|
bimiLogoUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -332,17 +332,17 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
332
332
|
domain: z.ZodString;
|
|
333
333
|
region: z.ZodString;
|
|
334
334
|
status: z.ZodEnum<{
|
|
335
|
-
pending: "pending";
|
|
336
|
-
verified: "verified";
|
|
337
335
|
failed: "failed";
|
|
338
336
|
deleted: "deleted";
|
|
337
|
+
pending: "pending";
|
|
338
|
+
verified: "verified";
|
|
339
339
|
degraded: "degraded";
|
|
340
340
|
}>;
|
|
341
341
|
dkimStatus: z.ZodEnum<{
|
|
342
342
|
unknown: "unknown";
|
|
343
|
+
failed: "failed";
|
|
343
344
|
pending: "pending";
|
|
344
345
|
verified: "verified";
|
|
345
|
-
failed: "failed";
|
|
346
346
|
missing: "missing";
|
|
347
347
|
monitor: "monitor";
|
|
348
348
|
quarantine: "quarantine";
|
|
@@ -350,9 +350,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
350
350
|
}>;
|
|
351
351
|
spfStatus: z.ZodEnum<{
|
|
352
352
|
unknown: "unknown";
|
|
353
|
+
failed: "failed";
|
|
353
354
|
pending: "pending";
|
|
354
355
|
verified: "verified";
|
|
355
|
-
failed: "failed";
|
|
356
356
|
missing: "missing";
|
|
357
357
|
monitor: "monitor";
|
|
358
358
|
quarantine: "quarantine";
|
|
@@ -360,9 +360,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
360
360
|
}>;
|
|
361
361
|
dmarcStatus: z.ZodEnum<{
|
|
362
362
|
unknown: "unknown";
|
|
363
|
+
failed: "failed";
|
|
363
364
|
pending: "pending";
|
|
364
365
|
verified: "verified";
|
|
365
|
-
failed: "failed";
|
|
366
366
|
missing: "missing";
|
|
367
367
|
monitor: "monitor";
|
|
368
368
|
quarantine: "quarantine";
|
|
@@ -370,9 +370,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
370
370
|
}>;
|
|
371
371
|
mailFromStatus: z.ZodEnum<{
|
|
372
372
|
unknown: "unknown";
|
|
373
|
+
failed: "failed";
|
|
373
374
|
pending: "pending";
|
|
374
375
|
verified: "verified";
|
|
375
|
-
failed: "failed";
|
|
376
376
|
missing: "missing";
|
|
377
377
|
monitor: "monitor";
|
|
378
378
|
quarantine: "quarantine";
|
|
@@ -388,9 +388,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
388
388
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
389
389
|
status: z.ZodOptional<z.ZodEnum<{
|
|
390
390
|
unknown: "unknown";
|
|
391
|
+
failed: "failed";
|
|
391
392
|
pending: "pending";
|
|
392
393
|
verified: "verified";
|
|
393
|
-
failed: "failed";
|
|
394
394
|
missing: "missing";
|
|
395
395
|
monitor: "monitor";
|
|
396
396
|
quarantine: "quarantine";
|
|
@@ -406,9 +406,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
406
406
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
407
407
|
status: z.ZodOptional<z.ZodEnum<{
|
|
408
408
|
unknown: "unknown";
|
|
409
|
+
failed: "failed";
|
|
409
410
|
pending: "pending";
|
|
410
411
|
verified: "verified";
|
|
411
|
-
failed: "failed";
|
|
412
412
|
missing: "missing";
|
|
413
413
|
monitor: "monitor";
|
|
414
414
|
quarantine: "quarantine";
|
|
@@ -424,9 +424,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
424
424
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
425
425
|
status: z.ZodOptional<z.ZodEnum<{
|
|
426
426
|
unknown: "unknown";
|
|
427
|
+
failed: "failed";
|
|
427
428
|
pending: "pending";
|
|
428
429
|
verified: "verified";
|
|
429
|
-
failed: "failed";
|
|
430
430
|
missing: "missing";
|
|
431
431
|
monitor: "monitor";
|
|
432
432
|
quarantine: "quarantine";
|
|
@@ -442,9 +442,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
442
442
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
443
443
|
status: z.ZodOptional<z.ZodEnum<{
|
|
444
444
|
unknown: "unknown";
|
|
445
|
+
failed: "failed";
|
|
445
446
|
pending: "pending";
|
|
446
447
|
verified: "verified";
|
|
447
|
-
failed: "failed";
|
|
448
448
|
missing: "missing";
|
|
449
449
|
monitor: "monitor";
|
|
450
450
|
quarantine: "quarantine";
|
|
@@ -460,9 +460,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
460
460
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
461
461
|
status: z.ZodOptional<z.ZodEnum<{
|
|
462
462
|
unknown: "unknown";
|
|
463
|
+
failed: "failed";
|
|
463
464
|
pending: "pending";
|
|
464
465
|
verified: "verified";
|
|
465
|
-
failed: "failed";
|
|
466
466
|
missing: "missing";
|
|
467
467
|
monitor: "monitor";
|
|
468
468
|
quarantine: "quarantine";
|
|
@@ -473,9 +473,9 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
473
473
|
}, z.core.$strip>;
|
|
474
474
|
bimiStatus: z.ZodEnum<{
|
|
475
475
|
unknown: "unknown";
|
|
476
|
+
failed: "failed";
|
|
476
477
|
pending: "pending";
|
|
477
478
|
verified: "verified";
|
|
478
|
-
failed: "failed";
|
|
479
479
|
not_applicable: "not_applicable";
|
|
480
480
|
}>;
|
|
481
481
|
bimiLogoUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export declare const EmailStatusSchema: z.ZodEnum<{
|
|
7
|
-
failed: "failed";
|
|
8
7
|
queued: "queued";
|
|
9
8
|
scheduled: "scheduled";
|
|
10
9
|
cancelled: "cancelled";
|
|
@@ -12,6 +11,7 @@ export declare const EmailStatusSchema: z.ZodEnum<{
|
|
|
12
11
|
delivered: "delivered";
|
|
13
12
|
bounced: "bounced";
|
|
14
13
|
complained: "complained";
|
|
14
|
+
failed: "failed";
|
|
15
15
|
rejected: "rejected";
|
|
16
16
|
suppressed: "suppressed";
|
|
17
17
|
test: "test";
|
|
@@ -31,7 +31,6 @@ export declare const ListEmailsQuerySchema: z.ZodObject<{
|
|
|
31
31
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
32
32
|
cursor: z.ZodOptional<z.ZodString>;
|
|
33
33
|
status: z.ZodOptional<z.ZodEnum<{
|
|
34
|
-
failed: "failed";
|
|
35
34
|
queued: "queued";
|
|
36
35
|
scheduled: "scheduled";
|
|
37
36
|
cancelled: "cancelled";
|
|
@@ -39,6 +38,7 @@ export declare const ListEmailsQuerySchema: z.ZodObject<{
|
|
|
39
38
|
delivered: "delivered";
|
|
40
39
|
bounced: "bounced";
|
|
41
40
|
complained: "complained";
|
|
41
|
+
failed: "failed";
|
|
42
42
|
rejected: "rejected";
|
|
43
43
|
suppressed: "suppressed";
|
|
44
44
|
test: "test";
|
|
@@ -44,7 +44,6 @@ export declare const EmailResponseSchema: z.ZodObject<{
|
|
|
44
44
|
replyTo: z.ZodNullable<z.ZodString>;
|
|
45
45
|
subject: z.ZodString;
|
|
46
46
|
status: z.ZodEnum<{
|
|
47
|
-
failed: "failed";
|
|
48
47
|
queued: "queued";
|
|
49
48
|
scheduled: "scheduled";
|
|
50
49
|
cancelled: "cancelled";
|
|
@@ -52,6 +51,7 @@ export declare const EmailResponseSchema: z.ZodObject<{
|
|
|
52
51
|
delivered: "delivered";
|
|
53
52
|
bounced: "bounced";
|
|
54
53
|
complained: "complained";
|
|
54
|
+
failed: "failed";
|
|
55
55
|
rejected: "rejected";
|
|
56
56
|
suppressed: "suppressed";
|
|
57
57
|
test: "test";
|
|
@@ -80,7 +80,6 @@ export declare const EmailListResponseSchema: z.ZodObject<{
|
|
|
80
80
|
replyTo: z.ZodNullable<z.ZodString>;
|
|
81
81
|
subject: z.ZodString;
|
|
82
82
|
status: z.ZodEnum<{
|
|
83
|
-
failed: "failed";
|
|
84
83
|
queued: "queued";
|
|
85
84
|
scheduled: "scheduled";
|
|
86
85
|
cancelled: "cancelled";
|
|
@@ -88,6 +87,7 @@ export declare const EmailListResponseSchema: z.ZodObject<{
|
|
|
88
87
|
delivered: "delivered";
|
|
89
88
|
bounced: "bounced";
|
|
90
89
|
complained: "complained";
|
|
90
|
+
failed: "failed";
|
|
91
91
|
rejected: "rejected";
|
|
92
92
|
suppressed: "suppressed";
|
|
93
93
|
test: "test";
|
|
@@ -101,6 +101,34 @@ export declare const EmailListResponseSchema: z.ZodObject<{
|
|
|
101
101
|
}, z.core.$strip>>;
|
|
102
102
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
103
103
|
}, z.core.$strip>;
|
|
104
|
+
export declare const BatchSendEmailItemResultSchema: z.ZodObject<{
|
|
105
|
+
index: z.ZodNumber;
|
|
106
|
+
id: z.ZodOptional<z.ZodString>;
|
|
107
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
scheduled: "scheduled";
|
|
110
|
+
sent: "sent";
|
|
111
|
+
test: "test";
|
|
112
|
+
}>>;
|
|
113
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
114
|
+
scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
+
error: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const BatchSendEmailResponseSchema: z.ZodObject<{
|
|
118
|
+
results: z.ZodArray<z.ZodObject<{
|
|
119
|
+
index: z.ZodNumber;
|
|
120
|
+
id: z.ZodOptional<z.ZodString>;
|
|
121
|
+
messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
scheduled: "scheduled";
|
|
124
|
+
sent: "sent";
|
|
125
|
+
test: "test";
|
|
126
|
+
}>>;
|
|
127
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
128
|
+
scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
error: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
}, z.core.$strip>;
|
|
104
132
|
export declare const EmailEventResponseSchema: z.ZodObject<{
|
|
105
133
|
id: z.ZodString;
|
|
106
134
|
type: z.ZodString;
|
|
@@ -135,6 +163,8 @@ export type StreamTokenResponse = z.infer<typeof StreamTokenResponseSchema>;
|
|
|
135
163
|
export type EmailSuppressionImportResponse = z.infer<typeof EmailSuppressionImportResponseSchema>;
|
|
136
164
|
export type EmailResponse = z.infer<typeof EmailResponseSchema>;
|
|
137
165
|
export type EmailListResponse = z.infer<typeof EmailListResponseSchema>;
|
|
166
|
+
export type BatchSendEmailItemResult = z.infer<typeof BatchSendEmailItemResultSchema>;
|
|
167
|
+
export type BatchSendEmailResponse = z.infer<typeof BatchSendEmailResponseSchema>;
|
|
138
168
|
export type EmailEventResponse = z.infer<typeof EmailEventResponseSchema>;
|
|
139
169
|
export type EmailEventsListResponse = z.infer<typeof EmailEventsListResponseSchema>;
|
|
140
170
|
export type PreSendValidationResponse = z.infer<typeof PreSendValidationResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/emails/response.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAKlC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;iBAA2C,CAAC;AAClF,eAAO,MAAM,iCAAiC;;iBAA4C,CAAC;AAC3F,eAAO,MAAM,yBAAyB;;;iBAAkE,CAAC;AACzG,eAAO,MAAM,oCAAoC;;;iBAAsE,CAAC;AAExH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/emails/response.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAKlC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;iBAA2C,CAAC;AAClF,eAAO,MAAM,iCAAiC;;iBAA4C,CAAC;AAC3F,eAAO,MAAM,yBAAyB;;;iBAAkE,CAAC;AACzG,eAAO,MAAM,oCAAoC;;;iBAAsE,CAAC;AAExH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8C,CAAC;AAGnF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;iBAQzC,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;iBAEvC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;iBAInC,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;iBAAmD,CAAC;AAC9F,eAAO,MAAM,+BAA+B;;;;;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAClG,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -31,6 +31,19 @@ export const EmailResponseSchema = z.object({
|
|
|
31
31
|
createdAt: IsoDateStringSchema, sentAt: NullableIsoDateStringSchema, updatedAt: IsoDateStringSchema,
|
|
32
32
|
});
|
|
33
33
|
export const EmailListResponseSchema = createCursorListSchema(EmailResponseSchema);
|
|
34
|
+
// Per-item result for POST /v1/emails/batch (partial success allowed).
|
|
35
|
+
export const BatchSendEmailItemResultSchema = z.object({
|
|
36
|
+
index: z.number().int(),
|
|
37
|
+
id: z.string().optional(),
|
|
38
|
+
messageId: z.string().nullable().optional(),
|
|
39
|
+
status: z.enum(['sent', 'test', 'scheduled']).optional(),
|
|
40
|
+
createdAt: IsoDateStringSchema.optional(),
|
|
41
|
+
scheduledAt: NullableIsoDateStringSchema.optional(),
|
|
42
|
+
error: z.string().optional(),
|
|
43
|
+
});
|
|
44
|
+
export const BatchSendEmailResponseSchema = z.object({
|
|
45
|
+
results: z.array(BatchSendEmailItemResultSchema),
|
|
46
|
+
});
|
|
34
47
|
export const EmailEventResponseSchema = z.object({
|
|
35
48
|
id: z.string(), type: z.string(), providerEventId: z.string().nullable(),
|
|
36
49
|
payload: z.record(z.string(), z.string()),
|
|
@@ -48,6 +61,7 @@ z.globalRegistry.add(StreamTokenResponseSchema, { id: 'StreamTokenResponse' });
|
|
|
48
61
|
z.globalRegistry.add(EmailSuppressionImportResponseSchema, { id: 'EmailSuppressionImportResponse' });
|
|
49
62
|
z.globalRegistry.add(EmailResponseSchema, { id: 'EmailResponse' });
|
|
50
63
|
z.globalRegistry.add(EmailListResponseSchema, { id: 'EmailListResponse' });
|
|
64
|
+
z.globalRegistry.add(BatchSendEmailResponseSchema, { id: 'BatchSendEmailResponse' });
|
|
51
65
|
z.globalRegistry.add(EmailEventResponseSchema, { id: 'EmailEventResponse' });
|
|
52
66
|
z.globalRegistry.add(EmailEventsListResponseSchema, { id: 'EmailEventsListResponse' });
|
|
53
67
|
z.globalRegistry.add(PreSendValidationResponseSchema, { id: 'PreSendValidationResponse' });
|