@heynixie/contract 0.74.0 → 0.76.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 +360 -2
- package/dist/contract/challenge-for-schema.d.ts +4 -0
- package/dist/contract/contract.d.ts +376 -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/contract/schedule-schema.d.ts +31 -0
- package/dist/contract/trigger-schema.d.ts +36 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +532 -313
- package/package.json +1 -1
|
@@ -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: {
|
|
@@ -415,12 +425,15 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
415
425
|
started: number;
|
|
416
426
|
};
|
|
417
427
|
brief: string;
|
|
428
|
+
closedBy?: "disposable" | "nixie" | "owner" | undefined;
|
|
418
429
|
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
430
|
+
disposable: boolean | null;
|
|
419
431
|
isPauseRequested: boolean;
|
|
420
432
|
isPausedByNixie: boolean;
|
|
421
433
|
isTakingMessages: boolean;
|
|
422
434
|
lastActivityAt: Date;
|
|
423
435
|
name: string;
|
|
436
|
+
runner: string;
|
|
424
437
|
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
425
438
|
taskID: string;
|
|
426
439
|
waitingOn?: string | undefined;
|
|
@@ -440,12 +453,15 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
440
453
|
started: number;
|
|
441
454
|
};
|
|
442
455
|
brief: string;
|
|
456
|
+
closedBy?: "disposable" | "nixie" | "owner" | undefined;
|
|
443
457
|
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
458
|
+
disposable: boolean | null;
|
|
444
459
|
isPauseRequested: boolean;
|
|
445
460
|
isPausedByNixie: boolean;
|
|
446
461
|
isTakingMessages: boolean;
|
|
447
462
|
lastActivityAt: Date;
|
|
448
463
|
name: string;
|
|
464
|
+
runner: string;
|
|
449
465
|
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
450
466
|
taskID: string;
|
|
451
467
|
waitingOn?: string | undefined;
|
|
@@ -526,6 +542,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
526
542
|
}>;
|
|
527
543
|
}, import("zod/v4/core").$strip>;
|
|
528
544
|
};
|
|
545
|
+
RUNNER_LACKS_CONTROL: {
|
|
546
|
+
message: string;
|
|
547
|
+
status: number;
|
|
548
|
+
};
|
|
529
549
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
530
550
|
clientActionID: string;
|
|
531
551
|
taskID: string;
|
|
@@ -570,6 +590,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
570
590
|
}>;
|
|
571
591
|
}, import("zod/v4/core").$strip>;
|
|
572
592
|
};
|
|
593
|
+
RUNNER_LACKS_CONTROL: {
|
|
594
|
+
message: string;
|
|
595
|
+
status: number;
|
|
596
|
+
};
|
|
573
597
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
574
598
|
clientActionID: string;
|
|
575
599
|
taskID: string;
|
|
@@ -614,6 +638,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
614
638
|
}>;
|
|
615
639
|
}, import("zod/v4/core").$strip>;
|
|
616
640
|
};
|
|
641
|
+
RUNNER_LACKS_CONTROL: {
|
|
642
|
+
message: string;
|
|
643
|
+
status: number;
|
|
644
|
+
};
|
|
617
645
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
618
646
|
clientActionID: string;
|
|
619
647
|
taskID: string;
|
|
@@ -658,6 +686,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
658
686
|
}>;
|
|
659
687
|
}, import("zod/v4/core").$strip>;
|
|
660
688
|
};
|
|
689
|
+
RUNNER_LACKS_CONTROL: {
|
|
690
|
+
message: string;
|
|
691
|
+
status: number;
|
|
692
|
+
};
|
|
661
693
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
662
694
|
clientActionID: string;
|
|
663
695
|
taskID: string;
|
|
@@ -702,6 +734,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
702
734
|
}>;
|
|
703
735
|
}, import("zod/v4/core").$strip>;
|
|
704
736
|
};
|
|
737
|
+
RUNNER_LACKS_CONTROL: {
|
|
738
|
+
message: string;
|
|
739
|
+
status: number;
|
|
740
|
+
};
|
|
705
741
|
}>, {
|
|
706
742
|
CONVERSATION_NEVER_CLOSES: {
|
|
707
743
|
message: string;
|
|
@@ -751,8 +787,60 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
751
787
|
}>;
|
|
752
788
|
}, import("zod/v4/core").$strip>;
|
|
753
789
|
};
|
|
790
|
+
RUNNER_LACKS_CONTROL: {
|
|
791
|
+
message: string;
|
|
792
|
+
status: number;
|
|
793
|
+
};
|
|
794
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
795
|
+
clientActionID: string;
|
|
796
|
+
taskID: string;
|
|
797
|
+
}>;
|
|
798
|
+
setDisposable: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
799
|
+
clientActionID: string;
|
|
800
|
+
disposable: boolean;
|
|
801
|
+
taskID: string;
|
|
802
|
+
}, {
|
|
803
|
+
changedAt: Date;
|
|
804
|
+
disposable: boolean;
|
|
805
|
+
taskID: string;
|
|
806
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
807
|
+
UNAUTHORIZED: {
|
|
808
|
+
message: string;
|
|
809
|
+
status: number;
|
|
810
|
+
};
|
|
811
|
+
}>, {
|
|
812
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
813
|
+
message: string;
|
|
814
|
+
status: number;
|
|
815
|
+
};
|
|
816
|
+
}>, {
|
|
817
|
+
TASK_NOT_FOUND: {
|
|
818
|
+
message: string;
|
|
819
|
+
status: number;
|
|
820
|
+
};
|
|
821
|
+
TASK_HAS_NO_MARK: {
|
|
822
|
+
message: string;
|
|
823
|
+
status: number;
|
|
824
|
+
};
|
|
825
|
+
TASK_STATE_REFUSED: {
|
|
826
|
+
message: string;
|
|
827
|
+
status: number;
|
|
828
|
+
data: import("zod").ZodObject<{
|
|
829
|
+
state: import("zod").ZodEnum<{
|
|
830
|
+
closed: "closed";
|
|
831
|
+
done: "done";
|
|
832
|
+
failed: "failed";
|
|
833
|
+
paused: "paused";
|
|
834
|
+
ready: "ready";
|
|
835
|
+
running: "running";
|
|
836
|
+
stopped: "stopped";
|
|
837
|
+
waiting: "waiting";
|
|
838
|
+
}>;
|
|
839
|
+
}, import("zod/v4/core").$strip>;
|
|
840
|
+
};
|
|
754
841
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
755
842
|
clientActionID: string;
|
|
843
|
+
disposable: boolean;
|
|
756
844
|
taskID: string;
|
|
757
845
|
}>;
|
|
758
846
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
@@ -2082,6 +2170,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2082
2170
|
data: import("zod").ZodObject<{
|
|
2083
2171
|
reason: import("zod").ZodEnum<{
|
|
2084
2172
|
empty: "empty";
|
|
2173
|
+
mandate: "mandate";
|
|
2085
2174
|
widens: "widens";
|
|
2086
2175
|
}>;
|
|
2087
2176
|
}, import("zod/v4/core").$strip>;
|
|
@@ -2127,6 +2216,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2127
2216
|
data: import("zod").ZodObject<{
|
|
2128
2217
|
reason: import("zod").ZodEnum<{
|
|
2129
2218
|
empty: "empty";
|
|
2219
|
+
mandate: "mandate";
|
|
2130
2220
|
widens: "widens";
|
|
2131
2221
|
}>;
|
|
2132
2222
|
}, import("zod/v4/core").$strip>;
|
|
@@ -2137,6 +2227,137 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2137
2227
|
destinations: string[];
|
|
2138
2228
|
clientActionID: string;
|
|
2139
2229
|
}>;
|
|
2230
|
+
editProposedRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2231
|
+
proposalID: string;
|
|
2232
|
+
actionHash: string;
|
|
2233
|
+
rule: Record<string, unknown>;
|
|
2234
|
+
clientActionID: string;
|
|
2235
|
+
}, {
|
|
2236
|
+
proposalID: string;
|
|
2237
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2238
|
+
UNAUTHORIZED: {
|
|
2239
|
+
message: string;
|
|
2240
|
+
status: number;
|
|
2241
|
+
};
|
|
2242
|
+
}>, {
|
|
2243
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2244
|
+
message: string;
|
|
2245
|
+
status: number;
|
|
2246
|
+
};
|
|
2247
|
+
}>, {
|
|
2248
|
+
INVALID: {
|
|
2249
|
+
message: string;
|
|
2250
|
+
status: number;
|
|
2251
|
+
data: import("zod").ZodObject<{
|
|
2252
|
+
faults: import("zod").ZodArray<import("zod").ZodString>;
|
|
2253
|
+
}, import("zod/v4/core").$strip>;
|
|
2254
|
+
};
|
|
2255
|
+
NOT_FOUND: {
|
|
2256
|
+
message: string;
|
|
2257
|
+
status: number;
|
|
2258
|
+
};
|
|
2259
|
+
CONFLICT: {
|
|
2260
|
+
message: string;
|
|
2261
|
+
status: number;
|
|
2262
|
+
data: import("zod").ZodObject<{
|
|
2263
|
+
current: import("zod").ZodObject<{
|
|
2264
|
+
actionHash: import("zod").ZodString;
|
|
2265
|
+
}, import("zod/v4/core").$strip>;
|
|
2266
|
+
}, import("zod/v4/core").$strip>;
|
|
2267
|
+
};
|
|
2268
|
+
CLOSED: {
|
|
2269
|
+
message: string;
|
|
2270
|
+
status: number;
|
|
2271
|
+
data: import("zod").ZodObject<{
|
|
2272
|
+
state: import("zod").ZodEnum<{
|
|
2273
|
+
approved: "approved";
|
|
2274
|
+
declined: "declined";
|
|
2275
|
+
lapsed: "lapsed";
|
|
2276
|
+
withdrawn: "withdrawn";
|
|
2277
|
+
}>;
|
|
2278
|
+
}, import("zod/v4/core").$strip>;
|
|
2279
|
+
};
|
|
2280
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2281
|
+
proposalID: string;
|
|
2282
|
+
actionHash: string;
|
|
2283
|
+
rule: Record<string, unknown>;
|
|
2284
|
+
clientActionID: string;
|
|
2285
|
+
}>;
|
|
2286
|
+
proposeMandate: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2287
|
+
title: string;
|
|
2288
|
+
rules: Record<string, unknown>[];
|
|
2289
|
+
expires?: string | undefined;
|
|
2290
|
+
clientActionID: string;
|
|
2291
|
+
}, {
|
|
2292
|
+
proposalID: string;
|
|
2293
|
+
mandateID: string;
|
|
2294
|
+
expires: Date;
|
|
2295
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2296
|
+
UNAUTHORIZED: {
|
|
2297
|
+
message: string;
|
|
2298
|
+
status: number;
|
|
2299
|
+
};
|
|
2300
|
+
}>, {
|
|
2301
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2302
|
+
message: string;
|
|
2303
|
+
status: number;
|
|
2304
|
+
};
|
|
2305
|
+
}>, {
|
|
2306
|
+
INVALID: {
|
|
2307
|
+
message: string;
|
|
2308
|
+
status: number;
|
|
2309
|
+
data: import("zod").ZodObject<{
|
|
2310
|
+
faults: import("zod").ZodArray<import("zod").ZodString>;
|
|
2311
|
+
}, import("zod/v4/core").$strip>;
|
|
2312
|
+
};
|
|
2313
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2314
|
+
title: string;
|
|
2315
|
+
rules: Record<string, unknown>[];
|
|
2316
|
+
expires?: string | undefined;
|
|
2317
|
+
clientActionID: string;
|
|
2318
|
+
}>;
|
|
2319
|
+
listMandates: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2320
|
+
mandates: {
|
|
2321
|
+
mandateID: string;
|
|
2322
|
+
title: string | null;
|
|
2323
|
+
rules: {
|
|
2324
|
+
ruleID: string;
|
|
2325
|
+
sentence: string;
|
|
2326
|
+
}[];
|
|
2327
|
+
startedAt: Date;
|
|
2328
|
+
expires: Date;
|
|
2329
|
+
}[];
|
|
2330
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2331
|
+
UNAUTHORIZED: {
|
|
2332
|
+
message: string;
|
|
2333
|
+
status: number;
|
|
2334
|
+
};
|
|
2335
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2336
|
+
endMandate: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2337
|
+
mandateID: string;
|
|
2338
|
+
clientActionID: string;
|
|
2339
|
+
}, {
|
|
2340
|
+
mandateID: string;
|
|
2341
|
+
state: "ended" | "expired";
|
|
2342
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2343
|
+
UNAUTHORIZED: {
|
|
2344
|
+
message: string;
|
|
2345
|
+
status: number;
|
|
2346
|
+
};
|
|
2347
|
+
}>, {
|
|
2348
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2349
|
+
message: string;
|
|
2350
|
+
status: number;
|
|
2351
|
+
};
|
|
2352
|
+
}>, {
|
|
2353
|
+
NOT_FOUND: {
|
|
2354
|
+
message: string;
|
|
2355
|
+
status: number;
|
|
2356
|
+
};
|
|
2357
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2358
|
+
mandateID: string;
|
|
2359
|
+
clientActionID: string;
|
|
2360
|
+
}>;
|
|
2140
2361
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2141
2362
|
approvals: {
|
|
2142
2363
|
listItems: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
@@ -2171,6 +2392,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2171
2392
|
fields: Record<string, string>;
|
|
2172
2393
|
ruleSentence: string | null;
|
|
2173
2394
|
approveLabel: string;
|
|
2395
|
+
rule?: Record<string, unknown> | undefined;
|
|
2174
2396
|
memory?: {
|
|
2175
2397
|
actionHash: string;
|
|
2176
2398
|
createdAt: Date;
|
|
@@ -2192,13 +2414,19 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2192
2414
|
isSensitive: boolean;
|
|
2193
2415
|
itemID: string;
|
|
2194
2416
|
kind: "fact" | "self";
|
|
2417
|
+
labels: {
|
|
2418
|
+
gist: string;
|
|
2419
|
+
isLabelOnly: boolean;
|
|
2420
|
+
topic: string;
|
|
2421
|
+
triggers: string[];
|
|
2422
|
+
} | null;
|
|
2195
2423
|
lapseAt: Date;
|
|
2196
2424
|
newSubject: "owner" | "self" | "shared" | null;
|
|
2197
2425
|
operation: "pin" | "remember" | "retire";
|
|
2198
2426
|
origin: "conversation" | "owner" | "task";
|
|
2199
2427
|
proposalID: string;
|
|
2200
2428
|
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";
|
|
2429
|
+
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
2430
|
source: "owner" | "owner_data" | "untrusted";
|
|
2203
2431
|
sources: {
|
|
2204
2432
|
origin: "conversation" | "owner" | "task";
|
|
@@ -2218,6 +2446,32 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2218
2446
|
choices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2219
2447
|
passkeyChoices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2220
2448
|
}[];
|
|
2449
|
+
unknownOutcomes: {
|
|
2450
|
+
group: "unknown_outcome";
|
|
2451
|
+
action: {
|
|
2452
|
+
actionID: string;
|
|
2453
|
+
tool: string;
|
|
2454
|
+
sentence: string;
|
|
2455
|
+
fields: Record<string, string>;
|
|
2456
|
+
riskClass: "always_ask" | "lifting" | "routine";
|
|
2457
|
+
reason: "inconclusive" | "key_expired" | "no_reconcile" | "not_found_ask" | "unknown_streak";
|
|
2458
|
+
becameUnknownAt: Date;
|
|
2459
|
+
attempts: {
|
|
2460
|
+
attempt: number;
|
|
2461
|
+
at: Date;
|
|
2462
|
+
}[];
|
|
2463
|
+
checks: {
|
|
2464
|
+
answer: "found" | "inconclusive" | "not_found";
|
|
2465
|
+
at: Date;
|
|
2466
|
+
}[];
|
|
2467
|
+
};
|
|
2468
|
+
task: {
|
|
2469
|
+
id: string;
|
|
2470
|
+
name: string;
|
|
2471
|
+
} | null;
|
|
2472
|
+
choices: ("drop" | "happened" | "retry")[];
|
|
2473
|
+
passkeyChoices: ("drop" | "happened" | "retry")[];
|
|
2474
|
+
}[];
|
|
2221
2475
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2222
2476
|
UNAUTHORIZED: {
|
|
2223
2477
|
message: string;
|
|
@@ -2251,6 +2505,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2251
2505
|
fields: Record<string, string>;
|
|
2252
2506
|
ruleSentence: string | null;
|
|
2253
2507
|
approveLabel: string;
|
|
2508
|
+
rule?: Record<string, unknown> | undefined;
|
|
2254
2509
|
memory?: {
|
|
2255
2510
|
actionHash: string;
|
|
2256
2511
|
createdAt: Date;
|
|
@@ -2272,13 +2527,19 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2272
2527
|
isSensitive: boolean;
|
|
2273
2528
|
itemID: string;
|
|
2274
2529
|
kind: "fact" | "self";
|
|
2530
|
+
labels: {
|
|
2531
|
+
gist: string;
|
|
2532
|
+
isLabelOnly: boolean;
|
|
2533
|
+
topic: string;
|
|
2534
|
+
triggers: string[];
|
|
2535
|
+
} | null;
|
|
2275
2536
|
lapseAt: Date;
|
|
2276
2537
|
newSubject: "owner" | "self" | "shared" | null;
|
|
2277
2538
|
operation: "pin" | "remember" | "retire";
|
|
2278
2539
|
origin: "conversation" | "owner" | "task";
|
|
2279
2540
|
proposalID: string;
|
|
2280
2541
|
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";
|
|
2542
|
+
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
2543
|
source: "owner" | "owner_data" | "untrusted";
|
|
2283
2544
|
sources: {
|
|
2284
2545
|
origin: "conversation" | "owner" | "task";
|
|
@@ -2450,6 +2711,85 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2450
2711
|
type: "public-key";
|
|
2451
2712
|
} | undefined;
|
|
2452
2713
|
}>;
|
|
2714
|
+
answerUnknownOutcome: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2715
|
+
actionID: string;
|
|
2716
|
+
choice: "drop" | "happened" | "retry";
|
|
2717
|
+
clientActionID: string;
|
|
2718
|
+
passkey?: {
|
|
2719
|
+
id: string;
|
|
2720
|
+
rawId: string;
|
|
2721
|
+
response: {
|
|
2722
|
+
clientDataJSON: string;
|
|
2723
|
+
authenticatorData: string;
|
|
2724
|
+
signature: string;
|
|
2725
|
+
userHandle?: string | undefined;
|
|
2726
|
+
};
|
|
2727
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2728
|
+
clientExtensionResults: Record<string, never>;
|
|
2729
|
+
type: "public-key";
|
|
2730
|
+
} | undefined;
|
|
2731
|
+
}, {
|
|
2732
|
+
actionID: string;
|
|
2733
|
+
choice: "drop" | "happened" | "retry";
|
|
2734
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2735
|
+
UNAUTHORIZED: {
|
|
2736
|
+
message: string;
|
|
2737
|
+
status: number;
|
|
2738
|
+
};
|
|
2739
|
+
}>, {
|
|
2740
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2741
|
+
message: string;
|
|
2742
|
+
status: number;
|
|
2743
|
+
};
|
|
2744
|
+
}>, {
|
|
2745
|
+
NO_PASSKEY: {
|
|
2746
|
+
message: string;
|
|
2747
|
+
status: number;
|
|
2748
|
+
};
|
|
2749
|
+
PASSKEY_FAILED: {
|
|
2750
|
+
message: string;
|
|
2751
|
+
status: number;
|
|
2752
|
+
data: import("zod").ZodObject<{
|
|
2753
|
+
reason: import("zod").ZodEnum<{
|
|
2754
|
+
binding: "binding";
|
|
2755
|
+
counter: "counter";
|
|
2756
|
+
no_user_verification: "no_user_verification";
|
|
2757
|
+
origin: "origin";
|
|
2758
|
+
signature: "signature";
|
|
2759
|
+
unknown_challenge: "unknown_challenge";
|
|
2760
|
+
unknown_passkey: "unknown_passkey";
|
|
2761
|
+
}>;
|
|
2762
|
+
}, import("zod/v4/core").$strip>;
|
|
2763
|
+
};
|
|
2764
|
+
NOT_ALLOWED: {
|
|
2765
|
+
message: string;
|
|
2766
|
+
status: number;
|
|
2767
|
+
data: import("zod").ZodObject<{
|
|
2768
|
+
reason: import("zod").ZodString;
|
|
2769
|
+
}, import("zod/v4/core").$strip>;
|
|
2770
|
+
};
|
|
2771
|
+
PASSKEY_REQUIRED: {
|
|
2772
|
+
message: string;
|
|
2773
|
+
status: number;
|
|
2774
|
+
};
|
|
2775
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2776
|
+
actionID: string;
|
|
2777
|
+
choice: "drop" | "happened" | "retry";
|
|
2778
|
+
clientActionID: string;
|
|
2779
|
+
passkey?: {
|
|
2780
|
+
id: string;
|
|
2781
|
+
rawId: string;
|
|
2782
|
+
response: {
|
|
2783
|
+
clientDataJSON: string;
|
|
2784
|
+
authenticatorData: string;
|
|
2785
|
+
signature: string;
|
|
2786
|
+
userHandle?: string | undefined;
|
|
2787
|
+
};
|
|
2788
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2789
|
+
clientExtensionResults: Record<string, never>;
|
|
2790
|
+
type: "public-key";
|
|
2791
|
+
} | undefined;
|
|
2792
|
+
}>;
|
|
2453
2793
|
answerProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2454
2794
|
answers: {
|
|
2455
2795
|
proposalID: string;
|
|
@@ -2535,6 +2875,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2535
2875
|
actionHash: string;
|
|
2536
2876
|
choice: "always_allow" | "approve" | "decline" | "defer";
|
|
2537
2877
|
ruleHash?: string | undefined;
|
|
2878
|
+
} | {
|
|
2879
|
+
kind: "unknown_outcome";
|
|
2880
|
+
actionID: string;
|
|
2881
|
+
choice: "retry";
|
|
2538
2882
|
} | {
|
|
2539
2883
|
kind: "register";
|
|
2540
2884
|
} | {
|
|
@@ -2570,6 +2914,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2570
2914
|
actionHash: string;
|
|
2571
2915
|
choice: "always_allow" | "approve" | "decline" | "defer";
|
|
2572
2916
|
ruleHash?: string | undefined;
|
|
2917
|
+
} | {
|
|
2918
|
+
kind: "unknown_outcome";
|
|
2919
|
+
actionID: string;
|
|
2920
|
+
choice: "retry";
|
|
2573
2921
|
} | {
|
|
2574
2922
|
kind: "register";
|
|
2575
2923
|
} | {
|
|
@@ -2898,6 +3246,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2898
3246
|
}[];
|
|
2899
3247
|
} | undefined;
|
|
2900
3248
|
recordedAt: Date;
|
|
3249
|
+
removal?: {
|
|
3250
|
+
kind: string;
|
|
3251
|
+
sequence: number;
|
|
3252
|
+
callSequence?: number | undefined;
|
|
3253
|
+
} | undefined;
|
|
2901
3254
|
sequence: number;
|
|
2902
3255
|
stop?: {
|
|
2903
3256
|
cancelledActions: {
|
|
@@ -3023,6 +3376,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3023
3376
|
}[];
|
|
3024
3377
|
} | undefined;
|
|
3025
3378
|
recordedAt: Date;
|
|
3379
|
+
removal?: {
|
|
3380
|
+
kind: string;
|
|
3381
|
+
sequence: number;
|
|
3382
|
+
callSequence?: number | undefined;
|
|
3383
|
+
} | undefined;
|
|
3026
3384
|
sequence: number;
|
|
3027
3385
|
stop?: {
|
|
3028
3386
|
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<{
|