@medialane/sdk 0.206.0 → 0.208.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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkZYRSMDMJ_cjs = require('../chunk-ZYRSMDMJ.cjs');
4
- var chunkMCVAZVLN_cjs = require('../chunk-MCVAZVLN.cjs');
3
+ var chunk7KLSPB7T_cjs = require('../chunk-7KLSPB7T.cjs');
4
+ var chunk4QPF6AZV_cjs = require('../chunk-4QPF6AZV.cjs');
5
5
  require('../chunk-H2NJB3AK.cjs');
6
6
  require('../chunk-W76AZ5WC.cjs');
7
7
  require('../chunk-Q7SFCCGT.cjs');
@@ -10,231 +10,243 @@ require('../chunk-Q7SFCCGT.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "InvalidPairingPayloadError", {
12
12
  enumerable: true,
13
- get: function () { return chunkZYRSMDMJ_cjs.InvalidPairingPayloadError; }
13
+ get: function () { return chunk7KLSPB7T_cjs.InvalidPairingPayloadError; }
14
14
  });
15
15
  Object.defineProperty(exports, "InvalidRecoveryKeyError", {
16
16
  enumerable: true,
17
- get: function () { return chunkZYRSMDMJ_cjs.InvalidRecoveryKeyError; }
17
+ get: function () { return chunk7KLSPB7T_cjs.InvalidRecoveryKeyError; }
18
18
  });
19
19
  Object.defineProperty(exports, "InvalidStarkPrivateKeyError", {
20
20
  enumerable: true,
21
- get: function () { return chunkZYRSMDMJ_cjs.InvalidStarkPrivateKeyError; }
21
+ get: function () { return chunk7KLSPB7T_cjs.InvalidStarkPrivateKeyError; }
22
22
  });
23
23
  Object.defineProperty(exports, "accountFor", {
24
24
  enumerable: true,
25
- get: function () { return chunkZYRSMDMJ_cjs.accountFor; }
25
+ get: function () { return chunk7KLSPB7T_cjs.accountFor; }
26
26
  });
27
27
  Object.defineProperty(exports, "buildAddOwnerCall", {
28
28
  enumerable: true,
29
- get: function () { return chunkZYRSMDMJ_cjs.buildAddOwnerCall; }
29
+ get: function () { return chunk7KLSPB7T_cjs.buildAddOwnerCall; }
30
30
  });
31
31
  Object.defineProperty(exports, "buildCancelEscapeCall", {
32
32
  enumerable: true,
33
- get: function () { return chunkZYRSMDMJ_cjs.buildCancelEscapeCall; }
33
+ get: function () { return chunk7KLSPB7T_cjs.buildCancelEscapeCall; }
34
34
  });
35
35
  Object.defineProperty(exports, "buildCompleteEscapeOwnerCall", {
36
36
  enumerable: true,
37
- get: function () { return chunkZYRSMDMJ_cjs.buildCompleteEscapeOwnerCall; }
37
+ get: function () { return chunk7KLSPB7T_cjs.buildCompleteEscapeOwnerCall; }
38
38
  });
39
39
  Object.defineProperty(exports, "buildDeployAccountParams", {
40
40
  enumerable: true,
41
- get: function () { return chunkZYRSMDMJ_cjs.buildDeployAccountParams; }
41
+ get: function () { return chunk7KLSPB7T_cjs.buildDeployAccountParams; }
42
42
  });
43
43
  Object.defineProperty(exports, "buildRemoveOwnerByGuidCall", {
44
44
  enumerable: true,
45
- get: function () { return chunkZYRSMDMJ_cjs.buildRemoveOwnerByGuidCall; }
45
+ get: function () { return chunk7KLSPB7T_cjs.buildRemoveOwnerByGuidCall; }
46
46
  });
47
47
  Object.defineProperty(exports, "buildRemoveOwnerCall", {
48
48
  enumerable: true,
49
- get: function () { return chunkZYRSMDMJ_cjs.buildRemoveOwnerCall; }
49
+ get: function () { return chunk7KLSPB7T_cjs.buildRemoveOwnerCall; }
50
50
  });
