@apollo-deploy/schemas 1.1.0 → 1.2.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/definitions/api-keys/domain.schema.d.ts +62 -0
- package/dist/definitions/api-keys/domain.schema.d.ts.map +1 -0
- package/dist/definitions/api-keys/domain.schema.js +24 -0
- package/dist/definitions/api-keys/domain.schema.js.map +1 -0
- package/dist/definitions/api-keys/index.d.ts +9 -0
- package/dist/definitions/api-keys/index.d.ts.map +1 -0
- package/dist/definitions/api-keys/index.js +9 -0
- package/dist/definitions/api-keys/index.js.map +1 -0
- package/dist/definitions/api-keys/request.schema.d.ts +100 -0
- package/dist/definitions/api-keys/request.schema.d.ts.map +1 -0
- package/dist/definitions/api-keys/request.schema.js +27 -0
- package/dist/definitions/api-keys/request.schema.js.map +1 -0
- package/dist/definitions/api-keys/response.schema.d.ts +188 -0
- package/dist/definitions/api-keys/response.schema.d.ts.map +1 -0
- package/dist/definitions/api-keys/response.schema.js +31 -0
- package/dist/definitions/api-keys/response.schema.js.map +1 -0
- package/dist/definitions/index.d.ts +7 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +7 -3
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/integrations/domain.schema.d.ts +14 -11
- package/dist/definitions/integrations/domain.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/domain.schema.js +7 -6
- package/dist/definitions/integrations/domain.schema.js.map +1 -1
- package/dist/definitions/integrations/index.d.ts +1 -1
- package/dist/definitions/integrations/index.d.ts.map +1 -1
- package/dist/definitions/integrations/index.js +1 -1
- package/dist/definitions/integrations/index.js.map +1 -1
- package/dist/definitions/integrations/response.schema.d.ts +9 -5
- package/dist/definitions/integrations/response.schema.d.ts.map +1 -1
- package/dist/definitions/releases/domain.schema.d.ts +6 -5
- package/dist/definitions/releases/domain.schema.d.ts.map +1 -1
- package/dist/definitions/releases/domain.schema.js +1 -0
- package/dist/definitions/releases/domain.schema.js.map +1 -1
- package/dist/definitions/releases/request.schema.d.ts +1 -1
- package/dist/definitions/releases/response.schema.d.ts +6 -4
- package/dist/definitions/releases/response.schema.d.ts.map +1 -1
- package/dist/definitions/signals/domain.schema.d.ts +42 -33
- package/dist/definitions/signals/domain.schema.d.ts.map +1 -1
- package/dist/definitions/signals/domain.schema.js +13 -2
- package/dist/definitions/signals/domain.schema.js.map +1 -1
- package/dist/definitions/signals/request.schema.d.ts +17 -17
- package/dist/definitions/signals/response.schema.d.ts +84 -44
- package/dist/definitions/signals/response.schema.d.ts.map +1 -1
- package/dist/definitions/signals/response.schema.js +2 -0
- package/dist/definitions/signals/response.schema.js.map +1 -1
- package/package.json +5 -5
- package/dist/definitions/deployments/domain.schema.d.ts +0 -231
- package/dist/definitions/deployments/domain.schema.d.ts.map +0 -1
- package/dist/definitions/deployments/domain.schema.js +0 -118
- package/dist/definitions/deployments/domain.schema.js.map +0 -1
- package/dist/definitions/deployments/index.d.ts +0 -7
- package/dist/definitions/deployments/index.d.ts.map +0 -1
- package/dist/definitions/deployments/index.js +0 -7
- package/dist/definitions/deployments/index.js.map +0 -1
- package/dist/definitions/deployments/request.schema.d.ts +0 -238
- package/dist/definitions/deployments/request.schema.d.ts.map +0 -1
- package/dist/definitions/deployments/request.schema.js +0 -142
- package/dist/definitions/deployments/request.schema.js.map +0 -1
- package/dist/definitions/deployments/response.schema.d.ts +0 -193
- package/dist/definitions/deployments/response.schema.d.ts.map +0 -1
- package/dist/definitions/deployments/response.schema.js +0 -50
- package/dist/definitions/deployments/response.schema.js.map +0 -1
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deployments Request Schema Definitions
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { PaginationSchema, UUIDSchema, IsoDateStringSchema, } from '../common.js';
|
|
6
|
-
import { AwsDeploymentTargetConfigSchema, AzureDeploymentTargetConfigSchema, DeploymentEnvironmentSchema, DeploymentProviderSchema, DeploymentStatusSchema, GcpDeploymentTargetConfigSchema, } from './domain.schema.js';
|
|
7
|
-
export const DeploymentTargetIdParamSchema = z
|
|
8
|
-
.object({
|
|
9
|
-
id: UUIDSchema,
|
|
10
|
-
})
|
|
11
|
-
.strict();
|
|
12
|
-
export const DeploymentIdParamSchema = z
|
|
13
|
-
.object({
|
|
14
|
-
id: UUIDSchema,
|
|
15
|
-
})
|
|
16
|
-
.strict();
|
|
17
|
-
export const CreateAwsDeploymentTargetSchema = z
|
|
18
|
-
.object({
|
|
19
|
-
name: z.string().min(1).max(120),
|
|
20
|
-
provider: z.literal('aws'),
|
|
21
|
-
environment: DeploymentEnvironmentSchema,
|
|
22
|
-
region: z.string().min(1).max(64).optional(),
|
|
23
|
-
integrationInstallationId: UUIDSchema.optional(),
|
|
24
|
-
config: AwsDeploymentTargetConfigSchema,
|
|
25
|
-
})
|
|
26
|
-
.strict()
|
|
27
|
-
.superRefine((input, ctx) => {
|
|
28
|
-
const routeRegion = input.region?.trim();
|
|
29
|
-
const configRegion = input.config.region?.trim();
|
|
30
|
-
if (!routeRegion && !configRegion) {
|
|
31
|
-
ctx.addIssue({
|
|
32
|
-
code: z.ZodIssueCode.custom,
|
|
33
|
-
path: ['region'],
|
|
34
|
-
message: 'AWS deployment target region is required (provide region or config.region)',
|
|
35
|
-
});
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (routeRegion && configRegion && routeRegion !== configRegion) {
|
|
39
|
-
ctx.addIssue({
|
|
40
|
-
code: z.ZodIssueCode.custom,
|
|
41
|
-
path: ['region'],
|
|
42
|
-
message: 'region must match config.region when both are provided',
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export const CreateGcpDeploymentTargetSchema = z
|
|
47
|
-
.object({
|
|
48
|
-
name: z.string().min(1).max(120),
|
|
49
|
-
provider: z.literal('gcp'),
|
|
50
|
-
environment: DeploymentEnvironmentSchema,
|
|
51
|
-
region: z.string().min(1).max(64).optional(),
|
|
52
|
-
integrationInstallationId: UUIDSchema.optional(),
|
|
53
|
-
config: GcpDeploymentTargetConfigSchema,
|
|
54
|
-
})
|
|
55
|
-
.strict()
|
|
56
|
-
.superRefine((input, ctx) => {
|
|
57
|
-
const routeRegion = input.region?.trim();
|
|
58
|
-
if (routeRegion && routeRegion !== input.config.region) {
|
|
59
|
-
ctx.addIssue({
|
|
60
|
-
code: z.ZodIssueCode.custom,
|
|
61
|
-
path: ['region'],
|
|
62
|
-
message: 'region must match config.region when provided',
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
export const CreateAzureDeploymentTargetSchema = z
|
|
67
|
-
.object({
|
|
68
|
-
name: z.string().min(1).max(120),
|
|
69
|
-
provider: z.literal('azure'),
|
|
70
|
-
environment: DeploymentEnvironmentSchema,
|
|
71
|
-
region: z.string().min(1).max(64).optional(),
|
|
72
|
-
integrationInstallationId: UUIDSchema.optional(),
|
|
73
|
-
config: AzureDeploymentTargetConfigSchema,
|
|
74
|
-
})
|
|
75
|
-
.strict()
|
|
76
|
-
.superRefine((input, ctx) => {
|
|
77
|
-
const routeRegion = input.region?.trim();
|
|
78
|
-
if (routeRegion && routeRegion.toLowerCase() !== input.config.location.toLowerCase()) {
|
|
79
|
-
ctx.addIssue({
|
|
80
|
-
code: z.ZodIssueCode.custom,
|
|
81
|
-
path: ['region'],
|
|
82
|
-
message: 'region must match config.location when provided',
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
export const CreateByocDeploymentTargetSchema = z
|
|
87
|
-
.object({
|
|
88
|
-
name: z.string().min(1).max(120),
|
|
89
|
-
provider: z.literal('byoc'),
|
|
90
|
-
environment: DeploymentEnvironmentSchema,
|
|
91
|
-
region: z.string().min(1).max(64).optional(),
|
|
92
|
-
integrationInstallationId: UUIDSchema.optional(),
|
|
93
|
-
config: z.record(z.string(), z.unknown()).default({}),
|
|
94
|
-
})
|
|
95
|
-
.strict();
|
|
96
|
-
export const CreateDeploymentTargetSchema = z.discriminatedUnion('provider', [
|
|
97
|
-
CreateAwsDeploymentTargetSchema,
|
|
98
|
-
CreateGcpDeploymentTargetSchema,
|
|
99
|
-
CreateAzureDeploymentTargetSchema,
|
|
100
|
-
CreateByocDeploymentTargetSchema,
|
|
101
|
-
]);
|
|
102
|
-
export const ListDeploymentTargetsQuerySchema = PaginationSchema.extend({
|
|
103
|
-
provider: DeploymentProviderSchema.optional(),
|
|
104
|
-
environment: DeploymentEnvironmentSchema.optional(),
|
|
105
|
-
activeOnly: z.coerce.boolean().default(false),
|
|
106
|
-
}).strict();
|
|
107
|
-
export const ValidateDeploymentTargetSchema = z
|
|
108
|
-
.object({
|
|
109
|
-
dryRun: z.boolean().default(false),
|
|
110
|
-
})
|
|
111
|
-
.strict();
|
|
112
|
-
export const CreateDeploymentSchema = z
|
|
113
|
-
.object({
|
|
114
|
-
targetId: UUIDSchema,
|
|
115
|
-
releaseId: UUIDSchema.optional(),
|
|
116
|
-
imageUri: z.string().min(1),
|
|
117
|
-
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
118
|
-
idempotencyKey: z.string().min(1).max(200).optional(),
|
|
119
|
-
})
|
|
120
|
-
.strict();
|
|
121
|
-
export const ListDeploymentsQuerySchema = PaginationSchema.extend({
|
|
122
|
-
targetId: UUIDSchema.optional(),
|
|
123
|
-
releaseId: UUIDSchema.optional(),
|
|
124
|
-
status: DeploymentStatusSchema.optional(),
|
|
125
|
-
}).strict();
|
|
126
|
-
export const ListDeploymentEventsQuerySchema = PaginationSchema.strict();
|
|
127
|
-
export const DeploymentIngestEventHeadersSchema = z
|
|
128
|
-
.object({
|
|
129
|
-
'x-apollo-signature': z.string().min(1),
|
|
130
|
-
'x-apollo-timestamp': z.string().min(1),
|
|
131
|
-
})
|
|
132
|
-
.passthrough();
|
|
133
|
-
export const DeploymentIngestEventSchema = z
|
|
134
|
-
.object({
|
|
135
|
-
id: z.string().min(1),
|
|
136
|
-
source: z.string().optional(),
|
|
137
|
-
detailType: z.string().optional(),
|
|
138
|
-
time: IsoDateStringSchema.optional(),
|
|
139
|
-
detail: z.record(z.string(), z.unknown()).default({}),
|
|
140
|
-
})
|
|
141
|
-
.strict();
|
|
142
|
-
//# sourceMappingURL=request.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request.schema.js","sourceRoot":"","sources":["../../../src/definitions/deployments/request.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,GAChC,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,EAAE,EAAE,UAAU;CACf,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,EAAE,EAAE,UAAU;CACf,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC1B,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,yBAAyB,EAAE,UAAU,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,+BAA+B;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C7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,mBAAmB,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACtD,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deployments Response Schema Definitions
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
export declare const DeploymentTargetResponseSchema: z.ZodObject<{
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
orgId: z.ZodString;
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
provider: z.ZodEnum<{
|
|
10
|
-
aws: "aws";
|
|
11
|
-
gcp: "gcp";
|
|
12
|
-
azure: "azure";
|
|
13
|
-
byoc: "byoc";
|
|
14
|
-
}>;
|
|
15
|
-
environment: z.ZodEnum<{
|
|
16
|
-
production: "production";
|
|
17
|
-
development: "development";
|
|
18
|
-
staging: "staging";
|
|
19
|
-
}>;
|
|
20
|
-
region: z.ZodNullable<z.ZodString>;
|
|
21
|
-
integrationInstallationId: z.ZodNullable<z.ZodString>;
|
|
22
|
-
isActive: z.ZodBoolean;
|
|
23
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
24
|
-
createdAt: z.ZodString;
|
|
25
|
-
updatedAt: z.ZodString;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export declare const DeploymentTargetListResponseSchema: z.ZodObject<{
|
|
28
|
-
data: z.ZodArray<z.ZodObject<{
|
|
29
|
-
id: z.ZodString;
|
|
30
|
-
orgId: z.ZodString;
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
provider: z.ZodEnum<{
|
|
33
|
-
aws: "aws";
|
|
34
|
-
gcp: "gcp";
|
|
35
|
-
azure: "azure";
|
|
36
|
-
byoc: "byoc";
|
|
37
|
-
}>;
|
|
38
|
-
environment: z.ZodEnum<{
|
|
39
|
-
production: "production";
|
|
40
|
-
development: "development";
|
|
41
|
-
staging: "staging";
|
|
42
|
-
}>;
|
|
43
|
-
region: z.ZodNullable<z.ZodString>;
|
|
44
|
-
integrationInstallationId: z.ZodNullable<z.ZodString>;
|
|
45
|
-
isActive: z.ZodBoolean;
|
|
46
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
47
|
-
createdAt: z.ZodString;
|
|
48
|
-
updatedAt: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
page: z.ZodObject<{
|
|
51
|
-
size: z.ZodNumber;
|
|
52
|
-
totalPages: z.ZodNumber;
|
|
53
|
-
hasMore: z.ZodBoolean;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
export declare const DeploymentValidationCheckSchema: z.ZodObject<{
|
|
57
|
-
key: z.ZodString;
|
|
58
|
-
passed: z.ZodBoolean;
|
|
59
|
-
code: z.ZodString;
|
|
60
|
-
message: z.ZodString;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
export declare const DeploymentTargetValidationResponseSchema: z.ZodObject<{
|
|
63
|
-
targetId: z.ZodString;
|
|
64
|
-
provider: z.ZodString;
|
|
65
|
-
valid: z.ZodBoolean;
|
|
66
|
-
checks: z.ZodArray<z.ZodObject<{
|
|
67
|
-
key: z.ZodString;
|
|
68
|
-
passed: z.ZodBoolean;
|
|
69
|
-
code: z.ZodString;
|
|
70
|
-
message: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>;
|
|
72
|
-
}, z.core.$strip>;
|
|
73
|
-
export declare const DeploymentResponseSchema: z.ZodObject<{
|
|
74
|
-
id: z.ZodString;
|
|
75
|
-
orgId: z.ZodString;
|
|
76
|
-
releaseId: z.ZodNullable<z.ZodString>;
|
|
77
|
-
targetId: z.ZodString;
|
|
78
|
-
provider: z.ZodEnum<{
|
|
79
|
-
aws: "aws";
|
|
80
|
-
gcp: "gcp";
|
|
81
|
-
azure: "azure";
|
|
82
|
-
byoc: "byoc";
|
|
83
|
-
}>;
|
|
84
|
-
status: z.ZodEnum<{
|
|
85
|
-
failed: "failed";
|
|
86
|
-
succeeded: "succeeded";
|
|
87
|
-
canceled: "canceled";
|
|
88
|
-
rolled_back: "rolled_back";
|
|
89
|
-
queued: "queued";
|
|
90
|
-
awaiting_approval: "awaiting_approval";
|
|
91
|
-
running: "running";
|
|
92
|
-
verifying: "verifying";
|
|
93
|
-
rollback_in_progress: "rollback_in_progress";
|
|
94
|
-
}>;
|
|
95
|
-
statusReason: z.ZodNullable<z.ZodString>;
|
|
96
|
-
approvalRequestId: z.ZodNullable<z.ZodString>;
|
|
97
|
-
codedeployDeploymentId: z.ZodNullable<z.ZodString>;
|
|
98
|
-
artifactS3Uri: z.ZodNullable<z.ZodString>;
|
|
99
|
-
artifactSha256: z.ZodNullable<z.ZodString>;
|
|
100
|
-
imageUri: z.ZodString;
|
|
101
|
-
imageDigest: z.ZodString;
|
|
102
|
-
startedAt: z.ZodNullable<z.ZodString>;
|
|
103
|
-
completedAt: z.ZodNullable<z.ZodString>;
|
|
104
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
105
|
-
createdAt: z.ZodString;
|
|
106
|
-
updatedAt: z.ZodString;
|
|
107
|
-
}, z.core.$strip>;
|
|
108
|
-
export declare const CreateDeploymentAcceptedResponseSchema: z.ZodObject<{
|
|
109
|
-
deploymentId: z.ZodString;
|
|
110
|
-
jobId: z.ZodString;
|
|
111
|
-
status: z.ZodString;
|
|
112
|
-
}, z.core.$strip>;
|
|
113
|
-
export declare const DeploymentListResponseSchema: z.ZodObject<{
|
|
114
|
-
data: z.ZodArray<z.ZodObject<{
|
|
115
|
-
id: z.ZodString;
|
|
116
|
-
orgId: z.ZodString;
|
|
117
|
-
releaseId: z.ZodNullable<z.ZodString>;
|
|
118
|
-
targetId: z.ZodString;
|
|
119
|
-
provider: z.ZodEnum<{
|
|
120
|
-
aws: "aws";
|
|
121
|
-
gcp: "gcp";
|
|
122
|
-
azure: "azure";
|
|
123
|
-
byoc: "byoc";
|
|
124
|
-
}>;
|
|
125
|
-
status: z.ZodEnum<{
|
|
126
|
-
failed: "failed";
|
|
127
|
-
succeeded: "succeeded";
|
|
128
|
-
canceled: "canceled";
|
|
129
|
-
rolled_back: "rolled_back";
|
|
130
|
-
queued: "queued";
|
|
131
|
-
awaiting_approval: "awaiting_approval";
|
|
132
|
-
running: "running";
|
|
133
|
-
verifying: "verifying";
|
|
134
|
-
rollback_in_progress: "rollback_in_progress";
|
|
135
|
-
}>;
|
|
136
|
-
statusReason: z.ZodNullable<z.ZodString>;
|
|
137
|
-
approvalRequestId: z.ZodNullable<z.ZodString>;
|
|
138
|
-
codedeployDeploymentId: z.ZodNullable<z.ZodString>;
|
|
139
|
-
artifactS3Uri: z.ZodNullable<z.ZodString>;
|
|
140
|
-
artifactSha256: z.ZodNullable<z.ZodString>;
|
|
141
|
-
imageUri: z.ZodString;
|
|
142
|
-
imageDigest: z.ZodString;
|
|
143
|
-
startedAt: z.ZodNullable<z.ZodString>;
|
|
144
|
-
completedAt: z.ZodNullable<z.ZodString>;
|
|
145
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
146
|
-
createdAt: z.ZodString;
|
|
147
|
-
updatedAt: z.ZodString;
|
|
148
|
-
}, z.core.$strip>>;
|
|
149
|
-
page: z.ZodObject<{
|
|
150
|
-
size: z.ZodNumber;
|
|
151
|
-
totalPages: z.ZodNumber;
|
|
152
|
-
hasMore: z.ZodBoolean;
|
|
153
|
-
}, z.core.$strip>;
|
|
154
|
-
}, z.core.$strip>;
|
|
155
|
-
export declare const DeploymentEventListResponseSchema: z.ZodObject<{
|
|
156
|
-
data: z.ZodArray<z.ZodObject<{
|
|
157
|
-
id: z.ZodString;
|
|
158
|
-
deploymentId: z.ZodString;
|
|
159
|
-
providerEventId: z.ZodString;
|
|
160
|
-
eventType: z.ZodString;
|
|
161
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
162
|
-
occurredAt: z.ZodString;
|
|
163
|
-
createdAt: z.ZodString;
|
|
164
|
-
}, z.core.$strip>>;
|
|
165
|
-
page: z.ZodObject<{
|
|
166
|
-
size: z.ZodNumber;
|
|
167
|
-
totalPages: z.ZodNumber;
|
|
168
|
-
hasMore: z.ZodBoolean;
|
|
169
|
-
}, z.core.$strip>;
|
|
170
|
-
}, z.core.$strip>;
|
|
171
|
-
export declare const AwsBootstrapTemplateResponseSchema: z.ZodObject<{
|
|
172
|
-
provider: z.ZodLiteral<"aws">;
|
|
173
|
-
templateFormat: z.ZodLiteral<"cloudformation-yaml">;
|
|
174
|
-
version: z.ZodString;
|
|
175
|
-
requiredParameters: z.ZodArray<z.ZodString>;
|
|
176
|
-
template: z.ZodString;
|
|
177
|
-
}, z.core.$strip>;
|
|
178
|
-
export declare const DeploymentIngestEventResponseSchema: z.ZodObject<{
|
|
179
|
-
accepted: z.ZodBoolean;
|
|
180
|
-
deploymentId: z.ZodNullable<z.ZodString>;
|
|
181
|
-
status: z.ZodNullable<z.ZodString>;
|
|
182
|
-
}, z.core.$strip>;
|
|
183
|
-
export type DeploymentTargetResponse = z.infer<typeof DeploymentTargetResponseSchema>;
|
|
184
|
-
export type DeploymentTargetListResponse = z.infer<typeof DeploymentTargetListResponseSchema>;
|
|
185
|
-
export type DeploymentValidationCheck = z.infer<typeof DeploymentValidationCheckSchema>;
|
|
186
|
-
export type DeploymentTargetValidationResponse = z.infer<typeof DeploymentTargetValidationResponseSchema>;
|
|
187
|
-
export type DeploymentResponse = z.infer<typeof DeploymentResponseSchema>;
|
|
188
|
-
export type CreateDeploymentAcceptedResponse = z.infer<typeof CreateDeploymentAcceptedResponseSchema>;
|
|
189
|
-
export type DeploymentListResponse = z.infer<typeof DeploymentListResponseSchema>;
|
|
190
|
-
export type DeploymentEventListResponse = z.infer<typeof DeploymentEventListResponseSchema>;
|
|
191
|
-
export type AwsBootstrapTemplateResponse = z.infer<typeof AwsBootstrapTemplateResponseSchema>;
|
|
192
|
-
export type DeploymentIngestEventResponse = z.infer<typeof DeploymentIngestEventResponseSchema>;
|
|
193
|
-
//# sourceMappingURL=response.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/deployments/response.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAC;AAErE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG7C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;iBAK1C,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;iBAKnD,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAmB,CAAC;AAEzD,eAAO,MAAM,sCAAsC;;;;iBAIjD,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;iBAG5C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;iBAM7C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;iBAI9C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deployments Response Schema Definitions
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { PaginationMetaSchema } from '../common.js';
|
|
6
|
-
import { DeploymentSchema, DeploymentTargetSchema, DeploymentEventSchema, } from './domain.schema.js';
|
|
7
|
-
export const DeploymentTargetResponseSchema = DeploymentTargetSchema;
|
|
8
|
-
export const DeploymentTargetListResponseSchema = z.object({
|
|
9
|
-
data: z.array(DeploymentTargetSchema),
|
|
10
|
-
page: PaginationMetaSchema,
|
|
11
|
-
});
|
|
12
|
-
export const DeploymentValidationCheckSchema = z.object({
|
|
13
|
-
key: z.string().min(1),
|
|
14
|
-
passed: z.boolean(),
|
|
15
|
-
code: z.string().min(1),
|
|
16
|
-
message: z.string().min(1),
|
|
17
|
-
});
|
|
18
|
-
export const DeploymentTargetValidationResponseSchema = z.object({
|
|
19
|
-
targetId: z.string().uuid(),
|
|
20
|
-
provider: z.string(),
|
|
21
|
-
valid: z.boolean(),
|
|
22
|
-
checks: z.array(DeploymentValidationCheckSchema),
|
|
23
|
-
});
|
|
24
|
-
export const DeploymentResponseSchema = DeploymentSchema;
|
|
25
|
-
export const CreateDeploymentAcceptedResponseSchema = z.object({
|
|
26
|
-
deploymentId: z.string().uuid(),
|
|
27
|
-
jobId: z.string().min(1),
|
|
28
|
-
status: z.string(),
|
|
29
|
-
});
|
|
30
|
-
export const DeploymentListResponseSchema = z.object({
|
|
31
|
-
data: z.array(DeploymentSchema),
|
|
32
|
-
page: PaginationMetaSchema,
|
|
33
|
-
});
|
|
34
|
-
export const DeploymentEventListResponseSchema = z.object({
|
|
35
|
-
data: z.array(DeploymentEventSchema),
|
|
36
|
-
page: PaginationMetaSchema,
|
|
37
|
-
});
|
|
38
|
-
export const AwsBootstrapTemplateResponseSchema = z.object({
|
|
39
|
-
provider: z.literal('aws'),
|
|
40
|
-
templateFormat: z.literal('cloudformation-yaml'),
|
|
41
|
-
version: z.string().min(1),
|
|
42
|
-
requiredParameters: z.array(z.string().min(1)),
|
|
43
|
-
template: z.string().min(1),
|
|
44
|
-
});
|
|
45
|
-
export const DeploymentIngestEventResponseSchema = z.object({
|
|
46
|
-
accepted: z.boolean(),
|
|
47
|
-
deploymentId: z.string().uuid().nullable(),
|
|
48
|
-
status: z.string().nullable(),
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=response.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.js","sourceRoot":"","sources":["../../../src/definitions/deployments/response.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,8BAA8B,GAAG,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,kCAAkC,GAA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