@heynixie/contract 0.71.0 → 0.72.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.
Files changed (43) hide show
  1. package/dist/{approval-contract.d.ts → contract/approval-contract.d.ts} +158 -0
  2. package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +252 -238
  3. package/dist/{contract.d.ts → contract/contract.d.ts} +340 -285
  4. package/dist/contract/forgettable-kinds.d.ts +1 -0
  5. package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +47 -0
  6. package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +1 -217
  7. package/dist/contract/pause-state-schema.d.ts +9 -0
  8. package/dist/contract/recovery-schema.d.ts +21 -0
  9. package/dist/contract/rule-contract.d.ts +106 -0
  10. package/dist/index.d.ts +17 -18
  11. package/dist/index.js +751 -722
  12. package/dist/{build-pending-input.d.ts → span/build-pending-input.d.ts} +1 -1
  13. package/dist/{build-span-state.d.ts → span/build-span-state.d.ts} +1 -1
  14. package/dist/{pick-span-source.d.ts → span/pick-span-source.d.ts} +1 -1
  15. package/dist/types.d.ts +3 -3
  16. package/package.json +1 -1
  17. package/dist/forgettable-kinds.d.ts +0 -1
  18. package/dist/proposal-outcome-schema.d.ts +0 -37
  19. package/dist/rule-contract.d.ts +0 -124
  20. /package/dist/{action-proposal-schema.d.ts → contract/action-proposal-schema.d.ts} +0 -0
  21. /package/dist/{client-header-name.d.ts → contract/client-header-name.d.ts} +0 -0
  22. /package/dist/{forget-backup-schema.d.ts → contract/forget-backup-schema.d.ts} +0 -0
  23. /package/dist/{image-limits.d.ts → contract/image-limits.d.ts} +0 -0
  24. /package/dist/{image-not-found-error.d.ts → contract/image-not-found-error.d.ts} +0 -0
  25. /package/dist/{image-refused-error.d.ts → contract/image-refused-error.d.ts} +0 -0
  26. /package/dist/{input-miss-schema.d.ts → contract/input-miss-schema.d.ts} +0 -0
  27. /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
  28. /package/dist/{known-contact-schema.d.ts → contract/known-contact-schema.d.ts} +0 -0
  29. /package/dist/{logged-input-schema.d.ts → contract/logged-input-schema.d.ts} +0 -0
  30. /package/dist/{memory-export-contract.d.ts → contract/memory-export-contract.d.ts} +0 -0
  31. /package/dist/{moment-contract.d.ts → contract/moment-contract.d.ts} +0 -0
  32. /package/dist/{render-session-cookie.d.ts → contract/render-session-cookie.d.ts} +0 -0
  33. /package/dist/{reused-id-errors.d.ts → contract/reused-id-errors.d.ts} +0 -0
  34. /package/dist/{session-cookie-name.d.ts → contract/session-cookie-name.d.ts} +0 -0
  35. /package/dist/{signed-in.d.ts → contract/signed-in.d.ts} +0 -0
  36. /package/dist/{task-schema.d.ts → contract/task-schema.d.ts} +0 -0
  37. /package/dist/{tool-call-schema.d.ts → contract/tool-call-schema.d.ts} +0 -0
  38. /package/dist/{turn-inputs-contract.d.ts → contract/turn-inputs-contract.d.ts} +0 -0
  39. /package/dist/{task-message-input-schema.d.ts → message/task-message-input-schema.d.ts} +0 -0
  40. /package/dist/{task-message-kind-schema.d.ts → message/task-message-kind-schema.d.ts} +0 -0
  41. /package/dist/{task-message-result-schema.d.ts → message/task-message-result-schema.d.ts} +0 -0
  42. /package/dist/{has-several-words.d.ts → span/has-several-words.d.ts} +0 -0
  43. /package/dist/{span-schema.d.ts → span/span-schema.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import type { ContractClient } from './types.js';
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;
@@ -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;
@@ -2080,12 +1947,11 @@ export declare function buildQueryUtils(client: ContractClient): {
2080
1947
  };
2081
1948
  }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2082
1949
  } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2083
