@heynixie/contract 0.68.0 → 0.70.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.
@@ -1568,6 +1568,18 @@ export declare function buildQueryUtils(client: ContractClient): {
1568
1568
  version: number;
1569
1569
  }, {
1570
1570
  itemID: string;
1571
+ backup: {
1572
+ state: "off";
1573
+ } | {
1574
+ state: "pending";
1575
+ } | {
1576
+ state: "failed";
1577
+ failure: string;
1578
+ } | {
1579
+ state: "complete";
1580
+ } | {
1581
+ state: "unknown";
1582
+ };
1571
1583
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1572
1584
  UNAUTHORIZED: {
1573
1585
  message: string;
@@ -1645,6 +1657,18 @@ export declare function buildQueryUtils(client: ContractClient): {
1645
1657
  }, {
1646
1658
  deleted: string[];
1647
1659
  pending: string[];
1660
+ backup: {
1661
+ state: "off";
1662
+ } | {
1663
+ state: "pending";
1664
+ } | {
1665
+ state: "failed";
1666
+ failure: string;
1667
+ } | {
1668
+ state: "complete";
1669
+ } | {
1670
+ state: "unknown";
1671
+ };
1648
1672
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1649
1673
  UNAUTHORIZED: {
1650
1674
  message: string;
@@ -1685,6 +1709,18 @@ export declare function buildQueryUtils(client: ContractClient): {
1685
1709
  }, {
1686
1710
  deleted: string[];
1687
1711
  pending: string[];
1712
+ backup: {
1713
+ state: "off";
1714
+ } | {
1715
+ state: "pending";
1716
+ } | {
1717
+ state: "failed";
1718
+ failure: string;
1719
+ } | {
1720
+ state: "complete";
1721
+ } | {
1722
+ state: "unknown";
1723
+ };
1688
1724
  }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1689
1725
  UNAUTHORIZED: {
1690
1726
  message: string;
@@ -2018,6 +2054,89 @@ export declare function buildQueryUtils(client: ContractClient): {
2018
2054
  };
2019
2055
  }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2020
2056
  } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2057
+ backups: {
2058
+ readNotice: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2059
+ notice: {
2060
+ cause: "failed" | "missing";
2061
+ sequence: number;
2062
+ raisedAt: Date;
2063
+ } | null;
2064
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2065
+ UNAUTHORIZED: {
2066
+ message: string;
2067
+ status: number;
2068
+ };
2069
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2070
+ } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2071
+ rules: {
2072
+ listProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
2073
+ proposals: {
2074
+ proposalID: string;
2075
+ changes: {
2076
+ ruleID: string;
2077
+ before: {
2078
+ ruleHash: string;
2079
+ sentence: string;
2080
+ } | null;
2081
+ after: {
2082
+ ruleHash: string;
2083
+ sentence: string;
2084
+ } | null;
2085
+ }[];
2086
+ createdAt: Date;
2087
+ lapseAt: Date;
2088
+ }[];
2089
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2090
+ UNAUTHORIZED: {
2091
+ message: string;
2092
+ status: number;
2093
+ };
2094
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2095
+ approveProposal: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2096
+ proposalID: string;
2097
+ }, {
2098
+ proposalID: string;
2099
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2100
+ UNAUTHORIZED: {
2101
+ message: string;
2102
+ status: number;
2103
+ };
2104
+ }>, {
2105
+ NOT_FOUND: {
2106
+ message: string;
2107
+ status: number;
2108
+ };
2109
+ PROPOSAL_CLOSED: {
2110
+ message: string;
2111
+ status: number;
2112
+ };
2113
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2114
+ proposalID: string;
2115
+ }>;
2116
+ rejectProposal: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2117
+ proposalID: string;
2118
+ reason: string;
2119
+ }, {
2120
+ proposalID: string;
2121
+ }, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2122
+ UNAUTHORIZED: {
2123
+ message: string;
2124
+ status: number;
2125
+ };
2126
+ }>, {
2127
+ NOT_FOUND: {
2128
+ message: string;
2129
+ status: number;
2130
+ };
2131
+ PROPOSAL_CLOSED: {
2132
+ message: string;
2133
+ status: number;
2134
+ };
2135
+ }>>> & import("@orpc/tanstack-query").GeneralUtils<{
2136
+ proposalID: string;
2137
+ reason: string;
2138
+ }>;
2139
+ } & import("@orpc/tanstack-query").GeneralUtils<unknown>;
2021
2140
  log: {
2022
2141
  follow: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
2023
2142
  afterSequence: number;
@@ -1839,6 +1839,18 @@ export declare const contract: {
1839
1839
  version: z.ZodInt;
1840
1840
  }, z.core.$strip>, z.ZodObject<{
1841
1841
  itemID: z.ZodString;
1842
+ backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
1843
+ state: z.ZodLiteral<"off">;
1844
+ }, z.core.$strip>, z.ZodObject<{
1845
+ state: z.ZodLiteral<"pending">;
1846
+ }, z.core.$strip>, z.ZodObject<{
1847
+ state: z.ZodLiteral<"failed">;
1848
+ failure: z.ZodString;
1849
+ }, z.core.$strip>, z.ZodObject<{
1850
+ state: z.ZodLiteral<"complete">;
1851
+ }, z.core.$strip>, z.ZodObject<{
1852
+ state: z.ZodLiteral<"unknown">;
1853
+ }, z.core.$strip>], "state">;
1842
1854
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1843
1855
  UNAUTHORIZED: {
1844
1856
  message: string;
@@ -1938,6 +1950,18 @@ export declare const contract: {
1938
1950
  }, z.core.$strip>, z.ZodObject<{
1939
1951
  deleted: z.ZodArray<z.ZodString>;
1940
1952
  pending: z.ZodArray<z.ZodString>;
1953
+ backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
1954
+ state: z.ZodLiteral<"off">;
1955
+ }, z.core.$strip>, z.ZodObject<{
1956
+ state: z.ZodLiteral<"pending">;
1957
+ }, z.core.$strip>, z.ZodObject<{
1958
+ state: z.ZodLiteral<"failed">;
1959
+ failure: z.ZodString;
1960
+ }, z.core.$strip>, z.ZodObject<{
1961
+ state: z.ZodLiteral<"complete">;
1962
+ }, z.core.$strip>, z.ZodObject<{
1963
+ state: z.ZodLiteral<"unknown">;
1964
+ }, z.core.$strip>], "state">;
1941
1965
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1942
1966
  UNAUTHORIZED: {
1943
1967
  message: string;
@@ -1972,6 +1996,18 @@ export declare const contract: {
1972
1996
  }, z.core.$strip>, z.ZodObject<{
1973
1997
  deleted: z.ZodArray<z.ZodString>;
1974
1998
  pending: z.ZodArray<z.ZodString>;
1999
+ backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
2000
+ state: z.ZodLiteral<"off">;
2001
+ }, z.core.$strip>, z.ZodObject<{
2002
+ state: z.ZodLiteral<"pending">;
2003
+ }, z.core.$strip>, z.ZodObject<{
2004
+ state: z.ZodLiteral<"failed">;
2005
+ failure: z.ZodString;
2006
+ }, z.core.$strip>, z.ZodObject<{
2007
+ state: z.ZodLiteral<"complete">;
2008
+ }, z.core.$strip>, z.ZodObject<{
2009
+ state: z.ZodLiteral<"unknown">;
2010
+ }, z.core.$strip>], "state">;
1975
2011
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1976
2012
  UNAUTHORIZED: {
1977
2013
  message: string;
@@ -2352,6 +2388,87 @@ export declare const contract: {
2352
2388
  };
2353
2389
  }>, Record<never, never>>;
