@heynixie/contract 0.74.0 → 0.75.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/contract/approval-contract.d.ts +137 -0
- package/dist/contract/build-query-utils.d.ts +308 -2
- package/dist/contract/challenge-for-schema.d.ts +4 -0
- package/dist/contract/contract.d.ts +320 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -1
- package/dist/contract/forgotten-items-schema.d.ts +16 -0
- package/dist/contract/host-contract.d.ts +56 -0
- package/dist/contract/host-mandates-contract.d.ts +32 -0
- package/dist/contract/memory-view-contract.d.ts +7 -0
- package/dist/contract/passkey-contract.d.ts +4 -0
- package/dist/contract/rule-contract.d.ts +123 -0
- package/dist/index.js +461 -311
- package/package.json +1 -1
|
@@ -12,6 +12,10 @@ export declare const passkeyContract: {
|
|
|
12
12
|
defer: "defer";
|
|
13
13
|
}>;
|
|
14
14
|
ruleHash: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"unknown_outcome">;
|
|
17
|
+
actionID: z.ZodString;
|
|
18
|
+
choice: z.ZodLiteral<"retry">;
|
|
15
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
16
20
|
kind: z.ZodLiteral<"register">;
|
|
17
21
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -57,6 +57,7 @@ export declare const ruleContract: {
|
|
|
57
57
|
data: z.ZodObject<{
|
|
58
58
|
reason: z.ZodEnum<{
|
|
59
59
|
empty: "empty";
|
|
60
|
+
mandate: "mandate";
|
|
60
61
|
widens: "widens";
|
|
61
62
|
}>;
|
|
62
63
|
}, z.core.$strip>;
|
|
@@ -98,9 +99,131 @@ export declare const ruleContract: {
|
|
|
98
99
|
data: z.ZodObject<{
|
|
99
100
|
reason: z.ZodEnum<{
|
|
100
101
|
empty: "empty";
|
|
102
|
+
mandate: "mandate";
|
|
101
103
|
widens: "widens";
|
|
102
104
|
}>;
|
|
103
105
|
}, z.core.$strip>;
|
|
104
106
|
};
|
|
105
107
|
}>, Record<never, never>>;
|
|
108
|
+
editProposedRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
109
|
+
proposalID: z.ZodString;
|
|
110
|
+
actionHash: z.ZodString;
|
|
111
|
+
rule: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
112
|
+
clientActionID: z.ZodUUID;
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
+
proposalID: z.ZodString;
|
|
115
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
116
|
+
UNAUTHORIZED: {
|
|
117
|
+
message: string;
|
|
118
|
+
status: number;
|
|
119
|
+
};
|
|
120
|
+
}>, {
|
|
121
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
122
|
+
message: string;
|
|
123
|
+
status: number;
|
|
124
|
+
};
|
|
125
|
+
}>, {
|
|
126
|
+
INVALID: {
|
|
127
|
+
message: string;
|
|
128
|
+
status: number;
|
|
129
|
+
data: z.ZodObject<{
|
|
130
|
+
faults: z.ZodArray<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
};
|
|
133
|
+
NOT_FOUND: {
|
|
134
|
+
message: string;
|
|
135
|
+
status: number;
|
|
136
|
+
};
|
|
137
|
+
CONFLICT: {
|
|
138
|
+
message: string;
|
|
139
|
+
status: number;
|
|
140
|
+
data: z.ZodObject<{
|
|
141
|
+
current: z.ZodObject<{
|
|
142
|
+
actionHash: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
};
|
|
146
|
+
CLOSED: {
|
|
147
|
+
message: string;
|
|
148
|
+
status: number;
|
|
149
|
+
data: z.ZodObject<{
|
|
150
|
+
state: z.ZodEnum<{
|
|
151
|
+
approved: "approved";
|
|
152
|
+
declined: "declined";
|
|
153
|
+
lapsed: "lapsed";
|
|
154
|
+
withdrawn: "withdrawn";
|
|
155
|
+
}>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
};
|
|
158
|
+
}>, Record<never, never>>;
|
|
159
|
+
proposeMandate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
160
|
+
title: z.ZodString;
|
|
161
|
+
rules: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
162
|
+
expires: z.ZodOptional<z.ZodString>;
|
|
163
|
+
clientActionID: z.ZodUUID;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
proposalID: z.ZodString;
|
|
166
|
+
mandateID: z.ZodString;
|
|
167
|
+
expires: z.ZodDate;
|
|
168
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
169
|
+
UNAUTHORIZED: {
|
|
170
|
+
message: string;
|
|
171
|
+
status: number;
|
|
172
|
+
};
|
|
173
|
+
}>, {
|
|
174
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
175
|
+
message: string;
|
|
176
|
+
status: number;
|
|
177
|
+
};
|
|
178
|
+
}>, {
|
|
179
|
+
INVALID: {
|
|
180
|
+
message: string;
|
|
181
|
+
status: number;
|
|
182
|
+
data: z.ZodObject<{
|
|
183
|
+
faults: z.ZodArray<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
};
|
|
186
|
+
}>, Record<never, never>>;
|
|
187
|
+
listMandates: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
188
|
+
mandates: z.ZodArray<z.ZodObject<{
|
|
189
|
+
mandateID: z.ZodString;
|
|
190
|
+
title: z.ZodNullable<z.ZodString>;
|
|
191
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
192
|
+
ruleID: z.ZodString;
|
|
193
|
+
sentence: z.ZodString;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
startedAt: z.ZodDate;
|
|
196
|
+
expires: z.ZodDate;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
199
|
+
UNAUTHORIZED: {
|
|
200
|
+
message: string;
|
|
201
|
+
status: number;
|
|
202
|
+
};
|
|
203
|
+
}>, Record<never, never>>;
|
|
204
|
+
endMandate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
205
|
+
mandateID: z.ZodString;
|
|
206
|
+
clientActionID: z.ZodUUID;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
mandateID: z.ZodString;
|
|
209
|
+
state: z.ZodEnum<{
|
|
210
|
+
ended: "ended";
|
|
211
|
+
expired: "expired";
|
|
212
|
+
}>;
|
|
213
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
214
|
+
UNAUTHORIZED: {
|
|
215
|
+
message: string;
|
|
216
|
+
status: number;
|
|
217
|
+
};
|
|
218
|
+
}>, {
|
|
219
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
220
|
+
message: string;
|
|
221
|
+
status: number;
|
|
222
|
+
};
|
|
223
|
+
}>, {
|
|
224
|
+
NOT_FOUND: {
|
|
225
|
+
message: string;
|
|
226
|
+
status: number;
|
|
227
|
+
};
|
|
228
|
+
}>, Record<never, never>>;
|
|
106
229
|
};
|