@stitchwire/client 0.0.0-stage → 0.31.1

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.
Files changed (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +296 -2
  3. package/dist/chunk-d3248e3w.js +728 -0
  4. package/dist/chunk-mva06nh4.js +709 -0
  5. package/dist/contracts.d.ts +1 -0
  6. package/dist/contracts.js +84 -0
  7. package/dist/enrollment.d.ts +1 -0
  8. package/dist/enrollment.js +503 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.js +1680 -0
  11. package/dist/types/client/src/contracts.d.ts +1 -0
  12. package/dist/types/client/src/enrollment.d.ts +11 -0
  13. package/dist/types/client/src/index.d.ts +1 -0
  14. package/dist/types/contracts/src/door/client-error.d.ts +20 -0
  15. package/dist/types/contracts/src/door/common.d.ts +3 -0
  16. package/dist/types/contracts/src/door/event-lifecycle.d.ts +22 -0
  17. package/dist/types/contracts/src/door/local-contract.d.ts +466 -0
  18. package/dist/types/contracts/src/door/paths.d.ts +17 -0
  19. package/dist/types/contracts/src/door/request-bounds.d.ts +4 -0
  20. package/dist/types/contracts/src/door/requests.d.ts +47 -0
  21. package/dist/types/contracts/src/door/results.d.ts +319 -0
  22. package/dist/types/contracts/src/door/status.d.ts +859 -0
  23. package/dist/types/contracts/src/door/streams.d.ts +226 -0
  24. package/dist/types/contracts/src/enrollment/fleet-admission.d.ts +413 -0
  25. package/dist/types/contracts/src/enrollment/outcome.d.ts +29 -0
  26. package/dist/types/contracts/src/enrollment/request.d.ts +281 -0
  27. package/dist/types/contracts/src/enrollment/result.d.ts +713 -0
  28. package/dist/types/contracts/src/fleet/bundle.d.ts +209 -0
  29. package/dist/types/contracts/src/fleet/identity.d.ts +4 -0
  30. package/dist/types/contracts/src/fleet/manifest.d.ts +71 -0
  31. package/dist/types/contracts/src/fleet/status.d.ts +56 -0
  32. package/dist/types/contracts/src/peer-contract.d.ts +78 -0
  33. package/dist/types/contracts/src/protocol/bounds.d.ts +37 -0
  34. package/dist/types/contracts/src/protocol/broker-health.d.ts +384 -0
  35. package/dist/types/contracts/src/protocol/event.d.ts +222 -0
  36. package/dist/types/contracts/src/protocol/failure.d.ts +146 -0
  37. package/dist/types/contracts/src/protocol/identity.d.ts +11 -0
  38. package/dist/types/contracts/src/protocol/json-bounds.d.ts +6 -0
  39. package/dist/types/contracts/src/protocol/lane-url.d.ts +16 -0
  40. package/dist/types/contracts/src/protocol/paths.d.ts +7 -0
  41. package/dist/types/contracts/src/protocol/payload.d.ts +25 -0
  42. package/dist/types/contracts/src/protocol/presence.d.ts +66 -0
  43. package/dist/types/contracts/src/protocol/release.d.ts +61 -0
  44. package/dist/types/contracts/src/protocol/result.d.ts +41 -0
  45. package/dist/types/contracts/src/protocol/rpc.d.ts +106 -0
  46. package/dist/types/contracts/src/protocol/schema-parse.d.ts +23 -0
  47. package/dist/types/contracts/src/protocol/stream.d.ts +290 -0
  48. package/dist/types/contracts/src/protocol/topic.d.ts +185 -0
  49. package/dist/types/contracts/src/service/budgets.d.ts +3 -0
  50. package/dist/types/contracts/src/service/contract-descriptor.d.ts +9 -0
  51. package/dist/types/contracts/src/service/contracts.d.ts +430 -0
  52. package/dist/types/contracts/src/service/declaration.d.ts +122 -0
  53. package/dist/types/contracts/src/service/diagnostics.d.ts +104 -0
  54. package/dist/types/contracts/src/service/owner-route-path.d.ts +11 -0
  55. package/dist/types/contracts/src/service/policy-schema.d.ts +154 -0
  56. package/dist/types/contracts/src/service/request-bounds.d.ts +5 -0
  57. package/dist/types/contracts/src/service/service-contract.d.ts +112 -0
  58. package/dist/types/local-client/src/broker-health.d.ts +18 -0
  59. package/dist/types/local-client/src/client.d.ts +377 -0
  60. package/dist/types/local-client/src/contracts.d.ts +112 -0
  61. package/dist/types/local-client/src/declarations.d.ts +57 -0
  62. package/dist/types/local-client/src/door-paths.d.ts +18 -0
  63. package/dist/types/local-client/src/errno.d.ts +6 -0
  64. package/dist/types/local-client/src/error-chain.d.ts +25 -0
  65. package/dist/types/local-client/src/errors.d.ts +39 -0
  66. package/dist/types/local-client/src/event-sequence.d.ts +4 -0
  67. package/dist/types/local-client/src/feed.d.ts +8 -0
  68. package/dist/types/local-client/src/http.d.ts +20 -0
  69. package/dist/types/local-client/src/index.d.ts +13 -0
  70. package/dist/types/local-client/src/ingress.d.ts +31 -0
  71. package/dist/types/local-client/src/operation.d.ts +37 -0
  72. package/dist/types/local-client/src/options.d.ts +18 -0
  73. package/dist/types/local-client/src/paths.d.ts +52 -0
  74. package/dist/types/local-client/src/readers.d.ts +143 -0
  75. package/dist/types/local-client/src/service.d.ts +33 -0
  76. package/dist/types/local-client/src/status-readers.d.ts +756 -0
  77. package/dist/types/local-client/src/unary.d.ts +10 -0
  78. package/package.json +58 -4
@@ -0,0 +1,713 @@
1
+ import { z } from 'zod';
2
+ export declare const EnrollmentPhaseSchema: z.ZodEnum<{
3
+ admission: "admission";
4
+ artifact: "artifact";
5
+ configuration: "configuration";
6
+ credential: "credential";
7
+ detach: "detach";
8
+ preflight: "preflight";
9
+ supervisor: "supervisor";
10
+ "supervisor-unit": "supervisor-unit";
11
+ verification: "verification";
12
+ }>;
13
+ export type EnrollmentPhase = z.infer<typeof EnrollmentPhaseSchema>;
14
+ export declare const EnrollmentCodeSchema: z.ZodEnum<{
15
+ "admission-denied": "admission-denied";
16
+ "artifact-mismatch": "artifact-mismatch";
17
+ "broker-unavailable": "broker-unavailable";
18
+ "bundle-conflict": "bundle-conflict";
19
+ "bundle-invalid": "bundle-invalid";
20
+ "bundle-stale": "bundle-stale";
21
+ busy: "busy";
22
+ "credential-conflict": "credential-conflict";
23
+ "declaration-invalid": "declaration-invalid";
24
+ "declaration-refused": "declaration-refused";
25
+ "handshake-refused": "handshake-refused";
26
+ "invalid-request": "invalid-request";
27
+ "io-failed": "io-failed";
28
+ "material-required": "material-required";
29
+ "owner-conflict": "owner-conflict";
30
+ "permission-denied": "permission-denied";
31
+ "proof-failed": "proof-failed";
32
+ "proof-not-read": "proof-not-read";
33
+ "proof-not-remote": "proof-not-remote";
34
+ "request-conflict": "request-conflict";
35
+ "runtime-conflict": "runtime-conflict";
36
+ "runtime-unavailable": "runtime-unavailable";
37
+ "state-invalid": "state-invalid";
38
+ "supervisor-failed": "supervisor-failed";
39
+ "version-mismatch": "version-mismatch";
40
+ }>;
41
+ export type EnrollmentCode = z.infer<typeof EnrollmentCodeSchema>;
42
+ export declare const EnrollmentFailureSchema: z.ZodObject<{
43
+ code: z.ZodEnum<{
44
+ "admission-denied": "admission-denied";
45
+ "artifact-mismatch": "artifact-mismatch";
46
+ "broker-unavailable": "broker-unavailable";
47
+ "bundle-conflict": "bundle-conflict";
48
+ "bundle-invalid": "bundle-invalid";
49
+ "bundle-stale": "bundle-stale";
50
+ busy: "busy";
51
+ "credential-conflict": "credential-conflict";
52
+ "declaration-invalid": "declaration-invalid";
53
+ "declaration-refused": "declaration-refused";
54
+ "handshake-refused": "handshake-refused";
55
+ "invalid-request": "invalid-request";
56
+ "io-failed": "io-failed";
57
+ "material-required": "material-required";
58
+ "owner-conflict": "owner-conflict";
59
+ "permission-denied": "permission-denied";
60
+ "proof-failed": "proof-failed";
61
+ "proof-not-read": "proof-not-read";
62
+ "proof-not-remote": "proof-not-remote";
63
+ "request-conflict": "request-conflict";
64
+ "runtime-conflict": "runtime-conflict";
65
+ "runtime-unavailable": "runtime-unavailable";
66
+ "state-invalid": "state-invalid";
67
+ "supervisor-failed": "supervisor-failed";
68
+ "version-mismatch": "version-mismatch";
69
+ }>;
70
+ phase: z.ZodEnum<{
71
+ admission: "admission";
72
+ artifact: "artifact";
73
+ configuration: "configuration";
74
+ credential: "credential";
75
+ detach: "detach";
76
+ preflight: "preflight";
77
+ supervisor: "supervisor";
78
+ "supervisor-unit": "supervisor-unit";
79
+ verification: "verification";
80
+ }>;
81
+ at: z.ZodISODateTime;
82
+ systemCode: z.ZodNullable<z.ZodString>;
83
+ }, z.core.$strict>;
84
+ export type EnrollmentFailure = z.infer<typeof EnrollmentFailureSchema>;
85
+ /** Measured, never echoed: the version the running agent reports and what manages it. */
86
+ declare const EnrollmentRuntimeSchema: z.ZodObject<{
87
+ version: z.ZodString;
88
+ installation: z.ZodNullable<z.ZodObject<{
89
+ path: z.ZodString;
90
+ sha256: z.ZodString;
91
+ service: z.ZodObject<{
92
+ manager: z.ZodLiteral<"systemd">;
93
+ scope: z.ZodEnum<{
94
+ system: "system";
95
+ user: "user";
96
+ }>;
97
+ unit: z.ZodString;
98
+ }, z.core.$strict>;
99
+ }, z.core.$strict>>;
100
+ }, z.core.$strict>;
101
+ export type EnrollmentRuntime = z.infer<typeof EnrollmentRuntimeSchema>;
102
+ /**
103
+ * One result per operation; `status` and `kind` choose its fields.
104
+ *
105
+ * node planned → prepared → ready, or detached
106
+ * admission planned → admitted
107
+ *
108
+ * `ready` with `proof: null` certifies transport and declarations; the service route is unchecked.
109
+ */
110
+ export declare const EnrollmentResultSchema: z.ZodUnion<readonly [z.ZodObject<{
111
+ v: z.ZodLiteral<1>;
112
+ requestId: z.ZodNullable<z.ZodUUID>;
113
+ nodeId: z.ZodNullable<z.ZodString>;
114
+ operation: z.ZodNullable<z.ZodEnum<{
115
+ apply: "apply";
116
+ detach: "detach";
117
+ plan: "plan";
118
+ prepare: "prepare";
119
+ status: "status";
120
+ }>>;
121
+ observedAt: z.ZodISODateTime;
122
+ completed: z.ZodArray<z.ZodEnum<{
123
+ admission: "admission";
124
+ artifact: "artifact";
125
+ configuration: "configuration";
126
+ credential: "credential";
127
+ detach: "detach";
128
+ preflight: "preflight";
129
+ supervisor: "supervisor";
130
+ "supervisor-unit": "supervisor-unit";
131
+ verification: "verification";
132
+ }>>;
133
+ firstFailure: z.ZodNullable<z.ZodObject<{
134
+ code: z.ZodEnum<{
135
+ "admission-denied": "admission-denied";
136
+ "artifact-mismatch": "artifact-mismatch";
137
+ "broker-unavailable": "broker-unavailable";
138
+ "bundle-conflict": "bundle-conflict";
139
+ "bundle-invalid": "bundle-invalid";
140
+ "bundle-stale": "bundle-stale";
141
+ busy: "busy";
142
+ "credential-conflict": "credential-conflict";
143
+ "declaration-invalid": "declaration-invalid";
144
+ "declaration-refused": "declaration-refused";
145
+ "handshake-refused": "handshake-refused";
146
+ "invalid-request": "invalid-request";
147
+ "io-failed": "io-failed";
148
+ "material-required": "material-required";
149
+ "owner-conflict": "owner-conflict";
150
+ "permission-denied": "permission-denied";
151
+ "proof-failed": "proof-failed";
152
+ "proof-not-read": "proof-not-read";
153
+ "proof-not-remote": "proof-not-remote";
154
+ "request-conflict": "request-conflict";
155
+ "runtime-conflict": "runtime-conflict";
156
+ "runtime-unavailable": "runtime-unavailable";
157
+ "state-invalid": "state-invalid";
158
+ "supervisor-failed": "supervisor-failed";
159
+ "version-mismatch": "version-mismatch";
160
+ }>;
161
+ phase: z.ZodEnum<{
162
+ admission: "admission";
163
+ artifact: "artifact";
164
+ configuration: "configuration";
165
+ credential: "credential";
166
+ detach: "detach";
167
+ preflight: "preflight";
168
+ supervisor: "supervisor";
169
+ "supervisor-unit": "supervisor-unit";
170
+ verification: "verification";
171
+ }>;
172
+ at: z.ZodISODateTime;
173
+ systemCode: z.ZodNullable<z.ZodString>;
174
+ }, z.core.$strict>>;
175
+ status: z.ZodLiteral<"failed">;
176
+ failure: z.ZodObject<{
177
+ code: z.ZodEnum<{
178
+ "admission-denied": "admission-denied";
179
+ "artifact-mismatch": "artifact-mismatch";
180
+ "broker-unavailable": "broker-unavailable";
181
+ "bundle-conflict": "bundle-conflict";
182
+ "bundle-invalid": "bundle-invalid";
183
+ "bundle-stale": "bundle-stale";
184
+ busy: "busy";
185
+ "credential-conflict": "credential-conflict";
186
+ "declaration-invalid": "declaration-invalid";
187
+ "declaration-refused": "declaration-refused";
188
+ "handshake-refused": "handshake-refused";
189
+ "invalid-request": "invalid-request";
190
+ "io-failed": "io-failed";
191
+ "material-required": "material-required";
192
+ "owner-conflict": "owner-conflict";
193
+ "permission-denied": "permission-denied";
194
+ "proof-failed": "proof-failed";
195
+ "proof-not-read": "proof-not-read";
196
+ "proof-not-remote": "proof-not-remote";
197
+ "request-conflict": "request-conflict";
198
+ "runtime-conflict": "runtime-conflict";
199
+ "runtime-unavailable": "runtime-unavailable";
200
+ "state-invalid": "state-invalid";
201
+ "supervisor-failed": "supervisor-failed";
202
+ "version-mismatch": "version-mismatch";
203
+ }>;
204
+ phase: z.ZodEnum<{
205
+ admission: "admission";
206
+ artifact: "artifact";
207
+ configuration: "configuration";
208
+ credential: "credential";
209
+ detach: "detach";
210
+ preflight: "preflight";
211
+ supervisor: "supervisor";
212
+ "supervisor-unit": "supervisor-unit";
213
+ verification: "verification";
214
+ }>;
215
+ at: z.ZodISODateTime;
216
+ systemCode: z.ZodNullable<z.ZodString>;
217
+ }, z.core.$strict>;
218
+ }, z.core.$strict>, z.ZodObject<{
219
+ v: z.ZodLiteral<1>;
220
+ requestId: z.ZodNullable<z.ZodUUID>;
221
+ nodeId: z.ZodNullable<z.ZodString>;
222
+ operation: z.ZodNullable<z.ZodEnum<{
223
+ apply: "apply";
224
+ detach: "detach";
225
+ plan: "plan";
226
+ prepare: "prepare";
227
+ status: "status";
228
+ }>>;
229
+ observedAt: z.ZodISODateTime;
230
+ completed: z.ZodArray<z.ZodEnum<{
231
+ admission: "admission";
232
+ artifact: "artifact";
233
+ configuration: "configuration";
234
+ credential: "credential";
235
+ detach: "detach";
236
+ preflight: "preflight";
237
+ supervisor: "supervisor";
238
+ "supervisor-unit": "supervisor-unit";
239
+ verification: "verification";
240
+ }>>;
241
+ firstFailure: z.ZodNullable<z.ZodObject<{
242
+ code: z.ZodEnum<{
243
+ "admission-denied": "admission-denied";
244
+ "artifact-mismatch": "artifact-mismatch";
245
+ "broker-unavailable": "broker-unavailable";
246
+ "bundle-conflict": "bundle-conflict";
247
+ "bundle-invalid": "bundle-invalid";
248
+ "bundle-stale": "bundle-stale";
249
+ busy: "busy";
250
+ "credential-conflict": "credential-conflict";
251
+ "declaration-invalid": "declaration-invalid";
252
+ "declaration-refused": "declaration-refused";
253
+ "handshake-refused": "handshake-refused";
254
+ "invalid-request": "invalid-request";
255
+ "io-failed": "io-failed";
256
+ "material-required": "material-required";
257
+ "owner-conflict": "owner-conflict";
258
+ "permission-denied": "permission-denied";
259
+ "proof-failed": "proof-failed";
260
+ "proof-not-read": "proof-not-read";
261
+ "proof-not-remote": "proof-not-remote";
262
+ "request-conflict": "request-conflict";
263
+ "runtime-conflict": "runtime-conflict";
264
+ "runtime-unavailable": "runtime-unavailable";
265
+ "state-invalid": "state-invalid";
266
+ "supervisor-failed": "supervisor-failed";
267
+ "version-mismatch": "version-mismatch";
268
+ }>;
269
+ phase: z.ZodEnum<{
270
+ admission: "admission";
271
+ artifact: "artifact";
272
+ configuration: "configuration";
273
+ credential: "credential";
274
+ detach: "detach";
275
+ preflight: "preflight";
276
+ supervisor: "supervisor";
277
+ "supervisor-unit": "supervisor-unit";
278
+ verification: "verification";
279
+ }>;
280
+ at: z.ZodISODateTime;
281
+ systemCode: z.ZodNullable<z.ZodString>;
282
+ }, z.core.$strict>>;
283
+ kind: z.ZodLiteral<"node">;
284
+ credentials: z.ZodArray<z.ZodObject<{
285
+ broker: z.ZodString;
286
+ sha256: z.ZodString;
287
+ }, z.core.$strict>>;
288
+ status: z.ZodLiteral<"planned">;
289
+ }, z.core.$strict>, z.ZodObject<{
290
+ v: z.ZodLiteral<1>;
291
+ requestId: z.ZodNullable<z.ZodUUID>;
292
+ nodeId: z.ZodNullable<z.ZodString>;
293
+ operation: z.ZodNullable<z.ZodEnum<{
294
+ apply: "apply";
295
+ detach: "detach";
296
+ plan: "plan";
297
+ prepare: "prepare";
298
+ status: "status";
299
+ }>>;
300
+ observedAt: z.ZodISODateTime;
301
+ completed: z.ZodArray<z.ZodEnum<{
302
+ admission: "admission";
303
+ artifact: "artifact";
304
+ configuration: "configuration";
305
+ credential: "credential";
306
+ detach: "detach";
307
+ preflight: "preflight";
308
+ supervisor: "supervisor";
309
+ "supervisor-unit": "supervisor-unit";
310
+ verification: "verification";
311
+ }>>;
312
+ firstFailure: z.ZodNullable<z.ZodObject<{
313
+ code: z.ZodEnum<{
314
+ "admission-denied": "admission-denied";
315
+ "artifact-mismatch": "artifact-mismatch";
316
+ "broker-unavailable": "broker-unavailable";
317
+ "bundle-conflict": "bundle-conflict";
318
+ "bundle-invalid": "bundle-invalid";
319
+ "bundle-stale": "bundle-stale";
320
+ busy: "busy";
321
+ "credential-conflict": "credential-conflict";
322
+ "declaration-invalid": "declaration-invalid";
323
+ "declaration-refused": "declaration-refused";
324
+ "handshake-refused": "handshake-refused";
325
+ "invalid-request": "invalid-request";
326
+ "io-failed": "io-failed";
327
+ "material-required": "material-required";
328
+ "owner-conflict": "owner-conflict";
329
+ "permission-denied": "permission-denied";
330
+ "proof-failed": "proof-failed";
331
+ "proof-not-read": "proof-not-read";
332
+ "proof-not-remote": "proof-not-remote";
333
+ "request-conflict": "request-conflict";
334
+ "runtime-conflict": "runtime-conflict";
335
+ "runtime-unavailable": "runtime-unavailable";
336
+ "state-invalid": "state-invalid";
337
+ "supervisor-failed": "supervisor-failed";
338
+ "version-mismatch": "version-mismatch";
339
+ }>;
340
+ phase: z.ZodEnum<{
341
+ admission: "admission";
342
+ artifact: "artifact";
343
+ configuration: "configuration";
344
+ credential: "credential";
345
+ detach: "detach";
346
+ preflight: "preflight";
347
+ supervisor: "supervisor";
348
+ "supervisor-unit": "supervisor-unit";
349
+ verification: "verification";
350
+ }>;
351
+ at: z.ZodISODateTime;
352
+ systemCode: z.ZodNullable<z.ZodString>;
353
+ }, z.core.$strict>>;
354
+ kind: z.ZodLiteral<"node">;
355
+ credentials: z.ZodArray<z.ZodObject<{
356
+ broker: z.ZodString;
357
+ sha256: z.ZodString;
358
+ }, z.core.$strict>>;
359
+ status: z.ZodLiteral<"prepared">;
360
+ }, z.core.$strict>, z.ZodObject<{
361
+ v: z.ZodLiteral<1>;
362
+ requestId: z.ZodNullable<z.ZodUUID>;
363
+ nodeId: z.ZodNullable<z.ZodString>;
364
+ operation: z.ZodNullable<z.ZodEnum<{
365
+ apply: "apply";
366
+ detach: "detach";
367
+ plan: "plan";
368
+ prepare: "prepare";
369
+ status: "status";
370
+ }>>;
371
+ observedAt: z.ZodISODateTime;
372
+ completed: z.ZodArray<z.ZodEnum<{
373
+ admission: "admission";
374
+ artifact: "artifact";
375
+ configuration: "configuration";
376
+ credential: "credential";
377
+ detach: "detach";
378
+ preflight: "preflight";
379
+ supervisor: "supervisor";
380
+ "supervisor-unit": "supervisor-unit";
381
+ verification: "verification";
382
+ }>>;
383
+ firstFailure: z.ZodNullable<z.ZodObject<{
384
+ code: z.ZodEnum<{
385
+ "admission-denied": "admission-denied";
386
+ "artifact-mismatch": "artifact-mismatch";
387
+ "broker-unavailable": "broker-unavailable";
388
+ "bundle-conflict": "bundle-conflict";
389
+ "bundle-invalid": "bundle-invalid";
390
+ "bundle-stale": "bundle-stale";
391
+ busy: "busy";
392
+ "credential-conflict": "credential-conflict";
393
+ "declaration-invalid": "declaration-invalid";
394
+ "declaration-refused": "declaration-refused";
395
+ "handshake-refused": "handshake-refused";
396
+ "invalid-request": "invalid-request";
397
+ "io-failed": "io-failed";
398
+ "material-required": "material-required";
399
+ "owner-conflict": "owner-conflict";
400
+ "permission-denied": "permission-denied";
401
+ "proof-failed": "proof-failed";
402
+ "proof-not-read": "proof-not-read";
403
+ "proof-not-remote": "proof-not-remote";
404
+ "request-conflict": "request-conflict";
405
+ "runtime-conflict": "runtime-conflict";
406
+ "runtime-unavailable": "runtime-unavailable";
407
+ "state-invalid": "state-invalid";
408
+ "supervisor-failed": "supervisor-failed";
409
+ "version-mismatch": "version-mismatch";
410
+ }>;
411
+ phase: z.ZodEnum<{
412
+ admission: "admission";
413
+ artifact: "artifact";
414
+ configuration: "configuration";
415
+ credential: "credential";
416
+ detach: "detach";
417
+ preflight: "preflight";
418
+ supervisor: "supervisor";
419
+ "supervisor-unit": "supervisor-unit";
420
+ verification: "verification";
421
+ }>;
422
+ at: z.ZodISODateTime;
423
+ systemCode: z.ZodNullable<z.ZodString>;
424
+ }, z.core.$strict>>;
425
+ kind: z.ZodLiteral<"node">;
426
+ credentials: z.ZodArray<z.ZodObject<{
427
+ broker: z.ZodString;
428
+ sha256: z.ZodString;
429
+ }, z.core.$strict>>;
430
+ status: z.ZodLiteral<"ready">;
431
+ runtime: z.ZodObject<{
432
+ version: z.ZodString;
433
+ installation: z.ZodNullable<z.ZodObject<{
434
+ path: z.ZodString;
435
+ sha256: z.ZodString;
436
+ service: z.ZodObject<{
437
+ manager: z.ZodLiteral<"systemd">;
438
+ scope: z.ZodEnum<{
439
+ system: "system";
440
+ user: "user";
441
+ }>;
442
+ unit: z.ZodString;
443
+ }, z.core.$strict>;
444
+ }, z.core.$strict>>;
445
+ }, z.core.$strict>;
446
+ proof: z.ZodNullable<z.ZodObject<{
447
+ httpStatus: z.ZodNumber;
448
+ }, z.core.$strict>>;
449
+ }, z.core.$strict>, z.ZodObject<{
450
+ v: z.ZodLiteral<1>;
451
+ requestId: z.ZodNullable<z.ZodUUID>;
452
+ nodeId: z.ZodNullable<z.ZodString>;
453
+ operation: z.ZodNullable<z.ZodEnum<{
454
+ apply: "apply";
455
+ detach: "detach";
456
+ plan: "plan";
457
+ prepare: "prepare";
458
+ status: "status";
459
+ }>>;
460
+ observedAt: z.ZodISODateTime;
461
+ completed: z.ZodArray<z.ZodEnum<{
462
+ admission: "admission";
463
+ artifact: "artifact";
464
+ configuration: "configuration";
465
+ credential: "credential";
466
+ detach: "detach";
467
+ preflight: "preflight";
468
+ supervisor: "supervisor";
469
+ "supervisor-unit": "supervisor-unit";
470
+ verification: "verification";
471
+ }>>;
472
+ firstFailure: z.ZodNullable<z.ZodObject<{
473
+ code: z.ZodEnum<{
474
+ "admission-denied": "admission-denied";
475
+ "artifact-mismatch": "artifact-mismatch";
476
+ "broker-unavailable": "broker-unavailable";
477
+ "bundle-conflict": "bundle-conflict";
478
+ "bundle-invalid": "bundle-invalid";
479
+ "bundle-stale": "bundle-stale";
480
+ busy: "busy";
481
+ "credential-conflict": "credential-conflict";
482
+ "declaration-invalid": "declaration-invalid";
483
+ "declaration-refused": "declaration-refused";
484
+ "handshake-refused": "handshake-refused";
485
+ "invalid-request": "invalid-request";
486
+ "io-failed": "io-failed";
487
+ "material-required": "material-required";
488
+ "owner-conflict": "owner-conflict";
489
+ "permission-denied": "permission-denied";
490
+ "proof-failed": "proof-failed";
491
+ "proof-not-read": "proof-not-read";
492
+ "proof-not-remote": "proof-not-remote";
493
+ "request-conflict": "request-conflict";
494
+ "runtime-conflict": "runtime-conflict";
495
+ "runtime-unavailable": "runtime-unavailable";
496
+ "state-invalid": "state-invalid";
497
+ "supervisor-failed": "supervisor-failed";
498
+ "version-mismatch": "version-mismatch";
499
+ }>;
500
+ phase: z.ZodEnum<{
501
+ admission: "admission";
502
+ artifact: "artifact";
503
+ configuration: "configuration";
504
+ credential: "credential";
505
+ detach: "detach";
506
+ preflight: "preflight";
507
+ supervisor: "supervisor";
508
+ "supervisor-unit": "supervisor-unit";
509
+ verification: "verification";
510
+ }>;
511
+ at: z.ZodISODateTime;
512
+ systemCode: z.ZodNullable<z.ZodString>;
513
+ }, z.core.$strict>>;
514
+ kind: z.ZodLiteral<"node">;
515
+ credentials: z.ZodArray<z.ZodObject<{
516
+ broker: z.ZodString;
517
+ sha256: z.ZodString;
518
+ }, z.core.$strict>>;
519
+ status: z.ZodLiteral<"detached">;
520
+ runtime: z.ZodObject<{
521
+ version: z.ZodString;
522
+ installation: z.ZodNullable<z.ZodObject<{
523
+ path: z.ZodString;
524
+ sha256: z.ZodString;
525
+ service: z.ZodObject<{
526
+ manager: z.ZodLiteral<"systemd">;
527
+ scope: z.ZodEnum<{
528
+ system: "system";
529
+ user: "user";
530
+ }>;
531
+ unit: z.ZodString;
532
+ }, z.core.$strict>;
533
+ }, z.core.$strict>>;
534
+ }, z.core.$strict>;
535
+ }, z.core.$strict>, z.ZodObject<{
536
+ v: z.ZodLiteral<1>;
537
+ requestId: z.ZodNullable<z.ZodUUID>;
538
+ nodeId: z.ZodNullable<z.ZodString>;
539
+ operation: z.ZodNullable<z.ZodEnum<{
540
+ apply: "apply";
541
+ detach: "detach";
542
+ plan: "plan";
543
+ prepare: "prepare";
544
+ status: "status";
545
+ }>>;
546
+ observedAt: z.ZodISODateTime;
547
+ completed: z.ZodArray<z.ZodEnum<{
548
+ admission: "admission";
549
+ artifact: "artifact";
550
+ configuration: "configuration";
551
+ credential: "credential";
552
+ detach: "detach";
553
+ preflight: "preflight";
554
+ supervisor: "supervisor";
555
+ "supervisor-unit": "supervisor-unit";
556
+ verification: "verification";
557
+ }>>;
558
+ firstFailure: z.ZodNullable<z.ZodObject<{
559
+ code: z.ZodEnum<{
560
+ "admission-denied": "admission-denied";
561
+ "artifact-mismatch": "artifact-mismatch";
562
+ "broker-unavailable": "broker-unavailable";
563
+ "bundle-conflict": "bundle-conflict";
564
+ "bundle-invalid": "bundle-invalid";
565
+ "bundle-stale": "bundle-stale";
566
+ busy: "busy";
567
+ "credential-conflict": "credential-conflict";
568
+ "declaration-invalid": "declaration-invalid";
569
+ "declaration-refused": "declaration-refused";
570
+ "handshake-refused": "handshake-refused";
571
+ "invalid-request": "invalid-request";
572
+ "io-failed": "io-failed";
573
+ "material-required": "material-required";
574
+ "owner-conflict": "owner-conflict";
575
+ "permission-denied": "permission-denied";
576
+ "proof-failed": "proof-failed";
577
+ "proof-not-read": "proof-not-read";
578
+ "proof-not-remote": "proof-not-remote";
579
+ "request-conflict": "request-conflict";
580
+ "runtime-conflict": "runtime-conflict";
581
+ "runtime-unavailable": "runtime-unavailable";
582
+ "state-invalid": "state-invalid";
583
+ "supervisor-failed": "supervisor-failed";
584
+ "version-mismatch": "version-mismatch";
585
+ }>;
586
+ phase: z.ZodEnum<{
587
+ admission: "admission";
588
+ artifact: "artifact";
589
+ configuration: "configuration";
590
+ credential: "credential";
591
+ detach: "detach";
592
+ preflight: "preflight";
593
+ supervisor: "supervisor";
594
+ "supervisor-unit": "supervisor-unit";
595
+ verification: "verification";
596
+ }>;
597
+ at: z.ZodISODateTime;
598
+ systemCode: z.ZodNullable<z.ZodString>;
599
+ }, z.core.$strict>>;
600
+ kind: z.ZodLiteral<"admission">;
601
+ material: z.ZodObject<{
602
+ trust: z.ZodArray<z.ZodObject<{
603
+ id: z.ZodString;
604
+ publicKey: z.ZodString;
605
+ }, z.core.$strict>>;
606
+ bundle: z.ZodObject<{
607
+ format: z.ZodLiteral<"stitchwire.fleet-bundle">;
608
+ serial: z.ZodNumber;
609
+ full: z.ZodNullable<z.ZodObject<{
610
+ keyId: z.ZodString;
611
+ payload: z.ZodString;
612
+ signature: z.ZodString;
613
+ }, z.core.$strict>>;
614
+ slices: z.ZodRecord<z.ZodString, z.ZodObject<{
615
+ keyId: z.ZodString;
616
+ payload: z.ZodString;
617
+ signature: z.ZodString;
618
+ }, z.core.$strict>>;
619
+ }, z.core.$strict>;
620
+ }, z.core.$strict>;
621
+ admitted: z.ZodArray<z.ZodString>;
622
+ status: z.ZodLiteral<"planned">;
623
+ }, z.core.$strict>, z.ZodObject<{
624
+ v: z.ZodLiteral<1>;
625
+ requestId: z.ZodNullable<z.ZodUUID>;
626
+ nodeId: z.ZodNullable<z.ZodString>;
627
+ operation: z.ZodNullable<z.ZodEnum<{
628
+ apply: "apply";
629
+ detach: "detach";
630
+ plan: "plan";
631
+ prepare: "prepare";
632
+ status: "status";
633
+ }>>;
634
+ observedAt: z.ZodISODateTime;
635
+ completed: z.ZodArray<z.ZodEnum<{
636
+ admission: "admission";
637
+ artifact: "artifact";
638
+ configuration: "configuration";
639
+ credential: "credential";
640
+ detach: "detach";
641
+ preflight: "preflight";
642
+ supervisor: "supervisor";
643
+ "supervisor-unit": "supervisor-unit";
644
+ verification: "verification";
645
+ }>>;
646
+ firstFailure: z.ZodNullable<z.ZodObject<{
647
+ code: z.ZodEnum<{
648
+ "admission-denied": "admission-denied";
649
+ "artifact-mismatch": "artifact-mismatch";
650
+ "broker-unavailable": "broker-unavailable";
651
+ "bundle-conflict": "bundle-conflict";
652
+ "bundle-invalid": "bundle-invalid";
653
+ "bundle-stale": "bundle-stale";
654
+ busy: "busy";
655
+ "credential-conflict": "credential-conflict";
656
+ "declaration-invalid": "declaration-invalid";
657
+ "declaration-refused": "declaration-refused";
658
+ "handshake-refused": "handshake-refused";
659
+ "invalid-request": "invalid-request";
660
+ "io-failed": "io-failed";
661
+ "material-required": "material-required";
662
+ "owner-conflict": "owner-conflict";
663
+ "permission-denied": "permission-denied";
664
+ "proof-failed": "proof-failed";
665
+ "proof-not-read": "proof-not-read";
666
+ "proof-not-remote": "proof-not-remote";
667
+ "request-conflict": "request-conflict";
668
+ "runtime-conflict": "runtime-conflict";
669
+ "runtime-unavailable": "runtime-unavailable";
670
+ "state-invalid": "state-invalid";
671
+ "supervisor-failed": "supervisor-failed";
672
+ "version-mismatch": "version-mismatch";
673
+ }>;
674
+ phase: z.ZodEnum<{
675
+ admission: "admission";
676
+ artifact: "artifact";
677
+ configuration: "configuration";
678
+ credential: "credential";
679
+ detach: "detach";
680
+ preflight: "preflight";
681
+ supervisor: "supervisor";
682
+ "supervisor-unit": "supervisor-unit";
683
+ verification: "verification";
684
+ }>;
685
+ at: z.ZodISODateTime;
686
+ systemCode: z.ZodNullable<z.ZodString>;
687
+ }, z.core.$strict>>;
688
+ kind: z.ZodLiteral<"admission">;
689
+ material: z.ZodObject<{
690
+ trust: z.ZodArray<z.ZodObject<{
691
+ id: z.ZodString;
692
+ publicKey: z.ZodString;
693
+ }, z.core.$strict>>;
694
+ bundle: z.ZodObject<{
695
+ format: z.ZodLiteral<"stitchwire.fleet-bundle">;
696
+ serial: z.ZodNumber;
697
+ full: z.ZodNullable<z.ZodObject<{
698
+ keyId: z.ZodString;
699
+ payload: z.ZodString;
700
+ signature: z.ZodString;
701
+ }, z.core.$strict>>;
702
+ slices: z.ZodRecord<z.ZodString, z.ZodObject<{
703
+ keyId: z.ZodString;
704
+ payload: z.ZodString;
705
+ signature: z.ZodString;
706
+ }, z.core.$strict>>;
707
+ }, z.core.$strict>;
708
+ }, z.core.$strict>;
709
+ admitted: z.ZodArray<z.ZodString>;
710
+ status: z.ZodLiteral<"admitted">;
711
+ }, z.core.$strict>]>;
712
+ export type EnrollmentResult = z.infer<typeof EnrollmentResultSchema>;
713
+ export {};