@medialane/sdk 0.207.0 → 0.210.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/{chunk-GENBWVGK.js → chunk-3SIT2PCD.js} +11 -3
- package/dist/chunk-3SIT2PCD.js.map +1 -0
- package/dist/{chunk-MCVAZVLN.cjs → chunk-3V3L2R5O.cjs} +11 -3
- package/dist/chunk-3V3L2R5O.cjs.map +1 -0
- package/dist/{chunk-EPU52YSA.js → chunk-BFG3VTJQ.js} +62 -4
- package/dist/chunk-BFG3VTJQ.js.map +1 -0
- package/dist/{chunk-ZYRSMDMJ.cjs → chunk-W3XFKULQ.cjs} +80 -18
- package/dist/chunk-W3XFKULQ.cjs.map +1 -0
- package/dist/index.cjs +34 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{passkey-errors-DMv2Vn1P.d.ts → passkey-errors-BXclgAtu.d.ts} +15 -17
- package/dist/{passkey-errors-BjqEFmu_.d.cts → passkey-errors-BcJWGxSV.d.cts} +15 -17
- package/dist/{services-Cy5FH8sP.d.cts → services-BvLnPxis.d.cts} +1 -2
- package/dist/{services-DWmXVwTV.d.ts → services-CRQUM6bg.d.ts} +1 -2
- package/dist/starknet/index.cjs +101 -85
- package/dist/starknet/index.d.cts +5 -5
- package/dist/starknet/index.d.ts +5 -5
- package/dist/starknet/index.js +3 -3
- package/dist/wallet/index.cjs +75 -59
- package/dist/wallet/index.d.cts +26 -3
- package/dist/wallet/index.d.ts +26 -3
- package/dist/wallet/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-EPU52YSA.js.map +0 -1
- package/dist/chunk-GENBWVGK.js.map +0 -1
- package/dist/chunk-MCVAZVLN.cjs.map +0 -1
- package/dist/chunk-ZYRSMDMJ.cjs.map +0 -1
package/dist/wallet/index.cjs
CHANGED
|
@@ -1,240 +1,256 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkW3XFKULQ_cjs = require('../chunk-W3XFKULQ.cjs');
|
|
4
|
+
var chunk3V3L2R5O_cjs = require('../chunk-3V3L2R5O.cjs');
|
|
5
5
|
require('../chunk-H2NJB3AK.cjs');
|
|
6
6
|
require('../chunk-W76AZ5WC.cjs');
|
|
7
7
|
require('../chunk-Q7SFCCGT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
Object.defineProperty(exports, "GUARDIAN_WALLET_BUSY", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkW3XFKULQ_cjs.GUARDIAN_WALLET_BUSY; }
|
|
14
|
+
});
|
|
11
15
|
Object.defineProperty(exports, "InvalidPairingPayloadError", {
|
|
12
16
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkW3XFKULQ_cjs.InvalidPairingPayloadError; }
|
|
14
18
|
});
|
|
15
19
|
Object.defineProperty(exports, "InvalidRecoveryKeyError", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkW3XFKULQ_cjs.InvalidRecoveryKeyError; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "InvalidStarkPrivateKeyError", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkW3XFKULQ_cjs.InvalidStarkPrivateKeyError; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "accountFor", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkW3XFKULQ_cjs.accountFor; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "buildAddOwnerCall", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkW3XFKULQ_cjs.buildAddOwnerCall; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "buildCancelEscapeCall", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkW3XFKULQ_cjs.buildCancelEscapeCall; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "buildCompleteEscapeOwnerCall", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkW3XFKULQ_cjs.buildCompleteEscapeOwnerCall; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "buildDeployAccountParams", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkW3XFKULQ_cjs.buildDeployAccountParams; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "buildRemoveOwnerByGuidCall", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkW3XFKULQ_cjs.buildRemoveOwnerByGuidCall; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "buildRemoveOwnerCall", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkW3XFKULQ_cjs.buildRemoveOwnerCall; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "buildSetFirstGuardianCall", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkW3XFKULQ_cjs.buildSetFirstGuardianCall; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "buildTriggerEscapeOwnerCall", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkW3XFKULQ_cjs.buildTriggerEscapeOwnerCall; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "canRemoveDevice", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkW3XFKULQ_cjs.canRemoveDevice; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "claimSessionWallet", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkW3XFKULQ_cjs.claimSessionWallet; }
|
|
66
70
|
});
|
|
67
71
|
Object.defineProperty(exports, "completeDeployment", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkW3XFKULQ_cjs.completeDeployment; }
|
|
70
74
|
});
|
|
71
75
|
Object.defineProperty(exports, "computeAccountAddress", {
|
|
72
76
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkW3XFKULQ_cjs.computeAccountAddress; }
|
|
74
78
|
});
|
|
75
79
|
Object.defineProperty(exports, "computeOwnerGuid", {
|
|
76
80
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkW3XFKULQ_cjs.computeOwnerGuid; }
|
|
78
82
|
});
|
|
79
83
|
Object.defineProperty(exports, "createDeploymentCoordinator", {
|
|
80
84
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkW3XFKULQ_cjs.createDeploymentCoordinator; }
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "createMediaWallet", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkW3XFKULQ_cjs.createMediaWallet; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "createOwnerStore", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkW3XFKULQ_cjs.createOwnerStore; }
|
|
90
94
|
});
|
|
91
95
|
Object.defineProperty(exports, "createPasskeyOwner", {
|
|
92
96
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkW3XFKULQ_cjs.createPasskeyOwner; }
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(exports, "createSelfFundConsent", {
|
|
96
100
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkW3XFKULQ_cjs.createSelfFundConsent; }
|
|
98
102
|
});
|
|
99
103
|
Object.defineProperty(exports, "decodeEscapeAndStatus", {
|
|
100
104
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkW3XFKULQ_cjs.decodeEscapeAndStatus; }
|
|
102
106
|
});
|
|
103
107
|
Object.defineProperty(exports, "decodeGuardiansInfo", {
|
|
104
108
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkW3XFKULQ_cjs.decodeGuardiansInfo; }
|
|
106
110
|
});
|
|
107
111
|
Object.defineProperty(exports, "deploySelfFunded", {
|
|
108
112
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkW3XFKULQ_cjs.deploySelfFunded; }
|
|
110
114
|
});
|
|
111
115
|
Object.defineProperty(exports, "deploySponsored", {
|
|
112
116
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkW3XFKULQ_cjs.deploySponsored; }
|
|
114
118
|
});
|
|
115
119
|
Object.defineProperty(exports, "deriveAesKey", {
|
|
116
120
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkW3XFKULQ_cjs.deriveAesKey; }
|
|
118
122
|
});
|
|
119
123
|
Object.defineProperty(exports, "deriveOwnerKeyPair", {
|
|
120
124
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkW3XFKULQ_cjs.deriveOwnerKeyPair; }
|
|
122
126
|
});
|
|
123
127
|
Object.defineProperty(exports, "describeDevices", {
|
|
124
128
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkW3XFKULQ_cjs.describeDevices; }
|
|
126
130
|
});
|
|
127
131
|
Object.defineProperty(exports, "describeGuardianStatus", {
|
|
128
132
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkW3XFKULQ_cjs.describeGuardianStatus; }
|
|
130
134
|
});
|
|
131
135
|
Object.defineProperty(exports, "describeRecoveryAction", {
|
|
132
136
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkW3XFKULQ_cjs.describeRecoveryAction; }
|
|
134
138
|
});
|
|
135
139
|
Object.defineProperty(exports, "encodePairingPayload", {
|
|
136
140
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkW3XFKULQ_cjs.encodePairingPayload; }
|
|
138
142
|
});
|
|
139
143
|
Object.defineProperty(exports, "encodeRecoveryKey", {
|
|
140
144
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkW3XFKULQ_cjs.encodeRecoveryKey; }
|
|
142
146
|
});
|
|
143
147
|
Object.defineProperty(exports, "estimateSelfFundedFee", {
|
|
144
148
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkW3XFKULQ_cjs.estimateSelfFundedFee; }
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "finishSessionRecovery", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return chunkW3XFKULQ_cjs.finishSessionRecovery; }
|
|
146
154
|
});
|
|
147
155
|
Object.defineProperty(exports, "generateStarkKeyPair", {
|
|
148
156
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkW3XFKULQ_cjs.generateStarkKeyPair; }
|
|
150
158
|
});
|
|
151
159
|
Object.defineProperty(exports, "getEscape", {
|
|
152
160
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkW3XFKULQ_cjs.getEscape; }
|
|
154
162
|
});
|
|
155
163
|
Object.defineProperty(exports, "getEscapeSecurityPeriod", {
|
|
156
164
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkW3XFKULQ_cjs.getEscapeSecurityPeriod; }
|
|
158
166
|
});
|
|
159
167
|
Object.defineProperty(exports, "getGuardians", {
|
|
160
168
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkW3XFKULQ_cjs.getGuardians; }
|
|
162
170
|
});
|
|
163
171
|
Object.defineProperty(exports, "getOwners", {
|
|
164
172
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkW3XFKULQ_cjs.getOwners; }
|
|
166
174
|
});
|
|
167
175
|
Object.defineProperty(exports, "indexedDbDeviceKeys", {
|
|
168
176
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkW3XFKULQ_cjs.indexedDbDeviceKeys; }
|
|
170
178
|
});
|
|
171
179
|
Object.defineProperty(exports, "isDeployed", {
|
|
172
180
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkW3XFKULQ_cjs.isDeployed; }
|
|
174
182
|
});
|
|
175
183
|
Object.defineProperty(exports, "isValidStarknetAddress", {
|
|
176
184
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkW3XFKULQ_cjs.isValidStarknetAddress; }
|
|
178
186
|
});
|
|
179
187
|
Object.defineProperty(exports, "normalizeWalletAddress", {
|
|
180
188
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkW3XFKULQ_cjs.normalizeWalletAddress; }
|
|
182
190
|
});
|
|
183
191
|
Object.defineProperty(exports, "ownerConstructorCalldata", {
|
|
184
192
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkW3XFKULQ_cjs.ownerConstructorCalldata; }
|
|
186
194
|
});
|
|
187
195
|
Object.defineProperty(exports, "parseAccountAddress", {
|
|
188
196
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkW3XFKULQ_cjs.parseAccountAddress; }
|
|
190
198
|
});
|
|
191
199
|
Object.defineProperty(exports, "parsePairingPayload", {
|
|
192
200
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkW3XFKULQ_cjs.parsePairingPayload; }
|
|
194
202
|
});
|
|
195
203
|
Object.defineProperty(exports, "parseRecoveryKey", {
|
|
196
204
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkW3XFKULQ_cjs.parseRecoveryKey; }
|
|
198
206
|
});
|
|
199
207
|
Object.defineProperty(exports, "sealPrivateKey", {
|
|
200
208
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkW3XFKULQ_cjs.sealPrivateKey; }
|
|
202
210
|
});
|
|
203
211
|
Object.defineProperty(exports, "selfFundedExecutor", {
|
|
204
212
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkW3XFKULQ_cjs.selfFundedExecutor; }
|
|
206
214
|
});
|
|
207
215
|
Object.defineProperty(exports, "signWithPrivateKey", {
|
|
208
216
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkW3XFKULQ_cjs.signWithPrivateKey; }
|
|
210
218
|
});
|
|
211
219
|
Object.defineProperty(exports, "sponsoredExecutor", {
|
|
212
220
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkW3XFKULQ_cjs.sponsoredExecutor; }
|
|
214
222
|
});
|
|
215
223
|
Object.defineProperty(exports, "starkKeyPairFromPrivateKey", {
|
|
216
224
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkW3XFKULQ_cjs.starkKeyPairFromPrivateKey; }
|
|
226
|
+
});
|
|
227
|
+
Object.defineProperty(exports, "startSessionRecovery", {
|
|
228
|
+
enumerable: true,
|
|
229
|
+
get: function () { return chunkW3XFKULQ_cjs.startSessionRecovery; }
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(exports, "turnOnRecovery", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function () { return chunkW3XFKULQ_cjs.turnOnRecovery; }
|
|
218
234
|
});
|
|
219
235
|
Object.defineProperty(exports, "unsealPrivateKey", {
|
|
220
236
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkW3XFKULQ_cjs.unsealPrivateKey; }
|
|
222
238
|
});
|
|
223
239
|
Object.defineProperty(exports, "waitUntilDeployed", {
|
|
224
240
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkW3XFKULQ_cjs.waitUntilDeployed; }
|
|
226
242
|
});
|
|
227
243
|
Object.defineProperty(exports, "DeviceKeyMissingError", {
|
|
228
244
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunk3V3L2R5O_cjs.DeviceKeyMissingError; }
|
|
230
246
|
});
|
|
231
247
|
Object.defineProperty(exports, "PasskeyCancelledError", {
|
|
232
248
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunk3V3L2R5O_cjs.PasskeyCancelledError; }
|
|
234
250
|
});
|
|
235
251
|
Object.defineProperty(exports, "PasskeyUnsupportedError", {
|
|
236
252
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunk3V3L2R5O_cjs.PasskeyUnsupportedError; }
|
|
238
254
|
});
|
|
239
255
|
//# sourceMappingURL=index.cjs.map
|
|
240
256
|
//# sourceMappingURL=index.cjs.map
|
package/dist/wallet/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BigNumberish, Call, DeployAccountContractPayload, ProviderInterface, TypedData, Account } from 'starknet';
|
|
2
2
|
import { F as FetchLike } from '../fetch-Cx9Pr7-B.cjs';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { b9 as CreateWalletManageIntentParams, c as AccountApi, bI as WalletRecovery } from '../passkey-errors-BcJWGxSV.cjs';
|
|
4
|
+
export { ba as DeviceKeyMissingError, bt as PasskeyCancelledError, bu as PasskeyUnsupportedError, bv as PasskeyUnsupportedReason } from '../passkey-errors-BcJWGxSV.cjs';
|
|
5
5
|
import '../chains-CmwjZVU7.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../responses-BpnS-Io9.cjs';
|
|
@@ -94,6 +94,9 @@ interface OwnerStore {
|
|
|
94
94
|
loadAddress(): string | null;
|
|
95
95
|
save(sealed: SealedOwner): void;
|
|
96
96
|
clear(): void;
|
|
97
|
+
loadPending(): SealedOwner | null;
|
|
98
|
+
savePending(sealed: SealedOwner): void;
|
|
99
|
+
clearPending(): void;
|
|
97
100
|
notifyChange(): void;
|
|
98
101
|
onChange(listener: () => void): () => void;
|
|
99
102
|
}
|
|
@@ -181,6 +184,7 @@ interface PasskeyOwner {
|
|
|
181
184
|
}
|
|
182
185
|
declare function createPasskeyOwner(config: PasskeyConfig): PasskeyOwner;
|
|
183
186
|
|
|
187
|
+
declare const GUARDIAN_WALLET_BUSY = "This can't go through right now. Please try again in a moment.";
|
|
184
188
|
interface SelfFundedDeps {
|
|
185
189
|
provider: () => ProviderInterface;
|
|
186
190
|
}
|
|
@@ -192,6 +196,7 @@ interface SponsoredDeps extends SelfFundedDeps {
|
|
|
192
196
|
consent: SelfFundConsent;
|
|
193
197
|
fetchImpl?: FetchLike;
|
|
194
198
|
fallback?: WalletExecutor;
|
|
199
|
+
guardians?: (address: string) => Promise<unknown[]>;
|
|
195
200
|
}
|
|
196
201
|
declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
|
|
197
202
|
|
|
@@ -316,4 +321,22 @@ declare function claimSessionWallet(api: {
|
|
|
316
321
|
account: Pick<AccountApi, "setupWalletKey">;
|
|
317
322
|
}, walletAddress: string, deps: SessionWalletClaimDeps): Promise<void>;
|
|
318
323
|
|
|
319
|
-
|
|
324
|
+
type RecoveryApi = {
|
|
325
|
+
account: Pick<AccountApi, "walletRecovery" | "startWalletRecovery" | "completeWalletRecovery">;
|
|
326
|
+
};
|
|
327
|
+
interface SessionRecoveryDeps {
|
|
328
|
+
createOwnerKey(): Promise<CreatedOwner>;
|
|
329
|
+
loadPending(): SealedOwner | null;
|
|
330
|
+
savePending(sealed: SealedOwner): void;
|
|
331
|
+
clearPending(): void;
|
|
332
|
+
saveOwner(sealed: SealedOwner): void;
|
|
333
|
+
}
|
|
334
|
+
declare function startSessionRecovery(api: RecoveryApi, walletAddress: string, deps: SessionRecoveryDeps): Promise<WalletRecovery>;
|
|
335
|
+
declare function finishSessionRecovery(api: RecoveryApi, walletAddress: string, deps: SessionRecoveryDeps): Promise<void>;
|
|
336
|
+
declare function turnOnRecovery(api: {
|
|
337
|
+
account: Pick<AccountApi, "walletRecovery">;
|
|
338
|
+
}, wallet: {
|
|
339
|
+
setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<unknown>;
|
|
340
|
+
}, sealed: SealedOwner): Promise<void>;
|
|
341
|
+
|
|
342
|
+
export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, GUARDIAN_WALLET_BUSY, type GuardianInfo, type GuardianStatus, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, type MediaWallet, type MediaWalletConfig, type OwnerSigner, type OwnerStore, type PairingPayload, type PasskeyConfig, type PasskeyOwner, type ReceiptProviderLike, type RecoveryAction, type RecoveryKey, type SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionRecoveryDeps, type SessionWallet, type SessionWalletClaimDeps, type SponsoredDeps, type WalletExecutor, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed };
|
package/dist/wallet/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BigNumberish, Call, DeployAccountContractPayload, ProviderInterface, TypedData, Account } from 'starknet';
|
|
2
2
|
import { F as FetchLike } from '../fetch-Cx9Pr7-B.js';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { b9 as CreateWalletManageIntentParams, c as AccountApi, bI as WalletRecovery } from '../passkey-errors-BXclgAtu.js';
|
|
4
|
+
export { ba as DeviceKeyMissingError, bt as PasskeyCancelledError, bu as PasskeyUnsupportedError, bv as PasskeyUnsupportedReason } from '../passkey-errors-BXclgAtu.js';
|
|
5
5
|
import '../chains-CmwjZVU7.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../responses-BpnS-Io9.js';
|
|
@@ -94,6 +94,9 @@ interface OwnerStore {
|
|
|
94
94
|
loadAddress(): string | null;
|
|
95
95
|
save(sealed: SealedOwner): void;
|
|
96
96
|
clear(): void;
|
|
97
|
+
loadPending(): SealedOwner | null;
|
|
98
|
+
savePending(sealed: SealedOwner): void;
|
|
99
|
+
clearPending(): void;
|
|
97
100
|
notifyChange(): void;
|
|
98
101
|
onChange(listener: () => void): () => void;
|
|
99
102
|
}
|
|
@@ -181,6 +184,7 @@ interface PasskeyOwner {
|
|
|
181
184
|
}
|
|
182
185
|
declare function createPasskeyOwner(config: PasskeyConfig): PasskeyOwner;
|
|
183
186
|
|
|
187
|
+
declare const GUARDIAN_WALLET_BUSY = "This can't go through right now. Please try again in a moment.";
|
|
184
188
|
interface SelfFundedDeps {
|
|
185
189
|
provider: () => ProviderInterface;
|
|
186
190
|
}
|
|
@@ -192,6 +196,7 @@ interface SponsoredDeps extends SelfFundedDeps {
|
|
|
192
196
|
consent: SelfFundConsent;
|
|
193
197
|
fetchImpl?: FetchLike;
|
|
194
198
|
fallback?: WalletExecutor;
|
|
199
|
+
guardians?: (address: string) => Promise<unknown[]>;
|
|
195
200
|
}
|
|
196
201
|
declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
|
|
197
202
|
|
|
@@ -316,4 +321,22 @@ declare function claimSessionWallet(api: {
|
|
|
316
321
|
account: Pick<AccountApi, "setupWalletKey">;
|
|
317
322
|
}, walletAddress: string, deps: SessionWalletClaimDeps): Promise<void>;
|
|
318
323
|
|
|
319
|
-
|
|
324
|
+
type RecoveryApi = {
|
|
325
|
+
account: Pick<AccountApi, "walletRecovery" | "startWalletRecovery" | "completeWalletRecovery">;
|
|
326
|
+
};
|
|
327
|
+
interface SessionRecoveryDeps {
|
|
328
|
+
createOwnerKey(): Promise<CreatedOwner>;
|
|
329
|
+
loadPending(): SealedOwner | null;
|
|
330
|
+
savePending(sealed: SealedOwner): void;
|
|
331
|
+
clearPending(): void;
|
|
332
|
+
saveOwner(sealed: SealedOwner): void;
|
|
333
|
+
}
|
|
334
|
+
declare function startSessionRecovery(api: RecoveryApi, walletAddress: string, deps: SessionRecoveryDeps): Promise<WalletRecovery>;
|
|
335
|
+
declare function finishSessionRecovery(api: RecoveryApi, walletAddress: string, deps: SessionRecoveryDeps): Promise<void>;
|
|
336
|
+
declare function turnOnRecovery(api: {
|
|
337
|
+
account: Pick<AccountApi, "walletRecovery">;
|
|
338
|
+
}, wallet: {
|
|
339
|
+
setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<unknown>;
|
|
340
|
+
}, sealed: SealedOwner): Promise<void>;
|
|
341
|
+
|
|
342
|
+
export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, GUARDIAN_WALLET_BUSY, type GuardianInfo, type GuardianStatus, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, type MediaWallet, type MediaWalletConfig, type OwnerSigner, type OwnerStore, type PairingPayload, type PasskeyConfig, type PasskeyOwner, type ReceiptProviderLike, type RecoveryAction, type RecoveryKey, type SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionRecoveryDeps, type SessionWallet, type SessionWalletClaimDeps, type SponsoredDeps, type WalletExecutor, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed };
|
package/dist/wallet/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, unsealPrivateKey, waitUntilDeployed } from '../chunk-
|
|
2
|
-
export { DeviceKeyMissingError, PasskeyCancelledError, PasskeyUnsupportedError } from '../chunk-
|
|
1
|
+
export { GUARDIAN_WALLET_BUSY, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed } from '../chunk-BFG3VTJQ.js';
|
|
2
|
+
export { DeviceKeyMissingError, PasskeyCancelledError, PasskeyUnsupportedError } from '../chunk-3SIT2PCD.js';
|
|
3
3
|
import '../chunk-5KY6P434.js';
|
|
4
4
|
import '../chunk-WRBXQPRL.js';
|
|
5
5
|
import '../chunk-PZ5AY32C.js';
|