@heynixie/contract 0.72.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/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
|
@@ -1222,7 +1222,6 @@ export declare const contract: {
|
|
|
1222
1222
|
origin: z.ZodEnum<{
|
|
1223
1223
|
conversation: "conversation";
|
|
1224
1224
|
lapse: "lapse";
|
|
1225
|
-
memory_writer: "memory_writer";
|
|
1226
1225
|
owner: "owner";
|
|
1227
1226
|
task: "task";
|
|
1228
1227
|
}>;
|
|
@@ -1286,7 +1285,6 @@ export declare const contract: {
|
|
|
1286
1285
|
origin: z.ZodEnum<{
|
|
1287
1286
|
conversation: "conversation";
|
|
1288
1287
|
lapse: "lapse";
|
|
1289
|
-
memory_writer: "memory_writer";
|
|
1290
1288
|
owner: "owner";
|
|
1291
1289
|
task: "task";
|
|
1292
1290
|
}>;
|
|
@@ -1350,7 +1348,6 @@ export declare const contract: {
|
|
|
1350
1348
|
origin: z.ZodEnum<{
|
|
1351
1349
|
conversation: "conversation";
|
|
1352
1350
|
lapse: "lapse";
|
|
1353
|
-
memory_writer: "memory_writer";
|
|
1354
1351
|
owner: "owner";
|
|
1355
1352
|
task: "task";
|
|
1356
1353
|
}>;
|
|
@@ -1408,7 +1405,6 @@ export declare const contract: {
|
|
|
1408
1405
|
origin: z.ZodEnum<{
|
|
1409
1406
|
conversation: "conversation";
|
|
1410
1407
|
lapse: "lapse";
|
|
1411
|
-
memory_writer: "memory_writer";
|
|
1412
1408
|
owner: "owner";
|
|
1413
1409
|
task: "task";
|
|
1414
1410
|
}>;
|
|
@@ -1470,7 +1466,6 @@ export declare const contract: {
|
|
|
1470
1466
|
origin: z.ZodEnum<{
|
|
1471
1467
|
conversation: "conversation";
|
|
1472
1468
|
lapse: "lapse";
|
|
1473
|
-
memory_writer: "memory_writer";
|
|
1474
1469
|
owner: "owner";
|
|
1475
1470
|
task: "task";
|
|
1476
1471
|
}>;
|
|
@@ -1611,7 +1606,6 @@ export declare const contract: {
|
|
|
1611
1606
|
origin: z.ZodEnum<{
|
|
1612
1607
|
conversation: "conversation";
|
|
1613
1608
|
lapse: "lapse";
|
|
1614
|
-
memory_writer: "memory_writer";
|
|
1615
1609
|
owner: "owner";
|
|
1616
1610
|
task: "task";
|
|
1617
1611
|
}>;
|
|
@@ -1654,8 +1648,6 @@ export declare const contract: {
|
|
|
1654
1648
|
version: z.ZodNullable<z.ZodInt>;
|
|
1655
1649
|
}, z.core.$strip>>;
|
|
1656
1650
|
kind: z.ZodEnum<{
|
|
1657
|
-
batch: "batch";
|
|
1658
|
-
catch_up: "catch_up";
|
|
1659
1651
|
run: "run";
|
|
1660
1652
|
turn: "turn";
|
|
1661
1653
|
}>;
|
|
@@ -1771,7 +1763,6 @@ export declare const contract: {
|
|
|
1771
1763
|
origin: z.ZodEnum<{
|
|
1772
1764
|
conversation: "conversation";
|
|
1773
1765
|
lapse: "lapse";
|
|
1774
|
-
memory_writer: "memory_writer";
|
|
1775
1766
|
owner: "owner";
|
|
1776
1767
|
task: "task";
|
|
1777
1768
|
}>;
|
|
@@ -1833,7 +1824,6 @@ export declare const contract: {
|
|
|
1833
1824
|
origin: z.ZodEnum<{
|
|
1834
1825
|
conversation: "conversation";
|
|
1835
1826
|
lapse: "lapse";
|
|
1836
|
-
memory_writer: "memory_writer";
|
|
1837
1827
|
owner: "owner";
|
|
1838
1828
|
task: "task";
|
|
1839
1829
|
}>;
|
|
@@ -1945,7 +1935,6 @@ export declare const contract: {
|
|
|
1945
1935
|
origin: z.ZodEnum<{
|
|
1946
1936
|
conversation: "conversation";
|
|
1947
1937
|
lapse: "lapse";
|
|
1948
|
-
memory_writer: "memory_writer";
|
|
1949
1938
|
owner: "owner";
|
|
1950
1939
|
task: "task";
|
|
1951
1940
|
}>;
|
|
@@ -2211,14 +2200,6 @@ export declare const contract: {
|
|
|
2211
2200
|
status: number;
|
|
2212
2201
|
};
|
|
2213
2202
|
}>, Record<never, never>>;
|
|
2214
|
-
consolidatorStatus: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
2215
|
-
isEnabled: z.ZodBoolean;
|
|
2216
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2217
|
-
UNAUTHORIZED: {
|
|
2218
|
-
message: string;
|
|
2219
|
-
status: number;
|
|
2220
|
-
};
|
|
2221
|
-
}>, Record<never, never>>;
|
|
2222
2203
|
};
|
|
2223
2204
|
nixie: {
|
|
2224
2205
|
read: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
@@ -2527,7 +2508,6 @@ export declare const contract: {
|
|
|
2527
2508
|
}>;
|
|
2528
2509
|
origin: z.ZodEnum<{
|
|
2529
2510
|
conversation: "conversation";
|
|
2530
|
-
memory_writer: "memory_writer";
|
|
2531
2511
|
owner: "owner";
|
|
2532
2512
|
task: "task";
|
|
2533
2513
|
}>;
|
|
@@ -2560,7 +2540,6 @@ export declare const contract: {
|
|
|
2560
2540
|
sources: z.ZodArray<z.ZodObject<{
|
|
2561
2541
|
origin: z.ZodEnum<{
|
|
2562
2542
|
conversation: "conversation";
|
|
2563
|
-
memory_writer: "memory_writer";
|
|
2564
2543
|
owner: "owner";
|
|
2565
2544
|
task: "task";
|
|
2566
2545
|
}>;
|
|
@@ -2587,6 +2566,12 @@ export declare const contract: {
|
|
|
2587
2566
|
decline: "decline";
|
|
2588
2567
|
defer: "defer";
|
|
2589
2568
|
}>>;
|
|
2569
|
+
passkeyChoices: z.ZodArray<z.ZodEnum<{
|
|
2570
|
+
always_allow: "always_allow";
|
|
2571
|
+
approve: "approve";
|
|
2572
|
+
decline: "decline";
|
|
2573
|
+
defer: "defer";
|
|
2574
|
+
}>>;
|
|
2590
2575
|
}, z.core.$strip>>;
|
|
2591
2576
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2592
2577
|
UNAUTHORIZED: {
|
|
@@ -2678,7 +2663,6 @@ export declare const contract: {
|
|
|
2678
2663
|
}>;
|
|
2679
2664
|
origin: z.ZodEnum<{
|
|
2680
2665
|
conversation: "conversation";
|
|
2681
|
-
memory_writer: "memory_writer";
|
|
2682
2666
|
owner: "owner";
|
|
2683
2667
|
task: "task";
|
|
2684
2668
|
}>;
|
|
@@ -2711,7 +2695,6 @@ export declare const contract: {
|
|
|
2711
2695
|
sources: z.ZodArray<z.ZodObject<{
|
|
2712
2696
|
origin: z.ZodEnum<{
|
|
2713
2697
|
conversation: "conversation";
|
|
2714
|
-
memory_writer: "memory_writer";
|
|
2715
2698
|
owner: "owner";
|
|
2716
2699
|
task: "task";
|
|
2717
2700
|
}>;
|
|
@@ -2738,6 +2721,12 @@ export declare const contract: {
|
|
|
2738
2721
|
decline: "decline";
|
|
2739
2722
|
defer: "defer";
|
|
2740
2723
|
}>>;
|
|
2724
|
+
passkeyChoices: z.ZodArray<z.ZodEnum<{
|
|
2725
|
+
always_allow: "always_allow";
|
|
2726
|
+
approve: "approve";
|
|
2727
|
+
decline: "decline";
|
|
2728
|
+
defer: "defer";
|
|
2729
|
+
}>>;
|
|
2741
2730
|
answeredOn: z.ZodNullable<z.ZodString>;
|
|
2742
2731
|
isAnsweredHere: z.ZodBoolean;
|
|
2743
2732
|
}, z.core.$strip>>;
|
|
@@ -2768,6 +2757,22 @@ export declare const contract: {
|
|
|
2768
2757
|
}, z.core.$strip>>;
|
|
2769
2758
|
ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
|
|
2770
2759
|
}, z.core.$strip>>;
|
|
2760
|
+
passkey: z.ZodOptional<z.ZodObject<{
|
|
2761
|
+
id: z.ZodString;
|
|
2762
|
+
rawId: z.ZodString;
|
|
2763
|
+
response: z.ZodObject<{
|
|
2764
|
+
clientDataJSON: z.ZodString;
|
|
2765
|
+
authenticatorData: z.ZodString;
|
|
2766
|
+
signature: z.ZodString;
|
|
2767
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
2768
|
+
}, z.core.$strip>;
|
|
2769
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
2770
|
+
"cross-platform": "cross-platform";
|
|
2771
|
+
platform: "platform";
|
|
2772
|
+
}>>;
|
|
2773
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
2774
|
+
type: z.ZodLiteral<"public-key">;
|
|
2775
|
+
}, z.core.$strip>>;
|
|
2771
2776
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2772
2777
|
proposalID: z.ZodString;
|
|
2773
2778
|
state: z.ZodLiteral<"approved">;
|
|
@@ -2800,6 +2805,25 @@ export declare const contract: {
|
|
|
2800
2805
|
status: number;
|
|
2801
2806
|
};
|
|
2802
2807
|
}>, {
|
|
2808
|
+
NO_PASSKEY: {
|
|
2809
|
+
message: string;
|
|
2810
|
+
status: number;
|
|
2811
|
+
};
|
|
2812
|
+
PASSKEY_FAILED: {
|
|
2813
|
+
message: string;
|
|
2814
|
+
status: number;
|
|
2815
|
+
data: z.ZodObject<{
|
|
2816
|
+
reason: z.ZodEnum<{
|
|
2817
|
+
binding: "binding";
|
|
2818
|
+
counter: "counter";
|
|
2819
|
+
no_user_verification: "no_user_verification";
|
|
2820
|
+
origin: "origin";
|
|
2821
|
+
signature: "signature";
|
|
2822
|
+
unknown_challenge: "unknown_challenge";
|
|
2823
|
+
unknown_passkey: "unknown_passkey";
|
|
2824
|
+
}>;
|
|
2825
|
+
}, z.core.$strip>;
|
|
2826
|
+
};
|
|
2803
2827
|
CONFLICT: {
|
|
2804
2828
|
message: string;
|
|
2805
2829
|
status: number;
|
|
@@ -2831,6 +2855,10 @@ export declare const contract: {
|
|
|
2831
2855
|
reason: z.ZodString;
|
|
2832
2856
|
}, z.core.$strip>;
|
|
2833
2857
|
};
|
|
2858
|
+
PASSKEY_REQUIRED: {
|
|
2859
|
+
message: string;
|
|
2860
|
+
status: number;
|
|
2861
|
+
};
|
|
2834
2862
|
}>, Record<never, never>>;
|
|
2835
2863
|
answerProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2836
2864
|
answers: z.ZodArray<z.ZodObject<{
|
|
@@ -2883,6 +2911,7 @@ export declare const contract: {
|
|
|
2883
2911
|
CLOSED: "CLOSED";
|
|
2884
2912
|
CONFLICT: "CONFLICT";
|
|
2885
2913
|
NOT_ALLOWED: "NOT_ALLOWED";
|
|
2914
|
+
PASSKEY_REQUIRED: "PASSKEY_REQUIRED";
|
|
2886
2915
|
}>;
|
|
2887
2916
|
current: z.ZodOptional<z.ZodObject<{
|
|
2888
2917
|
actionHash: z.ZodString;
|
|
@@ -2910,6 +2939,275 @@ export declare const contract: {
|
|
|
2910
2939
|
};
|
|
2911
2940
|
}>, Record<never, never>>;
|
|
2912
2941
|
};
|
|
2942
|
+
passkeys: {
|
|
2943
|
+
challenge: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2944
|
+
for: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2945
|
+
kind: z.ZodLiteral<"answer">;
|
|
2946
|
+
proposalID: z.ZodString;
|
|
2947
|
+
actionHash: z.ZodString;
|
|
2948
|
+
choice: z.ZodEnum<{
|
|
2949
|
+
always_allow: "always_allow";
|
|
2950
|
+
approve: "approve";
|
|
2951
|
+
decline: "decline";
|
|
2952
|
+
defer: "defer";
|
|
2953
|
+
}>;
|
|
2954
|
+
ruleHash: z.ZodOptional<z.ZodString>;
|
|
2955
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2956
|
+
kind: z.ZodLiteral<"register">;
|
|
2957
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2958
|
+
kind: z.ZodLiteral<"revoke">;
|
|
2959
|
+
passkeyID: z.ZodString;
|
|
2960
|
+
}, z.core.$strip>], "kind">;
|
|
2961
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2962
|
+
options: z.ZodObject<{
|
|
2963
|
+
challenge: z.ZodString;
|
|
2964
|
+
rpId: z.ZodString;
|
|
2965
|
+
allowCredentials: z.ZodArray<z.ZodObject<{
|
|
2966
|
+
id: z.ZodString;
|
|
2967
|
+
type: z.ZodLiteral<"public-key">;
|
|
2968
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2969
|
+
}, z.core.$strip>>;
|
|
2970
|
+
userVerification: z.ZodEnum<{
|
|
2971
|
+
discouraged: "discouraged";
|
|
2972
|
+
preferred: "preferred";
|
|
2973
|
+
required: "required";
|
|
2974
|
+
}>;
|
|
2975
|
+
timeout: z.ZodInt;
|
|
2976
|
+
}, z.core.$strip>;
|
|
2977
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2978
|
+
UNAUTHORIZED: {
|
|
2979
|
+
message: string;
|
|
2980
|
+
status: number;
|
|
2981
|
+
};
|
|
2982
|
+
}>, {
|
|
2983
|
+
NO_PASSKEY: {
|
|
2984
|
+
message: string;
|
|
2985
|
+
status: number;
|
|
2986
|
+
};
|
|
2987
|
+
}>, Record<never, never>>;
|
|
2988
|
+
registrationOptions: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2989
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2990
|
+
passkey: z.ZodOptional<z.ZodObject<{
|
|
2991
|
+
id: z.ZodString;
|
|
2992
|
+
rawId: z.ZodString;
|
|
2993
|
+
response: z.ZodObject<{
|
|
2994
|
+
clientDataJSON: z.ZodString;
|
|
2995
|
+
authenticatorData: z.ZodString;
|
|
2996
|
+
signature: z.ZodString;
|
|
2997
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
2998
|
+
}, z.core.$strip>;
|
|
2999
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
3000
|
+
"cross-platform": "cross-platform";
|
|
3001
|
+
platform: "platform";
|
|
3002
|
+
}>>;
|
|
3003
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
3004
|
+
type: z.ZodLiteral<"public-key">;
|
|
3005
|
+
}, z.core.$strip>>;
|
|
3006
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3007
|
+
options: z.ZodObject<{
|
|
3008
|
+
rp: z.ZodObject<{
|
|
3009
|
+
id: z.ZodString;
|
|
3010
|
+
name: z.ZodString;
|
|
3011
|
+
}, z.core.$strip>;
|
|
3012
|
+
user: z.ZodObject<{
|
|
3013
|
+
id: z.ZodString;
|
|
3014
|
+
name: z.ZodString;
|
|
3015
|
+
displayName: z.ZodString;
|
|
3016
|
+
}, z.core.$strip>;
|
|
3017
|
+
challenge: z.ZodString;
|
|
3018
|
+
pubKeyCredParams: z.ZodArray<z.ZodObject<{
|
|
3019
|
+
type: z.ZodLiteral<"public-key">;
|
|
3020
|
+
alg: z.ZodInt;
|
|
3021
|
+
}, z.core.$strip>>;
|
|
3022
|
+
timeout: z.ZodInt;
|
|
3023
|
+
excludeCredentials: z.ZodArray<z.ZodObject<{
|
|
3024
|
+
id: z.ZodString;
|
|
3025
|
+
type: z.ZodLiteral<"public-key">;
|
|
3026
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3027
|
+
}, z.core.$strip>>;
|
|
3028
|
+
authenticatorSelection: z.ZodObject<{
|
|
3029
|
+
residentKey: z.ZodEnum<{
|
|
3030
|
+
discouraged: "discouraged";
|
|
3031
|
+
preferred: "preferred";
|
|
3032
|
+
required: "required";
|
|
3033
|
+
}>;
|
|
3034
|
+
requireResidentKey: z.ZodBoolean;
|
|
3035
|
+
userVerification: z.ZodEnum<{
|
|
3036
|
+
discouraged: "discouraged";
|
|
3037
|
+
preferred: "preferred";
|
|
3038
|
+
required: "required";
|
|
3039
|
+
}>;
|
|
3040
|
+
}, z.core.$strip>;
|
|
3041
|
+
attestation: z.ZodEnum<{
|
|
3042
|
+
direct: "direct";
|
|
3043
|
+
enterprise: "enterprise";
|
|
3044
|
+
indirect: "indirect";
|
|
3045
|
+
none: "none";
|
|
3046
|
+
}>;
|
|
3047
|
+
}, z.core.$strip>;
|
|
3048
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3049
|
+
UNAUTHORIZED: {
|
|
3050
|
+
message: string;
|
|
3051
|
+
status: number;
|
|
3052
|
+
};
|
|
3053
|
+
}>, {
|
|
3054
|
+
PASSKEY_FAILED: {
|
|
3055
|
+
message: string;
|
|
3056
|
+
status: number;
|
|
3057
|
+
data: z.ZodObject<{
|
|
3058
|
+
reason: z.ZodEnum<{
|
|
3059
|
+
binding: "binding";
|
|
3060
|
+
counter: "counter";
|
|
3061
|
+
no_user_verification: "no_user_verification";
|
|
3062
|
+
origin: "origin";
|
|
3063
|
+
signature: "signature";
|
|
3064
|
+
unknown_challenge: "unknown_challenge";
|
|
3065
|
+
unknown_passkey: "unknown_passkey";
|
|
3066
|
+
}>;
|
|
3067
|
+
}, z.core.$strip>;
|
|
3068
|
+
};
|
|
3069
|
+
TOO_MANY_PASSKEYS: {
|
|
3070
|
+
message: string;
|
|
3071
|
+
status: number;
|
|
3072
|
+
};
|
|
3073
|
+
ORIGIN_UNSUPPORTED: {
|
|
3074
|
+
message: string;
|
|
3075
|
+
status: number;
|
|
3076
|
+
};
|
|
3077
|
+
ORIGIN_CHANGED: {
|
|
3078
|
+
message: string;
|
|
3079
|
+
status: number;
|
|
3080
|
+
};
|
|
3081
|
+
}>, {
|
|
3082
|
+
CODE_REQUIRED: {
|
|
3083
|
+
message: string;
|
|
3084
|
+
status: number;
|
|
3085
|
+
};
|
|
3086
|
+
CODE_INVALID: {
|
|
3087
|
+
message: string;
|
|
3088
|
+
status: number;
|
|
3089
|
+
};
|
|
3090
|
+
}>, Record<never, never>>;
|
|
3091
|
+
register: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3092
|
+
clientActionID: z.ZodUUID;
|
|
3093
|
+
response: z.ZodObject<{
|
|
3094
|
+
id: z.ZodString;
|
|
3095
|
+
rawId: z.ZodString;
|
|
3096
|
+
response: z.ZodObject<{
|
|
3097
|
+
clientDataJSON: z.ZodString;
|
|
3098
|
+
attestationObject: z.ZodString;
|
|
3099
|
+
authenticatorData: z.ZodOptional<z.ZodString>;
|
|
3100
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3101
|
+
publicKeyAlgorithm: z.ZodOptional<z.ZodInt>;
|
|
3102
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
3103
|
+
}, z.core.$strip>;
|
|
3104
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
3105
|
+
"cross-platform": "cross-platform";
|
|
3106
|
+
platform: "platform";
|
|
3107
|
+
}>>;
|
|
3108
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
3109
|
+
type: z.ZodLiteral<"public-key">;
|
|
3110
|
+
}, z.core.$strip>;
|
|
3111
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3113
|
+
passkeyID: z.ZodString;
|
|
3114
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3115
|
+
UNAUTHORIZED: {
|
|
3116
|
+
message: string;
|
|
3117
|
+
status: number;
|
|
3118
|
+
};
|
|
3119
|
+
}>, {
|
|
3120
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
3121
|
+
message: string;
|
|
3122
|
+
status: number;
|
|
3123
|
+
};
|
|
3124
|
+
}>, {
|
|
3125
|
+
REGISTRATION_FAILED: {
|
|
3126
|
+
message: string;
|
|
3127
|
+
status: number;
|
|
3128
|
+
data: z.ZodObject<{
|
|
3129
|
+
reason: z.ZodString;
|
|
3130
|
+
}, z.core.$strip>;
|
|
3131
|
+
};
|
|
3132
|
+
TOO_MANY_PASSKEYS: {
|
|
3133
|
+
message: string;
|
|
3134
|
+
status: number;
|
|
3135
|
+
};
|
|
3136
|
+
ORIGIN_UNSUPPORTED: {
|
|
3137
|
+
message: string;
|
|
3138
|
+
status: number;
|
|
3139
|
+
};
|
|
3140
|
+
}>, Record<never, never>>;
|
|
3141
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
3142
|
+
passkeys: z.ZodArray<z.ZodObject<{
|
|
3143
|
+
passkeyID: z.ZodString;
|
|
3144
|
+
label: z.ZodString;
|
|
3145
|
+
synced: z.ZodBoolean;
|
|
3146
|
+
authorizedBy: z.ZodString;
|
|
3147
|
+
registeredAt: z.ZodDate;
|
|
3148
|
+
lastUsedAt: z.ZodNullable<z.ZodDate>;
|
|
3149
|
+
revokedAt: z.ZodNullable<z.ZodDate>;
|
|
3150
|
+
}, z.core.$strip>>;
|
|
3151
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3152
|
+
UNAUTHORIZED: {
|
|
3153
|
+
message: string;
|
|
3154
|
+
status: number;
|
|
3155
|
+
};
|
|
3156
|
+
}>, Record<never, never>>;
|
|
3157
|
+
revoke: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3158
|
+
clientActionID: z.ZodUUID;
|
|
3159
|
+
passkeyID: z.ZodString;
|
|
3160
|
+
passkey: z.ZodObject<{
|
|
3161
|
+
id: z.ZodString;
|
|
3162
|
+
rawId: z.ZodString;
|
|
3163
|
+
response: z.ZodObject<{
|
|
3164
|
+
clientDataJSON: z.ZodString;
|
|
3165
|
+
authenticatorData: z.ZodString;
|
|
3166
|
+
signature: z.ZodString;
|
|
3167
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
3168
|
+
}, z.core.$strip>;
|
|
3169
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
3170
|
+
"cross-platform": "cross-platform";
|
|
3171
|
+
platform: "platform";
|
|
3172
|
+
}>>;
|
|
3173
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
3174
|
+
type: z.ZodLiteral<"public-key">;
|
|
3175
|
+
}, z.core.$strip>;
|
|
3176
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3177
|
+
revokedAt: z.ZodDate;
|
|
3178
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3179
|
+
UNAUTHORIZED: {
|
|
3180
|
+
message: string;
|
|
3181
|
+
status: number;
|
|
3182
|
+
};
|
|
3183
|
+
}>, {
|
|
3184
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
3185
|
+
message: string;
|
|
3186
|
+
status: number;
|
|
3187
|
+
};
|
|
3188
|
+
}>, {
|
|
3189
|
+
PASSKEY_FAILED: {
|
|
3190
|
+
message: string;
|
|
3191
|
+
status: number;
|
|
3192
|
+
data: z.ZodObject<{
|
|
3193
|
+
reason: z.ZodEnum<{
|
|
3194
|
+
binding: "binding";
|
|
3195
|
+
counter: "counter";
|
|
3196
|
+
no_user_verification: "no_user_verification";
|
|
3197
|
+
origin: "origin";
|
|
3198
|
+
signature: "signature";
|
|
3199
|
+
unknown_challenge: "unknown_challenge";
|
|
3200
|
+
unknown_passkey: "unknown_passkey";
|
|
3201
|
+
}>;
|
|
3202
|
+
}, z.core.$strip>;
|
|
3203
|
+
};
|
|
3204
|
+
}>, {
|
|
3205
|
+
NOT_FOUND: {
|
|
3206
|
+
message: string;
|
|
3207
|
+
status: number;
|
|
3208
|
+
};
|
|
3209
|
+
}>, Record<never, never>>;
|
|
3210
|
+
};
|
|
2913
3211
|
log: {
|
|
2914
3212
|
follow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2915
3213
|
afterSequence: z.ZodInt;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const creationOptionsSchema: z.ZodObject<{
|
|
3
|
+
rp: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
user: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
displayName: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
challenge: z.ZodString;
|
|
13
|
+
pubKeyCredParams: z.ZodArray<z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"public-key">;
|
|
15
|
+
alg: z.ZodInt;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
timeout: z.ZodInt;
|
|
18
|
+
excludeCredentials: z.ZodArray<z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
type: z.ZodLiteral<"public-key">;
|
|
21
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
authenticatorSelection: z.ZodObject<{
|
|
24
|
+
residentKey: z.ZodEnum<{
|
|
25
|
+
discouraged: "discouraged";
|
|
26
|
+
preferred: "preferred";
|
|
27
|
+
required: "required";
|
|
28
|
+
}>;
|
|
29
|
+
requireResidentKey: z.ZodBoolean;
|
|
30
|
+
userVerification: z.ZodEnum<{
|
|
31
|
+
discouraged: "discouraged";
|
|
32
|
+
preferred: "preferred";
|
|
33
|
+
required: "required";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
attestation: z.ZodEnum<{
|
|
37
|
+
direct: "direct";
|
|
38
|
+
enterprise: "enterprise";
|
|
39
|
+
indirect: "indirect";
|
|
40
|
+
none: "none";
|
|
41
|
+
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const forgettableKinds: readonly ['action.outcome', 'action.queued', 'action.retry_scheduled', '
|
|
1
|
+
export declare const forgettableKinds: readonly ['action.outcome', 'action.queued', 'action.retry_scheduled', 'model.compaction_failed', 'model.reply', 'model.session_summarized', 'owner_message', 'passkey.registered', 'policy.action_answered', 'policy.action_proposed', 'policy.contact_marked_known', 'prompts.override_rejected', 'proposals.deferred', 'session.enrolled', 'session.labelled', 'session_kept', 'skills.write_rejected', 'task.created', 'task.run_ended', 'task.run_report_requested', 'task.step_errored', 'task_message', 'tool_called', 'tool_result'];
|