@kya-os/checkpoint-shared 1.3.1 → 1.4.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.
@@ -2,636 +2,344 @@ import { z } from 'zod';
2
2
 
3
3
  declare const KYA_OS_EVENTS_PATH = "/api/v1/kya-os/events";
4
4
  declare const DidStringSchema: z.ZodString;
5
- declare const FlyRegionSchema: z.ZodEnum<["ams", "arn", "atl", "bog", "bos", "cdg", "den", "dfw", "ewr", "eze", "fra", "gdl", "gig", "gru", "hkg", "iad", "jnb", "lax", "lhr", "mad", "mia", "nrt", "ord", "otp", "phx", "qro", "scl", "sea", "sin", "sjc", "syd", "waw", "yul", "yyz"]>;
5
+ declare const FlyRegionSchema: z.ZodEnum<{
6
+ ams: "ams";
7
+ arn: "arn";
8
+ atl: "atl";
9
+ bog: "bog";
10
+ bos: "bos";
11
+ cdg: "cdg";
12
+ den: "den";
13
+ dfw: "dfw";
14
+ ewr: "ewr";
15
+ eze: "eze";
16
+ fra: "fra";
17
+ gdl: "gdl";
18
+ gig: "gig";
19
+ gru: "gru";
20
+ hkg: "hkg";
21
+ iad: "iad";
22
+ jnb: "jnb";
23
+ lax: "lax";
24
+ lhr: "lhr";
25
+ mad: "mad";
26
+ mia: "mia";
27
+ nrt: "nrt";
28
+ ord: "ord";
29
+ otp: "otp";
30
+ phx: "phx";
31
+ qro: "qro";
32
+ scl: "scl";
33
+ sea: "sea";
34
+ sin: "sin";
35
+ sjc: "sjc";
36
+ syd: "syd";
37
+ waw: "waw";
38
+ yul: "yul";
39
+ yyz: "yyz";
40
+ }>;
6
41
  type FlyRegion = z.infer<typeof FlyRegionSchema>;
7
- declare const HostingModeSchema: z.ZodEnum<["byok", "managed", "managed-byoa"]>;
42
+ declare const HostingModeSchema: z.ZodEnum<{
43
+ byok: "byok";
44
+ managed: "managed";
45
+ "managed-byoa": "managed-byoa";
46
+ }>;
8
47
  type HostingMode = z.infer<typeof HostingModeSchema>;
9
- declare const AuditAssuranceProfileSchema: z.ZodEnum<["AAP-0", "AAP-1", "AAP-2", "AAP-3", "AAP-4"]>;
10
- declare const AuditDeliveryModeSchema: z.ZodEnum<["best-effort", "buffered", "required"]>;
11
- declare const AuditDeploymentConfigSchema: z.ZodEffects<z.ZodObject<{
48
+ declare const AuditAssuranceProfileSchema: z.ZodEnum<{
49
+ "AAP-0": "AAP-0";
50
+ "AAP-1": "AAP-1";
51
+ "AAP-2": "AAP-2";
52
+ "AAP-3": "AAP-3";
53
+ "AAP-4": "AAP-4";
54
+ }>;
55
+ declare const AuditDeliveryModeSchema: z.ZodEnum<{
56
+ "best-effort": "best-effort";
57
+ buffered: "buffered";
58
+ required: "required";
59
+ }>;
60
+ declare const AuditDeploymentConfigSchema: z.ZodObject<{
12
61
  enabled: z.ZodBoolean;
13
- requestedProfile: z.ZodEnum<["AAP-0", "AAP-1", "AAP-2", "AAP-3", "AAP-4"]>;
14
- delivery: z.ZodEnum<["best-effort", "buffered", "required"]>;
15
- evidenceMode: z.ZodEnum<["none", "encrypted-separate", "encrypted-inline"]>;
62
+ requestedProfile: z.ZodEnum<{
63
+ "AAP-0": "AAP-0";
64
+ "AAP-1": "AAP-1";
65
+ "AAP-2": "AAP-2";
66
+ "AAP-3": "AAP-3";
67
+ "AAP-4": "AAP-4";
68
+ }>;
69
+ delivery: z.ZodEnum<{
70
+ "best-effort": "best-effort";
71
+ buffered: "buffered";
72
+ required: "required";
73
+ }>;
74
+ evidenceMode: z.ZodEnum<{
75
+ none: "none";
76
+ "encrypted-separate": "encrypted-separate";
77
+ "encrypted-inline": "encrypted-inline";
78
+ }>;
16
79
  retentionClass: z.ZodString;
17
80
  retentionDays: z.ZodNumber;
18
- residency: z.ZodEnum<["inherit-project", "us", "eu", "global"]>;
19
- keyCustody: z.ZodEnum<["none", "checkpoint-managed", "customer-managed-kms"]>;
20
- recorderTopology: z.ZodEnum<["none", "self-hosted", "managed", "verified-mirror"]>;
21
- }, "strict", z.ZodTypeAny, {
22
- enabled: boolean;
23
- requestedProfile: "AAP-0" | "AAP-1" | "AAP-2" | "AAP-3" | "AAP-4";
24
- delivery: "best-effort" | "buffered" | "required";
25
- evidenceMode: "none" | "encrypted-separate" | "encrypted-inline";
26
- retentionClass: string;
27
- retentionDays: number;
28
- residency: "inherit-project" | "us" | "eu" | "global";
29
- keyCustody: "none" | "checkpoint-managed" | "customer-managed-kms";
30
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
31
- }, {
32
- enabled: boolean;
33
- requestedProfile: "AAP-0" | "AAP-1" | "AAP-2" | "AAP-3" | "AAP-4";
34
- delivery: "best-effort" | "buffered" | "required";
35
- evidenceMode: "none" | "encrypted-separate" | "encrypted-inline";
36
- retentionClass: string;
37
- retentionDays: number;
38
- residency: "inherit-project" | "us" | "eu" | "global";
39
- keyCustody: "none" | "checkpoint-managed" | "customer-managed-kms";
40
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
41
- }>, {
42
- enabled: boolean;
43
- requestedProfile: "AAP-0" | "AAP-1" | "AAP-2" | "AAP-3" | "AAP-4";
44
- delivery: "best-effort" | "buffered" | "required";
45
- evidenceMode: "none" | "encrypted-separate" | "encrypted-inline";
46
- retentionClass: string;
47
- retentionDays: number;
48
- residency: "inherit-project" | "us" | "eu" | "global";
49
- keyCustody: "none" | "checkpoint-managed" | "customer-managed-kms";
50
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
51
- }, {
52
- enabled: boolean;
53
- requestedProfile: "AAP-0" | "AAP-1" | "AAP-2" | "AAP-3" | "AAP-4";
54
- delivery: "best-effort" | "buffered" | "required";
55
- evidenceMode: "none" | "encrypted-separate" | "encrypted-inline";
56
- retentionClass: string;
57
- retentionDays: number;
58
- residency: "inherit-project" | "us" | "eu" | "global";
59
- keyCustody: "none" | "checkpoint-managed" | "customer-managed-kms";
60
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
61
- }>;
81
+ residency: z.ZodEnum<{
82
+ "inherit-project": "inherit-project";
83
+ us: "us";
84
+ eu: "eu";
85
+ global: "global";
86
+ }>;
87
+ keyCustody: z.ZodEnum<{
88
+ none: "none";
89
+ "checkpoint-managed": "checkpoint-managed";
90
+ "customer-managed-kms": "customer-managed-kms";
91
+ }>;
92
+ recorderTopology: z.ZodEnum<{
93
+ managed: "managed";
94
+ none: "none";
95
+ "self-hosted": "self-hosted";
96
+ "verified-mirror": "verified-mirror";
97
+ }>;
98
+ }, z.core.$strict>;
62
99
  type AuditDeploymentConfig = z.infer<typeof AuditDeploymentConfigSchema>;
