@heynixie/contract 0.71.0 → 0.73.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} +208 -2
- package/dist/contract/authentication-response-schema.d.ts +17 -0
- package/dist/contract/base64-url-schema.d.ts +2 -0
- package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +619 -262
- package/dist/contract/challenge-for-schema.d.ts +18 -0
- package/dist/contract/choice-schema.d.ts +7 -0
- package/dist/{contract.d.ts → contract/contract.d.ts} +661 -308
- package/dist/contract/creation-options-schema.d.ts +42 -0
- package/dist/contract/credential-descriptor-schema.d.ts +6 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -0
- package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +75 -199
- package/dist/contract/host-passkey-contract.d.ts +29 -0
- package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +1 -230
- package/dist/contract/no-passkey-error.d.ts +6 -0
- package/dist/contract/passkey-contract.d.ts +270 -0
- package/dist/contract/passkey-failed-error.d.ts +18 -0
- package/dist/contract/passkey-failure-schema.d.ts +10 -0
- package/dist/contract/pause-state-schema.d.ts +9 -0
- package/dist/contract/recovery-schema.d.ts +21 -0
- package/dist/contract/registration-response-schema.d.ts +19 -0
- package/dist/contract/request-options-schema.d.ts +16 -0
- package/dist/contract/rule-contract.d.ts +106 -0
- package/dist/contract/transports-schema.d.ts +2 -0
- package/dist/contract/user-verification-schema.d.ts +6 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.js +1153 -944
- 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;
|
|
@@ -90,7 +94,6 @@ export declare const approvalContract: {
|
|
|
90
94
|
}>;
|
|
91
95
|
origin: z.ZodEnum<{
|
|
92
96
|
conversation: "conversation";
|
|
93
|
-
memory_writer: "memory_writer";
|
|
94
97
|
owner: "owner";
|
|
95
98
|
task: "task";
|
|
96
99
|
}>;
|
|
@@ -98,6 +101,7 @@ export declare const approvalContract: {
|
|
|
98
101
|
quote: z.ZodNullable<z.ZodString>;
|
|
99
102
|
reason: z.ZodEnum<{
|
|
100
103
|
ambiguous_target: "ambiguous_target";
|
|
104
|
+
ask_rule: "ask_rule";
|
|
101
105
|
checker_not_asserted: "checker_not_asserted";
|
|
102
106
|
checker_unreachable: "checker_unreachable";
|
|
103
107
|
checker_unsure: "checker_unsure";
|
|
@@ -122,7 +126,6 @@ export declare const approvalContract: {
|
|
|
122
126
|
sources: z.ZodArray<z.ZodObject<{
|
|
123
127
|
origin: z.ZodEnum<{
|
|
124
128
|
conversation: "conversation";
|
|
125
|
-
memory_writer: "memory_writer";
|
|
126
129
|
owner: "owner";
|
|
127
130
|
task: "task";
|
|
128
131
|
}>;
|
|
@@ -149,6 +152,169 @@ export declare const approvalContract: {
|
|
|
149
152
|
decline: "decline";
|
|
150
153
|
defer: "defer";
|
|
151
154
|
}>>;
|
|
155
|
+
passkeyChoices: z.ZodArray<z.ZodEnum<{
|
|
156
|
+
always_allow: "always_allow";
|
|
157
|
+
approve: "approve";
|
|
158
|
+
decline: "decline";
|
|
159
|
+
defer: "defer";
|
|
160
|
+
}>>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
163
|
+
UNAUTHORIZED: {
|
|
164
|
+
message: string;
|
|
165
|
+
status: number;
|
|
166
|
+
};
|
|
167
|
+
}>, Record<never, never>>;
|
|
168
|
+
readProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
169
|
+
proposalIDs: z.ZodArray<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
proposals: z.ZodArray<z.ZodObject<{
|
|
172
|
+
proposal: z.ZodObject<{
|
|
173
|
+
proposalID: z.ZodString;
|
|
174
|
+
shortID: z.ZodString;
|
|
175
|
+
kind: z.ZodEnum<{
|
|
176
|
+
action: "action";
|
|
177
|
+
internal_change: "internal_change";
|
|
178
|
+
memory_write: "memory_write";
|
|
179
|
+
}>;
|
|
180
|
+
riskClass: z.ZodEnum<{
|
|
181
|
+
always_ask: "always_ask";
|
|
182
|
+
lifting: "lifting";
|
|
183
|
+
routine: "routine";
|
|
184
|
+
}>;
|
|
185
|
+
actionHash: z.ZodString;
|
|
186
|
+
ruleHash: z.ZodNullable<z.ZodString>;
|
|
187
|
+
cause: z.ZodString;
|
|
188
|
+
state: z.ZodEnum<{
|
|
189
|
+
approved: "approved";
|
|
190
|
+
declined: "declined";
|
|
191
|
+
deferred: "deferred";
|
|
192
|
+
lapsed: "lapsed";
|
|
193
|
+
pending: "pending";
|
|
194
|
+
withdrawn: "withdrawn";
|
|
195
|
+
}>;
|
|
196
|
+
createdAt: z.ZodDate;
|
|
197
|
+
lapsesAt: z.ZodDate;
|
|
198
|
+
deadlineAt: z.ZodNullable<z.ZodDate>;
|
|
199
|
+
deferGeneration: z.ZodInt;
|
|
200
|
+
deferUntil: z.ZodNullable<z.ZodDate>;
|
|
201
|
+
thread: z.ZodNullable<z.ZodString>;
|
|
202
|
+
taskID: z.ZodNullable<z.ZodString>;
|
|
203
|
+
sequence: z.ZodInt;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
206
|
+
sentence: z.ZodString;
|
|
207
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
208
|
+
ruleSentence: z.ZodNullable<z.ZodString>;
|
|
209
|
+
approveLabel: z.ZodString;
|
|
210
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
211
|
+
actionHash: z.ZodString;
|
|
212
|
+
createdAt: z.ZodDate;
|
|
213
|
+
evidence: z.ZodNullable<z.ZodObject<{
|
|
214
|
+
end: z.ZodInt;
|
|
215
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
216
|
+
status: z.ZodEnum<{
|
|
217
|
+
missing: "missing";
|
|
218
|
+
readable: "readable";
|
|
219
|
+
shredded: "shredded";
|
|
220
|
+
unreadable: "unreadable";
|
|
221
|
+
}>;
|
|
222
|
+
text: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
sequence: z.ZodInt;
|
|
225
|
+
start: z.ZodInt;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
228
|
+
position: z.ZodInt;
|
|
229
|
+
sequence: z.ZodInt;
|
|
230
|
+
thread: z.ZodString;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
isPinned: z.ZodBoolean;
|
|
233
|
+
isSensitive: z.ZodBoolean;
|
|
234
|
+
itemID: z.ZodString;
|
|
235
|
+
kind: z.ZodEnum<{
|
|
236
|
+
fact: "fact";
|
|
237
|
+
self: "self";
|
|
238
|
+
}>;
|
|
239
|
+
lapseAt: z.ZodDate;
|
|
240
|
+
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
241
|
+
owner: "owner";
|
|
242
|
+
self: "self";
|
|
243
|
+
shared: "shared";
|
|
244
|
+
}>>;
|
|
245
|
+
operation: z.ZodEnum<{
|
|
246
|
+
pin: "pin";
|
|
247
|
+
remember: "remember";
|
|
248
|
+
retire: "retire";
|
|
249
|
+
}>;
|
|
250
|
+
origin: z.ZodEnum<{
|
|
251
|
+
conversation: "conversation";
|
|
252
|
+
owner: "owner";
|
|
253
|
+
task: "task";
|
|
254
|
+
}>;
|
|
255
|
+
proposalID: z.ZodString;
|
|
256
|
+
quote: z.ZodNullable<z.ZodString>;
|
|
257
|
+
reason: z.ZodEnum<{
|
|
258
|
+
ambiguous_target: "ambiguous_target";
|
|
259
|
+
ask_rule: "ask_rule";
|
|
260
|
+
checker_not_asserted: "checker_not_asserted";
|
|
261
|
+
checker_unreachable: "checker_unreachable";
|
|
262
|
+
checker_unsure: "checker_unsure";
|
|
263
|
+
forgotten_evidence: "forgotten_evidence";
|
|
264
|
+
from_photo: "from_photo";
|
|
265
|
+
invisible_character: "invisible_character";
|
|
266
|
+
no_quote: "no_quote";
|
|
267
|
+
other: "other";
|
|
268
|
+
pinned: "pinned";
|
|
269
|
+
quote_in_quoted_block: "quote_in_quoted_block";
|
|
270
|
+
quote_not_typed: "quote_not_typed";
|
|
271
|
+
self_note: "self_note";
|
|
272
|
+
sensitive: "sensitive";
|
|
273
|
+
subject_change: "subject_change";
|
|
274
|
+
token_missing: "token_missing";
|
|
275
|
+
}>;
|
|
276
|
+
source: z.ZodEnum<{
|
|
277
|
+
owner: "owner";
|
|
278
|
+
owner_data: "owner_data";
|
|
279
|
+
untrusted: "untrusted";
|
|
280
|
+
}>;
|
|
281
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
282
|
+
origin: z.ZodEnum<{
|
|
283
|
+
conversation: "conversation";
|
|
284
|
+
owner: "owner";
|
|
285
|
+
task: "task";
|
|
286
|
+
}>;
|
|
287
|
+
proposedAt: z.ZodDate;
|
|
288
|
+
thread: z.ZodNullable<z.ZodString>;
|
|
289
|
+
}, z.core.$strip>>;
|
|
290
|
+
subject: z.ZodEnum<{
|
|
291
|
+
owner: "owner";
|
|
292
|
+
self: "self";
|
|
293
|
+
shared: "shared";
|
|
294
|
+
}>;
|
|
295
|
+
targetVersion: z.ZodNullable<z.ZodInt>;
|
|
296
|
+
text: z.ZodString;
|
|
297
|
+
until: z.ZodNullable<z.ZodDate>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
task: z.ZodNullable<z.ZodObject<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
choices: z.ZodArray<z.ZodEnum<{
|
|
305
|
+
always_allow: "always_allow";
|
|
306
|
+
approve: "approve";
|
|
307
|
+
decline: "decline";
|
|
308
|
+
defer: "defer";
|
|
309
|
+
}>>;
|
|
310
|
+
passkeyChoices: z.ZodArray<z.ZodEnum<{
|
|
311
|
+
always_allow: "always_allow";
|
|
312
|
+
approve: "approve";
|
|
313
|
+
decline: "decline";
|
|
314
|
+
defer: "defer";
|
|
315
|
+
}>>;
|
|
316
|
+
answeredOn: z.ZodNullable<z.ZodString>;
|
|
317
|
+
isAnsweredHere: z.ZodBoolean;
|
|
152
318
|
}, z.core.$strip>>;
|
|
153
319
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
154
320
|
UNAUTHORIZED: {
|
|
@@ -177,6 +343,22 @@ export declare const approvalContract: {
|
|
|
177
343
|
}, z.core.$strip>>;
|
|
178
344
|
ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
|
|
179
345
|
}, z.core.$strip>>;
|
|
346
|
+
passkey: z.ZodOptional<z.ZodObject<{
|
|
347
|
+
id: z.ZodString;
|
|
348
|
+
rawId: z.ZodString;
|
|
349
|
+
response: z.ZodObject<{
|
|
350
|
+
clientDataJSON: z.ZodString;
|
|
351
|
+
authenticatorData: z.ZodString;
|
|
352
|
+
signature: z.ZodString;
|
|
353
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
356
|
+
"cross-platform": "cross-platform";
|
|
357
|
+
platform: "platform";
|
|
358
|
+
}>>;
|
|
359
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
360
|
+
type: z.ZodLiteral<"public-key">;
|
|
361
|
+
}, z.core.$strip>>;
|
|
180
362
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
363
|
proposalID: z.ZodString;
|
|
182
364
|
state: z.ZodLiteral<"approved">;
|
|
@@ -209,6 +391,25 @@ export declare const approvalContract: {
|
|
|
209
391
|
status: number;
|
|
210
392
|
};
|
|
211
393
|
}>, {
|
|
394
|
+
NO_PASSKEY: {
|
|
395
|
+
message: string;
|
|
396
|
+
status: number;
|
|
397
|
+
};
|
|
398
|
+
PASSKEY_FAILED: {
|
|
399
|
+
message: string;
|
|
400
|
+
status: number;
|
|
401
|
+
data: z.ZodObject<{
|
|
402
|
+
reason: z.ZodEnum<{
|
|
403
|
+
binding: "binding";
|
|
404
|
+
counter: "counter";
|
|
405
|
+
no_user_verification: "no_user_verification";
|
|
406
|
+
origin: "origin";
|
|
407
|
+
signature: "signature";
|
|
408
|
+
unknown_challenge: "unknown_challenge";
|
|
409
|
+
unknown_passkey: "unknown_passkey";
|
|
410
|
+
}>;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
};
|
|
212
413
|
CONFLICT: {
|
|
213
414
|
message: string;
|
|
214
415
|
status: number;
|
|
@@ -240,6 +441,10 @@ export declare const approvalContract: {
|
|
|
240
441
|
reason: z.ZodString;
|
|
241
442
|
}, z.core.$strip>;
|
|
242
443
|
};
|
|
444
|
+
PASSKEY_REQUIRED: {
|
|
445
|
+
message: string;
|
|
446
|
+
status: number;
|
|
447
|
+
};
|
|
243
448
|
}>, Record<never, never>>;
|
|
244
449
|
answerProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
245
450
|
answers: z.ZodArray<z.ZodObject<{
|
|
@@ -292,6 +497,7 @@ export declare const approvalContract: {
|
|
|
292
497
|
CLOSED: "CLOSED";
|
|
293
498
|
CONFLICT: "CONFLICT";
|
|
294
499
|
NOT_ALLOWED: "NOT_ALLOWED";
|
|
500
|
+
PASSKEY_REQUIRED: "PASSKEY_REQUIRED";
|
|
295
501
|
}>;
|
|
296
502
|
current: z.ZodOptional<z.ZodObject<{
|
|
297
503
|
actionHash: z.ZodString;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const authenticationResponseSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
rawId: z.ZodString;
|
|
5
|
+
response: z.ZodObject<{
|
|
6
|
+
clientDataJSON: z.ZodString;
|
|
7
|
+
authenticatorData: z.ZodString;
|
|
8
|
+
signature: z.ZodString;
|
|
9
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
"cross-platform": "cross-platform";
|
|
13
|
+
platform: "platform";
|
|
14
|
+
}>>;
|
|
15
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
16
|
+
type: z.ZodLiteral<"public-key">;
|
|
17
|
+
}, z.core.$strip>;
|