@heynixie/contract 0.70.2 → 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 (42) hide show
  1. package/dist/contract/action-proposal-schema.d.ts +18 -0
  2. package/dist/contract/approval-contract.d.ts +479 -0
  3. package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +548 -191
  4. package/dist/{contract.d.ts → contract/contract.d.ts} +704 -243
  5. package/dist/contract/forgettable-kinds.d.ts +1 -0
  6. package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +284 -0
  7. package/dist/contract/input-miss-schema.d.ts +23 -0
  8. package/dist/contract/known-contact-schema.d.ts +7 -0
  9. package/dist/contract/logged-input-schema.d.ts +36 -0
  10. package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +92 -217
  11. package/dist/{moment-contract.d.ts → contract/moment-contract.d.ts} +1 -0
  12. package/dist/contract/pause-state-schema.d.ts +9 -0
  13. package/dist/contract/recovery-schema.d.ts +21 -0
  14. package/dist/contract/rule-contract.d.ts +106 -0
  15. package/dist/contract/turn-inputs-contract.d.ts +134 -0
  16. package/dist/index.d.ts +17 -17
  17. package/dist/index.js +979 -667
  18. package/dist/{build-pending-input.d.ts → span/build-pending-input.d.ts} +1 -1
  19. package/dist/{build-span-state.d.ts → span/build-span-state.d.ts} +1 -1
  20. package/dist/{pick-span-source.d.ts → span/pick-span-source.d.ts} +1 -1
  21. package/dist/types.d.ts +3 -3
  22. package/package.json +2 -2
  23. package/dist/proposal-outcome-schema.d.ts +0 -37
  24. package/dist/rule-contract.d.ts +0 -65
  25. /package/dist/{client-header-name.d.ts → contract/client-header-name.d.ts} +0 -0
  26. /package/dist/{forget-backup-schema.d.ts → contract/forget-backup-schema.d.ts} +0 -0
  27. /package/dist/{image-limits.d.ts → contract/image-limits.d.ts} +0 -0
  28. /package/dist/{image-not-found-error.d.ts → contract/image-not-found-error.d.ts} +0 -0
  29. /package/dist/{image-refused-error.d.ts → contract/image-refused-error.d.ts} +0 -0
  30. /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
  31. /package/dist/{memory-export-contract.d.ts → contract/memory-export-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/{task-message-input-schema.d.ts → message/task-message-input-schema.d.ts} +0 -0
  39. /package/dist/{task-message-kind-schema.d.ts → message/task-message-kind-schema.d.ts} +0 -0
  40. /package/dist/{task-message-result-schema.d.ts → message/task-message-result-schema.d.ts} +0 -0
  41. /package/dist/{has-several-words.d.ts → span/has-several-words.d.ts} +0 -0
  42. /package/dist/{span-schema.d.ts → span/span-schema.d.ts} +0 -0
@@ -35,6 +35,7 @@ export declare const contract: {
35
35
  size: z.ZodInt;
36
36
  window: z.ZodInt;
37
37
  }, z.core.$strip>>;
38
+ isRemoved: z.ZodOptional<z.ZodLiteral<true>>;
38
39
  isSilentTurn: z.ZodOptional<z.ZodLiteral<true>>;
39
40
  kind: z.ZodString;
40
41
  message: z.ZodOptional<z.ZodObject<{
@@ -78,6 +79,10 @@ export declare const contract: {
78
79
  ratedBy: z.ZodOptional<z.ZodString>;
79
80
  recalledSequence: z.ZodInt;
80
81
  }, z.core.$strip>>;
82
+ proposal: z.ZodOptional<z.ZodObject<{
83
+ proposalID: z.ZodString;
84
+ shortID: z.ZodString;
85
+ }, z.core.$strip>>;
81
86
  recall: z.ZodOptional<z.ZodObject<{
82
87
  items: z.ZodArray<z.ZodObject<{
83
88
  itemID: z.ZodString;
@@ -160,6 +165,7 @@ export declare const contract: {
160
165
  size: z.ZodInt;
161
166
  window: z.ZodInt;
162
167
  }, z.core.$strip>>;
168
+ isRemoved: z.ZodOptional<z.ZodLiteral<true>>;
163
169
  isSilentTurn: z.ZodOptional<z.ZodLiteral<true>>;
164
170
  kind: z.ZodString;
165
171
  message: z.ZodOptional<z.ZodObject<{
@@ -203,6 +209,10 @@ export declare const contract: {
203
209
  ratedBy: z.ZodOptional<z.ZodString>;
204
210
  recalledSequence: z.ZodInt;
205
211
  }, z.core.$strip>>;
212
+ proposal: z.ZodOptional<z.ZodObject<{
213
+ proposalID: z.ZodString;
214
+ shortID: z.ZodString;
215
+ }, z.core.$strip>>;
206
216
  recall: z.ZodOptional<z.ZodObject<{
207
217
  items: z.ZodArray<z.ZodObject<{
208
218
  itemID: z.ZodString;
@@ -352,12 +362,44 @@ export declare const contract: {
352
362
  readonly status: 404;
353
363
  };
354
364
  }>, Record<never, never>>;
365
+ previewForget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
366
+ thread: z.ZodString;
367
+ sequence: z.ZodInt;
368
+ }, z.core.$strip>, z.ZodObject<{
369
+ momentCount: z.ZodInt;
370
+ memoryItems: z.ZodArray<z.ZodObject<{
371
+ itemID: z.ZodString;
372
+ text: z.ZodString;
373
+ }, z.core.$strip>>;
374
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
375
+ UNAUTHORIZED: {
376
+ message: string;
377
+ status: number;
378
+ };
379
+ }>, {
380
+ RECORD_NOT_FOUND: {
381
+ message: string;
382
+ status: number;
383
+ };
384
+ }>, Record<never, never>>;
355
385
  forget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
356
386
  clientActionID: z.ZodUUID;
357
387
  sequence: z.ZodInt;
358
388
  thread: z.ZodString;
359
389
  }, z.core.$strip>, z.ZodObject<{
360
390
  forgottenAt: z.ZodDate;
391
+ backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
392
+ state: z.ZodLiteral<"off">;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ state: z.ZodLiteral<"pending">;
395
+ }, z.core.$strip>, z.ZodObject<{
396
+ state: z.ZodLiteral<"failed">;
397
+ failure: z.ZodString;
398
+ }, z.core.$strip>, z.ZodObject<{
399
+ state: z.ZodLiteral<"complete">;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ state: z.ZodLiteral<"unknown">;
402
+ }, z.core.$strip>], "state">;
361
403
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
362
404
  UNAUTHORIZED: {
363
405
  message: string;
@@ -373,6 +415,10 @@ export declare const contract: {
373
415
  message: string;
374
416
  status: number;
375
417
  };
418
+ ACTION_NOT_FINISHED: {
419
+ message: string;
420
+ status: number;
421
+ };
376
422
  }>, Record<never, never>>;
377
423
  };
378
424
  tasks: {
@@ -394,6 +440,7 @@ export declare const contract: {
394
440
  stop: "stop";
395
441
  }>>;
396
442
  isPauseRequested: z.ZodBoolean;
443
+ isPausedByNixie: z.ZodBoolean;
397
444
  isTakingMessages: z.ZodBoolean;
398
445
  lastActivityAt: z.ZodDate;
399
446
  name: z.ZodString;
@@ -434,6 +481,7 @@ export declare const contract: {
434
481
  stop: "stop";
435
482
  }>>;
436
483
  isPauseRequested: z.ZodBoolean;
484
+ isPausedByNixie: z.ZodBoolean;
437
485
  isTakingMessages: z.ZodBoolean;
438
486
  lastActivityAt: z.ZodDate;
439
487
  name: z.ZodString;
@@ -940,6 +988,7 @@ export declare const contract: {
940
988
  }, z.core.$strip>, z.ZodObject<{
941
989
  records: z.ZodArray<z.ZodObject<{
942
990
  isGap: z.ZodBoolean;
991
+ isRemoved: z.ZodBoolean;
943
992
  kind: z.ZodString;
944
993
  recordedAt: z.ZodDate;
945
994
  sequence: z.ZodInt;
@@ -2097,223 +2146,6 @@ export declare const contract: {
2097
2146
  status: number;
2098
2147
  };
2099
2148
  }>, Record<never, never>>;
2100
- listProposals: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2101
- proposals: z.ZodArray<z.ZodObject<{
2102
- actionHash: z.ZodString;
2103
- createdAt: z.ZodDate;
2104
- evidence: z.ZodNullable<z.ZodObject<{
2105
- end: z.ZodInt;
2106
- message: z.ZodNullable<z.ZodObject<{
2107
- status: z.ZodEnum<{
2108
- missing: "missing";
2109
- readable: "readable";
2110
- shredded: "shredded";
2111
- unreadable: "unreadable";
2112
- }>;
2113
- text: z.ZodOptional<z.ZodString>;
2114
- }, z.core.$strip>>;
2115
- sequence: z.ZodInt;
2116
- start: z.ZodInt;
2117
- }, z.core.$strip>>;
2118
- image: z.ZodNullable<z.ZodObject<{
2119
- position: z.ZodInt;
2120
- sequence: z.ZodInt;
2121
- thread: z.ZodString;
2122
- }, z.core.$strip>>;
2123
- isPinned: z.ZodBoolean;
2124
- isSensitive: z.ZodBoolean;
2125
- itemID: z.ZodString;
2126
- kind: z.ZodEnum<{
2127
- fact: "fact";
2128
- self: "self";
2129
- }>;
2130
- lapseAt: z.ZodDate;
2131
- newSubject: z.ZodNullable<z.ZodEnum<{
2132
- owner: "owner";
2133
- self: "self";
2134
- shared: "shared";
2135
- }>>;
2136
- operation: z.ZodEnum<{
2137
- pin: "pin";
2138
- remember: "remember";
2139
- retire: "retire";
2140
- }>;
2141
- origin: z.ZodEnum<{
2142
- conversation: "conversation";
2143
- memory_writer: "memory_writer";
2144
- owner: "owner";
2145
- task: "task";
2146
- }>;
2147
- proposalID: z.ZodString;
2148
- quote: z.ZodNullable<z.ZodString>;
2149
- reason: z.ZodEnum<{
2150
- ambiguous_target: "ambiguous_target";
2151
- checker_not_asserted: "checker_not_asserted";
2152
- checker_unreachable: "checker_unreachable";
2153
- checker_unsure: "checker_unsure";
2154
- forgotten_evidence: "forgotten_evidence";
2155
- from_photo: "from_photo";
2156
- invisible_character: "invisible_character";
2157
- no_quote: "no_quote";
2158
- other: "other";
2159
- pinned: "pinned";
2160
- quote_in_quoted_block: "quote_in_quoted_block";
2161
- quote_not_typed: "quote_not_typed";
2162
- self_note: "self_note";
2163
- sensitive: "sensitive";
2164
- subject_change: "subject_change";
2165
- token_missing: "token_missing";
2166
- }>;
2167
- source: z.ZodEnum<{
2168
- owner: "owner";
2169
- owner_data: "owner_data";
2170
- untrusted: "untrusted";
2171
- }>;
2172
- sources: z.ZodArray<z.ZodObject<{
2173
- origin: z.ZodEnum<{
2174
- conversation: "conversation";
2175
- memory_writer: "memory_writer";
2176
- owner: "owner";
2177
- task: "task";
2178
- }>;
2179
- proposedAt: z.ZodDate;
2180
- thread: z.ZodNullable<z.ZodString>;
2181
- }, z.core.$strip>>;
2182
- subject: z.ZodEnum<{
2183
- owner: "owner";
2184
- self: "self";
2185
- shared: "shared";
2186
- }>;
2187
- targetVersion: z.ZodNullable<z.ZodInt>;
2188
- text: z.ZodString;
2189
- until: z.ZodNullable<z.ZodDate>;
2190
- }, z.core.$strip>>;
2191
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2192
- UNAUTHORIZED: {
2193
- message: string;
2194
- status: number;
2195
- };
2196
- }>, {
2197
- MEMORY_NOT_STARTED: {
2198
- message: string;
2199
- status: number;
2200
- };
2201
- }>, Record<never, never>>;
2202
- approveProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2203
- answers: z.ZodArray<z.ZodObject<{
2204
- actionHash: z.ZodString;
2205
- clientActionID: z.ZodUUID;
2206
- proposalID: z.ZodString;
2207
- editedText: z.ZodOptional<z.ZodString>;
2208
- ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
2209
- revisionOf: z.ZodOptional<z.ZodObject<{
2210
- itemID: z.ZodString;
2211
- version: z.ZodInt;
2212
- }, z.core.$strip>>;
2213
- }, z.core.$strip>>;
2214
- }, z.core.$strip>, z.ZodObject<{
2215
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2216
- proposalID: z.ZodString;
2217
- status: z.ZodLiteral<"applied">;
2218
- }, z.core.$strip>, z.ZodObject<{
2219
- proposalID: z.ZodString;
2220
- status: z.ZodLiteral<"rejected">;
2221
- }, z.core.$strip>, z.ZodObject<{
2222
- item: z.ZodObject<{
2223
- itemID: z.ZodString;
2224
- text: z.ZodString;
2225
- version: z.ZodInt;
2226
- }, z.core.$strip>;
2227
- proposalID: z.ZodString;
2228
- status: z.ZodLiteral<"close_match">;
2229
- }, z.core.$strip>, z.ZodObject<{
2230
- cause: z.ZodEnum<{
2231
- answered: "answered";
2232
- changed: "changed";
2233
- gone: "gone";
2234
- lapsed: "lapsed";
2235
- moved: "moved";
2236
- }>;
2237
- proposalID: z.ZodString;
2238
- status: z.ZodLiteral<"stale">;
2239
- }, z.core.$strip>, z.ZodObject<{
2240
- code: z.ZodEnum<{
2241
- CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
2242
- PINNED_CORE_FULL: "PINNED_CORE_FULL";
2243
- PIN_EDIT: "PIN_EDIT";
2244
- RETIREMENT_EDIT: "RETIREMENT_EDIT";
2245
- REVISION_TARGET: "REVISION_TARGET";
2246
- WRONG_STATE: "WRONG_STATE";
2247
- }>;
2248
- proposalID: z.ZodString;
2249
- status: z.ZodLiteral<"refused">;
2250
- }, z.core.$strip>], "status">>;
2251
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2252
- UNAUTHORIZED: {
2253
- message: string;
2254
- status: number;
2255
- };
2256
- }>, {
2257
- MEMORY_NOT_STARTED: {
2258
- message: string;
2259
- status: number;
2260
- };
2261
- }>, Record<never, never>>;
2262
- rejectProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2263
- answers: z.ZodArray<z.ZodObject<{
2264
- actionHash: z.ZodString;
2265
- clientActionID: z.ZodUUID;
2266
- proposalID: z.ZodString;
2267
- reason: z.ZodOptional<z.ZodString>;
2268
- }, z.core.$strip>>;
2269
- }, z.core.$strip>, z.ZodObject<{
2270
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2271
- proposalID: z.ZodString;
2272
- status: z.ZodLiteral<"applied">;
2273
- }, z.core.$strip>, z.ZodObject<{
2274
- proposalID: z.ZodString;
2275
- status: z.ZodLiteral<"rejected">;
2276
- }, z.core.$strip>, z.ZodObject<{
2277
- item: z.ZodObject<{
2278
- itemID: z.ZodString;
2279
- text: z.ZodString;
2280
- version: z.ZodInt;
2281
- }, z.core.$strip>;
2282
- proposalID: z.ZodString;
2283
- status: z.ZodLiteral<"close_match">;
2284
- }, z.core.$strip>, z.ZodObject<{
2285
- cause: z.ZodEnum<{
2286
- answered: "answered";
2287
- changed: "changed";
2288
- gone: "gone";
2289
- lapsed: "lapsed";
2290
- moved: "moved";
2291
- }>;
2292
- proposalID: z.ZodString;
2293
- status: z.ZodLiteral<"stale">;
2294
- }, z.core.$strip>, z.ZodObject<{
2295
- code: z.ZodEnum<{
2296
- CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
2297
- PINNED_CORE_FULL: "PINNED_CORE_FULL";
2298
- PIN_EDIT: "PIN_EDIT";
2299
- RETIREMENT_EDIT: "RETIREMENT_EDIT";
2300
- REVISION_TARGET: "REVISION_TARGET";
2301
- WRONG_STATE: "WRONG_STATE";
2302
- }>;
2303
- proposalID: z.ZodString;
2304
- status: z.ZodLiteral<"refused">;
2305
- }, z.core.$strip>], "status">>;
2306
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2307
- UNAUTHORIZED: {
2308
- message: string;
2309
- status: number;
2310
- };
2311
- }>, {
2312
- MEMORY_NOT_STARTED: {
2313
- message: string;
2314
- status: number;
2315
- };
2316
- }>, Record<never, never>>;
2317
2149
  readVersions: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2318
