@takboo/dsh-session-bin 0.0.0-stage → 0.1.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.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +122 -2
  3. package/cordis.patch.yml +4 -0
  4. package/dist/client-model.js +1673 -0
  5. package/dist/client.js +17043 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/host/archive.d.ts +766 -0
  8. package/dist/host/lease.d.ts +4 -0
  9. package/dist/host/module.d.ts +705 -0
  10. package/dist/host/native-jsonl-files.d.ts +198 -0
  11. package/dist/host/native-retirement-admission.d.ts +33 -0
  12. package/dist/host/native-retirement-metadata.d.ts +109 -0
  13. package/dist/host/native-retirement-owner.d.ts +305 -0
  14. package/dist/host/native-retirement-persistence.d.ts +24 -0
  15. package/dist/host/native-retirement-sdk.d.ts +80 -0
  16. package/dist/host/native.d.ts +12 -0
  17. package/dist/host/platform-files.d.ts +19 -0
  18. package/dist/host/remote.d.ts +32 -0
  19. package/dist/host/retirement-owner-store.d.ts +124 -0
  20. package/dist/host/retirement-owner.d.ts +124 -0
  21. package/dist/host/retirement-store.d.ts +311 -0
  22. package/dist/host/retirement.d.ts +76 -0
  23. package/dist/host/store.d.ts +215 -0
  24. package/dist/index.d.ts +912 -0
  25. package/dist/index.js +4921 -0
  26. package/dist/index.js.map +7 -0
  27. package/dist/operations/archive.d.ts +82 -0
  28. package/dist/operations/index.d.ts +2 -0
  29. package/dist/operations/retirement-owner.d.ts +129 -0
  30. package/dist/operations/retirement.d.ts +821 -0
  31. package/dist/operations/schema.d.ts +115 -0
  32. package/dist/operations.js +130 -0
  33. package/dist/operations.js.map +7 -0
  34. package/dist/remote/contracts.d.ts +891 -0
  35. package/dist/remote.js +442 -0
  36. package/dist/remote.js.map +7 -0
  37. package/dist/types/client/components.d.ts +17 -0
  38. package/dist/types/client/index.d.ts +10 -0
  39. package/dist/types/client/locales.d.ts +116 -0
  40. package/dist/types/client/model.d.ts +137 -0
  41. package/dist/types/client/purge-batch.d.ts +45 -0
  42. package/dist/types/client/retirement-digest.d.ts +3 -0
  43. package/dist/types/operations/archive.d.ts +82 -0
  44. package/dist/types/operations/retirement.d.ts +821 -0
  45. package/dist/types/operations/schema.d.ts +115 -0
  46. package/dist/types/remote/contracts.d.ts +891 -0
  47. package/docs/client-interface.md +79 -0
  48. package/docs/host-lifecycle.md +158 -0
  49. package/locale/en.json +6 -0
  50. package/locale/zh.json +6 -0
  51. package/package.json +163 -4
