sessionpipe-core 0.7.0 → 0.10.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.
- package/README.md +1 -1
- package/dist/control.js +172 -12
- package/dist/control.js.map +2 -2
- package/dist/index.js +1508 -431
- package/dist/index.js.map +4 -4
- package/dist/schema/v1.d.ts +405 -104
- package/dist/schema/v1.d.ts.map +1 -1
- package/dist/schema.js +174 -28
- package/dist/schema.js.map +2 -2
- package/dist/service.js +155 -0
- package/dist/service.js.map +7 -0
- package/dist/src/adapters/acp-control.d.ts +87 -0
- package/dist/src/adapters/acp-control.d.ts.map +1 -0
- package/dist/src/adapters/antigravity-control.d.ts +15 -5
- package/dist/src/adapters/antigravity-control.d.ts.map +1 -1
- package/dist/src/adapters/antigravity.d.ts +1 -2
- package/dist/src/adapters/antigravity.d.ts.map +1 -1
- package/dist/src/adapters/claude-code-control.d.ts +41 -4
- package/dist/src/adapters/claude-code-control.d.ts.map +1 -1
- package/dist/src/adapters/claude-code.d.ts +10 -0
- package/dist/src/adapters/claude-code.d.ts.map +1 -1
- package/dist/src/adapters/claude-shaped.d.ts.map +1 -1
- package/dist/src/adapters/codex-config.d.ts +2 -2
- package/dist/src/adapters/codex-config.d.ts.map +1 -1
- package/dist/src/adapters/codex-control.d.ts +23 -7
- package/dist/src/adapters/codex-control.d.ts.map +1 -1
- package/dist/src/adapters/codex-rollout.d.ts +8 -0
- package/dist/src/adapters/codex-rollout.d.ts.map +1 -0
- package/dist/src/adapters/codex.d.ts +1 -1
- package/dist/src/adapters/codex.d.ts.map +1 -1
- package/dist/src/adapters/devin.d.ts +32 -0
- package/dist/src/adapters/devin.d.ts.map +1 -0
- package/dist/src/adapters/gemini-cli.d.ts.map +1 -1
- package/dist/src/adapters/headless.d.ts +4 -1
- package/dist/src/adapters/headless.d.ts.map +1 -1
- package/dist/src/adapters/index.d.ts +11 -3
- package/dist/src/adapters/index.d.ts.map +1 -1
- package/dist/src/adapters/types.d.ts +9 -1
- package/dist/src/adapters/types.d.ts.map +1 -1
- package/dist/src/control/verify.d.ts +96 -13
- package/dist/src/control/verify.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/launched-by.d.ts +12 -0
- package/dist/src/launched-by.d.ts.map +1 -0
- package/dist/src/outbox.d.ts +13 -2
- package/dist/src/outbox.d.ts.map +1 -1
- package/dist/src/paths.d.ts +7 -1
- package/dist/src/paths.d.ts.map +1 -1
- package/dist/src/privacy/filter.d.ts +2 -0
- package/dist/src/privacy/filter.d.ts.map +1 -1
- package/dist/src/privacy/index.d.ts +1 -1
- package/dist/src/privacy/index.d.ts.map +1 -1
- package/dist/src/readers/files.d.ts.map +1 -1
- package/dist/src/readers/git.d.ts.map +1 -1
- package/dist/src/readers/sqlite.d.ts +23 -0
- package/dist/src/readers/sqlite.d.ts.map +1 -0
- package/dist/src/readers/transcripts.d.ts +5 -2
- package/dist/src/readers/transcripts.d.ts.map +1 -1
- package/dist/src/service/index.d.ts +83 -0
- package/dist/src/service/index.d.ts.map +1 -0
- package/dist/src/short-id.d.ts +2 -0
- package/dist/src/short-id.d.ts.map +1 -0
- package/dist/src/sinks/file.d.ts.map +1 -1
- package/dist/src/sinks/stdout.d.ts.map +1 -1
- package/dist/src/types.d.ts +1 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/ulid.d.ts.map +1 -1
- package/dist/src/version.d.ts +39 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/version.js +75 -0
- package/dist/version.js.map +7 -0
- package/package.json +11 -3
package/dist/schema/v1.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const PROTOCOL = 1;
|
|
3
3
|
/** Dotted, lowercase. Unknown types MUST be accepted and stored. */
|
|
4
4
|
export declare const EventType: z.ZodString;
|
|
5
|
-
export declare const KNOWN_TYPES: readonly ["session.started", "session.heartbeat", "session.ended", "session.backfill", "session.forgotten", "turn.started", "turn.ended", "turn.transcript", "tool.started", "tool.ended", "files.changed", "attention.needed", "attention.cleared", "subagent.started", "subagent.ended", "context.compacted", "native"];
|
|
5
|
+
export declare const KNOWN_TYPES: readonly ["session.started", "session.heartbeat", "session.ended", "session.backfill", "session.forgotten", "turn.started", "turn.ended", "turn.transcript", "turn.progress", "tool.started", "tool.ended", "files.changed", "attention.needed", "attention.cleared", "subagent.started", "subagent.ended", "context.compacted", "native"];
|
|
6
6
|
/** The lowest tier that carries each known type. */
|
|
7
7
|
export declare const TYPE_TIER: Record<(typeof KNOWN_TYPES)[number], 0 | 1 | 2 | 3>;
|
|
8
|
-
export declare const HARNESS_NAMES: readonly ["claude-code", "codex", "gemini-cli", "antigravity", "cursor", "copilot-cli", "droid", "kiro", "opencode"];
|
|
8
|
+
export declare const HARNESS_NAMES: readonly ["claude-code", "codex", "gemini-cli", "antigravity", "devin", "cursor", "copilot-cli", "droid", "kiro", "opencode"];
|
|
9
9
|
export declare const Tier: z.ZodInt;
|
|
10
10
|
export declare const Ulid: z.ZodString;
|
|
11
11
|
export declare const Rfc3339: z.ZodISODateTime;
|
|
@@ -27,12 +27,14 @@ export declare const Session: z.ZodObject<{
|
|
|
27
27
|
title: z.ZodOptional<z.ZodString>;
|
|
28
28
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
29
29
|
custom: "custom";
|
|
30
|
-
harness: "harness";
|
|
31
30
|
"first-ask": "first-ask";
|
|
31
|
+
harness: "harness";
|
|
32
32
|
}>>;
|
|
33
33
|
url: z.ZodOptional<z.ZodURL>;
|
|
34
34
|
account_id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
attended: z.ZodOptional<z.ZodBoolean>;
|
|
35
36
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
launched_by: z.ZodOptional<z.ZodString>;
|
|
36
38
|
}, z.core.$strip>;
|
|
37
39
|
export declare const Privacy: z.ZodObject<{
|
|
38
40
|
rulesets: z.ZodArray<z.ZodString>;
|
|
@@ -60,12 +62,14 @@ export declare const Event: z.ZodObject<{
|
|
|
60
62
|
title: z.ZodOptional<z.ZodString>;
|
|
61
63
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
62
64
|
custom: "custom";
|
|
63
|
-
harness: "harness";
|
|
64
65
|
"first-ask": "first-ask";
|
|
66
|
+
harness: "harness";
|
|
65
67
|
}>>;
|
|
66
68
|
url: z.ZodOptional<z.ZodURL>;
|
|
67
69
|
account_id: z.ZodOptional<z.ZodString>;
|
|
70
|
+
attended: z.ZodOptional<z.ZodBoolean>;
|
|
68
71
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
launched_by: z.ZodOptional<z.ZodString>;
|
|
69
73
|
}, z.core.$strip>;
|
|
70
74
|
privacy: z.ZodObject<{
|
|
71
75
|
rulesets: z.ZodArray<z.ZodString>;
|
|
@@ -74,29 +78,29 @@ export declare const Event: z.ZodObject<{
|
|
|
74
78
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
75
79
|
}, z.core.$strip>;
|
|
76
80
|
export declare const AttentionKind: z.ZodEnum<{
|
|
81
|
+
elicitation: "elicitation";
|
|
77
82
|
error: "error";
|
|
83
|
+
idle: "idle";
|
|
78
84
|
permission: "permission";
|
|
79
85
|
question: "question";
|
|
80
|
-
elicitation: "elicitation";
|
|
81
|
-
idle: "idle";
|
|
82
86
|
}>;
|
|
83
87
|
export declare const EventData: z.ZodObject<{
|
|
84
88
|
"session.started": z.ZodObject<{
|
|
85
89
|
source: z.ZodEnum<{
|
|
86
|
-
unknown: "unknown";
|
|
87
|
-
startup: "startup";
|
|
88
|
-
resume: "resume";
|
|
89
90
|
clear: "clear";
|
|
90
91
|
compact: "compact";
|
|
91
92
|
fork: "fork";
|
|
93
|
+
resume: "resume";
|
|
94
|
+
startup: "startup";
|
|
95
|
+
unknown: "unknown";
|
|
92
96
|
}>;
|
|
93
97
|
}, z.core.$loose>;
|
|
94
98
|
"session.heartbeat": z.ZodObject<{}, z.core.$loose>;
|
|
95
99
|
"session.ended": z.ZodObject<{
|
|
96
100
|
reason: z.ZodEnum<{
|
|
97
101
|
clear: "clear";
|
|
98
|
-
logout: "logout";
|
|
99
102
|
exit: "exit";
|
|
103
|
+
logout: "logout";
|
|
100
104
|
other: "other";
|
|
101
105
|
}>;
|
|
102
106
|
}, z.core.$loose>;
|
|
@@ -109,16 +113,19 @@ export declare const EventData: z.ZodObject<{
|
|
|
109
113
|
"turn.started": z.ZodObject<{
|
|
110
114
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
111
115
|
prompt_chars: z.ZodOptional<z.ZodInt>;
|
|
116
|
+
submitted_by: z.ZodOptional<z.ZodString>;
|
|
117
|
+
injected: z.ZodOptional<z.ZodBoolean>;
|
|
112
118
|
}, z.core.$loose>;
|
|
113
119
|
"turn.ended": z.ZodObject<{
|
|
114
120
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
115
121
|
reason: z.ZodEnum<{
|
|
116
122
|
error: "error";
|
|
117
|
-
stop: "stop";
|
|
118
123
|
interrupt: "interrupt";
|
|
124
|
+
stop: "stop";
|
|
119
125
|
}>;
|
|
120
126
|
error: z.ZodOptional<z.ZodString>;
|
|
121
127
|
ms: z.ZodOptional<z.ZodInt>;
|
|
128
|
+
background: z.ZodOptional<z.ZodInt>;
|
|
122
129
|
}, z.core.$loose>;
|
|
123
130
|
"turn.transcript": z.ZodObject<{
|
|
124
131
|
turn: z.ZodInt;
|
|
@@ -126,6 +133,12 @@ export declare const EventData: z.ZodObject<{
|
|
|
126
133
|
assistant: z.ZodString;
|
|
127
134
|
at: z.ZodISODateTime;
|
|
128
135
|
}, z.core.$loose>;
|
|
136
|
+
"turn.progress": z.ZodObject<{
|
|
137
|
+
turn: z.ZodInt;
|
|
138
|
+
user: z.ZodString;
|
|
139
|
+
assistant: z.ZodString;
|
|
140
|
+
at: z.ZodISODateTime;
|
|
141
|
+
}, z.core.$loose>;
|
|
129
142
|
"tool.started": z.ZodObject<{
|
|
130
143
|
tool: z.ZodString;
|
|
131
144
|
call_id: z.ZodOptional<z.ZodString>;
|
|
@@ -150,11 +163,11 @@ export declare const EventData: z.ZodObject<{
|
|
|
150
163
|
"attention.needed": z.ZodObject<{
|
|
151
164
|
attention_id: z.ZodString;
|
|
152
165
|
kind: z.ZodEnum<{
|
|
166
|
+
elicitation: "elicitation";
|
|
153
167
|
error: "error";
|
|
168
|
+
idle: "idle";
|
|
154
169
|
permission: "permission";
|
|
155
170
|
question: "question";
|
|
156
|
-
elicitation: "elicitation";
|
|
157
|
-
idle: "idle";
|
|
158
171
|
}>;
|
|
159
172
|
tool: z.ZodOptional<z.ZodString>;
|
|
160
173
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -162,10 +175,10 @@ export declare const EventData: z.ZodObject<{
|
|
|
162
175
|
"attention.cleared": z.ZodObject<{
|
|
163
176
|
attention_id: z.ZodString;
|
|
164
177
|
how: z.ZodEnum<{
|
|
165
|
-
unknown: "unknown";
|
|
166
178
|
answered: "answered";
|
|
167
179
|
cancelled: "cancelled";
|
|
168
180
|
timeout: "timeout";
|
|
181
|
+
unknown: "unknown";
|
|
169
182
|
}>;
|
|
170
183
|
}, z.core.$loose>;
|
|
171
184
|
"subagent.started": z.ZodObject<{
|
|
@@ -178,8 +191,8 @@ export declare const EventData: z.ZodObject<{
|
|
|
178
191
|
}, z.core.$loose>;
|
|
179
192
|
"context.compacted": z.ZodObject<{
|
|
180
193
|
trigger: z.ZodEnum<{
|
|
181
|
-
manual: "manual";
|
|
182
194
|
auto: "auto";
|
|
195
|
+
manual: "manual";
|
|
183
196
|
}>;
|
|
184
197
|
}, z.core.$loose>;
|
|
185
198
|
native: z.ZodObject<{}, z.core.$loose>;
|
|
@@ -207,12 +220,14 @@ export declare const Batch: z.ZodObject<{
|
|
|
207
220
|
title: z.ZodOptional<z.ZodString>;
|
|
208
221
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
209
222
|
custom: "custom";
|
|
210
|
-
harness: "harness";
|
|
211
223
|
"first-ask": "first-ask";
|
|
224
|
+
harness: "harness";
|
|
212
225
|
}>>;
|
|
213
226
|
url: z.ZodOptional<z.ZodURL>;
|
|
214
227
|
account_id: z.ZodOptional<z.ZodString>;
|
|
228
|
+
attended: z.ZodOptional<z.ZodBoolean>;
|
|
215
229
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
launched_by: z.ZodOptional<z.ZodString>;
|
|
216
231
|
}, z.core.$strip>;
|
|
217
232
|
privacy: z.ZodObject<{
|
|
218
233
|
rulesets: z.ZodArray<z.ZodString>;
|
|
@@ -236,30 +251,65 @@ export declare const ErrorResponse: z.ZodObject<{
|
|
|
236
251
|
max_tier: z.ZodOptional<z.ZodInt>;
|
|
237
252
|
}, z.core.$strip>;
|
|
238
253
|
export declare const Capability: z.ZodEnum<{
|
|
239
|
-
native: "native";
|
|
240
|
-
events: "events";
|
|
241
254
|
backfill: "backfill";
|
|
242
|
-
forget: "forget";
|
|
243
255
|
control: "control";
|
|
256
|
+
events: "events";
|
|
257
|
+
forget: "forget";
|
|
258
|
+
native: "native";
|
|
244
259
|
}>;
|
|
245
260
|
export declare const MachineId: z.ZodString;
|
|
246
261
|
/** `<harness>:<id>`; the id follows its adapter's rule (Claude Code: a UUID). */
|
|
247
262
|
export declare const SessionRef: z.ZodString;
|
|
248
263
|
export declare const ControlKind: z.ZodEnum<{
|
|
249
|
-
prompt: "prompt";
|
|
250
|
-
"permission.answer": "permission.answer";
|
|
251
264
|
cancel: "cancel";
|
|
252
|
-
start: "start";
|
|
253
265
|
"key.add": "key.add";
|
|
266
|
+
"permission.answer": "permission.answer";
|
|
267
|
+
prompt: "prompt";
|
|
268
|
+
start: "start";
|
|
254
269
|
}>;
|
|
270
|
+
/** The kinds of key a machine or a receiver handles (CONTROL.md §2). Absent: passkeys only. */
|
|
271
|
+
export declare const KeyTypes: z.ZodArray<z.ZodEnum<{
|
|
272
|
+
device: "device";
|
|
273
|
+
passkey: "passkey";
|
|
274
|
+
}>>;
|
|
255
275
|
export declare const DeliveryMode: z.ZodEnum<{
|
|
256
|
-
|
|
276
|
+
api: "api";
|
|
257
277
|
fork: "fork";
|
|
258
|
-
|
|
278
|
+
resume: "resume";
|
|
259
279
|
sdk: "sdk";
|
|
280
|
+
turn: "turn";
|
|
260
281
|
waiter: "waiter";
|
|
261
|
-
api: "api";
|
|
262
282
|
}>;
|
|
283
|
+
/** How much a started session may do without anyone approving it (CONTROL.md §3.1),
|
|
284
|
+
* narrowest first. Closed: nothing is wider than `auto`. */
|
|
285
|
+
export declare const StartPermission: z.ZodEnum<{
|
|
286
|
+
auto: "auto";
|
|
287
|
+
edits: "edits";
|
|
288
|
+
read: "read";
|
|
289
|
+
safe: "safe";
|
|
290
|
+
}>;
|
|
291
|
+
/** What a start ran with, or gets by default: a level, or `inherit` (no permission flag,
|
|
292
|
+
* the harness's own default) on a machine the person put in inherit mode. Never a
|
|
293
|
+
* command's `permission`. */
|
|
294
|
+
export declare const RunLevel: z.ZodEnum<{
|
|
295
|
+
auto: "auto";
|
|
296
|
+
edits: "edits";
|
|
297
|
+
inherit: "inherit";
|
|
298
|
+
read: "read";
|
|
299
|
+
safe: "safe";
|
|
300
|
+
}>;
|
|
301
|
+
/** A model id as the harness names it, passed as one argument: never a leading dash. */
|
|
302
|
+
export declare const ModelId: z.ZodString;
|
|
303
|
+
/** A file attached to a `start` (CONTROL.md §3.1). The bytes wait on the receiver
|
|
304
|
+
* (`GET {control}/files/{sha256}`); the signed hash is what the machine checks.
|
|
305
|
+
* Beyond this shape the verifier also checks: the name's length after NFC, names
|
|
306
|
+
* unique case-insensitively, and the sizes adding up to at most 50 MiB. */
|
|
307
|
+
export declare const ControlFile: z.ZodObject<{
|
|
308
|
+
name: z.ZodString;
|
|
309
|
+
type: z.ZodString;
|
|
310
|
+
size: z.ZodInt;
|
|
311
|
+
sha256: z.ZodString;
|
|
312
|
+
}, z.core.$strip>;
|
|
263
313
|
/** The signed command, as the device writes it. The machine verifies the EXACT string
|
|
264
314
|
* it received (control.json `cmd`) and never re-serializes it. */
|
|
265
315
|
export declare const ControlCommand: z.ZodObject<{
|
|
@@ -267,11 +317,11 @@ export declare const ControlCommand: z.ZodObject<{
|
|
|
267
317
|
t: z.ZodLiteral<"sessionpipe.control">;
|
|
268
318
|
machine: z.ZodString;
|
|
269
319
|
kind: z.ZodEnum<{
|
|
270
|
-
prompt: "prompt";
|
|
271
|
-
"permission.answer": "permission.answer";
|
|
272
320
|
cancel: "cancel";
|
|
273
|
-
start: "start";
|
|
274
321
|
"key.add": "key.add";
|
|
322
|
+
"permission.answer": "permission.answer";
|
|
323
|
+
prompt: "prompt";
|
|
324
|
+
start: "start";
|
|
275
325
|
}>;
|
|
276
326
|
session: z.ZodString;
|
|
277
327
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -282,12 +332,32 @@ export declare const ControlCommand: z.ZodObject<{
|
|
|
282
332
|
}>>;
|
|
283
333
|
note: z.ZodOptional<z.ZodString>;
|
|
284
334
|
cwd: z.ZodOptional<z.ZodString>;
|
|
285
|
-
key: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
key: z.ZodOptional<z.ZodLazy<z.ZodXor<readonly [z.ZodObject<{
|
|
286
336
|
id: z.ZodString;
|
|
287
337
|
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
288
338
|
spki: z.ZodString;
|
|
289
|
-
}, z.core.$
|
|
339
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
340
|
+
id: z.ZodString;
|
|
341
|
+
alg: z.ZodLiteral<-7>;
|
|
342
|
+
spki: z.ZodString;
|
|
343
|
+
type: z.ZodLiteral<"device">;
|
|
344
|
+
store: z.ZodLiteral<"hardware">;
|
|
345
|
+
uv: z.ZodLiteral<"each-use">;
|
|
346
|
+
}, z.core.$strict>]>>>;
|
|
290
347
|
name: z.ZodOptional<z.ZodString>;
|
|
348
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
+
name: z.ZodString;
|
|
350
|
+
type: z.ZodString;
|
|
351
|
+
size: z.ZodInt;
|
|
352
|
+
sha256: z.ZodString;
|
|
353
|
+
}, z.core.$strip>>>;
|
|
354
|
+
permission: z.ZodOptional<z.ZodEnum<{
|
|
355
|
+
auto: "auto";
|
|
356
|
+
edits: "edits";
|
|
357
|
+
read: "read";
|
|
358
|
+
safe: "safe";
|
|
359
|
+
}>>;
|
|
360
|
+
model: z.ZodOptional<z.ZodString>;
|
|
291
361
|
nonce: z.ZodString;
|
|
292
362
|
iat: z.ZodInt;
|
|
293
363
|
}, z.core.$strip>;
|
|
@@ -307,30 +377,55 @@ export declare const ControlAssertion: z.ZodObject<{
|
|
|
307
377
|
cd: z.ZodString;
|
|
308
378
|
sig: z.ZodString;
|
|
309
379
|
}, z.core.$strip>;
|
|
310
|
-
/** A key
|
|
311
|
-
|
|
380
|
+
/** A device key's signature (CONTROL.md §3.2): its id and 64 bytes r‖s over
|
|
381
|
+
* `sessionpipe.device.v1⏎<purpose>⏎<rp id>⏎<challenge>`. Nothing else. The shape
|
|
382
|
+
* only, like an assertion's: the machine reads the key from its own record and checks
|
|
383
|
+
* the rest (a 43-character id, exactly 64 bytes), so a carrier never decides a kind. */
|
|
384
|
+
export declare const ControlDeviceSignature: z.ZodObject<{
|
|
385
|
+
cred: z.ZodString;
|
|
386
|
+
sig: z.ZodString;
|
|
387
|
+
}, z.core.$strict>;
|
|
388
|
+
/** A key enrolled on a machine, closed: a passkey (credential id, COSE alg, SPKI), or a
|
|
389
|
+
* device key an app holds in hardware (CONTROL.md §2 "Device keys"), which names
|
|
390
|
+
* itself by its SPKI's SHA-256 and says how it is held. A machine refuses any other
|
|
391
|
+
* field or value, so a kind added later is refused by every machine that predates it. */
|
|
392
|
+
export declare const ControlKey: z.ZodXor<readonly [z.ZodObject<{
|
|
312
393
|
id: z.ZodString;
|
|
313
394
|
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
314
395
|
spki: z.ZodString;
|
|
315
|
-
}, z.core.$
|
|
396
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
397
|
+
id: z.ZodString;
|
|
398
|
+
alg: z.ZodLiteral<-7>;
|
|
399
|
+
spki: z.ZodString;
|
|
400
|
+
type: z.ZodLiteral<"device">;
|
|
401
|
+
store: z.ZodLiteral<"hardware">;
|
|
402
|
+
uv: z.ZodLiteral<"each-use">;
|
|
403
|
+
}, z.core.$strict>]>;
|
|
316
404
|
/** One message as a receiver carries it: its own envelope around the signed bytes. */
|
|
317
405
|
export declare const ControlMessage: z.ZodObject<{
|
|
318
406
|
id: z.ZodString;
|
|
319
407
|
cmd: z.ZodString;
|
|
320
408
|
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
-
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
409
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodXor<readonly [z.ZodObject<{
|
|
322
410
|
cred: z.ZodString;
|
|
323
411
|
ad: z.ZodString;
|
|
324
412
|
cd: z.ZodString;
|
|
325
413
|
sig: z.ZodString;
|
|
326
414
|
str: z.ZodString;
|
|
327
|
-
}, z.core.$strip
|
|
328
|
-
|
|
415
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
416
|
+
cred: z.ZodString;
|
|
417
|
+
sig: z.ZodString;
|
|
418
|
+
str: z.ZodString;
|
|
419
|
+
}, z.core.$strict>]>>>;
|
|
420
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodXor<readonly [z.ZodObject<{
|
|
329
421
|
cred: z.ZodString;
|
|
330
422
|
ad: z.ZodString;
|
|
331
423
|
cd: z.ZodString;
|
|
332
424
|
sig: z.ZodString;
|
|
333
|
-
}, z.core.$strip
|
|
425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
+
cred: z.ZodString;
|
|
427
|
+
sig: z.ZodString;
|
|
428
|
+
}, z.core.$strict>]>>>;
|
|
334
429
|
at: z.ZodISODateTime;
|
|
335
430
|
expires_at: z.ZodISODateTime;
|
|
336
431
|
}, z.core.$strip>;
|
|
@@ -339,19 +434,26 @@ export declare const ControlPoll: z.ZodObject<{
|
|
|
339
434
|
id: z.ZodString;
|
|
340
435
|
cmd: z.ZodString;
|
|
341
436
|
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
-
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
437
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodXor<readonly [z.ZodObject<{
|
|
343
438
|
cred: z.ZodString;
|
|
344
439
|
ad: z.ZodString;
|
|
345
440
|
cd: z.ZodString;
|
|
346
441
|
sig: z.ZodString;
|
|
347
442
|
str: z.ZodString;
|
|
348
|
-
}, z.core.$strip
|
|
349
|
-
|
|
443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
444
|
+
cred: z.ZodString;
|
|
445
|
+
sig: z.ZodString;
|
|
446
|
+
str: z.ZodString;
|
|
447
|
+
}, z.core.$strict>]>>>;
|
|
448
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodXor<readonly [z.ZodObject<{
|
|
350
449
|
cred: z.ZodString;
|
|
351
450
|
ad: z.ZodString;
|
|
352
451
|
cd: z.ZodString;
|
|
353
452
|
sig: z.ZodString;
|
|
354
|
-
}, z.core.$strip
|
|
453
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
454
|
+
cred: z.ZodString;
|
|
455
|
+
sig: z.ZodString;
|
|
456
|
+
}, z.core.$strict>]>>>;
|
|
355
457
|
at: z.ZodISODateTime;
|
|
356
458
|
expires_at: z.ZodISODateTime;
|
|
357
459
|
}, z.core.$strip>>;
|
|
@@ -361,42 +463,61 @@ export declare const ControlPoll: z.ZodObject<{
|
|
|
361
463
|
/** `progress` (not final): the answer so far, whole, in `reply`, with a rising `seq`.
|
|
362
464
|
* `taken` (not final): verified and being delivered. Every other outcome is final. */
|
|
363
465
|
export declare const ControlOutcome: z.ZodEnum<{
|
|
364
|
-
progress: "progress";
|
|
365
|
-
taken: "taken";
|
|
366
466
|
delivered: "delivered";
|
|
367
467
|
expired: "expired";
|
|
368
|
-
unsupported: "unsupported";
|
|
369
468
|
failed: "failed";
|
|
469
|
+
progress: "progress";
|
|
370
470
|
refused: "refused";
|
|
471
|
+
taken: "taken";
|
|
472
|
+
unsupported: "unsupported";
|
|
371
473
|
}>;
|
|
372
474
|
export declare const ControlAck: z.ZodObject<{
|
|
373
475
|
acks: z.ZodArray<z.ZodObject<{
|
|
374
476
|
id: z.ZodString;
|
|
375
477
|
outcome: z.ZodEnum<{
|
|
376
|
-
progress: "progress";
|
|
377
|
-
taken: "taken";
|
|
378
478
|
delivered: "delivered";
|
|
379
479
|
expired: "expired";
|
|
380
|
-
unsupported: "unsupported";
|
|
381
480
|
failed: "failed";
|
|
481
|
+
progress: "progress";
|
|
382
482
|
refused: "refused";
|
|
483
|
+
taken: "taken";
|
|
484
|
+
unsupported: "unsupported";
|
|
383
485
|
}>;
|
|
384
486
|
at: z.ZodISODateTime;
|
|
385
487
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
386
|
-
|
|
488
|
+
api: "api";
|
|
387
489
|
fork: "fork";
|
|
388
|
-
|
|
490
|
+
resume: "resume";
|
|
389
491
|
sdk: "sdk";
|
|
492
|
+
turn: "turn";
|
|
390
493
|
waiter: "waiter";
|
|
391
|
-
api: "api";
|
|
392
494
|
}>>;
|
|
393
495
|
session: z.ZodOptional<z.ZodString>;
|
|
394
496
|
code: z.ZodOptional<z.ZodString>;
|
|
395
497
|
detail: z.ZodOptional<z.ZodString>;
|
|
396
498
|
reply: z.ZodOptional<z.ZodString>;
|
|
397
499
|
seq: z.ZodOptional<z.ZodInt>;
|
|
500
|
+
applied: z.ZodOptional<z.ZodObject<{
|
|
501
|
+
permission: z.ZodOptional<z.ZodEnum<{
|
|
502
|
+
auto: "auto";
|
|
503
|
+
edits: "edits";
|
|
504
|
+
inherit: "inherit";
|
|
505
|
+
read: "read";
|
|
506
|
+
safe: "safe";
|
|
507
|
+
}>>;
|
|
508
|
+
model: z.ZodOptional<z.ZodString>;
|
|
509
|
+
}, z.core.$strict>>;
|
|
398
510
|
}, z.core.$strip>>;
|
|
399
511
|
}, z.core.$strip>;
|
|
512
|
+
/** A harness account signed in on the machine: the id `session.account_id` carries,
|
|
513
|
+
* and the email it signs in with, so a receiver the person paired with can name the
|
|
514
|
+
* account rather than show an id. Only pair and hello carry it, never an event. */
|
|
515
|
+
export declare const HarnessAccount: z.ZodObject<{
|
|
516
|
+
harness: z.ZodString;
|
|
517
|
+
id: z.ZodString;
|
|
518
|
+
email: z.ZodOptional<z.ZodString>;
|
|
519
|
+
name: z.ZodOptional<z.ZodString>;
|
|
520
|
+
}, z.core.$strip>;
|
|
400
521
|
/** `POST {control}/pair`, sent with the person's sink token from their own terminal —
|
|
401
522
|
* or, where the receiver declares `control.open_pairing`, with no token and a
|
|
402
523
|
* `poll_key` (CONTROL.md §2). */
|
|
@@ -406,19 +527,31 @@ export declare const ControlPairStart: z.ZodObject<{
|
|
|
406
527
|
name: z.ZodString;
|
|
407
528
|
harnesses: z.ZodArray<z.ZodString>;
|
|
408
529
|
modes: z.ZodArray<z.ZodEnum<{
|
|
409
|
-
|
|
530
|
+
api: "api";
|
|
410
531
|
fork: "fork";
|
|
411
|
-
|
|
532
|
+
resume: "resume";
|
|
412
533
|
sdk: "sdk";
|
|
534
|
+
turn: "turn";
|
|
413
535
|
waiter: "waiter";
|
|
414
|
-
api: "api";
|
|
415
536
|
}>>;
|
|
416
537
|
version: z.ZodString;
|
|
417
538
|
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
418
539
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
419
540
|
auto: "auto";
|
|
541
|
+
inherit: "inherit";
|
|
420
542
|
safe: "safe";
|
|
421
543
|
}>>;
|
|
544
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
545
|
+
harness: z.ZodString;
|
|
546
|
+
id: z.ZodString;
|
|
547
|
+
email: z.ZodOptional<z.ZodString>;
|
|
548
|
+
name: z.ZodOptional<z.ZodString>;
|
|
549
|
+
}, z.core.$strip>>>;
|
|
550
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
551
|
+
key_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
552
|
+
device: "device";
|
|
553
|
+
passkey: "passkey";
|
|
554
|
+
}>>>;
|
|
422
555
|
}, z.core.$strip>;
|
|
423
556
|
/** The receiver's answer: where the person confirms, and the digits both screens show. */
|
|
424
557
|
export declare const ControlPairStarted: z.ZodObject<{
|
|
@@ -433,20 +566,30 @@ export declare const ControlPairStarted: z.ZodObject<{
|
|
|
433
566
|
export declare const ControlPaired: z.ZodObject<{
|
|
434
567
|
status: z.ZodEnum<{
|
|
435
568
|
expired: "expired";
|
|
436
|
-
pending: "pending";
|
|
437
569
|
paired: "paired";
|
|
570
|
+
pending: "pending";
|
|
438
571
|
}>;
|
|
439
|
-
key: z.ZodOptional<z.ZodObject<{
|
|
572
|
+
key: z.ZodOptional<z.ZodXor<readonly [z.ZodObject<{
|
|
440
573
|
id: z.ZodString;
|
|
441
574
|
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
442
575
|
spki: z.ZodString;
|
|
443
|
-
}, z.core.$
|
|
444
|
-
|
|
576
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
577
|
+
id: z.ZodString;
|
|
578
|
+
alg: z.ZodLiteral<-7>;
|
|
579
|
+
spki: z.ZodString;
|
|
580
|
+
type: z.ZodLiteral<"device">;
|
|
581
|
+
store: z.ZodLiteral<"hardware">;
|
|
582
|
+
uv: z.ZodLiteral<"each-use">;
|
|
583
|
+
}, z.core.$strict>]>>;
|
|
584
|
+
proof: z.ZodOptional<z.ZodXor<readonly [z.ZodObject<{
|
|
445
585
|
cred: z.ZodString;
|
|
446
586
|
ad: z.ZodString;
|
|
447
587
|
cd: z.ZodString;
|
|
448
588
|
sig: z.ZodString;
|
|
449
|
-
}, z.core.$strip
|
|
589
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
590
|
+
cred: z.ZodString;
|
|
591
|
+
sig: z.ZodString;
|
|
592
|
+
}, z.core.$strict>]>>;
|
|
450
593
|
token: z.ZodOptional<z.ZodString>;
|
|
451
594
|
sink_token: z.ZodOptional<z.ZodString>;
|
|
452
595
|
account: z.ZodOptional<z.ZodString>;
|
|
@@ -456,12 +599,12 @@ export declare const ControlHello: z.ZodObject<{
|
|
|
456
599
|
name: z.ZodString;
|
|
457
600
|
harnesses: z.ZodArray<z.ZodString>;
|
|
458
601
|
modes: z.ZodArray<z.ZodEnum<{
|
|
459
|
-
|
|
602
|
+
api: "api";
|
|
460
603
|
fork: "fork";
|
|
461
|
-
|
|
604
|
+
resume: "resume";
|
|
462
605
|
sdk: "sdk";
|
|
606
|
+
turn: "turn";
|
|
463
607
|
waiter: "waiter";
|
|
464
|
-
api: "api";
|
|
465
608
|
}>>;
|
|
466
609
|
keys: z.ZodArray<z.ZodString>;
|
|
467
610
|
version: z.ZodString;
|
|
@@ -469,8 +612,38 @@ export declare const ControlHello: z.ZodObject<{
|
|
|
469
612
|
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
470
613
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
471
614
|
auto: "auto";
|
|
615
|
+
inherit: "inherit";
|
|
472
616
|
safe: "safe";
|
|
473
617
|
}>>;
|
|
618
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
619
|
+
harness: z.ZodString;
|
|
620
|
+
id: z.ZodString;
|
|
621
|
+
email: z.ZodOptional<z.ZodString>;
|
|
622
|
+
name: z.ZodOptional<z.ZodString>;
|
|
623
|
+
}, z.core.$strip>>>;
|
|
624
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
625
|
+
prompt_files: z.ZodOptional<z.ZodBoolean>;
|
|
626
|
+
start: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
627
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
628
|
+
auto: "auto";
|
|
629
|
+
edits: "edits";
|
|
630
|
+
read: "read";
|
|
631
|
+
safe: "safe";
|
|
632
|
+
}>>;
|
|
633
|
+
permission: z.ZodEnum<{
|
|
634
|
+
auto: "auto";
|
|
635
|
+
edits: "edits";
|
|
636
|
+
inherit: "inherit";
|
|
637
|
+
read: "read";
|
|
638
|
+
safe: "safe";
|
|
639
|
+
}>;
|
|
640
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
641
|
+
any_model: z.ZodOptional<z.ZodBoolean>;
|
|
642
|
+
}, z.core.$strip>>>;
|
|
643
|
+
key_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
644
|
+
device: "device";
|
|
645
|
+
passkey: "passkey";
|
|
646
|
+
}>>>;
|
|
474
647
|
}, z.core.$strip>;
|
|
475
648
|
export declare const WellKnown: z.ZodObject<{
|
|
476
649
|
protocol: z.ZodArray<z.ZodInt>;
|
|
@@ -495,7 +668,13 @@ export declare const WellKnown: z.ZodObject<{
|
|
|
495
668
|
signing: z.ZodObject<{
|
|
496
669
|
rp_id: z.ZodString;
|
|
497
670
|
algs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>>;
|
|
671
|
+
key_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
672
|
+
device: "device";
|
|
673
|
+
passkey: "passkey";
|
|
674
|
+
}>>>;
|
|
498
675
|
}, z.core.$strip>;
|
|
676
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
+
inherit: z.ZodOptional<z.ZodBoolean>;
|
|
499
678
|
}, z.core.$strip>>;
|
|
500
679
|
}, z.core.$strip>;
|
|
501
680
|
/** What `npm run schemas` writes to schemas/v1/<name>.json. */
|
|
@@ -522,12 +701,14 @@ export declare const SCHEMAS: {
|
|
|
522
701
|
title: z.ZodOptional<z.ZodString>;
|
|
523
702
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
524
703
|
custom: "custom";
|
|
525
|
-
harness: "harness";
|
|
526
704
|
"first-ask": "first-ask";
|
|
705
|
+
harness: "harness";
|
|
527
706
|
}>>;
|
|
528
707
|
url: z.ZodOptional<z.ZodURL>;
|
|
529
708
|
account_id: z.ZodOptional<z.ZodString>;
|
|
709
|
+
attended: z.ZodOptional<z.ZodBoolean>;
|
|
530
710
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
711
|
+
launched_by: z.ZodOptional<z.ZodString>;
|
|
531
712
|
}, z.core.$strip>;
|
|
532
713
|
privacy: z.ZodObject<{
|
|
533
714
|
rulesets: z.ZodArray<z.ZodString>;
|
|
@@ -538,20 +719,20 @@ export declare const SCHEMAS: {
|
|
|
538
719
|
readonly "event-data": z.ZodObject<{
|
|
539
720
|
"session.started": z.ZodObject<{
|
|
540
721
|
source: z.ZodEnum<{
|
|
541
|
-
unknown: "unknown";
|
|
542
|
-
startup: "startup";
|
|
543
|
-
resume: "resume";
|
|
544
722
|
clear: "clear";
|
|
545
723
|
compact: "compact";
|
|
546
724
|
fork: "fork";
|
|
725
|
+
resume: "resume";
|
|
726
|
+
startup: "startup";
|
|
727
|
+
unknown: "unknown";
|
|
547
728
|
}>;
|
|
548
729
|
}, z.core.$loose>;
|
|
549
730
|
"session.heartbeat": z.ZodObject<{}, z.core.$loose>;
|
|
550
731
|
"session.ended": z.ZodObject<{
|
|
551
732
|
reason: z.ZodEnum<{
|
|
552
733
|
clear: "clear";
|
|
553
|
-
logout: "logout";
|
|
554
734
|
exit: "exit";
|
|
735
|
+
logout: "logout";
|
|
555
736
|
other: "other";
|
|
556
737
|
}>;
|
|
557
738
|
}, z.core.$loose>;
|
|
@@ -564,16 +745,19 @@ export declare const SCHEMAS: {
|
|
|
564
745
|
"turn.started": z.ZodObject<{
|
|
565
746
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
566
747
|
prompt_chars: z.ZodOptional<z.ZodInt>;
|
|
748
|
+
submitted_by: z.ZodOptional<z.ZodString>;
|
|
749
|
+
injected: z.ZodOptional<z.ZodBoolean>;
|
|
567
750
|
}, z.core.$loose>;
|
|
568
751
|
"turn.ended": z.ZodObject<{
|
|
569
752
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
570
753
|
reason: z.ZodEnum<{
|
|
571
754
|
error: "error";
|
|
572
|
-
stop: "stop";
|
|
573
755
|
interrupt: "interrupt";
|
|
756
|
+
stop: "stop";
|
|
574
757
|
}>;
|
|
575
758
|
error: z.ZodOptional<z.ZodString>;
|
|
576
759
|
ms: z.ZodOptional<z.ZodInt>;
|
|
760
|
+
background: z.ZodOptional<z.ZodInt>;
|
|
577
761
|
}, z.core.$loose>;
|
|
578
762
|
"turn.transcript": z.ZodObject<{
|
|
579
763
|
turn: z.ZodInt;
|
|
@@ -581,6 +765,12 @@ export declare const SCHEMAS: {
|
|
|
581
765
|
assistant: z.ZodString;
|
|
582
766
|
at: z.ZodISODateTime;
|
|
583
767
|
}, z.core.$loose>;
|
|
768
|
+
"turn.progress": z.ZodObject<{
|
|
769
|
+
turn: z.ZodInt;
|
|
770
|
+
user: z.ZodString;
|
|
771
|
+
assistant: z.ZodString;
|
|
772
|
+
at: z.ZodISODateTime;
|
|
773
|
+
}, z.core.$loose>;
|
|
584
774
|
"tool.started": z.ZodObject<{
|
|
585
775
|
tool: z.ZodString;
|
|
586
776
|
call_id: z.ZodOptional<z.ZodString>;
|
|
@@ -605,11 +795,11 @@ export declare const SCHEMAS: {
|
|
|
605
795
|
"attention.needed": z.ZodObject<{
|
|
606
796
|
attention_id: z.ZodString;
|
|
607
797
|
kind: z.ZodEnum<{
|
|
798
|
+
elicitation: "elicitation";
|
|
608
799
|
error: "error";
|
|
800
|
+
idle: "idle";
|
|
609
801
|
permission: "permission";
|
|
610
802
|
question: "question";
|
|
611
|
-
elicitation: "elicitation";
|
|
612
|
-
idle: "idle";
|
|
613
803
|
}>;
|
|
614
804
|
tool: z.ZodOptional<z.ZodString>;
|
|
615
805
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -617,10 +807,10 @@ export declare const SCHEMAS: {
|
|
|
617
807
|
"attention.cleared": z.ZodObject<{
|
|
618
808
|
attention_id: z.ZodString;
|
|
619
809
|
how: z.ZodEnum<{
|
|
620
|
-
unknown: "unknown";
|
|
621
810
|
answered: "answered";
|
|
622
811
|
cancelled: "cancelled";
|
|
623
812
|
timeout: "timeout";
|
|
813
|
+
unknown: "unknown";
|
|
624
814
|
}>;
|
|
625
815
|
}, z.core.$loose>;
|
|
626
816
|
"subagent.started": z.ZodObject<{
|
|
@@ -633,8 +823,8 @@ export declare const SCHEMAS: {
|
|
|
633
823
|
}, z.core.$loose>;
|
|
634
824
|
"context.compacted": z.ZodObject<{
|
|
635
825
|
trigger: z.ZodEnum<{
|
|
636
|
-
manual: "manual";
|
|
637
826
|
auto: "auto";
|
|
827
|
+
manual: "manual";
|
|
638
828
|
}>;
|
|
639
829
|
}, z.core.$loose>;
|
|
640
830
|
native: z.ZodObject<{}, z.core.$loose>;
|
|
@@ -662,12 +852,14 @@ export declare const SCHEMAS: {
|
|
|
662
852
|
title: z.ZodOptional<z.ZodString>;
|
|
663
853
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
664
854
|
custom: "custom";
|
|
665
|
-
harness: "harness";
|
|
666
855
|
"first-ask": "first-ask";
|
|
856
|
+
harness: "harness";
|
|
667
857
|
}>>;
|
|
668
858
|
url: z.ZodOptional<z.ZodURL>;
|
|
669
859
|
account_id: z.ZodOptional<z.ZodString>;
|
|
860
|
+
attended: z.ZodOptional<z.ZodBoolean>;
|
|
670
861
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
862
|
+
launched_by: z.ZodOptional<z.ZodString>;
|
|
671
863
|
}, z.core.$strip>;
|
|
672
864
|
privacy: z.ZodObject<{
|
|
673
865
|
rulesets: z.ZodArray<z.ZodString>;
|
|
@@ -713,26 +905,39 @@ export declare const SCHEMAS: {
|
|
|
713
905
|
signing: z.ZodObject<{
|
|
714
906
|
rp_id: z.ZodString;
|
|
715
907
|
algs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>>;
|
|
908
|
+
key_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
909
|
+
device: "device";
|
|
910
|
+
passkey: "passkey";
|
|
911
|
+
}>>>;
|
|
716
912
|
}, z.core.$strip>;
|
|
913
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
914
|
+
inherit: z.ZodOptional<z.ZodBoolean>;
|
|
717
915
|
}, z.core.$strip>>;
|
|
718
916
|
}, z.core.$strip>;
|
|
719
917
|
readonly control: z.ZodObject<{
|
|
720
918
|
id: z.ZodString;
|
|
721
919
|
cmd: z.ZodString;
|
|
722
920
|
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
|
-
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
921
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodXor<readonly [z.ZodObject<{
|
|
724
922
|
cred: z.ZodString;
|
|
725
923
|
ad: z.ZodString;
|
|
726
924
|
cd: z.ZodString;
|
|
727
925
|
sig: z.ZodString;
|
|
728
926
|
str: z.ZodString;
|
|
729
|
-
}, z.core.$strip
|
|
730
|
-
|
|
927
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
928
|
+
cred: z.ZodString;
|
|
929
|
+
sig: z.ZodString;
|
|
930
|
+
str: z.ZodString;
|
|
931
|
+
}, z.core.$strict>]>>>;
|
|
932
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodXor<readonly [z.ZodObject<{
|
|
731
933
|
cred: z.ZodString;
|
|
732
934
|
ad: z.ZodString;
|
|
733
935
|
cd: z.ZodString;
|
|
734
936
|
sig: z.ZodString;
|
|
735
|
-
}, z.core.$strip
|
|
937
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
938
|
+
cred: z.ZodString;
|
|
939
|
+
sig: z.ZodString;
|
|
940
|
+
}, z.core.$strict>]>>>;
|
|
736
941
|
at: z.ZodISODateTime;
|
|
737
942
|
expires_at: z.ZodISODateTime;
|
|
738
943
|
}, z.core.$strip>;
|
|
@@ -741,11 +946,11 @@ export declare const SCHEMAS: {
|
|
|
741
946
|
t: z.ZodLiteral<"sessionpipe.control">;
|
|
742
947
|
machine: z.ZodString;
|
|
743
948
|
kind: z.ZodEnum<{
|
|
744
|
-
prompt: "prompt";
|
|
745
|
-
"permission.answer": "permission.answer";
|
|
746
949
|
cancel: "cancel";
|
|
747
|
-
start: "start";
|
|
748
950
|
"key.add": "key.add";
|
|
951
|
+
"permission.answer": "permission.answer";
|
|
952
|
+
prompt: "prompt";
|
|
953
|
+
start: "start";
|
|
749
954
|
}>;
|
|
750
955
|
session: z.ZodString;
|
|
751
956
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -756,12 +961,32 @@ export declare const SCHEMAS: {
|
|
|
756
961
|
}>>;
|
|
757
962
|
note: z.ZodOptional<z.ZodString>;
|
|
758
963
|
cwd: z.ZodOptional<z.ZodString>;
|
|
759
|
-
key: z.ZodOptional<z.ZodObject<{
|
|
964
|
+
key: z.ZodOptional<z.ZodLazy<z.ZodXor<readonly [z.ZodObject<{
|
|
760
965
|
id: z.ZodString;
|
|
761
966
|
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
762
967
|
spki: z.ZodString;
|
|
763
|
-
}, z.core.$
|
|
968
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
969
|
+
id: z.ZodString;
|
|
970
|
+
alg: z.ZodLiteral<-7>;
|
|
971
|
+
spki: z.ZodString;
|
|
972
|
+
type: z.ZodLiteral<"device">;
|
|
973
|
+
store: z.ZodLiteral<"hardware">;
|
|
974
|
+
uv: z.ZodLiteral<"each-use">;
|
|
975
|
+
}, z.core.$strict>]>>>;
|
|
764
976
|
name: z.ZodOptional<z.ZodString>;
|
|
977
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
978
|
+
name: z.ZodString;
|
|
979
|
+
type: z.ZodString;
|
|
980
|
+
size: z.ZodInt;
|
|
981
|
+
sha256: z.ZodString;
|
|
982
|
+
}, z.core.$strip>>>;
|
|
983
|
+
permission: z.ZodOptional<z.ZodEnum<{
|
|
984
|
+
auto: "auto";
|
|
985
|
+
edits: "edits";
|
|
986
|
+
read: "read";
|
|
987
|
+
safe: "safe";
|
|
988
|
+
}>>;
|
|
989
|
+
model: z.ZodOptional<z.ZodString>;
|
|
765
990
|
nonce: z.ZodString;
|
|
766
991
|
iat: z.ZodInt;
|
|
767
992
|
}, z.core.$strip>;
|
|
@@ -773,29 +998,43 @@ export declare const SCHEMAS: {
|
|
|
773
998
|
exp: z.ZodInt;
|
|
774
999
|
rp: z.ZodString;
|
|
775
1000
|
}, z.core.$strip>;
|
|
776
|
-
readonly "control-key": z.ZodObject<{
|
|
1001
|
+
readonly "control-key": z.ZodXor<readonly [z.ZodObject<{
|
|
777
1002
|
id: z.ZodString;
|
|
778
1003
|
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
779
1004
|
spki: z.ZodString;
|
|
780
|
-
}, z.core.$
|
|
1005
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1006
|
+
id: z.ZodString;
|
|
1007
|
+
alg: z.ZodLiteral<-7>;
|
|
1008
|
+
spki: z.ZodString;
|
|
1009
|
+
type: z.ZodLiteral<"device">;
|
|
1010
|
+
store: z.ZodLiteral<"hardware">;
|
|
1011
|
+
uv: z.ZodLiteral<"each-use">;
|
|
1012
|
+
}, z.core.$strict>]>;
|
|
781
1013
|
readonly "control-poll": z.ZodObject<{
|
|
782
1014
|
messages: z.ZodArray<z.ZodObject<{
|
|
783
1015
|
id: z.ZodString;
|
|
784
1016
|
cmd: z.ZodString;
|
|
785
1017
|
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
|
-
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1018
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodXor<readonly [z.ZodObject<{
|
|
787
1019
|
cred: z.ZodString;
|
|
788
1020
|
ad: z.ZodString;
|
|
789
1021
|
cd: z.ZodString;
|
|
790
1022
|
sig: z.ZodString;
|
|
791
1023
|
str: z.ZodString;
|
|
792
|
-
}, z.core.$strip
|
|
793
|
-
|
|
1024
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1025
|
+
cred: z.ZodString;
|
|
1026
|
+
sig: z.ZodString;
|
|
1027
|
+
str: z.ZodString;
|
|
1028
|
+
}, z.core.$strict>]>>>;
|
|
1029
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodXor<readonly [z.ZodObject<{
|
|
794
1030
|
cred: z.ZodString;
|
|
795
1031
|
ad: z.ZodString;
|
|
796
1032
|
cd: z.ZodString;
|
|
797
1033
|
sig: z.ZodString;
|
|
798
|
-
}, z.core.$strip
|
|
1034
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1035
|
+
cred: z.ZodString;
|
|
1036
|
+
sig: z.ZodString;
|
|
1037
|
+
}, z.core.$strict>]>>>;
|
|
799
1038
|
at: z.ZodISODateTime;
|
|
800
1039
|
expires_at: z.ZodISODateTime;
|
|
801
1040
|
}, z.core.$strip>>;
|
|
@@ -804,28 +1043,38 @@ export declare const SCHEMAS: {
|
|
|
804
1043
|
acks: z.ZodArray<z.ZodObject<{
|
|
805
1044
|
id: z.ZodString;
|
|
806
1045
|
outcome: z.ZodEnum<{
|
|
807
|
-
progress: "progress";
|
|
808
|
-
taken: "taken";
|
|
809
1046
|
delivered: "delivered";
|
|
810
1047
|
expired: "expired";
|
|
811
|
-
unsupported: "unsupported";
|
|
812
1048
|
failed: "failed";
|
|
1049
|
+
progress: "progress";
|
|
813
1050
|
refused: "refused";
|
|
1051
|
+
taken: "taken";
|
|
1052
|
+
unsupported: "unsupported";
|
|
814
1053
|
}>;
|
|
815
1054
|
at: z.ZodISODateTime;
|
|
816
1055
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
817
|
-
|
|
1056
|
+
api: "api";
|
|
818
1057
|
fork: "fork";
|
|
819
|
-
|
|
1058
|
+
resume: "resume";
|
|
820
1059
|
sdk: "sdk";
|
|
1060
|
+
turn: "turn";
|
|
821
1061
|
waiter: "waiter";
|
|
822
|
-
api: "api";
|
|
823
1062
|
}>>;
|
|
824
1063
|
session: z.ZodOptional<z.ZodString>;
|
|
825
1064
|
code: z.ZodOptional<z.ZodString>;
|
|
826
1065
|
detail: z.ZodOptional<z.ZodString>;
|
|
827
1066
|
reply: z.ZodOptional<z.ZodString>;
|
|
828
1067
|
seq: z.ZodOptional<z.ZodInt>;
|
|
1068
|
+
applied: z.ZodOptional<z.ZodObject<{
|
|
1069
|
+
permission: z.ZodOptional<z.ZodEnum<{
|
|
1070
|
+
auto: "auto";
|
|
1071
|
+
edits: "edits";
|
|
1072
|
+
inherit: "inherit";
|
|
1073
|
+
read: "read";
|
|
1074
|
+
safe: "safe";
|
|
1075
|
+
}>>;
|
|
1076
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
}, z.core.$strict>>;
|
|
829
1078
|
}, z.core.$strip>>;
|
|
830
1079
|
}, z.core.$strip>;
|
|
831
1080
|
readonly "control-pair": z.ZodObject<{
|
|
@@ -834,19 +1083,31 @@ export declare const SCHEMAS: {
|
|
|
834
1083
|
name: z.ZodString;
|
|
835
1084
|
harnesses: z.ZodArray<z.ZodString>;
|
|
836
1085
|
modes: z.ZodArray<z.ZodEnum<{
|
|
837
|
-
|
|
1086
|
+
api: "api";
|
|
838
1087
|
fork: "fork";
|
|
839
|
-
|
|
1088
|
+
resume: "resume";
|
|
840
1089
|
sdk: "sdk";
|
|
1090
|
+
turn: "turn";
|
|
841
1091
|
waiter: "waiter";
|
|
842
|
-
api: "api";
|
|
843
1092
|
}>>;
|
|
844
1093
|
version: z.ZodString;
|
|
845
1094
|
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
846
1095
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
847
1096
|
auto: "auto";
|
|
1097
|
+
inherit: "inherit";
|
|
848
1098
|
safe: "safe";
|
|
849
1099
|
}>>;
|
|
1100
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1101
|
+
harness: z.ZodString;
|
|
1102
|
+
id: z.ZodString;
|
|
1103
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
}, z.core.$strip>>>;
|
|
1106
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
1107
|
+
key_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1108
|
+
device: "device";
|
|
1109
|
+
passkey: "passkey";
|
|
1110
|
+
}>>>;
|
|
850
1111
|
}, z.core.$strip>;
|
|
851
1112
|
readonly "control-pair-started": z.ZodObject<{
|
|
852
1113
|
machine: z.ZodString;
|
|
@@ -858,20 +1119,30 @@ export declare const SCHEMAS: {
|
|
|
858
1119
|
readonly "control-paired": z.ZodObject<{
|
|
859
1120
|
status: z.ZodEnum<{
|
|
860
1121
|
expired: "expired";
|
|
861
|
-
pending: "pending";
|
|
862
1122
|
paired: "paired";
|
|
1123
|
+
pending: "pending";
|
|
863
1124
|
}>;
|
|
864
|
-
key: z.ZodOptional<z.ZodObject<{
|
|
1125
|
+
key: z.ZodOptional<z.ZodXor<readonly [z.ZodObject<{
|
|
865
1126
|
id: z.ZodString;
|
|
866
1127
|
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
867
1128
|
spki: z.ZodString;
|
|
868
|
-
}, z.core.$
|
|
869
|
-
|
|
1129
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1130
|
+
id: z.ZodString;
|
|
1131
|
+
alg: z.ZodLiteral<-7>;
|
|
1132
|
+
spki: z.ZodString;
|
|
1133
|
+
type: z.ZodLiteral<"device">;
|
|
1134
|
+
store: z.ZodLiteral<"hardware">;
|
|
1135
|
+
uv: z.ZodLiteral<"each-use">;
|
|
1136
|
+
}, z.core.$strict>]>>;
|
|
1137
|
+
proof: z.ZodOptional<z.ZodXor<readonly [z.ZodObject<{
|
|
870
1138
|
cred: z.ZodString;
|
|
871
1139
|
ad: z.ZodString;
|
|
872
1140
|
cd: z.ZodString;
|
|
873
1141
|
sig: z.ZodString;
|
|
874
|
-
}, z.core.$strip
|
|
1142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1143
|
+
cred: z.ZodString;
|
|
1144
|
+
sig: z.ZodString;
|
|
1145
|
+
}, z.core.$strict>]>>;
|
|
875
1146
|
token: z.ZodOptional<z.ZodString>;
|
|
876
1147
|
sink_token: z.ZodOptional<z.ZodString>;
|
|
877
1148
|
account: z.ZodOptional<z.ZodString>;
|
|
@@ -880,12 +1151,12 @@ export declare const SCHEMAS: {
|
|
|
880
1151
|
name: z.ZodString;
|
|
881
1152
|
harnesses: z.ZodArray<z.ZodString>;
|
|
882
1153
|
modes: z.ZodArray<z.ZodEnum<{
|
|
883
|
-
|
|
1154
|
+
api: "api";
|
|
884
1155
|
fork: "fork";
|
|
885
|
-
|
|
1156
|
+
resume: "resume";
|
|
886
1157
|
sdk: "sdk";
|
|
1158
|
+
turn: "turn";
|
|
887
1159
|
waiter: "waiter";
|
|
888
|
-
api: "api";
|
|
889
1160
|
}>>;
|
|
890
1161
|
keys: z.ZodArray<z.ZodString>;
|
|
891
1162
|
version: z.ZodString;
|
|
@@ -893,8 +1164,38 @@ export declare const SCHEMAS: {
|
|
|
893
1164
|
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
894
1165
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
895
1166
|
auto: "auto";
|
|
1167
|
+
inherit: "inherit";
|
|
896
1168
|
safe: "safe";
|
|
897
1169
|
}>>;
|
|
1170
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1171
|
+
harness: z.ZodString;
|
|
1172
|
+
id: z.ZodString;
|
|
1173
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
}, z.core.$strip>>>;
|
|
1176
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
1177
|
+
prompt_files: z.ZodOptional<z.ZodBoolean>;
|
|
1178
|
+
start: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1179
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
1180
|
+
auto: "auto";
|
|
1181
|
+
edits: "edits";
|
|
1182
|
+
read: "read";
|
|
1183
|
+
safe: "safe";
|
|
1184
|
+
}>>;
|
|
1185
|
+
permission: z.ZodEnum<{
|
|
1186
|
+
auto: "auto";
|
|
1187
|
+
edits: "edits";
|
|
1188
|
+
inherit: "inherit";
|
|
1189
|
+
read: "read";
|
|
1190
|
+
safe: "safe";
|
|
1191
|
+
}>;
|
|
1192
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1193
|
+
any_model: z.ZodOptional<z.ZodBoolean>;
|
|
1194
|
+
}, z.core.$strip>>>;
|
|
1195
|
+
key_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1196
|
+
device: "device";
|
|
1197
|
+
passkey: "passkey";
|
|
1198
|
+
}>>>;
|
|
898
1199
|
}, z.core.$strip>;
|
|
899
1200
|
};
|
|
900
1201
|
//# sourceMappingURL=v1.d.ts.map
|