@cleocode/contracts 2026.9.19 → 2026.9.21
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.
- package/README.md +1 -1
- package/dist/__tests__/decide.test.d.ts +7 -0
- package/dist/__tests__/decide.test.d.ts.map +1 -0
- package/dist/__tests__/decide.test.js +91 -0
- package/dist/__tests__/decide.test.js.map +1 -0
- package/dist/__tests__/evidence-atom-schema.test.js +2 -1
- package/dist/__tests__/evidence-atom-schema.test.js.map +1 -1
- package/dist/__tests__/memory-wire-shapes.test.js.map +1 -1
- package/dist/acceptance-gate-schema.d.ts +5 -0
- package/dist/acceptance-gate-schema.d.ts.map +1 -1
- package/dist/acceptance-gate-schema.js +26 -0
- package/dist/acceptance-gate-schema.js.map +1 -1
- package/dist/acceptance-gate.d.ts +70 -3
- package/dist/acceptance-gate.d.ts.map +1 -1
- package/dist/backup-manifest.d.ts +13 -2
- package/dist/backup-manifest.d.ts.map +1 -1
- package/dist/boundary.js +1 -1
- package/dist/boundary.js.map +1 -1
- package/dist/branch-lock.d.ts +11 -0
- package/dist/branch-lock.d.ts.map +1 -1
- package/dist/branch-lock.js +31 -4
- package/dist/branch-lock.js.map +1 -1
- package/dist/cloud/api.d.ts +607 -0
- package/dist/cloud/api.d.ts.map +1 -0
- package/dist/cloud/api.js +417 -0
- package/dist/cloud/api.js.map +1 -0
- package/dist/cloud/envelope.d.ts +84 -0
- package/dist/cloud/envelope.d.ts.map +1 -0
- package/dist/cloud/envelope.js +54 -0
- package/dist/cloud/envelope.js.map +1 -0
- package/dist/cloud/ids.d.ts +30 -0
- package/dist/cloud/ids.d.ts.map +1 -0
- package/dist/cloud/ids.js +32 -0
- package/dist/cloud/ids.js.map +1 -0
- package/dist/cloud/index.d.ts +17 -0
- package/dist/cloud/index.d.ts.map +1 -0
- package/dist/cloud/index.js +17 -0
- package/dist/cloud/index.js.map +1 -0
- package/dist/data-accessor.d.ts +23 -3
- package/dist/data-accessor.d.ts.map +1 -1
- package/dist/data-accessor.js.map +1 -1
- package/dist/decide.d.ts +333 -0
- package/dist/decide.d.ts.map +1 -0
- package/dist/decide.js +184 -0
- package/dist/decide.js.map +1 -0
- package/dist/dispatch/operations-registry.d.ts.map +1 -1
- package/dist/dispatch/operations-registry.js +55 -0
- package/dist/dispatch/operations-registry.js.map +1 -1
- package/dist/done-plan.d.ts +311 -0
- package/dist/done-plan.d.ts.map +1 -0
- package/dist/done-plan.js +17 -0
- package/dist/done-plan.js.map +1 -0
- package/dist/evidence-atom-schema.d.ts +18 -1
- package/dist/evidence-atom-schema.d.ts.map +1 -1
- package/dist/evidence-atom-schema.js +27 -2
- package/dist/evidence-atom-schema.js.map +1 -1
- package/dist/exit-codes.d.ts +40 -0
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/exit-codes.js +41 -0
- package/dist/exit-codes.js.map +1 -1
- package/dist/graph.d.ts +40 -0
- package/dist/graph.d.ts.map +1 -1
- package/dist/index.d.ts +14 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/memory/observe.d.ts +16 -0
- package/dist/memory/observe.d.ts.map +1 -1
- package/dist/operations/__tests__/release-shared-surface.test.d.ts +10 -0
- package/dist/operations/__tests__/release-shared-surface.test.d.ts.map +1 -0
- package/dist/operations/__tests__/release-shared-surface.test.js +84 -0
- package/dist/operations/__tests__/release-shared-surface.test.js.map +1 -0
- package/dist/operations/dialectic.d.ts +16 -0
- package/dist/operations/dialectic.d.ts.map +1 -1
- package/dist/operations/memory.d.ts +48 -0
- package/dist/operations/memory.d.ts.map +1 -1
- package/dist/operations/nexus-scope-map.d.ts +8 -0
- package/dist/operations/nexus-scope-map.d.ts.map +1 -1
- package/dist/operations/nexus-scope-map.js +8 -0
- package/dist/operations/nexus-scope-map.js.map +1 -1
- package/dist/operations/nexus-user-profile.d.ts +27 -1
- package/dist/operations/nexus-user-profile.d.ts.map +1 -1
- package/dist/operations/nexus-user-profile.js +11 -1
- package/dist/operations/nexus-user-profile.js.map +1 -1
- package/dist/operations/nexus.d.ts +394 -3
- package/dist/operations/nexus.d.ts.map +1 -1
- package/dist/operations/release.d.ts +259 -0
- package/dist/operations/release.d.ts.map +1 -1
- package/dist/operations/release.js +130 -1
- package/dist/operations/release.js.map +1 -1
- package/dist/operations/session.d.ts +6 -4
- package/dist/operations/session.d.ts.map +1 -1
- package/dist/operations/tasks.d.ts +6 -0
- package/dist/operations/tasks.d.ts.map +1 -1
- package/dist/operations/tasks.js +1 -0
- package/dist/operations/tasks.js.map +1 -1
- package/dist/operations/validate.d.ts +5 -0
- package/dist/operations/validate.d.ts.map +1 -1
- package/dist/operations/worktree.d.ts +125 -1
- package/dist/operations/worktree.d.ts.map +1 -1
- package/dist/process-probe.d.ts +17 -0
- package/dist/process-probe.d.ts.map +1 -0
- package/dist/process-probe.js +21 -0
- package/dist/process-probe.js.map +1 -0
- package/dist/project-context.d.ts +44 -2
- package/dist/project-context.d.ts.map +1 -1
- package/dist/project-lifecycle.d.ts +143 -0
- package/dist/project-lifecycle.d.ts.map +1 -0
- package/dist/project-lifecycle.js +21 -0
- package/dist/project-lifecycle.js.map +1 -0
- package/dist/release/plan.d.ts +6 -2
- package/dist/release/plan.d.ts.map +1 -1
- package/dist/release/plan.js +8 -2
- package/dist/release/plan.js.map +1 -1
- package/dist/release/plan.test.js +6 -1
- package/dist/release/plan.test.js.map +1 -1
- package/dist/skills/install-gate.d.ts +109 -0
- package/dist/skills/install-gate.d.ts.map +1 -0
- package/dist/skills/install-gate.js +18 -0
- package/dist/skills/install-gate.js.map +1 -0
- package/dist/table-classification.d.ts +208 -0
- package/dist/table-classification.d.ts.map +1 -0
- package/dist/table-classification.js +23 -0
- package/dist/table-classification.js.map +1 -0
- package/dist/task.d.ts +79 -0
- package/dist/task.d.ts.map +1 -1
- package/package.json +6 -2
- package/schemas/gate-result.schema.json +43 -0
- package/src/__tests__/__snapshots__/operations-registry.test.ts.snap +1 -1
- package/src/__tests__/decide.test.ts +139 -0
- package/src/__tests__/evidence-atom-schema.test.ts +2 -1
- package/src/__tests__/memory-wire-shapes.test.ts +3 -0
- package/src/acceptance-gate-schema.ts +29 -0
- package/src/acceptance-gate.ts +68 -3
- package/src/backup-manifest.ts +13 -2
- package/src/boundary.ts +1 -1
- package/src/branch-lock.ts +36 -4
- package/src/cloud/api.ts +512 -0
- package/src/cloud/envelope.ts +63 -0
- package/src/cloud/ids.ts +51 -0
- package/src/cloud/index.ts +16 -0
- package/src/data-accessor.ts +24 -3
- package/src/decide.ts +355 -0
- package/src/dispatch/operations-registry.ts +58 -0
- package/src/done-plan.ts +350 -0
- package/src/evidence-atom-schema.ts +31 -2
- package/src/exit-codes.ts +42 -0
- package/src/graph.ts +44 -0
- package/src/index.ts +133 -0
- package/src/memory/observe.ts +16 -0
- package/src/operations/__tests__/release-shared-surface.test.ts +112 -0
- package/src/operations/dialectic.ts +17 -0
- package/src/operations/memory.ts +48 -0
- package/src/operations/nexus-scope-map.ts +9 -0
- package/src/operations/nexus-user-profile.ts +29 -1
- package/src/operations/nexus.ts +416 -3
- package/src/operations/release.ts +197 -0
- package/src/operations/session.ts +6 -4
- package/src/operations/tasks.ts +7 -0
- package/src/operations/validate.ts +5 -0
- package/src/operations/worktree.ts +133 -1
- package/src/process-probe.ts +21 -0
- package/src/project-context.ts +42 -2
- package/src/project-lifecycle.ts +149 -0
- package/src/release/plan.test.ts +6 -1
- package/src/release/plan.ts +8 -2
- package/src/skills/install-gate.ts +134 -0
- package/src/table-classification.ts +232 -0
- package/src/task.ts +84 -1
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Wire contract for the Cleo Nexus API (v1).
|
|
4
|
+
*
|
|
5
|
+
* Privacy rule: the server never receives plaintext content (ADR-093). Everything below is
|
|
6
|
+
* routing or integrity metadata. Content travels only as ciphertext (`Base64`) or as blobs
|
|
7
|
+
* addressed by the sha256 of their ciphertext.
|
|
8
|
+
*/
|
|
9
|
+
export declare const API_VERSION: "v1";
|
|
10
|
+
/**
|
|
11
|
+
* The highest key version any schema accepts. Key versions go up by one per rotation, so this is far above
|
|
12
|
+
* any real account, and it keeps an absurd value (2^53 - 1, say) out of client state.
|
|
13
|
+
*/
|
|
14
|
+
export declare const MAX_KEY_VERSION = 1000000;
|
|
15
|
+
/** A master key or project key version: a positive integer, at most MAX_KEY_VERSION. */
|
|
16
|
+
export declare const KeyVersion: z.ZodNumber;
|
|
17
|
+
/** Largest inline segment. Larger segments go to R2 as a blob and are referenced by sha256. */
|
|
18
|
+
export declare const MAX_INLINE_SEGMENT_BYTES = 1048576;
|
|
19
|
+
export declare const MAX_PULL_LIMIT = 500;
|
|
20
|
+
export declare const Platform: z.ZodEnum<{
|
|
21
|
+
linux: "linux";
|
|
22
|
+
darwin: "darwin";
|
|
23
|
+
win32: "win32";
|
|
24
|
+
other: "other";
|
|
25
|
+
}>;
|
|
26
|
+
export declare const RegisterDeviceRequest: z.ZodObject<{
|
|
27
|
+
deviceId: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
platform: z.ZodEnum<{
|
|
30
|
+
linux: "linux";
|
|
31
|
+
darwin: "darwin";
|
|
32
|
+
win32: "win32";
|
|
33
|
+
other: "other";
|
|
34
|
+
}>;
|
|
35
|
+
encryptionPublicKey: z.ZodString;
|
|
36
|
+
signingPublicKey: z.ZodString;
|
|
37
|
+
cliVersion: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type RegisterDeviceRequest = z.infer<typeof RegisterDeviceRequest>;
|
|
40
|
+
export declare const Device: z.ZodObject<{
|
|
41
|
+
deviceId: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
platform: z.ZodEnum<{
|
|
44
|
+
linux: "linux";
|
|
45
|
+
darwin: "darwin";
|
|
46
|
+
win32: "win32";
|
|
47
|
+
other: "other";
|
|
48
|
+
}>;
|
|
49
|
+
encryptionPublicKey: z.ZodString;
|
|
50
|
+
signingPublicKey: z.ZodString;
|
|
51
|
+
cliVersion: z.ZodString;
|
|
52
|
+
createdAt: z.ZodISODateTime;
|
|
53
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
54
|
+
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
55
|
+
certificate: z.ZodNullable<z.ZodString>;
|
|
56
|
+
certificateKeyVersion: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type Device = z.infer<typeof Device>;
|
|
59
|
+
export declare const ListDevicesResult: z.ZodObject<{
|
|
60
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
61
|
+
deviceId: z.ZodString;
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
platform: z.ZodEnum<{
|
|
64
|
+
linux: "linux";
|
|
65
|
+
darwin: "darwin";
|
|
66
|
+
win32: "win32";
|
|
67
|
+
other: "other";
|
|
68
|
+
}>;
|
|
69
|
+
encryptionPublicKey: z.ZodString;
|
|
70
|
+
signingPublicKey: z.ZodString;
|
|
71
|
+
cliVersion: z.ZodString;
|
|
72
|
+
createdAt: z.ZodISODateTime;
|
|
73
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
74
|
+
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
75
|
+
certificate: z.ZodNullable<z.ZodString>;
|
|
76
|
+
certificateKeyVersion: z.ZodNullable<z.ZodNumber>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type ListDevicesResult = z.infer<typeof ListDevicesResult>;
|
|
80
|
+
export declare const RegisterProjectRequest: z.ZodObject<{
|
|
81
|
+
projectId: z.ZodString;
|
|
82
|
+
label: z.ZodOptional<z.ZodString>;
|
|
83
|
+
encryptedName: z.ZodOptional<z.ZodString>;
|
|
84
|
+
remoteUrl: z.ZodOptional<z.ZodString>;
|
|
85
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type RegisterProjectRequest = z.infer<typeof RegisterProjectRequest>;
|
|
88
|
+
export declare const Project: z.ZodObject<{
|
|
89
|
+
projectId: z.ZodString;
|
|
90
|
+
label: z.ZodNullable<z.ZodString>;
|
|
91
|
+
encryptedName: z.ZodNullable<z.ZodString>;
|
|
92
|
+
remoteUrl: z.ZodNullable<z.ZodString>;
|
|
93
|
+
organizationId: z.ZodString;
|
|
94
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
95
|
+
createdAt: z.ZodISODateTime;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type Project = z.infer<typeof Project>;
|
|
98
|
+
export declare const RegisterProjectResult: z.ZodObject<{
|
|
99
|
+
project: z.ZodObject<{
|
|
100
|
+
projectId: z.ZodString;
|
|
101
|
+
label: z.ZodNullable<z.ZodString>;
|
|
102
|
+
encryptedName: z.ZodNullable<z.ZodString>;
|
|
103
|
+
remoteUrl: z.ZodNullable<z.ZodString>;
|
|
104
|
+
organizationId: z.ZodString;
|
|
105
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
106
|
+
createdAt: z.ZodISODateTime;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
streamId: z.ZodString;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type RegisterProjectResult = z.infer<typeof RegisterProjectResult>;
|
|
111
|
+
/**
|
|
112
|
+
* Which devices hold a project. The server stores NO filesystem path, not even as a hint.
|
|
113
|
+
* Paths are per-device local state (cleo-dev review, 2026-09-27).
|
|
114
|
+
*/
|
|
115
|
+
export declare const AttachProjectDeviceRequest: z.ZodObject<{
|
|
116
|
+
deviceId: z.ZodString;
|
|
117
|
+
replicaId: z.ZodString;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
/**
|
|
120
|
+
* Path-free presence of one replica, for fleet status (cleo-dev SG-AGENTIC-CORE, T12479).
|
|
121
|
+
* The device keeps the full record, including paths. The cloud mirrors only this.
|
|
122
|
+
*/
|
|
123
|
+
export declare const ReplicaPresence: z.ZodObject<{
|
|
124
|
+
git: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
126
|
+
dirty: z.ZodBoolean;
|
|
127
|
+
ahead: z.ZodNumber;
|
|
128
|
+
behind: z.ZodNumber;
|
|
129
|
+
remote: z.ZodEnum<{
|
|
130
|
+
unknown: "unknown";
|
|
131
|
+
ahead: "ahead";
|
|
132
|
+
behind: "behind";
|
|
133
|
+
"in-sync": "in-sync";
|
|
134
|
+
diverged: "diverged";
|
|
135
|
+
"no-upstream": "no-upstream";
|
|
136
|
+
}>;
|
|
137
|
+
lastCommitAt: z.ZodOptional<z.ZodISODateTime>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
cliVersion: z.ZodString;
|
|
140
|
+
schemaVersion: z.ZodNumber;
|
|
141
|
+
observedAt: z.ZodISODateTime;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export type ReplicaPresence = z.infer<typeof ReplicaPresence>;
|
|
144
|
+
/**
|
|
145
|
+
* Per-table row deltas in a segment: plaintext counts, no content. They let the server check a
|
|
146
|
+
* checkpoint manifest for regressions without reading any row (E_REGRESSION).
|
|
147
|
+
*/
|
|
148
|
+
export declare const TableDeltas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
149
|
+
created: z.ZodNumber;
|
|
150
|
+
deleted: z.ZodNumber;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
export type TableDeltas = z.infer<typeof TableDeltas>;
|
|
153
|
+
export declare const AppendSegmentRequest: z.ZodObject<{
|
|
154
|
+
replicaId: z.ZodString;
|
|
155
|
+
deviceId: z.ZodString;
|
|
156
|
+
segmentHash: z.ZodString;
|
|
157
|
+
replicaSeq: z.ZodNumber;
|
|
158
|
+
schemaVersion: z.ZodNumber;
|
|
159
|
+
opCount: z.ZodNumber;
|
|
160
|
+
hlcMin: z.ZodString;
|
|
161
|
+
hlcMax: z.ZodString;
|
|
162
|
+
deltas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
163
|
+
created: z.ZodNumber;
|
|
164
|
+
deleted: z.ZodNumber;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
signature: z.ZodString;
|
|
167
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
168
|
+
blobSha256: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
export type AppendSegmentRequest = z.infer<typeof AppendSegmentRequest>;
|
|
171
|
+
export declare const AppendSegmentResult: z.ZodObject<{
|
|
172
|
+
streamId: z.ZodString;
|
|
173
|
+
seq: z.ZodNumber;
|
|
174
|
+
duplicate: z.ZodBoolean;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
export type AppendSegmentResult = z.infer<typeof AppendSegmentResult>;
|
|
177
|
+
export declare const Segment: z.ZodObject<{
|
|
178
|
+
seq: z.ZodNumber;
|
|
179
|
+
replicaId: z.ZodString;
|
|
180
|
+
deviceId: z.ZodString;
|
|
181
|
+
replicaSeq: z.ZodNumber;
|
|
182
|
+
segmentHash: z.ZodString;
|
|
183
|
+
schemaVersion: z.ZodNumber;
|
|
184
|
+
opCount: z.ZodNumber;
|
|
185
|
+
hlcMin: z.ZodString;
|
|
186
|
+
hlcMax: z.ZodString;
|
|
187
|
+
deltas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
188
|
+
created: z.ZodNumber;
|
|
189
|
+
deleted: z.ZodNumber;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
signature: z.ZodString;
|
|
192
|
+
ciphertext: z.ZodNullable<z.ZodString>;
|
|
193
|
+
blobSha256: z.ZodNullable<z.ZodString>;
|
|
194
|
+
receivedAt: z.ZodISODateTime;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type Segment = z.infer<typeof Segment>;
|
|
197
|
+
export declare const PullSegmentsQuery: z.ZodObject<{
|
|
198
|
+
after: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
199
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export declare const PullSegmentsResult: z.ZodObject<{
|
|
202
|
+
streamId: z.ZodString;
|
|
203
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
204
|
+
seq: z.ZodNumber;
|
|
205
|
+
replicaId: z.ZodString;
|
|
206
|
+
deviceId: z.ZodString;
|
|
207
|
+
replicaSeq: z.ZodNumber;
|
|
208
|
+
segmentHash: z.ZodString;
|
|
209
|
+
schemaVersion: z.ZodNumber;
|
|
210
|
+
opCount: z.ZodNumber;
|
|
211
|
+
hlcMin: z.ZodString;
|
|
212
|
+
hlcMax: z.ZodString;
|
|
213
|
+
deltas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
214
|
+
created: z.ZodNumber;
|
|
215
|
+
deleted: z.ZodNumber;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
signature: z.ZodString;
|
|
218
|
+
ciphertext: z.ZodNullable<z.ZodString>;
|
|
219
|
+
blobSha256: z.ZodNullable<z.ZodString>;
|
|
220
|
+
receivedAt: z.ZodISODateTime;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
head: z.ZodNumber;
|
|
223
|
+
nextAfter: z.ZodNumber;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
export type PullSegmentsResult = z.infer<typeof PullSegmentsResult>;
|
|
226
|
+
/**
|
|
227
|
+
* A checkpoint id (UUIDv7). The authoring client mints it, because its signature and the bundle's AAD
|
|
228
|
+
* both cover it, so the id must exist before the bundle is encrypted.
|
|
229
|
+
*/
|
|
230
|
+
export declare const CheckpointId: z.ZodString;
|
|
231
|
+
export type CheckpointId = z.infer<typeof CheckpointId>;
|
|
232
|
+
export declare const TableManifestEntry: z.ZodObject<{
|
|
233
|
+
rows: z.ZodNumber;
|
|
234
|
+
hash: z.ZodString;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
/** Plaintext manifest: per-table counts and uid-keyed hashes. No content (ADR-093 §3). */
|
|
237
|
+
export declare const Manifest: z.ZodObject<{
|
|
238
|
+
schemaVersion: z.ZodNumber;
|
|
239
|
+
tables: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
240
|
+
rows: z.ZodNumber;
|
|
241
|
+
hash: z.ZodString;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
export type Manifest = z.infer<typeof Manifest>;
|
|
245
|
+
/**
|
|
246
|
+
* Where one replica stood at a checkpoint: the device that signs its segments and the last replicaSeq
|
|
247
|
+
* folded in. A checkpoint lists every replica with a segment at or below its coversSeq, so a client that
|
|
248
|
+
* restores it can check every later segment for gaps and re-attribution (PullCursor).
|
|
249
|
+
*/
|
|
250
|
+
export declare const ReplicaHead: z.ZodObject<{
|
|
251
|
+
deviceId: z.ZodString;
|
|
252
|
+
lastReplicaSeq: z.ZodNumber;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
export type ReplicaHead = z.infer<typeof ReplicaHead>;
|
|
255
|
+
/** Per replica id, keys are replica ids. Covered by the checkpoint signature (replicasCanonical). */
|
|
256
|
+
export declare const ReplicaHeads: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
257
|
+
deviceId: z.ZodString;
|
|
258
|
+
lastReplicaSeq: z.ZodNumber;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
export type ReplicaHeads = z.infer<typeof ReplicaHeads>;
|
|
261
|
+
export declare const CreateCheckpointRequest: z.ZodObject<{
|
|
262
|
+
checkpointId: z.ZodString;
|
|
263
|
+
replicaId: z.ZodString;
|
|
264
|
+
deviceId: z.ZodString;
|
|
265
|
+
parentCheckpointId: z.ZodNullable<z.ZodString>;
|
|
266
|
+
coversSeq: z.ZodNumber;
|
|
267
|
+
manifest: z.ZodObject<{
|
|
268
|
+
schemaVersion: z.ZodNumber;
|
|
269
|
+
tables: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
270
|
+
rows: z.ZodNumber;
|
|
271
|
+
hash: z.ZodString;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
replicas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
275
|
+
deviceId: z.ZodString;
|
|
276
|
+
lastReplicaSeq: z.ZodNumber;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
blobSha256: z.ZodString;
|
|
279
|
+
sizeBytes: z.ZodNumber;
|
|
280
|
+
signature: z.ZodString;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
export type CreateCheckpointRequest = z.infer<typeof CreateCheckpointRequest>;
|
|
283
|
+
export declare const Checkpoint: z.ZodObject<{
|
|
284
|
+
checkpointId: z.ZodString;
|
|
285
|
+
streamId: z.ZodString;
|
|
286
|
+
parentCheckpointId: z.ZodNullable<z.ZodString>;
|
|
287
|
+
replicaId: z.ZodString;
|
|
288
|
+
deviceId: z.ZodString;
|
|
289
|
+
coversSeq: z.ZodNumber;
|
|
290
|
+
manifest: z.ZodObject<{
|
|
291
|
+
schemaVersion: z.ZodNumber;
|
|
292
|
+
tables: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
293
|
+
rows: z.ZodNumber;
|
|
294
|
+
hash: z.ZodString;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
replicas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
298
|
+
deviceId: z.ZodString;
|
|
299
|
+
lastReplicaSeq: z.ZodNumber;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
blobSha256: z.ZodString;
|
|
302
|
+
sizeBytes: z.ZodNumber;
|
|
303
|
+
signature: z.ZodString;
|
|
304
|
+
endorsements: z.ZodArray<z.ZodObject<{
|
|
305
|
+
deviceId: z.ZodString;
|
|
306
|
+
signature: z.ZodString;
|
|
307
|
+
}, z.core.$strip>>;
|
|
308
|
+
createdAt: z.ZodISODateTime;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
export type Checkpoint = z.infer<typeof Checkpoint>;
|
|
311
|
+
/** A live device re-signs a checkpoint. The device must be the calling device. */
|
|
312
|
+
export declare const EndorseCheckpointRequest: z.ZodObject<{
|
|
313
|
+
deviceId: z.ZodString;
|
|
314
|
+
signature: z.ZodString;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
export type EndorseCheckpointRequest = z.infer<typeof EndorseCheckpointRequest>;
|
|
317
|
+
export declare const CreateCheckpointResult: z.ZodObject<{
|
|
318
|
+
checkpoint: z.ZodObject<{
|
|
319
|
+
checkpointId: z.ZodString;
|
|
320
|
+
streamId: z.ZodString;
|
|
321
|
+
parentCheckpointId: z.ZodNullable<z.ZodString>;
|
|
322
|
+
replicaId: z.ZodString;
|
|
323
|
+
deviceId: z.ZodString;
|
|
324
|
+
coversSeq: z.ZodNumber;
|
|
325
|
+
manifest: z.ZodObject<{
|
|
326
|
+
schemaVersion: z.ZodNumber;
|
|
327
|
+
tables: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
328
|
+
rows: z.ZodNumber;
|
|
329
|
+
hash: z.ZodString;
|
|
330
|
+
}, z.core.$strip>>;
|
|
331
|
+
}, z.core.$strip>;
|
|
332
|
+
replicas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
333
|
+
deviceId: z.ZodString;
|
|
334
|
+
lastReplicaSeq: z.ZodNumber;
|
|
335
|
+
}, z.core.$strip>>;
|
|
336
|
+
blobSha256: z.ZodString;
|
|
337
|
+
sizeBytes: z.ZodNumber;
|
|
338
|
+
signature: z.ZodString;
|
|
339
|
+
endorsements: z.ZodArray<z.ZodObject<{
|
|
340
|
+
deviceId: z.ZodString;
|
|
341
|
+
signature: z.ZodString;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
createdAt: z.ZodISODateTime;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
export type CreateCheckpointResult = z.infer<typeof CreateCheckpointResult>;
|
|
347
|
+
/** Newest first, at most 100. */
|
|
348
|
+
export declare const ListCheckpointsResult: z.ZodObject<{
|
|
349
|
+
checkpoints: z.ZodArray<z.ZodObject<{
|
|
350
|
+
checkpointId: z.ZodString;
|
|
351
|
+
streamId: z.ZodString;
|
|
352
|
+
parentCheckpointId: z.ZodNullable<z.ZodString>;
|
|
353
|
+
replicaId: z.ZodString;
|
|
354
|
+
deviceId: z.ZodString;
|
|
355
|
+
coversSeq: z.ZodNumber;
|
|
356
|
+
manifest: z.ZodObject<{
|
|
357
|
+
schemaVersion: z.ZodNumber;
|
|
358
|
+
tables: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
359
|
+
rows: z.ZodNumber;
|
|
360
|
+
hash: z.ZodString;
|
|
361
|
+
}, z.core.$strip>>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
replicas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
364
|
+
deviceId: z.ZodString;
|
|
365
|
+
lastReplicaSeq: z.ZodNumber;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
blobSha256: z.ZodString;
|
|
368
|
+
sizeBytes: z.ZodNumber;
|
|
369
|
+
signature: z.ZodString;
|
|
370
|
+
endorsements: z.ZodArray<z.ZodObject<{
|
|
371
|
+
deviceId: z.ZodString;
|
|
372
|
+
signature: z.ZodString;
|
|
373
|
+
}, z.core.$strip>>;
|
|
374
|
+
createdAt: z.ZodISODateTime;
|
|
375
|
+
}, z.core.$strip>>;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
export type ListCheckpointsResult = z.infer<typeof ListCheckpointsResult>;
|
|
378
|
+
export declare const PresignUploadRequest: z.ZodObject<{
|
|
379
|
+
sha256: z.ZodString;
|
|
380
|
+
sizeBytes: z.ZodNumber;
|
|
381
|
+
purpose: z.ZodEnum<{
|
|
382
|
+
attachment: "attachment";
|
|
383
|
+
checkpoint: "checkpoint";
|
|
384
|
+
segment: "segment";
|
|
385
|
+
}>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
export declare const PresignUploadResult: z.ZodObject<{
|
|
388
|
+
alreadyPresent: z.ZodBoolean;
|
|
389
|
+
uploadUrl: z.ZodNullable<z.ZodString>;
|
|
390
|
+
uploadHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
391
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
export type PresignUploadResult = z.infer<typeof PresignUploadResult>;
|
|
394
|
+
export declare const CompleteUploadResult: z.ZodObject<{
|
|
395
|
+
sha256: z.ZodString;
|
|
396
|
+
verified: z.ZodLiteral<true>;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
export type CompleteUploadResult = z.infer<typeof CompleteUploadResult>;
|
|
399
|
+
/**
|
|
400
|
+
* A short-lived presigned download URL. The response of `GET /v1/streams/:streamId/segments/:seq/blob`
|
|
401
|
+
* and of `GET /v1/streams/:streamId/checkpoints/:checkpointId/download`. The client downloads at most
|
|
402
|
+
* `sizeBytes` and checks the bytes against the sha256 it already trusts, never against this one alone.
|
|
403
|
+
*/
|
|
404
|
+
export declare const BlobDownload: z.ZodObject<{
|
|
405
|
+
url: z.ZodString;
|
|
406
|
+
sha256: z.ZodString;
|
|
407
|
+
sizeBytes: z.ZodNumber;
|
|
408
|
+
expiresInSeconds: z.ZodNumber;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
export type BlobDownload = z.infer<typeof BlobDownload>;
|
|
411
|
+
/**
|
|
412
|
+
* Roles that must run on exactly one replica per stream (cleo-dev review R4). Consolidation
|
|
413
|
+
* writes (invalid_at, citation_count), sentient proposals and checkpoint authoring would otherwise
|
|
414
|
+
* produce op storms or duplicates. Ordinary journal appends are not leased, because merge handles concurrency.
|
|
415
|
+
*/
|
|
416
|
+
export declare const LeaseRole: z.ZodEnum<{
|
|
417
|
+
sentient: "sentient";
|
|
418
|
+
consolidator: "consolidator";
|
|
419
|
+
checkpointer: "checkpointer";
|
|
420
|
+
}>;
|
|
421
|
+
export type LeaseRole = z.infer<typeof LeaseRole>;
|
|
422
|
+
export declare const AcquireLeaseRequest: z.ZodObject<{
|
|
423
|
+
role: z.ZodEnum<{
|
|
424
|
+
sentient: "sentient";
|
|
425
|
+
consolidator: "consolidator";
|
|
426
|
+
checkpointer: "checkpointer";
|
|
427
|
+
}>;
|
|
428
|
+
replicaId: z.ZodString;
|
|
429
|
+
ttlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
430
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
431
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
export declare const Lease: z.ZodObject<{
|
|
434
|
+
streamId: z.ZodString;
|
|
435
|
+
role: z.ZodEnum<{
|
|
436
|
+
sentient: "sentient";
|
|
437
|
+
consolidator: "consolidator";
|
|
438
|
+
checkpointer: "checkpointer";
|
|
439
|
+
}>;
|
|
440
|
+
leaseId: z.ZodString;
|
|
441
|
+
replicaId: z.ZodString;
|
|
442
|
+
expiresAt: z.ZodISODateTime;
|
|
443
|
+
forkedFromReplicaId: z.ZodNullable<z.ZodString>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
export type Lease = z.infer<typeof Lease>;
|
|
446
|
+
/**
|
|
447
|
+
* Bounds on Argon2id parameters. The server stores the parameters, so a client must not trust them: too
|
|
448
|
+
* low weakens the passphrase, too high is a denial of service (a 64 GiB allocation). Both sides enforce these.
|
|
449
|
+
*/
|
|
450
|
+
export declare const KDF_LIMITS: {
|
|
451
|
+
readonly memoryKiB: {
|
|
452
|
+
readonly min: 65536;
|
|
453
|
+
readonly max: 1048576;
|
|
454
|
+
};
|
|
455
|
+
readonly iterations: {
|
|
456
|
+
readonly min: 2;
|
|
457
|
+
readonly max: 10;
|
|
458
|
+
};
|
|
459
|
+
readonly parallelism: {
|
|
460
|
+
readonly min: 1;
|
|
461
|
+
readonly max: 16;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
export declare const KdfParams: z.ZodObject<{
|
|
465
|
+
algorithm: z.ZodLiteral<"argon2id">;
|
|
466
|
+
memoryKiB: z.ZodNumber;
|
|
467
|
+
iterations: z.ZodNumber;
|
|
468
|
+
parallelism: z.ZodNumber;
|
|
469
|
+
salt: z.ZodString;
|
|
470
|
+
}, z.core.$strip>;
|
|
471
|
+
export declare const PutUserKeysRequest: z.ZodObject<{
|
|
472
|
+
passphraseWrappedMasterKey: z.ZodString;
|
|
473
|
+
kdf: z.ZodObject<{
|
|
474
|
+
algorithm: z.ZodLiteral<"argon2id">;
|
|
475
|
+
memoryKiB: z.ZodNumber;
|
|
476
|
+
iterations: z.ZodNumber;
|
|
477
|
+
parallelism: z.ZodNumber;
|
|
478
|
+
salt: z.ZodString;
|
|
479
|
+
}, z.core.$strip>;
|
|
480
|
+
recoveryWrappedMasterKey: z.ZodString;
|
|
481
|
+
masterKeyVerifier: z.ZodString;
|
|
482
|
+
keyVersion: z.ZodNumber;
|
|
483
|
+
}, z.core.$strip>;
|
|
484
|
+
/** What the server returns for `GET /v1/account/keys`. */
|
|
485
|
+
export declare const UserKeys: z.ZodObject<{
|
|
486
|
+
passphraseWrappedMasterKey: z.ZodString;
|
|
487
|
+
kdf: z.ZodObject<{
|
|
488
|
+
algorithm: z.ZodLiteral<"argon2id">;
|
|
489
|
+
memoryKiB: z.ZodNumber;
|
|
490
|
+
iterations: z.ZodNumber;
|
|
491
|
+
parallelism: z.ZodNumber;
|
|
492
|
+
salt: z.ZodString;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
recoveryWrappedMasterKey: z.ZodString;
|
|
495
|
+
masterKeyVerifier: z.ZodString;
|
|
496
|
+
keyVersion: z.ZodNumber;
|
|
497
|
+
userId: z.ZodString;
|
|
498
|
+
updatedAt: z.ZodISODateTime;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
export type UserKeys = z.infer<typeof UserKeys>;
|
|
501
|
+
/**
|
|
502
|
+
* A device key grant: the master key sealed to the recipient device, signed by a device that holds the
|
|
503
|
+
* master key (docs/security/e2e-keys.md, "Device trust"). The sealed box alone is anonymous, so anyone,
|
|
504
|
+
* the server included, could seal a key of their choosing to a device. The signature is what the
|
|
505
|
+
* recipient checks, against a signer it already trusts, before it accepts the key.
|
|
506
|
+
*/
|
|
507
|
+
export declare const PutDeviceWrappedKeyRequest: z.ZodObject<{
|
|
508
|
+
sealedMasterKey: z.ZodString;
|
|
509
|
+
keyVersion: z.ZodNumber;
|
|
510
|
+
certificate: z.ZodString;
|
|
511
|
+
signerDeviceId: z.ZodString;
|
|
512
|
+
grantSignature: z.ZodString;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
export type PutDeviceWrappedKeyRequest = z.infer<typeof PutDeviceWrappedKeyRequest>;
|
|
515
|
+
/** What the server returns for `GET /v1/devices/:deviceId/key`. */
|
|
516
|
+
export declare const DeviceKeyGrant: z.ZodObject<{
|
|
517
|
+
sealedMasterKey: z.ZodString;
|
|
518
|
+
keyVersion: z.ZodNumber;
|
|
519
|
+
certificate: z.ZodString;
|
|
520
|
+
signerDeviceId: z.ZodString;
|
|
521
|
+
grantSignature: z.ZodString;
|
|
522
|
+
deviceId: z.ZodString;
|
|
523
|
+
}, z.core.$strip>;
|
|
524
|
+
export type DeviceKeyGrant = z.infer<typeof DeviceKeyGrant>;
|
|
525
|
+
/**
|
|
526
|
+
* Where a revoked signing key stops being trusted: per replica, the last replicaSeq it may have signed,
|
|
527
|
+
* and per stream, the highest coversSeq of a checkpoint it may have signed. Keys are replica ids and
|
|
528
|
+
* stream ids. Covered by the revocation signature (revocationPinsCanonical).
|
|
529
|
+
*/
|
|
530
|
+
export declare const RevocationPins: z.ZodObject<{
|
|
531
|
+
replicas: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
532
|
+
checkpoints: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
|
+
export type RevocationPins = z.infer<typeof RevocationPins>;
|
|
535
|
+
/**
|
|
536
|
+
* A revocation record (docs/security/e2e-keys.md, "Revocation"): a certified device signs that one
|
|
537
|
+
* signing key of a device is revoked, and pins what it signed before. History up to the pins stays
|
|
538
|
+
* verifiable; anything past them is refused. The signer must be the calling device.
|
|
539
|
+
*/
|
|
540
|
+
export declare const CreateDeviceRevocationRequest: z.ZodObject<{
|
|
541
|
+
signingPublicKey: z.ZodString;
|
|
542
|
+
pins: z.ZodObject<{
|
|
543
|
+
replicas: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
544
|
+
checkpoints: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
545
|
+
}, z.core.$strip>;
|
|
546
|
+
signerDeviceId: z.ZodString;
|
|
547
|
+
signature: z.ZodString;
|
|
548
|
+
}, z.core.$strip>;
|
|
549
|
+
export type CreateDeviceRevocationRequest = z.infer<typeof CreateDeviceRevocationRequest>;
|
|
550
|
+
export declare const DeviceRevocation: z.ZodObject<{
|
|
551
|
+
signingPublicKey: z.ZodString;
|
|
552
|
+
pins: z.ZodObject<{
|
|
553
|
+
replicas: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
554
|
+
checkpoints: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
signerDeviceId: z.ZodString;
|
|
557
|
+
signature: z.ZodString;
|
|
558
|
+
deviceId: z.ZodString;
|
|
559
|
+
}, z.core.$strip>;
|
|
560
|
+
export type DeviceRevocation = z.infer<typeof DeviceRevocation>;
|
|
561
|
+
/**
|
|
562
|
+
* One device certificate ever issued, kept for as long as the device's history exists. A revoke or a
|
|
563
|
+
* re-registration with new keys never deletes one. `live` is the server's claim that the key is the
|
|
564
|
+
* device's current key and the device is not revoked; clients trust it only in the safe direction.
|
|
565
|
+
*/
|
|
566
|
+
export declare const DeviceCertificateRecord: z.ZodObject<{
|
|
567
|
+
deviceId: z.ZodString;
|
|
568
|
+
encryptionPublicKey: z.ZodString;
|
|
569
|
+
signingPublicKey: z.ZodString;
|
|
570
|
+
keyVersion: z.ZodNumber;
|
|
571
|
+
certificate: z.ZodString;
|
|
572
|
+
live: z.ZodBoolean;
|
|
573
|
+
}, z.core.$strip>;
|
|
574
|
+
export type DeviceCertificateRecord = z.infer<typeof DeviceCertificateRecord>;
|
|
575
|
+
/** `GET /v1/devices/trust`: everything a client needs to build its trusted signer set (certifiedSigners). */
|
|
576
|
+
export declare const DeviceTrust: z.ZodObject<{
|
|
577
|
+
certificates: z.ZodArray<z.ZodObject<{
|
|
578
|
+
deviceId: z.ZodString;
|
|
579
|
+
encryptionPublicKey: z.ZodString;
|
|
580
|
+
signingPublicKey: z.ZodString;
|
|
581
|
+
keyVersion: z.ZodNumber;
|
|
582
|
+
certificate: z.ZodString;
|
|
583
|
+
live: z.ZodBoolean;
|
|
584
|
+
}, z.core.$strip>>;
|
|
585
|
+
revocations: z.ZodArray<z.ZodObject<{
|
|
586
|
+
signingPublicKey: z.ZodString;
|
|
587
|
+
pins: z.ZodObject<{
|
|
588
|
+
replicas: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
589
|
+
checkpoints: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
signerDeviceId: z.ZodString;
|
|
592
|
+
signature: z.ZodString;
|
|
593
|
+
deviceId: z.ZodString;
|
|
594
|
+
}, z.core.$strip>>;
|
|
595
|
+
}, z.core.$strip>;
|
|
596
|
+
export type DeviceTrust = z.infer<typeof DeviceTrust>;
|
|
597
|
+
export declare const PutProjectKeyRequest: z.ZodObject<{
|
|
598
|
+
wrappedProjectKey: z.ZodString;
|
|
599
|
+
keyVersion: z.ZodNumber;
|
|
600
|
+
}, z.core.$strip>;
|
|
601
|
+
export declare const ConflictSummary: z.ZodObject<{
|
|
602
|
+
replicaId: z.ZodString;
|
|
603
|
+
open: z.ZodNumber;
|
|
604
|
+
byKind: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
605
|
+
reportedAt: z.ZodISODateTime;
|
|
606
|
+
}, z.core.$strip>;
|
|
607
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/cloud/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AAEH,eAAO,MAAM,WAAW,EAAG,IAAa,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,eAAe,UAAY,CAAC;AAEzC,wFAAwF;AACxF,eAAO,MAAM,UAAU,aAAmD,CAAC;AAE3E,+FAA+F;AAC/F,eAAO,MAAM,wBAAwB,UAAY,CAAC;AAClD,eAAO,MAAM,cAAc,MAAM,CAAC;AAIlC,eAAO,MAAM,QAAQ;;;;;EAAgD,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAShC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;iBAmBjB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE5C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;iBAAyC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAIlE,eAAO,MAAM,sBAAsB;;;;;;iBAgBjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,OAAO;;;;;;;;iBAUlB,CAAC;AACH,MAAM,MAAM,OA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