@apollo-deploy/schemas 1.3.2 → 1.3.4
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/analytics/request.schema.d.ts +2 -2
- package/dist/definitions/api-keys/domain.schema.d.ts +13 -0
- package/dist/definitions/api-keys/domain.schema.d.ts.map +1 -1
- package/dist/definitions/api-keys/domain.schema.js +11 -0
- package/dist/definitions/api-keys/domain.schema.js.map +1 -1
- package/dist/definitions/api-keys/index.d.ts +2 -2
- package/dist/definitions/api-keys/index.d.ts.map +1 -1
- package/dist/definitions/api-keys/index.js +2 -2
- package/dist/definitions/api-keys/index.js.map +1 -1
- package/dist/definitions/api-keys/request.schema.d.ts +19 -0
- package/dist/definitions/api-keys/request.schema.d.ts.map +1 -1
- package/dist/definitions/api-keys/request.schema.js +5 -1
- package/dist/definitions/api-keys/request.schema.js.map +1 -1
- package/dist/definitions/api-keys/response.schema.d.ts +12 -0
- package/dist/definitions/api-keys/response.schema.d.ts.map +1 -1
- package/dist/definitions/approvals/domain.schema.d.ts +4 -4
- package/dist/definitions/approvals/request.schema.d.ts +7 -7
- package/dist/definitions/approvals/response.schema.d.ts +11 -11
- package/dist/definitions/artifacts/domain.schema.d.ts +2 -2
- package/dist/definitions/artifacts/request.schema.d.ts +3 -3
- package/dist/definitions/artifacts/response.schema.d.ts +7 -7
- package/dist/definitions/audit-log/domain.schema.d.ts +6 -6
- package/dist/definitions/audit-log/request.schema.d.ts +13 -13
- package/dist/definitions/audit-log/response.schema.d.ts +6 -6
- package/dist/definitions/index.d.ts +9 -2
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +19 -4
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/integrations/domain.schema.d.ts +5 -5
- package/dist/definitions/policies/domain.schema.d.ts +18 -18
- package/dist/definitions/policies/request.schema.d.ts +8 -8
- package/dist/definitions/policies/response.schema.d.ts +18 -18
- package/dist/definitions/releases/domain.schema.d.ts +23 -23
- package/dist/definitions/releases/request.schema.d.ts +27 -27
- package/dist/definitions/releases/response.schema.d.ts +14 -14
- package/dist/definitions/service-accounts/domain.schema.d.ts +8 -8
- package/dist/definitions/service-accounts/response.schema.d.ts +8 -8
- package/dist/definitions/settings/response.schema.d.ts +10 -10
- package/dist/definitions/signals/domain.schema.d.ts +100 -56
- package/dist/definitions/signals/domain.schema.d.ts.map +1 -1
- package/dist/definitions/signals/domain.schema.js +34 -4
- package/dist/definitions/signals/domain.schema.js.map +1 -1
- package/dist/definitions/signals/events.schema.d.ts +713 -0
- package/dist/definitions/signals/events.schema.d.ts.map +1 -0
- package/dist/definitions/signals/events.schema.js +132 -0
- package/dist/definitions/signals/events.schema.js.map +1 -0
- package/dist/definitions/signals/index.d.ts +4 -3
- package/dist/definitions/signals/index.d.ts.map +1 -1
- package/dist/definitions/signals/index.js +5 -3
- package/dist/definitions/signals/index.js.map +1 -1
- package/dist/definitions/signals/request.schema.d.ts +115 -5
- package/dist/definitions/signals/request.schema.d.ts.map +1 -1
- package/dist/definitions/signals/request.schema.js +96 -2
- package/dist/definitions/signals/request.schema.js.map +1 -1
- package/dist/definitions/signals/response.schema.d.ts +188 -69
- package/dist/definitions/signals/response.schema.d.ts.map +1 -1
- package/dist/definitions/signals/response.schema.js +57 -0
- package/dist/definitions/signals/response.schema.js.map +1 -1
- package/dist/definitions/telemetry/index.d.ts +8 -0
- package/dist/definitions/telemetry/index.d.ts.map +1 -0
- package/dist/definitions/telemetry/index.js +10 -0
- package/dist/definitions/telemetry/index.js.map +1 -0
- package/dist/definitions/telemetry/request.schema.d.ts +121 -0
- package/dist/definitions/telemetry/request.schema.d.ts.map +1 -0
- package/dist/definitions/telemetry/request.schema.js +90 -0
- package/dist/definitions/telemetry/request.schema.js.map +1 -0
- package/dist/definitions/telemetry/response.schema.d.ts +92 -0
- package/dist/definitions/telemetry/response.schema.d.ts.map +1 -0
- package/dist/definitions/telemetry/response.schema.js +43 -0
- package/dist/definitions/telemetry/response.schema.js.map +1 -0
- package/dist/definitions/webhooks/domain.schema.d.ts +2 -2
- package/dist/definitions/webhooks/response.schema.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwB,CAAC;AAM3D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEvC,CAAC;AAMH,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;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B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpG,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -65,6 +65,63 @@ export const AnnotateEventResponseSchema = z.object({
|
|
|
65
65
|
correlationsTriggered: z.boolean(),
|
|
66
66
|
});
|
|
67
67
|
// ---------------------------------------------------------------------------
|
|
68
|
+
// GET /signals/:appId/baselines
|
|
69
|
+
// ---------------------------------------------------------------------------
|
|
70
|
+
export const MetricBaselineItemSchema = z.object({
|
|
71
|
+
metricKey: z.string(),
|
|
72
|
+
baselineValue: z.number(),
|
|
73
|
+
stdDev: z.number(),
|
|
74
|
+
sampleCount: z.number().int().nonnegative(),
|
|
75
|
+
window: z.string(),
|
|
76
|
+
computedAt: z.string().datetime(),
|
|
77
|
+
});
|
|
78
|
+
export const BaselinesResponseSchema = z.object({
|
|
79
|
+
baselines: z.array(MetricBaselineItemSchema),
|
|
80
|
+
});
|
|
81
|
+
// ---------------------------------------------------------------------------
|
|
82
|
+
// GET /signals/:appId/rollout-events
|
|
83
|
+
// ---------------------------------------------------------------------------
|
|
84
|
+
export const RolloutEventsResponseSchema = z.object({
|
|
85
|
+
events: z.array(z.object({
|
|
86
|
+
id: z.string().uuid(),
|
|
87
|
+
type: z.string(),
|
|
88
|
+
details: z.record(z.string(), z.unknown()),
|
|
89
|
+
timestamp: z.string().datetime(),
|
|
90
|
+
})),
|
|
91
|
+
});
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
// POST /signals/:appId/recommendations/:recommendationId/act
|
|
94
|
+
// ---------------------------------------------------------------------------
|
|
95
|
+
export const RecommendationActionResponseSchema = z.object({
|
|
96
|
+
actionId: z.string().uuid(),
|
|
97
|
+
recommendationId: z.string().uuid(),
|
|
98
|
+
action: z.string(),
|
|
99
|
+
recordedAt: z.string().datetime(),
|
|
100
|
+
});
|
|
101
|
+
// ---------------------------------------------------------------------------
|
|
102
|
+
// POST /signals/:appId/incidents/:incidentId/acknowledge
|
|
103
|
+
// ---------------------------------------------------------------------------
|
|
104
|
+
export const IncidentAcknowledgementResponseSchema = z.object({
|
|
105
|
+
acknowledgementId: z.string().uuid(),
|
|
106
|
+
incidentId: z.string().uuid(),
|
|
107
|
+
acknowledgedAt: z.string().datetime(),
|
|
108
|
+
});
|
|
109
|
+
// ---------------------------------------------------------------------------
|
|
110
|
+
// POST /signals/:appId/report → SdkReportResponse
|
|
111
|
+
// ---------------------------------------------------------------------------
|
|
112
|
+
export const SdkReportResponseSchema = z.object({
|
|
113
|
+
id: z.string().uuid(),
|
|
114
|
+
accepted: z.boolean(),
|
|
115
|
+
});
|
|
116
|
+
// ---------------------------------------------------------------------------
|
|
117
|
+
// POST /signals/:appId/dependencies → SdkDependenciesResponse
|
|
118
|
+
// ---------------------------------------------------------------------------
|
|
119
|
+
export const SdkDependenciesResponseSchema = z.object({
|
|
120
|
+
id: z.string().uuid(),
|
|
121
|
+
accepted: z.boolean(),
|
|
122
|
+
dependencyCount: z.number().int().nonnegative(),
|
|
123
|
+
});
|
|
124
|
+
// ---------------------------------------------------------------------------
|
|
68
125
|
// SSE event payloads (Tier 2 — Phase 2)
|
|
69
126
|
// ---------------------------------------------------------------------------
|
|
70
127
|
export const SignalUpdateEventSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.js","sourceRoot":"","sources":["../../../src/definitions/signals/response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,qBAAqB,GACtB,MAA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M,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Telemetry Domain Schemas
|
|
3
|
+
*
|
|
4
|
+
* Barrel exports for all telemetry schema definitions.
|
|
5
|
+
*/
|
|
6
|
+
export { TelemetryAppIdParamSchema, DeviceTypeSchema, TelemetryPlatformSchema, TelemetrySourceSchema, TelemetryReportBodySchema, TelemetryDependencyEntrySchema, TelemetryDependenciesBodySchema, GetLatestTelemetryQuerySchema, type TelemetryAppIdParam, type DeviceType, type TelemetryPlatform, type TelemetrySource, type TelemetryReportBody, type TelemetryDependencyEntry, type TelemetryDependenciesBody, type GetLatestTelemetryQuery, } from './request.schema.js';
|
|
7
|
+
export { TelemetryReportResponseSchema, TelemetryDependenciesResponseSchema, LatestTelemetryReportSchema, LatestTelemetryResponseSchema, type TelemetryReportResponse, type TelemetryDependenciesResponse, type LatestTelemetryReport, type LatestTelemetryResponse, } from './response.schema.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/definitions/telemetry/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAC/B,6BAA6B,EAC7B,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,6BAA6B,EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,6BAA6B,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Telemetry Domain Schemas
|
|
3
|
+
*
|
|
4
|
+
* Barrel exports for all telemetry schema definitions.
|
|
5
|
+
*/
|
|
6
|
+
// Request schemas and types
|
|
7
|
+
export { TelemetryAppIdParamSchema, DeviceTypeSchema, TelemetryPlatformSchema, TelemetrySourceSchema, TelemetryReportBodySchema, TelemetryDependencyEntrySchema, TelemetryDependenciesBodySchema, GetLatestTelemetryQuerySchema, } from './request.schema.js';
|
|
8
|
+
// Response schemas and types
|
|
9
|
+
export { TelemetryReportResponseSchema, TelemetryDependenciesResponseSchema, LatestTelemetryReportSchema, LatestTelemetryResponseSchema, } from './response.schema.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definitions/telemetry/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,4BAA4B;AAC5B,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAC/B,6BAA6B,GAS9B,MAAM,qBAAqB,CAAC;AAE7B,6BAA6B;AAC7B,OAAO,EACL,6BAA6B,EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,6BAA6B,GAK9B,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Telemetry Request Schemas
|
|
3
|
+
*
|
|
4
|
+
* Validation schemas for all inbound Telemetry API requests.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
export declare const TelemetryAppIdParamSchema: z.ZodObject<{
|
|
8
|
+
appId: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const DeviceTypeSchema: z.ZodEnum<{
|
|
11
|
+
app: "app";
|
|
12
|
+
server: "server";
|
|
13
|
+
iot: "iot";
|
|
14
|
+
desktop: "desktop";
|
|
15
|
+
web: "web";
|
|
16
|
+
embedded: "embedded";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const TelemetryPlatformSchema: z.ZodEnum<{
|
|
19
|
+
web: "web";
|
|
20
|
+
android: "android";
|
|
21
|
+
ios: "ios";
|
|
22
|
+
linux: "linux";
|
|
23
|
+
windows: "windows";
|
|
24
|
+
macos: "macos";
|
|
25
|
+
other: "other";
|
|
26
|
+
}>;
|
|
27
|
+
export declare const TelemetrySourceSchema: z.ZodEnum<{
|
|
28
|
+
sdk: "sdk";
|
|
29
|
+
"gradle-plugin": "gradle-plugin";
|
|
30
|
+
cli: "cli";
|
|
31
|
+
api: "api";
|
|
32
|
+
agent: "agent";
|
|
33
|
+
}>;
|
|
34
|
+
export declare const TelemetryReportBodySchema: z.ZodObject<{
|
|
35
|
+
appId: z.ZodString;
|
|
36
|
+
packageName: z.ZodString;
|
|
37
|
+
versionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
versionCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
+
installCount: z.ZodNumber;
|
|
40
|
+
activeUsers: z.ZodNumber;
|
|
41
|
+
deviceType: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
app: "app";
|
|
43
|
+
server: "server";
|
|
44
|
+
iot: "iot";
|
|
45
|
+
desktop: "desktop";
|
|
46
|
+
web: "web";
|
|
47
|
+
embedded: "embedded";
|
|
48
|
+
}>>;
|
|
49
|
+
platform: z.ZodDefault<z.ZodEnum<{
|
|
50
|
+
web: "web";
|
|
51
|
+
android: "android";
|
|
52
|
+
ios: "ios";
|
|
53
|
+
linux: "linux";
|
|
54
|
+
windows: "windows";
|
|
55
|
+
macos: "macos";
|
|
56
|
+
other: "other";
|
|
57
|
+
}>>;
|
|
58
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
59
|
+
sdk: "sdk";
|
|
60
|
+
"gradle-plugin": "gradle-plugin";
|
|
61
|
+
cli: "cli";
|
|
62
|
+
api: "api";
|
|
63
|
+
agent: "agent";
|
|
64
|
+
}>>;
|
|
65
|
+
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
reportedAt: z.ZodString;
|
|
68
|
+
sessionDurationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
+
foregroundTimeMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
|
+
backgroundTimeMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
|
+
connectivityType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
networkErrorCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
73
|
+
networkRequestCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
apkSizeBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
+
featureFlagExposures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const TelemetryDependencyEntrySchema: z.ZodObject<{
|
|
78
|
+
group: z.ZodString;
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
version: z.ZodString;
|
|
81
|
+
configuration: z.ZodString;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare const TelemetryDependenciesBodySchema: z.ZodObject<{
|
|
84
|
+
appId: z.ZodString;
|
|
85
|
+
buildVariant: z.ZodDefault<z.ZodString>;
|
|
86
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
87
|
+
group: z.ZodString;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
version: z.ZodString;
|
|
90
|
+
configuration: z.ZodString;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
collectedAt: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export declare const GetLatestTelemetryQuerySchema: z.ZodObject<{
|
|
95
|
+
deviceType: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
app: "app";
|
|
97
|
+
server: "server";
|
|
98
|
+
iot: "iot";
|
|
99
|
+
desktop: "desktop";
|
|
100
|
+
web: "web";
|
|
101
|
+
embedded: "embedded";
|
|
102
|
+
}>>;
|
|
103
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
web: "web";
|
|
105
|
+
android: "android";
|
|
106
|
+
ios: "ios";
|
|
107
|
+
linux: "linux";
|
|
108
|
+
windows: "windows";
|
|
109
|
+
macos: "macos";
|
|
110
|
+
other: "other";
|
|
111
|
+
}>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type TelemetryAppIdParam = z.infer<typeof TelemetryAppIdParamSchema>;
|
|
114
|
+
export type DeviceType = z.infer<typeof DeviceTypeSchema>;
|
|
115
|
+
export type TelemetryPlatform = z.infer<typeof TelemetryPlatformSchema>;
|
|
116
|
+
export type TelemetrySource = z.infer<typeof TelemetrySourceSchema>;
|
|
117
|
+
export type TelemetryReportBody = z.infer<typeof TelemetryReportBodySchema>;
|
|
118
|
+
export type TelemetryDependencyEntry = z.infer<typeof TelemetryDependencyEntrySchema>;
|
|
119
|
+
export type TelemetryDependenciesBody = z.infer<typeof TelemetryDependenciesBodySchema>;
|
|
120
|
+
export type GetLatestTelemetryQuery = z.infer<typeof GetLatestTelemetryQuerySchema>;
|
|
121
|
+
//# sourceMappingURL=request.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/telemetry/request.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAMH,eAAO,MAAM,gBAAgB;;;;;;;EAO3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;EAQlC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAMhC,CAAC;AAMH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBpC,CAAC;AAMH,eAAO,MAAM,8BAA8B;;;;;iBAKzC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;iBAK1C,CAAC;AAMH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;iBAGxC,CAAC;AAMH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Telemetry Request Schemas
|
|
3
|
+
*
|
|
4
|
+
* Validation schemas for all inbound Telemetry API requests.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// Shared param schemas
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
export const TelemetryAppIdParamSchema = z.object({
|
|
11
|
+
appId: z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
// Enums
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
export const DeviceTypeSchema = z.enum([
|
|
17
|
+
'app',
|
|
18
|
+
'server',
|
|
19
|
+
'iot',
|
|
20
|
+
'desktop',
|
|
21
|
+
'web',
|
|
22
|
+
'embedded',
|
|
23
|
+
]);
|
|
24
|
+
export const TelemetryPlatformSchema = z.enum([
|
|
25
|
+
'android',
|
|
26
|
+
'ios',
|
|
27
|
+
'linux',
|
|
28
|
+
'windows',
|
|
29
|
+
'macos',
|
|
30
|
+
'web',
|
|
31
|
+
'other',
|
|
32
|
+
]);
|
|
33
|
+
export const TelemetrySourceSchema = z.enum([
|
|
34
|
+
'sdk',
|
|
35
|
+
'gradle-plugin',
|
|
36
|
+
'cli',
|
|
37
|
+
'api',
|
|
38
|
+
'agent',
|
|
39
|
+
]);
|
|
40
|
+
// ---------------------------------------------------------------------------
|
|
41
|
+
// POST /telemetry/:appId/report
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
export const TelemetryReportBodySchema = z.object({
|
|
44
|
+
appId: z.string().uuid(),
|
|
45
|
+
packageName: z.string().min(1).max(256),
|
|
46
|
+
versionName: z.string().max(128).nullish(),
|
|
47
|
+
versionCode: z.number().int().nonnegative().nullish(),
|
|
48
|
+
installCount: z.number().int().nonnegative(),
|
|
49
|
+
activeUsers: z.number().int().nonnegative(),
|
|
50
|
+
deviceType: DeviceTypeSchema.default('app'),
|
|
51
|
+
platform: TelemetryPlatformSchema.default('android'),
|
|
52
|
+
source: TelemetrySourceSchema.default('sdk'),
|
|
53
|
+
/** Stable anonymous device identifier (UUID generated on the device) */
|
|
54
|
+
deviceId: z.string().uuid().nullish(),
|
|
55
|
+
/** ISO 3166-1 alpha-2 country code (e.g. "US", "DE") */
|
|
56
|
+
country: z.string().length(2).toUpperCase().nullish(),
|
|
57
|
+
reportedAt: z.string().datetime(),
|
|
58
|
+
// SDK metric fields
|
|
59
|
+
sessionDurationMs: z.number().int().nonnegative().nullish(),
|
|
60
|
+
foregroundTimeMs: z.number().int().nonnegative().nullish(),
|
|
61
|
+
backgroundTimeMs: z.number().int().nonnegative().nullish(),
|
|
62
|
+
connectivityType: z.string().max(64).nullish(),
|
|
63
|
+
networkErrorCount: z.number().int().nonnegative().nullish(),
|
|
64
|
+
networkRequestCount: z.number().int().nonnegative().nullish(),
|
|
65
|
+
apkSizeBytes: z.number().int().nonnegative().nullish(),
|
|
66
|
+
featureFlagExposures: z.array(z.unknown()).nullish(),
|
|
67
|
+
});
|
|
68
|
+
// ---------------------------------------------------------------------------
|
|
69
|
+
// POST /telemetry/:appId/dependencies
|
|
70
|
+
// ---------------------------------------------------------------------------
|
|
71
|
+
export const TelemetryDependencyEntrySchema = z.object({
|
|
72
|
+
group: z.string().min(1).max(256),
|
|
73
|
+
name: z.string().min(1).max(256),
|
|
74
|
+
version: z.string().max(128),
|
|
75
|
+
configuration: z.string().max(128),
|
|
76
|
+
});
|
|
77
|
+
export const TelemetryDependenciesBodySchema = z.object({
|
|
78
|
+
appId: z.string().uuid(),
|
|
79
|
+
buildVariant: z.string().max(128).default('release'),
|
|
80
|
+
dependencies: z.array(TelemetryDependencyEntrySchema).max(2000),
|
|
81
|
+
collectedAt: z.string().datetime(),
|
|
82
|
+
});
|
|
83
|
+
// ---------------------------------------------------------------------------
|
|
84
|
+
// GET /telemetry/:appId/latest
|
|
85
|
+
// ---------------------------------------------------------------------------
|
|
86
|
+
export const GetLatestTelemetryQuerySchema = z.object({
|
|
87
|
+
deviceType: DeviceTypeSchema.optional(),
|
|
88
|
+
platform: TelemetryPlatformSchema.optional(),
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=request.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.schema.js","sourceRoot":"","sources":["../../../src/definitions/telemetry/request.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8EAA8E;AAC9E,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CACzB,CAAC,CAAC;AAEH,8EAA8E;AAC9E,QAAQ;AACR,8EAA8E;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,KAAK;IACL,QAAQ;IACR,KAAK;IACL,SAAS;IACT,KAAK;IACL,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5C,SAAS;IACT,KAAK;IACL,OAAO;IACP,SAAS;IACT,OAAO;IACP,KAAK;IACL,OAAO;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1C,KAAK;IACL,eAAe;IACf,KAAK;IACL,KAAK;IACL,OAAO;CACR,CAAC,CAAC;AAEH,8EAA8E;AAC9E,gCAAgC;AAChC,8EAA8E;AAE9E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,KA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AAC;IACpD,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IAC/D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,8EAA8E;AAC9E,+BAA+B;AAC/B,8EAA8E;AAE9E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,uBAAuB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Telemetry Response Schemas
|
|
3
|
+
*
|
|
4
|
+
* Response envelopes for all Telemetry API endpoints.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
export declare const TelemetryReportResponseSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
accepted: z.ZodBoolean;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const TelemetryDependenciesResponseSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
accepted: z.ZodBoolean;
|
|
14
|
+
dependencyCount: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const LatestTelemetryReportSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
appId: z.ZodString;
|
|
19
|
+
packageName: z.ZodString;
|
|
20
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
21
|
+
versionCode: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
installCount: z.ZodNumber;
|
|
23
|
+
activeUsers: z.ZodNumber;
|
|
24
|
+
apkSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
deviceType: z.ZodEnum<{
|
|
26
|
+
app: "app";
|
|
27
|
+
server: "server";
|
|
28
|
+
iot: "iot";
|
|
29
|
+
desktop: "desktop";
|
|
30
|
+
web: "web";
|
|
31
|
+
embedded: "embedded";
|
|
32
|
+
}>;
|
|
33
|
+
platform: z.ZodEnum<{
|
|
34
|
+
web: "web";
|
|
35
|
+
android: "android";
|
|
36
|
+
ios: "ios";
|
|
37
|
+
linux: "linux";
|
|
38
|
+
windows: "windows";
|
|
39
|
+
macos: "macos";
|
|
40
|
+
other: "other";
|
|
41
|
+
}>;
|
|
42
|
+
source: z.ZodEnum<{
|
|
43
|
+
sdk: "sdk";
|
|
44
|
+
"gradle-plugin": "gradle-plugin";
|
|
45
|
+
cli: "cli";
|
|
46
|
+
api: "api";
|
|
47
|
+
agent: "agent";
|
|
48
|
+
}>;
|
|
49
|
+
reportedAt: z.ZodString;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const LatestTelemetryResponseSchema: z.ZodObject<{
|
|
52
|
+
report: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
appId: z.ZodString;
|
|
55
|
+
packageName: z.ZodString;
|
|
56
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
57
|
+
versionCode: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
installCount: z.ZodNumber;
|
|
59
|
+
activeUsers: z.ZodNumber;
|
|
60
|
+
apkSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
61
|
+
deviceType: z.ZodEnum<{
|
|
62
|
+
app: "app";
|
|
63
|
+
server: "server";
|
|
64
|
+
iot: "iot";
|
|
65
|
+
desktop: "desktop";
|
|
66
|
+
web: "web";
|
|
67
|
+
embedded: "embedded";
|
|
68
|
+
}>;
|
|
69
|
+
platform: z.ZodEnum<{
|
|
70
|
+
web: "web";
|
|
71
|
+
android: "android";
|
|
72
|
+
ios: "ios";
|
|
73
|
+
linux: "linux";
|
|
74
|
+
windows: "windows";
|
|
75
|
+
macos: "macos";
|
|
76
|
+
other: "other";
|
|
77
|
+
}>;
|
|
78
|
+
source: z.ZodEnum<{
|
|
79
|
+
sdk: "sdk";
|
|
80
|
+
"gradle-plugin": "gradle-plugin";
|
|
81
|
+
cli: "cli";
|
|
82
|
+
api: "api";
|
|
83
|
+
agent: "agent";
|
|
84
|
+
}>;
|
|
85
|
+
reportedAt: z.ZodString;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export type TelemetryReportResponse = z.infer<typeof TelemetryReportResponseSchema>;
|
|
89
|
+
export type TelemetryDependenciesResponse = z.infer<typeof TelemetryDependenciesResponseSchema>;
|
|
90
|
+
export type LatestTelemetryReport = z.infer<typeof LatestTelemetryReportSchema>;
|
|
91
|
+
export type LatestTelemetryResponse = z.infer<typeof LatestTelemetryResponseSchema>;
|
|
92
|
+
//# sourceMappingURL=response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/telemetry/response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAMH,eAAO,MAAM,mCAAmC;;;;iBAI9C,CAAC;AAMH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAatC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAExC,CAAC;AAMH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Telemetry Response Schemas
|
|
3
|
+
*
|
|
4
|
+
* Response envelopes for all Telemetry API endpoints.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
import { DeviceTypeSchema, TelemetryPlatformSchema, TelemetrySourceSchema, } from './request.schema.js';
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
// POST /telemetry/:appId/report → TelemetryReportResponse
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
export const TelemetryReportResponseSchema = z.object({
|
|
12
|
+
id: z.string().uuid(),
|
|
13
|
+
accepted: z.boolean(),
|
|
14
|
+
});
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
// POST /telemetry/:appId/dependencies → TelemetryDependenciesResponse
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
export const TelemetryDependenciesResponseSchema = z.object({
|
|
19
|
+
id: z.string().uuid(),
|
|
20
|
+
accepted: z.boolean(),
|
|
21
|
+
dependencyCount: z.number().int().nonnegative(),
|
|
22
|
+
});
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// GET /telemetry/:appId/latest → LatestTelemetryResponse
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
export const LatestTelemetryReportSchema = z.object({
|
|
27
|
+
id: z.string().uuid(),
|
|
28
|
+
appId: z.string().uuid(),
|
|
29
|
+
packageName: z.string(),
|
|
30
|
+
versionName: z.string().nullable(),
|
|
31
|
+
versionCode: z.number().int().nullable(),
|
|
32
|
+
installCount: z.number().int().nonnegative(),
|
|
33
|
+
activeUsers: z.number().int().nonnegative(),
|
|
34
|
+
apkSizeBytes: z.number().int().nonnegative().nullable(),
|
|
35
|
+
deviceType: DeviceTypeSchema,
|
|
36
|
+
platform: TelemetryPlatformSchema,
|
|
37
|
+
source: TelemetrySourceSchema,
|
|
38
|
+
reportedAt: z.string().datetime(),
|
|
39
|
+
});
|
|
40
|
+
export const LatestTelemetryResponseSchema = z.object({
|
|
41
|
+
report: LatestTelemetryReportSchema.nullable(),
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.schema.js","sourceRoot":"","sources":["../../../src/definitions/telemetry/response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,8EAA8E;AAC9E,4DAA4D;AAC5D,8EAA8E;AAE9E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AAEH,8EAA8E;AAC9E,wEAAwE;AACxE,8EAA8E;AAE9E,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAChD,CAAC,CAAC;AAEH,8EAA8E;AAC9E,2DAA2D;AAC3D,8EAA8E;AAE9E,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC5C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC3C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACvD,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE,uBAAuB;IACjC,MAAM,EAAE,qBAAqB;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,2BAA2B,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC"}
|
|
@@ -23,8 +23,8 @@ export declare const WebhookDeliveryStatusSchema: z.ZodEnum<{
|
|
|
23
23
|
}>;
|
|
24
24
|
export type WebhookDeliveryStatus = z.infer<typeof WebhookDeliveryStatusSchema>;
|
|
25
25
|
export declare const CircuitBreakerStateSchema: z.ZodEnum<{
|
|
26
|
-
closed: "closed";
|
|
27
26
|
open: "open";
|
|
27
|
+
closed: "closed";
|
|
28
28
|
half_open: "half_open";
|
|
29
29
|
}>;
|
|
30
30
|
export type CircuitBreakerState = z.infer<typeof CircuitBreakerStateSchema>;
|
|
@@ -131,8 +131,8 @@ export declare const WebhookCircuitBreakerSchema: z.ZodObject<{
|
|
|
131
131
|
failureCount: z.ZodNumber;
|
|
132
132
|
successCount: z.ZodNumber;
|
|
133
133
|
state: z.ZodEnum<{
|
|
134
|
-
closed: "closed";
|
|
135
134
|
open: "open";
|
|
135
|
+
closed: "closed";
|
|
136
136
|
half_open: "half_open";
|
|
137
137
|
}>;
|
|
138
138
|
lastFailureAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>>;
|
|
@@ -201,8 +201,8 @@ export declare const WebhookCircuitBreakerResponseSchema: z.ZodObject<{
|
|
|
201
201
|
failureCount: z.ZodNumber;
|
|
202
202
|
successCount: z.ZodNumber;
|
|
203
203
|
state: z.ZodEnum<{
|
|
204
|
-
closed: "closed";
|
|
205
204
|
open: "open";
|
|
205
|
+
closed: "closed";
|
|
206
206
|
half_open: "half_open";
|
|
207
207
|
}>;
|
|
208
208
|
lastFailureAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>>;
|