63
100
  type AuditAssuranceProfile = z.infer<typeof AuditAssuranceProfileSchema>;
64
101
  declare const NEW_MANAGED_AUDIT_DEPLOYMENT_DEFAULT: Readonly<AuditDeploymentConfig>;
65
102
  declare const ABSENT_AUDIT_DEPLOYMENT_CONFIG: Readonly<AuditDeploymentConfig>;
66
103
  declare const AuditRuntimeCapabilitiesSchema: z.ZodObject<{
67
- recorderTopology: z.ZodEnum<["none", "self-hosted", "managed", "verified-mirror"]>;
68
- delivery: z.ZodEnum<["best-effort", "buffered", "required"]>;
69
- journalDurability: z.ZodEnum<["none", "ephemeral", "durable"]>;
104
+ recorderTopology: z.ZodEnum<{
105
+ managed: "managed";
106
+ none: "none";
107
+ "self-hosted": "self-hosted";
108
+ "verified-mirror": "verified-mirror";
109
+ }>;
110
+ delivery: z.ZodEnum<{
111
+ "best-effort": "best-effort";
112
+ buffered: "buffered";
113
+ required: "required";
114
+ }>;
115
+ journalDurability: z.ZodEnum<{
116
+ none: "none";
117
+ ephemeral: "ephemeral";
118
+ durable: "durable";
119
+ }>;
70
120
  atomicAppend: z.ZodBoolean;
71
121
  sourceHighWater: z.ZodBoolean;
72
122
  merkleCheckpoints: z.ZodBoolean;
73
123
  independentObservation: z.ZodBoolean;
74
- supportingAnchors: z.ZodArray<z.ZodEnum<["worm", "rfc3161", "scitt"]>, "many">;
75
- evidenceRetention: z.ZodEnum<["none", "inline", "separate"]>;
76
- }, "strict", z.ZodTypeAny, {
77
- delivery: "best-effort" | "buffered" | "required";
78
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
79
- journalDurability: "none" | "ephemeral" | "durable";
80
- atomicAppend: boolean;
81
- sourceHighWater: boolean;
82
- merkleCheckpoints: boolean;
83
- independentObservation: boolean;
84
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
85
- evidenceRetention: "none" | "inline" | "separate";
86
- }, {
87
- delivery: "best-effort" | "buffered" | "required";
88
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
89
- journalDurability: "none" | "ephemeral" | "durable";
90
- atomicAppend: boolean;
91
- sourceHighWater: boolean;
92
- merkleCheckpoints: boolean;
93
- independentObservation: boolean;
94
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
95
- evidenceRetention: "none" | "inline" | "separate";
96
- }>;
124
+ supportingAnchors: z.ZodArray<z.ZodEnum<{
125
+ worm: "worm";
126
+ rfc3161: "rfc3161";
127
+ scitt: "scitt";
128
+ }>>;
129
+ evidenceRetention: z.ZodEnum<{
130
+ none: "none";
131
+ inline: "inline";
132
+ separate: "separate";
133
+ }>;
134
+ }, z.core.$strict>;
97
135
  type AuditRuntimeCapabilities = z.infer<typeof AuditRuntimeCapabilitiesSchema>;
