@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,115 @@
1
+ import { z } from 'zod';
2
+ export declare const actionSchema: z.ZodEnum<{
3
+ bin: "bin";
4
+ restore: "restore";
5
+ }>;
6
+ export declare const blockerSchema: z.ZodObject<{
7
+ code: z.ZodString;
8
+ activity: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ }, z.core.$strict>;
10
+ export declare const entrySchema: z.ZodObject<{
11
+ schemaVersion: z.ZodLiteral<1>;
12
+ sessionId: z.ZodString;
13
+ entryId: z.ZodUUID;
14
+ operationId: z.ZodString;
15
+ binnedAt: z.ZodISODateTime;
16
+ workspaceIdAtBin: z.ZodNullable<z.ZodString>;
17
+ wasArchived: z.ZodBoolean;
18
+ }, z.core.$strict>;
19
+ export declare const planSchema: z.ZodObject<{
20
+ schemaVersion: z.ZodLiteral<1>;
21
+ operationId: z.ZodString;
22
+ action: z.ZodEnum<{
23
+ bin: "bin";
24
+ restore: "restore";
25
+ }>;
26
+ sessionId: z.ZodString;
27
+ expected: z.ZodObject<{
28
+ archived: z.ZodBoolean;
29
+ entryId: z.ZodNullable<z.ZodUUID>;
30
+ }, z.core.$strict>;
31
+ blockers: z.ZodArray<z.ZodObject<{
32
+ code: z.ZodString;
33
+ activity: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
+ }, z.core.$strict>>;
35
+ }, z.core.$strict>;
36
+ export declare const resultSchema: z.ZodObject<{
37
+ operationId: z.ZodString;
38
+ action: z.ZodEnum<{
39
+ bin: "bin";
40
+ restore: "restore";
41
+ }>;
42
+ sessionId: z.ZodString;
43
+ status: z.ZodEnum<{
44
+ success: "success";
45
+ rejected: "rejected";
46
+ conflict: "conflict";
47
+ }>;
48
+ reason: z.ZodNullable<z.ZodString>;
49
+ entryId: z.ZodNullable<z.ZodUUID>;
50
+ }, z.core.$strict>;
51
+ export declare const operationSchema: z.ZodObject<{
52
+ schemaVersion: z.ZodLiteral<1>;
53
+ plan: z.ZodObject<{
54
+ schemaVersion: z.ZodLiteral<1>;
55
+ operationId: z.ZodString;
56
+ action: z.ZodEnum<{
57
+ bin: "bin";
58
+ restore: "restore";
59
+ }>;
60
+ sessionId: z.ZodString;
61
+ expected: z.ZodObject<{
62
+ archived: z.ZodBoolean;
63
+ entryId: z.ZodNullable<z.ZodUUID>;
64
+ }, z.core.$strict>;
65
+ blockers: z.ZodArray<z.ZodObject<{
66
+ code: z.ZodString;
67
+ activity: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
+ }, z.core.$strict>>;
69
+ }, z.core.$strict>;
70
+ createdAt: z.ZodISODateTime;
71
+ phase: z.ZodEnum<{
72
+ intent: "intent";
73
+ applied: "applied";
74
+ done: "done";
75
+ }>;
76
+ ownershipInvalidated: z.ZodBoolean;
77
+ entry: z.ZodNullable<z.ZodObject<{
78
+ schemaVersion: z.ZodLiteral<1>;
79
+ sessionId: z.ZodString;
80
+ entryId: z.ZodUUID;
81
+ operationId: z.ZodString;
82
+ binnedAt: z.ZodISODateTime;
83
+ workspaceIdAtBin: z.ZodNullable<z.ZodString>;
84
+ wasArchived: z.ZodBoolean;
85
+ }, z.core.$strict>>;
86
+ result: z.ZodNullable<z.ZodObject<{
87
+ operationId: z.ZodString;
88
+ action: z.ZodEnum<{
89
+ bin: "bin";
90
+ restore: "restore";
91
+ }>;
92
+ sessionId: z.ZodString;
93
+ status: z.ZodEnum<{
94
+ success: "success";
95
+ rejected: "rejected";
96
+ conflict: "conflict";
97
+ }>;
98
+ reason: z.ZodNullable<z.ZodString>;
99
+ entryId: z.ZodNullable<z.ZodUUID>;
100
+ }, z.core.$strict>>;
101
+ }, z.core.$strict>;
102
+ export declare const prepareRequestSchema: z.ZodObject<{
103
+ action: z.ZodEnum<{
104
+ bin: "bin";
105
+ restore: "restore";
106
+ }>;
107
+ sessionId: z.ZodString;
108
+ operationId: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strict>;
110
+ export type BinEntry = z.infer<typeof entrySchema>;
111
+ export type BinPlan = z.infer<typeof planSchema>;
112
+ export type BinResult = z.infer<typeof resultSchema>;
113
+ export type BinOperation = z.infer<typeof operationSchema>;
114
+ export type BinBlocker = z.infer<typeof blockerSchema>;
115
+ export type PrepareRequest = z.infer<typeof prepareRequestSchema>;