- backups: {
2084
- readNotice: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2085
- notice: {
2086
- cause: "failed" | "missing";
2087
- sequence: number;
2088
- raisedAt: Date;
1950
+ nixie: {
1951
+ read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
1952
+ paused: {
1953
+ cause: "owner" | "restore" | "spending";
1954
+ since: Date;
2089
1955
  } | null;
2090
1956
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2091
1957
  UNAUTHORIZED: {
@@ -2093,99 +1959,90 @@ export declare function buildQueryUtils(client: ContractClient): {
2093
1959
  status: number;
2094
1960
  };
2095
1961
  }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2096
- } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2097
- rules: {
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;
1962
+ pause: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
1963
+ clientActionID: string;
2128
1964
  }, {
2129
- proposalID: string;
1965
+ paused: {
1966
+ cause: "owner" | "restore" | "spending";
1967
+ since: Date;
1968
+ } | null;
2130
1969
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2131
1970
  UNAUTHORIZED: {
2132
1971
  message: string;
2133
1972
  status: number;
2134
1973
  };
2135
1974
  }>, {
2136
- NOT_FOUND: {
2137
- message: string;
2138
- status: number;
2139
- };
2140
- PROPOSAL_CLOSED: {
1975
+ CLIENT_ACTION_ID_REUSED: {
2141
1976
  message: string;
2142
1977
  status: number;
2143
1978
  };
2144
1979
  }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2145
- proposalID: string;
1980
+ clientActionID: string;
2146
1981
  }>;
2147
- rejectProposal: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2148
- proposalID: string;
2149
- reason: string;
1982
+ resume: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
1983
+ clientActionID: string;
2150
1984
  }, {
2151
- proposalID: string;
1985
+ paused: {
1986
+ cause: "owner" | "restore" | "spending";
1987
+ since: Date;
1988
+ } | null;
2152
1989
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2153
1990
  UNAUTHORIZED: {
2154
1991
  message: string;
2155
1992
  status: number;
2156
1993
  };
2157
1994
  }>, {
2158
- NOT_FOUND: {
1995
+ CLIENT_ACTION_ID_REUSED: {
2159
1996
  message: string;
2160
1997
  status: number;
2161
1998
  };
2162
- PROPOSAL_CLOSED: {
1999
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2000
+ clientActionID: string;
2001
+ }>;
2002
+ } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2003
+ recovery: {
2004
+ read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2005
+ recovery: {
2006
+ restoredAt: Date;
2007
+ backupTakenAt: Date;
2008
+ toCheck: {
2009
+ taskID: string;
2010
+ name: string;
2011
+ stateAtBackup: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
2012
+ wasRunning: boolean;
2013
+ pendingActions: number;
2014
+ }[];
2015
+ } | null;
2016
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2017
+ UNAUTHORIZED: {
2163
2018
  message: string;
2164
2019
  status: number;
2165
2020
  };
2166
- }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2167
- proposalID: string;
2168
- reason: string;
2169
- }>;
2170
- listActionProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2171
- proposals: {
2172
- proposalID: string;
2173
- tool: string;
2174
- sentence: string;
2175
- destinations: string[];
2176
- createdAt: Date;
2177
- lapseAt: Date;
2178
- }[];
2021
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2022
+ } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2023
+ backups: {
2024
+ readNotice: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2025
+ notice: {
2026
+ cause: "failed" | "missing";
2027
+ sequence: number;
2028
+ raisedAt: Date;
2029
+ } | null;
2179
2030
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2180
2031
  UNAUTHORIZED: {
2181
2032
  message: string;
2182
2033
  status: number;
2183
2034
  };
2184
2035
  }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2185