2150
  versions: z.ZodArray<z.ZodObject<{
2319
2151
  itemID: z.ZodString;
@@ -2388,6 +2220,96 @@ export declare const contract: {
2388
2220
  };
2389
2221
  }>, Record<never, never>>;
2390
2222
  };
2223
+ nixie: {
2224
+ read: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2225
+ paused: z.ZodNullable<z.ZodObject<{
2226
+ cause: z.ZodEnum<{
2227
+ owner: "owner";
2228
+ restore: "restore";
2229
+ spending: "spending";
2230
+ }>;
2231
+ since: z.ZodDate;
2232
+ }, z.core.$strip>>;
2233
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2234
+ UNAUTHORIZED: {
2235
+ message: string;
2236
+ status: number;
2237
+ };
2238
+ }>, Record<never, never>>;
2239
+ pause: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2240
+ clientActionID: z.ZodUUID;
2241
+ }, z.core.$strip>, z.ZodObject<{
2242
+ paused: z.ZodNullable<z.ZodObject<{
2243
+ cause: z.ZodEnum<{
2244
+ owner: "owner";
2245
+ restore: "restore";
2246
+ spending: "spending";
2247
+ }>;
2248
+ since: z.ZodDate;
2249
+ }, z.core.$strip>>;
2250
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2251
+ UNAUTHORIZED: {
2252
+ message: string;
2253
+ status: number;
2254
+ };
2255
+ }>, {
2256
+ CLIENT_ACTION_ID_REUSED: {
2257
+ message: string;
2258
+ status: number;
2259
+ };
2260
+ }>, Record<never, never>>;
2261
+ resume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2262
+ clientActionID: z.ZodUUID;
2263
+ }, z.core.$strip>, z.ZodObject<{
2264
+ paused: z.ZodNullable<z.ZodObject<{
2265
+ cause: z.ZodEnum<{
2266
+ owner: "owner";
2267
+ restore: "restore";
2268
+ spending: "spending";
2269
+ }>;
2270
+ since: z.ZodDate;
2271
+ }, z.core.$strip>>;
2272
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2273
+ UNAUTHORIZED: {
2274
+ message: string;
2275
+ status: number;
2276
+ };
2277
+ }>, {
2278
+ CLIENT_ACTION_ID_REUSED: {
2279
+ message: string;
2280
+ status: number;
2281
+ };
2282
+ }>, Record<never, never>>;
2283
+ };
2284
+ recovery: {
2285
+ read: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2286
+ recovery: z.ZodNullable<z.ZodObject<{
2287
+ restoredAt: z.ZodDate;
2288
+ backupTakenAt: z.ZodDate;
2289
+ toCheck: z.ZodArray<z.ZodObject<{
2290
+ taskID: z.ZodString;
2291
+ name: z.ZodString;
2292
+ stateAtBackup: z.ZodEnum<{
2293
+ closed: "closed";
2294
+ done: "done";
2295
+ failed: "failed";
2296
+ paused: "paused";
2297
+ ready: "ready";
2298
+ running: "running";
2299
+ stopped: "stopped";
2300
+ waiting: "waiting";
2301
+ }>;
2302
+ wasRunning: z.ZodBoolean;
2303
+ pendingActions: z.ZodInt;
2304
+ }, z.core.$strip>>;
2305
+ }, z.core.$strip>>;
2306
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2307
+ UNAUTHORIZED: {
2308
+ message: string;
2309
+ status: number;
2310
+ };
2311
+ }>, Record<never, never>>;
2312
+ };
2391
2313
  backups: {
2392
2314
  readNotice: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2393
2315
  notice: z.ZodNullable<z.ZodObject<{
@@ -2406,22 +2328,418 @@ export declare const contract: {
2406
2328
  }>, Record<never, never>>;
2407
2329
  };
2408
2330
  rules: {
2409
- listProposals: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2410
- proposals: z.ZodArray<z.ZodObject<{
2411
- proposalID: z.ZodString;
2412
- changes: z.ZodArray<z.ZodObject<{
2413
- ruleID: z.ZodString;
2414
- before: z.ZodNullable<z.ZodObject<{
2415
- ruleHash: z.ZodString;
2416
- sentence: z.ZodString;
2331
+ readRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2332
+ ruleID: z.ZodString;
2333
+ }, z.core.$strip>, z.ZodObject<{
2334
+ ruleID: z.ZodString;
2335
+ revision: z.ZodInt;
2336
+ sentence: z.ZodString;
2337
+ outcome: z.ZodEnum<{
2338
+ allow: "allow";
2339
+ ask: "ask";
2340
+ deny: "deny";
2341
+ }>;
2342
+ destinations: z.ZodArray<z.ZodString>;
2343
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2344
+ UNAUTHORIZED: {
2345
+ message: string;
2346
+ status: number;
2347
+ };
2348
+ }>, {
2349
+ NOT_FOUND: {
2350
+ message: string;
2351
+ status: number;
2352
+ };
2353
+ }>, Record<never, never>>;
2354
+ removeRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2355
+ ruleID: z.ZodString;
2356
+ revision: z.ZodInt;
2357
+ clientActionID: z.ZodUUID;
2358
+ }, z.core.$strip>, z.ZodObject<{
2359
+ ruleID: z.ZodString;
2360
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2361
+ UNAUTHORIZED: {
2362
+ message: string;
2363
+ status: number;
2364
+ };
2365
+ }>, {
2366
+ CLIENT_ACTION_ID_REUSED: {
2367
+ message: string;
2368
+ status: number;
2369
+ };
2370
+ }>, {
2371
+ NOT_FOUND: {
2372
+ message: string;
2373
+ status: number;
2374
+ };
2375
+ CONFLICT: {
2376
+ message: string;
2377
+ status: number;
2378
+ data: z.ZodObject<{
2379
+ revision: z.ZodInt;
2380
+ }, z.core.$strip>;
2381
+ };
2382
+ NOT_ALLOWED: {
2383
+ message: string;
2384
+ status: number;
2385
+ data: z.ZodObject<{
2386
+ reason: z.ZodEnum<{
2387
+ empty: "empty";
2388
+ widens: "widens";
2389
+ }>;
2390
+ }, z.core.$strip>;
2391
+ };
2392
+ }>, Record<never, never>>;
2393
+ editRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2394
+ ruleID: z.ZodString;
2395
+ revision: z.ZodInt;
2396
+ destinations: z.ZodArray<z.ZodString>;
2397
+ clientActionID: z.ZodUUID;
2398
+ }, z.core.$strip>, z.ZodObject<{
2399
+ ruleID: z.ZodString;
2400
+ revision: z.ZodInt;
2401
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2402
+ UNAUTHORIZED: {
2403
+ message: string;
2404
+ status: number;
2405
+ };
2406
+ }>, {
2407
+ CLIENT_ACTION_ID_REUSED: {
2408
+ message: string;
2409
+ status: number;
2410
+ };
2411
+ }>, {
2412
+ NOT_FOUND: {
2413
+ message: string;
2414
+ status: number;
2415
+ };
2416
+ CONFLICT: {
2417
+ message: string;
2418
+ status: number;
2419
+ data: z.ZodObject<{
2420
+ revision: z.ZodInt;
2421
+ }, z.core.$strip>;
2422
+ };
2423
+ NOT_ALLOWED: {
2424
+ message: string;
2425
+ status: number;
2426
+ data: z.ZodObject<{
2427
+ reason: z.ZodEnum<{
2428
+ empty: "empty";
2429
+ widens: "widens";
2430
+ }>;
2431
+ }, z.core.$strip>;
2432
+ };
2433
+ }>, Record<never, never>>;
2434
+ };
2435
+ approvals: {
2436
+ listItems: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2437
+ defer: z.ZodObject<{
2438
+ defaultMinutes: z.ZodInt;
2439
+ eveningAt: z.ZodString;
2440
+ morningAt: z.ZodString;
2441
+ zone: z.ZodString;
2442
+ }, z.core.$strip>;
2443
+ items: z.ZodArray<z.ZodObject<{
2444
+ group: z.ZodEnum<{
2445
+ always_ask: "always_ask";
2446
+ deferred: "deferred";
2447
+ memory: "memory";
2448
+ routine: "routine";
2449
+ }>;
2450
+ proposal: z.ZodObject<{
2451
+ proposalID: z.ZodString;
2452
+ shortID: z.ZodString;
2453
+ kind: z.ZodEnum<{
2454
+ action: "action";
2455
+ internal_change: "internal_change";
2456
+ memory_write: "memory_write";
2457
+ }>;
2458
+ riskClass: z.ZodEnum<{
2459
+ always_ask: "always_ask";
2460
+ lifting: "lifting";
2461
+ routine: "routine";
2462
+ }>;
2463
+ actionHash: z.ZodString;
2464
+ ruleHash: z.ZodNullable<z.ZodString>;
2465
+ cause: z.ZodString;
2466
+ state: z.ZodEnum<{
2467
+ approved: "approved";
2468
+ declined: "declined";
2469
+ deferred: "deferred";
2470
+ lapsed: "lapsed";
2471
+ pending: "pending";
2472
+ withdrawn: "withdrawn";
2473
+ }>;
2474
+ createdAt: z.ZodDate;
2475
+ lapsesAt: z.ZodDate;
2476
+ deadlineAt: z.ZodNullable<z.ZodDate>;
2477
+ deferGeneration: z.ZodInt;
2478
+ deferUntil: z.ZodNullable<z.ZodDate>;
2479
+ thread: z.ZodNullable<z.ZodString>;
2480
+ taskID: z.ZodNullable<z.ZodString>;
2481
+ sequence: z.ZodInt;
2482
+ }, z.core.$strip>;
2483
+ body: z.ZodObject<{
2484
+ sentence: z.ZodString;
2485
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2486
+ ruleSentence: z.ZodNullable<z.ZodString>;
2487
+ approveLabel: z.ZodString;
2488
+ memory: z.ZodOptional<z.ZodObject<{
2489
+ actionHash: z.ZodString;
2490
+ createdAt: z.ZodDate;
2491
+ evidence: z.ZodNullable<z.ZodObject<{
2492
+ end: z.ZodInt;
2493
+ message: z.ZodNullable<z.ZodObject<{
2494
+ status: z.ZodEnum<{
2495
+ missing: "missing";
2496
+ readable: "readable";
2497
+ shredded: "shredded";
2498
+ unreadable: "unreadable";
2499
+ }>;
2500
+ text: z.ZodOptional<z.ZodString>;
2501
+ }, z.core.$strip>>;
2502
+ sequence: z.ZodInt;
2503
+ start: z.ZodInt;
2504
+ }, z.core.$strip>>;
2505
+ image: z.ZodNullable<z.ZodObject<{
2506
+ position: z.ZodInt;
2507
+ sequence: z.ZodInt;
2508
+ thread: z.ZodString;
2509
+ }, z.core.$strip>>;
2510
+ isPinned: z.ZodBoolean;
2511
+ isSensitive: z.ZodBoolean;
2512
+ itemID: z.ZodString;
2513
+ kind: z.ZodEnum<{
2514
+ fact: "fact";
2515
+ self: "self";
2516
+ }>;
2517
+ lapseAt: z.ZodDate;
2518
+ newSubject: z.ZodNullable<z.ZodEnum<{
2519
+ owner: "owner";
2520
+ self: "self";
2521
+ shared: "shared";
2522
+ }>>;
2523
+ operation: z.ZodEnum<{
2524
+ pin: "pin";
2525
+ remember: "remember";
2526
+ retire: "retire";
2527
+ }>;
2528
+ origin: z.ZodEnum<{
2529
+ conversation: "conversation";
2530
+ memory_writer: "memory_writer";
2531
+ owner: "owner";
2532
+ task: "task";
2533
+ }>;
2534
+ proposalID: z.ZodString;
2535
+ quote: z.ZodNullable<z.ZodString>;
2536
+ reason: z.ZodEnum<{
2537
+ ambiguous_target: "ambiguous_target";
2538
+ ask_rule: "ask_rule";
2539
+ checker_not_asserted: "checker_not_asserted";
2540
+ checker_unreachable: "checker_unreachable";
2541
+ checker_unsure: "checker_unsure";
2542
+ forgotten_evidence: "forgotten_evidence";
2543
+ from_photo: "from_photo";
2544
+ invisible_character: "invisible_character";
2545
+ no_quote: "no_quote";
2546
+ other: "other";
2547
+ pinned: "pinned";
2548
+ quote_in_quoted_block: "quote_in_quoted_block";
2549
+ quote_not_typed: "quote_not_typed";
2550
+ self_note: "self_note";
2551
+ sensitive: "sensitive";
2552
+ subject_change: "subject_change";
2553
+ token_missing: "token_missing";
2554
+ }>;
2555
+ source: z.ZodEnum<{
2556
+ owner: "owner";
2557
+ owner_data: "owner_data";
2558
+ untrusted: "untrusted";
2559
+ }>;
2560
+ sources: z.ZodArray<z.ZodObject<{
2561
+ origin: z.ZodEnum<{
2562
+ conversation: "conversation";
2563
+ memory_writer: "memory_writer";
2564
+ owner: "owner";
2565
+ task: "task";
2566
+ }>;
2567
+ proposedAt: z.ZodDate;
2568
+ thread: z.ZodNullable<z.ZodString>;
2569
+ }, z.core.$strip>>;
2570
+ subject: z.ZodEnum<{
2571
+ owner: "owner";
2572
+ self: "self";
2573
+ shared: "shared";
2574
+ }>;
2575
+ targetVersion: z.ZodNullable<z.ZodInt>;
2576
+ text: z.ZodString;
2577
+ until: z.ZodNullable<z.ZodDate>;
2417
2578
  }, z.core.$strip>>;
2418
- after: z.ZodNullable<z.ZodObject<{
2419
- ruleHash: z.ZodString;
2420
- sentence: z.ZodString;
2579
+ }, z.core.$strip>;
2580
+ task: z.ZodNullable<z.ZodObject<{
2581
+ id: z.ZodString;
2582
+ name: z.ZodString;
2583
+ }, z.core.$strip>>;
2584
+ choices: z.ZodArray<z.ZodEnum<{
2585
+ always_allow: "always_allow";
2586
+ approve: "approve";
2587
+ decline: "decline";
2588
+ defer: "defer";
2589
+ }>>;
2590
+ }, z.core.$strip>>;
2591
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2592
+ UNAUTHORIZED: {
2593
+ message: string;
2594
+ status: number;
2595
+ };
2596
+ }>, Record<never, never>>;
2597
+ readProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2598
+ proposalIDs: z.ZodArray<z.ZodString>;
2599
+ }, z.core.$strip>, z.ZodObject<{
2600
+ proposals: z.ZodArray<z.ZodObject<{
2601
+ proposal: z.ZodObject<{
2602
+ proposalID: z.ZodString;
2603
+ shortID: z.ZodString;
2604
+ kind: z.ZodEnum<{
2605
+ action: "action";
2606
+ internal_change: "internal_change";
2607
+ memory_write: "memory_write";
2608
+ }>;
2609
+ riskClass: z.ZodEnum<{
2610
+ always_ask: "always_ask";
2611
+ lifting: "lifting";
2612
+ routine: "routine";
2613
+ }>;
2614
+ actionHash: z.ZodString;
2615
+ ruleHash: z.ZodNullable<z.ZodString>;
2616
+ cause: z.ZodString;
2617
+ state: z.ZodEnum<{
2618
+ approved: "approved";
2619
+ declined: "declined";
2620
+ deferred: "deferred";
2621
+ lapsed: "lapsed";
2622
+ pending: "pending";
2623
+ withdrawn: "withdrawn";
2624
+ }>;
2625
+ createdAt: z.ZodDate;
2626
+ lapsesAt: z.ZodDate;
2627
+ deadlineAt: z.ZodNullable<z.ZodDate>;
2628
+ deferGeneration: z.ZodInt;
2629
+ deferUntil: z.ZodNullable<z.ZodDate>;
2630
+ thread: z.ZodNullable<z.ZodString>;
2631
+ taskID: z.ZodNullable<z.ZodString>;
2632
+ sequence: z.ZodInt;
2633
+ }, z.core.$strip>;
2634
+ body: z.ZodNullable<z.ZodObject<{
2635
+ sentence: z.ZodString;
2636
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2637
+ ruleSentence: z.ZodNullable<z.ZodString>;
2638
+ approveLabel: z.ZodString;
2639
+ memory: z.ZodOptional<z.ZodObject<{
2640
+ actionHash: z.ZodString;
2641
+ createdAt: z.ZodDate;
2642
+ evidence: z.ZodNullable<z.ZodObject<{
2643
+ end: z.ZodInt;
2644
+ message: z.ZodNullable<z.ZodObject<{
2645
+ status: z.ZodEnum<{
2646
+ missing: "missing";
2647
+ readable: "readable";
2648
+ shredded: "shredded";
2649
+ unreadable: "unreadable";
2650
+ }>;
2651
+ text: z.ZodOptional<z.ZodString>;
2652
+ }, z.core.$strip>>;
2653
+ sequence: z.ZodInt;
2654
+ start: z.ZodInt;
2655
+ }, z.core.$strip>>;
2656
+ image: z.ZodNullable<z.ZodObject<{
2657
+ position: z.ZodInt;
2658
+ sequence: z.ZodInt;
2659
+ thread: z.ZodString;
2660
+ }, z.core.$strip>>;
2661
+ isPinned: z.ZodBoolean;
2662
+ isSensitive: z.ZodBoolean;
2663
+ itemID: z.ZodString;
2664
+ kind: z.ZodEnum<{
2665
+ fact: "fact";
2666
+ self: "self";
2667
+ }>;
2668
+ lapseAt: z.ZodDate;
2669
+ newSubject: z.ZodNullable<z.ZodEnum<{
2670
+ owner: "owner";
2671
+ self: "self";
2672
+ shared: "shared";
2673
+ }>>;
2674
+ operation: z.ZodEnum<{
2675
+ pin: "pin";
2676
+ remember: "remember";
2677
+ retire: "retire";
2678
+ }>;
2679
+ origin: z.ZodEnum<{
2680
+ conversation: "conversation";
2681
+ memory_writer: "memory_writer";
2682
+ owner: "owner";
2683
+ task: "task";
2684
+ }>;
2685
+ proposalID: z.ZodString;
2686
+ quote: z.ZodNullable<z.ZodString>;
2687
+ reason: z.ZodEnum<{
2688
+ ambiguous_target: "ambiguous_target";
2689
+ ask_rule: "ask_rule";
2690
+ checker_not_asserted: "checker_not_asserted";
2691
+ checker_unreachable: "checker_unreachable";
2692
+ checker_unsure: "checker_unsure";
2693
+ forgotten_evidence: "forgotten_evidence";
2694
+ from_photo: "from_photo";
2695
+ invisible_character: "invisible_character";
2696
+ no_quote: "no_quote";
2697
+ other: "other";
2698
+ pinned: "pinned";
2699
+ quote_in_quoted_block: "quote_in_quoted_block";
2700
+ quote_not_typed: "quote_not_typed";
2701
+ self_note: "self_note";
2702
+ sensitive: "sensitive";
2703
+ subject_change: "subject_change";
2704
+ token_missing: "token_missing";
2705
+ }>;
2706
+ source: z.ZodEnum<{
2707
+ owner: "owner";
2708
+ owner_data: "owner_data";
2709
+ untrusted: "untrusted";
2710
+ }>;
2711
+ sources: z.ZodArray<z.ZodObject<{
2712
+ origin: z.ZodEnum<{
2713
+ conversation: "conversation";
2714
+ memory_writer: "memory_writer";
2715
+ owner: "owner";
2716
+ task: "task";
2717
+ }>;
2718
+ proposedAt: z.ZodDate;
2719
+ thread: z.ZodNullable<z.ZodString>;
2720
+ }, z.core.$strip>>;
2721
+ subject: z.ZodEnum<{
2722
+ owner: "owner";
2723
+ self: "self";
2724
+ shared: "shared";
2725
+ }>;
2726
+ targetVersion: z.ZodNullable<z.ZodInt>;
2727
+ text: z.ZodString;
2728
+ until: z.ZodNullable<z.ZodDate>;
2421
2729
  }, z.core.$strip>>;
2422
2730
  }, z.core.$strip>>;
2423
- createdAt: z.ZodDate;
2424
- lapseAt: z.ZodDate;
2731
+ task: z.ZodNullable<z.ZodObject<{
2732
+ id: z.ZodString;
2733
+ name: z.ZodString;
2734
+ }, z.core.$strip>>;
2735
+ choices: z.ZodArray<z.ZodEnum<{
2736
+ always_allow: "always_allow";
2737
+ approve: "approve";
2738
+ decline: "decline";
2739
+ defer: "defer";
2740
+ }>>;
2741
+ answeredOn: z.ZodNullable<z.ZodString>;
2742
+ isAnsweredHere: z.ZodBoolean;
2425
2743
  }, z.core.$strip>>;
2426
2744
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2427
2745
  UNAUTHORIZED: {
@@ -2429,41 +2747,164 @@ export declare const contract: {
2429
2747
  status: number;
2430
2748
  };
2431
2749
  }>, Record<never, never>>;
2432
- approveProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2750
+ answerProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2433
2751
  proposalID: z.ZodString;
2752
+ actionHash: z.ZodString;
2753
+ choice: z.ZodEnum<{
2754
+ always_allow: "always_allow";
2755
+ approve: "approve";
2756
+ decline: "decline";
2757
+ defer: "defer";
2758
+ }>;
2759
+ ruleHash: z.ZodOptional<z.ZodString>;
2760
+ deferUntil: z.ZodOptional<z.ZodDate>;
2761
+ note: z.ZodOptional<z.ZodString>;
2762
+ clientActionID: z.ZodUUID;
2763
+ memory: z.ZodOptional<z.ZodObject<{
2764
+ editedText: z.ZodOptional<z.ZodString>;
2765
+ revisionOf: z.ZodOptional<z.ZodObject<{
2766
+ itemID: z.ZodString;
2767
+ version: z.ZodInt;
2768
+ }, z.core.$strip>>;
2769
+ ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
2770
+ }, z.core.$strip>>;
2771
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2772
+ proposalID: z.ZodString;
2773
+ state: z.ZodLiteral<"approved">;
2774
+ rule: z.ZodOptional<z.ZodObject<{
2775
+ id: z.ZodString;
2776
+ revision: z.ZodInt;
2777
+ }, z.core.$strip>>;
2434
2778
  }, z.core.$strip>, z.ZodObject<{
2435
2779
  proposalID: z.ZodString;
2436
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2780
+ state: z.ZodEnum<{
2781
+ declined: "declined";
2782
+ deferred: "deferred";
2783
+ }>;
2784
+ }, z.core.$strip>, z.ZodObject<{
2785
+ proposalID: z.ZodString;
2786
+ state: z.ZodLiteral<"pending">;
2787
+ closeMatch: z.ZodObject<{
2788
+ itemID: z.ZodString;
2789
+ text: z.ZodString;
2790
+ version: z.ZodInt;
2791
+ }, z.core.$strip>;
2792
+ }, z.core.$strip>], "state">, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2437
2793
  UNAUTHORIZED: {
2438
2794
  message: string;
2439
2795
  status: number;
2440
2796
  };
