@takboo/dsh-session-bin 0.0.0-stage → 0.1.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 (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 +116 -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 +5008 -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 +160 -0
  49. package/locale/en.json +6 -0
  50. package/locale/zh.json +6 -0
  51. package/package.json +163 -4
@@ -0,0 +1,82 @@
1
+ import { z } from 'zod';
2
+ export declare const archiveEntrySchema: z.ZodObject<{
3
+ schemaVersion: z.ZodLiteral<2>;
4
+ sessionId: z.ZodString;
5
+ entryId: z.ZodUUID;
6
+ }, z.core.$strict>;
7
+ export declare const archivePlanSchema: z.ZodObject<{
8
+ schemaVersion: z.ZodLiteral<2>;
9
+ operationId: z.ZodString;
10
+ action: z.ZodLiteral<"unarchive">;
11
+ sessionId: z.ZodString;
12
+ expected: z.ZodObject<{
13
+ archived: z.ZodBoolean;
14
+ entryId: z.ZodNullable<z.ZodUUID>;
15
+ }, z.core.$strict>;
16
+ blockers: z.ZodArray<z.ZodObject<{
17
+ code: z.ZodString;
18
+ activity: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ }, z.core.$strict>>;
20
+ }, z.core.$strict>;
21
+ export declare const archiveResultSchema: z.ZodObject<{
22
+ operationId: z.ZodString;
23
+ action: z.ZodLiteral<"unarchive">;
24
+ sessionId: z.ZodString;
25
+ status: z.ZodEnum<{
26
+ success: "success";
27
+ rejected: "rejected";
28
+ conflict: "conflict";
29
+ }>;
30
+ reason: z.ZodNullable<z.ZodString>;
31
+ entryId: z.ZodNullable<z.ZodUUID>;
32
+ }, z.core.$strict>;
33
+ export declare const archiveOperationSchema: z.ZodObject<{
34
+ schemaVersion: z.ZodLiteral<2>;
35
+ plan: z.ZodObject<{
36
+ schemaVersion: z.ZodLiteral<2>;
37
+ operationId: z.ZodString;
38
+ action: z.ZodLiteral<"unarchive">;
39
+ sessionId: z.ZodString;
40
+ expected: z.ZodObject<{
41
+ archived: z.ZodBoolean;
42
+ entryId: z.ZodNullable<z.ZodUUID>;
43
+ }, z.core.$strict>;
44
+ blockers: z.ZodArray<z.ZodObject<{
45
+ code: z.ZodString;
46
+ activity: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
+ }, z.core.$strict>>;
48
+ }, z.core.$strict>;
49
+ createdAt: z.ZodISODateTime;
50
+ phase: z.ZodEnum<{
51
+ intent: "intent";
52
+ applied: "applied";
53
+ done: "done";
54
+ }>;
55
+ entry: z.ZodNullable<z.ZodObject<{
56
+ schemaVersion: z.ZodLiteral<2>;
57
+ sessionId: z.ZodString;
58
+ entryId: z.ZodUUID;
59
+ }, z.core.$strict>>;
60
+ result: z.ZodNullable<z.ZodObject<{
61
+ operationId: z.ZodString;
62
+ action: z.ZodLiteral<"unarchive">;
63
+ sessionId: z.ZodString;
64
+ status: z.ZodEnum<{
65
+ success: "success";
66
+ rejected: "rejected";
67
+ conflict: "conflict";
68
+ }>;
69
+ reason: z.ZodNullable<z.ZodString>;
70
+ entryId: z.ZodNullable<z.ZodUUID>;
71
+ }, z.core.$strict>>;
72
+ }, z.core.$strict>;
73
+ export declare const archivePrepareRequestSchema: z.ZodObject<{
74
+ action: z.ZodLiteral<"unarchive">;
75
+ sessionId: z.ZodString;
76
+ operationId: z.ZodOptional<z.ZodString>;
77
+ }, z.core.$strict>;
78
+ export type ArchiveEntry = z.infer<typeof archiveEntrySchema>;
79
+ export type ArchivePlan = z.infer<typeof archivePlanSchema>;
80
+ export type ArchiveResult = z.infer<typeof archiveResultSchema>;
81
+ export type ArchiveOperation = z.infer<typeof archiveOperationSchema>;
82
+ export type ArchivePrepareRequest = z.infer<typeof archivePrepareRequestSchema>;
@@ -0,0 +1,2 @@
1
+ export * from './schema.js';
2
+ export * from './archive.js';
@@ -0,0 +1,129 @@
1
+ import { z } from 'zod';
2
+ export declare const retirementOwnerParticipantProgressSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ version: z.ZodString;
5
+ fenced: z.ZodBoolean;
6
+ quiesced: z.ZodBoolean;
7
+ converged: z.ZodBoolean;
8
+ }, z.core.$strict>;
9
+ export declare const retirementOwnerRecordSchema: z.ZodObject<{
10
+ schemaVersion: z.ZodLiteral<1>;
11
+ state: z.ZodObject<{
12
+ schemaVersion: z.ZodLiteral<1>;
13
+ request: z.ZodObject<{
14
+ operationId: z.ZodString;
15
+ expected: z.ZodObject<{
16
+ storeId: z.ZodString;
17
+ sessionId: z.ZodString;
18
+ lifecycleId: z.ZodString;
19
+ }, z.core.$strict>;
20
+ bin: z.ZodUnion<readonly [z.ZodObject<{
21
+ entryId: z.ZodUUID;
22
+ entryVersion: z.ZodLiteral<1>;
23
+ }, z.core.$strict>, z.ZodObject<{
24
+ kind: z.ZodLiteral<"native-archive">;
25
+ entryId: z.ZodUUID;
26
+ entryVersion: z.ZodLiteral<2>;
27
+ }, z.core.$strict>]>;
28
+ manifestDigest: z.ZodString;
29
+ }, z.core.$strict>;
30
+ manifest: z.ZodObject<{
31
+ schemaVersion: z.ZodLiteral<1>;
32
+ lifecycle: z.ZodObject<{
33
+ storeId: z.ZodString;
34
+ sessionId: z.ZodString;
35
+ lifecycleId: z.ZodString;
36
+ }, z.core.$strict>;
37
+ capabilities: z.ZodObject<{
38
+ protocolVersion: z.ZodLiteral<1>;
39
+ ownerId: z.ZodString;
40
+ hostVersion: z.ZodString;
41
+ providerId: z.ZodString;
42
+ storeId: z.ZodString;
43
+ participants: z.ZodArray<z.ZodObject<{
44
+ id: z.ZodString;
45
+ version: z.ZodString;
46
+ }, z.core.$strict>>;
47
+ }, z.core.$strict>;
48
+ resources: z.ZodArray<z.ZodObject<{
49
+ ownerId: z.ZodString;
50
+ resourceId: z.ZodString;
51
+ revision: z.ZodString;
52
+ kind: z.ZodEnum<{
53
+ transcript: "transcript";
54
+ workspace: "workspace";
55
+ index: "index";
56
+ cache: "cache";
57
+ attachment: "attachment";
58
+ spill: "spill";
59
+ coordination: "coordination";
60
+ }>;
61
+ disposition: z.ZodEnum<{
62
+ erase: "erase";
63
+ "release-reference": "release-reference";
64
+ "retain-shared": "retain-shared";
65
+ "retain-coordination": "retain-coordination";
66
+ }>;
67
+ retention: z.ZodNullable<z.ZodObject<{
68
+ reason: z.ZodEnum<{
69
+ "shared-reference": "shared-reference";
70
+ "coordination-identity": "coordination-identity";
71
+ }>;
72
+ retainedBy: z.ZodArray<z.ZodObject<{
73
+ storeId: z.ZodString;
74
+ sessionId: z.ZodString;
75
+ lifecycleId: z.ZodString;
76
+ }, z.core.$strict>>;
77
+ }, z.core.$strict>>;
78
+ }, z.core.$strict>>;
79
+ }, z.core.$strict>;
80
+ authorizationId: z.ZodNullable<z.ZodUUID>;
81
+ phase: z.ZodEnum<{
82
+ rejected: "rejected";
83
+ conflict: "conflict";
84
+ done: "done";
85
+ fenced: "fenced";
86
+ quiesced: "quiesced";
87
+ erasing: "erasing";
88
+ converging: "converging";
89
+ }>;
90
+ reason: z.ZodNullable<z.ZodString>;
91
+ resources: z.ZodArray<z.ZodObject<{
92
+ ownerId: z.ZodString;
93
+ resourceId: z.ZodString;
94
+ status: z.ZodEnum<{
95
+ erased: "erased";
96
+ "reference-released": "reference-released";
97
+ retained: "retained";
98
+ failed: "failed";
99
+ }>;
100
+ reason: z.ZodNullable<z.ZodString>;
101
+ }, z.core.$strict>>;
102
+ }, z.core.$strict>;
103
+ participants: z.ZodArray<z.ZodObject<{
104
+ id: z.ZodString;
105
+ version: z.ZodString;
106
+ fenced: z.ZodBoolean;
107
+ quiesced: z.ZodBoolean;
108
+ converged: z.ZodBoolean;
109
+ }, z.core.$strict>>;
110
+ lifecycleQuiesced: z.ZodBoolean;
111
+ lifecycleFinalized: z.ZodBoolean;
112
+ blockedReason: z.ZodNullable<z.ZodString>;
113
+ }, z.core.$strict>;
114
+ export declare const retirementOwnerGlobalSchema: z.ZodObject<{
115
+ schemaVersion: z.ZodLiteral<1>;
116
+ capabilities: z.ZodNullable<z.ZodObject<{
117
+ protocolVersion: z.ZodLiteral<1>;
118
+ ownerId: z.ZodString;
119
+ hostVersion: z.ZodString;
120
+ providerId: z.ZodString;
121
+ storeId: z.ZodString;
122
+ participants: z.ZodArray<z.ZodObject<{
123
+ id: z.ZodString;
124
+ version: z.ZodString;
125
+ }, z.core.$strict>>;
126
+ }, z.core.$strict>>;
127
+ }, z.core.$strict>;
128
+ export type RetirementOwnerRecord = z.infer<typeof retirementOwnerRecordSchema>;
129
+ export type RetirementOwnerParticipantProgress = z.infer<typeof retirementOwnerParticipantProgressSchema>;