98
- declare const AuditRuntimeCanaryResultSchema: z.ZodEffects<z.ZodObject<{
136
+ declare const AuditRuntimeCanaryResultSchema: z.ZodObject<{
99
137
  passed: z.ZodBoolean;
100
138
  observedAt: z.ZodNumber;
101
139
  capabilities: z.ZodObject<{
102
- recorderTopology: z.ZodEnum<["none", "self-hosted", "managed", "verified-mirror"]>;
103
- delivery: z.ZodEnum<["best-effort", "buffered", "required"]>;
104
- journalDurability: z.ZodEnum<["none", "ephemeral", "durable"]>;
140
+ recorderTopology: z.ZodEnum<{
141
+ managed: "managed";
142
+ none: "none";
143
+ "self-hosted": "self-hosted";
144
+ "verified-mirror": "verified-mirror";
145
+ }>;
146
+ delivery: z.ZodEnum<{
147
+ "best-effort": "best-effort";
148
+ buffered: "buffered";
149
+ required: "required";
150
+ }>;
151
+ journalDurability: z.ZodEnum<{
152
+ none: "none";
153
+ ephemeral: "ephemeral";
154
+ durable: "durable";
155
+ }>;
105
156
  atomicAppend: z.ZodBoolean;
106
157
  sourceHighWater: z.ZodBoolean;
107
158
  merkleCheckpoints: z.ZodBoolean;
108
159
  independentObservation: z.ZodBoolean;
109
- supportingAnchors: z.ZodArray<z.ZodEnum<["worm", "rfc3161", "scitt"]>, "many">;
110
- evidenceRetention: z.ZodEnum<["none", "inline", "separate"]>;
111
- }, "strict", z.ZodTypeAny, {
112
- delivery: "best-effort" | "buffered" | "required";
113
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
114
- journalDurability: "none" | "ephemeral" | "durable";
115
- atomicAppend: boolean;
116
- sourceHighWater: boolean;
117
- merkleCheckpoints: boolean;
118
- independentObservation: boolean;
119
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
120
- evidenceRetention: "none" | "inline" | "separate";
121
- }, {
122
- delivery: "best-effort" | "buffered" | "required";
123
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
124
- journalDurability: "none" | "ephemeral" | "durable";
125
- atomicAppend: boolean;
126
- sourceHighWater: boolean;
127
- merkleCheckpoints: boolean;
128
- independentObservation: boolean;
129
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
130
- evidenceRetention: "none" | "inline" | "separate";
131
- }>;
160
+ supportingAnchors: z.ZodArray<z.ZodEnum<{
161
+ worm: "worm";
162
+ rfc3161: "rfc3161";
163
+ scitt: "scitt";
164
+ }>>;
165
+ evidenceRetention: z.ZodEnum<{
166
+ none: "none";
167
+ inline: "inline";
168
+ separate: "separate";
169
+ }>;
170
+ }, z.core.$strict>;
132
171
  checks: z.ZodArray<z.ZodObject<{
133
172
  id: z.ZodString;
134
173
  passed: z.ZodBoolean;
135
- }, "strict", z.ZodTypeAny, {
136
- passed: boolean;
137
- id: string;
138
- }, {
139
- passed: boolean;
140
- id: string;
141
- }>, "many">;
174
+ }, z.core.$strict>>;
142
175
  bundleHash: z.ZodOptional<z.ZodString>;
143
- }, "strict", z.ZodTypeAny, {
144
- passed: boolean;
145
- observedAt: number;
146
- capabilities: {
147
- delivery: "best-effort" | "buffered" | "required";
148
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
149
- journalDurability: "none" | "ephemeral" | "durable";
150
- atomicAppend: boolean;
151
- sourceHighWater: boolean;
152
- merkleCheckpoints: boolean;
153
- independentObservation: boolean;
154
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
155
- evidenceRetention: "none" | "inline" | "separate";
156
- };
157
- checks: {
158
- passed: boolean;
159
- id: string;
160
- }[];
161
- bundleHash?: string | undefined;
162
- }, {
163
- passed: boolean;
164
- observedAt: number;
165
- capabilities: {
166
- delivery: "best-effort" | "buffered" | "required";
167
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
168
- journalDurability: "none" | "ephemeral" | "durable";
169
- atomicAppend: boolean;
170
- sourceHighWater: boolean;
171
- merkleCheckpoints: boolean;
172
- independentObservation: boolean;
173
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
174
- evidenceRetention: "none" | "inline" | "separate";
175
- };
176
- checks: {
177
- passed: boolean;
178
- id: string;
179
- }[];
180
- bundleHash?: string | undefined;
181
- }>, {
182
- passed: boolean;
183
- observedAt: number;
184
- capabilities: {
185
- delivery: "best-effort" | "buffered" | "required";
186
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
187
- journalDurability: "none" | "ephemeral" | "durable";
188
- atomicAppend: boolean;
189
- sourceHighWater: boolean;
190
- merkleCheckpoints: boolean;
191
- independentObservation: boolean;
192
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
193
- evidenceRetention: "none" | "inline" | "separate";
194
- };
195
- checks: {
196
- passed: boolean;
197
- id: string;
198
- }[];
199
- bundleHash?: string | undefined;
200
- }, {
201
- passed: boolean;
202
- observedAt: number;
203
- capabilities: {
204
- delivery: "best-effort" | "buffered" | "required";
205
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
206
- journalDurability: "none" | "ephemeral" | "durable";
207
- atomicAppend: boolean;
208
- sourceHighWater: boolean;
209
- merkleCheckpoints: boolean;
210
- independentObservation: boolean;
211
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
212
- evidenceRetention: "none" | "inline" | "separate";
213
- };
214
- checks: {
215
- passed: boolean;
216
- id: string;
217
- }[];
218
- bundleHash?: string | undefined;
219
- }>;
176
+ }, z.core.$strict>;
220
177
  type AuditRuntimeCanaryResult = z.infer<typeof AuditRuntimeCanaryResultSchema>;
221
178
  declare function requiredAuditRuntimeCanaryChecks(capabilities: AuditRuntimeCapabilities): string[];
