@heynixie/contract 0.71.0 → 0.73.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/{approval-contract.d.ts → contract/approval-contract.d.ts} +208 -2
- package/dist/contract/authentication-response-schema.d.ts +17 -0
- package/dist/contract/base64-url-schema.d.ts +2 -0
- package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +619 -262
- package/dist/contract/challenge-for-schema.d.ts +18 -0
- package/dist/contract/choice-schema.d.ts +7 -0
- package/dist/{contract.d.ts → contract/contract.d.ts} +661 -308
- package/dist/contract/creation-options-schema.d.ts +42 -0
- package/dist/contract/credential-descriptor-schema.d.ts +6 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -0
- package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +75 -199
- package/dist/contract/host-passkey-contract.d.ts +29 -0
- package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +1 -230
- package/dist/contract/no-passkey-error.d.ts +6 -0
- package/dist/contract/passkey-contract.d.ts +270 -0
- package/dist/contract/passkey-failed-error.d.ts +18 -0
- package/dist/contract/passkey-failure-schema.d.ts +10 -0
- package/dist/contract/pause-state-schema.d.ts +9 -0
- package/dist/contract/recovery-schema.d.ts +21 -0
- package/dist/contract/registration-response-schema.d.ts +19 -0
- package/dist/contract/request-options-schema.d.ts +16 -0
- package/dist/contract/rule-contract.d.ts +106 -0
- package/dist/contract/transports-schema.d.ts +2 -0
- package/dist/contract/user-verification-schema.d.ts +6 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.js +1153 -944
- package/dist/{build-pending-input.d.ts → span/build-pending-input.d.ts} +1 -1
- package/dist/{build-span-state.d.ts → span/build-span-state.d.ts} +1 -1
- package/dist/{pick-span-source.d.ts → span/pick-span-source.d.ts} +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +1 -1
- package/dist/forgettable-kinds.d.ts +0 -1
- package/dist/proposal-outcome-schema.d.ts +0 -37
- package/dist/rule-contract.d.ts +0 -124
- /package/dist/{action-proposal-schema.d.ts → contract/action-proposal-schema.d.ts} +0 -0
- /package/dist/{client-header-name.d.ts → contract/client-header-name.d.ts} +0 -0
- /package/dist/{forget-backup-schema.d.ts → contract/forget-backup-schema.d.ts} +0 -0
- /package/dist/{image-limits.d.ts → contract/image-limits.d.ts} +0 -0
- /package/dist/{image-not-found-error.d.ts → contract/image-not-found-error.d.ts} +0 -0
- /package/dist/{image-refused-error.d.ts → contract/image-refused-error.d.ts} +0 -0
- /package/dist/{input-miss-schema.d.ts → contract/input-miss-schema.d.ts} +0 -0
- /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
- /package/dist/{known-contact-schema.d.ts → contract/known-contact-schema.d.ts} +0 -0
- /package/dist/{logged-input-schema.d.ts → contract/logged-input-schema.d.ts} +0 -0
- /package/dist/{memory-export-contract.d.ts → contract/memory-export-contract.d.ts} +0 -0
- /package/dist/{moment-contract.d.ts → contract/moment-contract.d.ts} +0 -0
- /package/dist/{render-session-cookie.d.ts → contract/render-session-cookie.d.ts} +0 -0
- /package/dist/{reused-id-errors.d.ts → contract/reused-id-errors.d.ts} +0 -0
- /package/dist/{session-cookie-name.d.ts → contract/session-cookie-name.d.ts} +0 -0
- /package/dist/{signed-in.d.ts → contract/signed-in.d.ts} +0 -0
- /package/dist/{task-schema.d.ts → contract/task-schema.d.ts} +0 -0
- /package/dist/{tool-call-schema.d.ts → contract/tool-call-schema.d.ts} +0 -0
- /package/dist/{turn-inputs-contract.d.ts → contract/turn-inputs-contract.d.ts} +0 -0
- /package/dist/{task-message-input-schema.d.ts → message/task-message-input-schema.d.ts} +0 -0
- /package/dist/{task-message-kind-schema.d.ts → message/task-message-kind-schema.d.ts} +0 -0
- /package/dist/{task-message-result-schema.d.ts → message/task-message-result-schema.d.ts} +0 -0
- /package/dist/{has-several-words.d.ts → span/has-several-words.d.ts} +0 -0
- /package/dist/{span-schema.d.ts → span/span-schema.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContractClient } from '
|
|
1
|
+
import type { ContractClient } from '../types.js';
|
|
2
2
|
export declare function buildQueryUtils(client: ContractClient): {
|
|
3
3
|
conversation: {
|
|
4
4
|
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
@@ -62,6 +62,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
62
62
|
ratedBy?: string | undefined;
|
|
63
63
|
recalledSequence: number;
|
|
64
64
|
} | undefined;
|
|
65
|
+
proposal?: {
|
|
66
|
+
proposalID: string;
|
|
67
|
+
shortID: string;
|
|
68
|
+
} | undefined;
|
|
65
69
|
recall?: {
|
|
66
70
|
items: {
|
|
67
71
|
itemID: string;
|
|
@@ -168,6 +172,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
168
172
|
ratedBy?: string | undefined;
|
|
169
173
|
recalledSequence: number;
|
|
170
174
|
} | undefined;
|
|
175
|
+
proposal?: {
|
|
176
|
+
proposalID: string;
|
|
177
|
+
shortID: string;
|
|
178
|
+
} | undefined;
|
|
171
179
|
recall?: {
|
|
172
180
|
items: {
|
|
173
181
|
itemID: string;
|
|
@@ -360,6 +368,18 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
360
368
|
thread: string;
|
|
361
369
|
}, {
|
|
362
370
|
forgottenAt: Date;
|
|
371
|
+
backup: {
|
|
372
|
+
state: "off";
|
|
373
|
+
} | {
|
|
374
|
+
state: "pending";
|
|
375
|
+
} | {
|
|
376
|
+
state: "failed";
|
|
377
|
+
failure: string;
|
|
378
|
+
} | {
|
|
379
|
+
state: "complete";
|
|
380
|
+
} | {
|
|
381
|
+
state: "unknown";
|
|
382
|
+
};
|
|
363
383
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
364
384
|
UNAUTHORIZED: {
|
|
365
385
|
message: string;
|
|
@@ -375,6 +395,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
375
395
|
message: string;
|
|
376
396
|
status: number;
|
|
377
397
|
};
|
|
398
|
+
ACTION_NOT_FINISHED: {
|
|
399
|
+
message: string;
|
|
400
|
+
status: number;
|
|
401
|
+
};
|
|
378
402
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
379
403
|
clientActionID: string;
|
|
380
404
|
sequence: number;
|
|
@@ -393,6 +417,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
393
417
|
brief: string;
|
|
394
418
|
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
395
419
|
isPauseRequested: boolean;
|
|
420
|
+
isPausedByNixie: boolean;
|
|
396
421
|
isTakingMessages: boolean;
|
|
397
422
|
lastActivityAt: Date;
|
|
398
423
|
name: string;
|
|
@@ -417,6 +442,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
417
442
|
brief: string;
|
|
418
443
|
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
419
444
|
isPauseRequested: boolean;
|
|
445
|
+
isPausedByNixie: boolean;
|
|
420
446
|
isTakingMessages: boolean;
|
|
421
447
|
lastActivityAt: Date;
|
|
422
448
|
name: string;
|
|
@@ -1126,7 +1152,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1126
1152
|
isSensitive: boolean;
|
|
1127
1153
|
itemID: string;
|
|
1128
1154
|
kind: "fact" | "self";
|
|
1129
|
-
origin: "conversation" | "lapse" | "
|
|
1155
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1130
1156
|
shortID: string;
|
|
1131
1157
|
source: "owner" | "owner_data" | "untrusted";
|
|
1132
1158
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1169,7 +1195,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1169
1195
|
isSensitive: boolean;
|
|
1170
1196
|
itemID: string;
|
|
1171
1197
|
kind: "fact" | "self";
|
|
1172
|
-
origin: "conversation" | "lapse" | "
|
|
1198
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1173
1199
|
shortID: string;
|
|
1174
1200
|
source: "owner" | "owner_data" | "untrusted";
|
|
1175
1201
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1205,7 +1231,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1205
1231
|
isSensitive: boolean;
|
|
1206
1232
|
itemID: string;
|
|
1207
1233
|
kind: "fact" | "self";
|
|
1208
|
-
origin: "conversation" | "lapse" | "
|
|
1234
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1209
1235
|
shortID: string;
|
|
1210
1236
|
source: "owner" | "owner_data" | "untrusted";
|
|
1211
1237
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1237,7 +1263,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1237
1263
|
isSensitive: boolean;
|
|
1238
1264
|
itemID: string;
|
|
1239
1265
|
kind: "fact" | "self";
|
|
1240
|
-
origin: "conversation" | "lapse" | "
|
|
1266
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1241
1267
|
shortID: string;
|
|
1242
1268
|
source: "owner" | "owner_data" | "untrusted";
|
|
1243
1269
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1265,7 +1291,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1265
1291
|
sequence: number;
|
|
1266
1292
|
thread: string;
|
|
1267
1293
|
} | null;
|
|
1268
|
-
origin: "conversation" | "lapse" | "
|
|
1294
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1269
1295
|
proposalID: string | null;
|
|
1270
1296
|
recordedAt: Date;
|
|
1271
1297
|
source: "owner" | "owner_data" | "untrusted";
|
|
@@ -1389,7 +1415,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1389
1415
|
isSensitive: boolean;
|
|
1390
1416
|
itemID: string;
|
|
1391
1417
|
kind: "fact" | "self";
|
|
1392
|
-
origin: "conversation" | "lapse" | "
|
|
1418
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1393
1419
|
shortID: string;
|
|
1394
1420
|
source: "owner" | "owner_data" | "untrusted";
|
|
1395
1421
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1405,7 +1431,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1405
1431
|
sequence: number;
|
|
1406
1432
|
version: number | null;
|
|
1407
1433
|
}[];
|
|
1408
|
-
kind: "
|
|
1434
|
+
kind: "run" | "turn";
|
|
1409
1435
|
messageSequence: number | null;
|
|
1410
1436
|
noticeKey: string;
|
|
1411
1437
|
proposed: number;
|
|
@@ -1522,7 +1548,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1522
1548
|
isSensitive: boolean;
|
|
1523
1549
|
itemID: string;
|
|
1524
1550
|
kind: "fact" | "self";
|
|
1525
|
-
origin: "conversation" | "lapse" | "
|
|
1551
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1526
1552
|
shortID: string;
|
|
1527
1553
|
source: "owner" | "owner_data" | "untrusted";
|
|
1528
1554
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1550,7 +1576,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1550
1576
|
sequence: number;
|
|
1551
1577
|
thread: string;
|
|
1552
1578
|
} | null;
|
|
1553
|
-
origin: "conversation" | "lapse" | "
|
|
1579
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1554
1580
|
proposalID: string | null;
|
|
1555
1581
|
recordedAt: Date;
|
|
1556
1582
|
source: "owner" | "owner_data" | "untrusted";
|
|
@@ -1649,7 +1675,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1649
1675
|
isSensitive: boolean;
|
|
1650
1676
|
itemID: string;
|
|
1651
1677
|
kind: "fact" | "self";
|
|
1652
|
-
origin: "conversation" | "lapse" | "
|
|
1678
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1653
1679
|
shortID: string;
|
|
1654
1680
|
source: "owner" | "owner_data" | "untrusted";
|
|
1655
1681
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1847,165 +1873,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1847
1873
|
isSensitive: boolean;
|
|
1848
1874
|
itemID: string;
|
|
1849
1875
|
}>;
|
|
1850
|
-
listProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
1851
|
-
proposals: {
|
|
1852
|
-
actionHash: string;
|
|
1853
|
-
createdAt: Date;
|
|
1854
|
-
evidence: {
|
|
1855
|
-
end: number;
|
|
1856
|
-
message: {
|
|
1857
|
-
status: "missing" | "readable" | "shredded" | "unreadable";
|
|
1858
|
-
text?: string | undefined;
|
|
1859
|
-
} | null;
|
|
1860
|
-
sequence: number;
|
|
1861
|
-
start: number;
|
|
1862
|
-
} | null;
|
|
1863
|
-
image: {
|
|
1864
|
-
position: number;
|
|
1865
|
-
sequence: number;
|
|
1866
|
-
thread: string;
|
|
1867
|
-
} | null;
|
|
1868
|
-
isPinned: boolean;
|
|
1869
|
-
isSensitive: boolean;
|
|
1870
|
-
itemID: string;
|
|
1871
|
-
kind: "fact" | "self";
|
|
1872
|
-
lapseAt: Date;
|
|
1873
|
-
newSubject: "owner" | "self" | "shared" | null;
|
|
1874
|
-
operation: "pin" | "remember" | "retire";
|
|
1875
|
-
origin: "conversation" | "memory_writer" | "owner" | "task";
|
|
1876
|
-
proposalID: string;
|
|
1877
|
-
quote: string | null;
|
|
1878
|
-
reason: "ambiguous_target" | "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";
|
|
1879
|
-
source: "owner" | "owner_data" | "untrusted";
|
|
1880
|
-
sources: {
|
|
1881
|
-
origin: "conversation" | "memory_writer" | "owner" | "task";
|
|
1882
|
-
proposedAt: Date;
|
|
1883
|
-
thread: string | null;
|
|
1884
|
-
}[];
|
|
1885
|
-
subject: "owner" | "self" | "shared";
|
|
1886
|
-
targetVersion: number | null;
|
|
1887
|
-
text: string;
|
|
1888
|
-
until: Date | null;
|
|
1889
|
-
}[];
|
|
1890
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1891
|
-
UNAUTHORIZED: {
|
|
1892
|
-
message: string;
|
|
1893
|
-
status: number;
|
|
1894
|
-
};
|
|
1895
|
-
}>, {
|
|
1896
|
-
MEMORY_NOT_STARTED: {
|
|
1897
|
-
message: string;
|
|
1898
|
-
status: number;
|
|
1899
|
-
};
|
|
1900
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
1901
|
-
approveProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1902
|
-
answers: {
|
|
1903
|
-
actionHash: string;
|
|
1904
|
-
clientActionID: string;
|
|
1905
|
-
proposalID: string;
|
|
1906
|
-
editedText?: string | undefined;
|
|
1907
|
-
ignoreCloseMatch?: boolean | undefined;
|
|
1908
|
-
revisionOf?: {
|
|
1909
|
-
itemID: string;
|
|
1910
|
-
version: number;
|
|
1911
|
-
} | undefined;
|
|
1912
|
-
}[];
|
|
1913
|
-
}, {
|
|
1914
|
-
outcomes: ({
|
|
1915
|
-
proposalID: string;
|
|
1916
|
-
status: "applied";
|
|
1917
|
-
} | {
|
|
1918
|
-
proposalID: string;
|
|
1919
|
-
status: "rejected";
|
|
1920
|
-
} | {
|
|
1921
|
-
item: {
|
|
1922
|
-
itemID: string;
|
|
1923
|
-
text: string;
|
|
1924
|
-
version: number;
|
|
1925
|
-
};
|
|
1926
|
-
proposalID: string;
|
|
1927
|
-
status: "close_match";
|
|
1928
|
-
} | {
|
|
1929
|
-
cause: "answered" | "changed" | "gone" | "lapsed" | "moved";
|
|
1930
|
-
proposalID: string;
|
|
1931
|
-
status: "stale";
|
|
1932
|
-
} | {
|
|
1933
|
-
code: "CLIENT_ACTION_ID_REUSED" | "PINNED_CORE_FULL" | "PIN_EDIT" | "RETIREMENT_EDIT" | "REVISION_TARGET" | "WRONG_STATE";
|
|
1934
|
-
proposalID: string;
|
|
1935
|
-
status: "refused";
|
|
1936
|
-
})[];
|
|
1937
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1938
|
-
UNAUTHORIZED: {
|
|
1939
|
-
message: string;
|
|
1940
|
-
status: number;
|
|
1941
|
-
};
|
|
1942
|
-
}>, {
|
|
1943
|
-
MEMORY_NOT_STARTED: {
|
|
1944
|
-
message: string;
|
|
1945
|
-
status: number;
|
|
1946
|
-
};
|
|
1947
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
1948
|
-
answers: {
|
|
1949
|
-
actionHash: string;
|
|
1950
|
-
clientActionID: string;
|
|
1951
|
-
proposalID: string;
|
|
1952
|
-
editedText?: string | undefined;
|
|
1953
|
-
ignoreCloseMatch?: boolean | undefined;
|
|
1954
|
-
revisionOf?: {
|
|
1955
|
-
itemID: string;
|
|
1956
|
-
version: number;
|
|
1957
|
-
} | undefined;
|
|
1958
|
-
}[];
|
|
1959
|
-
}>;
|
|
1960
|
-
rejectProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1961
|
-
answers: {
|
|
1962
|
-
actionHash: string;
|
|
1963
|
-
clientActionID: string;
|
|
1964
|
-
proposalID: string;
|
|
1965
|
-
reason?: string | undefined;
|
|
1966
|
-
}[];
|
|
1967
|
-
}, {
|
|
1968
|
-
outcomes: ({
|
|
1969
|
-
proposalID: string;
|
|
1970
|
-
status: "applied";
|
|
1971
|
-
} | {
|
|
1972
|
-
proposalID: string;
|
|
1973
|
-
status: "rejected";
|
|
1974
|
-
} | {
|
|
1975
|
-
item: {
|
|
1976
|
-
itemID: string;
|
|
1977
|
-
text: string;
|
|
1978
|
-
version: number;
|
|
1979
|
-
};
|
|
1980
|
-
proposalID: string;
|
|
1981
|
-
status: "close_match";
|
|
1982
|
-
} | {
|
|
1983
|
-
cause: "answered" | "changed" | "gone" | "lapsed" | "moved";
|
|
1984
|
-
proposalID: string;
|
|
1985
|
-
status: "stale";
|
|
1986
|
-
} | {
|
|
1987
|
-
code: "CLIENT_ACTION_ID_REUSED" | "PINNED_CORE_FULL" | "PIN_EDIT" | "RETIREMENT_EDIT" | "REVISION_TARGET" | "WRONG_STATE";
|
|
1988
|
-
proposalID: string;
|
|
1989
|
-
status: "refused";
|
|
1990
|
-
})[];
|
|
1991
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1992
|
-
UNAUTHORIZED: {
|
|
1993
|
-
message: string;
|
|
1994
|
-
status: number;
|
|
1995
|
-
};
|
|
1996
|
-
}>, {
|
|
1997
|
-
MEMORY_NOT_STARTED: {
|
|
1998
|
-
message: string;
|
|
1999
|
-
status: number;
|
|
2000
|
-
};
|
|
2001
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2002
|
-
answers: {
|
|
2003
|
-
actionHash: string;
|
|
2004
|
-
clientActionID: string;
|
|
2005
|
-
proposalID: string;
|
|
2006
|
-
reason?: string | undefined;
|
|
2007
|
-
}[];
|
|
2008
|
-
}>;
|
|
2009
1876
|
readVersions: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2010
1877
|
versions: {
|
|
2011
1878
|
itemID: string;
|
|
@@ -2071,21 +1938,12 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2071
1938
|
status: number;
|
|
2072
1939
|
};
|
|
2073
1940
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2074
|
-
consolidatorStatus: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2075
|
-
isEnabled: boolean;
|
|
2076
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2077
|
-
UNAUTHORIZED: {
|
|
2078
|
-
message: string;
|
|
2079
|
-
status: number;
|
|
2080
|
-
};
|
|
2081
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2082
1941
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
cause: "
|
|
2087
|
-
|
|
2088
|
-
raisedAt: Date;
|
|
1942
|
+
nixie: {
|
|
1943
|
+
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
1944
|
+
paused: {
|
|
1945
|
+
cause: "owner" | "restore" | "spending";
|
|
1946
|
+
since: Date;
|
|
2089
1947
|
} | null;
|
|
2090
1948
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2091
1949
|
UNAUTHORIZED: {
|
|
@@ -2093,99 +1951,90 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2093
1951
|
status: number;
|
|
2094
1952
|
};
|
|
2095
1953
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
listProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2099
|
-
proposals: {
|
|
2100
|
-
proposalID: string;
|
|
2101
|
-
changes: {
|
|
2102
|
-
ruleID: string;
|
|
2103
|
-
before: {
|
|
2104
|
-
ruleHash: string;
|
|
2105
|
-
sentence: string;
|
|
2106
|
-
} | null;
|
|
2107
|
-
after: {
|
|
2108
|
-
ruleHash: string;
|
|
2109
|
-
sentence: string;
|
|
2110
|
-
} | null;
|
|
2111
|
-
}[];
|
|
2112
|
-
effectChanges: {
|
|
2113
|
-
tool: string;
|
|
2114
|
-
remove: string[];
|
|
2115
|
-
sentence: string;
|
|
2116
|
-
}[];
|
|
2117
|
-
createdAt: Date;
|
|
2118
|
-
lapseAt: Date;
|
|
2119
|
-
}[];
|
|
2120
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2121
|
-
UNAUTHORIZED: {
|
|
2122
|
-
message: string;
|
|
2123
|
-
status: number;
|
|
2124
|
-
};
|
|
2125
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2126
|
-
approveProposal: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2127
|
-
proposalID: string;
|
|
1954
|
+
pause: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1955
|
+
clientActionID: string;
|
|
2128
1956
|
}, {
|
|
2129
|
-
|
|
1957
|
+
paused: {
|
|
1958
|
+
cause: "owner" | "restore" | "spending";
|
|
1959
|
+
since: Date;
|
|
1960
|
+
} | null;
|
|
2130
1961
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2131
1962
|
UNAUTHORIZED: {
|
|
2132
1963
|
message: string;
|
|
2133
1964
|
status: number;
|
|
2134
1965
|
};
|
|
2135
1966
|
}>, {
|
|
2136
|
-
|
|
2137
|
-
message: string;
|
|
2138
|
-
status: number;
|
|
2139
|
-
};
|
|
2140
|
-
PROPOSAL_CLOSED: {
|
|
1967
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2141
1968
|
message: string;
|
|
2142
1969
|
status: number;
|
|
2143
1970
|
};
|
|
2144
1971
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2145
|
-
|
|
1972
|
+
clientActionID: string;
|
|
2146
1973
|
}>;
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
reason: string;
|
|
1974
|
+
resume: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1975
|
+
clientActionID: string;
|
|
2150
1976
|
}, {
|
|
2151
|
-
|
|
1977
|
+
paused: {
|
|
1978
|
+
cause: "owner" | "restore" | "spending";
|
|
1979
|
+
since: Date;
|
|
1980
|
+
} | null;
|
|
2152
1981
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2153
1982
|
UNAUTHORIZED: {
|
|
2154
1983
|
message: string;
|
|
2155
1984
|
status: number;
|
|
2156
1985
|
};
|
|
2157
1986
|
}>, {
|
|
2158
|
-
|
|
1987
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2159
1988
|
message: string;
|
|
2160
1989
|
status: number;
|
|
2161
1990
|
};
|
|
2162
|
-
|
|
1991
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
1992
|
+
clientActionID: string;
|
|
1993
|
+
}>;
|
|
1994
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
1995
|
+
recovery: {
|
|
1996
|
+
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
1997
|
+
recovery: {
|
|
1998
|
+
restoredAt: Date;
|
|
1999
|
+
backupTakenAt: Date;
|
|
2000
|
+
toCheck: {
|
|
2001
|
+
taskID: string;
|
|
2002
|
+
name: string;
|
|
2003
|
+
stateAtBackup: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
2004
|
+
wasRunning: boolean;
|
|
2005
|
+
pendingActions: number;
|
|
2006
|
+
}[];
|
|
2007
|
+
} | null;
|
|
2008
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2009
|
+
UNAUTHORIZED: {
|
|
2163
2010
|
message: string;
|
|
2164
2011
|
status: number;
|
|
2165
2012
|
};
|
|
2166
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
destinations: string[];
|
|
2176
|
-
createdAt: Date;
|
|
2177
|
-
lapseAt: Date;
|
|
2178
|
-
}[];
|
|
2013
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2014
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2015
|
+
backups: {
|
|
2016
|
+
readNotice: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2017
|
+
notice: {
|
|
2018
|
+
cause: "failed" | "missing";
|
|
2019
|
+
sequence: number;
|
|
2020
|
+
raisedAt: Date;
|
|
2021
|
+
} | null;
|
|
2179
2022
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2180
2023
|
UNAUTHORIZED: {
|
|
2181
2024
|
message: string;
|
|
2182
2025
|
status: number;
|
|
2183
2026
|
};
|
|
2184
2027
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2185
|
-
|
|
2186
|
-
|
|
2028
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2029
|
+
rules: {
|
|
2030
|
+
readRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2031
|
+
ruleID: string;
|
|
2187
2032
|
}, {
|
|
2188
|
-
|
|
2033
|
+
ruleID: string;
|
|
2034
|
+
revision: number;
|
|
2035
|
+
sentence: string;
|
|
2036
|
+
outcome: "allow" | "ask" | "deny";
|
|
2037
|
+
destinations: string[];
|
|
2189
2038
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2190
2039
|
UNAUTHORIZED: {
|
|
2191
2040
|
message: string;
|
|
@@ -2196,35 +2045,97 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2196
2045
|
message: string;
|
|
2197
2046
|
status: number;
|
|
2198
2047
|
};
|
|
2199
|
-
PROPOSAL_CLOSED: {
|
|
2200
|
-
message: string;
|
|
2201
|
-
status: number;
|
|
2202
|
-
};
|
|
2203
2048
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2204
|
-
|
|
2049
|
+
ruleID: string;
|
|
2205
2050
|
}>;
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2051
|
+
removeRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2052
|
+
ruleID: string;
|
|
2053
|
+
revision: number;
|
|
2054
|
+
clientActionID: string;
|
|
2209
2055
|
}, {
|
|
2210
|
-
|
|
2211
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2056
|
+
ruleID: string;
|
|
2057
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2212
2058
|
UNAUTHORIZED: {
|
|
2213
2059
|
message: string;
|
|
2214
2060
|
status: number;
|
|
2215
2061
|
};
|
|
2062
|
+
}>, {
|
|
2063
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2064
|
+
message: string;
|
|
2065
|
+
status: number;
|
|
2066
|
+
};
|
|
2216
2067
|
}>, {
|
|
2217
2068
|
NOT_FOUND: {
|
|
2218
2069
|
message: string;
|
|
2219
2070
|
status: number;
|
|
2220
2071
|
};
|
|
2221
|
-
|
|
2072
|
+
CONFLICT: {
|
|
2073
|
+
message: string;
|
|
2074
|
+
status: number;
|
|
2075
|
+
data: import("zod").ZodObject<{
|
|
2076
|
+
revision: import("zod").ZodInt;
|
|
2077
|
+
}, import("zod/v4/core").$strip>;
|
|
2078
|
+
};
|
|
2079
|
+
NOT_ALLOWED: {
|
|
2222
2080
|
message: string;
|
|
2223
2081
|
status: number;
|
|
2082
|
+
data: import("zod").ZodObject<{
|
|
2083
|
+
reason: import("zod").ZodEnum<{
|
|
2084
|
+
empty: "empty";
|
|
2085
|
+
widens: "widens";
|
|
2086
|
+
}>;
|
|
2087
|
+
}, import("zod/v4/core").$strip>;
|
|
2224
2088
|
};
|
|
2225
2089
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2226
|
-
|
|
2227
|
-
|
|
2090
|
+
ruleID: string;
|
|
2091
|
+
revision: number;
|
|
2092
|
+
clientActionID: string;
|
|
2093
|
+
}>;
|
|
2094
|
+
editRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2095
|
+
ruleID: string;
|
|
2096
|
+
revision: number;
|
|
2097
|
+
destinations: string[];
|
|
2098
|
+
clientActionID: string;
|
|
2099
|
+
}, {
|
|
2100
|
+
ruleID: string;
|
|
2101
|
+
revision: number;
|
|
2102
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2103
|
+
UNAUTHORIZED: {
|
|
2104
|
+
message: string;
|
|
2105
|
+
status: number;
|
|
2106
|
+
};
|
|
2107
|
+
}>, {
|
|
2108
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2109
|
+
message: string;
|
|
2110
|
+
status: number;
|
|
2111
|
+
};
|
|
2112
|
+
}>, {
|
|
2113
|
+
NOT_FOUND: {
|
|
2114
|
+
message: string;
|
|
2115
|
+
status: number;
|
|
2116
|
+
};
|
|
2117
|
+
CONFLICT: {
|
|
2118
|
+
message: string;
|
|
2119
|
+
status: number;
|
|
2120
|
+
data: import("zod").ZodObject<{
|
|
2121
|
+
revision: import("zod").ZodInt;
|
|
2122
|
+
}, import("zod/v4/core").$strip>;
|
|
2123
|
+
};
|
|
2124
|
+
NOT_ALLOWED: {
|
|
2125
|
+
message: string;
|
|
2126
|
+
status: number;
|
|
2127
|
+
data: import("zod").ZodObject<{
|
|
2128
|
+
reason: import("zod").ZodEnum<{
|
|
2129
|
+
empty: "empty";
|
|
2130
|
+
widens: "widens";
|
|
2131
|
+
}>;
|
|
2132
|
+
}, import("zod/v4/core").$strip>;
|
|
2133
|
+
};
|
|
2134
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2135
|
+
ruleID: string;
|
|
2136
|
+
revision: number;
|
|
2137
|
+
destinations: string[];
|
|
2138
|
+
clientActionID: string;
|
|
2228
2139
|
}>;
|
|
2229
2140
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2230
2141
|
approvals: {
|
|
@@ -2251,11 +2162,15 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2251
2162
|
deadlineAt: Date | null;
|
|
2252
2163
|
deferGeneration: number;
|
|
2253
2164
|
deferUntil: Date | null;
|
|
2165
|
+
thread: string | null;
|
|
2166
|
+
taskID: string | null;
|
|
2167
|
+
sequence: number;
|
|
2254
2168
|
};
|
|
2255
2169
|
body: {
|
|
2256
2170
|
sentence: string;
|
|
2257
2171
|
fields: Record<string, string>;
|
|
2258
2172
|
ruleSentence: string | null;
|
|
2173
|
+
approveLabel: string;
|
|
2259
2174
|
memory?: {
|
|
2260
2175
|
actionHash: string;
|
|
2261
2176
|
createdAt: Date;
|
|
@@ -2280,13 +2195,13 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2280
2195
|
lapseAt: Date;
|
|
2281
2196
|
newSubject: "owner" | "self" | "shared" | null;
|
|
2282
2197
|
operation: "pin" | "remember" | "retire";
|
|
2283
|
-
origin: "conversation" | "
|
|
2198
|
+
origin: "conversation" | "owner" | "task";
|
|
2284
2199
|
proposalID: string;
|
|
2285
2200
|
quote: string | null;
|
|
2286
|
-
reason: "ambiguous_target" | "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";
|
|
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";
|
|
2287
2202
|
source: "owner" | "owner_data" | "untrusted";
|
|
2288
2203
|
sources: {
|
|
2289
|
-
origin: "conversation" | "
|
|
2204
|
+
origin: "conversation" | "owner" | "task";
|
|
2290
2205
|
proposedAt: Date;
|
|
2291
2206
|
thread: string | null;
|
|
2292
2207
|
}[];
|
|
@@ -2301,6 +2216,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2301
2216
|
name: string;
|
|
2302
2217
|
} | null;
|
|
2303
2218
|
choices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2219
|
+
passkeyChoices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2304
2220
|
}[];
|
|
2305
2221
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2306
2222
|
UNAUTHORIZED: {
|
|
@@ -2308,6 +2224,90 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2308
2224
|
status: number;
|
|
2309
2225
|
};
|
|
2310
2226
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2227
|
+
readProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2228
|
+
proposalIDs: string[];
|
|
2229
|
+
}, {
|
|
2230
|
+
proposals: {
|
|
2231
|
+
proposal: {
|
|
2232
|
+
proposalID: string;
|
|
2233
|
+
shortID: string;
|
|
2234
|
+
kind: "action" | "internal_change" | "memory_write";
|
|
2235
|
+
riskClass: "always_ask" | "lifting" | "routine";
|
|
2236
|
+
actionHash: string;
|
|
2237
|
+
ruleHash: string | null;
|
|
2238
|
+
cause: string;
|
|
2239
|
+
state: "approved" | "declined" | "deferred" | "lapsed" | "pending" | "withdrawn";
|
|
2240
|
+
createdAt: Date;
|
|
2241
|
+
lapsesAt: Date;
|
|
2242
|
+
deadlineAt: Date | null;
|
|
2243
|
+
deferGeneration: number;
|
|
2244
|
+
deferUntil: Date | null;
|
|
2245
|
+
thread: string | null;
|
|
2246
|
+
taskID: string | null;
|
|
2247
|
+
sequence: number;
|
|
2248
|
+
};
|
|
2249
|
+
body: {
|
|
2250
|
+
sentence: string;
|
|
2251
|
+
fields: Record<string, string>;
|
|
2252
|
+
ruleSentence: string | null;
|
|
2253
|
+
approveLabel: string;
|
|
2254
|
+
memory?: {
|
|
2255
|
+
actionHash: string;
|
|
2256
|
+
createdAt: Date;
|
|
2257
|
+
evidence: {
|
|
2258
|
+
end: number;
|
|
2259
|
+
message: {
|
|
2260
|
+
status: "missing" | "readable" | "shredded" | "unreadable";
|
|
2261
|
+
text?: string | undefined;
|
|
2262
|
+
} | null;
|
|
2263
|
+
sequence: number;
|
|
2264
|
+
start: number;
|
|
2265
|
+
} | null;
|
|
2266
|
+
image: {
|
|
2267
|
+
position: number;
|
|
2268
|
+
sequence: number;
|
|
2269
|
+
thread: string;
|
|
2270
|
+
} | null;
|
|
2271
|
+
isPinned: boolean;
|
|
2272
|
+
isSensitive: boolean;
|
|
2273
|
+
itemID: string;
|
|
2274
|
+
kind: "fact" | "self";
|
|
2275
|
+
lapseAt: Date;
|
|
2276
|
+
newSubject: "owner" | "self" | "shared" | null;
|
|
2277
|
+
operation: "pin" | "remember" | "retire";
|
|
2278
|
+
origin: "conversation" | "owner" | "task";
|
|
2279
|
+
proposalID: string;
|
|
2280
|
+
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";
|
|
2282
|
+
source: "owner" | "owner_data" | "untrusted";
|
|
2283
|
+
sources: {
|
|
2284
|
+
origin: "conversation" | "owner" | "task";
|
|
2285
|
+
proposedAt: Date;
|
|
2286
|
+
thread: string | null;
|
|
2287
|
+
}[];
|
|
2288
|
+
subject: "owner" | "self" | "shared";
|
|
2289
|
+
targetVersion: number | null;
|
|
2290
|
+
text: string;
|
|
2291
|
+
until: Date | null;
|
|
2292
|
+
} | undefined;
|
|
2293
|
+
} | null;
|
|
2294
|
+
task: {
|
|
2295
|
+
id: string;
|
|
2296
|
+
name: string;
|
|
2297
|
+
} | null;
|
|
2298
|
+
choices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2299
|
+
passkeyChoices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2300
|
+
answeredOn: string | null;
|
|
2301
|
+
isAnsweredHere: boolean;
|
|
2302
|
+
}[];
|
|
2303
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2304
|
+
UNAUTHORIZED: {
|
|
2305
|
+
message: string;
|
|
2306
|
+
status: number;
|
|
2307
|
+
};
|
|
2308
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2309
|
+
proposalIDs: string[];
|
|
2310
|
+
}>;
|
|
2311
2311
|
answerProposal: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2312
2312
|
proposalID: string;
|
|
2313
2313
|
actionHash: string;
|
|
@@ -2324,6 +2324,19 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2324
2324
|
} | undefined;
|
|
2325
2325
|
ignoreCloseMatch?: boolean | undefined;
|
|
2326
2326
|
} | undefined;
|
|
2327
|
+
passkey?: {
|
|
2328
|
+
id: string;
|
|
2329
|
+
rawId: string;
|
|
2330
|
+
response: {
|
|
2331
|
+
clientDataJSON: string;
|
|
2332
|
+
authenticatorData: string;
|
|
2333
|
+
signature: string;
|
|
2334
|
+
userHandle?: string | undefined;
|
|
2335
|
+
};
|
|
2336
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2337
|
+
clientExtensionResults: Record<string, never>;
|
|
2338
|
+
type: "public-key";
|
|
2339
|
+
} | undefined;
|
|
2327
2340
|
}, {
|
|
2328
2341
|
proposalID: string;
|
|
2329
2342
|
state: "approved";
|
|
@@ -2353,6 +2366,25 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2353
2366
|
status: number;
|
|
2354
2367
|
};
|
|
2355
2368
|
}>, {
|
|
2369
|
+
NO_PASSKEY: {
|
|
2370
|
+
message: string;
|
|
2371
|
+
status: number;
|
|
2372
|
+
};
|
|
2373
|
+
PASSKEY_FAILED: {
|
|
2374
|
+
message: string;
|
|
2375
|
+
status: number;
|
|
2376
|
+
data: import("zod").ZodObject<{
|
|
2377
|
+
reason: import("zod").ZodEnum<{
|
|
2378
|
+
binding: "binding";
|
|
2379
|
+
counter: "counter";
|
|
2380
|
+
no_user_verification: "no_user_verification";
|
|
2381
|
+
origin: "origin";
|
|
2382
|
+
signature: "signature";
|
|
2383
|
+
unknown_challenge: "unknown_challenge";
|
|
2384
|
+
unknown_passkey: "unknown_passkey";
|
|
2385
|
+
}>;
|
|
2386
|
+
}, import("zod/v4/core").$strip>;
|
|
2387
|
+
};
|
|
2356
2388
|
CONFLICT: {
|
|
2357
2389
|
message: string;
|
|
2358
2390
|
status: number;
|
|
@@ -2384,6 +2416,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2384
2416
|
reason: import("zod").ZodString;
|
|
2385
2417
|
}, import("zod/v4/core").$strip>;
|
|
2386
2418
|
};
|
|
2419
|
+
PASSKEY_REQUIRED: {
|
|
2420
|
+
message: string;
|
|
2421
|
+
status: number;
|
|
2422
|
+
};
|
|
2387
2423
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2388
2424
|
proposalID: string;
|
|
2389
2425
|
actionHash: string;
|
|
@@ -2400,6 +2436,19 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2400
2436
|
} | undefined;
|
|
2401
2437
|
ignoreCloseMatch?: boolean | undefined;
|
|
2402
2438
|
} | undefined;
|
|
2439
|
+
passkey?: {
|
|
2440
|
+
id: string;
|
|
2441
|
+
rawId: string;
|
|
2442
|
+
response: {
|
|
2443
|
+
clientDataJSON: string;
|
|
2444
|
+
authenticatorData: string;
|
|
2445
|
+
signature: string;
|
|
2446
|
+
userHandle?: string | undefined;
|
|
2447
|
+
};
|
|
2448
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2449
|
+
clientExtensionResults: Record<string, never>;
|
|
2450
|
+
type: "public-key";
|
|
2451
|
+
} | undefined;
|
|
2403
2452
|
}>;
|
|
2404
2453
|
answerProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2405
2454
|
answers: {
|
|
@@ -2440,7 +2489,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2440
2489
|
};
|
|
2441
2490
|
} | {
|
|
2442
2491
|
proposalID: string;
|
|
2443
|
-
error: "CLOSED" | "CONFLICT" | "NOT_ALLOWED";
|
|
2492
|
+
error: "CLOSED" | "CONFLICT" | "NOT_ALLOWED" | "PASSKEY_REQUIRED";
|
|
2444
2493
|
current?: {
|
|
2445
2494
|
actionHash: string;
|
|
2446
2495
|
ruleHash: string | null;
|
|
@@ -2478,6 +2527,306 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2478
2527
|
}[];
|
|
2479
2528
|
}>;
|
|
2480
2529
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2530
|
+
passkeys: {
|
|
2531
|
+
challenge: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2532
|
+
for: {
|
|
2533
|
+
kind: "answer";
|
|
2534
|
+
proposalID: string;
|
|
2535
|
+
actionHash: string;
|
|
2536
|
+
choice: "always_allow" | "approve" | "decline" | "defer";
|
|
2537
|
+
ruleHash?: string | undefined;
|
|
2538
|
+
} | {
|
|
2539
|
+
kind: "register";
|
|
2540
|
+
} | {
|
|
2541
|
+
kind: "revoke";
|
|
2542
|
+
passkeyID: string;
|
|
2543
|
+
};
|
|
2544
|
+
}, {
|
|
2545
|
+
options: {
|
|
2546
|
+
challenge: string;
|
|
2547
|
+
rpId: string;
|
|
2548
|
+
allowCredentials: {
|
|
2549
|
+
id: string;
|
|
2550
|
+
type: "public-key";
|
|
2551
|
+
transports?: string[] | undefined;
|
|
2552
|
+
}[];
|
|
2553
|
+
userVerification: "discouraged" | "preferred" | "required";
|
|
2554
|
+
timeout: number;
|
|
2555
|
+
};
|
|
2556
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2557
|
+
UNAUTHORIZED: {
|
|
2558
|
+
message: string;
|
|
2559
|
+
status: number;
|
|
2560
|
+
};
|
|
2561
|
+
}>, {
|
|
2562
|
+
NO_PASSKEY: {
|
|
2563
|
+
message: string;
|
|
2564
|
+
status: number;
|
|
2565
|
+
};
|
|
2566
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2567
|
+
for: {
|
|
2568
|
+
kind: "answer";
|
|
2569
|
+
proposalID: string;
|
|
2570
|
+
actionHash: string;
|
|
2571
|
+
choice: "always_allow" | "approve" | "decline" | "defer";
|
|
2572
|
+
ruleHash?: string | undefined;
|
|
2573
|
+
} | {
|
|
2574
|
+
kind: "register";
|
|
2575
|
+
} | {
|
|
2576
|
+
kind: "revoke";
|
|
2577
|
+
passkeyID: string;
|
|
2578
|
+
};
|
|
2579
|
+
}>;
|
|
2580
|
+
registrationOptions: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2581
|
+
code?: string | undefined;
|
|
2582
|
+
passkey?: {
|
|
2583
|
+
id: string;
|
|
2584
|
+
rawId: string;
|
|
2585
|
+
response: {
|
|
2586
|
+
clientDataJSON: string;
|
|
2587
|
+
authenticatorData: string;
|
|
2588
|
+
signature: string;
|
|
2589
|
+
userHandle?: string | undefined;
|
|
2590
|
+
};
|
|
2591
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2592
|
+
clientExtensionResults: Record<string, never>;
|
|
2593
|
+
type: "public-key";
|
|
2594
|
+
} | undefined;
|
|
2595
|
+
}, {
|
|
2596
|
+
options: {
|
|
2597
|
+
rp: {
|
|
2598
|
+
id: string;
|
|
2599
|
+
name: string;
|
|
2600
|
+
};
|
|
2601
|
+
user: {
|
|
2602
|
+
id: string;
|
|
2603
|
+
name: string;
|
|
2604
|
+
displayName: string;
|
|
2605
|
+
};
|
|
2606
|
+
challenge: string;
|
|
2607
|
+
pubKeyCredParams: {
|
|
2608
|
+
type: "public-key";
|
|
2609
|
+
alg: number;
|
|
2610
|
+
}[];
|
|
2611
|
+
timeout: number;
|
|
2612
|
+
excludeCredentials: {
|
|
2613
|
+
id: string;
|
|
2614
|
+
type: "public-key";
|
|
2615
|
+
transports?: string[] | undefined;
|
|
2616
|
+
}[];
|
|
2617
|
+
authenticatorSelection: {
|
|
2618
|
+
residentKey: "discouraged" | "preferred" | "required";
|
|
2619
|
+
requireResidentKey: boolean;
|
|
2620
|
+
userVerification: "discouraged" | "preferred" | "required";
|
|
2621
|
+
};
|
|
2622
|
+
attestation: "direct" | "enterprise" | "indirect" | "none";
|
|
2623
|
+
};
|
|
2624
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2625
|
+
UNAUTHORIZED: {
|
|
2626
|
+
message: string;
|
|
2627
|
+
status: number;
|
|
2628
|
+
};
|
|
2629
|
+
}>, {
|
|
2630
|
+
PASSKEY_FAILED: {
|
|
2631
|
+
message: string;
|
|
2632
|
+
status: number;
|
|
2633
|
+
data: import("zod").ZodObject<{
|
|
2634
|
+
reason: import("zod").ZodEnum<{
|
|
2635
|
+
binding: "binding";
|
|
2636
|
+
counter: "counter";
|
|
2637
|
+
no_user_verification: "no_user_verification";
|
|
2638
|
+
origin: "origin";
|
|
2639
|
+
signature: "signature";
|
|
2640
|
+
unknown_challenge: "unknown_challenge";
|
|
2641
|
+
unknown_passkey: "unknown_passkey";
|
|
2642
|
+
}>;
|
|
2643
|
+
}, import("zod/v4/core").$strip>;
|
|
2644
|
+
};
|
|
2645
|
+
TOO_MANY_PASSKEYS: {
|
|
2646
|
+
message: string;
|
|
2647
|
+
status: number;
|
|
2648
|
+
};
|
|
2649
|
+
ORIGIN_UNSUPPORTED: {
|
|
2650
|
+
message: string;
|
|
2651
|
+
status: number;
|
|
2652
|
+
};
|
|
2653
|
+
ORIGIN_CHANGED: {
|
|
2654
|
+
message: string;
|
|
2655
|
+
status: number;
|
|
2656
|
+
};
|
|
2657
|
+
}>, {
|
|
2658
|
+
CODE_REQUIRED: {
|
|
2659
|
+
message: string;
|
|
2660
|
+
status: number;
|
|
2661
|
+
};
|
|
2662
|
+
CODE_INVALID: {
|
|
2663
|
+
message: string;
|
|
2664
|
+
status: number;
|
|
2665
|
+
};
|
|
2666
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2667
|
+
code?: string | undefined;
|
|
2668
|
+
passkey?: {
|
|
2669
|
+
id: string;
|
|
2670
|
+
rawId: string;
|
|
2671
|
+
response: {
|
|
2672
|
+
clientDataJSON: string;
|
|
2673
|
+
authenticatorData: string;
|
|
2674
|
+
signature: string;
|
|
2675
|
+
userHandle?: string | undefined;
|
|
2676
|
+
};
|
|
2677
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2678
|
+
clientExtensionResults: Record<string, never>;
|
|
2679
|
+
type: "public-key";
|
|
2680
|
+
} | undefined;
|
|
2681
|
+
}>;
|
|
2682
|
+
register: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2683
|
+
clientActionID: string;
|
|
2684
|
+
response: {
|
|
2685
|
+
id: string;
|
|
2686
|
+
rawId: string;
|
|
2687
|
+
response: {
|
|
2688
|
+
clientDataJSON: string;
|
|
2689
|
+
attestationObject: string;
|
|
2690
|
+
authenticatorData?: string | undefined;
|
|
2691
|
+
transports?: string[] | undefined;
|
|
2692
|
+
publicKeyAlgorithm?: number | undefined;
|
|
2693
|
+
publicKey?: string | undefined;
|
|
2694
|
+
};
|
|
2695
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2696
|
+
clientExtensionResults: Record<string, never>;
|
|
2697
|
+
type: "public-key";
|
|
2698
|
+
};
|
|
2699
|
+
label?: string | undefined;
|
|
2700
|
+
}, {
|
|
2701
|
+
passkeyID: string;
|
|
2702
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2703
|
+
UNAUTHORIZED: {
|
|
2704
|
+
message: string;
|
|
2705
|
+
status: number;
|
|
2706
|
+
};
|
|
2707
|
+
}>, {
|
|
2708
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2709
|
+
message: string;
|
|
2710
|
+
status: number;
|
|
2711
|
+
};
|
|
2712
|
+
}>, {
|
|
2713
|
+
REGISTRATION_FAILED: {
|
|
2714
|
+
message: string;
|
|
2715
|
+
status: number;
|
|
2716
|
+
data: import("zod").ZodObject<{
|
|
2717
|
+
reason: import("zod").ZodString;
|
|
2718
|
+
}, import("zod/v4/core").$strip>;
|
|
2719
|
+
};
|
|
2720
|
+
TOO_MANY_PASSKEYS: {
|
|
2721
|
+
message: string;
|
|
2722
|
+
status: number;
|
|
2723
|
+
};
|
|
2724
|
+
ORIGIN_UNSUPPORTED: {
|
|
2725
|
+
message: string;
|
|
2726
|
+
status: number;
|
|
2727
|
+
};
|
|
2728
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2729
|
+
clientActionID: string;
|
|
2730
|
+
response: {
|
|
2731
|
+
id: string;
|
|
2732
|
+
rawId: string;
|
|
2733
|
+
response: {
|
|
2734
|
+
clientDataJSON: string;
|
|
2735
|
+
attestationObject: string;
|
|
2736
|
+
authenticatorData?: string | undefined;
|
|
2737
|
+
transports?: string[] | undefined;
|
|
2738
|
+
publicKeyAlgorithm?: number | undefined;
|
|
2739
|
+
publicKey?: string | undefined;
|
|
2740
|
+
};
|
|
2741
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2742
|
+
clientExtensionResults: Record<string, never>;
|
|
2743
|
+
type: "public-key";
|
|
2744
|
+
};
|
|
2745
|
+
label?: string | undefined;
|
|
2746
|
+
}>;
|
|
2747
|
+
list: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2748
|
+
passkeys: {
|
|
2749
|
+
passkeyID: string;
|
|
2750
|
+
label: string;
|
|
2751
|
+
synced: boolean;
|
|
2752
|
+
authorizedBy: string;
|
|
2753
|
+
registeredAt: Date;
|
|
2754
|
+
lastUsedAt: Date | null;
|
|
2755
|
+
revokedAt: Date | null;
|
|
2756
|
+
}[];
|
|
2757
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2758
|
+
UNAUTHORIZED: {
|
|
2759
|
+
message: string;
|
|
2760
|
+
status: number;
|
|
2761
|
+
};
|
|
2762
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2763
|
+
revoke: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2764
|
+
clientActionID: string;
|
|
2765
|
+
passkeyID: string;
|
|
2766
|
+
passkey: {
|
|
2767
|
+
id: string;
|
|
2768
|
+
rawId: string;
|
|
2769
|
+
response: {
|
|
2770
|
+
clientDataJSON: string;
|
|
2771
|
+
authenticatorData: string;
|
|
2772
|
+
signature: string;
|
|
2773
|
+
userHandle?: string | undefined;
|
|
2774
|
+
};
|
|
2775
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2776
|
+
clientExtensionResults: Record<string, never>;
|
|
2777
|
+
type: "public-key";
|
|
2778
|
+
};
|
|
2779
|
+
}, {
|
|
2780
|
+
revokedAt: Date;
|
|
2781
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2782
|
+
UNAUTHORIZED: {
|
|
2783
|
+
message: string;
|
|
2784
|
+
status: number;
|
|
2785
|
+
};
|
|
2786
|
+
}>, {
|
|
2787
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2788
|
+
message: string;
|
|
2789
|
+
status: number;
|
|
2790
|
+
};
|
|
2791
|
+
}>, {
|
|
2792
|
+
PASSKEY_FAILED: {
|
|
2793
|
+
message: string;
|
|
2794
|
+
status: number;
|
|
2795
|
+
data: import("zod").ZodObject<{
|
|
2796
|
+
reason: import("zod").ZodEnum<{
|
|
2797
|
+
binding: "binding";
|
|
2798
|
+
counter: "counter";
|
|
2799
|
+
no_user_verification: "no_user_verification";
|
|
2800
|
+
origin: "origin";
|
|
2801
|
+
signature: "signature";
|
|
2802
|
+
unknown_challenge: "unknown_challenge";
|
|
2803
|
+
unknown_passkey: "unknown_passkey";
|
|
2804
|
+
}>;
|
|
2805
|
+
}, import("zod/v4/core").$strip>;
|
|
2806
|
+
};
|
|
2807
|
+
}>, {
|
|
2808
|
+
NOT_FOUND: {
|
|
2809
|
+
message: string;
|
|
2810
|
+
status: number;
|
|
2811
|
+
};
|
|
2812
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2813
|
+
clientActionID: string;
|
|
2814
|
+
passkeyID: string;
|
|
2815
|
+
passkey: {
|
|
2816
|
+
id: string;
|
|
2817
|
+
rawId: string;
|
|
2818
|
+
response: {
|
|
2819
|
+
clientDataJSON: string;
|
|
2820
|
+
authenticatorData: string;
|
|
2821
|
+
signature: string;
|
|
2822
|
+
userHandle?: string | undefined;
|
|
2823
|
+
};
|
|
2824
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2825
|
+
clientExtensionResults: Record<string, never>;
|
|
2826
|
+
type: "public-key";
|
|
2827
|
+
};
|
|
2828
|
+
}>;
|
|
2829
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2481
2830
|
log: {
|
|
2482
2831
|
follow: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2483
2832
|
afterSequence: number;
|
|
@@ -2537,6 +2886,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2537
2886
|
ratedBy?: string | undefined;
|
|
2538
2887
|
recalledSequence: number;
|
|
2539
2888
|
} | undefined;
|
|
2889
|
+
proposal?: {
|
|
2890
|
+
proposalID: string;
|
|
2891
|
+
shortID: string;
|
|
2892
|
+
} | undefined;
|
|
2540
2893
|
recall?: {
|
|
2541
2894
|
items: {
|
|
2542
2895
|
itemID: string;
|
|
@@ -2658,6 +3011,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2658
3011
|
ratedBy?: string | undefined;
|
|
2659
3012
|
recalledSequence: number;
|
|
2660
3013
|
} | undefined;
|
|
3014
|
+
proposal?: {
|
|
3015
|
+
proposalID: string;
|
|
3016
|
+
shortID: string;
|
|
3017
|
+
} | undefined;
|
|
2661
3018
|
recall?: {
|
|
2662
3019
|
items: {
|
|
2663
3020
|
itemID: string;
|