51
51
  Object.defineProperty(exports, "buildSetFirstGuardianCall", {
52
52
  enumerable: true,
53
- get: function () { return chunkZYRSMDMJ_cjs.buildSetFirstGuardianCall; }
53
+ get: function () { return chunk7KLSPB7T_cjs.buildSetFirstGuardianCall; }
54
54
  });
55
55
  Object.defineProperty(exports, "buildTriggerEscapeOwnerCall", {
56
56
  enumerable: true,
57
- get: function () { return chunkZYRSMDMJ_cjs.buildTriggerEscapeOwnerCall; }
57
+ get: function () { return chunk7KLSPB7T_cjs.buildTriggerEscapeOwnerCall; }
58
58
  });
59
59
  Object.defineProperty(exports, "canRemoveDevice", {
60
60
  enumerable: true,
61
- get: function () { return chunkZYRSMDMJ_cjs.canRemoveDevice; }
61
+ get: function () { return chunk7KLSPB7T_cjs.canRemoveDevice; }
62
62
  });
63
63
  Object.defineProperty(exports, "claimSessionWallet", {
64
64
  enumerable: true,
65
- get: function () { return chunkZYRSMDMJ_cjs.claimSessionWallet; }
65
+ get: function () { return chunk7KLSPB7T_cjs.claimSessionWallet; }
66
66
  });
67
67
  Object.defineProperty(exports, "completeDeployment", {
68
68
  enumerable: true,
69
- get: function () { return chunkZYRSMDMJ_cjs.completeDeployment; }
69
+ get: function () { return chunk7KLSPB7T_cjs.completeDeployment; }
70
70
  });
71
71
  Object.defineProperty(exports, "computeAccountAddress", {
72
72
  enumerable: true,
73
- get: function () { return chunkZYRSMDMJ_cjs.computeAccountAddress; }
73
+ get: function () { return chunk7KLSPB7T_cjs.computeAccountAddress; }
74
74
  });
75
75
  Object.defineProperty(exports, "computeOwnerGuid", {
76
76
  enumerable: true,
77
- get: function () { return chunkZYRSMDMJ_cjs.computeOwnerGuid; }
77
+ get: function () { return chunk7KLSPB7T_cjs.computeOwnerGuid; }
78
78
  });
79
79
  Object.defineProperty(exports, "createDeploymentCoordinator", {
80
80
  enumerable: true,
81
- get: function () { return chunkZYRSMDMJ_cjs.createDeploymentCoordinator; }
81
+ get: function () { return chunk7KLSPB7T_cjs.createDeploymentCoordinator; }
82
82
  });
83
83
  Object.defineProperty(exports, "createMediaWallet", {
84
84
  enumerable: true,
85
- get: function () { return chunkZYRSMDMJ_cjs.createMediaWallet; }
85
+ get: function () { return chunk7KLSPB7T_cjs.createMediaWallet; }
86
86
  });
87
87
  Object.defineProperty(exports, "createOwnerStore", {
88
88
  enumerable: true,
89
- get: function () { return chunkZYRSMDMJ_cjs.createOwnerStore; }
89
+ get: function () { return chunk7KLSPB7T_cjs.createOwnerStore; }
90
90
  });
91
91
  Object.defineProperty(exports, "createPasskeyOwner", {
92
92
  enumerable: true,
93
- get: function () { return chunkZYRSMDMJ_cjs.createPasskeyOwner; }
93
+ get: function () { return chunk7KLSPB7T_cjs.createPasskeyOwner; }
94
94
  });
95
95
  Object.defineProperty(exports, "createSelfFundConsent", {
96
96
  enumerable: true,
97
- get: function () { return chunkZYRSMDMJ_cjs.createSelfFundConsent; }
97
+ get: function () { return chunk7KLSPB7T_cjs.createSelfFundConsent; }
98
98
  });
99
99
  Object.defineProperty(exports, "decodeEscapeAndStatus", {
100
100
  enumerable: true,
101
- get: function () { return chunkZYRSMDMJ_cjs.decodeEscapeAndStatus; }
101
+ get: function () { return chunk7KLSPB7T_cjs.decodeEscapeAndStatus; }
102
102
  });
