@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
|
@@ -52,6 +52,7 @@ export declare const approvalContract: {
|
|
|
52
52
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
53
53
|
ruleSentence: z.ZodNullable<z.ZodString>;
|
|
54
54
|
approveLabel: z.ZodString;
|
|
55
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
55
56
|
memory: z.ZodOptional<z.ZodObject<{
|
|
56
57
|
actionHash: z.ZodString;
|
|
57
58
|
createdAt: z.ZodDate;
|
|
@@ -81,6 +82,12 @@ export declare const approvalContract: {
|
|
|
81
82
|
fact: "fact";
|
|
82
83
|
self: "self";
|
|
83
84
|
}>;
|
|
85
|
+
labels: z.ZodNullable<z.ZodObject<{
|
|
86
|
+
gist: z.ZodString;
|
|
87
|
+
isLabelOnly: z.ZodBoolean;
|
|
88
|
+
topic: z.ZodString;
|
|
89
|
+
triggers: z.ZodArray<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
84
91
|
lapseAt: z.ZodDate;
|
|
85
92
|
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
86
93
|
owner: "owner";
|
|
@@ -108,6 +115,7 @@ export declare const approvalContract: {
|
|
|
108
115
|
forgotten_evidence: "forgotten_evidence";
|
|
109
116
|
from_photo: "from_photo";
|
|
110
117
|
invisible_character: "invisible_character";
|
|
118
|
+
labels: "labels";
|
|
111
119
|
no_quote: "no_quote";
|
|
112
120
|
other: "other";
|
|
113
121
|
pinned: "pinned";
|
|
@@ -159,6 +167,54 @@ export declare const approvalContract: {
|
|
|
159
167
|
defer: "defer";
|
|
160
168
|
}>>;
|
|
161
169
|
}, z.core.$strip>>;
|
|
170
|
+
unknownOutcomes: z.ZodArray<z.ZodObject<{
|
|
171
|
+
group: z.ZodLiteral<"unknown_outcome">;
|
|
172
|
+
action: z.ZodObject<{
|
|
173
|
+
actionID: z.ZodString;
|
|
174
|
+
tool: z.ZodString;
|
|
175
|
+
sentence: z.ZodString;
|
|
176
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
177
|
+
riskClass: z.ZodEnum<{
|
|
178
|
+
always_ask: "always_ask";
|
|
179
|
+
lifting: "lifting";
|
|
180
|
+
routine: "routine";
|
|
181
|
+
}>;
|
|
182
|
+
reason: z.ZodEnum<{
|
|
183
|
+
inconclusive: "inconclusive";
|
|
184
|
+
key_expired: "key_expired";
|
|
185
|
+
no_reconcile: "no_reconcile";
|
|
186
|
+
not_found_ask: "not_found_ask";
|
|
187
|
+
unknown_streak: "unknown_streak";
|
|
188
|
+
}>;
|
|
189
|
+
becameUnknownAt: z.ZodDate;
|
|
190
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
191
|
+
attempt: z.ZodInt;
|
|
192
|
+
at: z.ZodDate;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
195
|
+
answer: z.ZodEnum<{
|
|
196
|
+
found: "found";
|
|
197
|
+
inconclusive: "inconclusive";
|
|
198
|
+
not_found: "not_found";
|
|
199
|
+
}>;
|
|
200
|
+
at: z.ZodDate;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
task: z.ZodNullable<z.ZodObject<{
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
name: z.ZodString;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
choices: z.ZodArray<z.ZodEnum<{
|
|
208
|
+
drop: "drop";
|
|
209
|
+
happened: "happened";
|
|
210
|
+
retry: "retry";
|
|
211
|
+
}>>;
|
|
212
|
+
passkeyChoices: z.ZodArray<z.ZodEnum<{
|
|
213
|
+
drop: "drop";
|
|
214
|
+
happened: "happened";
|
|
215
|
+
retry: "retry";
|
|
216
|
+
}>>;
|
|
217
|
+
}, z.core.$strip>>;
|
|
162
218
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
163
219
|
UNAUTHORIZED: {
|
|
164
220
|
message: string;
|
|
@@ -207,6 +263,7 @@ export declare const approvalContract: {
|
|
|
207
263
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
208
264
|
ruleSentence: z.ZodNullable<z.ZodString>;
|
|
209
265
|
approveLabel: z.ZodString;
|
|
266
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
210
267
|
memory: z.ZodOptional<z.ZodObject<{
|
|
211
268
|
actionHash: z.ZodString;
|
|
212
269
|
createdAt: z.ZodDate;
|
|
@@ -236,6 +293,12 @@ export declare const approvalContract: {
|
|
|
236
293
|
fact: "fact";
|
|
237
294
|
self: "self";
|
|
238
295
|
}>;
|
|
296
|
+
labels: z.ZodNullable<z.ZodObject<{
|
|
297
|
+
gist: z.ZodString;
|
|
298
|
+
isLabelOnly: z.ZodBoolean;
|
|
299
|
+
topic: z.ZodString;
|
|
300
|
+
triggers: z.ZodArray<z.ZodString>;
|
|
301
|
+
}, z.core.$strip>>;
|
|
239
302
|
lapseAt: z.ZodDate;
|
|
240
303
|
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
241
304
|
owner: "owner";
|
|
@@ -263,6 +326,7 @@ export declare const approvalContract: {
|
|
|
263
326
|
forgotten_evidence: "forgotten_evidence";
|
|
264
327
|
from_photo: "from_photo";
|
|
265
328
|
invisible_character: "invisible_character";
|
|
329
|
+
labels: "labels";
|
|
266
330
|
no_quote: "no_quote";
|
|
267
331
|
other: "other";
|
|
268
332
|
pinned: "pinned";
|
|
@@ -446,6 +510,79 @@ export declare const approvalContract: {
|
|
|
446
510
|
status: number;
|
|
447
511
|
};
|
|
448
512
|
}>, Record<never, never>>;
|
|
513
|
+
answerUnknownOutcome: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
514
|
+
actionID: z.ZodString;
|
|
515
|
+
choice: z.ZodEnum<{
|
|
516
|
+
drop: "drop";
|
|
517
|
+
happened: "happened";
|
|
518
|
+
retry: "retry";
|
|
519
|
+
}>;
|
|
520
|
+
clientActionID: z.ZodUUID;
|
|
521
|
+
passkey: z.ZodOptional<z.ZodObject<{
|
|
522
|
+
id: z.ZodString;
|
|
523
|
+
rawId: z.ZodString;
|
|
524
|
+
response: z.ZodObject<{
|
|
525
|
+
clientDataJSON: z.ZodString;
|
|
526
|
+
authenticatorData: z.ZodString;
|
|
527
|
+
signature: z.ZodString;
|
|
528
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
529
|
+
}, z.core.$strip>;
|
|
530
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
531
|
+
"cross-platform": "cross-platform";
|
|
532
|
+
platform: "platform";
|
|
533
|
+
}>>;
|
|
534
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
535
|
+
type: z.ZodLiteral<"public-key">;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
538
|
+
actionID: z.ZodString;
|
|
539
|
+
choice: z.ZodEnum<{
|
|
540
|
+
drop: "drop";
|
|
541
|
+
happened: "happened";
|
|
542
|
+
retry: "retry";
|
|
543
|
+
}>;
|
|
544
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
545
|
+
UNAUTHORIZED: {
|
|
546
|
+
message: string;
|
|
547
|
+
status: number;
|
|
548
|
+
};
|
|
549
|
+
}>, {
|
|
550
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
551
|
+
message: string;
|
|
552
|
+
status: number;
|
|
553
|
+
};
|
|
554
|
+
}>, {
|
|
555
|
+
NO_PASSKEY: {
|
|
556
|
+
message: string;
|
|
557
|
+
status: number;
|
|
558
|
+
};
|
|
559
|
+
PASSKEY_FAILED: {
|
|
560
|
+
message: string;
|
|
561
|
+
status: number;
|
|
562
|
+
data: z.ZodObject<{
|
|
563
|
+
reason: z.ZodEnum<{
|
|
564
|
+
binding: "binding";
|
|
565
|
+
counter: "counter";
|
|
566
|
+
no_user_verification: "no_user_verification";
|
|
567
|
+
origin: "origin";
|
|
568
|
+
signature: "signature";
|
|
569
|
+
unknown_challenge: "unknown_challenge";
|
|
570
|
+
unknown_passkey: "unknown_passkey";
|
|
571
|
+
}>;
|
|
572
|
+
}, z.core.$strip>;
|
|
573
|
+
};
|
|
574
|
+
NOT_ALLOWED: {
|
|
575
|
+
message: string;
|
|
576
|
+
status: number;
|
|
577
|
+
data: z.ZodObject<{
|
|
578
|
+
reason: z.ZodString;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
};
|
|
581
|
+
PASSKEY_REQUIRED: {
|
|
582
|
+
message: string;
|
|
583
|
+
status: number;
|
|
584
|
+
};
|
|
585
|
+
}>, Record<never, never>>;
|
|
449
586
|
answerProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
450
587
|
answers: z.ZodArray<z.ZodObject<{
|
|
451
588
|
proposalID: z.ZodString;
|
|
@@ -74,6 +74,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
74
74
|
}[];
|
|
75
75
|
} | undefined;
|
|
76
76
|
recordedAt: Date;
|
|
77
|
+
removal?: {
|
|
78
|
+
kind: string;
|
|
79
|
+
sequence: number;
|
|
80
|
+
callSequence?: number | undefined;
|
|
81
|
+
} | undefined;
|
|
77
82
|
sequence: number;
|
|
78
83
|
stop?: {
|
|
79
84
|
cancelledActions: {
|
|
@@ -184,6 +189,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
184
189
|
}[];
|
|
185
190
|
} | undefined;
|
|
186
191
|
recordedAt: Date;
|
|
192
|
+
removal?: {
|
|
193
|
+
kind: string;
|
|
194
|
+
sequence: number;
|
|
195
|
+
callSequence?: number | undefined;
|
|
196
|
+
} | undefined;
|
|
187
197
|
sequence: number;
|
|
188
198
|
stop?: {
|
|
189
199
|
cancelledActions: {
|
|
@@ -421,6 +431,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
421
431
|
isTakingMessages: boolean;
|
|
422
432
|
lastActivityAt: Date;
|
|
423
433
|
name: string;
|
|
434
|
+
runner: string;
|
|
424
435
|
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
425
436
|
taskID: string;
|
|
426
437
|
waitingOn?: string | undefined;
|
|
@@ -446,6 +457,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
446
457
|
isTakingMessages: boolean;
|
|
447
458
|
lastActivityAt: Date;
|
|
448
459
|
name: string;
|
|
460
|
+
runner: string;
|
|
449
461
|
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
450
462
|
taskID: string;
|
|
451
463
|
waitingOn?: string | undefined;
|
|
@@ -526,6 +538,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
526
538
|
}>;
|
|
527
539
|
}, import("zod/v4/core").$strip>;
|
|
528
540
|
};
|
|
541
|
+
RUNNER_LACKS_CONTROL: {
|
|
542
|
+
message: string;
|
|
543
|
+
status: number;
|
|
544
|
+
};
|
|
529
545
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
530
546
|
clientActionID: string;
|
|
531
547
|
taskID: string;
|
|
@@ -570,6 +586,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
570
586
|
}>;
|
|
571
587
|
}, import("zod/v4/core").$strip>;
|
|
572
588
|
};
|
|
589
|
+
RUNNER_LACKS_CONTROL: {
|
|
590
|
+
message: string;
|
|
591
|
+
status: number;
|
|
592
|
+
};
|
|
573
593
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
574
594
|
clientActionID: string;
|
|
575
595
|
taskID: string;
|
|
@@ -614,6 +634,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
614
634
|
}>;
|
|
615
635
|
}, import("zod/v4/core").$strip>;
|
|
616
636
|
};
|
|
637
|
+
RUNNER_LACKS_CONTROL: {
|
|
638
|
+
message: string;
|
|
639
|
+
status: number;
|
|
640
|
+
};
|
|
617
641
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
618
642
|
clientActionID: string;
|
|
619
643
|
taskID: string;
|
|
@@ -658,6 +682,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
658
682
|
}>;
|
|
659
683
|
}, import("zod/v4/core").$strip>;
|
|
660
684
|
};
|
|
685
|
+
RUNNER_LACKS_CONTROL: {
|
|
686
|
+
message: string;
|
|
687
|
+
status: number;
|
|
688
|
+
};
|
|
661
689
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
662
690
|
clientActionID: string;
|
|
663
691
|
taskID: string;
|
|
@@ -702,6 +730,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
702
730
|
}>;
|
|
703
731
|
}, import("zod/v4/core").$strip>;
|
|
704
732
|
};
|
|
733
|
+
RUNNER_LACKS_CONTROL: {
|
|
734
|
+
message: string;
|
|
735
|
+
status: number;
|
|
736
|
+
};
|
|
705
737
|
}>, {
|
|
706
738
|
CONVERSATION_NEVER_CLOSES: {
|
|
707
739
|
message: string;
|
|
@@ -751,6 +783,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
751
783
|
}>;
|
|
752
784
|
}, import("zod/v4/core").$strip>;
|
|
753
785
|
};
|
|
786
|
+
RUNNER_LACKS_CONTROL: {
|
|
787
|
+
message: string;
|
|
788
|
+
status: number;
|
|
789
|
+
};
|
|
754
790
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
755
791
|
clientActionID: string;
|
|
756
792
|
taskID: string;
|
|
@@ -2082,6 +2118,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2082
2118
|
data: import("zod").ZodObject<{
|
|
2083
2119
|
reason: import("zod").ZodEnum<{
|
|
2084
2120
|
empty: "empty";
|
|
2121
|
+
mandate: "mandate";
|
|
2085
2122
|
widens: "widens";
|
|
2086
2123
|
}>;
|
|
2087
2124
|
}, import("zod/v4/core").$strip>;
|
|
@@ -2127,6 +2164,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2127
2164
|
data: import("zod").ZodObject<{
|
|
2128
2165
|
reason: import("zod").ZodEnum<{
|
|
2129
2166
|
empty: "empty";
|
|
2167
|
+
mandate: "mandate";
|
|
2130
2168
|
widens: "widens";
|
|
2131
2169
|
}>;
|
|
2132
2170
|
}, import("zod/v4/core").$strip>;
|
|
@@ -2137,6 +2175,137 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2137
2175
|
destinations: string[];
|
|
2138
2176
|
clientActionID: string;
|
|
2139
2177
|
}>;
|
|
2178
|
+
editProposedRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2179
|
+
proposalID: string;
|
|
2180
|
+
actionHash: string;
|
|
2181
|
+
rule: Record<string, unknown>;
|
|
2182
|
+
clientActionID: string;
|
|
2183
|
+
}, {
|
|
2184
|
+
proposalID: string;
|
|
2185
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2186
|
+
UNAUTHORIZED: {
|
|
2187
|
+
message: string;
|
|
2188
|
+
status: number;
|
|
2189
|
+
};
|
|
2190
|
+
}>, {
|
|
2191
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2192
|
+
message: string;
|
|
2193
|
+
status: number;
|
|
2194
|
+
};
|
|
2195
|
+
}>, {
|
|
2196
|
+
INVALID: {
|
|
2197
|
+
message: string;
|
|
2198
|
+
status: number;
|
|
2199
|
+
data: import("zod").ZodObject<{
|
|
2200
|
+
faults: import("zod").ZodArray<import("zod").ZodString>;
|
|
2201
|
+
}, import("zod/v4/core").$strip>;
|
|
2202
|
+
};
|
|
2203
|
+
NOT_FOUND: {
|
|
2204
|
+
message: string;
|
|
2205
|
+
status: number;
|
|
2206
|
+
};
|
|
2207
|
+
CONFLICT: {
|
|
2208
|
+
message: string;
|
|
2209
|
+
status: number;
|
|
2210
|
+
data: import("zod").ZodObject<{
|
|
2211
|
+
current: import("zod").ZodObject<{
|
|
2212
|
+
actionHash: import("zod").ZodString;
|
|
2213
|
+
}, import("zod/v4/core").$strip>;
|
|
2214
|
+
}, import("zod/v4/core").$strip>;
|
|
2215
|
+
};
|
|
2216
|
+
CLOSED: {
|
|
2217
|
+
message: string;
|
|
2218
|
+
status: number;
|
|
2219
|
+
data: import("zod").ZodObject<{
|
|
2220
|
+
state: import("zod").ZodEnum<{
|
|
2221
|
+
approved: "approved";
|
|
2222
|
+
declined: "declined";
|
|
2223
|
+
lapsed: "lapsed";
|
|
2224
|
+
withdrawn: "withdrawn";
|
|
2225
|
+
}>;
|
|
2226
|
+
}, import("zod/v4/core").$strip>;
|
|
2227
|
+
};
|
|
2228
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2229
|
+
proposalID: string;
|
|
2230
|
+
actionHash: string;
|
|
2231
|
+
rule: Record<string, unknown>;
|
|
2232
|
+
clientActionID: string;
|
|
2233
|
+
}>;
|
|
2234
|
+
proposeMandate: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2235
|
+
title: string;
|
|
2236
|
+
rules: Record<string, unknown>[];
|
|
2237
|
+
expires?: string | undefined;
|
|
2238
|
+
clientActionID: string;
|
|
2239
|
+
}, {
|
|
2240
|
+
proposalID: string;
|
|
2241
|
+
mandateID: string;
|
|
2242
|
+
expires: Date;
|
|
2243
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2244
|
+
UNAUTHORIZED: {
|
|
2245
|
+
message: string;
|
|
2246
|
+
status: number;
|
|
2247
|
+
};
|
|
2248
|
+
}>, {
|
|
2249
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2250
|
+
message: string;
|
|
2251
|
+
status: number;
|
|
2252
|
+
};
|
|
2253
|
+
}>, {
|
|
2254
|
+
INVALID: {
|
|
2255
|
+
message: string;
|
|
2256
|
+
status: number;
|
|
2257
|
+
data: import("zod").ZodObject<{
|
|
2258
|
+
faults: import("zod").ZodArray<import("zod").ZodString>;
|
|
2259
|
+
}, import("zod/v4/core").$strip>;
|
|
2260
|
+
};
|
|
2261
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2262
|
+
title: string;
|
|
2263
|
+
rules: Record<string, unknown>[];
|
|
2264
|
+
expires?: string | undefined;
|
|
2265
|
+
clientActionID: string;
|
|
2266
|
+
}>;
|
|
2267
|
+
listMandates: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2268
|
+
mandates: {
|
|
2269
|
+
mandateID: string;
|
|
2270
|
+
title: string | null;
|
|
2271
|
+
rules: {
|
|
2272
|
+
ruleID: string;
|
|
2273
|
+
sentence: string;
|
|
2274
|
+
}[];
|
|
2275
|
+
startedAt: Date;
|
|
2276
|
+
expires: Date;
|
|
2277
|
+
}[];
|
|
2278
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2279
|
+
UNAUTHORIZED: {
|
|
2280
|
+
message: string;
|
|
2281
|
+
status: number;
|
|
2282
|
+
};
|
|
2283
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2284
|
+
endMandate: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2285
|
+
mandateID: string;
|
|
2286
|
+
clientActionID: string;
|
|
2287
|
+
}, {
|
|
2288
|
+
mandateID: string;
|
|
2289
|
+
state: "ended" | "expired";
|
|
2290
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2291
|
+
UNAUTHORIZED: {
|
|
2292
|
+
message: string;
|
|
2293
|
+
status: number;
|
|
2294
|
+
};
|
|
2295
|
+
}>, {
|
|
2296
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2297
|
+
message: string;
|
|
2298
|
+
status: number;
|
|
2299
|
+
};
|
|
2300
|
+
}>, {
|
|
2301
|
+
NOT_FOUND: {
|
|
2302
|
+
message: string;
|
|
2303
|
+
status: number;
|
|
2304
|
+
};
|
|
2305
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2306
|
+
mandateID: string;
|
|
2307
|
+
clientActionID: string;
|
|
2308
|
+
}>;
|
|
2140
2309
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2141
2310
|
approvals: {
|
|
2142
2311
|
listItems: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
@@ -2171,6 +2340,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2171
2340
|
fields: Record<string, string>;
|
|
2172
2341
|
ruleSentence: string | null;
|
|
2173
2342
|
approveLabel: string;
|
|
2343
|
+
rule?: Record<string, unknown> | undefined;
|
|
2174
2344
|
memory?: {
|
|
2175
2345
|
actionHash: string;
|
|
2176
2346
|
createdAt: Date;
|
|
@@ -2192,13 +2362,19 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2192
2362
|
isSensitive: boolean;
|
|
2193
2363
|
itemID: string;
|
|
2194
2364
|
kind: "fact" | "self";
|
|
2365
|
+
labels: {
|
|
2366
|
+
gist: string;
|
|
2367
|
+
isLabelOnly: boolean;
|
|
2368
|
+
topic: string;
|
|
2369
|
+
triggers: string[];
|
|
2370
|
+
} | null;
|
|
2195
2371
|
lapseAt: Date;
|
|
2196
2372
|
newSubject: "owner" | "self" | "shared" | null;
|
|
2197
2373
|
operation: "pin" | "remember" | "retire";
|
|
2198
2374
|
origin: "conversation" | "owner" | "task";
|
|
2199
2375
|
proposalID: string;
|
|
2200
2376
|
quote: string | null;
|
|
2201
|
-
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "sensitive" | "subject_change" | "token_missing";
|
|
2377
|
+
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "labels" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "sensitive" | "subject_change" | "token_missing";
|
|
2202
2378
|
source: "owner" | "owner_data" | "untrusted";
|
|
2203
2379
|
sources: {
|
|
2204
2380
|
origin: "conversation" | "owner" | "task";
|
|
@@ -2218,6 +2394,32 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2218
2394
|
choices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2219
2395
|
passkeyChoices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2220
2396
|
}[];
|
|
2397
|
+
unknownOutcomes: {
|
|
2398
|
+
group: "unknown_outcome";
|
|
2399
|
+
action: {
|
|
2400
|
+
actionID: string;
|
|
2401
|
+
tool: string;
|
|
2402
|
+
sentence: string;
|
|
2403
|
+
fields: Record<string, string>;
|
|
2404
|
+
riskClass: "always_ask" | "lifting" | "routine";
|
|
2405
|
+
reason: "inconclusive" | "key_expired" | "no_reconcile" | "not_found_ask" | "unknown_streak";
|
|
2406
|
+
becameUnknownAt: Date;
|
|
2407
|
+
attempts: {
|
|
2408
|
+
attempt: number;
|
|
2409
|
+
at: Date;
|
|
2410
|
+
}[];
|
|
2411
|
+
checks: {
|
|
2412
|
+
answer: "found" | "inconclusive" | "not_found";
|
|
2413
|
+
at: Date;
|
|
2414
|
+
}[];
|
|
2415
|
+
};
|
|
2416
|
+
task: {
|
|
2417
|
+
id: string;
|
|
2418
|
+
name: string;
|
|
2419
|
+
} | null;
|
|
2420
|
+
choices: ("drop" | "happened" | "retry")[];
|
|
2421
|
+
passkeyChoices: ("drop" | "happened" | "retry")[];
|
|
2422
|
+
}[];
|
|
2221
2423
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2222
2424
|
UNAUTHORIZED: {
|
|
2223
2425
|
message: string;
|
|
@@ -2251,6 +2453,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2251
2453
|
fields: Record<string, string>;
|
|
2252
2454
|
ruleSentence: string | null;
|
|
2253
2455
|
approveLabel: string;
|
|
2456
|
+
rule?: Record<string, unknown> | undefined;
|
|
2254
2457
|
memory?: {
|
|
2255
2458
|
actionHash: string;
|
|
2256
2459
|
createdAt: Date;
|
|
@@ -2272,13 +2475,19 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2272
2475
|
isSensitive: boolean;
|
|
2273
2476
|
itemID: string;
|
|
2274
2477
|
kind: "fact" | "self";
|
|
2478
|
+
labels: {
|
|
2479
|
+
gist: string;
|
|
2480
|
+
isLabelOnly: boolean;
|
|
2481
|
+
topic: string;
|
|
2482
|
+
triggers: string[];
|
|
2483
|
+
} | null;
|
|
2275
2484
|
lapseAt: Date;
|
|
2276
2485
|
newSubject: "owner" | "self" | "shared" | null;
|
|
2277
2486
|
operation: "pin" | "remember" | "retire";
|
|
2278
2487
|
origin: "conversation" | "owner" | "task";
|
|
2279
2488
|
proposalID: string;
|
|
2280
2489
|
quote: string | null;
|
|
2281
|
-
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "sensitive" | "subject_change" | "token_missing";
|
|
2490
|
+
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "labels" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "sensitive" | "subject_change" | "token_missing";
|
|
2282
2491
|
source: "owner" | "owner_data" | "untrusted";
|
|
2283
2492
|
sources: {
|
|
2284
2493
|
origin: "conversation" | "owner" | "task";
|
|
@@ -2450,6 +2659,85 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2450
2659
|
type: "public-key";
|
|
2451
2660
|
} | undefined;
|
|
2452
2661
|
}>;
|
|
2662
|
+
answerUnknownOutcome: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2663
|
+
actionID: string;
|
|
2664
|
+
choice: "drop" | "happened" | "retry";
|
|
2665
|
+
clientActionID: string;
|
|
2666
|
+
passkey?: {
|
|
2667
|
+
id: string;
|
|
2668
|
+
rawId: string;
|
|
2669
|
+
response: {
|
|
2670
|
+
clientDataJSON: string;
|
|
2671
|
+
authenticatorData: string;
|
|
2672
|
+
signature: string;
|
|
2673
|
+
userHandle?: string | undefined;
|
|
2674
|
+
};
|
|
2675
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2676
|
+
clientExtensionResults: Record<string, never>;
|
|
2677
|
+
type: "public-key";
|
|
2678
|
+
} | undefined;
|
|
2679
|
+
}, {
|
|
2680
|
+
actionID: string;
|
|
2681
|
+
choice: "drop" | "happened" | "retry";
|
|
2682
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2683
|
+
UNAUTHORIZED: {
|
|
2684
|
+
message: string;
|
|
2685
|
+
status: number;
|
|
2686
|
+
};
|
|
2687
|
+
}>, {
|
|
2688
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2689
|
+
message: string;
|
|
2690
|
+
status: number;
|
|
2691
|
+
};
|
|
2692
|
+
}>, {
|
|
2693
|
+
NO_PASSKEY: {
|
|
2694
|
+
message: string;
|
|
2695
|
+
status: number;
|
|
2696
|
+
};
|
|
2697
|
+
PASSKEY_FAILED: {
|
|
2698
|
+
message: string;
|
|
2699
|
+
status: number;
|
|
2700
|
+
data: import("zod").ZodObject<{
|
|
2701
|
+
reason: import("zod").ZodEnum<{
|
|
2702
|
+
binding: "binding";
|
|
2703
|
+
counter: "counter";
|
|
2704
|
+
no_user_verification: "no_user_verification";
|
|
2705
|
+
origin: "origin";
|
|
2706
|
+
signature: "signature";
|
|
2707
|
+
unknown_challenge: "unknown_challenge";
|
|
2708
|
+
unknown_passkey: "unknown_passkey";
|
|
2709
|
+
}>;
|
|
2710
|
+
}, import("zod/v4/core").$strip>;
|
|
2711
|
+
};
|
|
2712
|
+
NOT_ALLOWED: {
|
|
2713
|
+
message: string;
|
|
2714
|
+
status: number;
|
|
2715
|
+
data: import("zod").ZodObject<{
|
|
2716
|
+
reason: import("zod").ZodString;
|
|
2717
|
+
}, import("zod/v4/core").$strip>;
|
|
2718
|
+
};
|
|
2719
|
+
PASSKEY_REQUIRED: {
|
|
2720
|
+
message: string;
|
|
2721
|
+
status: number;
|
|
2722
|
+
};
|
|
2723
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2724
|
+
actionID: string;
|
|
2725
|
+
choice: "drop" | "happened" | "retry";
|
|
2726
|
+
clientActionID: string;
|
|
2727
|
+
passkey?: {
|
|
2728
|
+
id: string;
|
|
2729
|
+
rawId: string;
|
|
2730
|
+
response: {
|
|
2731
|
+
clientDataJSON: string;
|
|
2732
|
+
authenticatorData: string;
|
|
2733
|
+
signature: string;
|
|
2734
|
+
userHandle?: string | undefined;
|
|
2735
|
+
};
|
|
2736
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2737
|
+
clientExtensionResults: Record<string, never>;
|
|
2738
|
+
type: "public-key";
|
|
2739
|
+
} | undefined;
|
|
2740
|
+
}>;
|
|
2453
2741
|
answerProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2454
2742
|
answers: {
|
|
2455
2743
|
proposalID: string;
|
|
@@ -2535,6 +2823,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2535
2823
|
actionHash: string;
|
|
2536
2824
|
choice: "always_allow" | "approve" | "decline" | "defer";
|
|
2537
2825
|
ruleHash?: string | undefined;
|
|
2826
|
+
} | {
|
|
2827
|
+
kind: "unknown_outcome";
|
|
2828
|
+
actionID: string;
|
|
2829
|
+
choice: "retry";
|
|
2538
2830
|
} | {
|
|
2539
2831
|
kind: "register";
|
|
2540
2832
|
} | {
|
|
@@ -2570,6 +2862,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2570
2862
|
actionHash: string;
|
|
2571
2863
|
choice: "always_allow" | "approve" | "decline" | "defer";
|
|
2572
2864
|
ruleHash?: string | undefined;
|
|
2865
|
+
} | {
|
|
2866
|
+
kind: "unknown_outcome";
|
|
2867
|
+
actionID: string;
|
|
2868
|
+
choice: "retry";
|
|
2573
2869
|
} | {
|
|
2574
2870
|
kind: "register";
|
|
2575
2871
|
} | {
|
|
@@ -2898,6 +3194,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2898
3194
|
}[];
|
|
2899
3195
|
} | undefined;
|
|
2900
3196
|
recordedAt: Date;
|
|
3197
|
+
removal?: {
|
|
3198
|
+
kind: string;
|
|
3199
|
+
sequence: number;
|
|
3200
|
+
callSequence?: number | undefined;
|
|
3201
|
+
} | undefined;
|
|
2901
3202
|
sequence: number;
|
|
2902
3203
|
stop?: {
|
|
2903
3204
|
cancelledActions: {
|
|
@@ -3023,6 +3324,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3023
3324
|
}[];
|
|
3024
3325
|
} | undefined;
|
|
3025
3326
|
recordedAt: Date;
|
|
3327
|
+
removal?: {
|
|
3328
|
+
kind: string;
|
|
3329
|
+
sequence: number;
|
|
3330
|
+
callSequence?: number | undefined;
|
|
3331
|
+
} | undefined;
|
|
3026
3332
|
sequence: number;
|
|
3027
3333
|
stop?: {
|
|
3028
3334
|
cancelledActions: {
|
|
@@ -10,6 +10,10 @@ export declare const challengeForSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
10
10
|
defer: "defer";
|
|
11
11
|
}>;
|
|
12
12
|
ruleHash: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
kind: z.ZodLiteral<"unknown_outcome">;
|
|
15
|
+
actionID: z.ZodString;
|
|
16
|
+
choice: z.ZodLiteral<"retry">;
|
|
13
17
|
}, z.core.$strip>, z.ZodObject<{
|
|
14
18
|
kind: z.ZodLiteral<"register">;
|
|
15
19
|
}, z.core.$strip>, z.ZodObject<{
|