222
179
  declare const AuditDeploymentReadinessSchema: z.ZodObject<{
223
- requestedProfile: z.ZodEnum<["AAP-0", "AAP-1", "AAP-2", "AAP-3", "AAP-4"]>;
224
- effectiveProfile: z.ZodEnum<["AAP-0", "AAP-1", "AAP-2", "AAP-3", "AAP-4"]>;
225
- status: z.ZodEnum<["disabled", "ready", "degraded"]>;
180
+ requestedProfile: z.ZodEnum<{
181
+ "AAP-0": "AAP-0";
182
+ "AAP-1": "AAP-1";
183
+ "AAP-2": "AAP-2";
184
+ "AAP-3": "AAP-3";
185
+ "AAP-4": "AAP-4";
186
+ }>;
187
+ effectiveProfile: z.ZodEnum<{
188
+ "AAP-0": "AAP-0";
189
+ "AAP-1": "AAP-1";
190
+ "AAP-2": "AAP-2";
191
+ "AAP-3": "AAP-3";
192
+ "AAP-4": "AAP-4";
193
+ }>;
194
+ status: z.ZodEnum<{
195
+ disabled: "disabled";
196
+ ready: "ready";
197
+ degraded: "degraded";
198
+ }>;
226
199
  capabilities: z.ZodNullable<z.ZodObject<{
227
- recorderTopology: z.ZodEnum<["none", "self-hosted", "managed", "verified-mirror"]>;
228
- delivery: z.ZodEnum<["best-effort", "buffered", "required"]>;
229
- journalDurability: z.ZodEnum<["none", "ephemeral", "durable"]>;
200
+ recorderTopology: z.ZodEnum<{
201
+ managed: "managed";
202
+ none: "none";
203
+ "self-hosted": "self-hosted";
204
+ "verified-mirror": "verified-mirror";
205
+ }>;
206
+ delivery: z.ZodEnum<{
207
+ "best-effort": "best-effort";
208
+ buffered: "buffered";
209
+ required: "required";
210
+ }>;
211
+ journalDurability: z.ZodEnum<{
212
+ none: "none";
213
+ ephemeral: "ephemeral";
214
+ durable: "durable";
215
+ }>;
230
216
  atomicAppend: z.ZodBoolean;
231
217
  sourceHighWater: z.ZodBoolean;
232
218
  merkleCheckpoints: z.ZodBoolean;
233
219
  independentObservation: z.ZodBoolean;
234
- supportingAnchors: z.ZodArray<z.ZodEnum<["worm", "rfc3161", "scitt"]>, "many">;
235
- evidenceRetention: z.ZodEnum<["none", "inline", "separate"]>;
236
- }, "strict", z.ZodTypeAny, {
237
- delivery: "best-effort" | "buffered" | "required";
238
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
239
- journalDurability: "none" | "ephemeral" | "durable";
240
- atomicAppend: boolean;
241
- sourceHighWater: boolean;
242
- merkleCheckpoints: boolean;
243
- independentObservation: boolean;
244
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
245
- evidenceRetention: "none" | "inline" | "separate";
246
- }, {
247
- delivery: "best-effort" | "buffered" | "required";
248
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
249
- journalDurability: "none" | "ephemeral" | "durable";
250
- atomicAppend: boolean;
251
- sourceHighWater: boolean;
252
- merkleCheckpoints: boolean;
253
- independentObservation: boolean;
254
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
255
- evidenceRetention: "none" | "inline" | "separate";
256
- }>>;
257
- canary: z.ZodNullable<z.ZodEffects<z.ZodObject<{
220
+ supportingAnchors: z.ZodArray<z.ZodEnum<{
221
+ worm: "worm";
222
+ rfc3161: "rfc3161";
223
+ scitt: "scitt";
224
+ }>>;
225
+ evidenceRetention: z.ZodEnum<{
226
+ none: "none";
227
+ inline: "inline";
228
+ separate: "separate";
229
+ }>;
230
+ }, z.core.$strict>>;
231
+ canary: z.ZodNullable<z.ZodObject<{
258
232
  passed: z.ZodBoolean;
259
233
  observedAt: z.ZodNumber;
260
234
  capabilities: z.ZodObject<{
261
- recorderTopology: z.ZodEnum<["none", "self-hosted", "managed", "verified-mirror"]>;
262
- delivery: z.ZodEnum<["best-effort", "buffered", "required"]>;
263
- journalDurability: z.ZodEnum<["none", "ephemeral", "durable"]>;
235
+ recorderTopology: z.ZodEnum<{
236
+ managed: "managed";
237
+ none: "none";
238
+ "self-hosted": "self-hosted";
239
+ "verified-mirror": "verified-mirror";
240
+ }>;
241
+ delivery: z.ZodEnum<{
242
+ "best-effort": "best-effort";
243
+ buffered: "buffered";
244
+ required: "required";
245
+ }>;
246
+ journalDurability: z.ZodEnum<{
247
+ none: "none";
248
+ ephemeral: "ephemeral";
249
+ durable: "durable";
250
+ }>;
264
251
  atomicAppend: z.ZodBoolean;
265
252
  sourceHighWater: z.ZodBoolean;
266
253
  merkleCheckpoints: z.ZodBoolean;
267
254
  independentObservation: z.ZodBoolean;
268
- supportingAnchors: z.ZodArray<z.ZodEnum<["worm", "rfc3161", "scitt"]>, "many">;
269
- evidenceRetention: z.ZodEnum<["none", "inline", "separate"]>;
270
- }, "strict", z.ZodTypeAny, {
271
- delivery: "best-effort" | "buffered" | "required";
272
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
273
- journalDurability: "none" | "ephemeral" | "durable";
274
- atomicAppend: boolean;
275
- sourceHighWater: boolean;
276
- merkleCheckpoints: boolean;
277
- independentObservation: boolean;
278
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
279
- evidenceRetention: "none" | "inline" | "separate";
280
- }, {
281
- delivery: "best-effort" | "buffered" | "required";
282
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
283
- journalDurability: "none" | "ephemeral" | "durable";
284
- atomicAppend: boolean;
285
- sourceHighWater: boolean;
286
- merkleCheckpoints: boolean;
287
- independentObservation: boolean;
288
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
289
- evidenceRetention: "none" | "inline" | "separate";
290
- }>;
255
+ supportingAnchors: z.ZodArray<z.ZodEnum<{
256
+ worm: "worm";
257
+ rfc3161: "rfc3161";
258
+ scitt: "scitt";
259
+ }>>;
260
+ evidenceRetention: z.ZodEnum<{
261
+ none: "none";
262
+ inline: "inline";
263
+ separate: "separate";
264
+ }>;
265
+ }, z.core.$strict>;
291
266
  checks: z.ZodArray<z.ZodObject<{
292
267
  id: z.ZodString;
293
268
  passed: z.ZodBoolean;
294
- }, "strict", z.ZodTypeAny, {
295
- passed: boolean;
296
- id: string;
297
- }, {
298
- passed: boolean;
299
- id: string;
300
- }>, "many">;
269
+ }, z.core.$strict>>;
301
270
  bundleHash: z.ZodOptional<z.ZodString>;
