@heynixie/contract 0.73.0 → 0.75.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/contract/approval-contract.d.ts +137 -0
- package/dist/contract/build-query-utils.d.ts +308 -2
- package/dist/contract/challenge-for-schema.d.ts +4 -0
- package/dist/contract/contract.d.ts +320 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -1
- package/dist/contract/forgotten-items-schema.d.ts +16 -0
- package/dist/contract/host-contract.d.ts +56 -0
- package/dist/contract/host-mandates-contract.d.ts +32 -0
- package/dist/contract/memory-view-contract.d.ts +7 -0
- package/dist/contract/passkey-contract.d.ts +4 -0
- package/dist/contract/rule-contract.d.ts +123 -0
- package/dist/index.js +461 -311
- package/package.json +1 -1
|
@@ -91,6 +91,11 @@ export declare const contract: {
|
|
|
91
91
|
}, z.core.$strip>>;
|
|
92
92
|
}, z.core.$strip>>;
|
|
93
93
|
recordedAt: z.ZodDate;
|
|
94
|
+
removal: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
kind: z.ZodString;
|
|
96
|
+
sequence: z.ZodInt;
|
|
97
|
+
callSequence: z.ZodOptional<z.ZodInt>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
94
99
|
sequence: z.ZodInt;
|
|
95
100
|
stop: z.ZodOptional<z.ZodObject<{
|
|
96
101
|
cancelledActions: z.ZodArray<z.ZodObject<{
|
|
@@ -221,6 +226,11 @@ export declare const contract: {
|
|
|
221
226
|
}, z.core.$strip>>;
|
|
222
227
|
}, z.core.$strip>>;
|
|
223
228
|
recordedAt: z.ZodDate;
|
|
229
|
+
removal: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
kind: z.ZodString;
|
|
231
|
+
sequence: z.ZodInt;
|
|
232
|
+
callSequence: z.ZodOptional<z.ZodInt>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
224
234
|
sequence: z.ZodInt;
|
|
225
235
|
stop: z.ZodOptional<z.ZodObject<{
|
|
226
236
|
cancelledActions: z.ZodArray<z.ZodObject<{
|
|
@@ -444,6 +454,7 @@ export declare const contract: {
|
|
|
444
454
|
isTakingMessages: z.ZodBoolean;
|
|
445
455
|
lastActivityAt: z.ZodDate;
|
|
446
456
|
name: z.ZodString;
|
|
457
|
+
runner: z.ZodString;
|
|
447
458
|
state: z.ZodEnum<{
|
|
448
459
|
closed: "closed";
|
|
449
460
|
done: "done";
|
|
@@ -485,6 +496,7 @@ export declare const contract: {
|
|
|
485
496
|
isTakingMessages: z.ZodBoolean;
|
|
486
497
|
lastActivityAt: z.ZodDate;
|
|
487
498
|
name: z.ZodString;
|
|
499
|
+
runner: z.ZodString;
|
|
488
500
|
state: z.ZodEnum<{
|
|
489
501
|
closed: "closed";
|
|
490
502
|
done: "done";
|
|
@@ -579,6 +591,10 @@ export declare const contract: {
|
|
|
579
591
|
}>;
|
|
580
592
|
}, z.core.$strip>;
|
|
581
593
|
};
|
|
594
|
+
RUNNER_LACKS_CONTROL: {
|
|
595
|
+
message: string;
|
|
596
|
+
status: number;
|
|
597
|
+
};
|
|
582
598
|
}>, Record<never, never>>;
|
|
583
599
|
resume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
584
600
|
clientActionID: z.ZodUUID;
|
|
@@ -629,6 +645,10 @@ export declare const contract: {
|
|
|
629
645
|
}>;
|
|
630
646
|
}, z.core.$strip>;
|
|
631
647
|
};
|
|
648
|
+
RUNNER_LACKS_CONTROL: {
|
|
649
|
+
message: string;
|
|
650
|
+
status: number;
|
|
651
|
+
};
|
|
632
652
|
}>, Record<never, never>>;
|
|
633
653
|
stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
634
654
|
clientActionID: z.ZodUUID;
|
|
@@ -679,6 +699,10 @@ export declare const contract: {
|
|
|
679
699
|
}>;
|
|
680
700
|
}, z.core.$strip>;
|
|
681
701
|
};
|
|
702
|
+
RUNNER_LACKS_CONTROL: {
|
|
703
|
+
message: string;
|
|
704
|
+
status: number;
|
|
705
|
+
};
|
|
682
706
|
}>, Record<never, never>>;
|
|
683
707
|
restart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
684
708
|
clientActionID: z.ZodUUID;
|
|
@@ -729,6 +753,10 @@ export declare const contract: {
|
|
|
729
753
|
}>;
|
|
730
754
|
}, z.core.$strip>;
|
|
731
755
|
};
|
|
756
|
+
RUNNER_LACKS_CONTROL: {
|
|
757
|
+
message: string;
|
|
758
|
+
status: number;
|
|
759
|
+
};
|
|
732
760
|
}>, Record<never, never>>;
|
|
733
761
|
close: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
734
762
|
clientActionID: z.ZodUUID;
|
|
@@ -779,6 +807,10 @@ export declare const contract: {
|
|
|
779
807
|
}>;
|
|
780
808
|
}, z.core.$strip>;
|
|
781
809
|
};
|
|
810
|
+
RUNNER_LACKS_CONTROL: {
|
|
811
|
+
message: string;
|
|
812
|
+
status: number;
|
|
813
|
+
};
|
|
782
814
|
}>, {
|
|
783
815
|
CONVERSATION_NEVER_CLOSES: {
|
|
784
816
|
message: string;
|
|
@@ -834,6 +866,10 @@ export declare const contract: {
|
|
|
834
866
|
}>;
|
|
835
867
|
}, z.core.$strip>;
|
|
836
868
|
};
|
|
869
|
+
RUNNER_LACKS_CONTROL: {
|
|
870
|
+
message: string;
|
|
871
|
+
status: number;
|
|
872
|
+
};
|
|
837
873
|
}>, Record<never, never>>;
|
|
838
874
|
};
|
|
839
875
|
memory: {
|
|
@@ -2366,6 +2402,7 @@ export declare const contract: {
|
|
|
2366
2402
|
data: z.ZodObject<{
|
|
2367
2403
|
reason: z.ZodEnum<{
|
|
2368
2404
|
empty: "empty";
|
|
2405
|
+
mandate: "mandate";
|
|
2369
2406
|
widens: "widens";
|
|
2370
2407
|
}>;
|
|
2371
2408
|
}, z.core.$strip>;
|
|
@@ -2407,11 +2444,133 @@ export declare const contract: {
|
|
|
2407
2444
|
data: z.ZodObject<{
|
|
2408
2445
|
reason: z.ZodEnum<{
|
|
2409
2446
|
empty: "empty";
|
|
2447
|
+
mandate: "mandate";
|
|
2410
2448
|
widens: "widens";
|
|
2411
2449
|
}>;
|
|
2412
2450
|
}, z.core.$strip>;
|
|
2413
2451
|
};
|
|
2414
2452
|
}>, Record<never, never>>;
|
|
2453
|
+
editProposedRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2454
|
+
proposalID: z.ZodString;
|
|
2455
|
+
actionHash: z.ZodString;
|
|
2456
|
+
rule: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2457
|
+
clientActionID: z.ZodUUID;
|
|
2458
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2459
|
+
proposalID: z.ZodString;
|
|
2460
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2461
|
+
UNAUTHORIZED: {
|
|
2462
|
+
message: string;
|
|
2463
|
+
status: number;
|
|
2464
|
+
};
|
|
2465
|
+
}>, {
|
|
2466
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2467
|
+
message: string;
|
|
2468
|
+
status: number;
|
|
2469
|
+
};
|
|
2470
|
+
}>, {
|
|
2471
|
+
INVALID: {
|
|
2472
|
+
message: string;
|
|
2473
|
+
status: number;
|
|
2474
|
+
data: z.ZodObject<{
|
|
2475
|
+
faults: z.ZodArray<z.ZodString>;
|
|
2476
|
+
}, z.core.$strip>;
|
|
2477
|
+
};
|
|
2478
|
+
NOT_FOUND: {
|
|
2479
|
+
message: string;
|
|
2480
|
+
status: number;
|
|
2481
|
+
};
|
|
2482
|
+
CONFLICT: {
|
|
2483
|
+
message: string;
|
|
2484
|
+
status: number;
|
|
2485
|
+
data: z.ZodObject<{
|
|
2486
|
+
current: z.ZodObject<{
|
|
2487
|
+
actionHash: z.ZodString;
|
|
2488
|
+
}, z.core.$strip>;
|
|
2489
|
+
}, z.core.$strip>;
|
|
2490
|
+
};
|
|
2491
|
+
CLOSED: {
|
|
2492
|
+
message: string;
|
|
2493
|
+
status: number;
|
|
2494
|
+
data: z.ZodObject<{
|
|
2495
|
+
state: z.ZodEnum<{
|
|
2496
|
+
approved: "approved";
|
|
2497
|
+
declined: "declined";
|
|
2498
|
+
lapsed: "lapsed";
|
|
2499
|
+
withdrawn: "withdrawn";
|
|
2500
|
+
}>;
|
|
2501
|
+
}, z.core.$strip>;
|
|
2502
|
+
};
|
|
2503
|
+
}>, Record<never, never>>;
|
|
2504
|
+
proposeMandate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2505
|
+
title: z.ZodString;
|
|
2506
|
+
rules: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2507
|
+
expires: z.ZodOptional<z.ZodString>;
|
|
2508
|
+
clientActionID: z.ZodUUID;
|
|
2509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2510
|
+
proposalID: z.ZodString;
|
|
2511
|
+
mandateID: z.ZodString;
|
|
2512
|
+
expires: z.ZodDate;
|
|
2513
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2514
|
+
UNAUTHORIZED: {
|
|
2515
|
+
message: string;
|
|
2516
|
+
status: number;
|
|
2517
|
+
};
|
|
2518
|
+
}>, {
|
|
2519
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2520
|
+
message: string;
|
|
2521
|
+
status: number;
|
|
2522
|
+
};
|
|
2523
|
+
}>, {
|
|
2524
|
+
INVALID: {
|
|
2525
|
+
message: string;
|
|
2526
|
+
status: number;
|
|
2527
|
+
data: z.ZodObject<{
|
|
2528
|
+
faults: z.ZodArray<z.ZodString>;
|
|
2529
|
+
}, z.core.$strip>;
|
|
2530
|
+
};
|
|
2531
|
+
}>, Record<never, never>>;
|
|
2532
|
+
listMandates: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
2533
|
+
mandates: z.ZodArray<z.ZodObject<{
|
|
2534
|
+
mandateID: z.ZodString;
|
|
2535
|
+
title: z.ZodNullable<z.ZodString>;
|
|
2536
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
2537
|
+
ruleID: z.ZodString;
|
|
2538
|
+
sentence: z.ZodString;
|
|
2539
|
+
}, z.core.$strip>>;
|
|
2540
|
+
startedAt: z.ZodDate;
|
|
2541
|
+
expires: z.ZodDate;
|
|
2542
|
+
}, z.core.$strip>>;
|
|
2543
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2544
|
+
UNAUTHORIZED: {
|
|
2545
|
+
message: string;
|
|
2546
|
+
status: number;
|
|
2547
|
+
};
|
|
2548
|
+
}>, Record<never, never>>;
|
|
2549
|
+
endMandate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2550
|
+
mandateID: z.ZodString;
|
|
2551
|
+
clientActionID: z.ZodUUID;
|
|
2552
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2553
|
+
mandateID: z.ZodString;
|
|
2554
|
+
state: z.ZodEnum<{
|
|
2555
|
+
ended: "ended";
|
|
2556
|
+
expired: "expired";
|
|
2557
|
+
}>;
|
|
2558
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2559
|
+
UNAUTHORIZED: {
|
|
2560
|
+
message: string;
|
|
2561
|
+
status: number;
|
|
2562
|
+
};
|
|
2563
|
+
}>, {
|
|
2564
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2565
|
+
message: string;
|
|
2566
|
+
status: number;
|
|
2567
|
+
};
|
|
2568
|
+
}>, {
|
|
2569
|
+
NOT_FOUND: {
|
|
2570
|
+
message: string;
|
|
2571
|
+
status: number;
|
|
2572
|
+
};
|
|
2573
|
+
}>, Record<never, never>>;
|
|
2415
2574
|
};
|
|
2416
2575
|
approvals: {
|
|
2417
2576
|
listItems: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
@@ -2466,6 +2625,7 @@ export declare const contract: {
|
|
|
2466
2625
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2467
2626
|
ruleSentence: z.ZodNullable<z.ZodString>;
|
|
2468
2627
|
approveLabel: z.ZodString;
|
|
2628
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2469
2629
|
memory: z.ZodOptional<z.ZodObject<{
|
|
2470
2630
|
actionHash: z.ZodString;
|
|
2471
2631
|
createdAt: z.ZodDate;
|
|
@@ -2495,6 +2655,12 @@ export declare const contract: {
|
|
|
2495
2655
|
fact: "fact";
|
|
2496
2656
|
self: "self";
|
|
2497
2657
|
}>;
|
|
2658
|
+
labels: z.ZodNullable<z.ZodObject<{
|
|
2659
|
+
gist: z.ZodString;
|
|
2660
|
+
isLabelOnly: z.ZodBoolean;
|
|
2661
|
+
topic: z.ZodString;
|
|
2662
|
+
triggers: z.ZodArray<z.ZodString>;
|
|
2663
|
+
}, z.core.$strip>>;
|
|
2498
2664
|
lapseAt: z.ZodDate;
|
|
2499
2665
|
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
2500
2666
|
owner: "owner";
|
|
@@ -2522,6 +2688,7 @@ export declare const contract: {
|
|
|
2522
2688
|
forgotten_evidence: "forgotten_evidence";
|
|
2523
2689
|
from_photo: "from_photo";
|
|
2524
2690
|
invisible_character: "invisible_character";
|
|
2691
|
+
labels: "labels";
|
|
2525
2692
|
no_quote: "no_quote";
|
|
2526
2693
|
other: "other";
|
|
2527
2694
|
pinned: "pinned";
|
|
@@ -2573,6 +2740,54 @@ export declare const contract: {
|
|
|
2573
2740
|
defer: "defer";
|
|
2574
2741
|
}>>;
|
|
2575
2742
|
}, z.core.$strip>>;
|
|
2743
|
+
unknownOutcomes: z.ZodArray<z.ZodObject<{
|
|
2744
|
+
group: z.ZodLiteral<"unknown_outcome">;
|
|
2745
|
+
action: z.ZodObject<{
|
|
2746
|
+
actionID: z.ZodString;
|
|
2747
|
+
tool: z.ZodString;
|
|
2748
|
+
sentence: z.ZodString;
|
|
2749
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2750
|
+
riskClass: z.ZodEnum<{
|
|
2751
|
+
always_ask: "always_ask";
|
|
2752
|
+
lifting: "lifting";
|
|
2753
|
+
routine: "routine";
|
|
2754
|
+
}>;
|
|
2755
|
+
reason: z.ZodEnum<{
|
|
2756
|
+
inconclusive: "inconclusive";
|
|
2757
|
+
key_expired: "key_expired";
|
|
2758
|
+
no_reconcile: "no_reconcile";
|
|
2759
|
+
not_found_ask: "not_found_ask";
|
|
2760
|
+
unknown_streak: "unknown_streak";
|
|
2761
|
+
}>;
|
|
2762
|
+
becameUnknownAt: z.ZodDate;
|
|
2763
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
2764
|
+
attempt: z.ZodInt;
|
|
2765
|
+
at: z.ZodDate;
|
|
2766
|
+
}, z.core.$strip>>;
|
|
2767
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
2768
|
+
answer: z.ZodEnum<{
|
|
2769
|
+
found: "found";
|
|
2770
|
+
inconclusive: "inconclusive";
|
|
2771
|
+
not_found: "not_found";
|
|
2772
|
+
}>;
|
|
2773
|
+
at: z.ZodDate;
|
|
2774
|
+
}, z.core.$strip>>;
|
|
2775
|
+
}, z.core.$strip>;
|
|
2776
|
+
task: z.ZodNullable<z.ZodObject<{
|
|
2777
|
+
id: z.ZodString;
|
|
2778
|
+
name: z.ZodString;
|
|
2779
|
+
}, z.core.$strip>>;
|
|
2780
|
+
choices: z.ZodArray<z.ZodEnum<{
|
|
2781
|
+
drop: "drop";
|
|
2782
|
+
happened: "happened";
|
|
2783
|
+
retry: "retry";
|
|
2784
|
+
}>>;
|
|
2785
|
+
passkeyChoices: z.ZodArray<z.ZodEnum<{
|
|
2786
|
+
drop: "drop";
|
|
2787
|
+
happened: "happened";
|
|
2788
|
+
retry: "retry";
|
|
2789
|
+
}>>;
|
|
2790
|
+
}, z.core.$strip>>;
|
|
2576
2791
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2577
2792
|
UNAUTHORIZED: {
|
|
2578
2793
|
message: string;
|
|
@@ -2621,6 +2836,7 @@ export declare const contract: {
|
|
|
2621
2836
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2622
2837
|
ruleSentence: z.ZodNullable<z.ZodString>;
|
|
2623
2838
|
approveLabel: z.ZodString;
|
|
2839
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2624
2840
|
memory: z.ZodOptional<z.ZodObject<{
|
|
2625
2841
|
actionHash: z.ZodString;
|
|
2626
2842
|
createdAt: z.ZodDate;
|
|
@@ -2650,6 +2866,12 @@ export declare const contract: {
|
|
|
2650
2866
|
fact: "fact";
|
|
2651
2867
|
self: "self";
|
|
2652
2868
|
}>;
|
|
2869
|
+
labels: z.ZodNullable<z.ZodObject<{
|
|
2870
|
+
gist: z.ZodString;
|
|
2871
|
+
isLabelOnly: z.ZodBoolean;
|
|
2872
|
+
topic: z.ZodString;
|
|
2873
|
+
triggers: z.ZodArray<z.ZodString>;
|
|
2874
|
+
}, z.core.$strip>>;
|
|
2653
2875
|
lapseAt: z.ZodDate;
|
|
2654
2876
|
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
2655
2877
|
owner: "owner";
|
|
@@ -2677,6 +2899,7 @@ export declare const contract: {
|
|
|
2677
2899
|
forgotten_evidence: "forgotten_evidence";
|
|
2678
2900
|
from_photo: "from_photo";
|
|
2679
2901
|
invisible_character: "invisible_character";
|
|
2902
|
+
labels: "labels";
|
|
2680
2903
|
no_quote: "no_quote";
|
|
2681
2904
|
other: "other";
|
|
2682
2905
|
pinned: "pinned";
|
|
@@ -2860,6 +3083,79 @@ export declare const contract: {
|
|
|
2860
3083
|
status: number;
|
|
2861
3084
|
};
|
|
2862
3085
|
}>, Record<never, never>>;
|
|
3086
|
+
answerUnknownOutcome: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3087
|
+
actionID: z.ZodString;
|
|
3088
|
+
choice: z.ZodEnum<{
|
|
3089
|
+
drop: "drop";
|
|
3090
|
+
happened: "happened";
|
|
3091
|
+
retry: "retry";
|
|
3092
|
+
}>;
|
|
3093
|
+
clientActionID: z.ZodUUID;
|
|
3094
|
+
passkey: z.ZodOptional<z.ZodObject<{
|
|
3095
|
+
id: z.ZodString;
|
|
3096
|
+
rawId: z.ZodString;
|
|
3097
|
+
response: z.ZodObject<{
|
|
3098
|
+
clientDataJSON: z.ZodString;
|
|
3099
|
+
authenticatorData: z.ZodString;
|
|
3100
|
+
signature: z.ZodString;
|
|
3101
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
3102
|
+
}, z.core.$strip>;
|
|
3103
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
3104
|
+
"cross-platform": "cross-platform";
|
|
3105
|
+
platform: "platform";
|
|
3106
|
+
}>>;
|
|
3107
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
3108
|
+
type: z.ZodLiteral<"public-key">;
|
|
3109
|
+
}, z.core.$strip>>;
|
|
3110
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3111
|
+
actionID: z.ZodString;
|
|
3112
|
+
choice: z.ZodEnum<{
|
|
3113
|
+
drop: "drop";
|
|
3114
|
+
happened: "happened";
|
|
3115
|
+
retry: "retry";
|
|
3116
|
+
}>;
|
|
3117
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3118
|
+
UNAUTHORIZED: {
|
|
3119
|
+
message: string;
|
|
3120
|
+
status: number;
|
|
3121
|
+
};
|
|
3122
|
+
}>, {
|
|
3123
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
3124
|
+
message: string;
|
|
3125
|
+
status: number;
|
|
3126
|
+
};
|
|
3127
|
+
}>, {
|
|
3128
|
+
NO_PASSKEY: {
|
|
3129
|
+
message: string;
|
|
3130
|
+
status: number;
|
|
3131
|
+
};
|
|
3132
|
+
PASSKEY_FAILED: {
|
|
3133
|
+
message: string;
|
|
3134
|
+
status: number;
|
|
3135
|
+
data: z.ZodObject<{
|
|
3136
|
+
reason: z.ZodEnum<{
|
|
3137
|
+
binding: "binding";
|
|
3138
|
+
counter: "counter";
|
|
3139
|
+
no_user_verification: "no_user_verification";
|
|
3140
|
+
origin: "origin";
|
|
3141
|
+
signature: "signature";
|
|
3142
|
+
unknown_challenge: "unknown_challenge";
|
|
3143
|
+
unknown_passkey: "unknown_passkey";
|
|
3144
|
+
}>;
|
|
3145
|
+
}, z.core.$strip>;
|
|
3146
|
+
};
|
|
3147
|
+
NOT_ALLOWED: {
|
|
3148
|
+
message: string;
|
|
3149
|
+
status: number;
|
|
3150
|
+
data: z.ZodObject<{
|
|
3151
|
+
reason: z.ZodString;
|
|
3152
|
+
}, z.core.$strip>;
|
|
3153
|
+
};
|
|
3154
|
+
PASSKEY_REQUIRED: {
|
|
3155
|
+
message: string;
|
|
3156
|
+
status: number;
|
|
3157
|
+
};
|
|
3158
|
+
}>, Record<never, never>>;
|
|
2863
3159
|
answerProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2864
3160
|
answers: z.ZodArray<z.ZodObject<{
|
|
2865
3161
|
proposalID: z.ZodString;
|
|
@@ -2952,6 +3248,10 @@ export declare const contract: {
|
|
|
2952
3248
|
defer: "defer";
|
|
2953
3249
|
}>;
|
|
2954
3250
|
ruleHash: z.ZodOptional<z.ZodString>;
|
|
3251
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3252
|
+
kind: z.ZodLiteral<"unknown_outcome">;
|
|
3253
|
+
actionID: z.ZodString;
|
|
3254
|
+
choice: z.ZodLiteral<"retry">;
|
|
2955
3255
|
}, z.core.$strip>, z.ZodObject<{
|
|
2956
3256
|
kind: z.ZodLiteral<"register">;
|
|
2957
3257
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3279,6 +3579,11 @@ export declare const contract: {
|
|
|
3279
3579
|
}[];
|
|
3280
3580
|
} | undefined;
|
|
3281
3581
|
recordedAt: Date;
|
|
3582
|
+
removal?: {
|
|
3583
|
+
kind: string;
|
|
3584
|
+
sequence: number;
|
|
3585
|
+
callSequence?: number | undefined;
|
|
3586
|
+
} | undefined;
|
|
3282
3587
|
sequence: number;
|
|
3283
3588
|
stop?: {
|
|
3284
3589
|
cancelledActions: {
|
|
@@ -3390,6 +3695,11 @@ export declare const contract: {
|
|
|
3390
3695
|
}[];
|
|
3391
3696
|
} | undefined;
|
|
3392
3697
|
recordedAt: Date;
|
|
3698
|
+
removal?: {
|
|
3699
|
+
kind: string;
|
|
3700
|
+
sequence: number;
|
|
3701
|
+
callSequence?: number | undefined;
|
|
3702
|
+
} | undefined;
|
|
3393
3703
|
sequence: number;
|
|
3394
3704
|
stop?: {
|
|
3395
3705
|
cancelledActions: {
|
|
@@ -3512,6 +3822,11 @@ export declare const contract: {
|
|
|
3512
3822
|
}[];
|
|
3513
3823
|
} | undefined;
|
|
3514
3824
|
recordedAt: Date;
|
|
3825
|
+
removal?: {
|
|
3826
|
+
kind: string;
|
|
3827
|
+
sequence: number;
|
|
3828
|
+
callSequence?: number | undefined;
|
|
3829
|
+
} | undefined;
|
|
3515
3830
|
sequence: number;
|
|
3516
3831
|
stop?: {
|
|
3517
3832
|
cancelledActions: {
|
|
@@ -3623,6 +3938,11 @@ export declare const contract: {
|
|
|
3623
3938
|
}[];
|
|
3624
3939
|
} | undefined;
|
|
3625
3940
|
recordedAt: Date;
|
|
3941
|
+
removal?: {
|
|
3942
|
+
kind: string;
|
|
3943
|
+
sequence: number;
|
|
3944
|
+
callSequence?: number | undefined;
|
|
3945
|
+
} | undefined;
|
|
3626
3946
|
sequence: number;
|
|
3627
3947
|
stop?: {
|
|
3628
3948
|
cancelledActions: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const forgettableKinds: readonly ['action.outcome', 'action.queued', 'action.retry_scheduled', 'model.compaction_failed', 'model.reply', 'model.session_summarized', 'owner_message', 'passkey.registered', 'policy.action_answered', 'policy.action_proposed', 'policy.contact_marked_known', 'prompts.override_rejected', 'proposals.deferred', 'session.enrolled', 'session.labelled', 'session_kept', 'skills.write_rejected', 'task.created', 'task.run_ended', 'task.run_report_requested', 'task.step_errored', 'task_message', 'tool_called', 'tool_result'];
|
|
1
|
+
export declare const forgettableKinds: readonly ['action.outcome', 'action.queued', 'action.reconcile_checked', 'action.retry_scheduled', 'model.compaction_failed', 'model.reply', 'model.session_summarized', 'owner_message', 'passkey.registered', 'policy.action_answered', 'policy.action_proposed', 'policy.contact_marked_known', 'prompts.override_rejected', 'proposals.deferred', 'session.enrolled', 'session.labelled', 'rules.mandate_proposed', 'rules.rule_proposed', 'session_kept', 'skills.write_rejected', 'task.created', 'task.run_ended', 'task.run_report_requested', 'task.step_errored', 'task_message', 'tool_called', 'tool_result'];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const forgottenItemsSchema: z.ZodObject<{
|
|
3
|
+
itemIDs: z.ZodArray<z.ZodString>;
|
|
4
|
+
backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
+
state: z.ZodLiteral<"off">;
|
|
6
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7
|
+
state: z.ZodLiteral<"pending">;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
state: z.ZodLiteral<"failed">;
|
|
10
|
+
failure: z.ZodString;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
state: z.ZodLiteral<"complete">;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
state: z.ZodLiteral<"unknown">;
|
|
15
|
+
}, z.core.$strip>], "state">;
|
|
16
|
+
}, z.core.$strip>;
|
|
@@ -93,6 +93,10 @@ export declare const hostContract: {
|
|
|
93
93
|
message: string;
|
|
94
94
|
status: number;
|
|
95
95
|
};
|
|
96
|
+
RUNNER_LACKS_CONTROL: {
|
|
97
|
+
message: string;
|
|
98
|
+
status: number;
|
|
99
|
+
};
|
|
96
100
|
}>, Record<never, never>>;
|
|
97
101
|
resume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
98
102
|
taskID: z.ZodString;
|
|
@@ -118,6 +122,10 @@ export declare const hostContract: {
|
|
|
118
122
|
message: string;
|
|
119
123
|
status: number;
|
|
120
124
|
};
|
|
125
|
+
RUNNER_LACKS_CONTROL: {
|
|
126
|
+
message: string;
|
|
127
|
+
status: number;
|
|
128
|
+
};
|
|
121
129
|
}>, Record<never, never>>;
|
|
122
130
|
stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
123
131
|
taskID: z.ZodString;
|
|
@@ -143,6 +151,10 @@ export declare const hostContract: {
|
|
|
143
151
|
message: string;
|
|
144
152
|
status: number;
|
|
145
153
|
};
|
|
154
|
+
RUNNER_LACKS_CONTROL: {
|
|
155
|
+
message: string;
|
|
156
|
+
status: number;
|
|
157
|
+
};
|
|
146
158
|
}>, Record<never, never>>;
|
|
147
159
|
restart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
148
160
|
taskID: z.ZodString;
|
|
@@ -168,6 +180,10 @@ export declare const hostContract: {
|
|
|
168
180
|
message: string;
|
|
169
181
|
status: number;
|
|
170
182
|
};
|
|
183
|
+
RUNNER_LACKS_CONTROL: {
|
|
184
|
+
message: string;
|
|
185
|
+
status: number;
|
|
186
|
+
};
|
|
171
187
|
}>, Record<never, never>>;
|
|
172
188
|
close: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
173
189
|
taskID: z.ZodString;
|
|
@@ -193,6 +209,10 @@ export declare const hostContract: {
|
|
|
193
209
|
message: string;
|
|
194
210
|
status: number;
|
|
195
211
|
};
|
|
212
|
+
RUNNER_LACKS_CONTROL: {
|
|
213
|
+
message: string;
|
|
214
|
+
status: number;
|
|
215
|
+
};
|
|
196
216
|
}>, {
|
|
197
217
|
CONVERSATION_NEVER_CLOSES: {
|
|
198
218
|
message: string;
|
|
@@ -223,6 +243,10 @@ export declare const hostContract: {
|
|
|
223
243
|
message: string;
|
|
224
244
|
status: number;
|
|
225
245
|
};
|
|
246
|
+
RUNNER_LACKS_CONTROL: {
|
|
247
|
+
message: string;
|
|
248
|
+
status: number;
|
|
249
|
+
};
|
|
226
250
|
}>, Record<never, never>>;
|
|
227
251
|
raise: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
228
252
|
taskID: z.ZodString;
|
|
@@ -350,6 +374,7 @@ export declare const hostContract: {
|
|
|
350
374
|
forgotten_evidence: "forgotten_evidence";
|
|
351
375
|
from_photo: "from_photo";
|
|
352
376
|
invisible_character: "invisible_character";
|
|
377
|
+
labels: "labels";
|
|
353
378
|
no_quote: "no_quote";
|
|
354
379
|
other: "other";
|
|
355
380
|
pinned: "pinned";
|
|
@@ -1456,6 +1481,37 @@ export declare const hostContract: {
|
|
|
1456
1481
|
}>, Record<never, never>>;
|
|
1457
1482
|
};
|
|
1458
1483
|
};
|
|
1484
|
+
mandates: {
|
|
1485
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
1486
|
+
mandateID: z.ZodString;
|
|
1487
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1488
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
1489
|
+
ruleID: z.ZodString;
|
|
1490
|
+
sentence: z.ZodString;
|
|
1491
|
+
}, z.core.$strip>>;
|
|
1492
|
+
startedAt: z.ZodDate;
|
|
1493
|
+
expires: z.ZodDate;
|
|
1494
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1495
|
+
NOT_FOUND: {
|
|
1496
|
+
message: string;
|
|
1497
|
+
status: number;
|
|
1498
|
+
};
|
|
1499
|
+
}>, Record<never, never>>;
|
|
1500
|
+
end: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1501
|
+
mandateID: z.ZodString;
|
|
1502
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1503
|
+
mandateID: z.ZodString;
|
|
1504
|
+
state: z.ZodEnum<{
|
|
1505
|
+
ended: "ended";
|
|
1506
|
+
expired: "expired";
|
|
1507
|
+
}>;
|
|
1508
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1509
|
+
NOT_FOUND: {
|
|
1510
|
+
message: string;
|
|
1511
|
+
status: number;
|
|
1512
|
+
};
|
|
1513
|
+
}>, Record<never, never>>;
|
|
1514
|
+
};
|
|
1459
1515
|
contacts: {
|
|
1460
1516
|
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
1461
1517
|
contactID: z.ZodString;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const hostMandatesContract: {
|
|
3
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
4
|
+
mandateID: z.ZodString;
|
|
5
|
+
title: z.ZodNullable<z.ZodString>;
|
|
6
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
7
|
+
ruleID: z.ZodString;
|
|
8
|
+
sentence: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
startedAt: z.ZodDate;
|
|
11
|
+
expires: z.ZodDate;
|
|
12
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
13
|
+
NOT_FOUND: {
|
|
14
|
+
message: string;
|
|
15
|
+
status: number;
|
|
16
|
+
};
|
|
17
|
+
}>, Record<never, never>>;
|
|
18
|
+
end: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
19
|
+
mandateID: z.ZodString;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
mandateID: z.ZodString;
|
|
22
|
+
state: z.ZodEnum<{
|
|
23
|
+
ended: "ended";
|
|
24
|
+
expired: "expired";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
27
|
+
NOT_FOUND: {
|
|
28
|
+
message: string;
|
|
29
|
+
status: number;
|
|
30
|
+
};
|
|
31
|
+
}>, Record<never, never>>;
|
|
32
|
+
};
|
|
@@ -28,6 +28,12 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
28
28
|
fact: "fact";
|
|
29
29
|
self: "self";
|
|
30
30
|
}>;
|
|
31
|
+
labels: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
gist: z.ZodString;
|
|
33
|
+
isLabelOnly: z.ZodBoolean;
|
|
34
|
+
topic: z.ZodString;
|
|
35
|
+
triggers: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
31
37
|
lapseAt: z.ZodDate;
|
|
32
38
|
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
33
39
|
owner: "owner";
|
|
@@ -55,6 +61,7 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
55
61
|
forgotten_evidence: "forgotten_evidence";
|
|
56
62
|
from_photo: "from_photo";
|
|
57
63
|
invisible_character: "invisible_character";
|
|
64
|
+
labels: "labels";
|
|
58
65
|
no_quote: "no_quote";
|
|
59
66
|
other: "other";
|
|
60
67
|
pinned: "pinned";
|