103
103
  Object.defineProperty(exports, "decodeGuardiansInfo", {
104
104
  enumerable: true,
105
- get: function () { return chunkZYRSMDMJ_cjs.decodeGuardiansInfo; }
105
+ get: function () { return chunk7KLSPB7T_cjs.decodeGuardiansInfo; }
106
106
  });
107
107
  Object.defineProperty(exports, "deploySelfFunded", {
108
108
  enumerable: true,
109
- get: function () { return chunkZYRSMDMJ_cjs.deploySelfFunded; }
109
+ get: function () { return chunk7KLSPB7T_cjs.deploySelfFunded; }
110
110
  });
111
111
  Object.defineProperty(exports, "deploySponsored", {
112
112
  enumerable: true,
113
- get: function () { return chunkZYRSMDMJ_cjs.deploySponsored; }
113
+ get: function () { return chunk7KLSPB7T_cjs.deploySponsored; }
114
114
  });
115
115
  Object.defineProperty(exports, "deriveAesKey", {
116
116
  enumerable: true,
117
- get: function () { return chunkZYRSMDMJ_cjs.deriveAesKey; }
117
+ get: function () { return chunk7KLSPB7T_cjs.deriveAesKey; }
118
118
  });
119
119
  Object.defineProperty(exports, "deriveOwnerKeyPair", {
120
120
  enumerable: true,
121
- get: function () { return chunkZYRSMDMJ_cjs.deriveOwnerKeyPair; }
121
+ get: function () { return chunk7KLSPB7T_cjs.deriveOwnerKeyPair; }
122
122
  });
123
123
  Object.defineProperty(exports, "describeDevices", {
124
124
  enumerable: true,
125
- get: function () { return chunkZYRSMDMJ_cjs.describeDevices; }
125
+ get: function () { return chunk7KLSPB7T_cjs.describeDevices; }
126
126
  });
127
127
  Object.defineProperty(exports, "describeGuardianStatus", {
128
128
  enumerable: true,
129
- get: function () { return chunkZYRSMDMJ_cjs.describeGuardianStatus; }
129
+ get: function () { return chunk7KLSPB7T_cjs.describeGuardianStatus; }
130
130
  });
131
131
  Object.defineProperty(exports, "describeRecoveryAction", {
132
132
  enumerable: true,
133
- get: function () { return chunkZYRSMDMJ_cjs.describeRecoveryAction; }
133
+ get: function () { return chunk7KLSPB7T_cjs.describeRecoveryAction; }
134
134
  });
135
135
  Object.defineProperty(exports, "encodePairingPayload", {
136
136
  enumerable: true,
137
- get: function () { return chunkZYRSMDMJ_cjs.encodePairingPayload; }
137
+ get: function () { return chunk7KLSPB7T_cjs.encodePairingPayload; }
138
138
  });
139
139
  Object.defineProperty(exports, "encodeRecoveryKey", {
140
140
  enumerable: true,
141
- get: function () { return chunkZYRSMDMJ_cjs.encodeRecoveryKey; }
141
+ get: function () { return chunk7KLSPB7T_cjs.encodeRecoveryKey; }
142
142
  });
143
143
  Object.defineProperty(exports, "estimateSelfFundedFee", {
144
144
  enumerable: true,
145
- get: function () { return chunkZYRSMDMJ_cjs.estimateSelfFundedFee; }
145
+ get: function () { return chunk7KLSPB7T_cjs.estimateSelfFundedFee; }
146
+ });
147
+ Object.defineProperty(exports, "finishSessionRecovery", {
148
+ enumerable: true,
149
+ get: function () { return chunk7KLSPB7T_cjs.finishSessionRecovery; }
146
150
  });
147
151
  Object.defineProperty(exports, "generateStarkKeyPair", {
148
152
  enumerable: true,
149
- get: function () { return chunkZYRSMDMJ_cjs.generateStarkKeyPair; }
153
+ get: function () { return chunk7KLSPB7T_cjs.generateStarkKeyPair; }
150
154
  });
151
155
  Object.defineProperty(exports, "getEscape", {
152
156
  enumerable: true,
153
- get: function () { return chunkZYRSMDMJ_cjs.getEscape; }
157
+ get: function () { return chunk7KLSPB7T_cjs.getEscape; }
154
158
  });
