@apollo-deploy/schemas 1.1.0 → 1.3.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 +8 -2
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +8 -4
- 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/settings/index.d.ts +1 -1
- package/dist/definitions/settings/index.d.ts.map +1 -1
- package/dist/definitions/settings/index.js +1 -1
- package/dist/definitions/settings/index.js.map +1 -1
- package/dist/definitions/settings/response.schema.d.ts +67 -8
- package/dist/definitions/settings/response.schema.d.ts.map +1 -1
- package/dist/definitions/settings/response.schema.js +27 -1
- package/dist/definitions/settings/response.schema.js.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/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.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
|
@@ -16,9 +16,9 @@ export declare const ReleaseResponseSchema: z.ZodObject<{
|
|
|
16
16
|
versionCode: z.ZodString;
|
|
17
17
|
versionName: z.ZodString;
|
|
18
18
|
status: z.ZodEnum<{
|
|
19
|
-
approved: "approved";
|
|
20
19
|
draft: "draft";
|
|
21
20
|
inReview: "inReview";
|
|
21
|
+
approved: "approved";
|
|
22
22
|
scheduled: "scheduled";
|
|
23
23
|
live: "live";
|
|
24
24
|
rolledBack: "rolledBack";
|
|
@@ -30,6 +30,7 @@ export declare const ReleaseResponseSchema: z.ZodObject<{
|
|
|
30
30
|
pipelineVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
currentStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
stageEnteredAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>>>;
|
|
33
|
+
rolloutStrategy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
34
|
createdByUser: z.ZodObject<{
|
|
34
35
|
id: z.ZodString;
|
|
35
36
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -49,9 +50,9 @@ export declare const ReleaseResponseSchema: z.ZodObject<{
|
|
|
49
50
|
buildNumber: z.ZodString;
|
|
50
51
|
storeVersionRef: z.ZodNullable<z.ZodString>;
|
|
51
52
|
status: z.ZodEnum<{
|
|
52
|
-
approved: "approved";
|
|
53
53
|
draft: "draft";
|
|
54
54
|
inReview: "inReview";
|
|
55
|
+
approved: "approved";
|
|
55
56
|
scheduled: "scheduled";
|
|
56
57
|
live: "live";
|
|
57
58
|
failed: "failed";
|
|
@@ -76,9 +77,9 @@ export declare const ReleaseListEnvelopeSchema: z.ZodObject<{
|
|
|
76
77
|
versionCode: z.ZodString;
|
|
77
78
|
versionName: z.ZodString;
|
|
78
79
|
status: z.ZodEnum<{
|
|
79
|
-
approved: "approved";
|
|
80
80
|
draft: "draft";
|
|
81
81
|
inReview: "inReview";
|
|
82
|
+
approved: "approved";
|
|
82
83
|
scheduled: "scheduled";
|
|
83
84
|
live: "live";
|
|
84
85
|
rolledBack: "rolledBack";
|
|
@@ -90,6 +91,7 @@ export declare const ReleaseListEnvelopeSchema: z.ZodObject<{
|
|
|
90
91
|
pipelineVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
92
|
currentStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
93
|
stageEnteredAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>>>;
|
|
94
|
+
rolloutStrategy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
95
|
createdByUser: z.ZodObject<{
|
|
94
96
|
id: z.ZodString;
|
|
95
97
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -109,9 +111,9 @@ export declare const ReleaseListEnvelopeSchema: z.ZodObject<{
|
|
|
109
111
|
buildNumber: z.ZodString;
|
|
110
112
|
storeVersionRef: z.ZodNullable<z.ZodString>;
|
|
111
113
|
status: z.ZodEnum<{
|
|
112
|
-
approved: "approved";
|
|
113
114
|
draft: "draft";
|
|
114
115
|
inReview: "inReview";
|
|
116
|
+
approved: "approved";
|
|
115
117
|
scheduled: "scheduled";
|
|
116
118
|
live: "live";
|
|
117
119
|
failed: "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/releases/response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/releases/response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,E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AC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AACxG,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { SettingScopeSchema, SettingTypeSchema, SettingSourceSchema, SettingValueSchema, SettingDefinitionSchema, type SettingScope, type SettingType, type SettingSource, type SettingValue, type SettingDefinition, } from './domain.schema.js';
|
|
5
5
|
export { SettingKeyParamSchema, OrgSettingParamsSchema, UpsertSettingBodySchema, BulkUpsertSettingsBodySchema, ListSettingsQuerySchema, type SettingKeyParam, type OrgSettingParams, type UpsertSettingBody, type BulkUpsertSettingsBody, type ListSettingsQuery, } from './request.schema.js';
|
|
6
|
-
export { SettingResponseSchema, SettingsListResponseSchema, CombinedSettingsResponseSchema, BulkUpsertResponseSchema, type SettingResponse, type SettingsListResponse, type CombinedSettingsResponse, type BulkUpsertResponse, } from './response.schema.js';
|
|
6
|
+
export { SettingResponseSchema, SettingsListResponseSchema, CombinedSettingsResponseSchema, BulkUpsertResponseSchema, SettingsRegistryItemSchema, SettingsRegistryResponseSchema, type SettingResponse, type SettingsListResponse, type CombinedSettingsResponse, type BulkUpsertResponse, type SettingsRegistryItem, type SettingsRegistryResponse, } from './response.schema.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/definitions/settings/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,EACxB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/definitions/settings/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,GAC9B,MAAM,sBAAsB,CAAC"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { SettingScopeSchema, SettingTypeSchema, SettingSourceSchema, SettingValueSchema, SettingDefinitionSchema, } from './domain.schema.js';
|
|
5
5
|
export { SettingKeyParamSchema, OrgSettingParamsSchema, UpsertSettingBodySchema, BulkUpsertSettingsBodySchema, ListSettingsQuerySchema, } from './request.schema.js';
|
|
6
|
-
export { SettingResponseSchema, SettingsListResponseSchema, CombinedSettingsResponseSchema, BulkUpsertResponseSchema, } from './response.schema.js';
|
|
6
|
+
export { SettingResponseSchema, SettingsListResponseSchema, CombinedSettingsResponseSchema, BulkUpsertResponseSchema, SettingsRegistryItemSchema, SettingsRegistryResponseSchema, } from './response.schema.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definitions/settings/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,GAMxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,GAMxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definitions/settings/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,GAMxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,GAMxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,GAO/B,MAAM,sBAAsB,CAAC"}
|
|
@@ -6,12 +6,12 @@ export declare const SettingResponseSchema: z.ZodObject<{
|
|
|
6
6
|
key: z.ZodString;
|
|
7
7
|
value: z.ZodUnknown;
|
|
8
8
|
scope: z.ZodEnum<{
|
|
9
|
-
user: "user";
|
|
10
9
|
org: "org";
|
|
10
|
+
user: "user";
|
|
11
11
|
}>;
|
|
12
12
|
source: z.ZodEnum<{
|
|
13
|
-
user: "user";
|
|
14
13
|
org: "org";
|
|
14
|
+
user: "user";
|
|
15
15
|
system_default: "system_default";
|
|
16
16
|
}>;
|
|
17
17
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -22,12 +22,12 @@ export declare const SettingsListResponseSchema: z.ZodObject<{
|
|
|
22
22
|
key: z.ZodString;
|
|
23
23
|
value: z.ZodUnknown;
|
|
24
24
|
scope: z.ZodEnum<{
|
|
25
|
-
user: "user";
|
|
26
25
|
org: "org";
|
|
26
|
+
user: "user";
|
|
27
27
|
}>;
|
|
28
28
|
source: z.ZodEnum<{
|
|
29
|
-
user: "user";
|
|
30
29
|
org: "org";
|
|
30
|
+
user: "user";
|
|
31
31
|
system_default: "system_default";
|
|
32
32
|
}>;
|
|
33
33
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -43,12 +43,12 @@ export declare const CombinedSettingsResponseSchema: z.ZodObject<{
|
|
|
43
43
|
key: z.ZodString;
|
|
44
44
|
value: z.ZodUnknown;
|
|
45
45
|
scope: z.ZodEnum<{
|
|
46
|
-
user: "user";
|
|
47
46
|
org: "org";
|
|
47
|
+
user: "user";
|
|
48
48
|
}>;
|
|
49
49
|
source: z.ZodEnum<{
|
|
50
|
-
user: "user";
|
|
51
50
|
org: "org";
|
|
51
|
+
user: "user";
|
|
52
52
|
system_default: "system_default";
|
|
53
53
|
}>;
|
|
54
54
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -58,12 +58,12 @@ export declare const CombinedSettingsResponseSchema: z.ZodObject<{
|
|
|
58
58
|
key: z.ZodString;
|
|
59
59
|
value: z.ZodUnknown;
|
|
60
60
|
scope: z.ZodEnum<{
|
|
61
|
-
user: "user";
|
|
62
61
|
org: "org";
|
|
62
|
+
user: "user";
|
|
63
63
|
}>;
|
|
64
64
|
source: z.ZodEnum<{
|
|
65
|
-
user: "user";
|
|
66
65
|
org: "org";
|
|
66
|
+
user: "user";
|
|
67
67
|
system_default: "system_default";
|
|
68
68
|
}>;
|
|
69
69
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -89,4 +89,63 @@ export type SettingResponse = z.infer<typeof SettingResponseSchema>;
|
|
|
89
89
|
export type SettingsListResponse = z.infer<typeof SettingsListResponseSchema>;
|
|
90
90
|
export type CombinedSettingsResponse = z.infer<typeof CombinedSettingsResponseSchema>;
|
|
91
91
|
export type BulkUpsertResponse = z.infer<typeof BulkUpsertResponseSchema>;
|
|
92
|
+
export declare const SettingsRegistryItemSchema: z.ZodObject<{
|
|
93
|
+
key: z.ZodString;
|
|
94
|
+
scope: z.ZodEnum<{
|
|
95
|
+
org: "org";
|
|
96
|
+
user: "user";
|
|
97
|
+
}>;
|
|
98
|
+
type: z.ZodEnum<{
|
|
99
|
+
string: "string";
|
|
100
|
+
number: "number";
|
|
101
|
+
boolean: "boolean";
|
|
102
|
+
enum: "enum";
|
|
103
|
+
json: "json";
|
|
104
|
+
}>;
|
|
105
|
+
defaultValue: z.ZodUnknown;
|
|
106
|
+
description: z.ZodString;
|
|
107
|
+
enumValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
category: z.ZodString;
|
|
110
|
+
minRole: z.ZodOptional<z.ZodString>;
|
|
111
|
+
requiredPlans: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
112
|
+
free: "free";
|
|
113
|
+
pro: "pro";
|
|
114
|
+
team: "team";
|
|
115
|
+
enterprise: "enterprise";
|
|
116
|
+
}>>>;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
export declare const SettingsRegistryResponseSchema: z.ZodObject<{
|
|
119
|
+
settings: z.ZodArray<z.ZodObject<{
|
|
120
|
+
key: z.ZodString;
|
|
121
|
+
scope: z.ZodEnum<{
|
|
122
|
+
org: "org";
|
|
123
|
+
user: "user";
|
|
124
|
+
}>;
|
|
125
|
+
type: z.ZodEnum<{
|
|
126
|
+
string: "string";
|
|
127
|
+
number: "number";
|
|
128
|
+
boolean: "boolean";
|
|
129
|
+
enum: "enum";
|
|
130
|
+
json: "json";
|
|
131
|
+
}>;
|
|
132
|
+
defaultValue: z.ZodUnknown;
|
|
133
|
+
description: z.ZodString;
|
|
134
|
+
enumValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
category: z.ZodString;
|
|
137
|
+
minRole: z.ZodOptional<z.ZodString>;
|
|
138
|
+
requiredPlans: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
139
|
+
free: "free";
|
|
140
|
+
pro: "pro";
|
|
141
|
+
team: "team";
|
|
142
|
+
enterprise: "enterprise";
|
|
143
|
+
}>>>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
metadata: z.ZodObject<{
|
|
146
|
+
totalCount: z.ZodNumber;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
export type SettingsRegistryItem = z.infer<typeof SettingsRegistryItemSchema>;
|
|
150
|
+
export type SettingsRegistryResponse = z.infer<typeof SettingsRegistryResponseSchema>;
|
|
92
151
|
//# sourceMappingURL=response.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/settings/response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/settings/response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;kBASvB,CAAC;AAEZ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;kBAU5B,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWhC,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;kBAoB1B,CAAC;AAEZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;kBAe5B,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAShC,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { SettingScopeSchema, SettingSourceSchema, } from './domain.schema.js';
|
|
2
|
+
import { SettingScopeSchema, SettingSourceSchema, SettingTypeSchema, } from './domain.schema.js';
|
|
3
3
|
/**
|
|
4
4
|
* Settings Response Schemas
|
|
5
5
|
*/
|
|
@@ -53,4 +53,30 @@ export const BulkUpsertResponseSchema = z
|
|
|
53
53
|
.strict()),
|
|
54
54
|
})
|
|
55
55
|
.strict();
|
|
56
|
+
export const SettingsRegistryItemSchema = z
|
|
57
|
+
.object({
|
|
58
|
+
key: z.string(),
|
|
59
|
+
scope: SettingScopeSchema,
|
|
60
|
+
type: SettingTypeSchema,
|
|
61
|
+
defaultValue: z.unknown(),
|
|
62
|
+
description: z.string(),
|
|
63
|
+
enumValues: z.array(z.string()).optional(),
|
|
64
|
+
sensitive: z.boolean().optional(),
|
|
65
|
+
category: z.string(),
|
|
66
|
+
minRole: z.string().optional(),
|
|
67
|
+
requiredPlans: z
|
|
68
|
+
.array(z.enum(['free', 'pro', 'team', 'enterprise']))
|
|
69
|
+
.optional(),
|
|
70
|
+
})
|
|
71
|
+
.strict();
|
|
72
|
+
export const SettingsRegistryResponseSchema = z
|
|
73
|
+
.object({
|
|
74
|
+
settings: z.array(SettingsRegistryItemSchema),
|
|
75
|
+
metadata: z
|
|
76
|
+
.object({
|
|
77
|
+
totalCount: z.number(),
|
|
78
|
+
})
|
|
79
|
+
.strict(),
|
|
80
|
+
})
|
|
81
|
+
.strict();
|
|
56
82
|
//# sourceMappingURL=response.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.js","sourceRoot":"","sources":["../../../src/definitions/settings/response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"response.schema.js","sourceRoot":"","sources":["../../../src/definitions/settings/response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KAC5C,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC;IAC7C,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC;QACN,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;KACvB,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
export declare const DataSourceSchema: z.ZodEnum<{
|
|
9
9
|
custom: "custom";
|
|
10
|
-
logs: "logs";
|
|
11
10
|
sentry: "sentry";
|
|
12
11
|
datadog: "datadog";
|
|
13
12
|
newrelic: "newrelic";
|
|
13
|
+
logs: "logs";
|
|
14
14
|
}>;
|
|
15
15
|
export declare const SignalGroupTypeSchema: z.ZodEnum<{
|
|
16
16
|
errors: "errors";
|
|
17
|
-
usage: "usage";
|
|
18
17
|
logs: "logs";
|
|
19
18
|
stability: "stability";
|
|
20
19
|
performance: "performance";
|
|
20
|
+
usage: "usage";
|
|
21
21
|
infra: "infra";
|
|
22
22
|
}>;
|
|
23
23
|
export declare const SignalStatusSchema: z.ZodEnum<{
|
|
24
|
-
warning: "warning";
|
|
25
24
|
critical: "critical";
|
|
26
25
|
healthy: "healthy";
|
|
26
|
+
warning: "warning";
|
|
27
27
|
}>;
|
|
28
28
|
export declare const ReleaseHealthStatusSchema: z.ZodEnum<{
|
|
29
29
|
critical: "critical";
|
|
@@ -32,29 +32,29 @@ export declare const ReleaseHealthStatusSchema: z.ZodEnum<{
|
|
|
32
32
|
}>;
|
|
33
33
|
export declare const GranularitySchema: z.ZodEnum<{
|
|
34
34
|
"1m": "1m";
|
|
35
|
-
"1h": "1h";
|
|
36
|
-
"1d": "1d";
|
|
37
35
|
"5m": "5m";
|
|
38
36
|
"15m": "15m";
|
|
37
|
+
"1h": "1h";
|
|
39
38
|
"6h": "6h";
|
|
39
|
+
"1d": "1d";
|
|
40
40
|
}>;
|
|
41
41
|
export declare const MetricUnitSchema: z.ZodEnum<{
|
|
42
|
-
|
|
42
|
+
"%": "%";
|
|
43
43
|
ms: "ms";
|
|
44
44
|
count: "count";
|
|
45
|
-
"%": "%";
|
|
46
45
|
rps: "rps";
|
|
46
|
+
score: "score";
|
|
47
47
|
}>;
|
|
48
48
|
export declare const TimeWindowSchema: z.ZodObject<{
|
|
49
49
|
start: z.ZodString;
|
|
50
50
|
end: z.ZodString;
|
|
51
51
|
granularity: z.ZodEnum<{
|
|
52
52
|
"1m": "1m";
|
|
53
|
-
"1h": "1h";
|
|
54
|
-
"1d": "1d";
|
|
55
53
|
"5m": "5m";
|
|
56
54
|
"15m": "15m";
|
|
55
|
+
"1h": "1h";
|
|
57
56
|
"6h": "6h";
|
|
57
|
+
"1d": "1d";
|
|
58
58
|
}>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
export declare const SegmentSchema: z.ZodObject<{
|
|
@@ -93,11 +93,11 @@ export declare const MetricSchema: z.ZodObject<{
|
|
|
93
93
|
label: z.ZodString;
|
|
94
94
|
value: z.ZodNumber;
|
|
95
95
|
unit: z.ZodEnum<{
|
|
96
|
-
|
|
96
|
+
"%": "%";
|
|
97
97
|
ms: "ms";
|
|
98
98
|
count: "count";
|
|
99
|
-
"%": "%";
|
|
100
99
|
rps: "rps";
|
|
100
|
+
score: "score";
|
|
101
101
|
}>;
|
|
102
102
|
baseline: z.ZodObject<{
|
|
103
103
|
value: z.ZodNumber;
|
|
@@ -105,9 +105,9 @@ export declare const MetricSchema: z.ZodObject<{
|
|
|
105
105
|
}, z.core.$strip>;
|
|
106
106
|
trend: z.ZodObject<{
|
|
107
107
|
direction: z.ZodEnum<{
|
|
108
|
-
flat: "flat";
|
|
109
108
|
up: "up";
|
|
110
109
|
down: "down";
|
|
110
|
+
flat: "flat";
|
|
111
111
|
}>;
|
|
112
112
|
changePercent: z.ZodNumber;
|
|
113
113
|
confidence: z.ZodNumber;
|
|
@@ -127,25 +127,25 @@ export declare const MetricSchema: z.ZodObject<{
|
|
|
127
127
|
}, z.core.$strip>>>;
|
|
128
128
|
source: z.ZodEnum<{
|
|
129
129
|
custom: "custom";
|
|
130
|
-
logs: "logs";
|
|
131
130
|
sentry: "sentry";
|
|
132
131
|
datadog: "datadog";
|
|
133
132
|
newrelic: "newrelic";
|
|
133
|
+
logs: "logs";
|
|
134
134
|
}>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
136
|
export declare const SignalGroupSchema: z.ZodObject<{
|
|
137
137
|
type: z.ZodEnum<{
|
|
138
138
|
errors: "errors";
|
|
139
|
-
usage: "usage";
|
|
140
139
|
logs: "logs";
|
|
141
140
|
stability: "stability";
|
|
142
141
|
performance: "performance";
|
|
142
|
+
usage: "usage";
|
|
143
143
|
infra: "infra";
|
|
144
144
|
}>;
|
|
145
145
|
status: z.ZodEnum<{
|
|
146
|
-
warning: "warning";
|
|
147
146
|
critical: "critical";
|
|
148
147
|
healthy: "healthy";
|
|
148
|
+
warning: "warning";
|
|
149
149
|
}>;
|
|
150
150
|
score: z.ZodNumber;
|
|
151
151
|
metrics: z.ZodArray<z.ZodObject<{
|
|
@@ -153,11 +153,11 @@ export declare const SignalGroupSchema: z.ZodObject<{
|
|
|
153
153
|
label: z.ZodString;
|
|
154
154
|
value: z.ZodNumber;
|
|
155
155
|
unit: z.ZodEnum<{
|
|
156
|
-
|
|
156
|
+
"%": "%";
|
|
157
157
|
ms: "ms";
|
|
158
158
|
count: "count";
|
|
159
|
-
"%": "%";
|
|
160
159
|
rps: "rps";
|
|
160
|
+
score: "score";
|
|
161
161
|
}>;
|
|
162
162
|
baseline: z.ZodObject<{
|
|
163
163
|
value: z.ZodNumber;
|
|
@@ -165,9 +165,9 @@ export declare const SignalGroupSchema: z.ZodObject<{
|
|
|
165
165
|
}, z.core.$strip>;
|
|
166
166
|
trend: z.ZodObject<{
|
|
167
167
|
direction: z.ZodEnum<{
|
|
168
|
-
flat: "flat";
|
|
169
168
|
up: "up";
|
|
170
169
|
down: "down";
|
|
170
|
+
flat: "flat";
|
|
171
171
|
}>;
|
|
172
172
|
changePercent: z.ZodNumber;
|
|
173
173
|
confidence: z.ZodNumber;
|
|
@@ -187,10 +187,10 @@ export declare const SignalGroupSchema: z.ZodObject<{
|
|
|
187
187
|
}, z.core.$strip>>>;
|
|
188
188
|
source: z.ZodEnum<{
|
|
189
189
|
custom: "custom";
|
|
190
|
-
logs: "logs";
|
|
191
190
|
sentry: "sentry";
|
|
192
191
|
datadog: "datadog";
|
|
193
192
|
newrelic: "newrelic";
|
|
193
|
+
logs: "logs";
|
|
194
194
|
}>;
|
|
195
195
|
}, z.core.$strip>>;
|
|
196
196
|
}, z.core.$strip>;
|
|
@@ -296,8 +296,8 @@ export declare const IncidentStatusSchema: z.ZodEnum<{
|
|
|
296
296
|
resolved: "resolved";
|
|
297
297
|
}>;
|
|
298
298
|
export declare const IncidentSeveritySchema: z.ZodEnum<{
|
|
299
|
-
warning: "warning";
|
|
300
299
|
critical: "critical";
|
|
300
|
+
warning: "warning";
|
|
301
301
|
}>;
|
|
302
302
|
export declare const IncidentSummarySchema: z.ZodObject<{
|
|
303
303
|
id: z.ZodString;
|
|
@@ -306,8 +306,8 @@ export declare const IncidentSummarySchema: z.ZodObject<{
|
|
|
306
306
|
resolved: "resolved";
|
|
307
307
|
}>;
|
|
308
308
|
severity: z.ZodEnum<{
|
|
309
|
-
warning: "warning";
|
|
310
309
|
critical: "critical";
|
|
310
|
+
warning: "warning";
|
|
311
311
|
}>;
|
|
312
312
|
title: z.ZodString;
|
|
313
313
|
startedAt: z.ZodString;
|
|
@@ -320,10 +320,10 @@ export declare const IncidentSummarySchema: z.ZodObject<{
|
|
|
320
320
|
}, z.core.$strip>>>;
|
|
321
321
|
source: z.ZodEnum<{
|
|
322
322
|
custom: "custom";
|
|
323
|
-
logs: "logs";
|
|
324
323
|
sentry: "sentry";
|
|
325
324
|
datadog: "datadog";
|
|
326
325
|
newrelic: "newrelic";
|
|
326
|
+
logs: "logs";
|
|
327
327
|
}>;
|
|
328
328
|
}, z.core.$strip>;
|
|
329
329
|
export declare const RolloutPhaseSchema: z.ZodEnum<{
|
|
@@ -371,11 +371,11 @@ export declare const SignalsSnapshotSchema: z.ZodObject<{
|
|
|
371
371
|
end: z.ZodString;
|
|
372
372
|
granularity: z.ZodEnum<{
|
|
373
373
|
"1m": "1m";
|
|
374
|
-
"1h": "1h";
|
|
375
|
-
"1d": "1d";
|
|
376
374
|
"5m": "5m";
|
|
377
375
|
"15m": "15m";
|
|
376
|
+
"1h": "1h";
|
|
378
377
|
"6h": "6h";
|
|
378
|
+
"1d": "1d";
|
|
379
379
|
}>;
|
|
380
380
|
}, z.core.$strip>;
|
|
381
381
|
healthScore: z.ZodNumber;
|
|
@@ -387,16 +387,16 @@ export declare const SignalsSnapshotSchema: z.ZodObject<{
|
|
|
387
387
|
signals: z.ZodArray<z.ZodObject<{
|
|
388
388
|
type: z.ZodEnum<{
|
|
389
389
|
errors: "errors";
|
|
390
|
-
usage: "usage";
|
|
391
390
|
logs: "logs";
|
|
392
391
|
stability: "stability";
|
|
393
392
|
performance: "performance";
|
|
393
|
+
usage: "usage";
|
|
394
394
|
infra: "infra";
|
|
395
395
|
}>;
|
|
396
396
|
status: z.ZodEnum<{
|
|
397
|
-
warning: "warning";
|
|
398
397
|
critical: "critical";
|
|
399
398
|
healthy: "healthy";
|
|
399
|
+
warning: "warning";
|
|
400
400
|
}>;
|
|
401
401
|
score: z.ZodNumber;
|
|
402
402
|
metrics: z.ZodArray<z.ZodObject<{
|
|
@@ -404,11 +404,11 @@ export declare const SignalsSnapshotSchema: z.ZodObject<{
|
|
|
404
404
|
label: z.ZodString;
|
|
405
405
|
value: z.ZodNumber;
|
|
406
406
|
unit: z.ZodEnum<{
|
|
407
|
-
|
|
407
|
+
"%": "%";
|
|
408
408
|
ms: "ms";
|
|
409
409
|
count: "count";
|
|
410
|
-
"%": "%";
|
|
411
410
|
rps: "rps";
|
|
411
|
+
score: "score";
|
|
412
412
|
}>;
|
|
413
413
|
baseline: z.ZodObject<{
|
|
414
414
|
value: z.ZodNumber;
|
|
@@ -416,9 +416,9 @@ export declare const SignalsSnapshotSchema: z.ZodObject<{
|
|
|
416
416
|
}, z.core.$strip>;
|
|
417
417
|
trend: z.ZodObject<{
|
|
418
418
|
direction: z.ZodEnum<{
|
|
419
|
-
flat: "flat";
|
|
420
419
|
up: "up";
|
|
421
420
|
down: "down";
|
|
421
|
+
flat: "flat";
|
|
422
422
|
}>;
|
|
423
423
|
changePercent: z.ZodNumber;
|
|
424
424
|
confidence: z.ZodNumber;
|
|
@@ -438,10 +438,10 @@ export declare const SignalsSnapshotSchema: z.ZodObject<{
|
|
|
438
438
|
}, z.core.$strip>>>;
|
|
439
439
|
source: z.ZodEnum<{
|
|
440
440
|
custom: "custom";
|
|
441
|
-
logs: "logs";
|
|
442
441
|
sentry: "sentry";
|
|
443
442
|
datadog: "datadog";
|
|
444
443
|
newrelic: "newrelic";
|
|
444
|
+
logs: "logs";
|
|
445
445
|
}>;
|
|
446
446
|
}, z.core.$strip>>;
|
|
447
447
|
}, z.core.$strip>>;
|
|
@@ -503,8 +503,8 @@ export declare const SignalsSnapshotSchema: z.ZodObject<{
|
|
|
503
503
|
resolved: "resolved";
|
|
504
504
|
}>;
|
|
505
505
|
severity: z.ZodEnum<{
|
|
506
|
-
warning: "warning";
|
|
507
506
|
critical: "critical";
|
|
507
|
+
warning: "warning";
|
|
508
508
|
}>;
|
|
509
509
|
title: z.ZodString;
|
|
510
510
|
startedAt: z.ZodString;
|
|
@@ -517,10 +517,10 @@ export declare const SignalsSnapshotSchema: z.ZodObject<{
|
|
|
517
517
|
}, z.core.$strip>>>;
|
|
518
518
|
source: z.ZodEnum<{
|
|
519
519
|
custom: "custom";
|
|
520
|
-
logs: "logs";
|
|
521
520
|
sentry: "sentry";
|
|
522
521
|
datadog: "datadog";
|
|
523
522
|
newrelic: "newrelic";
|
|
523
|
+
logs: "logs";
|
|
524
524
|
}>;
|
|
525
525
|
}, z.core.$strip>>;
|
|
526
526
|
recommendations: z.ZodArray<z.ZodObject<{
|
|
@@ -567,13 +567,22 @@ export declare const SignalsSnapshotSchema: z.ZodObject<{
|
|
|
567
567
|
sampleSize: z.ZodNumber;
|
|
568
568
|
dataSources: z.ZodArray<z.ZodEnum<{
|
|
569
569
|
custom: "custom";
|
|
570
|
-
logs: "logs";
|
|
571
570
|
sentry: "sentry";
|
|
572
571
|
datadog: "datadog";
|
|
573
572
|
newrelic: "newrelic";
|
|
573
|
+
logs: "logs";
|
|
574
574
|
}>>;
|
|
575
575
|
computedAt: z.ZodString;
|
|
576
576
|
staleAfter: z.ZodString;
|
|
577
|
+
activeInstalls: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
rolloutPhase: z.ZodOptional<z.ZodEnum<{
|
|
579
|
+
canary: "canary";
|
|
580
|
+
scaling: "scaling";
|
|
581
|
+
full: "full";
|
|
582
|
+
}>>;
|
|
583
|
+
providerDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
584
|
+
thresholdScaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
585
|
+
providerErrors: z.ZodOptional<z.ZodNumber>;
|
|
577
586
|
}, z.core.$strip>;
|
|
578
587
|
}, z.core.$strip>;
|
|
579
588
|
export declare const SignalWebhookPayloadSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/signals/domain.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"domain.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/signals/domain.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB;;;;;;EAM3B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;EA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AAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* signal groups, metrics, anomalies, correlations, recommendations, incidents.
|
|
6
6
|
*/
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
+
import { IdentifierSchema } from '../common.js';
|
|
8
9
|
// ---------------------------------------------------------------------------
|
|
9
10
|
// Primitive / shared enums
|
|
10
11
|
// ---------------------------------------------------------------------------
|
|
@@ -203,8 +204,8 @@ export const RolloutContextSchema = z.object({
|
|
|
203
204
|
export const SignalsSnapshotSchema = z.object({
|
|
204
205
|
id: z.string().uuid(),
|
|
205
206
|
releaseId: z.string().uuid(),
|
|
206
|
-
appId:
|
|
207
|
-
orgId:
|
|
207
|
+
appId: IdentifierSchema,
|
|
208
|
+
orgId: IdentifierSchema,
|
|
208
209
|
environment: z.string(),
|
|
209
210
|
window: TimeWindowSchema,
|
|
210
211
|
healthScore: z.number().int().min(0).max(100),
|
|
@@ -221,6 +222,16 @@ export const SignalsSnapshotSchema = z.object({
|
|
|
221
222
|
dataSources: z.array(DataSourceSchema),
|
|
222
223
|
computedAt: z.string().datetime(),
|
|
223
224
|
staleAfter: z.string().datetime(),
|
|
225
|
+
/** Active device/install count used for error-threshold scaling. */
|
|
226
|
+
activeInstalls: z.number().int().nonnegative().optional(),
|
|
227
|
+
/** Derived rollout phase at computation time (canary / scaling / full). */
|
|
228
|
+
rolloutPhase: RolloutPhaseSchema.optional(),
|
|
229
|
+
/** Wall-clock duration (ms) of the provider metric-fetch step. */
|
|
230
|
+
providerDurationMs: z.number().nonnegative().optional(),
|
|
231
|
+
/** Threshold scale factor applied to count-based error metrics (activeInstalls / 1 000). */
|
|
232
|
+
thresholdScaleFactor: z.number().nonnegative().optional(),
|
|
233
|
+
/** Number of provider errors encountered (0 = all succeeded). */
|
|
234
|
+
providerErrors: z.number().int().nonnegative().optional(),
|
|
224
235
|
}),
|
|
225
236
|
});
|
|
226
237
|
// ---------------------------------------------------------------------------
|