2354
2390
  };
2391
+ backups: {
2392
+ readNotice: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2393
+ notice: z.ZodNullable<z.ZodObject<{
2394
+ cause: z.ZodEnum<{
2395
+ failed: "failed";
2396
+ missing: "missing";
2397
+ }>;
2398
+ sequence: z.ZodInt;
2399
+ raisedAt: z.ZodDate;
2400
+ }, z.core.$strip>>;
2401
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2402
+ UNAUTHORIZED: {
2403
+ message: string;
2404
+ status: number;
2405
+ };
2406
+ }>, Record<never, never>>;
2407
+ };
2408
+ 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;
2417
+ }, z.core.$strip>>;
2418
+ after: z.ZodNullable<z.ZodObject<{
2419
+ ruleHash: z.ZodString;
2420
+ sentence: z.ZodString;
2421
+ }, z.core.$strip>>;
2422
+ }, z.core.$strip>>;
2423
+ createdAt: z.ZodDate;
2424
+ lapseAt: z.ZodDate;
2425
+ }, z.core.$strip>>;
2426
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2427
+ UNAUTHORIZED: {
2428
+ message: string;
2429
+ status: number;
2430
+ };
2431
+ }>, Record<never, never>>;
2432
+ approveProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2433
+ proposalID: z.ZodString;
2434
+ }, z.core.$strip>, z.ZodObject<{
2435
+ proposalID: z.ZodString;
2436
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2437
+ UNAUTHORIZED: {
2438
+ message: string;
2439
+ status: number;
2440
+ };
2441
+ }>, {
2442
+ NOT_FOUND: {
2443
+ message: string;
2444
+ status: number;
2445
+ };
2446
+ PROPOSAL_CLOSED: {
2447
+ message: string;
2448
+ status: number;
2449
+ };
2450
+ }>, Record<never, never>>;
2451
+ rejectProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2452
+ proposalID: z.ZodString;
2453
+ reason: z.ZodString;
2454
+ }, z.core.$strip>, z.ZodObject<{
2455
+ proposalID: z.ZodString;
2456
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2457
+ UNAUTHORIZED: {
2458
+ message: string;
2459
+ status: number;
2460
+ };
2461
+ }>, {
2462
+ NOT_FOUND: {
2463
+ message: string;
2464
+ status: number;
2465
+ };
2466
+ PROPOSAL_CLOSED: {
2467
+ message: string;
2468
+ status: number;
2469
+ };
2470
+ }>, Record<never, never>>;
2471
+ };
2355
2472
  log: {
2356
2473
  follow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2357
2474
  afterSequence: z.ZodInt;
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export declare const forgetBackupSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ state: z.ZodLiteral<"off">;
4
+ }, z.core.$strip>, z.ZodObject<{
5
+ state: z.ZodLiteral<"pending">;
6
+ }, z.core.$strip>, z.ZodObject<{
7
+ state: z.ZodLiteral<"failed">;
8
+ failure: z.ZodString;
9
+ }, z.core.$strip>, z.ZodObject<{
10
+ state: z.ZodLiteral<"complete">;
11
+ }, z.core.$strip>, z.ZodObject<{
12
+ state: z.ZodLiteral<"unknown">;
13
+ }, z.core.$strip>], "state">;
@@ -9,6 +9,18 @@ export declare const hostContract: {
9
9
  resetAt: z.ZodDate;
10
10
  lastSequence: z.ZodInt;
11
11
  shreddedRecords: z.ZodInt;
12
+ backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ state: z.ZodLiteral<"off">;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ state: z.ZodLiteral<"pending">;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ state: z.ZodLiteral<"failed">;
18
+ failure: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ state: z.ZodLiteral<"complete">;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ state: z.ZodLiteral<"unknown">;
23
+ }, z.core.$strip>], "state">;
12
24
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
13
25
  tasks: {
14
26
  pause: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -782,6 +794,18 @@ export declare const hostContract: {
782
794
  version: z.ZodInt;
783
795
  }, z.core.$strict>, z.ZodObject<{
784
796
  itemID: z.ZodString;
797
+ backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
798
+ state: z.ZodLiteral<"off">;
799
+ }, z.core.$strip>, z.ZodObject<{
800
+ state: z.ZodLiteral<"pending">;
801
+ }, z.core.$strip>, z.ZodObject<{
802
+ state: z.ZodLiteral<"failed">;
803
+ failure: z.ZodString;
804
+ }, z.core.$strip>, z.ZodObject<{
805
+ state: z.ZodLiteral<"complete">;
806
+ }, z.core.$strip>, z.ZodObject<{
807
+ state: z.ZodLiteral<"unknown">;
808
+ }, z.core.$strip>], "state">;
785
809
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
786
810
  MEMORY_NOT_STARTED: {
787
811
  message: string;
@@ -830,6 +854,18 @@ export declare const hostContract: {
830
854
  }>, Record<never, never>>;
831
855
  forgetAll: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
832
856
  itemIDs: z.ZodArray<z.ZodString>;
857
+ backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
858
+ state: z.ZodLiteral<"off">;
859
+ }, z.core.$strip>, z.ZodObject<{
860
+ state: z.ZodLiteral<"pending">;
861
+ }, z.core.$strip>, z.ZodObject<{
862
+ state: z.ZodLiteral<"failed">;
863
+ failure: z.ZodString;
864
+ }, z.core.$strip>, z.ZodObject<{
865
+ state: z.ZodLiteral<"complete">;
866
+ }, z.core.$strip>, z.ZodObject<{
867
+ state: z.ZodLiteral<"unknown">;
868
+ }, z.core.$strip>], "state">;
833
869
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
834
870
  MEMORY_NOT_STARTED: {
835
871
  message: string;
@@ -1347,6 +1383,139 @@ export declare const hostContract: {
1347
1383
  }>, Record<never, never>>;
1348
1384
  };
