@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.
- package/dist/{approval-contract.d.ts → contract/approval-contract.d.ts} +158 -0
- package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +252 -238
- package/dist/{contract.d.ts → contract/contract.d.ts} +340 -285
- package/dist/contract/forgettable-kinds.d.ts +1 -0
- package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +47 -0
- package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +1 -217
- package/dist/contract/pause-state-schema.d.ts +9 -0
- package/dist/contract/recovery-schema.d.ts +21 -0
- package/dist/contract/rule-contract.d.ts +106 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.js +751 -722
- package/dist/{build-pending-input.d.ts → span/build-pending-input.d.ts} +1 -1
- package/dist/{build-span-state.d.ts → span/build-span-state.d.ts} +1 -1
- package/dist/{pick-span-source.d.ts → span/pick-span-source.d.ts} +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +1 -1
- package/dist/forgettable-kinds.d.ts +0 -1
- package/dist/proposal-outcome-schema.d.ts +0 -37
- package/dist/rule-contract.d.ts +0 -124
- /package/dist/{action-proposal-schema.d.ts → contract/action-proposal-schema.d.ts} +0 -0
- /package/dist/{client-header-name.d.ts → contract/client-header-name.d.ts} +0 -0
- /package/dist/{forget-backup-schema.d.ts → contract/forget-backup-schema.d.ts} +0 -0
- /package/dist/{image-limits.d.ts → contract/image-limits.d.ts} +0 -0
- /package/dist/{image-not-found-error.d.ts → contract/image-not-found-error.d.ts} +0 -0
- /package/dist/{image-refused-error.d.ts → contract/image-refused-error.d.ts} +0 -0
- /package/dist/{input-miss-schema.d.ts → contract/input-miss-schema.d.ts} +0 -0
- /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
- /package/dist/{known-contact-schema.d.ts → contract/known-contact-schema.d.ts} +0 -0
- /package/dist/{logged-input-schema.d.ts → contract/logged-input-schema.d.ts} +0 -0
- /package/dist/{memory-export-contract.d.ts → contract/memory-export-contract.d.ts} +0 -0
- /package/dist/{moment-contract.d.ts → contract/moment-contract.d.ts} +0 -0
- /package/dist/{render-session-cookie.d.ts → contract/render-session-cookie.d.ts} +0 -0
- /package/dist/{reused-id-errors.d.ts → contract/reused-id-errors.d.ts} +0 -0
- /package/dist/{session-cookie-name.d.ts → contract/session-cookie-name.d.ts} +0 -0
- /package/dist/{signed-in.d.ts → contract/signed-in.d.ts} +0 -0
- /package/dist/{task-schema.d.ts → contract/task-schema.d.ts} +0 -0
- /package/dist/{tool-call-schema.d.ts → contract/tool-call-schema.d.ts} +0 -0
- /package/dist/{turn-inputs-contract.d.ts → contract/turn-inputs-contract.d.ts} +0 -0
- /package/dist/{task-message-input-schema.d.ts → message/task-message-input-schema.d.ts} +0 -0
- /package/dist/{task-message-kind-schema.d.ts → message/task-message-kind-schema.d.ts} +0 -0
- /package/dist/{task-message-result-schema.d.ts → message/task-message-result-schema.d.ts} +0 -0
- /package/dist/{has-several-words.d.ts → span/has-several-words.d.ts} +0 -0
- /package/dist/{span-schema.d.ts → span/span-schema.d.ts} +0 -0
|
@@ -43,11 +43,15 @@ export declare const approvalContract: {
|
|
|
43
43
|
deadlineAt: z.ZodNullable<z.ZodDate>;
|
|
44
44
|
deferGeneration: z.ZodInt;
|
|
45
45
|
deferUntil: z.ZodNullable<z.ZodDate>;
|
|
46
|
+
thread: z.ZodNullable<z.ZodString>;
|
|
47
|
+
taskID: z.ZodNullable<z.ZodString>;
|
|
48
|
+
sequence: z.ZodInt;
|
|
46
49
|
}, z.core.$strip>;
|
|
47
50
|
body: z.ZodObject<{
|
|
48
51
|
sentence: z.ZodString;
|
|
49
52
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
50
53
|
ruleSentence: z.ZodNullable<z.ZodString>;
|
|
54
|
+
approveLabel: z.ZodString;
|
|
51
55
|
memory: z.ZodOptional<z.ZodObject<{
|
|
52
56
|
actionHash: z.ZodString;
|
|
53
57
|
createdAt: z.ZodDate;
|
|
@@ -98,6 +102,7 @@ export declare const approvalContract: {
|
|
|
98
102
|
quote: z.ZodNullable<z.ZodString>;
|
|
99
103
|
reason: z.ZodEnum<{
|
|
100
104
|
ambiguous_target: "ambiguous_target";
|
|
105
|
+
ask_rule: "ask_rule";
|
|
101
106
|
checker_not_asserted: "checker_not_asserted";
|
|
102
107
|
checker_unreachable: "checker_unreachable";
|
|
103
108
|
checker_unsure: "checker_unsure";
|
|
@@ -156,6 +161,159 @@ export declare const approvalContract: {
|
|
|
156
161
|
status: number;
|
|
157
162
|
};
|
|
158
163
|
}>, Record<never, never>>;
|
|
164
|
+
readProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
165
|
+
proposalIDs: z.ZodArray<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
proposals: z.ZodArray<z.ZodObject<{
|
|
168
|
+
proposal: z.ZodObject<{
|
|
169
|
+
proposalID: z.ZodString;
|
|
170
|
+
shortID: z.ZodString;
|
|
171
|
+
kind: z.ZodEnum<{
|
|
172
|
+
action: "action";
|
|
173
|
+
internal_change: "internal_change";
|
|
174
|
+
memory_write: "memory_write";
|
|
175
|
+
}>;
|
|
176
|
+
riskClass: z.ZodEnum<{
|
|
177
|
+
always_ask: "always_ask";
|
|
178
|
+
lifting: "lifting";
|
|
179
|
+
routine: "routine";
|
|
180
|
+
}>;
|
|
181
|
+
actionHash: z.ZodString;
|
|
182
|
+
ruleHash: z.ZodNullable<z.ZodString>;
|
|
183
|
+
cause: z.ZodString;
|
|
184
|
+
state: z.ZodEnum<{
|
|
185
|
+
approved: "approved";
|
|
186
|
+
declined: "declined";
|
|
187
|
+
deferred: "deferred";
|
|
188
|
+
lapsed: "lapsed";
|
|
189
|
+
pending: "pending";
|
|
190
|
+
withdrawn: "withdrawn";
|
|
191
|
+
}>;
|
|
192
|
+
createdAt: z.ZodDate;
|
|
193
|
+
lapsesAt: z.ZodDate;
|
|
194
|
+
deadlineAt: z.ZodNullable<z.ZodDate>;
|
|
195
|
+
deferGeneration: z.ZodInt;
|
|
196
|
+
deferUntil: z.ZodNullable<z.ZodDate>;
|
|
197
|
+
thread: z.ZodNullable<z.ZodString>;
|
|
198
|
+
taskID: z.ZodNullable<z.ZodString>;
|
|
199
|
+
sequence: z.ZodInt;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
202
|
+
sentence: z.ZodString;
|
|
203
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
204
|
+
ruleSentence: z.ZodNullable<z.ZodString>;
|
|
205
|
+
approveLabel: z.ZodString;
|
|
206
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
actionHash: z.ZodString;
|
|
208
|
+
createdAt: z.ZodDate;
|
|
209
|
+
evidence: z.ZodNullable<z.ZodObject<{
|
|
210
|
+
end: z.ZodInt;
|
|
211
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
212
|
+
status: z.ZodEnum<{
|
|
213
|
+
missing: "missing";
|
|
214
|
+
readable: "readable";
|
|
215
|
+
shredded: "shredded";
|
|
216
|
+
unreadable: "unreadable";
|
|
217
|
+
}>;
|
|
218
|
+
text: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>>;
|
|
220
|
+
sequence: z.ZodInt;
|
|
221
|
+
start: z.ZodInt;
|
|
222
|
+
}, z.core.$strip>>;
|
|
223
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
224
|
+
position: z.ZodInt;
|
|
225
|
+
sequence: z.ZodInt;
|
|
226
|
+
thread: z.ZodString;
|
|
227
|
+
}, z.core.$strip>>;
|
|
228
|
+
isPinned: z.ZodBoolean;
|
|
229
|
+
isSensitive: z.ZodBoolean;
|
|
230
|
+
itemID: z.ZodString;
|
|
231
|
+
kind: z.ZodEnum<{
|
|
232
|
+
fact: "fact";
|
|
233
|
+
self: "self";
|
|
234
|
+
}>;
|
|
235
|
+
lapseAt: z.ZodDate;
|
|
236
|
+
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
237
|
+
owner: "owner";
|
|
238
|
+
self: "self";
|
|
239
|
+
shared: "shared";
|
|
240
|
+
}>>;
|
|
241
|
+
operation: z.ZodEnum<{
|
|
242
|
+
pin: "pin";
|
|
243
|
+
remember: "remember";
|
|
244
|
+
retire: "retire";
|
|
245
|
+
}>;
|
|
246
|
+
origin: z.ZodEnum<{
|
|
247
|
+
conversation: "conversation";
|
|
248
|
+
memory_writer: "memory_writer";
|
|
249
|
+
owner: "owner";
|
|
250
|
+
task: "task";
|
|
251
|
+
}>;
|
|
252
|
+
proposalID: z.ZodString;
|
|
253
|
+
quote: z.ZodNullable<z.ZodString>;
|
|
254
|
+
reason: z.ZodEnum<{
|
|
255
|
+
ambiguous_target: "ambiguous_target";
|
|
256
|
+
ask_rule: "ask_rule";
|
|
257
|
+
checker_not_asserted: "checker_not_asserted";
|
|
258
|
+
checker_unreachable: "checker_unreachable";
|
|
259
|
+
checker_unsure: "checker_unsure";
|
|
260
|
+
forgotten_evidence: "forgotten_evidence";
|
|
261
|
+
from_photo: "from_photo";
|
|
262
|
+
invisible_character: "invisible_character";
|
|
263
|
+
no_quote: "no_quote";
|
|
264
|
+
other: "other";
|
|
265
|
+
pinned: "pinned";
|
|
266
|
+
quote_in_quoted_block: "quote_in_quoted_block";
|
|
267
|
+
quote_not_typed: "quote_not_typed";
|
|
268
|
+
self_note: "self_note";
|
|
269
|
+
sensitive: "sensitive";
|
|
270
|
+
subject_change: "subject_change";
|
|
271
|
+
token_missing: "token_missing";
|
|
272
|
+
}>;
|
|
273
|
+
source: z.ZodEnum<{
|
|
274
|
+
owner: "owner";
|
|
275
|
+
owner_data: "owner_data";
|
|
276
|
+
untrusted: "untrusted";
|
|
277
|
+
}>;
|
|
278
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
279
|
+
origin: z.ZodEnum<{
|
|
280
|
+
conversation: "conversation";
|
|
281
|
+
memory_writer: "memory_writer";
|
|
282
|
+
owner: "owner";
|
|
283
|
+
task: "task";
|
|
284
|
+
}>;
|
|
285
|
+
proposedAt: z.ZodDate;
|
|
286
|
+
thread: z.ZodNullable<z.ZodString>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
subject: z.ZodEnum<{
|
|
289
|
+
owner: "owner";
|
|
290
|
+
self: "self";
|
|
291
|
+
shared: "shared";
|
|
292
|
+
}>;
|
|
293
|
+
targetVersion: z.ZodNullable<z.ZodInt>;
|
|
294
|
+
text: z.ZodString;
|
|
295
|
+
until: z.ZodNullable<z.ZodDate>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
298
|
+
task: z.ZodNullable<z.ZodObject<{
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
name: z.ZodString;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
choices: z.ZodArray<z.ZodEnum<{
|
|
303
|
+
always_allow: "always_allow";
|
|
304
|
+
approve: "approve";
|
|
305
|
+
decline: "decline";
|
|
306
|
+
defer: "defer";
|
|
307
|
+
}>>;
|
|
308
|
+
answeredOn: z.ZodNullable<z.ZodString>;
|
|
309
|
+
isAnsweredHere: z.ZodBoolean;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
312
|
+
UNAUTHORIZED: {
|
|
313
|
+
message: string;
|
|
314
|
+
status: number;
|
|
315
|
+
};
|
|
316
|
+
}>, Record<never, never>>;
|
|
159
317
|
answerProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
160
318
|
proposalID: z.ZodString;
|
|
161
319
|
actionHash: z.ZodString;
|