302
- }, "strict", z.ZodTypeAny, {
303
- passed: boolean;
304
- observedAt: number;
305
- capabilities: {
306
- delivery: "best-effort" | "buffered" | "required";
307
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
308
- journalDurability: "none" | "ephemeral" | "durable";
309
- atomicAppend: boolean;
310
- sourceHighWater: boolean;
311
- merkleCheckpoints: boolean;
312
- independentObservation: boolean;
313
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
314
- evidenceRetention: "none" | "inline" | "separate";
315
- };
316
- checks: {
317
- passed: boolean;
318
- id: string;
319
- }[];
320
- bundleHash?: string | undefined;
321
- }, {
322
- passed: boolean;
323
- observedAt: number;
324
- capabilities: {
325
- delivery: "best-effort" | "buffered" | "required";
326
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
327
- journalDurability: "none" | "ephemeral" | "durable";
328
- atomicAppend: boolean;
329
- sourceHighWater: boolean;
330
- merkleCheckpoints: boolean;
331
- independentObservation: boolean;
332
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
333
- evidenceRetention: "none" | "inline" | "separate";
334
- };
335
- checks: {
336
- passed: boolean;
337
- id: string;
338
- }[];
339
- bundleHash?: string | undefined;
340
- }>, {
341
- passed: boolean;
342
- observedAt: number;
343
- capabilities: {
344
- delivery: "best-effort" | "buffered" | "required";
345
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
346
- journalDurability: "none" | "ephemeral" | "durable";
347
- atomicAppend: boolean;
348
- sourceHighWater: boolean;
349
- merkleCheckpoints: boolean;
350
- independentObservation: boolean;
351
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
352
- evidenceRetention: "none" | "inline" | "separate";
353
- };
354
- checks: {
355
- passed: boolean;
356
- id: string;
357
- }[];
358
- bundleHash?: string | undefined;
359
- }, {
360
- passed: boolean;
361
- observedAt: number;
362
- capabilities: {
363
- delivery: "best-effort" | "buffered" | "required";
364
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
365
- journalDurability: "none" | "ephemeral" | "durable";
366
- atomicAppend: boolean;
367
- sourceHighWater: boolean;
368
- merkleCheckpoints: boolean;
369
- independentObservation: boolean;
370
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
371
- evidenceRetention: "none" | "inline" | "separate";
372
- };
373
- checks: {
374
- passed: boolean;
375
- id: string;
376
- }[];
377
- bundleHash?: string | undefined;
378
- }>>;
379
- reasonCodes: z.ZodArray<z.ZodString, "many">;
380
- }, "strict", z.ZodTypeAny, {
381
- status: "disabled" | "ready" | "degraded";
382
- requestedProfile: "AAP-0" | "AAP-1" | "AAP-2" | "AAP-3" | "AAP-4";
383
- capabilities: {
384
- delivery: "best-effort" | "buffered" | "required";
385
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
386
- journalDurability: "none" | "ephemeral" | "durable";
387
- atomicAppend: boolean;
388
- sourceHighWater: boolean;
389
- merkleCheckpoints: boolean;
390
- independentObservation: boolean;
391
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
392
- evidenceRetention: "none" | "inline" | "separate";
393
- } | null;
394
- effectiveProfile: "AAP-0" | "AAP-1" | "AAP-2" | "AAP-3" | "AAP-4";
395
- canary: {
396
- passed: boolean;
397
- observedAt: number;
398
- capabilities: {
399
- delivery: "best-effort" | "buffered" | "required";
400
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
401
- journalDurability: "none" | "ephemeral" | "durable";
402
- atomicAppend: boolean;
403
- sourceHighWater: boolean;
404
- merkleCheckpoints: boolean;
405
- independentObservation: boolean;
406
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
407
- evidenceRetention: "none" | "inline" | "separate";
408
- };
409
- checks: {
410
- passed: boolean;
411
- id: string;
412
- }[];
413
- bundleHash?: string | undefined;
414
- } | null;
415
- reasonCodes: string[];
416
- }, {
417
- status: "disabled" | "ready" | "degraded";
418
- requestedProfile: "AAP-0" | "AAP-1" | "AAP-2" | "AAP-3" | "AAP-4";
419
- capabilities: {
420
- delivery: "best-effort" | "buffered" | "required";
421
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
422
- journalDurability: "none" | "ephemeral" | "durable";
423
- atomicAppend: boolean;
424
- sourceHighWater: boolean;
425
- merkleCheckpoints: boolean;
426
- independentObservation: boolean;
427
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
428
- evidenceRetention: "none" | "inline" | "separate";
429
- } | null;
430
- effectiveProfile: "AAP-0" | "AAP-1" | "AAP-2" | "AAP-3" | "AAP-4";
431
- canary: {
432
- passed: boolean;
433
- observedAt: number;
434
- capabilities: {
435
- delivery: "best-effort" | "buffered" | "required";
436
- recorderTopology: "managed" | "none" | "self-hosted" | "verified-mirror";
437
- journalDurability: "none" | "ephemeral" | "durable";
438
- atomicAppend: boolean;
439
- sourceHighWater: boolean;
440
- merkleCheckpoints: boolean;
441
- independentObservation: boolean;
442
- supportingAnchors: ("worm" | "rfc3161" | "scitt")[];
443
- evidenceRetention: "none" | "inline" | "separate";
444
- };
445
- checks: {
446
- passed: boolean;
447
- id: string;
448
- }[];
449
- bundleHash?: string | undefined;
450
- } | null;
451
- reasonCodes: string[];
452
- }>;
271
+ }, z.core.$strict>>;
272
+ reasonCodes: z.ZodArray<z.ZodString>;
273
+ }, z.core.$strict>;
453
274
  type AuditDeploymentReadiness = z.infer<typeof AuditDeploymentReadinessSchema>;
