sessionpipe-core 0.1.0 → 0.2.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 +352 -0
- package/dist/control.js.map +7 -0
- package/dist/index.js +600 -97
- package/dist/index.js.map +4 -4
- package/dist/schema/v1.d.ts +340 -53
- package/dist/schema/v1.d.ts.map +1 -1
- package/dist/schema.js +151 -24
- package/dist/schema.js.map +2 -2
- package/dist/src/adapters/antigravity.d.ts.map +1 -1
- package/dist/src/adapters/claude-code-control.d.ts +70 -0
- package/dist/src/adapters/claude-code-control.d.ts.map +1 -0
- package/dist/src/adapters/claude-code.d.ts +1 -1
- package/dist/src/adapters/claude-code.d.ts.map +1 -1
- package/dist/src/adapters/claude-shaped.d.ts +38 -2
- package/dist/src/adapters/claude-shaped.d.ts.map +1 -1
- package/dist/src/adapters/codex.d.ts.map +1 -1
- package/dist/src/adapters/gemini-cli.d.ts +5 -0
- package/dist/src/adapters/gemini-cli.d.ts.map +1 -1
- package/dist/src/adapters/index.d.ts +2 -0
- package/dist/src/adapters/index.d.ts.map +1 -1
- package/dist/src/adapters/types.d.ts +23 -7
- package/dist/src/adapters/types.d.ts.map +1 -1
- package/dist/src/config.d.ts +3 -0
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/control/index.d.ts +5 -0
- package/dist/src/control/index.d.ts.map +1 -0
- package/dist/src/control/verify.d.ts +171 -0
- package/dist/src/control/verify.d.ts.map +1 -0
- package/package.json +5 -1
package/dist/schema/v1.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export declare const EventData: z.ZodObject<{
|
|
|
117
117
|
stop: "stop";
|
|
118
118
|
interrupt: "interrupt";
|
|
119
119
|
}>;
|
|
120
|
+
error: z.ZodOptional<z.ZodString>;
|
|
120
121
|
ms: z.ZodOptional<z.ZodInt>;
|
|
121
122
|
}, z.core.$loose>;
|
|
122
123
|
"turn.transcript": z.ZodObject<{
|
|
@@ -241,78 +242,240 @@ export declare const Capability: z.ZodEnum<{
|
|
|
241
242
|
forget: "forget";
|
|
242
243
|
control: "control";
|
|
243
244
|
}>;
|
|
244
|
-
export declare const
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
248
|
-
auth: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
249
|
-
bearer: "bearer";
|
|
250
|
-
}>>>;
|
|
251
|
-
endpoints: z.ZodObject<{
|
|
252
|
-
events: z.ZodString;
|
|
253
|
-
control: z.ZodOptional<z.ZodString>;
|
|
254
|
-
native: z.ZodOptional<z.ZodString>;
|
|
255
|
-
}, z.core.$strip>;
|
|
256
|
-
batch: z.ZodObject<{
|
|
257
|
-
max_events: z.ZodInt;
|
|
258
|
-
max_bytes: z.ZodInt;
|
|
259
|
-
}, z.core.$strip>;
|
|
260
|
-
control: z.ZodOptional<z.ZodObject<{
|
|
261
|
-
wait_max_s: z.ZodInt;
|
|
262
|
-
}, z.core.$strip>>;
|
|
263
|
-
}, z.core.$strip>;
|
|
245
|
+
export declare const MachineId: z.ZodString;
|
|
246
|
+
/** `<harness>:<id>`; the id follows its adapter's rule (Claude Code: a UUID). */
|
|
247
|
+
export declare const SessionRef: z.ZodString;
|
|
264
248
|
export declare const ControlKind: z.ZodEnum<{
|
|
265
|
-
"permission.answer": "permission.answer";
|
|
266
249
|
prompt: "prompt";
|
|
250
|
+
"permission.answer": "permission.answer";
|
|
267
251
|
cancel: "cancel";
|
|
252
|
+
start: "start";
|
|
268
253
|
}>;
|
|
269
|
-
export declare const
|
|
270
|
-
|
|
254
|
+
export declare const DeliveryMode: z.ZodEnum<{
|
|
255
|
+
resume: "resume";
|
|
256
|
+
fork: "fork";
|
|
257
|
+
turn: "turn";
|
|
258
|
+
sdk: "sdk";
|
|
259
|
+
waiter: "waiter";
|
|
260
|
+
api: "api";
|
|
261
|
+
}>;
|
|
262
|
+
/** The signed command, as the device writes it. The machine verifies the EXACT string
|
|
263
|
+
* it received (control.json `cmd`) and never re-serializes it. */
|
|
264
|
+
export declare const ControlCommand: z.ZodObject<{
|
|
265
|
+
v: z.ZodLiteral<1>;
|
|
266
|
+
t: z.ZodLiteral<"sessionpipe.control">;
|
|
267
|
+
machine: z.ZodString;
|
|
271
268
|
kind: z.ZodEnum<{
|
|
272
|
-
"permission.answer": "permission.answer";
|
|
273
269
|
prompt: "prompt";
|
|
270
|
+
"permission.answer": "permission.answer";
|
|
274
271
|
cancel: "cancel";
|
|
272
|
+
start: "start";
|
|
275
273
|
}>;
|
|
274
|
+
session: z.ZodString;
|
|
275
|
+
text: z.ZodOptional<z.ZodString>;
|
|
276
276
|
for: z.ZodOptional<z.ZodString>;
|
|
277
277
|
decision: z.ZodOptional<z.ZodEnum<{
|
|
278
278
|
allow: "allow";
|
|
279
279
|
deny: "deny";
|
|
280
280
|
}>>;
|
|
281
|
-
text: z.ZodOptional<z.ZodString>;
|
|
282
281
|
note: z.ZodOptional<z.ZodString>;
|
|
282
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
283
|
+
nonce: z.ZodString;
|
|
284
|
+
iat: z.ZodInt;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
/** A day grant's signed string: a passkey vouches for a device key for ≤ 24 h. */
|
|
287
|
+
export declare const ControlGrant: z.ZodObject<{
|
|
288
|
+
v: z.ZodLiteral<1>;
|
|
289
|
+
t: z.ZodLiteral<"sessionpipe.grant">;
|
|
290
|
+
pub: z.ZodString;
|
|
291
|
+
iat: z.ZodInt;
|
|
292
|
+
exp: z.ZodInt;
|
|
293
|
+
rp: z.ZodString;
|
|
294
|
+
}, z.core.$strip>;
|
|
295
|
+
/** A WebAuthn assertion: credential id, authenticatorData, clientDataJSON, signature. */
|
|
296
|
+
export declare const ControlAssertion: z.ZodObject<{
|
|
297
|
+
cred: z.ZodString;
|
|
298
|
+
ad: z.ZodString;
|
|
299
|
+
cd: z.ZodString;
|
|
300
|
+
sig: z.ZodString;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
/** A key enrolled on a machine: a passkey's credential id, COSE alg, SPKI. */
|
|
303
|
+
export declare const ControlKey: z.ZodObject<{
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
306
|
+
spki: z.ZodString;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
/** One message as a receiver carries it: its own envelope around the signed bytes. */
|
|
309
|
+
export declare const ControlMessage: z.ZodObject<{
|
|
310
|
+
id: z.ZodString;
|
|
311
|
+
cmd: z.ZodString;
|
|
312
|
+
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
314
|
+
cred: z.ZodString;
|
|
315
|
+
ad: z.ZodString;
|
|
316
|
+
cd: z.ZodString;
|
|
317
|
+
sig: z.ZodString;
|
|
318
|
+
str: z.ZodString;
|
|
319
|
+
}, z.core.$strip>>>;
|
|
320
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
321
|
+
cred: z.ZodString;
|
|
322
|
+
ad: z.ZodString;
|
|
323
|
+
cd: z.ZodString;
|
|
324
|
+
sig: z.ZodString;
|
|
325
|
+
}, z.core.$strip>>>;
|
|
283
326
|
at: z.ZodISODateTime;
|
|
284
327
|
expires_at: z.ZodISODateTime;
|
|
285
328
|
}, z.core.$strip>;
|
|
286
329
|
export declare const ControlPoll: z.ZodObject<{
|
|
287
330
|
messages: z.ZodArray<z.ZodObject<{
|
|
288
331
|
id: z.ZodString;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
332
|
+
cmd: z.ZodString;
|
|
333
|
+
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
334
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
335
|
+
cred: z.ZodString;
|
|
336
|
+
ad: z.ZodString;
|
|
337
|
+
cd: z.ZodString;
|
|
338
|
+
sig: z.ZodString;
|
|
339
|
+
str: z.ZodString;
|
|
340
|
+
}, z.core.$strip>>>;
|
|
341
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
342
|
+
cred: z.ZodString;
|
|
343
|
+
ad: z.ZodString;
|
|
344
|
+
cd: z.ZodString;
|
|
345
|
+
sig: z.ZodString;
|
|
346
|
+
}, z.core.$strip>>>;
|
|
301
347
|
at: z.ZodISODateTime;
|
|
302
348
|
expires_at: z.ZodISODateTime;
|
|
303
349
|
}, z.core.$strip>>;
|
|
304
350
|
}, z.core.$strip>;
|
|
351
|
+
/** `taken` is the one non-final outcome: the machine verified the message and is
|
|
352
|
+
* delivering it (a headless resume can take minutes); a final ack follows. */
|
|
353
|
+
export declare const ControlOutcome: z.ZodEnum<{
|
|
354
|
+
taken: "taken";
|
|
355
|
+
delivered: "delivered";
|
|
356
|
+
expired: "expired";
|
|
357
|
+
unsupported: "unsupported";
|
|
358
|
+
failed: "failed";
|
|
359
|
+
refused: "refused";
|
|
360
|
+
}>;
|
|
305
361
|
export declare const ControlAck: z.ZodObject<{
|
|
306
362
|
acks: z.ZodArray<z.ZodObject<{
|
|
307
363
|
id: z.ZodString;
|
|
308
364
|
outcome: z.ZodEnum<{
|
|
365
|
+
taken: "taken";
|
|
309
366
|
delivered: "delivered";
|
|
310
367
|
expired: "expired";
|
|
311
368
|
unsupported: "unsupported";
|
|
312
369
|
failed: "failed";
|
|
370
|
+
refused: "refused";
|
|
313
371
|
}>;
|
|
314
372
|
at: z.ZodISODateTime;
|
|
373
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
374
|
+
resume: "resume";
|
|
375
|
+
fork: "fork";
|
|
376
|
+
turn: "turn";
|
|
377
|
+
sdk: "sdk";
|
|
378
|
+
waiter: "waiter";
|
|
379
|
+
api: "api";
|
|
380
|
+
}>>;
|
|
381
|
+
session: z.ZodOptional<z.ZodString>;
|
|
382
|
+
code: z.ZodOptional<z.ZodString>;
|
|
315
383
|
detail: z.ZodOptional<z.ZodString>;
|
|
384
|
+
reply: z.ZodOptional<z.ZodString>;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
/** `POST {control}/pair`, sent with the person's sink token from their own terminal. */
|
|
388
|
+
export declare const ControlPairStart: z.ZodObject<{
|
|
389
|
+
machine: z.ZodOptional<z.ZodString>;
|
|
390
|
+
name: z.ZodString;
|
|
391
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
392
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
393
|
+
resume: "resume";
|
|
394
|
+
fork: "fork";
|
|
395
|
+
turn: "turn";
|
|
396
|
+
sdk: "sdk";
|
|
397
|
+
waiter: "waiter";
|
|
398
|
+
api: "api";
|
|
399
|
+
}>>;
|
|
400
|
+
version: z.ZodString;
|
|
401
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
402
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
403
|
+
auto: "auto";
|
|
404
|
+
safe: "safe";
|
|
405
|
+
}>>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
/** The receiver's answer: where the person confirms, and the digits both screens show. */
|
|
408
|
+
export declare const ControlPairStarted: z.ZodObject<{
|
|
409
|
+
machine: z.ZodString;
|
|
410
|
+
code: z.ZodString;
|
|
411
|
+
url: z.ZodURL;
|
|
412
|
+
check: z.ZodString;
|
|
413
|
+
expires_at: z.ZodISODateTime;
|
|
414
|
+
}, z.core.$strip>;
|
|
415
|
+
/** `GET {control}/pair?code=…` once the person confirmed. The machine verifies `proof`
|
|
416
|
+
* over sha256("sessionpipe.pair:<machine>:<code>") before it trusts `key`. */
|
|
417
|
+
export declare const ControlPaired: z.ZodObject<{
|
|
418
|
+
status: z.ZodEnum<{
|
|
419
|
+
expired: "expired";
|
|
420
|
+
pending: "pending";
|
|
421
|
+
paired: "paired";
|
|
422
|
+
}>;
|
|
423
|
+
key: z.ZodOptional<z.ZodObject<{
|
|
424
|
+
id: z.ZodString;
|
|
425
|
+
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
426
|
+
spki: z.ZodString;
|
|
427
|
+
}, z.core.$strip>>;
|
|
428
|
+
proof: z.ZodOptional<z.ZodObject<{
|
|
429
|
+
cred: z.ZodString;
|
|
430
|
+
ad: z.ZodString;
|
|
431
|
+
cd: z.ZodString;
|
|
432
|
+
sig: z.ZodString;
|
|
433
|
+
}, z.core.$strip>>;
|
|
434
|
+
token: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strip>;
|
|
436
|
+
/** `POST {control}/hello`: what the machine can do right now. */
|
|
437
|
+
export declare const ControlHello: z.ZodObject<{
|
|
438
|
+
name: z.ZodString;
|
|
439
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
440
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
441
|
+
resume: "resume";
|
|
442
|
+
fork: "fork";
|
|
443
|
+
turn: "turn";
|
|
444
|
+
sdk: "sdk";
|
|
445
|
+
waiter: "waiter";
|
|
446
|
+
api: "api";
|
|
447
|
+
}>>;
|
|
448
|
+
keys: z.ZodArray<z.ZodString>;
|
|
449
|
+
version: z.ZodString;
|
|
450
|
+
waiting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
451
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
452
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
453
|
+
auto: "auto";
|
|
454
|
+
safe: "safe";
|
|
455
|
+
}>>;
|
|
456
|
+
}, z.core.$strip>;
|
|
457
|
+
export declare const WellKnown: z.ZodObject<{
|
|
458
|
+
protocol: z.ZodArray<z.ZodInt>;
|
|
459
|
+
max_tier: z.ZodInt;
|
|
460
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
461
|
+
auth: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
462
|
+
bearer: "bearer";
|
|
463
|
+
}>>>;
|
|
464
|
+
endpoints: z.ZodObject<{
|
|
465
|
+
events: z.ZodString;
|
|
466
|
+
control: z.ZodOptional<z.ZodString>;
|
|
467
|
+
native: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
batch: z.ZodObject<{
|
|
470
|
+
max_events: z.ZodInt;
|
|
471
|
+
max_bytes: z.ZodInt;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
control: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
wait_max_s: z.ZodInt;
|
|
475
|
+
signing: z.ZodObject<{
|
|
476
|
+
rp_id: z.ZodString;
|
|
477
|
+
algs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>>;
|
|
478
|
+
}, z.core.$strip>;
|
|
316
479
|
}, z.core.$strip>>;
|
|
317
480
|
}, z.core.$strip>;
|
|
318
481
|
/** What `npm run schemas` writes to schemas/v1/<name>.json. */
|
|
@@ -389,6 +552,7 @@ export declare const SCHEMAS: {
|
|
|
389
552
|
stop: "stop";
|
|
390
553
|
interrupt: "interrupt";
|
|
391
554
|
}>;
|
|
555
|
+
error: z.ZodOptional<z.ZodString>;
|
|
392
556
|
ms: z.ZodOptional<z.ZodInt>;
|
|
393
557
|
}, z.core.$loose>;
|
|
394
558
|
"turn.transcript": z.ZodObject<{
|
|
@@ -524,40 +688,85 @@ export declare const SCHEMAS: {
|
|
|
524
688
|
}, z.core.$strip>;
|
|
525
689
|
control: z.ZodOptional<z.ZodObject<{
|
|
526
690
|
wait_max_s: z.ZodInt;
|
|
691
|
+
signing: z.ZodObject<{
|
|
692
|
+
rp_id: z.ZodString;
|
|
693
|
+
algs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>>;
|
|
694
|
+
}, z.core.$strip>;
|
|
527
695
|
}, z.core.$strip>>;
|
|
528
696
|
}, z.core.$strip>;
|
|
529
697
|
readonly control: z.ZodObject<{
|
|
530
698
|
id: z.ZodString;
|
|
699
|
+
cmd: z.ZodString;
|
|
700
|
+
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
701
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
702
|
+
cred: z.ZodString;
|
|
703
|
+
ad: z.ZodString;
|
|
704
|
+
cd: z.ZodString;
|
|
705
|
+
sig: z.ZodString;
|
|
706
|
+
str: z.ZodString;
|
|
707
|
+
}, z.core.$strip>>>;
|
|
708
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
709
|
+
cred: z.ZodString;
|
|
710
|
+
ad: z.ZodString;
|
|
711
|
+
cd: z.ZodString;
|
|
712
|
+
sig: z.ZodString;
|
|
713
|
+
}, z.core.$strip>>>;
|
|
714
|
+
at: z.ZodISODateTime;
|
|
715
|
+
expires_at: z.ZodISODateTime;
|
|
716
|
+
}, z.core.$strip>;
|
|
717
|
+
readonly "control-command": z.ZodObject<{
|
|
718
|
+
v: z.ZodLiteral<1>;
|
|
719
|
+
t: z.ZodLiteral<"sessionpipe.control">;
|
|
720
|
+
machine: z.ZodString;
|
|
531
721
|
kind: z.ZodEnum<{
|
|
532
|
-
"permission.answer": "permission.answer";
|
|
533
722
|
prompt: "prompt";
|
|
723
|
+
"permission.answer": "permission.answer";
|
|
534
724
|
cancel: "cancel";
|
|
725
|
+
start: "start";
|
|
535
726
|
}>;
|
|
727
|
+
session: z.ZodString;
|
|
728
|
+
text: z.ZodOptional<z.ZodString>;
|
|
536
729
|
for: z.ZodOptional<z.ZodString>;
|
|
537
730
|
decision: z.ZodOptional<z.ZodEnum<{
|
|
538
731
|
allow: "allow";
|
|
539
732
|
deny: "deny";
|
|
540
733
|
}>>;
|
|
541
|
-
text: z.ZodOptional<z.ZodString>;
|
|
542
734
|
note: z.ZodOptional<z.ZodString>;
|
|
543
|
-
|
|
544
|
-
|
|
735
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
736
|
+
nonce: z.ZodString;
|
|
737
|
+
iat: z.ZodInt;
|
|
738
|
+
}, z.core.$strip>;
|
|
739
|
+
readonly "control-grant": z.ZodObject<{
|
|
740
|
+
v: z.ZodLiteral<1>;
|
|
741
|
+
t: z.ZodLiteral<"sessionpipe.grant">;
|
|
742
|
+
pub: z.ZodString;
|
|
743
|
+
iat: z.ZodInt;
|
|
744
|
+
exp: z.ZodInt;
|
|
745
|
+
rp: z.ZodString;
|
|
746
|
+
}, z.core.$strip>;
|
|
747
|
+
readonly "control-key": z.ZodObject<{
|
|
748
|
+
id: z.ZodString;
|
|
749
|
+
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
750
|
+
spki: z.ZodString;
|
|
545
751
|
}, z.core.$strip>;
|
|
546
752
|
readonly "control-poll": z.ZodObject<{
|
|
547
753
|
messages: z.ZodArray<z.ZodObject<{
|
|
548
754
|
id: z.ZodString;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
755
|
+
cmd: z.ZodString;
|
|
756
|
+
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
757
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
758
|
+
cred: z.ZodString;
|
|
759
|
+
ad: z.ZodString;
|
|
760
|
+
cd: z.ZodString;
|
|
761
|
+
sig: z.ZodString;
|
|
762
|
+
str: z.ZodString;
|
|
763
|
+
}, z.core.$strip>>>;
|
|
764
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
765
|
+
cred: z.ZodString;
|
|
766
|
+
ad: z.ZodString;
|
|
767
|
+
cd: z.ZodString;
|
|
768
|
+
sig: z.ZodString;
|
|
769
|
+
}, z.core.$strip>>>;
|
|
561
770
|
at: z.ZodISODateTime;
|
|
562
771
|
expires_at: z.ZodISODateTime;
|
|
563
772
|
}, z.core.$strip>>;
|
|
@@ -566,14 +775,92 @@ export declare const SCHEMAS: {
|
|
|
566
775
|
acks: z.ZodArray<z.ZodObject<{
|
|
567
776
|
id: z.ZodString;
|
|
568
777
|
outcome: z.ZodEnum<{
|
|
778
|
+
taken: "taken";
|
|
569
779
|
delivered: "delivered";
|
|
570
780
|
expired: "expired";
|
|
571
781
|
unsupported: "unsupported";
|
|
572
782
|
failed: "failed";
|
|
783
|
+
refused: "refused";
|
|
573
784
|
}>;
|
|
574
785
|
at: z.ZodISODateTime;
|
|
786
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
787
|
+
resume: "resume";
|
|
788
|
+
fork: "fork";
|
|
789
|
+
turn: "turn";
|
|
790
|
+
sdk: "sdk";
|
|
791
|
+
waiter: "waiter";
|
|
792
|
+
api: "api";
|
|
793
|
+
}>>;
|
|
794
|
+
session: z.ZodOptional<z.ZodString>;
|
|
795
|
+
code: z.ZodOptional<z.ZodString>;
|
|
575
796
|
detail: z.ZodOptional<z.ZodString>;
|
|
797
|
+
reply: z.ZodOptional<z.ZodString>;
|
|
576
798
|
}, z.core.$strip>>;
|
|
577
799
|
}, z.core.$strip>;
|
|
800
|
+
readonly "control-pair": z.ZodObject<{
|
|
801
|
+
machine: z.ZodOptional<z.ZodString>;
|
|
802
|
+
name: z.ZodString;
|
|
803
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
804
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
805
|
+
resume: "resume";
|
|
806
|
+
fork: "fork";
|
|
807
|
+
turn: "turn";
|
|
808
|
+
sdk: "sdk";
|
|
809
|
+
waiter: "waiter";
|
|
810
|
+
api: "api";
|
|
811
|
+
}>>;
|
|
812
|
+
version: z.ZodString;
|
|
813
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
814
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
815
|
+
auto: "auto";
|
|
816
|
+
safe: "safe";
|
|
817
|
+
}>>;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
|
+
readonly "control-pair-started": z.ZodObject<{
|
|
820
|
+
machine: z.ZodString;
|
|
821
|
+
code: z.ZodString;
|
|
822
|
+
url: z.ZodURL;
|
|
823
|
+
check: z.ZodString;
|
|
824
|
+
expires_at: z.ZodISODateTime;
|
|
825
|
+
}, z.core.$strip>;
|
|
826
|
+
readonly "control-paired": z.ZodObject<{
|
|
827
|
+
status: z.ZodEnum<{
|
|
828
|
+
expired: "expired";
|
|
829
|
+
pending: "pending";
|
|
830
|
+
paired: "paired";
|
|
831
|
+
}>;
|
|
832
|
+
key: z.ZodOptional<z.ZodObject<{
|
|
833
|
+
id: z.ZodString;
|
|
834
|
+
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
835
|
+
spki: z.ZodString;
|
|
836
|
+
}, z.core.$strip>>;
|
|
837
|
+
proof: z.ZodOptional<z.ZodObject<{
|
|
838
|
+
cred: z.ZodString;
|
|
839
|
+
ad: z.ZodString;
|
|
840
|
+
cd: z.ZodString;
|
|
841
|
+
sig: z.ZodString;
|
|
842
|
+
}, z.core.$strip>>;
|
|
843
|
+
token: z.ZodOptional<z.ZodString>;
|
|
844
|
+
}, z.core.$strip>;
|
|
845
|
+
readonly "control-hello": z.ZodObject<{
|
|
846
|
+
name: z.ZodString;
|
|
847
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
848
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
849
|
+
resume: "resume";
|
|
850
|
+
fork: "fork";
|
|
851
|
+
turn: "turn";
|
|
852
|
+
sdk: "sdk";
|
|
853
|
+
waiter: "waiter";
|
|
854
|
+
api: "api";
|
|
855
|
+
}>>;
|
|
856
|
+
keys: z.ZodArray<z.ZodString>;
|
|
857
|
+
version: z.ZodString;
|
|
858
|
+
waiting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
859
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
860
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
861
|
+
auto: "auto";
|
|
862
|
+
safe: "safe";
|
|
863
|
+
}>>;
|
|
864
|
+
}, z.core.$strip>;
|
|
578
865
|
};
|
|
579
866
|
//# sourceMappingURL=v1.d.ts.map
|
package/dist/schema/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../schema/v1.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ,IAAI,CAAC;AAE1B,oEAAoE;AACpE,eAAO,MAAM,SAAS,aAE2E,CAAC;AAElG,eAAO,MAAM,WAAW,2TAkBd,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAkBzE,CAAC;AAEF,eAAO,MAAM,aAAa,sHAUhB,CAAC;AAEX,eAAO,MAAM,IAAI,UAAwB,CAAC;AAC1C,eAAO,MAAM,IAAI,aAAuD,CAAC;AACzE,eAAO,MAAM,OAAO,kBAAkD,CAAC;AACvE,eAAO,MAAM,SAAS,aAIQ,CAAC;AAC/B,eAAO,MAAM,QAAQ,aAA+C,CAAC;AAErE,eAAO,MAAM,OAAO;;;;iBAMlB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;iBAiBlB,CAAC;AAEH,eAAO,MAAM,OAAO;;;iBAIlB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWhB,CAAC;AAKH,eAAO,MAAM,aAAa;;;;;;EAAqE,CAAC;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