155
159
  Object.defineProperty(exports, "getEscapeSecurityPeriod", {
156
160
  enumerable: true,
157
- get: function () { return chunkZYRSMDMJ_cjs.getEscapeSecurityPeriod; }
161
+ get: function () { return chunk7KLSPB7T_cjs.getEscapeSecurityPeriod; }
158
162
  });
159
163
  Object.defineProperty(exports, "getGuardians", {
160
164
  enumerable: true,
161
- get: function () { return chunkZYRSMDMJ_cjs.getGuardians; }
165
+ get: function () { return chunk7KLSPB7T_cjs.getGuardians; }
162
166
  });
163
167
  Object.defineProperty(exports, "getOwners", {
164
168
  enumerable: true,
165
- get: function () { return chunkZYRSMDMJ_cjs.getOwners; }
169
+ get: function () { return chunk7KLSPB7T_cjs.getOwners; }
166
170
  });
167
171
  Object.defineProperty(exports, "indexedDbDeviceKeys", {
168
172
  enumerable: true,
169
- get: function () { return chunkZYRSMDMJ_cjs.indexedDbDeviceKeys; }
173
+ get: function () { return chunk7KLSPB7T_cjs.indexedDbDeviceKeys; }
170
174
  });
171
175
  Object.defineProperty(exports, "isDeployed", {
172
176
  enumerable: true,
173
- get: function () { return chunkZYRSMDMJ_cjs.isDeployed; }
177
+ get: function () { return chunk7KLSPB7T_cjs.isDeployed; }
174
178
  });
175
179
  Object.defineProperty(exports, "isValidStarknetAddress", {
176
180
  enumerable: true,
177
- get: function () { return chunkZYRSMDMJ_cjs.isValidStarknetAddress; }
181
+ get: function () { return chunk7KLSPB7T_cjs.isValidStarknetAddress; }
178
182
  });
179
183
  Object.defineProperty(exports, "normalizeWalletAddress", {
180
184
  enumerable: true,
181
- get: function () { return chunkZYRSMDMJ_cjs.normalizeWalletAddress; }
185
+ get: function () { return chunk7KLSPB7T_cjs.normalizeWalletAddress; }
182
186
  });
183
187
  Object.defineProperty(exports, "ownerConstructorCalldata", {
184
188
  enumerable: true,
185
- get: function () { return chunkZYRSMDMJ_cjs.ownerConstructorCalldata; }
189
+ get: function () { return chunk7KLSPB7T_cjs.ownerConstructorCalldata; }
186
190
  });
187
191
  Object.defineProperty(exports, "parseAccountAddress", {
188
192
  enumerable: true,
189
- get: function () { return chunkZYRSMDMJ_cjs.parseAccountAddress; }
193
+ get: function () { return chunk7KLSPB7T_cjs.parseAccountAddress; }
190
194
  });
191
195
  Object.defineProperty(exports, "parsePairingPayload", {
192
196
  enumerable: true,
193
- get: function () { return chunkZYRSMDMJ_cjs.parsePairingPayload; }
197
+ get: function () { return chunk7KLSPB7T_cjs.parsePairingPayload; }
194
198
  });
195
199
  Object.defineProperty(exports, "parseRecoveryKey", {
196
200
  enumerable: true,
197
- get: function () { return chunkZYRSMDMJ_cjs.parseRecoveryKey; }
201
+ get: function () { return chunk7KLSPB7T_cjs.parseRecoveryKey; }
198
202
  });
199
203
  Object.defineProperty(exports, "sealPrivateKey", {
200
204
  enumerable: true,
201
- get: function () { return chunkZYRSMDMJ_cjs.sealPrivateKey; }
205
+ get: function () { return chunk7KLSPB7T_cjs.sealPrivateKey; }
202
206
  });
203
207
  Object.defineProperty(exports, "selfFundedExecutor", {
204
208
  enumerable: true,
205
- get: function () { return chunkZYRSMDMJ_cjs.selfFundedExecutor; }
209
+ get: function () { return chunk7KLSPB7T_cjs.selfFundedExecutor; }
206
210
  });
