faire-auth 1.0.3 → 1.1.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.
Files changed (228) hide show
  1. package/dist/{adapter-factory-lKIOf2OR.mjs → adapter-factory-qPVW8x9-.mjs} +34 -36
  2. package/dist/{adapter-factory-D1I7joki.cjs → adapter-factory-u8r3oTez.cjs} +66 -68
  3. package/dist/adapters/drizzle-adapter/index.cjs +34 -40
  4. package/dist/adapters/drizzle-adapter/index.d.cts +4 -9
  5. package/dist/adapters/drizzle-adapter/index.d.mts +4 -9
  6. package/dist/adapters/drizzle-adapter/index.mjs +20 -26
  7. package/dist/adapters/index.cjs +11 -16
  8. package/dist/adapters/index.d.cts +11 -37
  9. package/dist/adapters/index.d.mts +11 -37
  10. package/dist/adapters/index.mjs +4 -13
  11. package/dist/adapters/kysely-adapter/index.cjs +270 -11
  12. package/dist/adapters/kysely-adapter/index.d.cts +9 -19
  13. package/dist/adapters/kysely-adapter/index.d.mts +9 -19
  14. package/dist/adapters/kysely-adapter/index.mjs +267 -9
  15. package/dist/adapters/memory-adapter/index.cjs +146 -9
  16. package/dist/adapters/memory-adapter/index.d.cts +4 -10
  17. package/dist/adapters/memory-adapter/index.d.mts +4 -10
  18. package/dist/adapters/memory-adapter/index.mjs +145 -9
  19. package/dist/adapters/mongodb-adapter/index.cjs +13 -21
  20. package/dist/adapters/mongodb-adapter/index.d.cts +3 -8
  21. package/dist/adapters/mongodb-adapter/index.d.mts +4 -9
  22. package/dist/adapters/mongodb-adapter/index.mjs +12 -20
  23. package/dist/adapters/prisma-adapter/index.cjs +12 -20
  24. package/dist/adapters/prisma-adapter/index.d.cts +4 -8
  25. package/dist/adapters/prisma-adapter/index.d.mts +4 -8
  26. package/dist/adapters/prisma-adapter/index.mjs +5 -13
  27. package/dist/adapters/test.cjs +86 -69
  28. package/dist/adapters/test.d.cts +7 -11
  29. package/dist/adapters/test.d.mts +7 -11
  30. package/dist/adapters/test.mjs +83 -66
  31. package/dist/api/index.cjs +3 -20
  32. package/dist/api/index.d.cts +2 -3
  33. package/dist/api/index.d.mts +2 -3
  34. package/dist/api/index.mjs +1 -20
  35. package/dist/api/middleware/index.cjs +4 -11
  36. package/dist/api/middleware/index.d.cts +3 -9
  37. package/dist/api/middleware/index.d.mts +3 -9
  38. package/dist/api/middleware/index.mjs +3 -11
  39. package/dist/{api-B4RDwBty.mjs → api-0f-F-Fi2.mjs} +292 -189
  40. package/dist/{api-CaRC1Gio.cjs → api-LjfH6hQi.cjs} +557 -452
  41. package/dist/{test-utils/bun-sqlite-dialect-BZBvHchL.cjs → bun-sqlite-dialect-BHkarnxN.cjs} +5 -9
  42. package/dist/{test-utils/bun-sqlite-dialect-BSWhhKNs.mjs → bun-sqlite-dialect-BiZBuEF6.mjs} +6 -9
  43. package/dist/client/index.cjs +8 -15
  44. package/dist/client/index.d.cts +9 -14
  45. package/dist/client/index.d.mts +9 -14
  46. package/dist/client/index.mjs +7 -15
  47. package/dist/client/lynx/index.cjs +10 -18
  48. package/dist/client/lynx/index.d.cts +402 -71
  49. package/dist/client/lynx/index.d.mts +402 -71
  50. package/dist/client/lynx/index.mjs +5 -13
  51. package/dist/client/plugins/index.cjs +3 -5
  52. package/dist/client/plugins/index.d.cts +5 -10
  53. package/dist/client/plugins/index.d.mts +5 -10
  54. package/dist/client/plugins/index.mjs +2 -4
  55. package/dist/client/react/index.cjs +6 -14
  56. package/dist/client/react/index.d.cts +402 -71
  57. package/dist/client/react/index.d.mts +402 -71
  58. package/dist/client/react/index.mjs +5 -13
  59. package/dist/client/solid/index.cjs +6 -14
  60. package/dist/client/solid/index.d.cts +393 -57
  61. package/dist/client/solid/index.d.mts +393 -57
  62. package/dist/client/solid/index.mjs +5 -13
  63. package/dist/client/svelte/index.cjs +5 -10
  64. package/dist/client/svelte/index.d.cts +400 -67
  65. package/dist/client/svelte/index.d.mts +400 -67
  66. package/dist/client/svelte/index.mjs +4 -10
  67. package/dist/client/vue/index.cjs +6 -14
  68. package/dist/client/vue/index.d.cts +401 -68
  69. package/dist/client/vue/index.d.mts +401 -68
  70. package/dist/client/vue/index.mjs +5 -13
  71. package/dist/{cookies-BTs1o992.mjs → cookies-D9aY_gJh.mjs} +25 -21
  72. package/dist/{cookies-BTl72THv.cjs → cookies-DQ52rcOy.cjs} +119 -115
  73. package/dist/crypto/index.cjs +10 -8
  74. package/dist/crypto/index.d.cts +5 -13
  75. package/dist/crypto/index.d.mts +5 -13
  76. package/dist/crypto/index.mjs +2 -5
  77. package/dist/{crypto-DH2Aa7jN.mjs → crypto-BH-hD0lJ.mjs} +7 -10
  78. package/dist/{crypto-DpSCnrTp.cjs → crypto-BITfWVwD.cjs} +24 -27
  79. package/dist/db/index.cjs +1135 -29
  80. package/dist/db/index.d.cts +1 -2
  81. package/dist/db/index.d.mts +1 -2
  82. package/dist/db/index.mjs +1115 -16
  83. package/dist/defu-D2h4S3X-.mjs +87 -0
  84. package/dist/defu-DWS5RPWt.cjs +134 -0
  85. package/dist/{email-verification-DI_0H4JC.cjs → email-verification-DOPnSgbI.cjs} +65 -71
  86. package/dist/{email-verification-C_lBu_JY.mjs → email-verification-YSR5n5lb.mjs} +23 -29
  87. package/dist/{hono-CO-zsqI-.mjs → hono-BAV2wQkK.mjs} +16 -33
  88. package/dist/hono-SVQuc5Ru.mjs +4 -0
  89. package/dist/hono-pgK4H_U1.cjs +9 -0
  90. package/dist/{hono-DnW5crl1.cjs → hono-tyFFJFdS.cjs} +42 -60
  91. package/dist/index-B86Cy0dE.d.cts +2 -0
  92. package/dist/index-B86Cy0dE.d.mts +2 -0
  93. package/dist/index.cjs +115 -150
  94. package/dist/index.d.cts +4 -5
  95. package/dist/index.d.mts +4 -5
  96. package/dist/index.mjs +46 -81
  97. package/dist/integrations/next-js.cjs +5 -9
  98. package/dist/integrations/next-js.d.cts +6 -14
  99. package/dist/integrations/next-js.d.mts +6 -14
  100. package/dist/integrations/next-js.mjs +4 -9
  101. package/dist/integrations/node.cjs +16 -14
  102. package/dist/integrations/node.d.cts +6 -14
  103. package/dist/integrations/node.d.mts +6 -14
  104. package/dist/integrations/node.mjs +15 -13
  105. package/dist/integrations/react-start.cjs +7 -11
  106. package/dist/integrations/react-start.d.cts +5 -13
  107. package/dist/integrations/react-start.d.mts +5 -13
  108. package/dist/integrations/react-start.mjs +6 -11
  109. package/dist/integrations/solid-start.cjs +3 -5
  110. package/dist/integrations/solid-start.d.cts +2 -5
  111. package/dist/integrations/solid-start.d.mts +2 -5
  112. package/dist/integrations/solid-start.mjs +2 -4
  113. package/dist/integrations/svelte-kit.cjs +6 -10
  114. package/dist/integrations/svelte-kit.d.cts +11 -23
  115. package/dist/integrations/svelte-kit.d.mts +11 -23
  116. package/dist/integrations/svelte-kit.mjs +5 -10
  117. package/dist/{ip-BjNYspCH.mjs → ip-6Lv2o42m.mjs} +4 -9
  118. package/dist/{ip-C17Qdq-G.cjs → ip-DPydExzV.cjs} +21 -27
  119. package/dist/{json--tl7Grvs.cjs → json-D3aq-nH2.cjs} +9 -13
  120. package/dist/{json-B1v2qRTQ.mjs → json-DooGMtnJ.mjs} +2 -5
  121. package/dist/{logged-CyGfp8_H.mjs → logged-B83SzMnJ.mjs} +6 -10
  122. package/dist/{logged-Dv3st5qc.cjs → logged-BIpCpnVY.cjs} +13 -18
  123. package/dist/{middleware-CE6OhDkq.mjs → middleware-Cakg4e1D.mjs} +2 -4
  124. package/dist/{middleware-CWvRH4EW.cjs → middleware-Cd-VkNxB.cjs} +17 -20
  125. package/dist/{node-sqlite-dialect-w4DAg0PH.mjs → node-sqlite-dialect-BMVOjEMh.mjs} +6 -9
  126. package/dist/{test-utils/node-sqlite-dialect-BgJqjBOu.cjs → node-sqlite-dialect-D3QPFROH.cjs} +5 -9
  127. package/dist/oauth2/index.cjs +166 -22
  128. package/dist/oauth2/index.d.cts +5 -17
  129. package/dist/oauth2/index.d.mts +5 -17
  130. package/dist/oauth2/index.mjs +156 -16
  131. package/dist/{origin-check-DjLTuZQ8.cjs → origin-check-BflGhEEN.cjs} +34 -38
  132. package/dist/{origin-check-8Gajklvh.mjs → origin-check-CRgs1M7k.mjs} +13 -16
  133. package/dist/{parser-B25ylT5u.mjs → parser-CqwvpF6l.cjs} +12 -10
  134. package/dist/{parser-B_wxvaAr.cjs → parser-DcKDjjHO.mjs} +7 -22
  135. package/dist/plugins/access/index.cjs +38 -4
  136. package/dist/plugins/access/index.d.cts +36 -2
  137. package/dist/plugins/access/index.d.mts +36 -2
  138. package/dist/plugins/access/index.mjs +36 -3
  139. package/dist/plugins/bearer/index.cjs +52 -7
  140. package/dist/plugins/bearer/index.d.cts +27 -4
  141. package/dist/plugins/bearer/index.d.mts +27 -4
  142. package/dist/plugins/bearer/index.mjs +51 -7
  143. package/dist/plugins/index.cjs +1385 -842
  144. package/dist/plugins/index.d.cts +489 -7566
  145. package/dist/plugins/index.d.mts +489 -7566
  146. package/dist/plugins/index.mjs +1118 -576
  147. package/dist/plugins/passkey/index.cjs +551 -15
  148. package/dist/plugins/passkey/index.d.cts +123 -4
  149. package/dist/plugins/passkey/index.d.mts +123 -4
  150. package/dist/plugins/passkey/index.mjs +547 -15
  151. package/dist/{chunk-BFnQceUY.mjs → rolldown-runtime-BKpuH2hG.mjs} +6 -7
  152. package/dist/{chunk-fPmz2rbM.cjs → rolldown-runtime-C_Pgydhf.cjs} +22 -24
  153. package/dist/{schema-DTIwLLmf.mjs → schema-CFCpv0tK.mjs} +3 -6
  154. package/dist/{schema-CirKflVs.cjs → schema-b-lKhMkG.cjs} +51 -55
  155. package/dist/{session-CM3rmOYF.mjs → session-BGjJgihS.mjs} +51 -74
  156. package/dist/{session-Cwrj4GfV.cjs → session-CzZSMmQC.cjs} +197 -219
  157. package/dist/shared.d.cts +1581 -0
  158. package/dist/shared.d.mts +1581 -0
  159. package/dist/social-providers/index.cjs +9 -9
  160. package/dist/social-providers/index.d.cts +1 -1
  161. package/dist/social-providers/index.d.mts +1 -1
  162. package/dist/social-providers/index.mjs +3 -5
  163. package/dist/social-providers-CjPww-qf.mjs +6 -0
  164. package/dist/social-providers-D7w_7Ym8.cjs +10 -0
  165. package/dist/{state-CvSihlVT.cjs → state-2OrNjOO-.cjs} +24 -24
  166. package/dist/{state-CQghgH9I.mjs → state-Dooeisfq.mjs} +17 -17
  167. package/dist/{bun-sqlite-dialect-DPgTzc0w.cjs → test-utils/bun-sqlite-dialect-BHkarnxN.cjs} +5 -9
  168. package/dist/{bun-sqlite-dialect-6NqeV3px.mjs → test-utils/bun-sqlite-dialect-BiZBuEF6.mjs} +6 -9
  169. package/dist/test-utils/index.cjs +8831 -7941
  170. package/dist/test-utils/index.d.cts +310 -12440
  171. package/dist/test-utils/index.d.mts +313 -12440
  172. package/dist/test-utils/index.mjs +8591 -7701
  173. package/dist/test-utils/{node-sqlite-dialect-DAQXiobH.mjs → node-sqlite-dialect-BMVOjEMh.mjs} +6 -9
  174. package/dist/{node-sqlite-dialect-DP11CB0y.cjs → test-utils/node-sqlite-dialect-D3QPFROH.cjs} +5 -9
  175. package/dist/types/index.d.cts +2 -3
  176. package/dist/types/index.d.mts +2 -3
  177. package/dist/types/index.mjs +1 -1
  178. package/dist/{url-BoUuoIwZ.mjs → url-CJtdrrUu.mjs} +12 -13
  179. package/dist/{url-Ce7CVaQD.cjs → url-DjCmCUHS.cjs} +42 -44
  180. package/dist/utils/cookies.cjs +29 -30
  181. package/dist/utils/cookies.d.cts +21 -25
  182. package/dist/utils/cookies.d.mts +20 -24
  183. package/dist/utils/cookies.mjs +2 -7
  184. package/dist/utils-C7OHyfHa.mjs +4 -0
  185. package/dist/utils-iX0Vy_UL.cjs +3 -0
  186. package/package.json +40 -30
  187. package/dist/access-BZ7-AbTM.cjs +0 -51
  188. package/dist/access-D0DRqUKC.mjs +0 -39
  189. package/dist/bearer-DDzrp5M7.cjs +0 -60
  190. package/dist/bearer-WZcs7gxL.mjs +0 -54
  191. package/dist/db-4tUsQJXd.mjs +0 -1119
  192. package/dist/db-ChMbb_U-.cjs +0 -1180
  193. package/dist/defu-BmOYq4PU.cjs +0 -34
  194. package/dist/defu-D9ZTXqlo.mjs +0 -28
  195. package/dist/hono-C14rpOEa.cjs +0 -13
  196. package/dist/hono-CoKYWnXA.mjs +0 -7
  197. package/dist/hono-D0VqxVy1.d.mts +0 -18
  198. package/dist/hono-DOM31WQz.d.cts +0 -18
  199. package/dist/index-BCTFWP_o.d.mts +0 -992
  200. package/dist/index-BDhhaE6Y.d.cts +0 -3
  201. package/dist/index-BVRfQy6L.d.mts +0 -992
  202. package/dist/index-Baarsq5J.d.mts +0 -33
  203. package/dist/index-By364WbF.d.cts +0 -992
  204. package/dist/index-BzWwMgxr.d.cts +0 -992
  205. package/dist/index-CF9iq55a.d.mts +0 -3
  206. package/dist/index-CJD2yB-W.d.cts +0 -33
  207. package/dist/index-CRt_fppq.d.mts +0 -41
  208. package/dist/index-CdLyn7qP.d.cts +0 -41
  209. package/dist/index-CsWF3f7U.d.cts +0 -13350
  210. package/dist/index-CzidsAyA.d.mts +0 -13350
  211. package/dist/index-DvW-GCcI.d.cts +0 -33
  212. package/dist/index-f-5OJ9yV.d.cts +0 -13350
  213. package/dist/index-rFv8Hxld.d.mts +0 -13350
  214. package/dist/index-ztVZPQdV.d.mts +0 -33
  215. package/dist/kysely-adapter-CtIdoHa8.mjs +0 -270
  216. package/dist/kysely-adapter-QZTx077T.cjs +0 -288
  217. package/dist/memory-adapter-17RZd5df.cjs +0 -154
  218. package/dist/memory-adapter-Dp4XdCZK.mjs +0 -148
  219. package/dist/oauth2-5RL4cVNS.cjs +0 -177
  220. package/dist/oauth2-C56wz-n9.mjs +0 -159
  221. package/dist/passkey-BTT-v5c-.cjs +0 -512
  222. package/dist/passkey-CzY_W2us.mjs +0 -505
  223. package/dist/request-1NL_1lyJ.mjs +0 -58
  224. package/dist/request-CPNlp-DK.cjs +0 -100
  225. package/dist/social-providers-B8RK5yqI.mjs +0 -9
  226. package/dist/social-providers-BmFOIIPk.cjs +0 -13
  227. package/dist/utils-44aDDP8f.cjs +0 -2
  228. package/dist/utils-D4vZd1-9.mjs +0 -4