- approveActionProposal: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2186
- proposalID: string;
2036
+ } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2037
+ rules: {
2038
+ readRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2039
+ ruleID: string;
2187
2040
  }, {
2188
- proposalID: string;
2041
+ ruleID: string;
2042
+ revision: number;
2043
+ sentence: string;
2044
+ outcome: "allow" | "ask" | "deny";
2045
+ destinations: string[];
2189
2046
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2190
2047
  UNAUTHORIZED: {
2191
2048
  message: string;
@@ -2196,35 +2053,97 @@ export declare function buildQueryUtils(client: ContractClient): {
2196
2053
  message: string;
2197
2054
  status: number;
2198
2055
  };
2199
- PROPOSAL_CLOSED: {
2056
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2057
+ ruleID: string;
2058
+ }>;
2059
+ removeRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2060
+ ruleID: string;
2061
+ revision: number;
2062
+ clientActionID: string;
2063
+ }, {
2064
+ ruleID: string;
2065
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2066
+ UNAUTHORIZED: {
2067
+ message: string;
2068
+ status: number;
2069
+ };
2070
+ }>, {
2071
+ CLIENT_ACTION_ID_REUSED: {
2072
+ message: string;
2073
+ status: number;
2074
+ };
2075
+ }>, {
2076
+ NOT_FOUND: {
2077
+ message: string;
2078
+ status: number;
2079
+ };
2080
+ CONFLICT: {
2200
2081
  message: string;
2201
2082
  status: number;
2083
+ data: import("zod").ZodObject<{
2084
+ revision: import("zod").ZodInt;
2085
+ }, import("zod/v4/core").$strip>;
2086
+ };
2087
+ NOT_ALLOWED: {
2088
+ message: string;
2089
+ status: number;
2090
+ data: import("zod").ZodObject<{
2091
+ reason: import("zod").ZodEnum<{
2092
+ empty: "empty";
2093
+ widens: "widens";
2094
+ }>;
2095
+ }, import("zod/v4/core").$strip>;
2202
2096
  };
2203
2097
  }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2204
- proposalID: string;
2098
+ ruleID: string;
2099
+ revision: number;
2100
+ clientActionID: string;
2205
2101
  }>;
2206
- rejectActionProposal: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2207
- proposalID: string;
2208
- reason: string;
2102
+ editRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2103
+ ruleID: string;
2104
+ revision: number;
2105
+ destinations: string[];
2106
+ clientActionID: string;
2209
2107
  }, {
2210
- proposalID: string;
2211
- }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2108
+ ruleID: string;
2109
+ revision: number;
2110
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2212
2111
  UNAUTHORIZED: {
2213
2112
  message: string;
2214
2113
  status: number;
2215
2114
  };
2115
+ }>, {
2116
+ CLIENT_ACTION_ID_REUSED: {
2117
+ message: string;
2118
+ status: number;
2119
+ };
2216
2120
  }>, {
2217
2121
  NOT_FOUND: {
2218
2122
  message: string;
2219
2123
  status: number;
2220
2124
  };
2221
- PROPOSAL_CLOSED: {
2125
+ CONFLICT: {
2126
+ message: string;
2127
+ status: number;
2128
+ data: import("zod").ZodObject<{
2129
+ revision: import("zod").ZodInt;
2130
+ }, import("zod/v4/core").$strip>;
2131
+ };
2132
+ NOT_ALLOWED: {
2222
2133
  message: string;
2223
2134
  status: number;
2135
+ data: import("zod").ZodObject<{
2136
+ reason: import("zod").ZodEnum<{
2137
+ empty: "empty";
2138
+ widens: "widens";
2139
+ }>;
2140
+ }, import("zod/v4/core").$strip>;
2224
2141
  };
2225
2142
  }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2226
- proposalID: string;
2227
- reason: string;
2143
+ ruleID: string;
2144
+ revision: number;
2145
+ destinations: string[];
2146
+ clientActionID: string;
2228
2147
  }>;
2229
2148
  } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2230
