@apollo-deploy/schemas 1.0.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/apps/index.d.ts +3 -3
- package/dist/definitions/apps/index.d.ts.map +1 -1
- package/dist/definitions/apps/index.js +3 -3
- package/dist/definitions/apps/index.js.map +1 -1
- package/dist/definitions/apps/request.schema.d.ts +0 -21
- package/dist/definitions/apps/request.schema.d.ts.map +1 -1
- package/dist/definitions/apps/request.schema.js +0 -19
- package/dist/definitions/apps/request.schema.js.map +1 -1
- package/dist/definitions/apps/response.schema.d.ts +0 -44
- package/dist/definitions/apps/response.schema.d.ts.map +1 -1
- package/dist/definitions/apps/response.schema.js +0 -24
- package/dist/definitions/apps/response.schema.js.map +1 -1
- package/dist/definitions/artifacts/request.schema.d.ts +42 -0
- package/dist/definitions/artifacts/request.schema.d.ts.map +1 -1
- package/dist/definitions/artifacts/request.schema.js +14 -0
- package/dist/definitions/artifacts/request.schema.js.map +1 -1
- package/dist/definitions/audit-log/domain.schema.d.ts +3 -3
- package/dist/definitions/audit-log/request.schema.d.ts +6 -6
- package/dist/definitions/index.d.ts +16 -3
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +22 -5
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/integrations/api.schema.d.ts +69 -69
- package/dist/definitions/integrations/api.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/api.schema.js +37 -37
- package/dist/definitions/integrations/api.schema.js.map +1 -1
- package/dist/definitions/integrations/domain.schema.d.ts +12 -9
- 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 +8 -4
- package/dist/definitions/integrations/response.schema.d.ts.map +1 -1
- package/dist/definitions/marketplace/domain.schema.d.ts +13 -13
- package/dist/definitions/marketplace/request.schema.d.ts +3 -3
- package/dist/definitions/marketplace/response.schema.d.ts +21 -21
- 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 +635 -0
- package/dist/definitions/signals/domain.schema.d.ts.map +1 -0
- package/dist/definitions/signals/domain.schema.js +259 -0
- package/dist/definitions/signals/domain.schema.js.map +1 -0
- package/dist/definitions/signals/index.d.ts +9 -0
- package/dist/definitions/signals/index.d.ts.map +1 -0
- package/dist/definitions/signals/index.js +12 -0
- package/dist/definitions/signals/index.js.map +1 -0
- package/dist/definitions/signals/request.schema.d.ts +118 -0
- package/dist/definitions/signals/request.schema.d.ts.map +1 -0
- package/dist/definitions/signals/request.schema.js +80 -0
- package/dist/definitions/signals/request.schema.js.map +1 -0
- package/dist/definitions/signals/response.schema.d.ts +1113 -0
- package/dist/definitions/signals/response.schema.d.ts.map +1 -0
- package/dist/definitions/signals/response.schema.js +87 -0
- package/dist/definitions/signals/response.schema.js.map +1 -0
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/signals/response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
+
import { AnomalySchema, RecommendationSchema, SignalsSnapshotSchema, } from './domain.schema.js';
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
// GET /signals/:releaseId → SignalsResponse
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
/**
|
|
12
|
+
* The primary top-level response for signal health snapshots.
|
|
13
|
+
* Mirrors SignalsSnapshot but is the canonical response envelope type.
|
|
14
|
+
*/
|
|
15
|
+
export const SignalsResponseSchema = SignalsSnapshotSchema;
|
|
16
|
+
// ---------------------------------------------------------------------------
|
|
17
|
+
// GET /signals/:releaseId/history
|
|
18
|
+
// ---------------------------------------------------------------------------
|
|
19
|
+
export const SignalsHistoryResponseSchema = z.object({
|
|
20
|
+
snapshots: z.array(SignalsResponseSchema),
|
|
21
|
+
});
|
|
22
|
+
// ---------------------------------------------------------------------------
|
|
23
|
+
// GET /signals/compare
|
|
24
|
+
// ---------------------------------------------------------------------------
|
|
25
|
+
export const MetricDeltaSchema = z.object({
|
|
26
|
+
key: z.string(),
|
|
27
|
+
baseValue: z.number(),
|
|
28
|
+
targetValue: z.number(),
|
|
29
|
+
deltaPercent: z.number(),
|
|
30
|
+
});
|
|
31
|
+
export const SignalsCompareResponseSchema = z.object({
|
|
32
|
+
base: SignalsResponseSchema,
|
|
33
|
+
target: SignalsResponseSchema,
|
|
34
|
+
diff: z.object({
|
|
35
|
+
healthScoreDelta: z.number(),
|
|
36
|
+
metricDeltas: z.array(MetricDeltaSchema),
|
|
37
|
+
newAnomalies: z.array(AnomalySchema),
|
|
38
|
+
resolvedAnomalies: z.array(AnomalySchema),
|
|
39
|
+
}),
|
|
40
|
+
});
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
// POST /signals/:releaseId/evaluate
|
|
43
|
+
// ---------------------------------------------------------------------------
|
|
44
|
+
export const GateConditionResultSchema = z.object({
|
|
45
|
+
metric: z.string(),
|
|
46
|
+
currentValue: z.number(),
|
|
47
|
+
baselineValue: z.number(),
|
|
48
|
+
deviation: z.number(),
|
|
49
|
+
conditionMet: z.boolean(),
|
|
50
|
+
reason: z.string(),
|
|
51
|
+
reasonKey: z.string(),
|
|
52
|
+
});
|
|
53
|
+
export const GateEvaluationResponseSchema = z.object({
|
|
54
|
+
passed: z.boolean(),
|
|
55
|
+
results: z.array(GateConditionResultSchema),
|
|
56
|
+
healthScore: z.number().int().min(0).max(100),
|
|
57
|
+
activeAnomalies: z.array(AnomalySchema),
|
|
58
|
+
recommendation: RecommendationSchema.optional(),
|
|
59
|
+
});
|
|
60
|
+
// ---------------------------------------------------------------------------
|
|
61
|
+
// POST /signals/:releaseId/annotate
|
|
62
|
+
// ---------------------------------------------------------------------------
|
|
63
|
+
export const AnnotateEventResponseSchema = z.object({
|
|
64
|
+
eventId: z.string().uuid(),
|
|
65
|
+
correlationsTriggered: z.boolean(),
|
|
66
|
+
});
|
|
67
|
+
// ---------------------------------------------------------------------------
|
|
68
|
+
// SSE event payloads (Tier 2 — Phase 2)
|
|
69
|
+
// ---------------------------------------------------------------------------
|
|
70
|
+
export const SignalUpdateEventSchema = z.object({
|
|
71
|
+
releaseId: z.string().uuid(),
|
|
72
|
+
healthScore: z.number().int().min(0).max(100),
|
|
73
|
+
status: z.enum(['healthy', 'degraded', 'critical']),
|
|
74
|
+
trigger: z.string().optional(),
|
|
75
|
+
});
|
|
76
|
+
export const SignalCriticalEventSchema = z.object({
|
|
77
|
+
releaseId: z.string().uuid(),
|
|
78
|
+
status: z.literal('critical'),
|
|
79
|
+
healthScore: z.number().int().min(0).max(100),
|
|
80
|
+
topAnomalies: z.array(AnomalySchema),
|
|
81
|
+
});
|
|
82
|
+
export const SignalRecoveredEventSchema = z.object({
|
|
83
|
+
releaseId: z.string().uuid(),
|
|
84
|
+
status: z.literal('healthy'),
|
|
85
|
+
healthScore: z.number().int().min(0).max(100),
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IACnD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC7B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7C,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CAC9C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo-deploy/schemas",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Cross-language type definitions using JSON Schema for Apollo Deploy monorepo",
|
|
6
6
|
"type": "module",
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
"import": "./dist/definitions/auth/index.js",
|
|
92
92
|
"types": "./dist/definitions/auth/index.d.ts"
|
|
93
93
|
},
|
|
94
|
+
"./api-keys": {
|
|
95
|
+
"import": "./dist/definitions/api-keys/index.js",
|
|
96
|
+
"types": "./dist/definitions/api-keys/index.d.ts"
|
|
97
|
+
},
|
|
94
98
|
"./admin-users": {
|
|
95
99
|
"import": "./dist/definitions/admin-users/index.js",
|
|
96
100
|
"types": "./dist/definitions/admin-users/index.d.ts"
|
|
@@ -103,10 +107,6 @@
|
|
|
103
107
|
"import": "./dist/definitions/approvals/index.js",
|
|
104
108
|
"types": "./dist/definitions/approvals/index.d.ts"
|
|
105
109
|
},
|
|
106
|
-
"./deployments": {
|
|
107
|
-
"import": "./dist/definitions/deployments/index.js",
|
|
108
|
-
"types": "./dist/definitions/deployments/index.d.ts"
|
|
109
|
-
},
|
|
110
110
|
"./workflows": {
|
|
111
111
|
"import": "./dist/definitions/workflows/index.js",
|
|
112
112
|
"types": "./dist/definitions/workflows/index.d.ts"
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deployments Domain Schema Definitions
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
export declare const DeploymentProviderSchema: z.ZodEnum<{
|
|
6
|
-
aws: "aws";
|
|
7
|
-
gcp: "gcp";
|
|
8
|
-
azure: "azure";
|
|
9
|
-
byoc: "byoc";
|
|
10
|
-
}>;
|
|
11
|
-
export declare const DeploymentEnvironmentSchema: z.ZodEnum<{
|
|
12
|
-
production: "production";
|
|
13
|
-
development: "development";
|
|
14
|
-
staging: "staging";
|
|
15
|
-
}>;
|
|
16
|
-
export declare const DeploymentTargetStatusSchema: z.ZodEnum<{
|
|
17
|
-
active: "active";
|
|
18
|
-
inactive: "inactive";
|
|
19
|
-
}>;
|
|
20
|
-
export declare const DeploymentStatusSchema: z.ZodEnum<{
|
|
21
|
-
failed: "failed";
|
|
22
|
-
succeeded: "succeeded";
|
|
23
|
-
canceled: "canceled";
|
|
24
|
-
rolled_back: "rolled_back";
|
|
25
|
-
queued: "queued";
|
|
26
|
-
awaiting_approval: "awaiting_approval";
|
|
27
|
-
running: "running";
|
|
28
|
-
verifying: "verifying";
|
|
29
|
-
rollback_in_progress: "rollback_in_progress";
|
|
30
|
-
}>;
|
|
31
|
-
export declare const AwsDeploymentTargetConfigSchema: z.ZodObject<{
|
|
32
|
-
roleArn: z.ZodString;
|
|
33
|
-
externalId: z.ZodString;
|
|
34
|
-
accountId: z.ZodString;
|
|
35
|
-
region: z.ZodOptional<z.ZodString>;
|
|
36
|
-
codedeployApplicationName: z.ZodString;
|
|
37
|
-
codedeployDeploymentGroupName: z.ZodString;
|
|
38
|
-
artifactBucket: z.ZodString;
|
|
39
|
-
artifactKeyPrefix: z.ZodString;
|
|
40
|
-
ecrRepositoryUri: z.ZodString;
|
|
41
|
-
eventHmacSecret: z.ZodString;
|
|
42
|
-
kmsKeyId: z.ZodOptional<z.ZodString>;
|
|
43
|
-
containerName: z.ZodOptional<z.ZodString>;
|
|
44
|
-
hostPort: z.ZodOptional<z.ZodNumber>;
|
|
45
|
-
containerPort: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
}, z.core.$strict>;
|
|
47
|
-
export declare const GcpDeploymentTargetConfigSchema: z.ZodObject<{
|
|
48
|
-
projectId: z.ZodString;
|
|
49
|
-
region: z.ZodString;
|
|
50
|
-
cloudRunService: z.ZodString;
|
|
51
|
-
artifactRepositoryUri: z.ZodString;
|
|
52
|
-
eventHmacSecret: z.ZodString;
|
|
53
|
-
containerName: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, z.core.$strict>;
|
|
55
|
-
export declare const AzureDeploymentTargetConfigSchema: z.ZodObject<{
|
|
56
|
-
subscriptionId: z.ZodString;
|
|
57
|
-
tenantId: z.ZodOptional<z.ZodString>;
|
|
58
|
-
location: z.ZodString;
|
|
59
|
-
resourceGroupName: z.ZodString;
|
|
60
|
-
containerAppName: z.ZodString;
|
|
61
|
-
acrRepositoryUri: z.ZodString;
|
|
62
|
-
eventHmacSecret: z.ZodString;
|
|
63
|
-
containerName: z.ZodOptional<z.ZodString>;
|
|
64
|
-
}, z.core.$strict>;
|
|
65
|
-
export declare const DeploymentTargetSchema: z.ZodObject<{
|
|
66
|
-
id: z.ZodString;
|
|
67
|
-
orgId: z.ZodString;
|
|
68
|
-
name: z.ZodString;
|
|
69
|
-
provider: z.ZodEnum<{
|
|
70
|
-
aws: "aws";
|
|
71
|
-
gcp: "gcp";
|
|
72
|
-
azure: "azure";
|
|
73
|
-
byoc: "byoc";
|
|
74
|
-
}>;
|
|
75
|
-
environment: z.ZodEnum<{
|
|
76
|
-
production: "production";
|
|
77
|
-
development: "development";
|
|
78
|
-
staging: "staging";
|
|
79
|
-
}>;
|
|
80
|
-
region: z.ZodNullable<z.ZodString>;
|
|
81
|
-
integrationInstallationId: z.ZodNullable<z.ZodString>;
|
|
82
|
-
isActive: z.ZodBoolean;
|
|
83
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
84
|
-
createdAt: z.ZodString;
|
|
85
|
-
updatedAt: z.ZodString;
|
|
86
|
-
}, z.core.$strip>;
|
|
87
|
-
export declare const DeploymentEventSchema: z.ZodObject<{
|
|
88
|
-
id: z.ZodString;
|
|
89
|
-
deploymentId: z.ZodString;
|
|
90
|
-
providerEventId: z.ZodString;
|
|
91
|
-
eventType: z.ZodString;
|
|
92
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
93
|
-
occurredAt: z.ZodString;
|
|
94
|
-
createdAt: z.ZodString;
|
|
95
|
-
}, z.core.$strip>;
|
|
96
|
-
export declare const DeploymentSchema: z.ZodObject<{
|
|
97
|
-
id: z.ZodString;
|
|
98
|
-
orgId: z.ZodString;
|
|
99
|
-
releaseId: z.ZodNullable<z.ZodString>;
|
|
100
|
-
targetId: z.ZodString;
|
|
101
|
-
provider: z.ZodEnum<{
|
|
102
|
-
aws: "aws";
|
|
103
|
-
gcp: "gcp";
|
|
104
|
-
azure: "azure";
|
|
105
|
-
byoc: "byoc";
|
|
106
|
-
}>;
|
|
107
|
-
status: z.ZodEnum<{
|
|
108
|
-
failed: "failed";
|
|
109
|
-
succeeded: "succeeded";
|
|
110
|
-
canceled: "canceled";
|
|
111
|
-
rolled_back: "rolled_back";
|
|
112
|
-
queued: "queued";
|
|
113
|
-
awaiting_approval: "awaiting_approval";
|
|
114
|
-
running: "running";
|
|
115
|
-
verifying: "verifying";
|
|
116
|
-
rollback_in_progress: "rollback_in_progress";
|
|
117
|
-
}>;
|
|
118
|
-
statusReason: z.ZodNullable<z.ZodString>;
|
|
119
|
-
approvalRequestId: z.ZodNullable<z.ZodString>;
|
|
120
|
-
codedeployDeploymentId: z.ZodNullable<z.ZodString>;
|
|
121
|
-
artifactS3Uri: z.ZodNullable<z.ZodString>;
|
|
122
|
-
artifactSha256: z.ZodNullable<z.ZodString>;
|
|
123
|
-
imageUri: z.ZodString;
|
|
124
|
-
imageDigest: z.ZodString;
|
|
125
|
-
startedAt: z.ZodNullable<z.ZodString>;
|
|
126
|
-
completedAt: z.ZodNullable<z.ZodString>;
|
|
127
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
128
|
-
createdAt: z.ZodString;
|
|
129
|
-
updatedAt: z.ZodString;
|
|
130
|
-
}, z.core.$strip>;
|
|
131
|
-
export declare const DeploymentListResponseSchema: z.ZodObject<{
|
|
132
|
-
data: z.ZodArray<z.ZodObject<{
|
|
133
|
-
id: z.ZodString;
|
|
134
|
-
orgId: z.ZodString;
|
|
135
|
-
releaseId: z.ZodNullable<z.ZodString>;
|
|
136
|
-
targetId: z.ZodString;
|
|
137
|
-
provider: z.ZodEnum<{
|
|
138
|
-
aws: "aws";
|
|
139
|
-
gcp: "gcp";
|
|
140
|
-
azure: "azure";
|
|
141
|
-
byoc: "byoc";
|
|
142
|
-
}>;
|
|
143
|
-
status: z.ZodEnum<{
|
|
144
|
-
failed: "failed";
|
|
145
|
-
succeeded: "succeeded";
|
|
146
|
-
canceled: "canceled";
|
|
147
|
-
rolled_back: "rolled_back";
|
|
148
|
-
queued: "queued";
|
|
149
|
-
awaiting_approval: "awaiting_approval";
|
|
150
|
-
running: "running";
|
|
151
|
-
verifying: "verifying";
|
|
152
|
-
rollback_in_progress: "rollback_in_progress";
|
|
153
|
-
}>;
|
|
154
|
-
statusReason: z.ZodNullable<z.ZodString>;
|
|
155
|
-
approvalRequestId: z.ZodNullable<z.ZodString>;
|
|
156
|
-
codedeployDeploymentId: z.ZodNullable<z.ZodString>;
|
|
157
|
-
artifactS3Uri: z.ZodNullable<z.ZodString>;
|
|
158
|
-
artifactSha256: z.ZodNullable<z.ZodString>;
|
|
159
|
-
imageUri: z.ZodString;
|
|
160
|
-
imageDigest: z.ZodString;
|
|
161
|
-
startedAt: z.ZodNullable<z.ZodString>;
|
|
162
|
-
completedAt: z.ZodNullable<z.ZodString>;
|
|
163
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
164
|
-
createdAt: z.ZodString;
|
|
165
|
-
updatedAt: z.ZodString;
|
|
166
|
-
}, z.core.$strip>>;
|
|
167
|
-
page: z.ZodObject<{
|
|
168
|
-
size: z.ZodNumber;
|
|
169
|
-
totalPages: z.ZodNumber;
|
|
170
|
-
hasMore: z.ZodBoolean;
|
|
171
|
-
}, z.core.$strip>;
|
|
172
|
-
}, z.core.$strip>;
|
|
173
|
-
export declare const DeploymentTargetListResponseSchema: z.ZodObject<{
|
|
174
|
-
data: z.ZodArray<z.ZodObject<{
|
|
175
|
-
id: z.ZodString;
|
|
176
|
-
orgId: z.ZodString;
|
|
177
|
-
name: z.ZodString;
|
|
178
|
-
provider: z.ZodEnum<{
|
|
179
|
-
aws: "aws";
|
|
180
|
-
gcp: "gcp";
|
|
181
|
-
azure: "azure";
|
|
182
|
-
byoc: "byoc";
|
|
183
|
-
}>;
|
|
184
|
-
environment: z.ZodEnum<{
|
|
185
|
-
production: "production";
|
|
186
|
-
development: "development";
|
|
187
|
-
staging: "staging";
|
|
188
|
-
}>;
|
|
189
|
-
region: z.ZodNullable<z.ZodString>;
|
|
190
|
-
integrationInstallationId: z.ZodNullable<z.ZodString>;
|
|
191
|
-
isActive: z.ZodBoolean;
|
|
192
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
193
|
-
createdAt: z.ZodString;
|
|
194
|
-
updatedAt: z.ZodString;
|
|
195
|
-
}, z.core.$strip>>;
|
|
196
|
-
page: z.ZodObject<{
|
|
197
|
-
size: z.ZodNumber;
|
|
198
|
-
totalPages: z.ZodNumber;
|
|
199
|
-
hasMore: z.ZodBoolean;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
}, z.core.$strip>;
|
|
202
|
-
export declare const DeploymentEventListResponseSchema: z.ZodObject<{
|
|
203
|
-
data: z.ZodArray<z.ZodObject<{
|
|
204
|
-
id: z.ZodString;
|
|
205
|
-
deploymentId: z.ZodString;
|
|
206
|
-
providerEventId: z.ZodString;
|
|
207
|
-
eventType: z.ZodString;
|
|
208
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
209
|
-
occurredAt: z.ZodString;
|
|
210
|
-
createdAt: z.ZodString;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
page: z.ZodObject<{
|
|
213
|
-
size: z.ZodNumber;
|
|
214
|
-
totalPages: z.ZodNumber;
|
|
215
|
-
hasMore: z.ZodBoolean;
|
|
216
|
-
}, z.core.$strip>;
|
|
217
|
-
}, z.core.$strip>;
|
|
218
|
-
export type DeploymentProvider = z.infer<typeof DeploymentProviderSchema>;
|
|
219
|
-
export type DeploymentEnvironment = z.infer<typeof DeploymentEnvironmentSchema>;
|
|
220
|
-
export type DeploymentTargetStatus = z.infer<typeof DeploymentTargetStatusSchema>;
|
|
221
|
-
export type DeploymentStatus = z.infer<typeof DeploymentStatusSchema>;
|
|
222
|
-
export type AwsDeploymentTargetConfig = z.infer<typeof AwsDeploymentTargetConfigSchema>;
|
|
223
|
-
export type GcpDeploymentTargetConfig = z.infer<typeof GcpDeploymentTargetConfigSchema>;
|
|
224
|
-
export type AzureDeploymentTargetConfig = z.infer<typeof AzureDeploymentTargetConfigSchema>;
|
|
225
|
-
export type DeploymentTarget = z.infer<typeof DeploymentTargetSchema>;
|
|
226
|
-
export type Deployment = z.infer<typeof DeploymentSchema>;
|
|
227
|
-
export type DeploymentEvent = z.infer<typeof DeploymentEventSchema>;
|
|
228
|
-
export type DeploymentListResponse = z.infer<typeof DeploymentListResponseSchema>;
|
|
229
|
-
export type DeploymentTargetListResponse = z.infer<typeof DeploymentTargetListResponseSchema>;
|
|
230
|
-
export type DeploymentEventListResponse = z.infer<typeof DeploymentEventListResponseSchema>;
|
|
231
|
-
//# sourceMappingURL=domain.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domain.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/deployments/domain.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,wBAAwB;;;;;EAA0C,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;;EAItC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;EAAiC,CAAC;AAE3E,eAAO,MAAM,sBAAsB;;;;;;;;;;EAUjC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;kBAiBjC,CAAC;AAEZ,eAAO,MAAM,+BAA+B;;;;;;;kBASjC,CAAC;AAEZ,eAAO,MAAM,iCAAiC;;;;;;;;;kBAWnC,CAAC;AAEZ,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;iBAYjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;iBAQhC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB3B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deployments Domain Schema Definitions
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { IdentifierSchema, UUIDSchema, IsoDateStringSchema, NullableIsoDateStringSchema, PaginationMetaSchema, } from '../common.js';
|
|
6
|
-
export const DeploymentProviderSchema = z.enum(['aws', 'gcp', 'azure', 'byoc']);
|
|
7
|
-
export const DeploymentEnvironmentSchema = z.enum([
|
|
8
|
-
'development',
|
|
9
|
-
'staging',
|
|
10
|
-
'production',
|
|
11
|
-
]);
|
|
12
|
-
export const DeploymentTargetStatusSchema = z.enum(['active', 'inactive']);
|
|
13
|
-
export const DeploymentStatusSchema = z.enum([
|
|
14
|
-
'queued',
|
|
15
|
-
'awaiting_approval',
|
|
16
|
-
'running',
|
|
17
|
-
'verifying',
|
|
18
|
-
'rollback_in_progress',
|
|
19
|
-
'succeeded',
|
|
20
|
-
'failed',
|
|
21
|
-
'rolled_back',
|
|
22
|
-
'canceled',
|
|
23
|
-
]);
|
|
24
|
-
export const AwsDeploymentTargetConfigSchema = z
|
|
25
|
-
.object({
|
|
26
|
-
roleArn: z.string().min(1),
|
|
27
|
-
externalId: z.string().min(8),
|
|
28
|
-
accountId: z.string().regex(/^\d{12}$/u),
|
|
29
|
-
region: z.string().min(1).max(64).optional(),
|
|
30
|
-
codedeployApplicationName: z.string().min(1),
|
|
31
|
-
codedeployDeploymentGroupName: z.string().min(1),
|
|
32
|
-
artifactBucket: z.string().min(3),
|
|
33
|
-
artifactKeyPrefix: z.string().min(1),
|
|
34
|
-
ecrRepositoryUri: z.string().min(1),
|
|
35
|
-
eventHmacSecret: z.string().min(32),
|
|
36
|
-
kmsKeyId: z.string().min(1).optional(),
|
|
37
|
-
containerName: z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_.-]{1,126}$/u).optional(),
|
|
38
|
-
hostPort: z.number().int().min(1).max(65535).optional(),
|
|
39
|
-
containerPort: z.number().int().min(1).max(65535).optional(),
|
|
40
|
-
})
|
|
41
|
-
.strict();
|
|
42
|
-
export const GcpDeploymentTargetConfigSchema = z
|
|
43
|
-
.object({
|
|
44
|
-
projectId: z.string().min(6).max(30),
|
|
45
|
-
region: z.string().min(1).max(64),
|
|
46
|
-
cloudRunService: z.string().min(1).max(63),
|
|
47
|
-
artifactRepositoryUri: z.string().min(1),
|
|
48
|
-
eventHmacSecret: z.string().min(32),
|
|
49
|
-
containerName: z.string().min(1).max(63).optional(),
|
|
50
|
-
})
|
|
51
|
-
.strict();
|
|
52
|
-
export const AzureDeploymentTargetConfigSchema = z
|
|
53
|
-
.object({
|
|
54
|
-
subscriptionId: z.string().uuid(),
|
|
55
|
-
tenantId: z.string().uuid().optional(),
|
|
56
|
-
location: z.string().min(1).max(64),
|
|
57
|
-
resourceGroupName: z.string().min(1).max(90),
|
|
58
|
-
containerAppName: z.string().min(1).max(63),
|
|
59
|
-
acrRepositoryUri: z.string().min(1),
|
|
60
|
-
eventHmacSecret: z.string().min(32),
|
|
61
|
-
containerName: z.string().min(1).max(63).optional(),
|
|
62
|
-
})
|
|
63
|
-
.strict();
|
|
64
|
-
export const DeploymentTargetSchema = z.object({
|
|
65
|
-
id: UUIDSchema,
|
|
66
|
-
orgId: IdentifierSchema,
|
|
67
|
-
name: z.string().min(1).max(120),
|
|
68
|
-
provider: DeploymentProviderSchema,
|
|
69
|
-
environment: DeploymentEnvironmentSchema,
|
|
70
|
-
region: z.string().min(1).max(64).nullable(),
|
|
71
|
-
integrationInstallationId: UUIDSchema.nullable(),
|
|
72
|
-
isActive: z.boolean(),
|
|
73
|
-
createdBy: UUIDSchema.nullable(),
|
|
74
|
-
createdAt: IsoDateStringSchema,
|
|
75
|
-
updatedAt: IsoDateStringSchema,
|
|
76
|
-
});
|
|
77
|
-
export const DeploymentEventSchema = z.object({
|
|
78
|
-
id: UUIDSchema,
|
|
79
|
-
deploymentId: UUIDSchema,
|
|
80
|
-
providerEventId: z.string().min(1),
|
|
81
|
-
eventType: z.string().min(1),
|
|
82
|
-
payload: z.record(z.string(), z.unknown()),
|
|
83
|
-
occurredAt: IsoDateStringSchema,
|
|
84
|
-
createdAt: IsoDateStringSchema,
|
|
85
|
-
});
|
|
86
|
-
export const DeploymentSchema = z.object({
|
|
87
|
-
id: UUIDSchema,
|
|
88
|
-
orgId: IdentifierSchema,
|
|
89
|
-
releaseId: UUIDSchema.nullable(),
|
|
90
|
-
targetId: UUIDSchema,
|
|
91
|
-
provider: DeploymentProviderSchema,
|
|
92
|
-
status: DeploymentStatusSchema,
|
|
93
|
-
statusReason: z.string().nullable(),
|
|
94
|
-
approvalRequestId: UUIDSchema.nullable(),
|
|
95
|
-
codedeployDeploymentId: z.string().nullable(),
|
|
96
|
-
artifactS3Uri: z.string().nullable(),
|
|
97
|
-
artifactSha256: z.string().length(64).nullable(),
|
|
98
|
-
imageUri: z.string(),
|
|
99
|
-
imageDigest: z.string().regex(/^sha256:[a-f0-9]{64}$/u),
|
|
100
|
-
startedAt: NullableIsoDateStringSchema,
|
|
101
|
-
completedAt: NullableIsoDateStringSchema,
|
|
102
|
-
createdBy: UUIDSchema.nullable(),
|
|
103
|
-
createdAt: IsoDateStringSchema,
|
|
104
|
-
updatedAt: IsoDateStringSchema,
|
|
105
|
-
});
|
|
106
|
-
export const DeploymentListResponseSchema = z.object({
|
|
107
|
-
data: z.array(DeploymentSchema),
|
|
108
|
-
page: PaginationMetaSchema,
|
|
109
|
-
});
|
|
110
|
-
export const DeploymentTargetListResponseSchema = z.object({
|
|
111
|
-
data: z.array(DeploymentTargetSchema),
|
|
112
|
-
page: PaginationMetaSchema,
|
|
113
|
-
});
|
|
114
|
-
export const DeploymentEventListResponseSchema = z.object({
|
|
115
|
-
data: z.array(DeploymentEventSchema),
|
|
116
|
-
page: PaginationMetaSchema,
|
|
117
|
-
});
|
|
118
|
-
//# sourceMappingURL=domain.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dom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chema, AwsDeploymentTargetConfigSchema, GcpDeploymentTargetConfigSchema, AzureDeploymentTargetConfigSchema, DeploymentTargetSchema, DeploymentEventSchema, DeploymentSchema, type DeploymentProvider, type DeploymentEnvironment, type DeploymentTargetStatus, type DeploymentStatus, type AwsDeploymentTargetConfig, type GcpDeploymentTargetConfig, type AzureDeploymentTargetConfig, type DeploymentTarget, type DeploymentEvent, type Deployment, } from './domain.schema.js';
|
|
5
|
-
export { DeploymentTargetIdParamSchema, DeploymentIdParamSchema, CreateDeploymentTargetSchema, CreateAwsDeploymentTargetSchema, CreateGcpDeploymentTargetSchema, CreateAzureDeploymentTargetSchema, CreateByocDeploymentTargetSchema, ListDeploymentTargetsQuerySchema, ValidateDeploymentTargetSchema, CreateDeploymentSchema, ListDeploymentsQuerySchema, ListDeploymentEventsQuerySchema, DeploymentIngestEventHeadersSchema, DeploymentIngestEventSchema, type DeploymentTargetIdParam, type DeploymentIdParam, type CreateDeploymentTargetInput, type CreateAwsDeploymentTargetInput, type CreateGcpDeploymentTargetInput, type CreateAzureDeploymentTargetInput, type CreateByocDeploymentTargetInput, type ListDeploymentTargetsQuery, type ValidateDeploymentTargetInput, type CreateDeploymentInput, type ListDeploymentsQuery, type ListDeploymentEventsQuery, type DeploymentIngestEventHeaders, type DeploymentIngestEventInput, } from './request.schema.js';
|
|
6
|
-
export { DeploymentTargetResponseSchema, DeploymentTargetListResponseSchema, DeploymentValidationCheckSchema, DeploymentTargetValidationResponseSchema, DeploymentResponseSchema, CreateDeploymentAcceptedResponseSchema, DeploymentListResponseSchema, DeploymentEventListResponseSchema, AwsBootstrapTemplateResponseSchema, DeploymentIngestEventResponseSchema, type DeploymentTargetResponse, type DeploymentTargetListResponse, type DeploymentValidationCheck, type DeploymentTargetValidationResponse, type DeploymentResponse, type CreateDeploymentAcceptedResponse, type DeploymentListResponse, type DeploymentEventListResponse, type AwsBootstrapTemplateResponse, type DeploymentIngestEventResponse, } from './response.schema.js';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/definitions/deployments/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,EAC/B,+BAA+B,EAC/B,iCAAiC,EACjC,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,UAAU,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,kCAAkC,EAClC,2BAA2B,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,+BAA+B,EAC/B,wCAAwC,EACxC,wBAAwB,EACxB,sCAAsC,EACtC,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,mCAAmC,EACnC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,GACnC,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deployments Domain Schemas
|
|
3
|
-
*/
|
|
4
|
-
export { DeploymentProviderSchema, DeploymentEnvironmentSchema, DeploymentTargetStatusSchema, DeploymentStatusSchema, AwsDeploymentTargetConfigSchema, GcpDeploymentTargetConfigSchema, AzureDeploymentTargetConfigSchema, DeploymentTargetSchema, DeploymentEventSchema, DeploymentSchema, } from './domain.schema.js';
|
|
5
|
-
export { DeploymentTargetIdParamSchema, DeploymentIdParamSchema, CreateDeploymentTargetSchema, CreateAwsDeploymentTargetSchema, CreateGcpDeploymentTargetSchema, CreateAzureDeploymentTargetSchema, CreateByocDeploymentTargetSchema, ListDeploymentTargetsQuerySchema, ValidateDeploymentTargetSchema, CreateDeploymentSchema, ListDeploymentsQuerySchema, ListDeploymentEventsQuerySchema, DeploymentIngestEventHeadersSchema, DeploymentIngestEventSchema, } from './request.schema.js';
|
|
6
|
-
export { DeploymentTargetResponseSchema, DeploymentTargetListResponseSchema, DeploymentValidationCheckSchema, DeploymentTargetValidationResponseSchema, DeploymentResponseSchema, CreateDeploymentAcceptedResponseSchema, DeploymentListResponseSchema, DeploymentEventListResponseSchema, AwsBootstrapTemplateResponseSchema, DeploymentIngestEventResponseSchema, } from './response.schema.js';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definitions/deployments/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,EAC/B,+BAA+B,EAC/B,iCAAiC,EACjC,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,GAWjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,kCAAkC,EAClC,2BAA2B,GAe5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,+BAA+B,EAC/B,wCAAwC,EACxC,wBAAwB,EACxB,sCAAsC,EACtC,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,mCAAmC,GAWpC,MAAM,sBAAsB,CAAC"}
|