zksync-sso 0.3.2 → 0.4.0-beta.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 (149) hide show
  1. package/README.md +2 -1
  2. package/dist/_cjs/abi/GuardianRecoveryModule.js +767 -0
  3. package/dist/_cjs/abi/GuardianRecoveryModule.js.map +1 -0
  4. package/dist/_cjs/abi/OidcKeyRegistry.js +492 -0
  5. package/dist/_cjs/abi/OidcKeyRegistry.js.map +1 -0
  6. package/dist/_cjs/abi/OidcRecoveryValidator.js +528 -0
  7. package/dist/_cjs/abi/OidcRecoveryValidator.js.map +1 -0
  8. package/dist/_cjs/abi/WebAuthModule.js +301 -0
  9. package/dist/_cjs/abi/WebAuthModule.js.map +1 -0
  10. package/dist/_cjs/abi/index.js +9 -1
  11. package/dist/_cjs/abi/index.js.map +1 -1
  12. package/dist/_cjs/client/oidc/account.js +43 -0
  13. package/dist/_cjs/client/oidc/account.js.map +1 -0
  14. package/dist/_cjs/client/oidc/actions/addNewPasskeyViaOidc.js +28 -0
  15. package/dist/_cjs/client/oidc/actions/addNewPasskeyViaOidc.js.map +1 -0
  16. package/dist/_cjs/client/oidc/actions/index.js +12 -0
  17. package/dist/_cjs/client/oidc/actions/index.js.map +1 -0
  18. package/dist/_cjs/client/oidc/client.js +46 -0
  19. package/dist/_cjs/client/oidc/client.js.map +1 -0
  20. package/dist/_cjs/client/oidc/decorators/actions.js +3 -0
  21. package/dist/_cjs/client/oidc/decorators/actions.js.map +1 -0
  22. package/dist/_cjs/client/oidc/index.js +20 -0
  23. package/dist/_cjs/client/oidc/index.js.map +1 -0
  24. package/dist/_cjs/client/oidc/serialize.js +3 -0
  25. package/dist/_cjs/client/oidc/serialize.js.map +1 -0
  26. package/dist/_cjs/client/passkey/actions/account.js +5 -1
  27. package/dist/_cjs/client/passkey/actions/account.js.map +1 -1
  28. package/dist/_cjs/client/passkey/decorators/passkey.js +12 -0
  29. package/dist/_cjs/client/passkey/decorators/passkey.js.map +1 -1
  30. package/dist/_cjs/client/recovery/actions/oidc.js +55 -0
  31. package/dist/_cjs/client/recovery/actions/oidc.js.map +1 -0
  32. package/dist/_cjs/client/session/index.js +19 -0
  33. package/dist/_cjs/client/session/index.js.map +1 -0
  34. package/dist/_cjs/client-auth-server/Signer.js +4 -2
  35. package/dist/_cjs/client-auth-server/Signer.js.map +1 -1
  36. package/dist/_cjs/client-auth-server/WalletProvider.js +3 -2
  37. package/dist/_cjs/client-auth-server/WalletProvider.js.map +1 -1
  38. package/dist/_cjs/communicator/PopupCommunicator.js +30 -5
  39. package/dist/_cjs/communicator/PopupCommunicator.js.map +1 -1
  40. package/dist/_cjs/connector/index.js +1 -0
  41. package/dist/_cjs/connector/index.js.map +1 -1
  42. package/dist/_esm/abi/GuardianRecoveryModule.js +764 -0
  43. package/dist/_esm/abi/GuardianRecoveryModule.js.map +1 -0
  44. package/dist/_esm/abi/OidcKeyRegistry.js +489 -0
  45. package/dist/_esm/abi/OidcKeyRegistry.js.map +1 -0
  46. package/dist/_esm/abi/OidcRecoveryValidator.js +525 -0
  47. package/dist/_esm/abi/OidcRecoveryValidator.js.map +1 -0
  48. package/dist/_esm/abi/WebAuthModule.js +298 -0
  49. package/dist/_esm/abi/WebAuthModule.js.map +1 -0
  50. package/dist/_esm/abi/index.js +4 -0
  51. package/dist/_esm/abi/index.js.map +1 -1
  52. package/dist/_esm/client/oidc/account.js +40 -0
  53. package/dist/_esm/client/oidc/account.js.map +1 -0
  54. package/dist/_esm/client/oidc/actions/addNewPasskeyViaOidc.js +26 -0
  55. package/dist/_esm/client/oidc/actions/addNewPasskeyViaOidc.js.map +1 -0
  56. package/dist/_esm/client/oidc/actions/index.js +9 -0
  57. package/dist/_esm/client/oidc/actions/index.js.map +1 -0
  58. package/dist/_esm/client/oidc/client.js +41 -0
  59. package/dist/_esm/client/oidc/client.js.map +1 -0
  60. package/dist/_esm/client/oidc/decorators/actions.js +2 -0
  61. package/dist/_esm/client/oidc/decorators/actions.js.map +1 -0
  62. package/dist/_esm/client/oidc/index.js +4 -0
  63. package/dist/_esm/client/oidc/index.js.map +1 -0
  64. package/dist/_esm/client/oidc/serialize.js +2 -0
  65. package/dist/_esm/client/oidc/serialize.js.map +1 -0
  66. package/dist/_esm/client/passkey/actions/account.js +5 -1
  67. package/dist/_esm/client/passkey/actions/account.js.map +1 -1
  68. package/dist/_esm/client/passkey/decorators/passkey.js +12 -0
  69. package/dist/_esm/client/passkey/decorators/passkey.js.map +1 -1
  70. package/dist/_esm/client/recovery/actions/oidc.js +52 -0
  71. package/dist/_esm/client/recovery/actions/oidc.js.map +1 -0
  72. package/dist/_esm/client/session/index.js +3 -0
  73. package/dist/_esm/client/session/index.js.map +1 -0
  74. package/dist/_esm/client-auth-server/Signer.js +4 -2
  75. package/dist/_esm/client-auth-server/Signer.js.map +1 -1
  76. package/dist/_esm/client-auth-server/WalletProvider.js +3 -2
  77. package/dist/_esm/client-auth-server/WalletProvider.js.map +1 -1
  78. package/dist/_esm/communicator/PopupCommunicator.js +30 -5
  79. package/dist/_esm/communicator/PopupCommunicator.js.map +1 -1
  80. package/dist/_esm/connector/index.js +1 -0
  81. package/dist/_esm/connector/index.js.map +1 -1
  82. package/dist/_types/abi/GuardianRecoveryModule.d.ts +590 -0
  83. package/dist/_types/abi/GuardianRecoveryModule.d.ts.map +1 -0
  84. package/dist/_types/abi/OidcKeyRegistry.d.ts +375 -0
  85. package/dist/_types/abi/OidcKeyRegistry.d.ts.map +1 -0
  86. package/dist/_types/abi/OidcRecoveryValidator.d.ts +404 -0
  87. package/dist/_types/abi/OidcRecoveryValidator.d.ts.map +1 -0
  88. package/dist/_types/abi/WebAuthModule.d.ts +228 -0
  89. package/dist/_types/abi/WebAuthModule.d.ts.map +1 -0
  90. package/dist/_types/abi/index.d.ts +4 -0
  91. package/dist/_types/abi/index.d.ts.map +1 -1
  92. package/dist/_types/client/oidc/account.d.ts +13 -0
  93. package/dist/_types/client/oidc/account.d.ts.map +1 -0
  94. package/dist/_types/client/oidc/actions/addNewPasskeyViaOidc.d.ts +12 -0
  95. package/dist/_types/client/oidc/actions/addNewPasskeyViaOidc.d.ts.map +1 -0
  96. package/dist/_types/client/oidc/actions/index.d.ts +5 -0
  97. package/dist/_types/client/oidc/actions/index.d.ts.map +1 -0
  98. package/dist/_types/client/oidc/client.d.ts +24 -0
  99. package/dist/_types/client/oidc/client.d.ts.map +1 -0
  100. package/dist/_types/client/oidc/decorators/actions.d.ts +5 -0
  101. package/dist/_types/client/oidc/decorators/actions.d.ts.map +1 -0
  102. package/dist/_types/client/oidc/index.d.ts +4 -0
  103. package/dist/_types/client/oidc/index.d.ts.map +1 -0
  104. package/dist/_types/client/oidc/serialize.d.ts +10 -0
  105. package/dist/_types/client/oidc/serialize.d.ts.map +1 -0
  106. package/dist/_types/client/passkey/actions/account.d.ts +1 -0
  107. package/dist/_types/client/passkey/actions/account.d.ts.map +1 -1
  108. package/dist/_types/client/passkey/client.d.ts +2 -0
  109. package/dist/_types/client/passkey/client.d.ts.map +1 -1
  110. package/dist/_types/client/passkey/decorators/passkey.d.ts +4 -1
  111. package/dist/_types/client/passkey/decorators/passkey.d.ts.map +1 -1
  112. package/dist/_types/client/recovery/actions/oidc.d.ts +24 -0
  113. package/dist/_types/client/recovery/actions/oidc.d.ts.map +1 -0
  114. package/dist/_types/client/session/index.d.ts +3 -0
  115. package/dist/_types/client/session/index.d.ts.map +1 -0
  116. package/dist/_types/client-auth-server/Signer.d.ts +3 -1
  117. package/dist/_types/client-auth-server/Signer.d.ts.map +1 -1
  118. package/dist/_types/client-auth-server/WalletProvider.d.ts +5 -1
  119. package/dist/_types/client-auth-server/WalletProvider.d.ts.map +1 -1
  120. package/dist/_types/communicator/PopupCommunicator.d.ts +13 -1
  121. package/dist/_types/communicator/PopupCommunicator.d.ts.map +1 -1
  122. package/dist/_types/connector/index.d.ts +2 -0
  123. package/dist/_types/connector/index.d.ts.map +1 -1
  124. package/dist/_types/utils/storage.d.ts +1 -1
  125. package/dist/_types/utils/storage.d.ts.map +1 -1
  126. package/package.json +8 -2
  127. package/project.json +3 -0
  128. package/src/abi/GuardianRecoveryModule.ts +763 -0
  129. package/src/abi/OidcKeyRegistry.ts +488 -0
  130. package/src/abi/OidcRecoveryValidator.ts +524 -0
  131. package/src/abi/WebAuthModule.ts +297 -0
  132. package/src/abi/index.ts +4 -0
  133. package/src/client/oidc/account.ts +65 -0
  134. package/src/client/oidc/actions/addNewPasskeyViaOidc.ts +54 -0
  135. package/src/client/oidc/actions/index.ts +16 -0
  136. package/src/client/oidc/client.ts +122 -0
  137. package/src/client/oidc/decorators/actions.ts +5 -0
  138. package/src/client/oidc/index.ts +3 -0
  139. package/src/client/oidc/serialize.ts +10 -0
  140. package/src/client/passkey/actions/account.ts +7 -1
  141. package/src/client/passkey/client.ts +2 -0
  142. package/src/client/passkey/decorators/passkey.ts +20 -1
  143. package/src/client/recovery/actions/oidc.ts +103 -0
  144. package/src/client/session/index.ts +2 -0
  145. package/src/client-auth-server/Signer.ts +6 -3
  146. package/src/client-auth-server/WalletProvider.ts +7 -2
  147. package/src/communicator/PopupCommunicator.ts +24 -5
  148. package/src/connector/index.ts +3 -0
  149. package/src/utils/storage.ts +1 -1