2149
  approvals: {
@@ -2251,11 +2170,15 @@ export declare function buildQueryUtils(client: ContractClient): {
2251
2170
  deadlineAt: Date | null;
2252
2171
  deferGeneration: number;
2253
2172
  deferUntil: Date | null;
2173
+ thread: string | null;
2174
+ taskID: string | null;
2175
+ sequence: number;
2254
2176
  };
2255
2177
  body: {
2256
2178
  sentence: string;
2257
2179
  fields: Record<string, string>;
2258
2180
  ruleSentence: string | null;
2181
+ approveLabel: string;
2259
2182
  memory?: {
2260
2183
  actionHash: string;
2261
2184
  createdAt: Date;
@@ -2283,7 +2206,7 @@ export declare function buildQueryUtils(client: ContractClient): {
2283
2206
  origin: "conversation" | "memory_writer" | "owner" | "task";
2284
2207
  proposalID: string;
2285
2208
  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";
2209
+ 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
2210
  source: "owner" | "owner_data" | "untrusted";
2288
2211
  sources: {
2289
2212
  origin: "conversation" | "memory_writer" | "owner" | "task";
@@ -2308,6 +2231,89 @@ export declare function buildQueryUtils(client: ContractClient): {
2308
2231
  status: number;
2309
2232
  };
2310
2233
  }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2234
+ readProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2235
+ proposalIDs: string[];
2236
+ }, {
2237
+ proposals: {
2238
+ proposal: {
2239
+ proposalID: string;
2240
+ shortID: string;
2241
+ kind: "action" | "internal_change" | "memory_write";
2242
+ riskClass: "always_ask" | "lifting" | "routine";
2243
+ actionHash: string;
2244
+ ruleHash: string | null;
2245
+ cause: string;
2246
+ state: "approved" | "declined" | "deferred" | "lapsed" | "pending" | "withdrawn";
2247
+ createdAt: Date;
2248
+ lapsesAt: Date;
2249
+ deadlineAt: Date | null;
2250
+ deferGeneration: number;
2251
+ deferUntil: Date | null;
2252
+ thread: string | null;
2253
+ taskID: string | null;
2254
+ sequence: number;
2255
+ };
2256
+ body: {
2257
+ sentence: string;
2258
+ fields: Record<string, string>;
2259
+ ruleSentence: string | null;
2260
+ approveLabel: string;
2261
+ memory?: {
2262
+ actionHash: string;
2263
+ createdAt: Date;
2264
+ evidence: {
2265
+ end: number;
2266
+ message: {
2267
+ status: "missing" | "readable" | "shredded" | "unreadable";
2268
+ text?: string | undefined;
2269
+ } | null;
2270
+ sequence: number;
2271
+ start: number;
2272
+ } | null;
2273
+ image: {
2274
+ position: number;
2275
+ sequence: number;
2276
+ thread: string;
2277
+ } | null;
2278
+ isPinned: boolean;
2279
+ isSensitive: boolean;
2280
+ itemID: string;
2281
+ kind: "fact" | "self";
2282
+ lapseAt: Date;
2283
+ newSubject: "owner" | "self" | "shared" | null;
2284
+ operation: "pin" | "remember" | "retire";
2285
+ origin: "conversation" | "memory_writer" | "owner" | "task";
2286
+ proposalID: string;
2287
+ quote: string | null;
2288
+ 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";
2289
+ source: "owner" | "owner_data" | "untrusted";
2290
+ sources: {
2291
+ origin: "conversation" | "memory_writer" | "owner" | "task";
2292
+ proposedAt: Date;
2293
+ thread: string | null;
2294
+ }[];
2295
+ subject: "owner" | "self" | "shared";
2296
+ targetVersion: number | null;
2297
+ text: string;
2298
+ until: Date | null;
2299
+ } | undefined;
2300
+ } | null;
2301
+ task: {
2302
+ id: string;
2303
+ name: string;
2304
+ } | null;
2305
+ choices: ("always_allow" | "approve" | "decline" | "defer")[];
2306
+ answeredOn: string | null;
2307
+ isAnsweredHere: boolean;
2308
+ }[];
2309
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2310
+ UNAUTHORIZED: {
2311
+ message: string;
2312
+ status: number;
2313
+ };
2314
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2315
+ proposalIDs: string[];
2316
+ }>;
2311
2317
  answerProposal: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2312
2318
  proposalID: string;
2313
2319
  actionHash: string;
@@ -2537,6 +2543,10 @@ export declare function buildQueryUtils(client: ContractClient): {
2537
2543
  ratedBy?: string | undefined;
2538
2544
  recalledSequence: number;
2539
2545
  } | undefined;
2546
+ proposal?: {
2547
+ proposalID: string;
2548
+ shortID: string;
2549
+ } | undefined;
2540
2550
  recall?: {
2541
2551
  items: {
2542
2552
  itemID: string;
@@ -2658,6 +2668,10 @@ export declare function buildQueryUtils(client: ContractClient): {
2658
2668
  ratedBy?: string | undefined;
2659
2669
  recalledSequence: number;
2660
2670
  } | undefined;
2671
+ proposal?: {
2672
+ proposalID: string;
2673
+ shortID: string;
2674
+ } | undefined;
2661
2675
  recall?: {
2662
2676
  items: {
2663
2677
  itemID: string;