-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathks_node.ts
More file actions
30 lines (27 loc) · 853 Bytes
/
ks_node.ts
File metadata and controls
30 lines (27 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { z } from "zod";
import { registry } from "../registry";
export const KSNodeTelemetryRequestSchema = registry.register(
"TssKSNodeTelemetryRequest",
z.object({
public_key: z.string().openapi({
description:
"Unique identifier for the key share node telemetry (public key)",
}),
key_share_count: z.number().openapi({
description: "Current number of key shares stored in the node",
}),
payload: z.object({}).loose().openapi({
description:
"Additional telemetry data (e.g., db status, error messages)",
}),
}),
);
export const KSNodeTelemetryResponseSchema = registry.register(
"TssKSNodeTelemetryResponse",
z.object({
success: z.boolean().openapi({
description: "Indicates if the telemetry was successfully processed",
}),
data: z.null().optional(),
}),
);