@@ -0,0 +1,821 @@
1
+ import { z } from 'zod';
2
+ export declare const lifecycleKeySchema: z.ZodObject<{
3
+ storeId: z.ZodString;
4
+ sessionId: z.ZodString;
5
+ lifecycleId: z.ZodString;
6
+ }, z.core.$strict>;
7
+ export declare const retirementParticipantSchema: z.ZodObject<{
8
+ id: z.ZodString;
9
+ version: z.ZodString;
10
+ }, z.core.$strict>;
11
+ export declare const retirementCapabilitiesSchema: z.ZodObject<{
12
+ protocolVersion: z.ZodLiteral<1>;
13
+ ownerId: z.ZodString;
14
+ hostVersion: z.ZodString;
15
+ providerId: z.ZodString;
16
+ storeId: z.ZodString;
17
+ participants: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodString;
19
+ version: z.ZodString;
20
+ }, z.core.$strict>>;
21
+ }, z.core.$strict>;
22
+ export declare const retirementBindingSchema: z.ZodUnion<readonly [z.ZodObject<{
23
+ schemaVersion: z.ZodLiteral<1>;
24
+ entryId: z.ZodUUID;
25
+ entryVersion: z.ZodLiteral<1>;
26
+ lifecycle: z.ZodObject<{
27
+ storeId: z.ZodString;
28
+ sessionId: z.ZodString;
29
+ lifecycleId: z.ZodString;
30
+ }, z.core.$strict>;
31
+ capabilities: z.ZodObject<{
32
+ protocolVersion: z.ZodLiteral<1>;
33
+ ownerId: z.ZodString;
34
+ hostVersion: z.ZodString;
35
+ providerId: z.ZodString;
36
+ storeId: z.ZodString;
37
+ participants: z.ZodArray<z.ZodObject<{
38
+ id: z.ZodString;
39
+ version: z.ZodString;
40
+ }, z.core.$strict>>;
41
+ }, z.core.$strict>;
42
+ }, z.core.$strict>, z.ZodObject<{
43
+ schemaVersion: z.ZodLiteral<2>;
44
+ target: z.ZodLiteral<"native-archive">;
45
+ entryId: z.ZodUUID;
46
+ entryVersion: z.ZodLiteral<2>;
47
+ lifecycle: z.ZodObject<{
48
+ storeId: z.ZodString;
49
+ sessionId: z.ZodString;
50
+ lifecycleId: z.ZodString;
51
+ }, z.core.$strict>;
52
+ capabilities: z.ZodObject<{
53
+ protocolVersion: z.ZodLiteral<1>;
54
+ ownerId: z.ZodString;
55
+ hostVersion: z.ZodString;
56
+ providerId: z.ZodString;
57
+ storeId: z.ZodString;
58
+ participants: z.ZodArray<z.ZodObject<{
59
+ id: z.ZodString;
60
+ version: z.ZodString;
61
+ }, z.core.$strict>>;
62
+ }, z.core.$strict>;
63
+ }, z.core.$strict>]>;
64
+ export declare const retirementResourceSchema: z.ZodObject<{
65
+ ownerId: z.ZodString;
66
+ resourceId: z.ZodString;
67
+ revision: z.ZodString;
68
+ kind: z.ZodEnum<{
69
+ transcript: "transcript";
70
+ workspace: "workspace";
71
+ index: "index";
72
+ cache: "cache";
73
+ attachment: "attachment";
74
+ spill: "spill";
75
+ coordination: "coordination";
76
+ }>;
77
+ disposition: z.ZodEnum<{
78
+ erase: "erase";
79
+ "release-reference": "release-reference";
80
+ "retain-shared": "retain-shared";
81
+ "retain-coordination": "retain-coordination";
82
+ }>;
83
+ retention: z.ZodNullable<z.ZodObject<{
84
+ reason: z.ZodEnum<{
85
+ "shared-reference": "shared-reference";
86
+ "coordination-identity": "coordination-identity";
87
+ }>;
88
+ retainedBy: z.ZodArray<z.ZodObject<{
89
+ storeId: z.ZodString;
90
+ sessionId: z.ZodString;
91
+ lifecycleId: z.ZodString;
92
+ }, z.core.$strict>>;
93
+ }, z.core.$strict>>;
94
+ }, z.core.$strict>;
95
+ export declare const retirementManifestSchema: z.ZodObject<{
96
+ schemaVersion: z.ZodLiteral<1>;
97
+ lifecycle: z.ZodObject<{
98
+ storeId: z.ZodString;
99
+ sessionId: z.ZodString;
100
+ lifecycleId: z.ZodString;
101
+ }, z.core.$strict>;
102
+ capabilities: z.ZodObject<{
103
+ protocolVersion: z.ZodLiteral<1>;
104
+ ownerId: z.ZodString;
105
+ hostVersion: z.ZodString;
106
+ providerId: z.ZodString;
107
+ storeId: z.ZodString;
108
+ participants: z.ZodArray<z.ZodObject<{
109
+ id: z.ZodString;
110
+ version: z.ZodString;
111
+ }, z.core.$strict>>;
112
+ }, z.core.$strict>;
113
+ resources: z.ZodArray<z.ZodObject<{
114
+ ownerId: z.ZodString;
115
+ resourceId: z.ZodString;
116
+ revision: z.ZodString;
117
+ kind: z.ZodEnum<{
118
+ transcript: "transcript";
119
+ workspace: "workspace";
120
+ index: "index";
121
+ cache: "cache";
122
+ attachment: "attachment";
123
+ spill: "spill";
124
+ coordination: "coordination";
125
+ }>;
126
+ disposition: z.ZodEnum<{
127
+ erase: "erase";
128
+ "release-reference": "release-reference";
129
+ "retain-shared": "retain-shared";
130
+ "retain-coordination": "retain-coordination";
131
+ }>;
132
+ retention: z.ZodNullable<z.ZodObject<{
133
+ reason: z.ZodEnum<{
134
+ "shared-reference": "shared-reference";
135
+ "coordination-identity": "coordination-identity";
136
+ }>;
137
+ retainedBy: z.ZodArray<z.ZodObject<{
138
+ storeId: z.ZodString;
139
+ sessionId: z.ZodString;
140
+ lifecycleId: z.ZodString;
141
+ }, z.core.$strict>>;
142
+ }, z.core.$strict>>;
143
+ }, z.core.$strict>>;
144
+ }, z.core.$strict>;
145
+ export declare const retirementRequestSchema: z.ZodObject<{
146
+ operationId: z.ZodString;
147
+ expected: z.ZodObject<{
148
+ storeId: z.ZodString;
149
+ sessionId: z.ZodString;
150
+ lifecycleId: z.ZodString;
151
+ }, z.core.$strict>;
152
+ bin: z.ZodUnion<readonly [z.ZodObject<{
153
+ entryId: z.ZodUUID;
154
+ entryVersion: z.ZodLiteral<1>;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ kind: z.ZodLiteral<"native-archive">;
157
+ entryId: z.ZodUUID;
158
+ entryVersion: z.ZodLiteral<2>;
159
+ }, z.core.$strict>]>;
160
+ manifestDigest: z.ZodString;
161
+ }, z.core.$strict>;
162
+ export declare const retirementResourceReceiptSchema: z.ZodObject<{
163
+ ownerId: z.ZodString;
164
+ resourceId: z.ZodString;
165
+ status: z.ZodEnum<{
166
+ erased: "erased";
167
+ "reference-released": "reference-released";
168
+ retained: "retained";
169
+ failed: "failed";
170
+ }>;
171
+ reason: z.ZodNullable<z.ZodString>;
172
+ }, z.core.$strict>;
173
+ export declare const retirementAuthorizationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
174
+ authorized: z.ZodLiteral<true>;
175
+ authorizationId: z.ZodUUID;
176
+ }, z.core.$strict>, z.ZodObject<{
177
+ authorized: z.ZodLiteral<false>;
178
+ reason: z.ZodString;
179
+ }, z.core.$strict>], "authorized">;
180
+ export declare const retirementStateSchema: z.ZodObject<{
181
+ schemaVersion: z.ZodLiteral<1>;
182
+ request: z.ZodObject<{
183
+ operationId: z.ZodString;
184
+ expected: z.ZodObject<{
185
+ storeId: z.ZodString;
186
+ sessionId: z.ZodString;
187
+ lifecycleId: z.ZodString;
188
+ }, z.core.$strict>;
189
+ bin: z.ZodUnion<readonly [z.ZodObject<{
190
+ entryId: z.ZodUUID;
191
+ entryVersion: z.ZodLiteral<1>;
192
+ }, z.core.$strict>, z.ZodObject<{
193
+ kind: z.ZodLiteral<"native-archive">;
194
+ entryId: z.ZodUUID;
195
+ entryVersion: z.ZodLiteral<2>;
196
+ }, z.core.$strict>]>;
197
+ manifestDigest: z.ZodString;
198
+ }, z.core.$strict>;
199
+ manifest: z.ZodObject<{
200
+ schemaVersion: z.ZodLiteral<1>;
201
+ lifecycle: z.ZodObject<{
202
+ storeId: z.ZodString;
203
+ sessionId: z.ZodString;
204
+ lifecycleId: z.ZodString;
205
+ }, z.core.$strict>;
206
+ capabilities: z.ZodObject<{
207
+ protocolVersion: z.ZodLiteral<1>;
208
+ ownerId: z.ZodString;
209
+ hostVersion: z.ZodString;
210
+ providerId: z.ZodString;
211
+ storeId: z.ZodString;
212
+ participants: z.ZodArray<z.ZodObject<{
213
+ id: z.ZodString;
214
+ version: z.ZodString;
215
+ }, z.core.$strict>>;
216
+ }, z.core.$strict>;
217
+ resources: z.ZodArray<z.ZodObject<{
218
+ ownerId: z.ZodString;
219
+ resourceId: z.ZodString;
220
+ revision: z.ZodString;
221
+ kind: z.ZodEnum<{
222
+ transcript: "transcript";
223
+ workspace: "workspace";
224
+ index: "index";
225
+ cache: "cache";
226
+ attachment: "attachment";
227
+ spill: "spill";
228
+ coordination: "coordination";
229
+ }>;
230
+ disposition: z.ZodEnum<{
231
+ erase: "erase";
232
+ "release-reference": "release-reference";
233
+ "retain-shared": "retain-shared";
234
+ "retain-coordination": "retain-coordination";
235
+ }>;
236
+ retention: z.ZodNullable<z.ZodObject<{
237
+ reason: z.ZodEnum<{
238
+ "shared-reference": "shared-reference";
239
+ "coordination-identity": "coordination-identity";
240
+ }>;
241
+ retainedBy: z.ZodArray<z.ZodObject<{
242
+ storeId: z.ZodString;
243
+ sessionId: z.ZodString;
244
+ lifecycleId: z.ZodString;
245
+ }, z.core.$strict>>;
246
+ }, z.core.$strict>>;
247
+ }, z.core.$strict>>;
248
+ }, z.core.$strict>;
249
+ authorizationId: z.ZodNullable<z.ZodUUID>;
250
+ phase: z.ZodEnum<{
251
+ rejected: "rejected";
252
+ conflict: "conflict";
253
+ done: "done";
254
+ fenced: "fenced";
255
+ quiesced: "quiesced";
256
+ erasing: "erasing";
257
+ converging: "converging";
258
+ }>;
259
+ reason: z.ZodNullable<z.ZodString>;
260
+ resources: z.ZodArray<z.ZodObject<{
261
+ ownerId: z.ZodString;
262
+ resourceId: z.ZodString;
263
+ status: z.ZodEnum<{
264
+ erased: "erased";
265
+ "reference-released": "reference-released";
266
+ retained: "retained";
267
+ failed: "failed";
268
+ }>;
269
+ reason: z.ZodNullable<z.ZodString>;
270
+ }, z.core.$strict>>;
271
+ }, z.core.$strict>;
272
+ export declare const preparePurgeRequestSchema: z.ZodObject<{
273
+ sessionId: z.ZodString;
274
+ operationId: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strict>;
276
+ export declare const purgePlanSchema: z.ZodObject<{
277
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
278
+ action: z.ZodLiteral<"purge">;
279
+ operationId: z.ZodString;
280
+ sessionId: z.ZodString;
281
+ expectedEntryId: z.ZodNullable<z.ZodUUID>;
282
+ binding: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
283
+ schemaVersion: z.ZodLiteral<1>;
284
+ entryId: z.ZodUUID;
285
+ entryVersion: z.ZodLiteral<1>;
286
+ lifecycle: z.ZodObject<{
287
+ storeId: z.ZodString;
288
+ sessionId: z.ZodString;
289
+ lifecycleId: z.ZodString;
290
+ }, z.core.$strict>;
291
+ capabilities: z.ZodObject<{
292
+ protocolVersion: z.ZodLiteral<1>;
293
+ ownerId: z.ZodString;
294
+ hostVersion: z.ZodString;
295
+ providerId: z.ZodString;
296
+ storeId: z.ZodString;
297
+ participants: z.ZodArray<z.ZodObject<{
298
+ id: z.ZodString;
299
+ version: z.ZodString;
300
+ }, z.core.$strict>>;
301
+ }, z.core.$strict>;
302
+ }, z.core.$strict>, z.ZodObject<{
303
+ schemaVersion: z.ZodLiteral<2>;
304
+ target: z.ZodLiteral<"native-archive">;
305
+ entryId: z.ZodUUID;
306
+ entryVersion: z.ZodLiteral<2>;
307
+ lifecycle: z.ZodObject<{
308
+ storeId: z.ZodString;
309
+ sessionId: z.ZodString;
310
+ lifecycleId: z.ZodString;
311
+ }, z.core.$strict>;
312
+ capabilities: z.ZodObject<{
313
+ protocolVersion: z.ZodLiteral<1>;
314
+ ownerId: z.ZodString;
315
+ hostVersion: z.ZodString;
316
+ providerId: z.ZodString;
317
+ storeId: z.ZodString;
318
+ participants: z.ZodArray<z.ZodObject<{
319
+ id: z.ZodString;
320
+ version: z.ZodString;
321
+ }, z.core.$strict>>;
322
+ }, z.core.$strict>;
323
+ }, z.core.$strict>]>>;
324
+ manifest: z.ZodNullable<z.ZodObject<{
325
+ schemaVersion: z.ZodLiteral<1>;
326
+ lifecycle: z.ZodObject<{
327
+ storeId: z.ZodString;
328
+ sessionId: z.ZodString;
329
+ lifecycleId: z.ZodString;
330
+ }, z.core.$strict>;
331
+ capabilities: z.ZodObject<{
332
+ protocolVersion: z.ZodLiteral<1>;
333
+ ownerId: z.ZodString;
334
+ hostVersion: z.ZodString;
335
+ providerId: z.ZodString;
336
+ storeId: z.ZodString;
337
+ participants: z.ZodArray<z.ZodObject<{
338
+ id: z.ZodString;
339
+ version: z.ZodString;
340
+ }, z.core.$strict>>;
341
+ }, z.core.$strict>;
342
+ resources: z.ZodArray<z.ZodObject<{
343
+ ownerId: z.ZodString;
344
+ resourceId: z.ZodString;
345
+ revision: z.ZodString;
346
+ kind: z.ZodEnum<{
347
+ transcript: "transcript";
348
+ workspace: "workspace";
349
+ index: "index";
350
+ cache: "cache";
351
+ attachment: "attachment";
352
+ spill: "spill";
353
+ coordination: "coordination";
354
+ }>;
355
+ disposition: z.ZodEnum<{
356
+ erase: "erase";
357
+ "release-reference": "release-reference";
358
+ "retain-shared": "retain-shared";
359
+ "retain-coordination": "retain-coordination";
360
+ }>;
361
+ retention: z.ZodNullable<z.ZodObject<{
362
+ reason: z.ZodEnum<{
363
+ "shared-reference": "shared-reference";
364
+ "coordination-identity": "coordination-identity";
365
+ }>;
366
+ retainedBy: z.ZodArray<z.ZodObject<{
367
+ storeId: z.ZodString;
368
+ sessionId: z.ZodString;
369
+ lifecycleId: z.ZodString;
370
+ }, z.core.$strict>>;
371
+ }, z.core.$strict>>;
372
+ }, z.core.$strict>>;
373
+ }, z.core.$strict>>;
374
+ blockers: z.ZodArray<z.ZodObject<{
375
+ code: z.ZodString;
376
+ activity: z.ZodOptional<z.ZodArray<z.ZodString>>;
377
+ }, z.core.$strict>>;
378
+ }, z.core.$strict>;
379
+ export declare const purgeResultSchema: z.ZodObject<{
380
+ action: z.ZodLiteral<"purge">;
381
+ operationId: z.ZodString;
382
+ sessionId: z.ZodString;
383
+ entryId: z.ZodNullable<z.ZodUUID>;
384
+ status: z.ZodEnum<{
385
+ success: "success";
386
+ rejected: "rejected";
387
+ conflict: "conflict";
388
+ "pending-recovery": "pending-recovery";
389
+ "partial-failure": "partial-failure";
390
+ }>;
391
+ reason: z.ZodNullable<z.ZodString>;
392
+ ownerState: z.ZodNullable<z.ZodObject<{
393
+ schemaVersion: z.ZodLiteral<1>;
394
+ request: z.ZodObject<{
395
+ operationId: z.ZodString;
396
+ expected: z.ZodObject<{
397
+ storeId: z.ZodString;
398
+ sessionId: z.ZodString;
399
+ lifecycleId: z.ZodString;
400
+ }, z.core.$strict>;
401
+ bin: z.ZodUnion<readonly [z.ZodObject<{
402
+ entryId: z.ZodUUID;
403
+ entryVersion: z.ZodLiteral<1>;
404
+ }, z.core.$strict>, z.ZodObject<{
405
+ kind: z.ZodLiteral<"native-archive">;
406
+ entryId: z.ZodUUID;
407
+ entryVersion: z.ZodLiteral<2>;
408
+ }, z.core.$strict>]>;
409
+ manifestDigest: z.ZodString;
410
+ }, z.core.$strict>;
411
+ manifest: z.ZodObject<{
412
+ schemaVersion: z.ZodLiteral<1>;
413
+ lifecycle: z.ZodObject<{
414
+ storeId: z.ZodString;
415
+ sessionId: z.ZodString;
416
+ lifecycleId: z.ZodString;
417
+ }, z.core.$strict>;
418
+ capabilities: z.ZodObject<{
419
+ protocolVersion: z.ZodLiteral<1>;
420
+ ownerId: z.ZodString;
421
+ hostVersion: z.ZodString;
422
+ providerId: z.ZodString;
423
+ storeId: z.ZodString;
424
+ participants: z.ZodArray<z.ZodObject<{
425
+ id: z.ZodString;
426
+ version: z.ZodString;
427
+ }, z.core.$strict>>;
428
+ }, z.core.$strict>;
429
+ resources: z.ZodArray<z.ZodObject<{
430
+ ownerId: z.ZodString;
431
+ resourceId: z.ZodString;
432
+ revision: z.ZodString;
433
+ kind: z.ZodEnum<{
434
+ transcript: "transcript";
435
+ workspace: "workspace";
436
+ index: "index";
437
+ cache: "cache";
438
+ attachment: "attachment";
439
+ spill: "spill";
440
+ coordination: "coordination";
441
+ }>;
442
+ disposition: z.ZodEnum<{
443
+ erase: "erase";
444
+ "release-reference": "release-reference";
445
+ "retain-shared": "retain-shared";
446
+ "retain-coordination": "retain-coordination";
447
+ }>;
448
+ retention: z.ZodNullable<z.ZodObject<{
449
+ reason: z.ZodEnum<{
450
+ "shared-reference": "shared-reference";
451
+ "coordination-identity": "coordination-identity";
452
+ }>;
453
+ retainedBy: z.ZodArray<z.ZodObject<{
454
+ storeId: z.ZodString;
455
+ sessionId: z.ZodString;
456
+ lifecycleId: z.ZodString;
457
+ }, z.core.$strict>>;
458
+ }, z.core.$strict>>;
459
+ }, z.core.$strict>>;
460
+ }, z.core.$strict>;
461
+ authorizationId: z.ZodNullable<z.ZodUUID>;
462
+ phase: z.ZodEnum<{
463
+ rejected: "rejected";
464
+ conflict: "conflict";
465
+ done: "done";
466
+ fenced: "fenced";
467
+ quiesced: "quiesced";
468
+ erasing: "erasing";
469
+ converging: "converging";
470
+ }>;
471
+ reason: z.ZodNullable<z.ZodString>;
472
+ resources: z.ZodArray<z.ZodObject<{
473
+ ownerId: z.ZodString;
474
+ resourceId: z.ZodString;
475
+ status: z.ZodEnum<{
476
+ erased: "erased";
477
+ "reference-released": "reference-released";
478
+ retained: "retained";
479
+ failed: "failed";
480
+ }>;
481
+ reason: z.ZodNullable<z.ZodString>;
482
+ }, z.core.$strict>>;
483
+ }, z.core.$strict>>;
484
+ }, z.core.$strict>;
485
+ export declare const purgeOperationSchema: z.ZodObject<{
486
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
487
+ plan: z.ZodObject<{
488
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
489
+ action: z.ZodLiteral<"purge">;
490
+ operationId: z.ZodString;
491
+ sessionId: z.ZodString;
492
+ expectedEntryId: z.ZodNullable<z.ZodUUID>;
493
+ binding: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
494
+ schemaVersion: z.ZodLiteral<1>;
495
+ entryId: z.ZodUUID;
496
+ entryVersion: z.ZodLiteral<1>;
497
+ lifecycle: z.ZodObject<{
498
+ storeId: z.ZodString;
499
+ sessionId: z.ZodString;
500
+ lifecycleId: z.ZodString;
501
+ }, z.core.$strict>;
502
+ capabilities: z.ZodObject<{
503
+ protocolVersion: z.ZodLiteral<1>;
504
+ ownerId: z.ZodString;
505
+ hostVersion: z.ZodString;
506
+ providerId: z.ZodString;
507
+ storeId: z.ZodString;
508
+ participants: z.ZodArray<z.ZodObject<{
509
+ id: z.ZodString;
510
+ version: z.ZodString;
511
+ }, z.core.$strict>>;
512
+ }, z.core.$strict>;
513
+ }, z.core.$strict>, z.ZodObject<{
514
+ schemaVersion: z.ZodLiteral<2>;
515
+ target: z.ZodLiteral<"native-archive">;
516
+ entryId: z.ZodUUID;
517
+ entryVersion: z.ZodLiteral<2>;
518
+ lifecycle: z.ZodObject<{
519
+ storeId: z.ZodString;
520
+ sessionId: z.ZodString;
521
+ lifecycleId: z.ZodString;
522
+ }, z.core.$strict>;
523
+ capabilities: z.ZodObject<{
524
+ protocolVersion: z.ZodLiteral<1>;
525
+ ownerId: z.ZodString;
526
+ hostVersion: z.ZodString;
527
+ providerId: z.ZodString;
528
+ storeId: z.ZodString;
529
+ participants: z.ZodArray<z.ZodObject<{
530
+ id: z.ZodString;
531
+ version: z.ZodString;
532
+ }, z.core.$strict>>;
533
+ }, z.core.$strict>;
534
+ }, z.core.$strict>]>>;
535
+ manifest: z.ZodNullable<z.ZodObject<{
536
+ schemaVersion: z.ZodLiteral<1>;
537
+ lifecycle: z.ZodObject<{
538
+ storeId: z.ZodString;
539
+ sessionId: z.ZodString;
540
+ lifecycleId: z.ZodString;
541
+ }, z.core.$strict>;
542
+ capabilities: z.ZodObject<{
543
+ protocolVersion: z.ZodLiteral<1>;
544
+ ownerId: z.ZodString;
545
+ hostVersion: z.ZodString;
546
+ providerId: z.ZodString;
547
+ storeId: z.ZodString;
548
+ participants: z.ZodArray<z.ZodObject<{
549
+ id: z.ZodString;
550
+ version: z.ZodString;
551
+ }, z.core.$strict>>;
552
+ }, z.core.$strict>;
553
+ resources: z.ZodArray<z.ZodObject<{
554
+ ownerId: z.ZodString;
555
+ resourceId: z.ZodString;
556
+ revision: z.ZodString;
557
+ kind: z.ZodEnum<{
558
+ transcript: "transcript";
559
+ workspace: "workspace";
560
+ index: "index";
561
+ cache: "cache";
562
+ attachment: "attachment";
563
+ spill: "spill";
564
+ coordination: "coordination";
565
+ }>;
566
+ disposition: z.ZodEnum<{
567
+ erase: "erase";
568
+ "release-reference": "release-reference";
569
+ "retain-shared": "retain-shared";
570
+ "retain-coordination": "retain-coordination";
571
+ }>;
572
+ retention: z.ZodNullable<z.ZodObject<{
573
+ reason: z.ZodEnum<{
574
+ "shared-reference": "shared-reference";
575
+ "coordination-identity": "coordination-identity";
576
+ }>;
577
+ retainedBy: z.ZodArray<z.ZodObject<{
578
+ storeId: z.ZodString;
579
+ sessionId: z.ZodString;
580
+ lifecycleId: z.ZodString;
581
+ }, z.core.$strict>>;
582
+ }, z.core.$strict>>;
583
+ }, z.core.$strict>>;
584
+ }, z.core.$strict>>;
585
+ blockers: z.ZodArray<z.ZodObject<{
586
+ code: z.ZodString;
587
+ activity: z.ZodOptional<z.ZodArray<z.ZodString>>;
588
+ }, z.core.$strict>>;
589
+ }, z.core.$strict>;
590
+ createdAt: z.ZodISODateTime;
591
+ phase: z.ZodEnum<{
592
+ intent: "intent";
593
+ done: "done";
594
+ authorizing: "authorizing";
595
+ "owner-pending": "owner-pending";
596
+ }>;
597
+ entry: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
598
+ schemaVersion: z.ZodLiteral<1>;
599
+ sessionId: z.ZodString;
600
+ entryId: z.ZodUUID;
601
+ operationId: z.ZodString;
602
+ binnedAt: z.ZodISODateTime;
603
+ workspaceIdAtBin: z.ZodNullable<z.ZodString>;
604
+ wasArchived: z.ZodBoolean;
605
+ }, z.core.$strict>, z.ZodObject<{
606
+ schemaVersion: z.ZodLiteral<2>;
607
+ sessionId: z.ZodString;
608
+ entryId: z.ZodUUID;
609
+ }, z.core.$strict>]>>;
610
+ authorizationId: z.ZodNullable<z.ZodUUID>;
611
+ ownerState: z.ZodNullable<z.ZodObject<{
612
+ schemaVersion: z.ZodLiteral<1>;
613
+ request: z.ZodObject<{
614
+ operationId: z.ZodString;
615
+ expected: z.ZodObject<{
616
+ storeId: z.ZodString;
617
+ sessionId: z.ZodString;
618
+ lifecycleId: z.ZodString;
619
+ }, z.core.$strict>;
620
+ bin: z.ZodUnion<readonly [z.ZodObject<{
621
+ entryId: z.ZodUUID;
622
+ entryVersion: z.ZodLiteral<1>;
623
+ }, z.core.$strict>, z.ZodObject<{
624
+ kind: z.ZodLiteral<"native-archive">;
625
+ entryId: z.ZodUUID;
626
+ entryVersion: z.ZodLiteral<2>;
627
+ }, z.core.$strict>]>;
628
+ manifestDigest: z.ZodString;
629
+ }, z.core.$strict>;
630
+ manifest: z.ZodObject<{
631
+ schemaVersion: z.ZodLiteral<1>;
632
+ lifecycle: z.ZodObject<{
633
+ storeId: z.ZodString;
634
+ sessionId: z.ZodString;
635
+ lifecycleId: z.ZodString;
636
+ }, z.core.$strict>;
637
+ capabilities: z.ZodObject<{
638
+ protocolVersion: z.ZodLiteral<1>;
639
+ ownerId: z.ZodString;
640
+ hostVersion: z.ZodString;
641
+ providerId: z.ZodString;
642
+ storeId: z.ZodString;
643
+ participants: z.ZodArray<z.ZodObject<{
644
+ id: z.ZodString;
645
+ version: z.ZodString;
646
+ }, z.core.$strict>>;
647
+ }, z.core.$strict>;
648
+ resources: z.ZodArray<z.ZodObject<{
649
+ ownerId: z.ZodString;
650
+ resourceId: z.ZodString;
651
+ revision: z.ZodString;
652
+ kind: z.ZodEnum<{
653
+ transcript: "transcript";
654
+ workspace: "workspace";
655
+ index: "index";
656
+ cache: "cache";
657
+ attachment: "attachment";
658
+ spill: "spill";
659
+ coordination: "coordination";
660
+ }>;
661
+ disposition: z.ZodEnum<{
662
+ erase: "erase";
663
+ "release-reference": "release-reference";
664
+ "retain-shared": "retain-shared";
665
+ "retain-coordination": "retain-coordination";
666
+ }>;
667
+ retention: z.ZodNullable<z.ZodObject<{
668
+ reason: z.ZodEnum<{
669
+ "shared-reference": "shared-reference";
670
+ "coordination-identity": "coordination-identity";
671
+ }>;
672
+ retainedBy: z.ZodArray<z.ZodObject<{
673
+ storeId: z.ZodString;
674
+ sessionId: z.ZodString;
675
+ lifecycleId: z.ZodString;
676
+ }, z.core.$strict>>;
677
+ }, z.core.$strict>>;
678
+ }, z.core.$strict>>;
679
+ }, z.core.$strict>;
680
+ authorizationId: z.ZodNullable<z.ZodUUID>;
681
+ phase: z.ZodEnum<{
682
+ rejected: "rejected";
683
+ conflict: "conflict";
684
+ done: "done";
685
+ fenced: "fenced";
686
+ quiesced: "quiesced";
687
+ erasing: "erasing";
688
+ converging: "converging";
689
+ }>;
690
+ reason: z.ZodNullable<z.ZodString>;
691
+ resources: z.ZodArray<z.ZodObject<{
692
+ ownerId: z.ZodString;
693
+ resourceId: z.ZodString;
694
+ status: z.ZodEnum<{
695
+ erased: "erased";
696
+ "reference-released": "reference-released";
697
+ retained: "retained";
698
+ failed: "failed";
699
+ }>;
700
+ reason: z.ZodNullable<z.ZodString>;
701
+ }, z.core.$strict>>;
702
+ }, z.core.$strict>>;
703
+ result: z.ZodNullable<z.ZodObject<{
704
+ action: z.ZodLiteral<"purge">;
705
+ operationId: z.ZodString;
706
+ sessionId: z.ZodString;
707
+ entryId: z.ZodNullable<z.ZodUUID>;
708
+ status: z.ZodEnum<{
709
+ success: "success";
710
+ rejected: "rejected";
711
+ conflict: "conflict";
712
+ "pending-recovery": "pending-recovery";
713
+ "partial-failure": "partial-failure";
714
+ }>;
715
+ reason: z.ZodNullable<z.ZodString>;
716
+ ownerState: z.ZodNullable<z.ZodObject<{
717
+ schemaVersion: z.ZodLiteral<1>;
718
+ request: z.ZodObject<{
719
+ operationId: z.ZodString;
720
+ expected: z.ZodObject<{
721
+ storeId: z.ZodString;
722
+ sessionId: z.ZodString;
723
+ lifecycleId: z.ZodString;
724
+ }, z.core.$strict>;
725
+ bin: z.ZodUnion<readonly [z.ZodObject<{
726
+ entryId: z.ZodUUID;
727
+ entryVersion: z.ZodLiteral<1>;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ kind: z.ZodLiteral<"native-archive">;
730
+ entryId: z.ZodUUID;
731
+ entryVersion: z.ZodLiteral<2>;
732
+ }, z.core.$strict>]>;
733
+ manifestDigest: z.ZodString;
734
+ }, z.core.$strict>;
735
+ manifest: z.ZodObject<{
736
+ schemaVersion: z.ZodLiteral<1>;
737
+ lifecycle: z.ZodObject<{
738
+ storeId: z.ZodString;
739
+ sessionId: z.ZodString;
740
+ lifecycleId: z.ZodString;
741
+ }, z.core.$strict>;
742
+ capabilities: z.ZodObject<{
743
+ protocolVersion: z.ZodLiteral<1>;
744
+ ownerId: z.ZodString;
745
+ hostVersion: z.ZodString;
746
+ providerId: z.ZodString;
747
+ storeId: z.ZodString;
748
+ participants: z.ZodArray<z.ZodObject<{
749
+ id: z.ZodString;
750
+ version: z.ZodString;
751
+ }, z.core.$strict>>;
752
+ }, z.core.$strict>;
753
+ resources: z.ZodArray<z.ZodObject<{
754
+ ownerId: z.ZodString;
755
+ resourceId: z.ZodString;
756
+ revision: z.ZodString;
757
+ kind: z.ZodEnum<{
758
+ transcript: "transcript";
759
+ workspace: "workspace";
760
+ index: "index";
761
+ cache: "cache";
762
+ attachment: "attachment";
763
+ spill: "spill";
764
+ coordination: "coordination";
765
+ }>;
766
+ disposition: z.ZodEnum<{
767
+ erase: "erase";
768
+ "release-reference": "release-reference";
769
+ "retain-shared": "retain-shared";
770
+ "retain-coordination": "retain-coordination";
771
+ }>;
772
+ retention: z.ZodNullable<z.ZodObject<{
773
+ reason: z.ZodEnum<{
774
+ "shared-reference": "shared-reference";
775
+ "coordination-identity": "coordination-identity";
776
+ }>;
777
+ retainedBy: z.ZodArray<z.ZodObject<{
778
+ storeId: z.ZodString;
779
+ sessionId: z.ZodString;
780
+ lifecycleId: z.ZodString;
781
+ }, z.core.$strict>>;
782
+ }, z.core.$strict>>;
783
+ }, z.core.$strict>>;
784
+ }, z.core.$strict>;
785
+ authorizationId: z.ZodNullable<z.ZodUUID>;
786
+ phase: z.ZodEnum<{
787
+ rejected: "rejected";
788
+ conflict: "conflict";
789
+ done: "done";
790
+ fenced: "fenced";
791
+ quiesced: "quiesced";
792
+ erasing: "erasing";
793
+ converging: "converging";
794
+ }>;
795
+ reason: z.ZodNullable<z.ZodString>;
796
+ resources: z.ZodArray<z.ZodObject<{
797
+ ownerId: z.ZodString;
798
+ resourceId: z.ZodString;
799
+ status: z.ZodEnum<{
800
+ erased: "erased";
801
+ "reference-released": "reference-released";
802
+ retained: "retained";
803
+ failed: "failed";
804
+ }>;
805
+ reason: z.ZodNullable<z.ZodString>;
806
+ }, z.core.$strict>>;
807
+ }, z.core.$strict>>;
808
+ }, z.core.$strict>>;
809
+ }, z.core.$strict>;
810
+ export type LifecycleKey = z.infer<typeof lifecycleKeySchema>;
811
+ export type RetirementCapabilities = z.infer<typeof retirementCapabilitiesSchema>;
812
+ export type RetirementBinding = z.infer<typeof retirementBindingSchema>;
813
+ export type RetirementManifest = z.infer<typeof retirementManifestSchema>;
814
+ export type RetirementRequest = z.infer<typeof retirementRequestSchema>;
815
+ export type RetirementAuthorization = z.infer<typeof retirementAuthorizationSchema>;
816
+ export type RetirementState = z.infer<typeof retirementStateSchema>;
817
+ export type PurgePlan = z.infer<typeof purgePlanSchema>;
818
+ export type PurgeResult = z.infer<typeof purgeResultSchema>;
819
+ export type PurgeOperation = z.infer<typeof purgeOperationSchema>;
820
+ export type PreparePurgeRequest = z.infer<typeof preparePurgeRequestSchema>;
821
+ export declare function lifecycleEqual(a: LifecycleKey, b: LifecycleKey): boolean;