2441
2797
  }>, {
2442
- NOT_FOUND: {
2798
+ CLIENT_ACTION_ID_REUSED: {
2799
+ message: string;
2800
+ status: number;
2801
+ };
2802
+ }>, {
2803
+ CONFLICT: {
2443
2804
  message: string;
2444
2805
  status: number;
2806
+ data: z.ZodObject<{
2807
+ current: z.ZodObject<{
2808
+ actionHash: z.ZodString;
2809
+ ruleHash: z.ZodNullable<z.ZodString>;
2810
+ }, z.core.$strip>;
2811
+ }, z.core.$strip>;
2445
2812
  };
2446
- PROPOSAL_CLOSED: {
2813
+ CLOSED: {
2447
2814
  message: string;
2448
2815
  status: number;
2816
+ data: z.ZodObject<{
2817
+ state: z.ZodEnum<{
2818
+ approved: "approved";
2819
+ declined: "declined";
2820
+ deferred: "deferred";
2821
+ lapsed: "lapsed";
2822
+ pending: "pending";
2823
+ withdrawn: "withdrawn";
2824
+ }>;
2825
+ }, z.core.$strip>;
2826
+ };
2827
+ NOT_ALLOWED: {
2828
+ message: string;
2829
+ status: number;
2830
+ data: z.ZodObject<{
2831
+ reason: z.ZodString;
2832
+ }, z.core.$strip>;
2449
2833
  };
2450
2834
  }>, Record<never, never>>;
2451
- rejectProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2452
- proposalID: z.ZodString;
2453
- reason: z.ZodString;
2835
+ answerProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2836
+ answers: z.ZodArray<z.ZodObject<{
2837
+ proposalID: z.ZodString;
2838
+ actionHash: z.ZodString;
2839
+ choice: z.ZodEnum<{
2840
+ always_allow: "always_allow";
2841
+ approve: "approve";
2842
+ decline: "decline";
2843
+ defer: "defer";
2844
+ }>;
2845
+ ruleHash: z.ZodOptional<z.ZodString>;
2846
+ deferUntil: z.ZodOptional<z.ZodDate>;
2847
+ note: z.ZodOptional<z.ZodString>;
2848
+ clientActionID: z.ZodUUID;
2849
+ memory: z.ZodOptional<z.ZodObject<{
2850
+ editedText: z.ZodOptional<z.ZodString>;
2851
+ revisionOf: z.ZodOptional<z.ZodObject<{
2852
+ itemID: z.ZodString;
2853
+ version: z.ZodInt;
2854
+ }, z.core.$strip>>;
2855
+ ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
2856
+ }, z.core.$strip>>;
2857
+ }, z.core.$strip>>;
2454
2858
  }, z.core.$strip>, z.ZodObject<{
2455
- proposalID: z.ZodString;
2859
+ results: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2860
+ proposalID: z.ZodString;
2861
+ state: z.ZodLiteral<"approved">;
2862
+ rule: z.ZodOptional<z.ZodObject<{
2863
+ id: z.ZodString;
2864
+ revision: z.ZodInt;
2865
+ }, z.core.$strip>>;
2866
+ }, z.core.$strip>, z.ZodObject<{
2867
+ proposalID: z.ZodString;
2868
+ state: z.ZodEnum<{
2869
+ declined: "declined";
2870
+ deferred: "deferred";
2871
+ }>;
2872
+ }, z.core.$strip>, z.ZodObject<{
2873
+ proposalID: z.ZodString;
2874
+ state: z.ZodLiteral<"pending">;
2875
+ closeMatch: z.ZodObject<{
2876
+ itemID: z.ZodString;
2877
+ text: z.ZodString;
2878
+ version: z.ZodInt;
2879
+ }, z.core.$strip>;
2880
+ }, z.core.$strip>], "state">, z.ZodObject<{
2881
+ proposalID: z.ZodString;
2882
+ error: z.ZodEnum<{
2883
+ CLOSED: "CLOSED";
2884
+ CONFLICT: "CONFLICT";
2885
+ NOT_ALLOWED: "NOT_ALLOWED";
2886
+ }>;
2887
+ current: z.ZodOptional<z.ZodObject<{
2888
+ actionHash: z.ZodString;
2889
+ ruleHash: z.ZodNullable<z.ZodString>;
2890
+ }, z.core.$strip>>;
2891
+ state: z.ZodOptional<z.ZodEnum<{
2892
+ approved: "approved";
2893
+ declined: "declined";
2894
+ deferred: "deferred";
2895
+ lapsed: "lapsed";
2896
+ pending: "pending";
2897
+ withdrawn: "withdrawn";
2898
+ }>>;
2899
+ reason: z.ZodOptional<z.ZodString>;
2900
+ }, z.core.$strip>]>>;
2456
2901
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2457
2902
  UNAUTHORIZED: {
2458
2903
  message: string;
2459
2904
  status: number;
2460
2905
  };
