@apollo-deploy/signal-schemas 1.0.0 → 1.1.1
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/common.d.ts +18 -5
- package/dist/definitions/common.d.ts.map +1 -1
- package/dist/definitions/common.js +17 -5
- package/dist/definitions/common.js.map +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 +42 -38
- package/dist/definitions/domains/response.schema.d.ts.map +1 -1
- package/dist/definitions/domains/response.schema.js +2 -2
- package/dist/definitions/domains/response.schema.js.map +1 -1
- 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 +44 -6
- package/dist/definitions/emails/response.schema.d.ts.map +1 -1
- package/dist/definitions/emails/response.schema.js +17 -3
- 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 +9 -5
- package/dist/definitions/projects/response.schema.d.ts.map +1 -1
- package/dist/definitions/projects/response.schema.js +2 -2
- package/dist/definitions/projects/response.schema.js.map +1 -1
- 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/suppressions/response.schema.d.ts +6 -2
- package/dist/definitions/suppressions/response.schema.d.ts.map +1 -1
- package/dist/definitions/suppressions/response.schema.js +2 -2
- package/dist/definitions/suppressions/response.schema.js.map +1 -1
- package/dist/definitions/templates/response.schema.d.ts +12 -4
- package/dist/definitions/templates/response.schema.d.ts.map +1 -1
- package/dist/definitions/templates/response.schema.js +3 -3
- package/dist/definitions/templates/response.schema.js.map +1 -1
- package/dist/definitions/webhooks/domain.schema.d.ts +1 -1
- package/dist/definitions/webhooks/response.schema.d.ts +7 -3
- package/dist/definitions/webhooks/response.schema.d.ts.map +1 -1
- package/dist/definitions/webhooks/response.schema.js +2 -2
- package/dist/definitions/webhooks/response.schema.js.map +1 -1
- package/package.json +8 -4
- 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
|
@@ -30,12 +30,25 @@ export declare const CursorPaginationSchema: z.ZodObject<{
|
|
|
30
30
|
cursor: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Wraps any list of items with a nullable next-page cursor.
|
|
33
|
+
* Page metadata included in every paginated list response.
|
|
35
34
|
*/
|
|
36
|
-
export declare
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
export declare const PageMetaSchema: z.ZodObject<{
|
|
36
|
+
size: z.ZodNumber;
|
|
37
|
+
totalPages: z.ZodNumber;
|
|
38
|
+
hasMore: z.ZodBoolean;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
/**
|
|
41
|
+
* Standard paginated list response envelope factory.
|
|
42
|
+
* Produces { data: T[], page: { size, totalPages, hasMore } }.
|
|
43
|
+
* Used by all Signal list endpoints.
|
|
44
|
+
*/
|
|
45
|
+
export declare function createPageListSchema<T extends z.ZodType>(itemSchema: T): z.ZodObject<{
|
|
46
|
+
data: z.ZodArray<T>;
|
|
47
|
+
page: z.ZodObject<{
|
|
48
|
+
size: z.ZodNumber;
|
|
49
|
+
totalPages: z.ZodNumber;
|
|
50
|
+
hasMore: z.ZodBoolean;
|
|
51
|
+
}, z.core.$strip>;
|
|
39
52
|
}, z.core.$strip>;
|
|
40
53
|
/**
|
|
41
54
|
* Path parameter for any route scoped to a single Signal project.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/definitions/common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO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C,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -38,14 +38,26 @@ export const CursorPaginationSchema = z.object({
|
|
|
38
38
|
limit: z.coerce.number().int().min(1).max(100).default(25),
|
|
39
39
|
cursor: z.string().optional(),
|
|
40
40
|
});
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
// Page-based pagination response
|
|
43
|
+
// ---------------------------------------------------------------------------
|
|
44
|
+
/**
|
|
45
|
+
* Page metadata included in every paginated list response.
|
|
46
|
+
*/
|
|
47
|
+
export const PageMetaSchema = z.object({
|
|
48
|
+
size: z.number().int(),
|
|
49
|
+
totalPages: z.number().int(),
|
|
50
|
+
hasMore: z.boolean(),
|
|
51
|
+
});
|
|
41
52
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
53
|
+
* Standard paginated list response envelope factory.
|
|
54
|
+
* Produces { data: T[], page: { size, totalPages, hasMore } }.
|
|
55
|
+
* Used by all Signal list endpoints.
|
|
44
56
|
*/
|
|
45
|
-
export function
|
|
57
|
+
export function createPageListSchema(itemSchema) {
|
|
46
58
|
return z.object({
|
|
47
|
-
|
|
48
|
-
|
|
59
|
+
data: z.array(itemSchema),
|
|
60
|
+
page: PageMetaSchema,
|
|
49
61
|
});
|
|
50
62
|
}
|
|
51
63
|
// ---------------------------------------------------------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/definitions/common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8EAA8E;AAC9E,yBAAyB;AACzB,8EAA8E;AAE9E;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAEzE;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MA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C5E,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,8EAA8E;AAC9E,8BAA8B;AAC9B,8EAA8E;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,8BAA8B,CAAC,CAAC;AAWlF,8EAA8E;AAC9E,iEAAiE;AACjE,8EAA8E;AAE9E,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,EAAE,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAC/E,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC;AACjE,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,CAAC,CAAC","sourcesContent":["/**\n * Apollo Signal Schemas — Common Primitives\n *\n * Shared building blocks used across all Signal schema definitions.\n * Mirrors the role of `packages/schemas/src/definitions/common.ts` but\n * scoped to Signal-specific primitives.\n *\n * Rules:\n * - Import only from `zod`.\n * - No HTTP concerns (status codes, Fastify types).\n * - Every exported *Schema must be registered with z.globalRegistry.\n */\n\nimport { z } from 'zod';\n\n// ---------------------------------------------------------------------------\n// Date / time primitives\n// ---------------------------------------------------------------------------\n\n/**\n * ISO 8601 datetime string with timezone offset.\n * Use for all API response timestamp fields.\n */\nexport const IsoDateStringSchema = z.string().datetime({ offset: true });\n\n/**\n * Nullable ISO 8601 datetime string.\n * Use for optional timestamp fields that may not yet be set.\n */\nexport const NullableIsoDateStringSchema = z\n .string()\n .datetime({ offset: true })\n .nullable();\n\n// ---------------------------------------------------------------------------\n// Pagination\n// ---------------------------------------------------------------------------\n\n/**\n * Cursor-based pagination query parameters.\n * Used by all Signal list endpoints.\n */\nexport const CursorPaginationSchema = z.object({\n limit: z.coerce.number().int().min(1).max(100).default(25),\n cursor: z.string().optional(),\n});\n\n// ---------------------------------------------------------------------------\n// Page-based pagination response\n// ---------------------------------------------------------------------------\n\n/**\n * Page metadata included in every paginated list response.\n */\nexport const PageMetaSchema = z.object({\n size: z.number().int(),\n totalPages: z.number().int(),\n hasMore: z.boolean(),\n});\n\n/**\n * Standard paginated list response envelope factory.\n * Produces { data: T[], page: { size, totalPages, hasMore } }.\n * Used by all Signal list endpoints.\n */\nexport function createPageListSchema<T extends z.ZodType>(itemSchema: T) {\n return z.object({\n data: z.array(itemSchema),\n page: PageMetaSchema,\n });\n}\n\n\n// ---------------------------------------------------------------------------\n// Common param schemas\n// ---------------------------------------------------------------------------\n\n/**\n * Path parameter for any route scoped to a single Signal project.\n * Re-used across domains to avoid re-declaring { projectId: z.string().min(1) }.\n */\nexport const ProjectParamSchema = z.object({\n projectId: z.string().min(1),\n});\n\nexport type ProjectParam = z.infer<typeof ProjectParamSchema>;\n\n// ---------------------------------------------------------------------------\n// Error envelope\n// ---------------------------------------------------------------------------\n\n/**\n * Standard error response shape for all Signal API endpoints.\n *\n * `details` covers the common flat case (string / number / boolean / null\n * values). The schema is intentionally concrete so the OpenAPI exporter\n * emits a stable $ref component rather than an inline anonymous schema.\n */\nexport const SignalErrorEnvelopeSchema = z.object({\n code: z.string(),\n message: z.string(),\n details: z\n .record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.null()]))\n .optional(),\n});\n\n// ---------------------------------------------------------------------------\n// URL / identifier primitives\n// ---------------------------------------------------------------------------\n\n/**\n * Validated URL string.\n */\nexport const UrlSchema = z.url('Invalid URL format');\n\n/**\n * Non-empty string identifier (non-UUID resource IDs).\n */\nexport const IdentifierSchema = z.string().min(1, 'Identifier must not be empty');\n\n// ---------------------------------------------------------------------------\n// Inferred TypeScript types\n// ---------------------------------------------------------------------------\n\nexport type IsoDateString = z.infer<typeof IsoDateStringSchema>;\nexport type NullableIsoDateString = z.infer<typeof NullableIsoDateStringSchema>;\nexport type CursorPagination = z.infer<typeof CursorPaginationSchema>;\nexport type SignalErrorEnvelope = z.infer<typeof SignalErrorEnvelopeSchema>;\n\n// ---------------------------------------------------------------------------\n// Schema registry — promotes types to OpenAPI components/schemas\n// ---------------------------------------------------------------------------\n\nz.globalRegistry.add(CursorPaginationSchema, { id: 'SignalCursorPagination' });\nz.globalRegistry.add(ProjectParamSchema, { id: 'ProjectParam' });\nz.globalRegistry.add(SignalErrorEnvelopeSchema, { id: 'SignalErrorEnvelope' });\n"]}
|
|
@@ -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,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C,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>;
|
|
@@ -326,23 +326,23 @@ export declare const DomainVerifyResponseSchema: z.ZodObject<{
|
|
|
326
326
|
}, z.core.$strip>;
|
|
327
327
|
}, z.core.$strip>;
|
|
328
328
|
export declare const DomainListResponseSchema: z.ZodObject<{
|
|
329
|
-
|
|
329
|
+
data: z.ZodArray<z.ZodObject<{
|
|
330
330
|
id: z.ZodString;
|
|
331
331
|
projectId: z.ZodString;
|
|
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>;
|
|
@@ -483,7 +483,11 @@ export declare const DomainListResponseSchema: z.ZodObject<{
|
|
|
483
483
|
updatedAt: z.ZodString;
|
|
484
484
|
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
485
485
|
}, z.core.$strip>>;
|
|
486
|
-
|
|
486
|
+
page: z.ZodObject<{
|
|
487
|
+
size: z.ZodNumber;
|
|
488
|
+
totalPages: z.ZodNumber;
|
|
489
|
+
hasMore: z.ZodBoolean;
|
|
490
|
+
}, z.core.$strip>;
|
|
487
491
|
}, z.core.$strip>;
|
|
488
492
|
export type DomainResponse = z.infer<typeof DomainResponseSchema>;
|
|
489
493
|
export type DomainVerifyResponse = z.infer<typeof DomainVerifyResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/domains/response.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU/B,CAAC;AAEH,eAAO,MAAM,0BA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AC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Subpath: @apollo-deploy/signal-schemas/domains
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import {
|
|
6
|
+
import { createPageListSchema, IsoDateStringSchema, NullableIsoDateStringSchema } from '../common.js';
|
|
7
7
|
import { DomainStatusSchema, DomainSubStatusSchema, BimiStatusSchema, VerificationRecordsSchema, DomainDnsCheckSchema } from './domain.schema.js';
|
|
8
8
|
export const DomainResponseSchema = z.object({
|
|
9
9
|
id: z.string(), projectId: z.string(), domain: z.string(), region: z.string(),
|
|
@@ -17,7 +17,7 @@ export const DomainResponseSchema = z.object({
|
|
|
17
17
|
verifiedAt: NullableIsoDateStringSchema,
|
|
18
18
|
});
|
|
19
19
|
export const DomainVerifyResponseSchema = DomainResponseSchema.extend({ dnsCheck: DomainDnsCheckSchema });
|
|
20
|
-
export const DomainListResponseSchema =
|
|
20
|
+
export const DomainListResponseSchema = createPageListSchema(DomainResponseSchema);
|
|
21
21
|
z.globalRegistry.add(DomainResponseSchema, { id: 'DomainResponse' });
|
|
22
22
|
z.globalRegistry.add(DomainVerifyResponseSchema, { id: 'DomainVerifyResponse' });
|
|
23
23
|
z.globalRegistry.add(DomainListResponseSchema, { id: 'DomainListResponse' });
|