207
211
  Object.defineProperty(exports, "signWithPrivateKey", {
208
212
  enumerable: true,
209
- get: function () { return chunkZYRSMDMJ_cjs.signWithPrivateKey; }
213
+ get: function () { return chunk7KLSPB7T_cjs.signWithPrivateKey; }
210
214
  });
211
215
  Object.defineProperty(exports, "sponsoredExecutor", {
212
216
  enumerable: true,
213
- get: function () { return chunkZYRSMDMJ_cjs.sponsoredExecutor; }
217
+ get: function () { return chunk7KLSPB7T_cjs.sponsoredExecutor; }
214
218
  });
215
219
  Object.defineProperty(exports, "starkKeyPairFromPrivateKey", {
216
220
  enumerable: true,
217
- get: function () { return chunkZYRSMDMJ_cjs.starkKeyPairFromPrivateKey; }
221
+ get: function () { return chunk7KLSPB7T_cjs.starkKeyPairFromPrivateKey; }
222
+ });
223
+ Object.defineProperty(exports, "startSessionRecovery", {
224
+ enumerable: true,
225
+ get: function () { return chunk7KLSPB7T_cjs.startSessionRecovery; }
226
+ });
227
+ Object.defineProperty(exports, "turnOnRecovery", {
228
+ enumerable: true,
229
+ get: function () { return chunk7KLSPB7T_cjs.turnOnRecovery; }
218
230
  });
219
231
  Object.defineProperty(exports, "unsealPrivateKey", {
220
232
  enumerable: true,
221
- get: function () { return chunkZYRSMDMJ_cjs.unsealPrivateKey; }
233
+ get: function () { return chunk7KLSPB7T_cjs.unsealPrivateKey; }
222
234
  });
223
235
  Object.defineProperty(exports, "waitUntilDeployed", {
224
236
  enumerable: true,
225
- get: function () { return chunkZYRSMDMJ_cjs.waitUntilDeployed; }
237
+ get: function () { return chunk7KLSPB7T_cjs.waitUntilDeployed; }
226
238
  });
227
239
  Object.defineProperty(exports, "DeviceKeyMissingError", {
228
240
  enumerable: true,
229
- get: function () { return chunkMCVAZVLN_cjs.DeviceKeyMissingError; }
241
+ get: function () { return chunk4QPF6AZV_cjs.DeviceKeyMissingError; }
230
242
  });
231
243
  Object.defineProperty(exports, "PasskeyCancelledError", {
232
244
  enumerable: true,
233
- get: function () { return chunkMCVAZVLN_cjs.PasskeyCancelledError; }
245
+ get: function () { return chunk4QPF6AZV_cjs.PasskeyCancelledError; }
234
246
  });
235
247
  Object.defineProperty(exports, "PasskeyUnsupportedError", {
236
248
  enumerable: true,
237
- get: function () { return chunkMCVAZVLN_cjs.PasskeyUnsupportedError; }
249
+ get: function () { return chunk4QPF6AZV_cjs.PasskeyUnsupportedError; }
238
250
  });
239
251
  //# sourceMappingURL=index.cjs.map
240
252
  //# sourceMappingURL=index.cjs.map
@@ -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 { bb as CreateWalletManageIntentParams, c as AccountApi } from '../passkey-errors-BjqEFmu_.cjs';
4
- export { bc as DeviceKeyMissingError, bv as PasskeyCancelledError, bw as PasskeyUnsupportedError, bx as PasskeyUnsupportedReason } from '../passkey-errors-BjqEFmu_.cjs';
3
+ import { bb as CreateWalletManageIntentParams, c as AccountApi, bK as WalletRecovery } from '../passkey-errors-BMpbMEGO.cjs';
4
+ export { bc as DeviceKeyMissingError, bv as PasskeyCancelledError, bw as PasskeyUnsupportedError, bx as PasskeyUnsupportedReason } from '../passkey-errors-BMpbMEGO.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
  }
@@ -316,4 +319,22 @@ declare function claimSessionWallet(api: {
316
319
  account: Pick<AccountApi, "setupWalletKey">;
317
320
  }, walletAddress: string, deps: SessionWalletClaimDeps): Promise<void>;