454
275
  declare function resolveAuditDeploymentReadiness(config: AuditDeploymentConfig | undefined, capabilities: AuditRuntimeCapabilities | undefined, canary?: AuditRuntimeCanaryResult): AuditDeploymentReadiness;
455
- declare const ManagedDeployStepStatusSchema: z.ZodEnum<["pending", "in_progress", "completed", "failed", "skipped"]>;
276
+ declare const ManagedDeployStepStatusSchema: z.ZodEnum<{
277
+ pending: "pending";
278
+ in_progress: "in_progress";
279
+ completed: "completed";
280
+ failed: "failed";
281
+ skipped: "skipped";
282
+ }>;
456
283
  type ManagedDeployStepStatus = z.infer<typeof ManagedDeployStepStatusSchema>;
457
284
  declare const HeartbeatRequestSchema: z.ZodObject<{
458
285
  agentDid: z.ZodString;
459
- status: z.ZodEnum<["starting", "running", "error", "stopping"]>;
286
+ status: z.ZodEnum<{
287
+ error: "error";
288
+ starting: "starting";
289
+ running: "running";
290
+ stopping: "stopping";
291
+ }>;
460
292
  computeVersion: z.ZodString;
461
293
  openclawVersion: z.ZodOptional<z.ZodString>;
462
294
  machineId: z.ZodOptional<z.ZodString>;
463
295
  uptimeSeconds: z.ZodOptional<z.ZodNumber>;
464
296
  memoryMb: z.ZodOptional<z.ZodNumber>;
465
- }, "strip", z.ZodTypeAny, {
466
- status: "starting" | "running" | "error" | "stopping";
467
- agentDid: string;
468
- computeVersion: string;
469
- openclawVersion?: string | undefined;
470
- machineId?: string | undefined;
471
- uptimeSeconds?: number | undefined;
472
- memoryMb?: number | undefined;
473
- }, {
474
- status: "starting" | "running" | "error" | "stopping";
475
- agentDid: string;
476
- computeVersion: string;
477
- openclawVersion?: string | undefined;
478
- machineId?: string | undefined;
479
- uptimeSeconds?: number | undefined;
480
- memoryMb?: number | undefined;
481
- }>;
297
+ }, z.core.$strip>;
482
298
  type HeartbeatRequest = z.infer<typeof HeartbeatRequestSchema>;
483
299
  declare const StopCommandSchema: z.ZodObject<{
484
300
  type: z.ZodLiteral<"stop">;
485
- }, "strict", z.ZodTypeAny, {
486
- type: "stop";
487
- }, {
488
- type: "stop";
489
- }>;
301
+ }, z.core.$strict>;
490
302
  declare const RestartCommandSchema: z.ZodObject<{
491
303
  type: z.ZodLiteral<"restart">;
492
- }, "strict", z.ZodTypeAny, {
493
- type: "restart";
494
- }, {
495
- type: "restart";
496
- }>;
304
+ }, z.core.$strict>;
497
305
  declare const UpdateConfigCommandSchema: z.ZodObject<{
498
306
  type: z.ZodLiteral<"update_config">;
499
- }, "strict", z.ZodTypeAny, {
500
- type: "update_config";
501
- }, {
502
- type: "update_config";
503
- }>;
307
+ }, z.core.$strict>;
504
308
  declare const UpdateVersionCommandSchema: z.ZodObject<{
505
309
  type: z.ZodLiteral<"update_version">;
506
310
  payload: z.ZodObject<{
507
311
  version: z.ZodString;
508
- }, "strip", z.ZodTypeAny, {
509
- version: string;
510
- }, {
511
- version: string;
512
- }>;
513
- }, "strict", z.ZodTypeAny, {
514
- type: "update_version";
515
- payload: {
516
- version: string;
517
- };
518
- }, {
519
- type: "update_version";
520
- payload: {
521
- version: string;
522
- };
523
- }>;
524
- declare const ComputeCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
312
+ }, z.core.$strip>;
313
+ }, z.core.$strict>;
314
+ declare const ComputeCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
525
315
  type: z.ZodLiteral<"stop">;
526
- }, "strict", z.ZodTypeAny, {
527
- type: "stop";
528
- }, {
529
- type: "stop";
530
- }>, z.ZodObject<{
316
+ }, z.core.$strict>, z.ZodObject<{
531
317
  type: z.ZodLiteral<"restart">;
532
- }, "strict", z.ZodTypeAny, {
533
- type: "restart";
534
- }, {
535
- type: "restart";
536
- }>, z.ZodObject<{
318
+ }, z.core.$strict>, z.ZodObject<{
537
319
  type: z.ZodLiteral<"update_config">;
538
- }, "strict", z.ZodTypeAny, {
539
- type: "update_config";
540
- }, {
541
- type: "update_config";
542
- }>, z.ZodObject<{
320
+ }, z.core.$strict>, z.ZodObject<{
543
321
  type: z.ZodLiteral<"update_version">;
544
322
  payload: z.ZodObject<{
545
323
  version: z.ZodString;
546
- }, "strip", z.ZodTypeAny, {
547
- version: string;
548
- }, {
549
- version: string;
550
- }>;
551
- }, "strict", z.ZodTypeAny, {
552
- type: "update_version";
553
- payload: {
554
- version: string;
555
- };
556
- }, {
557
- type: "update_version";
558
- payload: {
559
- version: string;
560
- };
561
- }>]>;
324
+ }, z.core.$strip>;
325
+ }, z.core.$strict>], "type">;
562
326
  type ComputeCommand = z.infer<typeof ComputeCommandSchema>;