@@ -0,0 +1,404 @@
1
+ export declare const OidcRecoveryValidatorAbi: readonly [{
2
+ readonly inputs: readonly [];
3
+ readonly stateMutability: "nonpayable";
4
+ readonly type: "constructor";
5
+ }, {
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "uint256";
8
+ readonly name: "value";
9
+ readonly type: "uint256";
10
+ }];
11
+ readonly name: "ADDRESS_CAST_OVERFLOW";
12
+ readonly type: "error";
13
+ }, {
14
+ readonly inputs: readonly [{
15
+ readonly internalType: "bytes32";
16
+ readonly name: "digest";
17
+ readonly type: "bytes32";
18
+ }];
19
+ readonly name: "AddressNotFoundForDigest";
20
+ readonly type: "error";
21
+ }, {
22
+ readonly inputs: readonly [{
23
+ readonly internalType: "address";
24
+ readonly name: "account";
25
+ readonly type: "address";
26
+ }];
27
+ readonly name: "NoOidcDataForGivenAddress";
28
+ readonly type: "error";
29
+ }, {
30
+ readonly inputs: readonly [{
31
+ readonly internalType: "bytes32";
32
+ readonly name: "digest";
33
+ readonly type: "bytes32";
34
+ }];
35
+ readonly name: "OidcDigestAlreadyRegisteredInAnotherAccount";
36
+ readonly type: "error";
37
+ }, {
38
+ readonly inputs: readonly [];
39
+ readonly name: "TimeLimitExpired";
40
+ readonly type: "error";
41
+ }, {
42
+ readonly inputs: readonly [];
43
+ readonly name: "ValidateSignatureNotImplemented";
44
+ readonly type: "error";
45
+ }, {
46
+ readonly inputs: readonly [];
47
+ readonly name: "ZkProofVerificationFailed";
48
+ readonly type: "error";
49
+ }, {
50
+ readonly anonymous: false;
51
+ readonly inputs: readonly [{
52
+ readonly indexed: false;
53
+ readonly internalType: "uint8";
54
+ readonly name: "version";
55
+ readonly type: "uint8";
56
+ }];
57
+ readonly name: "Initialized";
58
+ readonly type: "event";
59
+ }, {
60
+ readonly anonymous: false;
61
+ readonly inputs: readonly [{
62
+ readonly indexed: true;
63
+ readonly internalType: "address";
64
+ readonly name: "account";
65
+ readonly type: "address";
66
+ }, {
67
+ readonly indexed: false;
68
+ readonly internalType: "bytes32";
69
+ readonly name: "oidcDigest";
70
+ readonly type: "bytes32";
71
+ }];
72
+ readonly name: "OidcAccountDeleted";
73
+ readonly type: "event";
74
+ }, {
75
+ readonly anonymous: false;
76
+ readonly inputs: readonly [{
77
+ readonly indexed: true;
78
+ readonly internalType: "address";
79
+ readonly name: "account";
80
+ readonly type: "address";
81
+ }, {
82
+ readonly indexed: false;
83
+ readonly internalType: "bytes32";
84
+ readonly name: "oidcDigest";
85
+ readonly type: "bytes32";
86
+ }, {
87
+ readonly indexed: false;
88
+ readonly internalType: "string";
89
+ readonly name: "iss";
90
+ readonly type: "string";
91
+ }, {
92
+ readonly indexed: false;
93
+ readonly internalType: "bool";
94
+ readonly name: "isNew";
95
+ readonly type: "bool";
96
+ }];
97
+ readonly name: "OidcAccountUpdated";
98
+ readonly type: "event";
99
+ }, {
100
+ readonly inputs: readonly [{
101
+ readonly internalType: "bytes32";
102
+ readonly name: "oidcDigest";
103
+ readonly type: "bytes32";
104
+ }, {
105
+ readonly internalType: "string";
106
+ readonly name: "iss";
107
+ readonly type: "string";
108
+ }];
109
+ readonly name: "addOidcAccount";
110
+ readonly outputs: readonly [{
111
+ readonly internalType: "bool";
112
+ readonly name: "";
113
+ readonly type: "bool";
114
+ }];
115
+ readonly stateMutability: "nonpayable";
116
+ readonly type: "function";
117
+ }, {
118
+ readonly inputs: readonly [{
119
+ readonly internalType: "bytes32";
120
+ readonly name: "digest";
121
+ readonly type: "bytes32";
122
+ }];
123
+ readonly name: "addressForDigest";
124
+ readonly outputs: readonly [{
125
+ readonly internalType: "address";
126
+ readonly name: "";
127
+ readonly type: "address";
128
+ }];
129
+ readonly stateMutability: "view";
130
+ readonly type: "function";
131
+ }, {
132
+ readonly inputs: readonly [];
133
+ readonly name: "deleteOidcAccount";
134
+ readonly outputs: readonly [];
135
+ readonly stateMutability: "nonpayable";
136
+ readonly type: "function";
137
+ }, {
138
+ readonly inputs: readonly [{
139
+ readonly internalType: "address";
140
+ readonly name: "_keyRegistry";
141
+ readonly type: "address";
142
+ }, {
143
+ readonly internalType: "address";
144
+ readonly name: "_verifier";
145
+ readonly type: "address";
146
+ }, {
147
+ readonly internalType: "address";
148
+ readonly name: "_webAuthValidator";
149
+ readonly type: "address";
150
+ }];
151
+ readonly name: "initialize";
152
+ readonly outputs: readonly [];
153
+ readonly stateMutability: "nonpayable";
154
+ readonly type: "function";
155
+ }, {
156
+ readonly inputs: readonly [];
157
+ readonly name: "keyRegistry";
158
+ readonly outputs: readonly [{
159
+ readonly internalType: "address";
160
+ readonly name: "";
161
+ readonly type: "address";
162
+ }];
163
+ readonly stateMutability: "view";
164
+ readonly type: "function";
165
+ }, {
166
+ readonly inputs: readonly [{
167
+ readonly internalType: "address";
168
+ readonly name: "account";
169
+ readonly type: "address";
170
+ }];
171
+ readonly name: "oidcDataForAddress";
172
+ readonly outputs: readonly [{
173
+ readonly components: readonly [{
174
+ readonly internalType: "bytes32";
175
+ readonly name: "oidcDigest";
176
+ readonly type: "bytes32";
177
+ }, {
178
+ readonly internalType: "string";
179
+ readonly name: "iss";
180
+ readonly type: "string";
181
+ }, {
182
+ readonly internalType: "bool";
183
+ readonly name: "readyToRecover";
184
+ readonly type: "bool";
185
+ }, {
186
+ readonly internalType: "bytes32";
187
+ readonly name: "pendingPasskeyHash";
188
+ readonly type: "bytes32";
189
+ }, {
190
+ readonly internalType: "uint256";
191
+ readonly name: "recoverNonce";
192
+ readonly type: "uint256";
193
+ }, {
194
+ readonly internalType: "uint256";
195
+ readonly name: "addedOn";
196
+ readonly type: "uint256";
197
+ }];
198
+ readonly internalType: "struct OidcRecoveryValidator.OidcData";
199
+ readonly name: "";
200
+ readonly type: "tuple";
201
+ }];
202
+ readonly stateMutability: "view";
203
+ readonly type: "function";
204
+ }, {
205
+ readonly inputs: readonly [{
206
+ readonly internalType: "bytes";
207
+ readonly name: "data";
208
+ readonly type: "bytes";
209
+ }];
210
+ readonly name: "onInstall";
211
+ readonly outputs: readonly [];
212
+ readonly stateMutability: "nonpayable";
213
+ readonly type: "function";
214
+ }, {
215
+ readonly inputs: readonly [{
216
+ readonly internalType: "bytes";
217
+ readonly name: "";
218
+ readonly type: "bytes";
219
+ }];
220
+ readonly name: "onUninstall";
221
+ readonly outputs: readonly [];
222
+ readonly stateMutability: "nonpayable";
223
+ readonly type: "function";
224
+ }, {
225
+ readonly inputs: readonly [{
226
+ readonly components: readonly [{
227
+ readonly components: readonly [{
228
+ readonly internalType: "uint256[2]";
229
+ readonly name: "pA";
230
+ readonly type: "uint256[2]";
231
+ }, {
232
+ readonly internalType: "uint256[2][2]";
233
+ readonly name: "pB";
234
+ readonly type: "uint256[2][2]";
235
+ }, {
236
+ readonly internalType: "uint256[2]";
237
+ readonly name: "pC";
238
+ readonly type: "uint256[2]";
239
+ }];
240
+ readonly internalType: "struct OidcRecoveryValidator.ZkProof";
241
+ readonly name: "zkProof";
242
+ readonly type: "tuple";
243
+ }, {
244
+ readonly internalType: "bytes32";
245
+ readonly name: "kid";
246
+ readonly type: "bytes32";
247
+ }, {
248
+ readonly internalType: "bytes32";
249
+ readonly name: "pendingPasskeyHash";
250
+ readonly type: "bytes32";
251
+ }, {
252
+ readonly internalType: "uint256";
253
+ readonly name: "timeLimit";
254
+ readonly type: "uint256";
255
+ }];
256
+ readonly internalType: "struct OidcRecoveryValidator.StartRecoveryData";
257
+ readonly name: "data";
258
+ readonly type: "tuple";
259
+ }, {
260
+ readonly internalType: "address";
261
+ readonly name: "targetAccount";
262
+ readonly type: "address";
263
+ }];
264
+ readonly name: "startRecovery";
265
+ readonly outputs: readonly [];
266
+ readonly stateMutability: "nonpayable";
267
+ readonly type: "function";
268
+ }, {
269
+ readonly inputs: readonly [{
270
+ readonly internalType: "bytes4";
271
+ readonly name: "interfaceId";
272
+ readonly type: "bytes4";
273
+ }];
274
+ readonly name: "supportsInterface";
275
+ readonly outputs: readonly [{
276
+ readonly internalType: "bool";
277
+ readonly name: "";
278
+ readonly type: "bool";
279
+ }];
280
+ readonly stateMutability: "pure";
281
+ readonly type: "function";
282
+ }, {
283
+ readonly inputs: readonly [{
284
+ readonly internalType: "bytes32";
285
+ readonly name: "";
286
+ readonly type: "bytes32";
287
+ }, {
288
+ readonly internalType: "bytes";
289
+ readonly name: "";
290
+ readonly type: "bytes";
291
+ }];
292
+ readonly name: "validateSignature";
293
+ readonly outputs: readonly [{
294
+ readonly internalType: "bool";
295
+ readonly name: "";
296
+ readonly type: "bool";
297
+ }];
298
+ readonly stateMutability: "pure";
299
+ readonly type: "function";
300
+ }, {
301
+ readonly inputs: readonly [{
302
+ readonly internalType: "bytes32";
303
+ readonly name: "";
304
+ readonly type: "bytes32";
305
+ }, {
306
+ readonly components: readonly [{
307
+ readonly internalType: "uint256";
308
+ readonly name: "txType";
309
+ readonly type: "uint256";
310
+ }, {
311
+ readonly internalType: "uint256";
312
+ readonly name: "from";
313
+ readonly type: "uint256";
314
+ }, {
315
+ readonly internalType: "uint256";
316
+ readonly name: "to";
317
+ readonly type: "uint256";
318
+ }, {
319
+ readonly internalType: "uint256";
320
+ readonly name: "gasLimit";
321
+ readonly type: "uint256";
322
+ }, {
323
+ readonly internalType: "uint256";
324
+ readonly name: "gasPerPubdataByteLimit";
325
+ readonly type: "uint256";
326
+ }, {
327
+ readonly internalType: "uint256";
328
+ readonly name: "maxFeePerGas";
329
+ readonly type: "uint256";
330
+ }, {
331
+ readonly internalType: "uint256";
332
+ readonly name: "maxPriorityFeePerGas";
333
+ readonly type: "uint256";
334
+ }, {
335
+ readonly internalType: "uint256";
336
+ readonly name: "paymaster";
337
+ readonly type: "uint256";
338
+ }, {
339
+ readonly internalType: "uint256";
340
+ readonly name: "nonce";
341
+ readonly type: "uint256";
342
+ }, {
343
+ readonly internalType: "uint256";
344
+ readonly name: "value";
345
+ readonly type: "uint256";
346
+ }, {
347
+ readonly internalType: "uint256[4]";
348
+ readonly name: "reserved";
349
+ readonly type: "uint256[4]";
350
+ }, {
351
+ readonly internalType: "bytes";
352
+ readonly name: "data";
353
+ readonly type: "bytes";
354
+ }, {
355
+ readonly internalType: "bytes";
356
+ readonly name: "signature";
357
+ readonly type: "bytes";
358
+ }, {
359
+ readonly internalType: "bytes32[]";
360
+ readonly name: "factoryDeps";
361
+ readonly type: "bytes32[]";
362
+ }, {
363
+ readonly internalType: "bytes";
364
+ readonly name: "paymasterInput";
365
+ readonly type: "bytes";
366
+ }, {
367
+ readonly internalType: "bytes";
368
+ readonly name: "reservedDynamic";
369
+ readonly type: "bytes";
370
+ }];
371
+ readonly internalType: "struct Transaction";
372
+ readonly name: "transaction";
373
+ readonly type: "tuple";
374
+ }];
375
+ readonly name: "validateTransaction";
376
+ readonly outputs: readonly [{
377
+ readonly internalType: "bool";
378
+ readonly name: "";
379
+ readonly type: "bool";
380
+ }];
381
+ readonly stateMutability: "nonpayable";
382
+ readonly type: "function";
383
+ }, {
384
+ readonly inputs: readonly [];
385
+ readonly name: "verifier";
386
+ readonly outputs: readonly [{
387
+ readonly internalType: "address";
388
+ readonly name: "";
389
+ readonly type: "address";
390
+ }];
391
+ readonly stateMutability: "view";
392
+ readonly type: "function";
393
+ }, {
394
+ readonly inputs: readonly [];
395
+ readonly name: "webAuthValidator";
396
+ readonly outputs: readonly [{
397
+ readonly internalType: "address";
398
+ readonly name: "";
399
+ readonly type: "address";
400
+ }];
401
+ readonly stateMutability: "view";
402
+ readonly type: "function";
403
+ }];
404
+ //# sourceMappingURL=OidcRecoveryValidator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OidcRecoveryValidator.d.ts","sourceRoot":"","sources":["../../../src/abi/OidcRecoveryValidator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2gB3B,CAAC"}
@@ -0,0 +1,228 @@
1
+ export declare const WebAuthModuleAbi: readonly [{
2
+ readonly anonymous: false;
3
+ readonly inputs: readonly [{
4
+ readonly indexed: true;
5
+ readonly internalType: "address";
6
+ readonly name: "keyOwner";
7
+ readonly type: "address";
8
+ }, {
9
+ readonly indexed: false;
10
+ readonly internalType: "string";
11
+ readonly name: "originDomain";
12
+ readonly type: "string";
13
+ }];
14
+ readonly name: "PasskeyCreated";
15
+ readonly type: "event";
16
+ }, {
17
+ readonly inputs: readonly [{
18
+ readonly internalType: "bytes";
19
+ readonly name: "key";
20
+ readonly type: "bytes";
21
+ }];
22
+ readonly name: "addValidationKey";
23
+ readonly outputs: readonly [{
24
+ readonly internalType: "bool";
25
+ readonly name: "";
26
+ readonly type: "bool";
27
+ }];
28
+ readonly stateMutability: "nonpayable";
29
+ readonly type: "function";
30
+ }, {
31
+ readonly inputs: readonly [{
32
+ readonly internalType: "string";
33
+ readonly name: "originDomain";
34
+ readonly type: "string";
35
+ }, {
36
+ readonly internalType: "address";
37
+ readonly name: "accountAddress";
38
+ readonly type: "address";
39
+ }];
40
+ readonly name: "lowerKeyHalf";
41
+ readonly outputs: readonly [{
42
+ readonly internalType: "bytes32";
43
+ readonly name: "";
44
+ readonly type: "bytes32";
45
+ }];
46
+ readonly stateMutability: "view";
47
+ readonly type: "function";
48
+ }, {
49
+ readonly inputs: readonly [{
50
+ readonly internalType: "bytes";
51
+ readonly name: "data";
52
+ readonly type: "bytes";
53
+ }];
54
+ readonly name: "onInstall";
55
+ readonly outputs: readonly [];
56
+ readonly stateMutability: "nonpayable";
57
+ readonly type: "function";
58
+ }, {
59
+ readonly inputs: readonly [{
60
+ readonly internalType: "bytes";
61
+ readonly name: "data";
62
+ readonly type: "bytes";
63
+ }];
64
+ readonly name: "onUninstall";
65
+ readonly outputs: readonly [];
66
+ readonly stateMutability: "nonpayable";
67
+ readonly type: "function";
68
+ }, {
69
+ readonly inputs: readonly [{
70
+ readonly internalType: "bytes32";
71
+ readonly name: "message";
72
+ readonly type: "bytes32";
73
+ }, {
74
+ readonly internalType: "bytes32[2]";
75
+ readonly name: "rs";
76
+ readonly type: "bytes32[2]";
77
+ }, {
78
+ readonly internalType: "bytes32[2]";
79
+ readonly name: "pubKey";
80
+ readonly type: "bytes32[2]";
81
+ }];
82
+ readonly name: "rawVerify";
83
+ readonly outputs: readonly [{
84
+ readonly internalType: "bool";
85
+ readonly name: "valid";
86
+ readonly type: "bool";
87
+ }];
88
+ readonly stateMutability: "view";
89
+ readonly type: "function";
90
+ }, {
91
+ readonly inputs: readonly [{
92
+ readonly internalType: "bytes4";
93
+ readonly name: "interfaceId";
94
+ readonly type: "bytes4";
95
+ }];
96
+ readonly name: "supportsInterface";
97
+ readonly outputs: readonly [{
98
+ readonly internalType: "bool";
99
+ readonly name: "";
100
+ readonly type: "bool";
101
+ }];
102
+ readonly stateMutability: "pure";
103
+ readonly type: "function";
104
+ }, {
105
+ readonly inputs: readonly [{
106
+ readonly internalType: "string";
107
+ readonly name: "originDomain";
108
+ readonly type: "string";
109
+ }, {
110
+ readonly internalType: "address";
111
+ readonly name: "accountAddress";
112
+ readonly type: "address";
113
+ }];
114
+ readonly name: "upperKeyHalf";
115
+ readonly outputs: readonly [{
116
+ readonly internalType: "bytes32";
117
+ readonly name: "";
118
+ readonly type: "bytes32";
119
+ }];
120
+ readonly stateMutability: "view";
121
+ readonly type: "function";
122
+ }, {
123
+ readonly inputs: readonly [{
124
+ readonly internalType: "bytes32";
125
+ readonly name: "signedHash";
126
+ readonly type: "bytes32";
127
+ }, {
128
+ readonly internalType: "bytes";
129
+ readonly name: "signature";
130
+ readonly type: "bytes";
131
+ }];
132
+ readonly name: "validateSignature";
133
+ readonly outputs: readonly [{
134
+ readonly internalType: "bool";
135
+ readonly name: "";
136
+ readonly type: "bool";
137
+ }];
138
+ readonly stateMutability: "view";
139
+ readonly type: "function";
140
+ }, {
141
+ readonly inputs: readonly [{
142
+ readonly internalType: "bytes32";
143
+ readonly name: "signedHash";
144
+ readonly type: "bytes32";
145
+ }, {
146
+ readonly internalType: "bytes";
147
+ readonly name: "signature";
148
+ readonly type: "bytes";
149
+ }, {
150
+ readonly components: readonly [{
151
+ readonly internalType: "uint256";
152
+ readonly name: "txType";
153
+ readonly type: "uint256";
154
+ }, {
155
+ readonly internalType: "uint256";
156
+ readonly name: "from";
157
+ readonly type: "uint256";
158
+ }, {
159
+ readonly internalType: "uint256";
160
+ readonly name: "to";
161
+ readonly type: "uint256";
162
+ }, {
163
+ readonly internalType: "uint256";
164
+ readonly name: "gasLimit";
165
+ readonly type: "uint256";
166
+ }, {
167
+ readonly internalType: "uint256";
168
+ readonly name: "gasPerPubdataByteLimit";
169
+ readonly type: "uint256";
170
+ }, {
171
+ readonly internalType: "uint256";
172
+ readonly name: "maxFeePerGas";
173
+ readonly type: "uint256";
174
+ }, {
175
+ readonly internalType: "uint256";
176
+ readonly name: "maxPriorityFeePerGas";
177
+ readonly type: "uint256";
178
+ }, {
179
+ readonly internalType: "uint256";
180
+ readonly name: "paymaster";
181
+ readonly type: "uint256";
182
+ }, {
183
+ readonly internalType: "uint256";
184
+ readonly name: "nonce";
185
+ readonly type: "uint256";
186
+ }, {
187
+ readonly internalType: "uint256";
188
+ readonly name: "value";
189
+ readonly type: "uint256";
190
+ }, {
191
+ readonly internalType: "uint256[4]";
192
+ readonly name: "reserved";
193
+ readonly type: "uint256[4]";
194
+ }, {
195
+ readonly internalType: "bytes";
196
+ readonly name: "data";
197
+ readonly type: "bytes";
198
+ }, {
199
+ readonly internalType: "bytes";
200
+ readonly name: "signature";
201
+ readonly type: "bytes";
202
+ }, {
203
+ readonly internalType: "bytes32[]";
204
+ readonly name: "factoryDeps";
205
+ readonly type: "bytes32[]";
206
+ }, {
207
+ readonly internalType: "bytes";
208
+ readonly name: "paymasterInput";
209
+ readonly type: "bytes";
210
+ }, {
211
+ readonly internalType: "bytes";
212
+ readonly name: "reservedDynamic";
213
+ readonly type: "bytes";
214
+ }];
215
+ readonly internalType: "struct Transaction";
216
+ readonly name: "";
217
+ readonly type: "tuple";
218
+ }];
219
+ readonly name: "validateTransaction";
220
+ readonly outputs: readonly [{
221
+ readonly internalType: "bool";
222
+ readonly name: "";
223
+ readonly type: "bool";
224
+ }];
225
+ readonly stateMutability: "view";
226
+ readonly type: "function";
227
+ }];
228
+ //# sourceMappingURL=WebAuthModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebAuthModule.d.ts","sourceRoot":"","sources":["../../../src/abi/WebAuthModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwSnB,CAAC"}
@@ -1,6 +1,10 @@
1
1
  export { AAFactoryAbi } from "./AAFactory.js";