318
321
 
319
- export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, 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 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, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, unsealPrivateKey, waitUntilDeployed };
322
+ type RecoveryApi = {
323
+ account: Pick<AccountApi, "walletRecovery" | "startWalletRecovery" | "completeWalletRecovery">;
324
+ };
325
+ interface SessionRecoveryDeps {
326
+ createOwnerKey(): Promise<CreatedOwner>;
327
+ loadPending(): SealedOwner | null;
328
+ savePending(sealed: SealedOwner): void;
329
+ clearPending(): void;
330
+ saveOwner(sealed: SealedOwner): void;
331
+ }
332
+ declare function startSessionRecovery(api: RecoveryApi, walletAddress: string, deps: SessionRecoveryDeps): Promise<WalletRecovery>;
333
+ declare function finishSessionRecovery(api: RecoveryApi, walletAddress: string, deps: SessionRecoveryDeps): Promise<void>;
334
+ declare function turnOnRecovery(api: {
335
+ account: Pick<AccountApi, "walletRecovery">;
336
+ }, wallet: {
337
+ setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<unknown>;
338
+ }, sealed: SealedOwner): Promise<void>;
339
+
340
+ export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, 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 };
@@ -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 { bb as CreateWalletManageIntentParams, c as AccountApi } from '../passkey-errors-DMv2Vn1P.js';
4
- export { bc as DeviceKeyMissingError, bv as PasskeyCancelledError, bw as PasskeyUnsupportedError, bx as PasskeyUnsupportedReason } from '../passkey-errors-DMv2Vn1P.js';
3
+ import { bb as CreateWalletManageIntentParams, c as AccountApi, bK as WalletRecovery } from '../passkey-errors-BIb35H7w.js';
4
+ export { bc as DeviceKeyMissingError, bv as PasskeyCancelledError, bw as PasskeyUnsupportedError, bx as PasskeyUnsupportedReason } from '../passkey-errors-BIb35H7w.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
  }
@@ -316,4 +319,22 @@ declare function claimSessionWallet(api: {
316
319
  account: Pick<AccountApi, "setupWalletKey">;
317
320
  }, walletAddress: string, deps: SessionWalletClaimDeps): Promise<void>;
318
321
 
319
- export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, 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 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, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, unsealPrivateKey, waitUntilDeployed };
322
+ type RecoveryApi = {
323
+ account: Pick<AccountApi, "walletRecovery" | "startWalletRecovery" | "completeWalletRecovery">;
324
+ };
325
+ interface SessionRecoveryDeps {
326
+ createOwnerKey(): Promise<CreatedOwner>;
327
+ loadPending(): SealedOwner | null;
328
+ savePending(sealed: SealedOwner): void;
329
+ clearPending(): void;
330
+ saveOwner(sealed: SealedOwner): void;
331
+ }
332
+ declare function startSessionRecovery(api: RecoveryApi, walletAddress: string, deps: SessionRecoveryDeps): Promise<WalletRecovery>;
333
+ declare function finishSessionRecovery(api: RecoveryApi, walletAddress: string, deps: SessionRecoveryDeps): Promise<void>;
334
+ declare function turnOnRecovery(api: {
335
+ account: Pick<AccountApi, "walletRecovery">;
336
+ }, wallet: {
337
+ setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<unknown>;
338
+ }, sealed: SealedOwner): Promise<void>;
339
+
340
+ export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, 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 };
@@ -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-EPU52YSA.js';
2
- export { DeviceKeyMissingError, PasskeyCancelledError, PasskeyUnsupportedError } from '../chunk-GENBWVGK.js';
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, 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-MK7OLAZD.js';
2
+ export { DeviceKeyMissingError, PasskeyCancelledError, PasskeyUnsupportedError } from '../chunk-7QPV7UQU.js';
3
3
  import '../chunk-5KY6P434.js';
4
4
  import '../chunk-WRBXQPRL.js';
5
5
  import '../chunk-PZ5AY32C.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medialane/sdk",
3
- "version": "0.206.0",
3
+ "version": "0.208.0",
4
4
  "description": "Framework-agnostic TypeScript SDK for Medialane.io — the IP marketplace on Starknet",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",