2461
2906
  }>, {
2462
- NOT_FOUND: {
2463
- message: string;
2464
- status: number;
2465
- };
2466
- PROPOSAL_CLOSED: {
2907
+ CLIENT_ACTION_ID_REUSED: {
2467
2908
  message: string;
2468
2909
  status: number;
2469
2910
  };
@@ -2498,6 +2939,7 @@ export declare const contract: {
2498
2939
  size: number;
2499
2940
  window: number;
2500
2941
  } | undefined;
2942
+ isRemoved?: true | undefined;
2501
2943
  isSilentTurn?: true | undefined;
2502
2944
  kind: string;
2503
2945
  message?: {
@@ -2527,6 +2969,10 @@ export declare const contract: {
2527
2969
  ratedBy?: string | undefined;
2528
2970
  recalledSequence: number;
2529
2971
  } | undefined;
2972
+ proposal?: {
2973
+ proposalID: string;
2974
+ shortID: string;
2975
+ } | undefined;
2530
2976
  recall?: {
2531
2977
  items: {
2532
2978
  itemID: string;
@@ -2604,6 +3050,7 @@ export declare const contract: {
2604
3050
  size: number;
2605
3051
  window: number;
2606
3052
  } | undefined;
3053
+ isRemoved?: true | undefined;
2607
3054
  isSilentTurn?: true | undefined;
2608
3055
  kind: string;
2609
3056
  message?: {
@@ -2633,6 +3080,10 @@ export declare const contract: {
2633
3080
  ratedBy?: string | undefined;
2634
3081
  recalledSequence: number;
2635
3082
  } | undefined;
3083
+ proposal?: {
3084
+ proposalID: string;
3085
+ shortID: string;
3086
+ } | undefined;
2636
3087
  recall?: {
2637
3088
  items: {
2638
3089
  itemID: string;
@@ -2721,6 +3172,7 @@ export declare const contract: {
2721
3172
  size: number;
2722
3173
  window: number;
2723
3174
  } | undefined;
3175
+ isRemoved?: true | undefined;
2724
3176
  isSilentTurn?: true | undefined;
2725
3177
  kind: string;
2726
3178
  message?: {
@@ -2750,6 +3202,10 @@ export declare const contract: {
2750
3202
  ratedBy?: string | undefined;
2751
3203
  recalledSequence: number;
2752
3204
  } | undefined;
3205
+ proposal?: {
3206
+ proposalID: string;
3207
+ shortID: string;
3208
+ } | undefined;
2753
3209
  recall?: {
2754
3210
  items: {
2755
3211
  itemID: string;
@@ -2827,6 +3283,7 @@ export declare const contract: {
2827
3283
  size: number;
2828
3284
  window: number;
2829
3285
  } | undefined;
3286
+ isRemoved?: true | undefined;
2830
3287
  isSilentTurn?: true | undefined;
2831
3288
  kind: string;
2832
3289
  message?: {
@@ -2856,6 +3313,10 @@ export declare const contract: {
2856
3313
  ratedBy?: string | undefined;
2857
3314
  recalledSequence: number;
2858
3315
  } | undefined;
3316
+ proposal?: {
3317
+ proposalID: string;
3318
+ shortID: string;
3319
+ } | undefined;
2859
3320
  recall?: {
2860
3321
  items: {
2861
3322
  itemID: string;