@heynixie/contract 0.68.0 → 0.69.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/build-query-utils.d.ts +119 -0
- package/dist/contract.d.ts +117 -0
- package/dist/forget-backup-schema.d.ts +13 -0
- package/dist/host-contract.d.ts +169 -0
- package/dist/index.js +690 -588
- package/dist/memory-view-contract.d.ts +36 -0
- package/dist/rule-contract.d.ts +65 -0
- package/package.json +1 -1
|
@@ -1050,6 +1050,18 @@ export declare const memoryViewContract: {
|
|
|
1050
1050
|
version: z.ZodInt;
|
|
1051
1051
|
}, z.core.$strip>, z.ZodObject<{
|
|
1052
1052
|
itemID: z.ZodString;
|
|
1053
|
+
backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1054
|
+
state: z.ZodLiteral<"off">;
|
|
1055
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1056
|
+
state: z.ZodLiteral<"pending">;
|
|
1057
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1058
|
+
state: z.ZodLiteral<"failed">;
|
|
1059
|
+
failure: z.ZodString;
|
|
1060
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1061
|
+
state: z.ZodLiteral<"complete">;
|
|
1062
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1063
|
+
state: z.ZodLiteral<"unknown">;
|
|
1064
|
+
}, z.core.$strip>], "state">;
|
|
1053
1065
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1054
1066
|
UNAUTHORIZED: {
|
|
1055
1067
|
message: string;
|
|
@@ -1149,6 +1161,18 @@ export declare const memoryViewContract: {
|
|
|
1149
1161
|
}, z.core.$strip>, z.ZodObject<{
|
|
1150
1162
|
deleted: z.ZodArray<z.ZodString>;
|
|
1151
1163
|
pending: z.ZodArray<z.ZodString>;
|
|
1164
|
+
backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1165
|
+
state: z.ZodLiteral<"off">;
|
|
1166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1167
|
+
state: z.ZodLiteral<"pending">;
|
|
1168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1169
|
+
state: z.ZodLiteral<"failed">;
|
|
1170
|
+
failure: z.ZodString;
|
|
1171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1172
|
+
state: z.ZodLiteral<"complete">;
|
|
1173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1174
|
+
state: z.ZodLiteral<"unknown">;
|
|
1175
|
+
}, z.core.$strip>], "state">;
|
|
1152
1176
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1153
1177
|
UNAUTHORIZED: {
|
|
1154
1178
|
message: string;
|
|
@@ -1183,6 +1207,18 @@ export declare const memoryViewContract: {
|
|
|
1183
1207
|
}, z.core.$strip>, z.ZodObject<{
|
|
1184
1208
|
deleted: z.ZodArray<z.ZodString>;
|
|
1185
1209
|
pending: z.ZodArray<z.ZodString>;
|
|
1210
|
+
backup: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1211
|
+
state: z.ZodLiteral<"off">;
|
|
1212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1213
|
+
state: z.ZodLiteral<"pending">;
|
|
1214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1215
|
+
state: z.ZodLiteral<"failed">;
|
|
1216
|
+
failure: z.ZodString;
|
|
1217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1218
|
+
state: z.ZodLiteral<"complete">;
|
|
1219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1220
|
+
state: z.ZodLiteral<"unknown">;
|
|
1221
|
+
}, z.core.$strip>], "state">;
|
|
1186
1222
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1187
1223
|
UNAUTHORIZED: {
|
|
1188
1224
|
message: string;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ruleContract: {
|
|
3
|
+
listProposals: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
4
|
+
proposals: z.ZodArray<z.ZodObject<{
|
|
5
|
+
proposalID: z.ZodString;
|
|
6
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
7
|
+
ruleID: z.ZodString;
|
|
8
|
+
before: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
ruleHash: z.ZodString;
|
|
10
|
+
sentence: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
after: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
ruleHash: z.ZodString;
|
|
14
|
+
sentence: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
createdAt: z.ZodDate;
|
|
18
|
+
lapseAt: z.ZodDate;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
21
|
+
UNAUTHORIZED: {
|
|
22
|
+
message: string;
|
|
23
|
+
status: number;
|
|
24
|
+
};
|
|
25
|
+
}>, Record<never, never>>;
|
|
26
|
+
approveProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
27
|
+
proposalID: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
proposalID: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
31
|
+
UNAUTHORIZED: {
|
|
32
|
+
message: string;
|
|
33
|
+
status: number;
|
|
34
|
+
};
|
|
35
|
+
}>, {
|
|
36
|
+
NOT_FOUND: {
|
|
37
|
+
message: string;
|
|
38
|
+
status: number;
|
|
39
|
+
};
|
|
40
|
+
PROPOSAL_CLOSED: {
|
|
41
|
+
message: string;
|
|
42
|
+
status: number;
|
|
43
|
+
};
|
|
44
|
+
}>, Record<never, never>>;
|
|
45
|
+
rejectProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
46
|
+
proposalID: z.ZodString;
|
|
47
|
+
reason: z.ZodString;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
proposalID: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
51
|
+
UNAUTHORIZED: {
|
|
52
|
+
message: string;
|
|
53
|
+
status: number;
|
|
54
|
+
};
|
|
55
|
+
}>, {
|
|
56
|
+
NOT_FOUND: {
|
|
57
|
+
message: string;
|
|
58
|
+
status: number;
|
|
59
|
+
};
|
|
60
|
+
PROPOSAL_CLOSED: {
|
|
61
|
+
message: string;
|
|
62
|
+
status: number;
|
|
63
|
+
};
|
|
64
|
+
}>, Record<never, never>>;
|
|
65
|
+
};
|