563
327
  declare const HeartbeatResponseSchema: z.ZodObject<{
564
328
  ack: z.ZodLiteral<true>;
565
- commands: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
329
+ commands: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
566
330
  type: z.ZodLiteral<"stop">;
567
- }, "strict", z.ZodTypeAny, {
568
- type: "stop";
569
- }, {
570
- type: "stop";
571
- }>, z.ZodObject<{
331
+ }, z.core.$strict>, z.ZodObject<{
572
332
  type: z.ZodLiteral<"restart">;
573
- }, "strict", z.ZodTypeAny, {
574
- type: "restart";
575
- }, {
576
- type: "restart";
577
- }>, z.ZodObject<{
333
+ }, z.core.$strict>, z.ZodObject<{
578
334
  type: z.ZodLiteral<"update_config">;
579
- }, "strict", z.ZodTypeAny, {
580
- type: "update_config";
581
- }, {
582
- type: "update_config";
583
- }>, z.ZodObject<{
335
+ }, z.core.$strict>, z.ZodObject<{
584
336
  type: z.ZodLiteral<"update_version">;
585
337
  payload: z.ZodObject<{
586
338
  version: z.ZodString;
587
- }, "strip", z.ZodTypeAny, {
588
- version: string;
589
- }, {
590
- version: string;
591
- }>;
592
- }, "strict", z.ZodTypeAny, {
593
- type: "update_version";
594
- payload: {
595
- version: string;
596
- };
597
- }, {
598
- type: "update_version";
599
- payload: {
600
- version: string;
601
- };
602
- }>]>, "many">>;
339
+ }, z.core.$strip>;
340
+ }, z.core.$strict>], "type">>>;
603
341
  configUpdatedAt: z.ZodOptional<z.ZodString>;
604
- }, "strip", z.ZodTypeAny, {
605
- ack: true;
606
- commands: ({
607
- type: "stop";
608
- } | {
609
- type: "restart";
610
- } | {
611
- type: "update_config";
612
- } | {
613
- type: "update_version";
614
- payload: {
615
- version: string;
616
- };
617
- })[];
618
- configUpdatedAt?: string | undefined;
619
- }, {
620
- ack: true;
621
- commands?: ({
622
- type: "stop";
623
- } | {
624
- type: "restart";
625
- } | {
626
- type: "update_config";
627
- } | {
628
- type: "update_version";
629
- payload: {
630
- version: string;
631
- };
632
- })[] | undefined;
633
- configUpdatedAt?: string | undefined;
634
- }>;
342
+ }, z.core.$strip>;
635
343
  type HeartbeatResponse = z.infer<typeof HeartbeatResponseSchema>;
636
344
  declare const ConfigBundleSchema: z.ZodObject<{
637
345
  version: z.ZodNumber;
@@ -643,159 +351,32 @@ declare const ConfigBundleSchema: z.ZodObject<{
643
351
  telegram: z.ZodOptional<z.ZodObject<{
644
352
  enabled: z.ZodBoolean;
645
353
  token: z.ZodOptional<z.ZodString>;
646
- }, "strip", z.ZodTypeAny, {
647
- enabled: boolean;
648
- token?: string | undefined;
649
- }, {
650
- enabled: boolean;
651
- token?: string | undefined;
652
- }>>;
354
+ }, z.core.$strip>>;
653
355
  discord: z.ZodOptional<z.ZodObject<{
654
356
  enabled: z.ZodBoolean;
655
357
  token: z.ZodOptional<z.ZodString>;
656
- }, "strip", z.ZodTypeAny, {
657
- enabled: boolean;
658
- token?: string | undefined;
659
- }, {
660
- enabled: boolean;
661
- token?: string | undefined;
662
- }>>;
358
+ }, z.core.$strip>>;
663
359
  slack: z.ZodOptional<z.ZodObject<{
664
360
  enabled: z.ZodBoolean;
665
361
  token: z.ZodOptional<z.ZodString>;
666
362
  appToken: z.ZodOptional<z.ZodString>;
667
- }, "strip", z.ZodTypeAny, {
668
- enabled: boolean;
669
- token?: string | undefined;
670
- appToken?: string | undefined;
671
- }, {
672
- enabled: boolean;
673
- token?: string | undefined;
674
- appToken?: string | undefined;
675
- }>>;
363
+ }, z.core.$strip>>;
676
364
  whatsapp: z.ZodOptional<z.ZodObject<{
677
365
  enabled: z.ZodBoolean;
678
- }, "strict", z.ZodTypeAny, {
679
- enabled: boolean;
680
- }, {
681
- enabled: boolean;
682
- }>>;
683
- }, "strip", z.ZodTypeAny, {
684
- telegram?: {
685
- enabled: boolean;
686
- token?: string | undefined;
687
- } | undefined;
688
- discord?: {
689
- enabled: boolean;
690
- token?: string | undefined;
691
- } | undefined;
692
- slack?: {
693
- enabled: boolean;
694
- token?: string | undefined;
695
- appToken?: string | undefined;
696
- } | undefined;
697
- whatsapp?: {
698
- enabled: boolean;
699
- } | undefined;
700
- }, {
701
- telegram?: {
702
- enabled: boolean;
703
- token?: string | undefined;
704
- } | undefined;
705
- discord?: {
706
- enabled: boolean;
707
- token?: string | undefined;
708
- } | undefined;
709
- slack?: {
710
- enabled: boolean;
711
- token?: string | undefined;
712
- appToken?: string | undefined;
713
- } | undefined;
714
- whatsapp?: {
715
- enabled: boolean;
716
- } | undefined;
717
- }>;
366
+ }, z.core.$strict>>;
367
+ }, z.core.$strip>;
718
368
  aiProvider: z.ZodObject<{
719
- type: z.ZodEnum<["anthropic", "openai"]>;
369
+ type: z.ZodEnum<{
370
+ anthropic: "anthropic";
371
+ openai: "openai";
372
+ }>;
720
373
  apiKey: z.ZodString;
721
374
  baseUrl: z.ZodOptional<z.ZodString>;
722
- }, "strip", z.ZodTypeAny, {
723
- type: "anthropic" | "openai";
724
- apiKey: string;
725
- baseUrl?: string | undefined;
726
- }, {
727
- type: "anthropic" | "openai";
728
- apiKey: string;
729
- baseUrl?: string | undefined;
730
- }>;
375
+ }, z.core.$strip>;
731
376
  heartbeatEvery: z.ZodOptional<z.ZodString>;
