@heynixie/contract 0.72.0 → 0.74.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 +52 -4
- package/dist/contract/authentication-response-schema.d.ts +17 -0
- package/dist/contract/base64-url-schema.d.ts +2 -0
- package/dist/contract/build-query-utils.d.ts +366 -23
- package/dist/contract/challenge-for-schema.d.ts +18 -0
- package/dist/contract/choice-schema.d.ts +7 -0
- package/dist/contract/contract.d.ts +321 -23
- 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 -1
- package/dist/contract/host-contract.d.ts +28 -199
- package/dist/contract/host-passkey-contract.d.ts +29 -0
- package/dist/contract/memory-view-contract.d.ts +0 -13
- 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/registration-response-schema.d.ts +19 -0
- package/dist/contract/request-options-schema.d.ts +16 -0
- package/dist/contract/transports-schema.d.ts +2 -0
- package/dist/contract/user-verification-schema.d.ts +6 -0
- package/dist/index.js +1010 -830
- package/package.json +1 -1
|
@@ -94,7 +94,6 @@ export declare const approvalContract: {
|
|
|
94
94
|
}>;
|
|
95
95
|
origin: z.ZodEnum<{
|
|
96
96
|
conversation: "conversation";
|
|
97
|
-
memory_writer: "memory_writer";
|
|
98
97
|
owner: "owner";
|
|
99
98
|
task: "task";
|
|
100
99
|
}>;
|
|
@@ -127,7 +126,6 @@ export declare const approvalContract: {
|
|
|
127
126
|
sources: z.ZodArray<z.ZodObject<{
|
|
128
127
|
origin: z.ZodEnum<{
|
|
129
128
|
conversation: "conversation";
|
|
130
|
-
memory_writer: "memory_writer";
|
|
131
129
|
owner: "owner";
|
|
132
130
|
task: "task";
|
|
133
131
|
}>;
|
|
@@ -154,6 +152,12 @@ export declare const approvalContract: {
|
|
|
154
152
|
decline: "decline";
|
|
155
153
|
defer: "defer";
|
|
156
154
|
}>>;
|
|
155
|
+
passkeyChoices: z.ZodArray<z.ZodEnum<{
|
|
156
|
+
always_allow: "always_allow";
|
|
157
|
+
approve: "approve";
|
|
158
|
+
decline: "decline";
|
|
159
|
+
defer: "defer";
|
|
160
|
+
}>>;
|
|
157
161
|
}, z.core.$strip>>;
|
|
158
162
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
159
163
|
UNAUTHORIZED: {
|
|
@@ -245,7 +249,6 @@ export declare const approvalContract: {
|
|
|
245
249
|
}>;
|
|
246
250
|
origin: z.ZodEnum<{
|
|
247
251
|
conversation: "conversation";
|
|
248
|
-
memory_writer: "memory_writer";
|
|
249
252
|
owner: "owner";
|
|
250
253
|
task: "task";
|
|
251
254
|
}>;
|
|
@@ -278,7 +281,6 @@ export declare const approvalContract: {
|
|
|
278
281
|
sources: z.ZodArray<z.ZodObject<{
|
|
279
282
|
origin: z.ZodEnum<{
|
|
280
283
|
conversation: "conversation";
|
|
281
|
-
memory_writer: "memory_writer";
|
|
282
284
|
owner: "owner";
|
|
283
285
|
task: "task";
|
|
284
286
|
}>;
|
|
@@ -305,6 +307,12 @@ export declare const approvalContract: {
|
|
|
305
307
|
decline: "decline";
|
|
306
308
|
defer: "defer";
|
|
307
309
|
}>>;
|
|
310
|
+
passkeyChoices: z.ZodArray<z.ZodEnum<{
|
|
311
|
+
always_allow: "always_allow";
|
|
312
|
+
approve: "approve";
|
|
313
|
+
decline: "decline";
|
|
314
|
+
defer: "defer";
|
|
315
|
+
}>>;
|
|
308
316
|
answeredOn: z.ZodNullable<z.ZodString>;
|
|
309
317
|
isAnsweredHere: z.ZodBoolean;
|
|
310
318
|
}, z.core.$strip>>;
|
|
@@ -335,6 +343,22 @@ export declare const approvalContract: {
|
|
|
335
343
|
}, z.core.$strip>>;
|
|
336
344
|
ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
|
|
337
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>>;
|
|
338
362
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
339
363
|
proposalID: z.ZodString;
|
|
340
364
|
state: z.ZodLiteral<"approved">;
|
|
@@ -367,6 +391,25 @@ export declare const approvalContract: {
|
|
|
367
391
|
status: number;
|
|
368
392
|
};
|
|
369
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
|
+
};
|
|
370
413
|
CONFLICT: {
|
|
371
414
|
message: string;
|
|
372
415
|
status: number;
|
|
@@ -398,6 +441,10 @@ export declare const approvalContract: {
|
|
|
398
441
|
reason: z.ZodString;
|
|
399
442
|
}, z.core.$strip>;
|
|
400
443
|
};
|
|
444
|
+
PASSKEY_REQUIRED: {
|
|
445
|
+
message: string;
|
|
446
|
+
status: number;
|
|
447
|
+
};
|
|
401
448
|
}>, Record<never, never>>;
|
|
402
449
|
answerProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
403
450
|
answers: z.ZodArray<z.ZodObject<{
|
|
@@ -450,6 +497,7 @@ export declare const approvalContract: {
|
|
|
450
497
|
CLOSED: "CLOSED";
|
|
451
498
|
CONFLICT: "CONFLICT";
|
|
452
499
|
NOT_ALLOWED: "NOT_ALLOWED";
|
|
500
|
+
PASSKEY_REQUIRED: "PASSKEY_REQUIRED";
|
|
453
501
|
}>;
|
|
454
502
|
current: z.ZodOptional<z.ZodObject<{
|
|
455
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>;
|