2
+ export { GuardianRecoveryModuleAbi } from "./GuardianRecoveryModule.js";
2
3
  export { GuardianRecoveryValidatorAbi } from "./GuardianRecoveryValidator.js";
4
+ export { OidcKeyRegistryAbi } from "./OidcKeyRegistry.js";
5
+ export { OidcRecoveryValidatorAbi } from "./OidcRecoveryValidator.js";
3
6
  export { SessionKeyValidatorAbi } from "./SessionKeyValidator.js";
4
7
  export { SsoAccountAbi } from "./SsoAccount.js";
8
+ export { WebAuthModuleAbi } from "./WebAuthModule.js";
5
9
  export { WebAuthValidatorAbi } from "./WebAuthValidator.js";
6
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/abi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/abi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Address } from "abitype";
2
+ import { type CustomSource, type Hash, type Hex, type LocalAccount } from "viem";
3
+ export type ToOidcAccountParameters = {
4
+ address: Address;
5
+ signTransaction: (parameters: {
6
+ hash: Hash;
7
+ }) => Promise<Hex>;
8
+ };
9
+ export type OidcAccount = LocalAccount<"ssoOidcAccount"> & {
10
+ sign: NonNullable<CustomSource["sign"]>;
11
+ };
12
+ export declare function toOidcAccount(parameters: ToOidcAccountParameters): OidcAccount;
13
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/client/oidc/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,IAAI,EAET,KAAK,GAAG,EACR,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AAMd,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,CAAC,UAAU,EAAE;QAC5B,IAAI,EAAE,IAAI,CAAC;KACZ,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,gBAAgB,CAAC,GAAG;IACzD,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,aAAa,CAC3B,UAAU,EAAE,uBAAuB,GAClC,WAAW,CAsCb"}
@@ -0,0 +1,12 @@
1
+ import { type Account, type Address, type Chain, type Client, type Hex, type Prettify, type TransactionReceipt, type Transport } from "viem";
2
+ export type AddNewPasskeyViaOidcArgs = {
3
+ credentialId: Hex;
4
+ passkeyPubKey: [Hex, Hex];
5
+ passkeyDomain: string;
6
+ contracts: {
7
+ recoveryOidc: Address;
8
+ passkey: Address;
9
+ };
10
+ };
11
+ export declare function addNewPasskeyViaOidc<transport extends Transport, chain extends Chain, account extends Account>(client: Client<transport, chain, account>, args: Prettify<AddNewPasskeyViaOidcArgs>): Promise<TransactionReceipt>;
12
+ //# sourceMappingURL=addNewPasskeyViaOidc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addNewPasskeyViaOidc.d.ts","sourceRoot":"","sources":["../../../../../src/client/oidc/actions/addNewPasskeyViaOidc.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAAsB,KAAK,GAAG,EACzC,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EACtC,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AAMd,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,EAAE,GAAG,CAAC;IAClB,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,YAAY,EAAE,OAAO,CAAC;QACtB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,wBAAsB,oBAAoB,CACxC,SAAS,SAAS,SAAS,EAC3B,KAAK,SAAS,KAAK,EACnB,OAAO,SAAS,OAAO,EAEvB,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAyBlH"}