sessionpipe-core 0.1.1 → 0.3.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/dist/control.js +352 -0
- package/dist/control.js.map +7 -0
- package/dist/index.js +400 -38
- package/dist/index.js.map +4 -4
- package/dist/schema/v1.d.ts +348 -53
- package/dist/schema/v1.d.ts.map +1 -1
- package/dist/schema.js +160 -24
- package/dist/schema.js.map +2 -2
- 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.map +1 -1
- package/dist/src/adapters/claude-shaped.d.ts +3 -0
- package/dist/src/adapters/claude-shaped.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/config.d.ts +2 -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
|
@@ -242,78 +242,246 @@ export declare const Capability: z.ZodEnum<{
|
|
|
242
242
|
forget: "forget";
|
|
243
243
|
control: "control";
|
|
244
244
|
}>;
|
|
245
|
-
export declare const
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
249
|
-
auth: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
250
|
-
bearer: "bearer";
|
|
251
|
-
}>>>;
|
|
252
|
-
endpoints: z.ZodObject<{
|
|
253
|
-
events: z.ZodString;
|
|
254
|
-
control: z.ZodOptional<z.ZodString>;
|
|
255
|
-
native: z.ZodOptional<z.ZodString>;
|
|
256
|
-
}, z.core.$strip>;
|
|
257
|
-
batch: z.ZodObject<{
|
|
258
|
-
max_events: z.ZodInt;
|
|
259
|
-
max_bytes: z.ZodInt;
|
|
260
|
-
}, z.core.$strip>;
|
|
261
|
-
control: z.ZodOptional<z.ZodObject<{
|
|
262
|
-
wait_max_s: z.ZodInt;
|
|
263
|
-
}, z.core.$strip>>;
|
|
264
|
-
}, 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;
|
|
265
248
|
export declare const ControlKind: z.ZodEnum<{
|
|
266
|
-
"permission.answer": "permission.answer";
|
|
267
249
|
prompt: "prompt";
|
|
250
|
+
"permission.answer": "permission.answer";
|
|
268
251
|
cancel: "cancel";
|
|
252
|
+
start: "start";
|
|
269
253
|
}>;
|
|
270
|
-
export declare const
|
|
271
|
-
|
|
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;
|
|
272
268
|
kind: z.ZodEnum<{
|
|
273
|
-
"permission.answer": "permission.answer";
|
|
274
269
|
prompt: "prompt";
|
|
270
|
+
"permission.answer": "permission.answer";
|
|
275
271
|
cancel: "cancel";
|
|
272
|
+
start: "start";
|
|
276
273
|
}>;
|
|
274
|
+
session: z.ZodString;
|
|
275
|
+
text: z.ZodOptional<z.ZodString>;
|
|
277
276
|
for: z.ZodOptional<z.ZodString>;
|
|
278
277
|
decision: z.ZodOptional<z.ZodEnum<{
|
|
279
278
|
allow: "allow";
|
|
280
279
|
deny: "deny";
|
|
281
280
|
}>>;
|
|
282
|
-
text: z.ZodOptional<z.ZodString>;
|
|
283
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>>>;
|
|
284
326
|
at: z.ZodISODateTime;
|
|
285
327
|
expires_at: z.ZodISODateTime;
|
|
286
328
|
}, z.core.$strip>;
|
|
287
329
|
export declare const ControlPoll: z.ZodObject<{
|
|
288
330
|
messages: z.ZodArray<z.ZodObject<{
|
|
289
331
|
id: z.ZodString;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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>>>;
|
|
302
347
|
at: z.ZodISODateTime;
|
|
303
348
|
expires_at: z.ZodISODateTime;
|
|
304
349
|
}, z.core.$strip>>;
|
|
305
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
|
+
}>;
|
|
306
361
|
export declare const ControlAck: z.ZodObject<{
|
|
307
362
|
acks: z.ZodArray<z.ZodObject<{
|
|
308
363
|
id: z.ZodString;
|
|
309
364
|
outcome: z.ZodEnum<{
|
|
365
|
+
taken: "taken";
|
|
310
366
|
delivered: "delivered";
|
|
311
367
|
expired: "expired";
|
|
312
368
|
unsupported: "unsupported";
|
|
313
369
|
failed: "failed";
|
|
370
|
+
refused: "refused";
|
|
314
371
|
}>;
|
|
315
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>;
|
|
316
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
|
+
* or, where the receiver declares `control.open_pairing`, with no token and a
|
|
389
|
+
* `poll_key` (CONTROL.md §2). */
|
|
390
|
+
export declare const ControlPairStart: z.ZodObject<{
|
|
391
|
+
poll_key: z.ZodOptional<z.ZodString>;
|
|
392
|
+
machine: z.ZodOptional<z.ZodString>;
|
|
393
|
+
name: z.ZodString;
|
|
394
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
395
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
396
|
+
resume: "resume";
|
|
397
|
+
fork: "fork";
|
|
398
|
+
turn: "turn";
|
|
399
|
+
sdk: "sdk";
|
|
400
|
+
waiter: "waiter";
|
|
401
|
+
api: "api";
|
|
402
|
+
}>>;
|
|
403
|
+
version: z.ZodString;
|
|
404
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
405
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
406
|
+
auto: "auto";
|
|
407
|
+
safe: "safe";
|
|
408
|
+
}>>;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
/** The receiver's answer: where the person confirms, and the digits both screens show. */
|
|
411
|
+
export declare const ControlPairStarted: z.ZodObject<{
|
|
412
|
+
machine: z.ZodString;
|
|
413
|
+
code: z.ZodString;
|
|
414
|
+
url: z.ZodURL;
|
|
415
|
+
check: z.ZodString;
|
|
416
|
+
expires_at: z.ZodISODateTime;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
/** `GET {control}/pair?code=…` once the person confirmed. The machine verifies `proof`
|
|
419
|
+
* over sha256("sessionpipe.pair:<machine>:<code>") before it trusts `key`. */
|
|
420
|
+
export declare const ControlPaired: z.ZodObject<{
|
|
421
|
+
status: z.ZodEnum<{
|
|
422
|
+
expired: "expired";
|
|
423
|
+
pending: "pending";
|
|
424
|
+
paired: "paired";
|
|
425
|
+
}>;
|
|
426
|
+
key: z.ZodOptional<z.ZodObject<{
|
|
427
|
+
id: z.ZodString;
|
|
428
|
+
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
429
|
+
spki: z.ZodString;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
proof: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
cred: z.ZodString;
|
|
433
|
+
ad: z.ZodString;
|
|
434
|
+
cd: z.ZodString;
|
|
435
|
+
sig: z.ZodString;
|
|
436
|
+
}, z.core.$strip>>;
|
|
437
|
+
token: z.ZodOptional<z.ZodString>;
|
|
438
|
+
sink_token: z.ZodOptional<z.ZodString>;
|
|
439
|
+
account: z.ZodOptional<z.ZodString>;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
/** `POST {control}/hello`: what the machine can do right now. */
|
|
442
|
+
export declare const ControlHello: z.ZodObject<{
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
445
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
446
|
+
resume: "resume";
|
|
447
|
+
fork: "fork";
|
|
448
|
+
turn: "turn";
|
|
449
|
+
sdk: "sdk";
|
|
450
|
+
waiter: "waiter";
|
|
451
|
+
api: "api";
|
|
452
|
+
}>>;
|
|
453
|
+
keys: z.ZodArray<z.ZodString>;
|
|
454
|
+
version: z.ZodString;
|
|
455
|
+
waiting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
456
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
457
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
458
|
+
auto: "auto";
|
|
459
|
+
safe: "safe";
|
|
460
|
+
}>>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
export declare const WellKnown: z.ZodObject<{
|
|
463
|
+
protocol: z.ZodArray<z.ZodInt>;
|
|
464
|
+
max_tier: z.ZodInt;
|
|
465
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
466
|
+
auth: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
467
|
+
bearer: "bearer";
|
|
468
|
+
}>>>;
|
|
469
|
+
endpoints: z.ZodObject<{
|
|
470
|
+
events: z.ZodString;
|
|
471
|
+
control: z.ZodOptional<z.ZodString>;
|
|
472
|
+
native: z.ZodOptional<z.ZodString>;
|
|
473
|
+
}, z.core.$strip>;
|
|
474
|
+
batch: z.ZodObject<{
|
|
475
|
+
max_events: z.ZodInt;
|
|
476
|
+
max_bytes: z.ZodInt;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
control: z.ZodOptional<z.ZodObject<{
|
|
479
|
+
wait_max_s: z.ZodInt;
|
|
480
|
+
open_pairing: z.ZodOptional<z.ZodBoolean>;
|
|
481
|
+
signing: z.ZodObject<{
|
|
482
|
+
rp_id: z.ZodString;
|
|
483
|
+
algs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>>;
|
|
484
|
+
}, z.core.$strip>;
|
|
317
485
|
}, z.core.$strip>>;
|
|
318
486
|
}, z.core.$strip>;
|
|
319
487
|
/** What `npm run schemas` writes to schemas/v1/<name>.json. */
|
|
@@ -526,40 +694,86 @@ export declare const SCHEMAS: {
|
|
|
526
694
|
}, z.core.$strip>;
|
|
527
695
|
control: z.ZodOptional<z.ZodObject<{
|
|
528
696
|
wait_max_s: z.ZodInt;
|
|
697
|
+
open_pairing: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
+
signing: z.ZodObject<{
|
|
699
|
+
rp_id: z.ZodString;
|
|
700
|
+
algs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>>;
|
|
701
|
+
}, z.core.$strip>;
|
|
529
702
|
}, z.core.$strip>>;
|
|
530
703
|
}, z.core.$strip>;
|
|
531
704
|
readonly control: z.ZodObject<{
|
|
532
705
|
id: z.ZodString;
|
|
706
|
+
cmd: z.ZodString;
|
|
707
|
+
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
708
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
709
|
+
cred: z.ZodString;
|
|
710
|
+
ad: z.ZodString;
|
|
711
|
+
cd: z.ZodString;
|
|
712
|
+
sig: z.ZodString;
|
|
713
|
+
str: z.ZodString;
|
|
714
|
+
}, z.core.$strip>>>;
|
|
715
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
716
|
+
cred: z.ZodString;
|
|
717
|
+
ad: z.ZodString;
|
|
718
|
+
cd: z.ZodString;
|
|
719
|
+
sig: z.ZodString;
|
|
720
|
+
}, z.core.$strip>>>;
|
|
721
|
+
at: z.ZodISODateTime;
|
|
722
|
+
expires_at: z.ZodISODateTime;
|
|
723
|
+
}, z.core.$strip>;
|
|
724
|
+
readonly "control-command": z.ZodObject<{
|
|
725
|
+
v: z.ZodLiteral<1>;
|
|
726
|
+
t: z.ZodLiteral<"sessionpipe.control">;
|
|
727
|
+
machine: z.ZodString;
|
|
533
728
|
kind: z.ZodEnum<{
|
|
534
|
-
"permission.answer": "permission.answer";
|
|
535
729
|
prompt: "prompt";
|
|
730
|
+
"permission.answer": "permission.answer";
|
|
536
731
|
cancel: "cancel";
|
|
732
|
+
start: "start";
|
|
537
733
|
}>;
|
|
734
|
+
session: z.ZodString;
|
|
735
|
+
text: z.ZodOptional<z.ZodString>;
|
|
538
736
|
for: z.ZodOptional<z.ZodString>;
|
|
539
737
|
decision: z.ZodOptional<z.ZodEnum<{
|
|
540
738
|
allow: "allow";
|
|
541
739
|
deny: "deny";
|
|
542
740
|
}>>;
|
|
543
|
-
text: z.ZodOptional<z.ZodString>;
|
|
544
741
|
note: z.ZodOptional<z.ZodString>;
|
|
545
|
-
|
|
546
|
-
|
|
742
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
743
|
+
nonce: z.ZodString;
|
|
744
|
+
iat: z.ZodInt;
|
|
745
|
+
}, z.core.$strip>;
|
|
746
|
+
readonly "control-grant": z.ZodObject<{
|
|
747
|
+
v: z.ZodLiteral<1>;
|
|
748
|
+
t: z.ZodLiteral<"sessionpipe.grant">;
|
|
749
|
+
pub: z.ZodString;
|
|
750
|
+
iat: z.ZodInt;
|
|
751
|
+
exp: z.ZodInt;
|
|
752
|
+
rp: z.ZodString;
|
|
753
|
+
}, z.core.$strip>;
|
|
754
|
+
readonly "control-key": z.ZodObject<{
|
|
755
|
+
id: z.ZodString;
|
|
756
|
+
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
757
|
+
spki: z.ZodString;
|
|
547
758
|
}, z.core.$strip>;
|
|
548
759
|
readonly "control-poll": z.ZodObject<{
|
|
549
760
|
messages: z.ZodArray<z.ZodObject<{
|
|
550
761
|
id: z.ZodString;
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
762
|
+
cmd: z.ZodString;
|
|
763
|
+
csig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
764
|
+
grant: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
765
|
+
cred: z.ZodString;
|
|
766
|
+
ad: z.ZodString;
|
|
767
|
+
cd: z.ZodString;
|
|
768
|
+
sig: z.ZodString;
|
|
769
|
+
str: z.ZodString;
|
|
770
|
+
}, z.core.$strip>>>;
|
|
771
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
772
|
+
cred: z.ZodString;
|
|
773
|
+
ad: z.ZodString;
|
|
774
|
+
cd: z.ZodString;
|
|
775
|
+
sig: z.ZodString;
|
|
776
|
+
}, z.core.$strip>>>;
|
|
563
777
|
at: z.ZodISODateTime;
|
|
564
778
|
expires_at: z.ZodISODateTime;
|
|
565
779
|
}, z.core.$strip>>;
|
|
@@ -568,14 +782,95 @@ export declare const SCHEMAS: {
|
|
|
568
782
|
acks: z.ZodArray<z.ZodObject<{
|
|
569
783
|
id: z.ZodString;
|
|
570
784
|
outcome: z.ZodEnum<{
|
|
785
|
+
taken: "taken";
|
|
571
786
|
delivered: "delivered";
|
|
572
787
|
expired: "expired";
|
|
573
788
|
unsupported: "unsupported";
|
|
574
789
|
failed: "failed";
|
|
790
|
+
refused: "refused";
|
|
575
791
|
}>;
|
|
576
792
|
at: z.ZodISODateTime;
|
|
793
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
794
|
+
resume: "resume";
|
|
795
|
+
fork: "fork";
|
|
796
|
+
turn: "turn";
|
|
797
|
+
sdk: "sdk";
|
|
798
|
+
waiter: "waiter";
|
|
799
|
+
api: "api";
|
|
800
|
+
}>>;
|
|
801
|
+
session: z.ZodOptional<z.ZodString>;
|
|
802
|
+
code: z.ZodOptional<z.ZodString>;
|
|
577
803
|
detail: z.ZodOptional<z.ZodString>;
|
|
804
|
+
reply: z.ZodOptional<z.ZodString>;
|
|
578
805
|
}, z.core.$strip>>;
|
|
579
806
|
}, z.core.$strip>;
|
|
807
|
+
readonly "control-pair": z.ZodObject<{
|
|
808
|
+
poll_key: z.ZodOptional<z.ZodString>;
|
|
809
|
+
machine: z.ZodOptional<z.ZodString>;
|
|
810
|
+
name: z.ZodString;
|
|
811
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
812
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
813
|
+
resume: "resume";
|
|
814
|
+
fork: "fork";
|
|
815
|
+
turn: "turn";
|
|
816
|
+
sdk: "sdk";
|
|
817
|
+
waiter: "waiter";
|
|
818
|
+
api: "api";
|
|
819
|
+
}>>;
|
|
820
|
+
version: z.ZodString;
|
|
821
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
822
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
823
|
+
auto: "auto";
|
|
824
|
+
safe: "safe";
|
|
825
|
+
}>>;
|
|
826
|
+
}, z.core.$strip>;
|
|
827
|
+
readonly "control-pair-started": z.ZodObject<{
|
|
828
|
+
machine: z.ZodString;
|
|
829
|
+
code: z.ZodString;
|
|
830
|
+
url: z.ZodURL;
|
|
831
|
+
check: z.ZodString;
|
|
832
|
+
expires_at: z.ZodISODateTime;
|
|
833
|
+
}, z.core.$strip>;
|
|
834
|
+
readonly "control-paired": z.ZodObject<{
|
|
835
|
+
status: z.ZodEnum<{
|
|
836
|
+
expired: "expired";
|
|
837
|
+
pending: "pending";
|
|
838
|
+
paired: "paired";
|
|
839
|
+
}>;
|
|
840
|
+
key: z.ZodOptional<z.ZodObject<{
|
|
841
|
+
id: z.ZodString;
|
|
842
|
+
alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>;
|
|
843
|
+
spki: z.ZodString;
|
|
844
|
+
}, z.core.$strip>>;
|
|
845
|
+
proof: z.ZodOptional<z.ZodObject<{
|
|
846
|
+
cred: z.ZodString;
|
|
847
|
+
ad: z.ZodString;
|
|
848
|
+
cd: z.ZodString;
|
|
849
|
+
sig: z.ZodString;
|
|
850
|
+
}, z.core.$strip>>;
|
|
851
|
+
token: z.ZodOptional<z.ZodString>;
|
|
852
|
+
sink_token: z.ZodOptional<z.ZodString>;
|
|
853
|
+
account: z.ZodOptional<z.ZodString>;
|
|
854
|
+
}, z.core.$strip>;
|
|
855
|
+
readonly "control-hello": z.ZodObject<{
|
|
856
|
+
name: z.ZodString;
|
|
857
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
858
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
859
|
+
resume: "resume";
|
|
860
|
+
fork: "fork";
|
|
861
|
+
turn: "turn";
|
|
862
|
+
sdk: "sdk";
|
|
863
|
+
waiter: "waiter";
|
|
864
|
+
api: "api";
|
|
865
|
+
}>>;
|
|
866
|
+
keys: z.ZodArray<z.ZodString>;
|
|
867
|
+
version: z.ZodString;
|
|
868
|
+
waiting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
869
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
870
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
871
|
+
auto: "auto";
|
|
872
|
+
safe: "safe";
|
|
873
|
+
}>>;
|
|
874
|
+
}, z.core.$strip>;
|
|
580
875
|
};
|
|
581
876
|
//# sourceMappingURL=v1.d.ts.map
|
package/dist/schema/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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