@medialane/sdk 0.210.0 → 0.212.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-F7W6IWTL.js → chunk-CEPRY3SR.js} +9 -6
- package/dist/chunk-CEPRY3SR.js.map +1 -0
- package/dist/{chunk-W3XFKULQ.cjs → chunk-IE2YYAF5.cjs} +36 -10
- package/dist/chunk-IE2YYAF5.cjs.map +1 -0
- package/dist/{chunk-ZVANOWIB.cjs → chunk-JCA5XMS6.cjs} +9 -5
- package/dist/chunk-JCA5XMS6.cjs.map +1 -0
- package/dist/{chunk-BFG3VTJQ.js → chunk-PVU5AYOO.js} +35 -11
- package/dist/chunk-PVU5AYOO.js.map +1 -0
- package/dist/index.cjs +32 -28
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.cjs +32 -28
- package/dist/server/index.d.cts +6 -1
- package/dist/server/index.d.ts +6 -1
- package/dist/server/index.js +1 -1
- package/dist/starknet/index.cjs +71 -63
- package/dist/starknet/index.d.cts +1 -1
- package/dist/starknet/index.d.ts +1 -1
- package/dist/starknet/index.js +1 -1
- package/dist/wallet/index.cjs +67 -59
- package/dist/wallet/index.d.cts +15 -5
- package/dist/wallet/index.d.ts +15 -5
- package/dist/wallet/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BFG3VTJQ.js.map +0 -1
- package/dist/chunk-F7W6IWTL.js.map +0 -1
- package/dist/chunk-W3XFKULQ.cjs.map +0 -1
- package/dist/chunk-ZVANOWIB.cjs.map +0 -1
package/dist/wallet/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIE2YYAF5_cjs = require('../chunk-IE2YYAF5.cjs');
|
|
4
4
|
var chunk3V3L2R5O_cjs = require('../chunk-3V3L2R5O.cjs');
|
|
5
5
|
require('../chunk-H2NJB3AK.cjs');
|
|
6
6
|
require('../chunk-W76AZ5WC.cjs');
|
|
@@ -10,235 +10,243 @@ require('../chunk-Q7SFCCGT.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "GUARDIAN_WALLET_BUSY", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkIE2YYAF5_cjs.GUARDIAN_WALLET_BUSY; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "InvalidPairingPayloadError", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkIE2YYAF5_cjs.InvalidPairingPayloadError; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "InvalidRecoveryKeyError", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkIE2YYAF5_cjs.InvalidRecoveryKeyError; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "InvalidStarkPrivateKeyError", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkIE2YYAF5_cjs.InvalidStarkPrivateKeyError; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "SponsoredDeployError", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkIE2YYAF5_cjs.SponsoredDeployError; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "accountFor", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkIE2YYAF5_cjs.accountFor; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "buildAddOwnerCall", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkIE2YYAF5_cjs.buildAddOwnerCall; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "buildCancelEscapeCall", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkIE2YYAF5_cjs.buildCancelEscapeCall; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "buildCompleteEscapeOwnerCall", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkIE2YYAF5_cjs.buildCompleteEscapeOwnerCall; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "buildDeployAccountParams", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkIE2YYAF5_cjs.buildDeployAccountParams; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "buildRemoveOwnerByGuidCall", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkIE2YYAF5_cjs.buildRemoveOwnerByGuidCall; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "buildRemoveOwnerCall", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkIE2YYAF5_cjs.buildRemoveOwnerCall; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "buildSetFirstGuardianCall", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkIE2YYAF5_cjs.buildSetFirstGuardianCall; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "buildTriggerEscapeOwnerCall", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkIE2YYAF5_cjs.buildTriggerEscapeOwnerCall; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "canRemoveDevice", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkIE2YYAF5_cjs.canRemoveDevice; }
|
|
66
70
|
});
|
|
67
71
|
Object.defineProperty(exports, "claimSessionWallet", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkIE2YYAF5_cjs.claimSessionWallet; }
|
|
70
74
|
});
|
|
71
75
|
Object.defineProperty(exports, "completeDeployment", {
|
|
72
76
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkIE2YYAF5_cjs.completeDeployment; }
|
|
74
78
|
});
|
|
75
79
|
Object.defineProperty(exports, "computeAccountAddress", {
|
|
76
80
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkIE2YYAF5_cjs.computeAccountAddress; }
|
|
78
82
|
});
|
|
79
83
|
Object.defineProperty(exports, "computeOwnerGuid", {
|
|
80
84
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkIE2YYAF5_cjs.computeOwnerGuid; }
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "createDeploymentCoordinator", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkIE2YYAF5_cjs.createDeploymentCoordinator; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "createMediaWallet", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkIE2YYAF5_cjs.createMediaWallet; }
|
|
90
94
|
});
|
|
91
95
|
Object.defineProperty(exports, "createOwnerStore", {
|
|
92
96
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkIE2YYAF5_cjs.createOwnerStore; }
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(exports, "createPasskeyOwner", {
|
|
96
100
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkIE2YYAF5_cjs.createPasskeyOwner; }
|
|
98
102
|
});
|
|
99
103
|
Object.defineProperty(exports, "createSelfFundConsent", {
|
|
100
104
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkIE2YYAF5_cjs.createSelfFundConsent; }
|
|
102
106
|
});
|
|
103
107
|
Object.defineProperty(exports, "decodeEscapeAndStatus", {
|
|
104
108
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkIE2YYAF5_cjs.decodeEscapeAndStatus; }
|
|
106
110
|
});
|
|
107
111
|
Object.defineProperty(exports, "decodeGuardiansInfo", {
|
|
108
112
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkIE2YYAF5_cjs.decodeGuardiansInfo; }
|
|
110
114
|
});
|
|
111
115
|
Object.defineProperty(exports, "deploySelfFunded", {
|
|
112
116
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkIE2YYAF5_cjs.deploySelfFunded; }
|
|
114
118
|
});
|
|
115
119
|
Object.defineProperty(exports, "deploySponsored", {
|
|
116
120
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkIE2YYAF5_cjs.deploySponsored; }
|
|
118
122
|
});
|
|
119
123
|
Object.defineProperty(exports, "deriveAesKey", {
|
|
120
124
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkIE2YYAF5_cjs.deriveAesKey; }
|
|
122
126
|
});
|
|
123
127
|
Object.defineProperty(exports, "deriveOwnerKeyPair", {
|
|
124
128
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkIE2YYAF5_cjs.deriveOwnerKeyPair; }
|
|
126
130
|
});
|
|
127
131
|
Object.defineProperty(exports, "describeDevices", {
|
|
128
132
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkIE2YYAF5_cjs.describeDevices; }
|
|
130
134
|
});
|
|
131
135
|
Object.defineProperty(exports, "describeGuardianStatus", {
|
|
132
136
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkIE2YYAF5_cjs.describeGuardianStatus; }
|
|
134
138
|
});
|
|
135
139
|
Object.defineProperty(exports, "describeRecoveryAction", {
|
|
136
140
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkIE2YYAF5_cjs.describeRecoveryAction; }
|
|
138
142
|
});
|
|
139
143
|
Object.defineProperty(exports, "encodePairingPayload", {
|
|
140
144
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkIE2YYAF5_cjs.encodePairingPayload; }
|
|
142
146
|
});
|
|
143
147
|
Object.defineProperty(exports, "encodeRecoveryKey", {
|
|
144
148
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkIE2YYAF5_cjs.encodeRecoveryKey; }
|
|
146
150
|
});
|
|
147
151
|
Object.defineProperty(exports, "estimateSelfFundedFee", {
|
|
148
152
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkIE2YYAF5_cjs.estimateSelfFundedFee; }
|
|
150
154
|
});
|
|
151
155
|
Object.defineProperty(exports, "finishSessionRecovery", {
|
|
152
156
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkIE2YYAF5_cjs.finishSessionRecovery; }
|
|
154
158
|
});
|
|
155
159
|
Object.defineProperty(exports, "generateStarkKeyPair", {
|
|
156
160
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkIE2YYAF5_cjs.generateStarkKeyPair; }
|
|
158
162
|
});
|
|
159
163
|
Object.defineProperty(exports, "getEscape", {
|
|
160
164
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkIE2YYAF5_cjs.getEscape; }
|
|
162
166
|
});
|
|
163
167
|
Object.defineProperty(exports, "getEscapeSecurityPeriod", {
|
|
164
168
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkIE2YYAF5_cjs.getEscapeSecurityPeriod; }
|
|
166
170
|
});
|
|
167
171
|
Object.defineProperty(exports, "getGuardians", {
|
|
168
172
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkIE2YYAF5_cjs.getGuardians; }
|
|
170
174
|
});
|
|
171
175
|
Object.defineProperty(exports, "getOwners", {
|
|
172
176
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkIE2YYAF5_cjs.getOwners; }
|
|
174
178
|
});
|
|
175
179
|
Object.defineProperty(exports, "indexedDbDeviceKeys", {
|
|
176
180
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkIE2YYAF5_cjs.indexedDbDeviceKeys; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "isAccountRefusal", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkIE2YYAF5_cjs.isAccountRefusal; }
|
|
178
186
|
});
|
|
179
187
|
Object.defineProperty(exports, "isDeployed", {
|
|
180
188
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkIE2YYAF5_cjs.isDeployed; }
|
|
182
190
|
});
|
|
183
191
|
Object.defineProperty(exports, "isValidStarknetAddress", {
|
|
184
192
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkIE2YYAF5_cjs.isValidStarknetAddress; }
|
|
186
194
|
});
|
|
187
195
|
Object.defineProperty(exports, "normalizeWalletAddress", {
|
|
188
196
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkIE2YYAF5_cjs.normalizeWalletAddress; }
|
|
190
198
|
});
|
|
191
199
|
Object.defineProperty(exports, "ownerConstructorCalldata", {
|
|
192
200
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkIE2YYAF5_cjs.ownerConstructorCalldata; }
|
|
194
202
|
});
|
|
195
203
|
Object.defineProperty(exports, "parseAccountAddress", {
|
|
196
204
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkIE2YYAF5_cjs.parseAccountAddress; }
|
|
198
206
|
});
|
|
199
207
|
Object.defineProperty(exports, "parsePairingPayload", {
|
|
200
208
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkIE2YYAF5_cjs.parsePairingPayload; }
|
|
202
210
|
});
|
|
203
211
|
Object.defineProperty(exports, "parseRecoveryKey", {
|
|
204
212
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkIE2YYAF5_cjs.parseRecoveryKey; }
|
|
206
214
|
});
|
|
207
215
|
Object.defineProperty(exports, "sealPrivateKey", {
|
|
208
216
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkIE2YYAF5_cjs.sealPrivateKey; }
|
|
210
218
|
});
|
|
211
219
|
Object.defineProperty(exports, "selfFundedExecutor", {
|
|
212
220
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkIE2YYAF5_cjs.selfFundedExecutor; }
|
|
214
222
|
});
|
|
215
223
|
Object.defineProperty(exports, "signWithPrivateKey", {
|
|
216
224
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkIE2YYAF5_cjs.signWithPrivateKey; }
|
|
218
226
|
});
|
|
219
227
|
Object.defineProperty(exports, "sponsoredExecutor", {
|
|
220
228
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkIE2YYAF5_cjs.sponsoredExecutor; }
|
|
222
230
|
});
|
|
223
231
|
Object.defineProperty(exports, "starkKeyPairFromPrivateKey", {
|
|
224
232
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkIE2YYAF5_cjs.starkKeyPairFromPrivateKey; }
|
|
226
234
|
});
|
|
227
235
|
Object.defineProperty(exports, "startSessionRecovery", {
|
|
228
236
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkIE2YYAF5_cjs.startSessionRecovery; }
|
|
230
238
|
});
|
|
231
239
|
Object.defineProperty(exports, "turnOnRecovery", {
|
|
232
240
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkIE2YYAF5_cjs.turnOnRecovery; }
|
|
234
242
|
});
|
|
235
243
|
Object.defineProperty(exports, "unsealPrivateKey", {
|
|
236
244
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkIE2YYAF5_cjs.unsealPrivateKey; }
|
|
238
246
|
});
|
|
239
247
|
Object.defineProperty(exports, "waitUntilDeployed", {
|
|
240
248
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkIE2YYAF5_cjs.waitUntilDeployed; }
|
|
242
250
|
});
|
|
243
251
|
Object.defineProperty(exports, "DeviceKeyMissingError", {
|
|
244
252
|
enumerable: true,
|
package/dist/wallet/index.d.cts
CHANGED
|
@@ -204,6 +204,12 @@ type DeploymentStep = "creating-passkey" | "deploying";
|
|
|
204
204
|
interface DeploymentResult {
|
|
205
205
|
sealed: SealedOwner;
|
|
206
206
|
}
|
|
207
|
+
declare class SponsoredDeployError extends Error {
|
|
208
|
+
readonly status: number;
|
|
209
|
+
readonly code?: string | undefined;
|
|
210
|
+
constructor(message: string, status: number, code?: string | undefined);
|
|
211
|
+
}
|
|
212
|
+
declare const isAccountRefusal: (err: unknown) => boolean;
|
|
207
213
|
declare function deploySponsored(input: {
|
|
208
214
|
proxyUrl: string;
|
|
209
215
|
provider: ProviderInterface;
|
|
@@ -211,6 +217,7 @@ declare function deploySponsored(input: {
|
|
|
211
217
|
ownerPubKey: string;
|
|
212
218
|
privateKeyHex: string;
|
|
213
219
|
salt?: string;
|
|
220
|
+
replace?: boolean;
|
|
214
221
|
fetchImpl?: FetchLike;
|
|
215
222
|
}): Promise<ExecutedTransaction>;
|
|
216
223
|
declare function deploySelfFunded(input: {
|
|
@@ -224,6 +231,9 @@ interface DeploymentDeps {
|
|
|
224
231
|
store: {
|
|
225
232
|
load(): SealedOwner | null;
|
|
226
233
|
save(sealed: SealedOwner): void;
|
|
234
|
+
loadPending(): SealedOwner | null;
|
|
235
|
+
savePending(sealed: SealedOwner): void;
|
|
236
|
+
clearPending(): void;
|
|
227
237
|
notifyChange(): void;
|
|
228
238
|
};
|
|
229
239
|
passkey: {
|
|
@@ -242,16 +252,16 @@ interface DeploymentDeps {
|
|
|
242
252
|
isDeployedImpl?: typeof isDeployed;
|
|
243
253
|
}
|
|
244
254
|
declare function completeDeployment(deps: DeploymentDeps, onStep: (step: DeploymentStep) => void, options?: {
|
|
245
|
-
|
|
255
|
+
replace?: boolean;
|
|
246
256
|
}): Promise<DeploymentResult>;
|
|
247
257
|
interface DeploymentCoordinator {
|
|
248
258
|
run(onStep: (step: DeploymentStep) => void, options?: {
|
|
249
|
-
|
|
259
|
+
replace?: boolean;
|
|
250
260
|
}): Promise<DeploymentResult>;
|
|
251
261
|
isDeploying(): boolean;
|
|
252
262
|
}
|
|
253
263
|
declare function createDeploymentCoordinator(execute: (onStep: (step: DeploymentStep) => void, options: {
|
|
254
|
-
|
|
264
|
+
replace?: boolean;
|
|
255
265
|
}) => Promise<DeploymentResult>): DeploymentCoordinator;
|
|
256
266
|
|
|
257
267
|
interface DeviceEntry {
|
|
@@ -301,7 +311,7 @@ interface MediaWallet {
|
|
|
301
311
|
addDevice(sealed: SealedOwner, devicePubkey: string): Promise<string>;
|
|
302
312
|
removeDevice(sealed: SealedOwner, ownerGuid: string): Promise<string>;
|
|
303
313
|
completeDeployment(onStep: (step: DeploymentStep) => void, options?: {
|
|
304
|
-
|
|
314
|
+
replace?: boolean;
|
|
305
315
|
}): Promise<DeploymentResult>;
|
|
306
316
|
isDeploying(): boolean;
|
|
307
317
|
}
|
|
@@ -339,4 +349,4 @@ declare function turnOnRecovery(api: {
|
|
|
339
349
|
setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<unknown>;
|
|
340
350
|
}, sealed: SealedOwner): Promise<void>;
|
|
341
351
|
|
|
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 };
|
|
352
|
+
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, SponsoredDeployError, 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, isAccountRefusal, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed };
|
package/dist/wallet/index.d.ts
CHANGED
|
@@ -204,6 +204,12 @@ type DeploymentStep = "creating-passkey" | "deploying";
|
|
|
204
204
|
interface DeploymentResult {
|
|
205
205
|
sealed: SealedOwner;
|
|
206
206
|
}
|
|
207
|
+
declare class SponsoredDeployError extends Error {
|
|
208
|
+
readonly status: number;
|
|
209
|
+
readonly code?: string | undefined;
|
|
210
|
+
constructor(message: string, status: number, code?: string | undefined);
|
|
211
|
+
}
|
|
212
|
+
declare const isAccountRefusal: (err: unknown) => boolean;
|
|
207
213
|
declare function deploySponsored(input: {
|
|
208
214
|
proxyUrl: string;
|
|
209
215
|
provider: ProviderInterface;
|
|
@@ -211,6 +217,7 @@ declare function deploySponsored(input: {
|
|
|
211
217
|
ownerPubKey: string;
|
|
212
218
|
privateKeyHex: string;
|
|
213
219
|
salt?: string;
|
|
220
|
+
replace?: boolean;
|
|
214
221
|
fetchImpl?: FetchLike;
|
|
215
222
|
}): Promise<ExecutedTransaction>;
|
|
216
223
|
declare function deploySelfFunded(input: {
|
|
@@ -224,6 +231,9 @@ interface DeploymentDeps {
|
|
|
224
231
|
store: {
|
|
225
232
|
load(): SealedOwner | null;
|
|
226
233
|
save(sealed: SealedOwner): void;
|
|
234
|
+
loadPending(): SealedOwner | null;
|
|
235
|
+
savePending(sealed: SealedOwner): void;
|
|
236
|
+
clearPending(): void;
|
|
227
237
|
notifyChange(): void;
|
|
228
238
|
};
|
|
229
239
|
passkey: {
|
|
@@ -242,16 +252,16 @@ interface DeploymentDeps {
|
|
|
242
252
|
isDeployedImpl?: typeof isDeployed;
|
|
243
253
|
}
|
|
244
254
|
declare function completeDeployment(deps: DeploymentDeps, onStep: (step: DeploymentStep) => void, options?: {
|
|
245
|
-
|
|
255
|
+
replace?: boolean;
|
|
246
256
|
}): Promise<DeploymentResult>;
|
|
247
257
|
interface DeploymentCoordinator {
|
|
248
258
|
run(onStep: (step: DeploymentStep) => void, options?: {
|
|
249
|
-
|
|
259
|
+
replace?: boolean;
|
|
250
260
|
}): Promise<DeploymentResult>;
|
|
251
261
|
isDeploying(): boolean;
|
|
252
262
|
}
|
|
253
263
|
declare function createDeploymentCoordinator(execute: (onStep: (step: DeploymentStep) => void, options: {
|
|
254
|
-
|
|
264
|
+
replace?: boolean;
|
|
255
265
|
}) => Promise<DeploymentResult>): DeploymentCoordinator;
|
|
256
266
|
|
|
257
267
|
interface DeviceEntry {
|
|
@@ -301,7 +311,7 @@ interface MediaWallet {
|
|
|
301
311
|
addDevice(sealed: SealedOwner, devicePubkey: string): Promise<string>;
|
|
302
312
|
removeDevice(sealed: SealedOwner, ownerGuid: string): Promise<string>;
|
|
303
313
|
completeDeployment(onStep: (step: DeploymentStep) => void, options?: {
|
|
304
|
-
|
|
314
|
+
replace?: boolean;
|
|
305
315
|
}): Promise<DeploymentResult>;
|
|
306
316
|
isDeploying(): boolean;
|
|
307
317
|
}
|
|
@@ -339,4 +349,4 @@ declare function turnOnRecovery(api: {
|
|
|
339
349
|
setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<unknown>;
|
|
340
350
|
}, sealed: SealedOwner): Promise<void>;
|
|
341
351
|
|
|
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 };
|
|
352
|
+
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, SponsoredDeployError, 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, isAccountRefusal, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed };
|
package/dist/wallet/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
1
|
+
export { GUARDIAN_WALLET_BUSY, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, SponsoredDeployError, 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, isAccountRefusal, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed } from '../chunk-PVU5AYOO.js';
|
|
2
2
|
export { DeviceKeyMissingError, PasskeyCancelledError, PasskeyUnsupportedError } from '../chunk-3SIT2PCD.js';
|
|
3
3
|
import '../chunk-5KY6P434.js';
|
|
4
4
|
import '../chunk-WRBXQPRL.js';
|