@@ -1,992 +0,0 @@
1
- import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-CzidsAyA.mjs";
2
- import { t as ContextVars } from "./hono-D0VqxVy1.mjs";
3
- import * as hono55 from "hono";
4
- import * as z$1 from "zod";
5
- import * as _faire_auth_core_db7 from "@faire-auth/core/db";
6
- import { AuthenticationResponseJSON, CredentialDeviceType } from "@simplewebauthn/server";
7
- import * as _faire_auth_core_types43 from "@faire-auth/core/types";
8
-
9
- //#region src/plugins/passkey/index.d.ts
10
- interface PasskeyOptions {
11
- /**
12
- * A unique identifier for your website. 'localhost' is okay for
13
- * local dev
14
- *
15
- * @default "localhost"
16
- */
17
- rpID?: string;
18
- /**
19
- * Human-readable title for your website
20
- *
21
- * @default "Better Auth"
22
- */
23
- rpName?: string;
24
- /**
25
- * The URL at which registrations and authentications should occur.
26
- * `http://localhost` and `http://localhost:PORT` are also valid.
27
- * Do NOT include any trailing /
28
- *
29
- * if this isn't provided. The client itself will
30
- * pass this value.
31
- */
32
- origin?: string | null;
33
- /**
34
- * Allow customization of the authenticatorSelection options
35
- * during passkey registration.
36
- */
37
- authenticatorSelection?: AuthenticatorSelectionCriteria;
38
- /**
39
- * Advanced options
40
- */
41
- advanced?: {
42
- webAuthnChallengeCookie?: string;
43
- };
44
- /**
45
- * Schema for the passkey model
46
- */
47
- schema?: InferOptionSchema<typeof schema>;
48
- }
49
- type Passkey = {
50
- id: string;
51
- name?: string;
52
- publicKey: string;
53
- userId: string;
54
- credentialID: string;
55
- counter: number;
56
- deviceType: CredentialDeviceType;
57
- backedUp: boolean;
58
- transports?: string;
59
- createdAt: Date;
60
- aaguid?: string;
61
- };
62
- declare const passkey: (options?: PasskeyOptions) => {
63
- id: "passkey";
64
- routes: {
65
- generatePasskeyRegistrationOptions: AuthEndpoint<{
66
- responses: {
67
- 200: {
68
- description: string;
69
- content: {
70
- "application/json": {
71
- schema: z$1.ZodPipe<z$1.ZodObject<{
72
- challenge: z$1.ZodBase64URL;
73
- timeout: z$1.ZodOptional<z$1.ZodNumber>;
74
- rp: z$1.ZodObject<{
75
- name: z$1.ZodString;
76
- id: z$1.ZodOptional<z$1.ZodString>;
77
- }, z$1.core.$strip>;
78
- user: z$1.ZodObject<{
79
- id: z$1.ZodString;
80
- name: z$1.ZodString;
81
- displayName: z$1.ZodString;
82
- }, z$1.core.$strip>;
83
- pubKeyCredParams: z$1.ZodArray<z$1.ZodObject<{
84
- type: z$1.ZodString;
85
- alg: z$1.ZodNumber;
86
- }, z$1.core.$strip>>;
87
- excludeCredentials: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
88
- id: z$1.ZodString;
89
- type: z$1.ZodString;
90
- transports: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
91
- ble: "ble";
92
- cable: "cable";
93
- hybrid: "hybrid";
94
- internal: "internal";
95
- nfc: "nfc";
96
- "smart-card": "smart-card";
97
- usb: "usb";
98
- }>>>;
99
- }, z$1.core.$strip>>>;
100
- authenticatorSelection: z$1.ZodOptional<z$1.ZodObject<{
101
- authenticatorAttachment: z$1.ZodOptional<z$1.ZodString>;
102
- requireResidentKey: z$1.ZodOptional<z$1.ZodBoolean>;
103
- userVerification: z$1.ZodOptional<z$1.ZodString>;
104
- }, z$1.core.$strip>>;
105
- attestation: z$1.ZodString;
106
- extensions: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
107
- }, z$1.core.$strip>, z$1.ZodTransform<{
108
- success: true;
109
- data: {
110
- challenge: string;
111
- rp: {
112
- name: string;
113
- id?: string | undefined;
114
- };
115
- user: {
116
- id: string;
117
- name: string;
118
- displayName: string;
119
- };
120
- pubKeyCredParams: {
121
- type: string;
122
- alg: number;
123
- }[];
124
- attestation: string;
125
- extensions: Record<string, any>;
126
- timeout?: number | undefined;
127
- excludeCredentials?: {
128
- id: string;
129
- type: string;
130
- transports?: ("ble" | "cable" | "hybrid" | "internal" | "nfc" | "smart-card" | "usb")[] | undefined;
131
- }[] | undefined;
132
- authenticatorSelection?: {
133
- authenticatorAttachment?: string | undefined;
134
- requireResidentKey?: boolean | undefined;
135
- userVerification?: string | undefined;
136
- } | undefined;
137
- };
138
- }, {
139
- challenge: string;
140
- rp: {
141
- name: string;
142
- id?: string | undefined;
143
- };
144
- user: {
145
- id: string;
146
- name: string;
147
- displayName: string;
148
- };
149
- pubKeyCredParams: {
150
- type: string;
151
- alg: number;
152
- }[];
153
- attestation: string;
154
- extensions: Record<string, any>;
155
- timeout?: number | undefined;
156
- excludeCredentials?: {
157
- id: string;
158
- type: string;
159
- transports?: ("ble" | "cable" | "hybrid" | "internal" | "nfc" | "smart-card" | "usb")[] | undefined;
160
- }[] | undefined;
161
- authenticatorSelection?: {
162
- authenticatorAttachment?: string | undefined;
163
- requireResidentKey?: boolean | undefined;
164
- userVerification?: string | undefined;
165
- } | undefined;
166
- }>>;
167
- };
168
- };
169
- };
170
- } & {
171
- 401: {
172
- description: string;
173
- content: {
174
- "application/json": {
175
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
176
- success: z$1.ZodLiteral<false>;
177
- code: z$1.ZodOptional<z$1.ZodString>;
178
- message: z$1.ZodOptional<z$1.ZodString>;
179
- }, z$1.core.$strip>, "error">;
180
- };
181
- };
182
- };
183
- };
184
- operationId: "generatePasskeyRegistrationOptions";
185
- path: "/passkey/generate-register-options";
186
- method: "get";
187
- client: false;
188
- middleware: [(ctx: hono55.Context<ContextVars<{
189
- session: {
190
- session: _faire_auth_core_db7.Session;
191
- user: _faire_auth_core_db7.User;
192
- };
193
- }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
194
- success: false;
195
- code?: string | undefined;
196
- message?: string | undefined;
197
- }, 401>) | _faire_auth_core_types43.JSONRespondReturn<{
198
- success: false;
199
- code?: string | undefined;
200
- message?: string | undefined;
201
- }, 403>>];
202
- request: {
203
- query: z$1.ZodObject<{
204
- authenticatorAttachment: z$1.ZodOptional<z$1.ZodEnum<{
205
- platform: "platform";
206
- "cross-platform": "cross-platform";
207
- }>>;
208
- name: z$1.ZodOptional<z$1.ZodString>;
209
- }, z$1.core.$strip>;
210
- };
211
- getRoutingPath: () => "/passkey/generate-register-options";
212
- }>;
213
- generatePasskeyAuthenticationOptions: AuthEndpoint<{
214
- responses: {
215
- 200: {
216
- description: string;
217
- content: {
218
- "application/json": {
219
- schema: z$1.ZodPipe<z$1.ZodObject<{
220
- challenge: z$1.ZodBase64URL;
221
- timeout: z$1.ZodOptional<z$1.ZodNumber>;
222
- rpId: z$1.ZodOptional<z$1.ZodString>;
223
- allowCredentials: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
224
- id: z$1.ZodString;
225
- type: z$1.ZodString;
226
- transports: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
227
- ble: "ble";
228
- cable: "cable";
229
- hybrid: "hybrid";
230
- internal: "internal";
231
- nfc: "nfc";
232
- "smart-card": "smart-card";
233
- usb: "usb";
234
- }>>>;
235
- }, z$1.core.$strip>>>;
236
- userVerification: z$1.ZodOptional<z$1.ZodEnum<{
237
- required: "required";
238
- discouraged: "discouraged";
239
- preferred: "preferred";
240
- }>>;
241
- extensions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
242
- }, z$1.core.$strip>, z$1.ZodTransform<{
243
- success: true;
244
- data: {
245
- challenge: string;
246
- timeout?: number | undefined;
247
- rpId?: string | undefined;
248
- allowCredentials?: {
249
- id: string;
250
- type: string;
251
- transports?: ("ble" | "cable" | "hybrid" | "internal" | "nfc" | "smart-card" | "usb")[] | undefined;
252
- }[] | undefined;
253
- userVerification?: "required" | "discouraged" | "preferred" | undefined;
254
- extensions?: Record<string, any> | undefined;
255
- };
256
- }, {
257
- challenge: string;
258
- timeout?: number | undefined;
259
- rpId?: string | undefined;
260
- allowCredentials?: {
261
- id: string;
262
- type: string;
263
- transports?: ("ble" | "cable" | "hybrid" | "internal" | "nfc" | "smart-card" | "usb")[] | undefined;
264
- }[] | undefined;
265
- userVerification?: "required" | "discouraged" | "preferred" | undefined;
266
- extensions?: Record<string, any> | undefined;
267
- }>>;
268
- };
269
- };
270
- };
271
- };
272
- operationId: "generatePasskeyAuthenticationOptions";
273
- path: "/passkey/generate-authenticate-options";
274
- method: "post";
275
- request: {
276
- body: {
277
- description?: string;
278
- content: {
279
- "application/json": {
280
- schema: z$1.ZodObject<{
281
- email: z$1.ZodOptional<z$1.ZodEmail>;
282
- }, z$1.core.$strip>;
283
- };
284
- };
285
- required: true;
286
- };
287
- };
288
- getRoutingPath: () => "/passkey/generate-authenticate-options";
289
- }>;
290
- verifyPasskeyRegistration: AuthEndpoint<{
291
- responses: {
292
- 200: {
293
- description: string;
294
- content: {
295
- "application/json": {
296
- schema: z$1.ZodPipe<z$1.ZodObject<{
297
- id: z$1.ZodString;
298
- name: z$1.ZodOptional<z$1.ZodString>;
299
- publicKey: z$1.ZodString;
300
- userId: z$1.ZodString;
301
- credentialID: z$1.ZodString;
302
- counter: z$1.ZodNumber;
303
- deviceType: z$1.ZodEnum<{
304
- singleDevice: "singleDevice";
305
- multiDevice: "multiDevice";
306
- }>;
307
- backedUp: z$1.ZodBoolean;
308
- transports: z$1.ZodOptional<z$1.ZodString>;
309
- createdAt: z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>;
310
- aaguid: z$1.ZodOptional<z$1.ZodString>;
311
- }, z$1.core.$strip>, z$1.ZodTransform<{
312
- success: true;
313
- data: {
314
- id: string;
315
- publicKey: string;
316
- userId: string;
317
- credentialID: string;
318
- counter: number;
319
- deviceType: "singleDevice" | "multiDevice";
320
- backedUp: boolean;
321
- createdAt: string | Date;
322
- name?: string | undefined;
323
- transports?: string | undefined;
324
- aaguid?: string | undefined;
325
- };
326
- }, {
327
- id: string;
328
- publicKey: string;
329
- userId: string;
330
- credentialID: string;
331
- counter: number;
332
- deviceType: "singleDevice" | "multiDevice";
333
- backedUp: boolean;
334
- createdAt: string | Date;
335
- name?: string | undefined;
336
- transports?: string | undefined;
337
- aaguid?: string | undefined;
338
- }>>;
339
- };
340
- };
341
- };
342
- } & {
343
- 400: {
344
- description: string;
345
- content: {
346
- "application/json": {
347
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
348
- success: z$1.ZodLiteral<false>;
349
- code: z$1.ZodOptional<z$1.ZodString>;
350
- message: z$1.ZodOptional<z$1.ZodString>;
351
- }, z$1.core.$strip>, "error">;
352
- };
353
- };
354
- };
355
- } & {
356
- 401: {
357
- description: string;
358
- content: {
359
- "application/json": {
360
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
361
- success: z$1.ZodLiteral<false>;
362
- code: z$1.ZodOptional<z$1.ZodString>;
363
- message: z$1.ZodOptional<z$1.ZodString>;
364
- }, z$1.core.$strip>, "error">;
365
- };
366
- };
367
- };
368
- } & {
369
- 500: {
370
- description: string;
371
- content: {
372
- "application/json": {
373
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
374
- success: z$1.ZodLiteral<false>;
375
- code: z$1.ZodOptional<z$1.ZodString>;
376
- message: z$1.ZodOptional<z$1.ZodString>;
377
- }, z$1.core.$strip>, "error">;
378
- };
379
- };
380
- };
381
- };
382
- operationId: "verifyPasskeyRegistration";
383
- path: "/passkey/verify-registration";
384
- method: "post";
385
- middleware: [(ctx: hono55.Context<ContextVars<{
386
- session: {
387
- session: _faire_auth_core_db7.Session;
388
- user: _faire_auth_core_db7.User;
389
- };
390
- }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
391
- success: false;
392
- code?: string | undefined;
393
- message?: string | undefined;
394
- }, 401>) | _faire_auth_core_types43.JSONRespondReturn<{
395
- success: false;
396
- code?: string | undefined;
397
- message?: string | undefined;
398
- }, 403>>];
399
- request: {
400
- body: {
401
- description?: string;
402
- content: {
403
- "application/json": {
404
- schema: z$1.ZodObject<{
405
- response: z$1.ZodAny;
406
- name: z$1.ZodOptional<z$1.ZodString>;
407
- }, z$1.core.$strip>;
408
- };
409
- };
410
- required: true;
411
- };
412
- };
413
- getRoutingPath: () => "/passkey/verify-registration";
414
- }>;
415
- verifyPasskeyAuthentication: AuthEndpoint<{
416
- responses: {
417
- 200: {
418
- description: string;
419
- content: {
420
- "application/json": {
421
- schema: z$1.core.$ZodBranded<z$1.ZodPipe<z$1.core.$ZodBranded<z$1.ZodObject<{
422
- createdAt: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>>;
423
- updatedAt: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>>;
424
- id: z$1.ZodOptional<z$1.ZodString>;
425
- userId: z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>, z$1.ZodTransform<string, string | number>>;
426
- expiresAt: z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>;
427
- token: z$1.ZodString;
428
- ipAddress: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
429
- userAgent: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
430
- }, z$1.core.$loose>, "session">, z$1.ZodTransform<{
431
- success: true;
432
- data: {
433
- [x: string]: unknown;
434
- createdAt: Date;
435
- updatedAt: Date;
436
- userId: string;
437
- expiresAt: Date;
438
- token: string;
439
- id?: string | undefined;
440
- ipAddress?: string | null | undefined;
441
- userAgent?: string | null | undefined;
442
- } & z$1.core.$brand<"session">;
443
- }, {
444
- [x: string]: unknown;
445
- createdAt: Date;
446
- updatedAt: Date;
447
- userId: string;
448
- expiresAt: Date;
449
- token: string;
450
- id?: string | undefined;
451
- ipAddress?: string | null | undefined;
452
- userAgent?: string | null | undefined;
453
- } & z$1.core.$brand<"session">>>, "sessionResponse">;
454
- };
455
- };
456
- };
457
- } & {
458
- 400: {
459
- description: string;
460
- content: {
461
- "application/json": {
462
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
463
- success: z$1.ZodLiteral<false>;
464
- code: z$1.ZodOptional<z$1.ZodString>;
465
- message: z$1.ZodOptional<z$1.ZodString>;
466
- }, z$1.core.$strip>, "error">;
467
- };
468
- };
469
- };
470
- } & {
471
- 401: {
472
- description: string;
473
- content: {
474
- "application/json": {
475
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
476
- success: z$1.ZodLiteral<false>;
477
- code: z$1.ZodOptional<z$1.ZodString>;
478
- message: z$1.ZodOptional<z$1.ZodString>;
479
- }, z$1.core.$strip>, "error">;
480
- };
481
- };
482
- };
483
- } & {
484
- 500: {
485
- description: string;
486
- content: {
487
- "application/json": {
488
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
489
- success: z$1.ZodLiteral<false>;
490
- code: z$1.ZodOptional<z$1.ZodString>;
491
- message: z$1.ZodOptional<z$1.ZodString>;
492
- }, z$1.core.$strip>, "error">;
493
- };
494
- };
495
- };
496
- };
497
- operationId: "verifyPasskeyAuthentication";
498
- path: "/passkey/verify-authentication";
499
- method: "post";
500
- request: {
501
- body: {
502
- description?: string;
503
- content: {
504
- "application/json": {
505
- schema: z$1.ZodType<{
506
- response: AuthenticationResponseJSON;
507
- }, {
508
- response: AuthenticationResponseJSON;
509
- }, z$1.core.$ZodTypeInternals<{
510
- response: AuthenticationResponseJSON;
511
- }, {
512
- response: AuthenticationResponseJSON;
513
- }>>;
514
- };
515
- };
516
- required: true;
517
- };
518
- };
519
- getRoutingPath: () => "/passkey/verify-authentication";
520
- }>;
521
- /**
522
- * ### Endpoint
523
- *
524
- * GET `/passkey/list-user-passkeys`
525
- *
526
- * ### API Methods
527
- *
528
- * **server:**
529
- * `auth.api.listPasskeys`
530
- *
531
- * **client:**
532
- * `authClient.passkey.listUserPasskeys`
533
- *
534
- * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/passkey#api-method-passkey-list-user-passkeys)
535
- */
536
- listPasskeys: AuthEndpoint<{
537
- responses: {
538
- 200: {
539
- description: string;
540
- content: {
541
- "application/json": {
542
- schema: z$1.ZodPipe<z$1.ZodArray<z$1.ZodObject<{
543
- id: z$1.ZodString;
544
- name: z$1.ZodOptional<z$1.ZodString>;
545
- publicKey: z$1.ZodString;
546
- userId: z$1.ZodString;
547
- credentialID: z$1.ZodString;
548
- counter: z$1.ZodNumber;
549
- deviceType: z$1.ZodEnum<{
550
- singleDevice: "singleDevice";
551
- multiDevice: "multiDevice";
552
- }>;
553
- backedUp: z$1.ZodBoolean;
554
- transports: z$1.ZodOptional<z$1.ZodString>;
555
- createdAt: z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>;
556
- aaguid: z$1.ZodOptional<z$1.ZodString>;
557
- }, z$1.core.$strip>>, z$1.ZodTransform<{
558
- success: true;
559
- data: {
560
- id: string;
561
- publicKey: string;
562
- userId: string;
563
- credentialID: string;
564
- counter: number;
565
- deviceType: "singleDevice" | "multiDevice";
566
- backedUp: boolean;
567
- createdAt: string | Date;
568
- name?: string | undefined;
569
- transports?: string | undefined;
570
- aaguid?: string | undefined;
571
- }[];
572
- }, {
573
- id: string;
574
- publicKey: string;
575
- userId: string;
576
- credentialID: string;
577
- counter: number;
578
- deviceType: "singleDevice" | "multiDevice";
579
- backedUp: boolean;
580
- createdAt: string | Date;
581
- name?: string | undefined;
582
- transports?: string | undefined;
583
- aaguid?: string | undefined;
584
- }[]>>;
585
- };
586
- };
587
- };
588
- } & {
589
- 401: {
590
- description: string;
591
- content: {
592
- "application/json": {
593
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
594
- success: z$1.ZodLiteral<false>;
595
- code: z$1.ZodOptional<z$1.ZodString>;
596
- message: z$1.ZodOptional<z$1.ZodString>;
597
- }, z$1.core.$strip>, "error">;
598
- };
599
- };
600
- };
601
- };
602
- operationId: "listPasskeys";
603
- path: "/passkey/list-user-passkeys";
604
- method: "get";
605
- middleware: [(ctx: hono55.Context<ContextVars<object & {
606
- session: {
607
- session: {
608
- [x: string]: unknown;
609
- createdAt: Date;
610
- updatedAt: Date;
611
- userId: string;
612
- expiresAt: Date;
613
- token: string;
614
- id?: string;
615
- ipAddress?: string | null;
616
- userAgent?: string | null;
617
- };
618
- user: {
619
- [x: string]: unknown;
620
- id: string;
621
- createdAt: Date;
622
- updatedAt: Date;
623
- email: string;
624
- emailVerified: boolean;
625
- name?: string;
626
- image?: string | null;
627
- };
628
- };
629
- }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
630
- success: false;
631
- code?: string | undefined;
632
- message?: string | undefined;
633
- }, 401>)>];
634
- getRoutingPath: () => "/passkey/list-user-passkeys";
635
- }>;
636
- /**
637
- * ### Endpoint
638
- *
639
- * POST `/passkey/delete-passkey`
640
- *
641
- * ### API Methods
642
- *
643
- * **server:**
644
- * `auth.api.deletePasskey`
645
- *
646
- * **client:**
647
- * `authClient.passkey.deletePasskey`
648
- *
649
- * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/passkey#api-method-passkey-delete-passkey)
650
- */
651
- deletePasskey: AuthEndpoint<{
652
- responses: {
653
- 200: {
654
- description: string;
655
- content: {
656
- "application/json": {
657
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
658
- success: z$1.ZodLiteral<true>;
659
- message: z$1.ZodOptional<z$1.ZodString>;
660
- }, z$1.core.$strip>, "success">;
661
- };
662
- };
663
- };
664
- } & {
665
- 401: {
666
- description: string;
667
- content: {
668
- "application/json": {
669
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
670
- success: z$1.ZodLiteral<false>;
671
- code: z$1.ZodOptional<z$1.ZodString>;
672
- message: z$1.ZodOptional<z$1.ZodString>;
673
- }, z$1.core.$strip>, "error">;
674
- };
675
- };
676
- };
677
- };
678
- operationId: "deletePasskey";
679
- path: "/passkey/delete-passkey";
680
- method: "post";
681
- middleware: [(ctx: hono55.Context<ContextVars<object & {
682
- session: {
683
- session: {
684
- [x: string]: unknown;
685
- createdAt: Date;
686
- updatedAt: Date;
687
- userId: string;
688
- expiresAt: Date;
689
- token: string;
690
- id?: string;
691
- ipAddress?: string | null;
692
- userAgent?: string | null;
693
- };
694
- user: {
695
- [x: string]: unknown;
696
- id: string;
697
- createdAt: Date;
698
- updatedAt: Date;
699
- email: string;
700
- emailVerified: boolean;
701
- name?: string;
702
- image?: string | null;
703
- };
704
- };
705
- }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
706
- success: false;
707
- code?: string | undefined;
708
- message?: string | undefined;
709
- }, 401>)>];
710
- request: {
711
- body: {
712
- description?: string;
713
- content: {
714
- "application/json": {
715
- schema: z$1.ZodObject<{
716
- id: z$1.ZodString;
717
- }, z$1.core.$strip>;
718
- };
719
- };
720
- required: true;
721
- };
722
- };
723
- getRoutingPath: () => "/passkey/delete-passkey";
724
- }>;
725
- /**
726
- * ### Endpoint
727
- *
728
- * POST `/passkey/update-passkey`
729
- *
730
- * ### API Methods
731
- *
732
- * **server:**
733
- * `auth.api.updatePasskey`
734
- *
735
- * **client:**
736
- * `authClient.passkey.updatePasskey`
737
- *
738
- * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/passkey#api-method-passkey-update-passkey)
739
- */
740
- updatePasskey: AuthEndpoint<{
741
- responses: {
742
- 200: {
743
- description: string;
744
- content: {
745
- "application/json": {
746
- schema: z$1.ZodPipe<z$1.ZodObject<{
747
- id: z$1.ZodString;
748
- name: z$1.ZodOptional<z$1.ZodString>;
749
- publicKey: z$1.ZodString;
750
- userId: z$1.ZodString;
751
- credentialID: z$1.ZodString;
752
- counter: z$1.ZodNumber;
753
- deviceType: z$1.ZodEnum<{
754
- singleDevice: "singleDevice";
755
- multiDevice: "multiDevice";
756
- }>;
757
- backedUp: z$1.ZodBoolean;
758
- transports: z$1.ZodOptional<z$1.ZodString>;
759
- createdAt: z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>;
760
- aaguid: z$1.ZodOptional<z$1.ZodString>;
761
- }, z$1.core.$strip>, z$1.ZodTransform<{
762
- success: true;
763
- data: {
764
- id: string;
765
- publicKey: string;
766
- userId: string;
767
- credentialID: string;
768
- counter: number;
769
- deviceType: "singleDevice" | "multiDevice";
770
- backedUp: boolean;
771
- createdAt: string | Date;
772
- name?: string | undefined;
773
- transports?: string | undefined;
774
- aaguid?: string | undefined;
775
- };
776
- }, {
777
- id: string;
778
- publicKey: string;
779
- userId: string;
780
- credentialID: string;
781
- counter: number;
782
- deviceType: "singleDevice" | "multiDevice";
783
- backedUp: boolean;
784
- createdAt: string | Date;
785
- name?: string | undefined;
786
- transports?: string | undefined;
787
- aaguid?: string | undefined;
788
- }>>;
789
- };
790
- };
791
- };
792
- } & {
793
- 401: {
794
- description: string;
795
- content: {
796
- "application/json": {
797
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
798
- success: z$1.ZodLiteral<false>;
799
- code: z$1.ZodOptional<z$1.ZodString>;
800
- message: z$1.ZodOptional<z$1.ZodString>;
801
- }, z$1.core.$strip>, "error">;
802
- };
803
- };
804
- };
805
- } & {
806
- 404: {
807
- description: string;
808
- content: {
809
- "application/json": {
810
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
811
- success: z$1.ZodLiteral<false>;
812
- code: z$1.ZodOptional<z$1.ZodString>;
813
- message: z$1.ZodOptional<z$1.ZodString>;
814
- }, z$1.core.$strip>, "error">;
815
- };
816
- };
817
- };
818
- } & {
819
- 500: {
820
- description: string;
821
- content: {
822
- "application/json": {
823
- schema: z$1.core.$ZodBranded<z$1.ZodObject<{
824
- success: z$1.ZodLiteral<false>;
825
- code: z$1.ZodOptional<z$1.ZodString>;
826
- message: z$1.ZodOptional<z$1.ZodString>;
827
- }, z$1.core.$strip>, "error">;
828
- };
829
- };
830
- };
831
- };
832
- operationId: "updatePasskey";
833
- path: "/passkey/update-passkey";
834
- method: "post";
835
- middleware: [(ctx: hono55.Context<ContextVars<object & {
836
- session: {
837
- session: {
838
- [x: string]: unknown;
839
- createdAt: Date;
840
- updatedAt: Date;
841
- userId: string;
842
- expiresAt: Date;
843
- token: string;
844
- id?: string;
845
- ipAddress?: string | null;
846
- userAgent?: string | null;
847
- };
848
- user: {
849
- [x: string]: unknown;
850
- id: string;
851
- createdAt: Date;
852
- updatedAt: Date;
853
- email: string;
854
- emailVerified: boolean;
855
- name?: string;
856
- image?: string | null;
857
- };
858
- };
859
- }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
860
- success: false;
861
- code?: string | undefined;
862
- message?: string | undefined;
863
- }, 401>)>];
864
- request: {
865
- body: {
866
- description?: string;
867
- content: {
868
- "application/json": {
869
- schema: z$1.ZodObject<{
870
- id: z$1.ZodString;
871
- name: z$1.ZodString;
872
- }, z$1.core.$strip>;
873
- };
874
- };
875
- required: true;
876
- };
877
- };
878
- getRoutingPath: () => "/passkey/update-passkey";
879
- }>;
880
- };
881
- schema: {
882
- passkey: {
883
- fields: {
884
- name: {
885
- type: "string";
886
- required: false;
887
- };
888
- publicKey: {
889
- type: "string";
890
- required: true;
891
- };
892
- userId: {
893
- type: "string";
894
- references: {
895
- model: string;
896
- field: string;
897
- };
898
- required: true;
899
- };
900
- credentialID: {
901
- type: "string";
902
- required: true;
903
- };
904
- counter: {
905
- type: "number";
906
- required: true;
907
- };
908
- deviceType: {
909
- type: "string";
910
- required: true;
911
- };
912
- backedUp: {
913
- type: "boolean";
914
- required: true;
915
- };
916
- transports: {
917
- type: "string";
918
- required: false;
919
- };
920
- createdAt: {
921
- type: "date";
922
- required: false;
923
- };
924
- aaguid: {
925
- type: "string";
926
- required: false;
927
- };
928
- };
929
- };
930
- };
931
- $ERROR_CODES: {
932
- CHALLENGE_NOT_FOUND: string;
933
- YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: string;
934
- FAILED_TO_VERIFY_REGISTRATION: string;
935
- PASSKEY_NOT_FOUND: string;
936
- AUTHENTICATION_FAILED: string;
937
- UNABLE_TO_CREATE_SESSION: string;
938
- FAILED_TO_UPDATE_PASSKEY: string;
939
- };
940
- };
941
- declare const schema: {
942
- passkey: {
943
- fields: {
944
- name: {
945
- type: "string";
946
- required: false;
947
- };
948
- publicKey: {
949
- type: "string";
950
- required: true;
951
- };
952
- userId: {
953
- type: "string";
954
- references: {
955
- model: string;
956
- field: string;
957
- };
958
- required: true;
959
- };
960
- credentialID: {
961
- type: "string";
962
- required: true;
963
- };
964
- counter: {
965
- type: "number";
966
- required: true;
967
- };
968
- deviceType: {
969
- type: "string";
970
- required: true;
971
- };
972
- backedUp: {
973
- type: "boolean";
974
- required: true;
975
- };
976
- transports: {
977
- type: "string";
978
- required: false;
979
- };
980
- createdAt: {
981
- type: "date";
982
- required: false;
983
- };
984
- aaguid: {
985
- type: "string";
986
- required: false;
987
- };
988
- };
989
- };
990
- };
991
- //#endregion
992
- export { PasskeyOptions as n, passkey as r, Passkey as t };