1349
1385
  };
1386
+ rules: {
1387
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
1388
+ ruleID: z.ZodString;
1389
+ revision: z.ZodInt;
1390
+ ruleHash: z.ZodString;
1391
+ sentence: z.ZodString;
1392
+ origin: z.ZodEnum<{
1393
+ definitions: "definitions";
1394
+ nixie: "nixie";
1395
+ }>;
1396
+ changeID: z.ZodNullable<z.ZodString>;
1397
+ lastFiredAt: z.ZodNullable<z.ZodDate>;
1398
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1399
+ readonly NOT_FOUND: {
1400
+ readonly message: 'nothing has that ID';
1401
+ readonly status: 404;
1402
+ };
1403
+ readonly PROPOSAL_CLOSED: {
1404
+ readonly message: 'the proposal is answered, withdrawn or lapsed';
1405
+ readonly status: 409;
1406
+ };
1407
+ }>, Record<never, never>>;
1408
+ conflicts: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
1409
+ ruleID: z.ZodString;
1410
+ changeID: z.ZodString;
1411
+ nixie: z.ZodNullable<z.ZodObject<{
1412
+ ruleHash: z.ZodString;
1413
+ sentence: z.ZodString;
1414
+ }, z.core.$strip>>;
1415
+ repo: z.ZodNullable<z.ZodObject<{
1416
+ ruleHash: z.ZodString;
1417
+ sentence: z.ZodString;
1418
+ }, z.core.$strip>>;
1419
+ base: z.ZodNullable<z.ZodObject<{
1420
+ ruleHash: z.ZodString;
1421
+ sentence: z.ZodString;
1422
+ }, z.core.$strip>>;
1423
+ changedBy: z.ZodEnum<{
1424
+ nixie: "nixie";
1425
+ owner: "owner";
1426
+ }>;
1427
+ reason: z.ZodString;
1428
+ changedAt: z.ZodDate;
1429
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1430
+ readonly NOT_FOUND: {
1431
+ readonly message: 'nothing has that ID';
1432
+ readonly status: 404;
1433
+ };
1434
+ readonly PROPOSAL_CLOSED: {
1435
+ readonly message: 'the proposal is answered, withdrawn or lapsed';
1436
+ readonly status: 409;
1437
+ };
1438
+ }>, Record<never, never>>;
1439
+ resolve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1440
+ ruleID: z.ZodString;
1441
+ keep: z.ZodEnum<{
1442
+ nixie: "nixie";
1443
+ repo: "repo";
1444
+ }>;
1445
+ }, z.core.$strict>, z.ZodObject<{
1446
+ ruleID: z.ZodString;
1447
+ changeID: z.ZodString;
1448
+ keep: z.ZodEnum<{
1449
+ nixie: "nixie";
1450
+ repo: "repo";
1451
+ }>;
1452
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1453
+ readonly NOT_FOUND: {
1454
+ readonly message: 'nothing has that ID';
1455
+ readonly status: 404;
1456
+ };
1457
+ readonly PROPOSAL_CLOSED: {
1458
+ readonly message: 'the proposal is answered, withdrawn or lapsed';
1459
+ readonly status: 409;
1460
+ };
1461
+ }>, Record<never, never>>;
1462
+ proposals: {
1463
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
1464
+ proposalID: z.ZodString;
1465
+ changes: z.ZodArray<z.ZodObject<{
1466
+ ruleID: z.ZodString;
1467
+ before: z.ZodNullable<z.ZodObject<{
1468
+ ruleHash: z.ZodString;
1469
+ sentence: z.ZodString;
1470
+ }, z.core.$strip>>;
1471
+ after: z.ZodNullable<z.ZodObject<{
1472
+ ruleHash: z.ZodString;
1473
+ sentence: z.ZodString;
1474
+ }, z.core.$strip>>;
1475
+ }, z.core.$strip>>;
1476
+ createdAt: z.ZodDate;
1477
+ lapseAt: z.ZodDate;
1478
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1479
+ readonly NOT_FOUND: {
1480
+ readonly message: 'nothing has that ID';
1481
+ readonly status: 404;
1482
+ };
1483
+ readonly PROPOSAL_CLOSED: {
1484
+ readonly message: 'the proposal is answered, withdrawn or lapsed';
1485
+ readonly status: 409;
1486
+ };
1487
+ }>, Record<never, never>>;
1488
+ approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1489
+ proposalID: z.ZodString;
1490
+ }, z.core.$strict>, z.ZodObject<{
1491
+ proposalID: z.ZodString;
1492
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1493
+ readonly NOT_FOUND: {
1494
+ readonly message: 'nothing has that ID';
1495
+ readonly status: 404;
1496
+ };
1497
+ readonly PROPOSAL_CLOSED: {
1498
+ readonly message: 'the proposal is answered, withdrawn or lapsed';
1499
+ readonly status: 409;
1500
+ };
1501
+ }>, Record<never, never>>;
1502
+ reject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1503
+ proposalID: z.ZodString;
1504
+ reason: z.ZodString;
1505
+ }, z.core.$strict>, z.ZodObject<{
1506
+ proposalID: z.ZodString;
1507
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1508
+ readonly NOT_FOUND: {
1509
+ readonly message: 'nothing has that ID';
1510
+ readonly status: 404;
1511
+ };
1512
+ readonly PROPOSAL_CLOSED: {
1513
+ readonly message: 'the proposal is answered, withdrawn or lapsed';
1514
+ readonly status: 409;
1515
+ };
1516
+ }>, Record<never, never>>;
1517
+ };
1518
+ };
1350
1519
  prompts: {
1351
1520
  proposals: {
1352
1521
  list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{