732
377
  modelOverride: z.ZodOptional<z.ZodString>;
733
378
  updatedAt: z.ZodString;
734
- }, "strip", z.ZodTypeAny, {
735
- openclawVersion: string;
736
- version: number;
737
- killed: boolean;
738
- soulFile: string | null;
739
- gatewayToken: string;
740
- channels: {
741
- telegram?: {
742
- enabled: boolean;
743
- token?: string | undefined;
744
- } | undefined;
745
- discord?: {
746
- enabled: boolean;
747
- token?: string | undefined;
748
- } | undefined;
749
- slack?: {
750
- enabled: boolean;
751
- token?: string | undefined;
752
- appToken?: string | undefined;
753
- } | undefined;
754
- whatsapp?: {
755
- enabled: boolean;
756
- } | undefined;
757
- };
758
- aiProvider: {
759
- type: "anthropic" | "openai";
760
- apiKey: string;
761
- baseUrl?: string | undefined;
762
- };
763
- updatedAt: string;
764
- heartbeatEvery?: string | undefined;
765
- modelOverride?: string | undefined;
766
- }, {
767
- openclawVersion: string;
768
- version: number;
769
- killed: boolean;
770
- soulFile: string | null;
771
- gatewayToken: string;
772
- channels: {
773
- telegram?: {
774
- enabled: boolean;
775
- token?: string | undefined;
776
- } | undefined;
777
- discord?: {
778
- enabled: boolean;
779
- token?: string | undefined;
780
- } | undefined;
781
- slack?: {
782
- enabled: boolean;
783
- token?: string | undefined;
784
- appToken?: string | undefined;
785
- } | undefined;
786
- whatsapp?: {
787
- enabled: boolean;
788
- } | undefined;
789
- };
790
- aiProvider: {
791
- type: "anthropic" | "openai";
792
- apiKey: string;
793
- baseUrl?: string | undefined;
794
- };
795
- updatedAt: string;
796
- heartbeatEvery?: string | undefined;
797
- modelOverride?: string | undefined;
798
- }>;
379
+ }, z.core.$strip>;
799
380
  type ConfigBundle = z.infer<typeof ConfigBundleSchema>;
800
381
  declare const ControlStatusSchema: z.ZodObject<{
801
382
  healthy: z.ZodBoolean;
@@ -805,23 +386,7 @@ declare const ControlStatusSchema: z.ZodObject<{
805
386
  activeConnections: z.ZodNumber;
806
387
  memoryMb: z.ZodNumber;
807
388
  cpuPercent: z.ZodNumber;
808
- }, "strip", z.ZodTypeAny, {
809
- computeVersion: string;
810
- openclawVersion: string;
811
- uptimeSeconds: number;
812
- memoryMb: number;
813
- healthy: boolean;
814
- activeConnections: number;
815
- cpuPercent: number;
816
- }, {
817
- computeVersion: string;
818
- openclawVersion: string;
819
- uptimeSeconds: number;
820
- memoryMb: number;
821
- healthy: boolean;
822
- activeConnections: number;
823
- cpuPercent: number;
824
- }>;
389
+ }, z.core.$strip>;
825
390
  type ControlStatus = z.infer<typeof ControlStatusSchema>;
826
391
 
827
392
  export { ABSENT_AUDIT_DEPLOYMENT_CONFIG, type AuditAssuranceProfile, AuditAssuranceProfileSchema, AuditDeliveryModeSchema, type AuditDeploymentConfig, AuditDeploymentConfigSchema, type AuditDeploymentReadiness, AuditDeploymentReadinessSchema, type AuditRuntimeCanaryResult, AuditRuntimeCanaryResultSchema, type AuditRuntimeCapabilities, AuditRuntimeCapabilitiesSchema, type ComputeCommand, ComputeCommandSchema, type ConfigBundle, ConfigBundleSchema, type ControlStatus, ControlStatusSchema, DidStringSchema, type FlyRegion, FlyRegionSchema, type HeartbeatRequest, HeartbeatRequestSchema, type HeartbeatResponse, HeartbeatResponseSchema, type HostingMode, HostingModeSchema, KYA_OS_EVENTS_PATH, type ManagedDeployStepStatus, ManagedDeployStepStatusSchema, NEW_MANAGED_AUDIT_DEPLOYMENT_DEFAULT, RestartCommandSchema, StopCommandSchema, UpdateConfigCommandSchema, UpdateVersionCommandSchema, requiredAuditRuntimeCanaryChecks, resolveAuditDeploymentReadiness };