@dynamic-labs-wallet/core 0.0.45 → 0.0.46
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/index.cjs.js +20 -13
- package/index.esm.js +20 -13
- package/package.json +1 -1
- package/src/api/api.d.ts +4 -2
- package/src/api/api.d.ts.map +1 -1
- package/src/eventStream/utils.d.ts +5 -3
- package/src/eventStream/utils.d.ts.map +1 -1
- package/src/types.d.ts +2 -1
- package/src/types.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -268,6 +268,13 @@ class BaseClient {
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
272
|
+
SuccessEventType["KeygenComplete"] = "keygen_complete";
|
|
273
|
+
SuccessEventType["RoomCreated"] = "room_created";
|
|
274
|
+
SuccessEventType["CeremonyComplete"] = "ceremony_complete";
|
|
275
|
+
return SuccessEventType;
|
|
276
|
+
}({});
|
|
277
|
+
|
|
271
278
|
/**
|
|
272
279
|
* Creates a promise that resolves when a specific event is received from an event stream.
|
|
273
280
|
* Adds a timeout to prevent hanging and races the two promises.
|
|
@@ -276,7 +283,7 @@ class BaseClient {
|
|
|
276
283
|
* @param apiClient The axios instance to use for API calls
|
|
277
284
|
* @param options The configuration options
|
|
278
285
|
* @returns A promise that resolves with the event data or rejects on timeout
|
|
279
|
-
*/ const createEventStreamPromise = ({ apiClient, endpoint, body, successEventType, timeoutMs = 30000, timeoutMessage, onError })=>{
|
|
286
|
+
*/ const createEventStreamPromise = ({ apiClient, endpoint, body, successEventType, timeoutMs = 30000, timeoutMessage, onError, onCeremonyComplete })=>{
|
|
280
287
|
// Create a promise that will resolve when the success event is received
|
|
281
288
|
const eventPromise = new Promise((resolve, reject)=>{
|
|
282
289
|
apiClient.post(endpoint, body, {
|
|
@@ -291,7 +298,8 @@ class BaseClient {
|
|
|
291
298
|
onError,
|
|
292
299
|
reject,
|
|
293
300
|
resolve,
|
|
294
|
-
successEventType
|
|
301
|
+
successEventType,
|
|
302
|
+
onCeremonyComplete
|
|
295
303
|
})).catch(reject);
|
|
296
304
|
});
|
|
297
305
|
// Add a timeout to prevent hanging
|
|
@@ -315,7 +323,7 @@ class BaseClient {
|
|
|
315
323
|
* @param {string} successEventType - The event type string that indicates a successful operation
|
|
316
324
|
* @param {function} [onError] - Optional callback for error handling, allowing custom error processing
|
|
317
325
|
* @returns {function} A response handler function that processes the event stream
|
|
318
|
-
*/ const createSuccessErrorEventStreamHandler = ({ resolve, reject, successEventType, onError })=>{
|
|
326
|
+
*/ const createSuccessErrorEventStreamHandler = ({ resolve, reject, successEventType, onError, onCeremonyComplete })=>{
|
|
319
327
|
return (response)=>{
|
|
320
328
|
const reader = response.data.getReader();
|
|
321
329
|
const decoder = new TextDecoder();
|
|
@@ -332,6 +340,9 @@ class BaseClient {
|
|
|
332
340
|
if (event.type === successEventType) {
|
|
333
341
|
resolve(event.data);
|
|
334
342
|
}
|
|
343
|
+
if (event.type === SuccessEventType.CeremonyComplete) {
|
|
344
|
+
onCeremonyComplete == null ? void 0 : onCeremonyComplete();
|
|
345
|
+
}
|
|
335
346
|
if (event.type === 'error') {
|
|
336
347
|
reject(createErrorFromEventData(event.data));
|
|
337
348
|
onError == null ? void 0 : onError(createErrorFromEventData(event.data));
|
|
@@ -394,14 +405,8 @@ class BaseClient {
|
|
|
394
405
|
return events;
|
|
395
406
|
};
|
|
396
407
|
|
|
397
|
-
var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
398
|
-
SuccessEventType["KeygenComplete"] = "keygen_complete";
|
|
399
|
-
SuccessEventType["RoomCreated"] = "room_created";
|
|
400
|
-
return SuccessEventType;
|
|
401
|
-
}({});
|
|
402
|
-
|
|
403
408
|
class DynamicApiClient extends BaseClient {
|
|
404
|
-
async createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError }) {
|
|
409
|
+
async createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
405
410
|
return createEventStreamPromise({
|
|
406
411
|
apiClient: this.apiClient,
|
|
407
412
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/create`,
|
|
@@ -412,7 +417,8 @@ class DynamicApiClient extends BaseClient {
|
|
|
412
417
|
},
|
|
413
418
|
successEventType: SuccessEventType.KeygenComplete,
|
|
414
419
|
timeoutMessage: 'Wallet creation timed out',
|
|
415
|
-
onError
|
|
420
|
+
onError,
|
|
421
|
+
onCeremonyComplete
|
|
416
422
|
});
|
|
417
423
|
}
|
|
418
424
|
async signMessage({ walletId, message, onError }) {
|
|
@@ -487,7 +493,7 @@ class DynamicApiClient extends BaseClient {
|
|
|
487
493
|
return data.accessToken;
|
|
488
494
|
}
|
|
489
495
|
// TODO: return array instead considering cases where server has multiple parties
|
|
490
|
-
async importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError }) {
|
|
496
|
+
async importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
491
497
|
return createEventStreamPromise({
|
|
492
498
|
apiClient: this.apiClient,
|
|
493
499
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/privateKey/import`,
|
|
@@ -498,7 +504,8 @@ class DynamicApiClient extends BaseClient {
|
|
|
498
504
|
},
|
|
499
505
|
successEventType: SuccessEventType.KeygenComplete,
|
|
500
506
|
timeoutMessage: 'Key import timed out',
|
|
501
|
-
onError
|
|
507
|
+
onError,
|
|
508
|
+
onCeremonyComplete
|
|
502
509
|
});
|
|
503
510
|
}
|
|
504
511
|
// TODO: consider removing the retry logics if we switch to server-sent events
|
package/index.esm.js
CHANGED
|
@@ -266,6 +266,13 @@ class BaseClient {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
270
|
+
SuccessEventType["KeygenComplete"] = "keygen_complete";
|
|
271
|
+
SuccessEventType["RoomCreated"] = "room_created";
|
|
272
|
+
SuccessEventType["CeremonyComplete"] = "ceremony_complete";
|
|
273
|
+
return SuccessEventType;
|
|
274
|
+
}({});
|
|
275
|
+
|
|
269
276
|
/**
|
|
270
277
|
* Creates a promise that resolves when a specific event is received from an event stream.
|
|
271
278
|
* Adds a timeout to prevent hanging and races the two promises.
|
|
@@ -274,7 +281,7 @@ class BaseClient {
|
|
|
274
281
|
* @param apiClient The axios instance to use for API calls
|
|
275
282
|
* @param options The configuration options
|
|
276
283
|
* @returns A promise that resolves with the event data or rejects on timeout
|
|
277
|
-
*/ const createEventStreamPromise = ({ apiClient, endpoint, body, successEventType, timeoutMs = 30000, timeoutMessage, onError })=>{
|
|
284
|
+
*/ const createEventStreamPromise = ({ apiClient, endpoint, body, successEventType, timeoutMs = 30000, timeoutMessage, onError, onCeremonyComplete })=>{
|
|
278
285
|
// Create a promise that will resolve when the success event is received
|
|
279
286
|
const eventPromise = new Promise((resolve, reject)=>{
|
|
280
287
|
apiClient.post(endpoint, body, {
|
|
@@ -289,7 +296,8 @@ class BaseClient {
|
|
|
289
296
|
onError,
|
|
290
297
|
reject,
|
|
291
298
|
resolve,
|
|
292
|
-
successEventType
|
|
299
|
+
successEventType,
|
|
300
|
+
onCeremonyComplete
|
|
293
301
|
})).catch(reject);
|
|
294
302
|
});
|
|
295
303
|
// Add a timeout to prevent hanging
|
|
@@ -313,7 +321,7 @@ class BaseClient {
|
|
|
313
321
|
* @param {string} successEventType - The event type string that indicates a successful operation
|
|
314
322
|
* @param {function} [onError] - Optional callback for error handling, allowing custom error processing
|
|
315
323
|
* @returns {function} A response handler function that processes the event stream
|
|
316
|
-
*/ const createSuccessErrorEventStreamHandler = ({ resolve, reject, successEventType, onError })=>{
|
|
324
|
+
*/ const createSuccessErrorEventStreamHandler = ({ resolve, reject, successEventType, onError, onCeremonyComplete })=>{
|
|
317
325
|
return (response)=>{
|
|
318
326
|
const reader = response.data.getReader();
|
|
319
327
|
const decoder = new TextDecoder();
|
|
@@ -330,6 +338,9 @@ class BaseClient {
|
|
|
330
338
|
if (event.type === successEventType) {
|
|
331
339
|
resolve(event.data);
|
|
332
340
|
}
|
|
341
|
+
if (event.type === SuccessEventType.CeremonyComplete) {
|
|
342
|
+
onCeremonyComplete == null ? void 0 : onCeremonyComplete();
|
|
343
|
+
}
|
|
333
344
|
if (event.type === 'error') {
|
|
334
345
|
reject(createErrorFromEventData(event.data));
|
|
335
346
|
onError == null ? void 0 : onError(createErrorFromEventData(event.data));
|
|
@@ -392,14 +403,8 @@ class BaseClient {
|
|
|
392
403
|
return events;
|
|
393
404
|
};
|
|
394
405
|
|
|
395
|
-
var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
396
|
-
SuccessEventType["KeygenComplete"] = "keygen_complete";
|
|
397
|
-
SuccessEventType["RoomCreated"] = "room_created";
|
|
398
|
-
return SuccessEventType;
|
|
399
|
-
}({});
|
|
400
|
-
|
|
401
406
|
class DynamicApiClient extends BaseClient {
|
|
402
|
-
async createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError }) {
|
|
407
|
+
async createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
403
408
|
return createEventStreamPromise({
|
|
404
409
|
apiClient: this.apiClient,
|
|
405
410
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/create`,
|
|
@@ -410,7 +415,8 @@ class DynamicApiClient extends BaseClient {
|
|
|
410
415
|
},
|
|
411
416
|
successEventType: SuccessEventType.KeygenComplete,
|
|
412
417
|
timeoutMessage: 'Wallet creation timed out',
|
|
413
|
-
onError
|
|
418
|
+
onError,
|
|
419
|
+
onCeremonyComplete
|
|
414
420
|
});
|
|
415
421
|
}
|
|
416
422
|
async signMessage({ walletId, message, onError }) {
|
|
@@ -485,7 +491,7 @@ class DynamicApiClient extends BaseClient {
|
|
|
485
491
|
return data.accessToken;
|
|
486
492
|
}
|
|
487
493
|
// TODO: return array instead considering cases where server has multiple parties
|
|
488
|
-
async importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError }) {
|
|
494
|
+
async importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
489
495
|
return createEventStreamPromise({
|
|
490
496
|
apiClient: this.apiClient,
|
|
491
497
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/privateKey/import`,
|
|
@@ -496,7 +502,8 @@ class DynamicApiClient extends BaseClient {
|
|
|
496
502
|
},
|
|
497
503
|
successEventType: SuccessEventType.KeygenComplete,
|
|
498
504
|
timeoutMessage: 'Key import timed out',
|
|
499
|
-
onError
|
|
505
|
+
onError,
|
|
506
|
+
onCeremonyComplete
|
|
500
507
|
});
|
|
501
508
|
}
|
|
502
509
|
// TODO: consider removing the retry logics if we switch to server-sent events
|
package/package.json
CHANGED
package/src/api/api.d.ts
CHANGED
|
@@ -7,11 +7,12 @@ export declare class DynamicApiClient extends BaseClient {
|
|
|
7
7
|
authToken: string;
|
|
8
8
|
baseApiUrl?: string;
|
|
9
9
|
});
|
|
10
|
-
createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, }: {
|
|
10
|
+
createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
11
11
|
chainName: string;
|
|
12
12
|
clientKeygenIds: string[];
|
|
13
13
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
14
14
|
onError?: (error: Error) => void;
|
|
15
|
+
onCeremonyComplete?: () => void;
|
|
15
16
|
}): Promise<KeygenCompleteResponse>;
|
|
16
17
|
signMessage({ walletId, message, onError, }: {
|
|
17
18
|
walletId: string;
|
|
@@ -52,11 +53,12 @@ export declare class DynamicApiClient extends BaseClient {
|
|
|
52
53
|
getAccessToken({ oauthAccountId }: {
|
|
53
54
|
oauthAccountId: string;
|
|
54
55
|
}): Promise<any>;
|
|
55
|
-
importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, }: {
|
|
56
|
+
importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
56
57
|
chainName: string;
|
|
57
58
|
clientKeygenIds: string[];
|
|
58
59
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
59
60
|
onError?: (error: Error) => void;
|
|
61
|
+
onCeremonyComplete?: () => void;
|
|
60
62
|
}): Promise<KeygenCompleteResponse>;
|
|
61
63
|
getUser(): Promise<any>;
|
|
62
64
|
refreshUser(): Promise<any>;
|
package/src/api/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAoB,KAAK,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAGtH,qBAAa,gBAAiB,SAAQ,UAAU;gBAClC,EACV,aAAa,EACb,SAAS,EACT,UAAU,GACX,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAIK,mBAAmB,CAAC,EACxB,SAAS,EACT,eAAe,EACf,wBAAwB,EACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAoB,KAAK,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAGtH,qBAAa,gBAAiB,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AAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;KAClC;IAaK,4BAA4B,CAAC,EACjC,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,GAClB,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,kBAAkB,EAAE,MAAM,EAAE,CAAC;QAC7B,iBAAiB,EAAE,OAAO,CAAC;KAC5B;IAYK,kCAAkC,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE;IASrE,8BAA8B,CAAC,EACnC,QAAQ,EACR,WAAW,GACZ,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB;IAQK,cAAc,CAAC,EAAE,cAAc,EAAE,EAAE;QAAE,cAAc,EAAE,MAAM,CAAA;KAAE;IAS7D,gBAAgB,CAAC,EACrB,SAAS,EACT,eAAe,EACf,wBAAwB,EACxB,OAAO,EACP,kBAAkB,GACnB,EAAE;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,wBAAwB,EAAE,wBAAwB,CAAC;QACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QACjC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;KACjC;IAiBK,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;IAsBvB,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;CAqBlC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import
|
|
2
|
+
import { SuccessEventType } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a promise that resolves when a specific event is received from an event stream.
|
|
5
5
|
* Adds a timeout to prevent hanging and races the two promises.
|
|
@@ -9,7 +9,7 @@ import type { SuccessEventType } from '../types';
|
|
|
9
9
|
* @param options The configuration options
|
|
10
10
|
* @returns A promise that resolves with the event data or rejects on timeout
|
|
11
11
|
*/
|
|
12
|
-
export declare const createEventStreamPromise: <T>({ apiClient, endpoint, body, successEventType, timeoutMs, timeoutMessage, onError, }: {
|
|
12
|
+
export declare const createEventStreamPromise: <T>({ apiClient, endpoint, body, successEventType, timeoutMs, timeoutMessage, onError, onCeremonyComplete, }: {
|
|
13
13
|
apiClient: AxiosInstance;
|
|
14
14
|
endpoint: string;
|
|
15
15
|
body: Record<string, unknown> | undefined;
|
|
@@ -17,6 +17,7 @@ export declare const createEventStreamPromise: <T>({ apiClient, endpoint, body,
|
|
|
17
17
|
timeoutMs?: number;
|
|
18
18
|
timeoutMessage: string;
|
|
19
19
|
onError?: (error: Error) => void;
|
|
20
|
+
onCeremonyComplete?: () => void;
|
|
20
21
|
}) => Promise<T>;
|
|
21
22
|
/**
|
|
22
23
|
* Creates a handler function for processing server-sent events (SSE) streams.
|
|
@@ -30,11 +31,12 @@ export declare const createEventStreamPromise: <T>({ apiClient, endpoint, body,
|
|
|
30
31
|
* @param {function} [onError] - Optional callback for error handling, allowing custom error processing
|
|
31
32
|
* @returns {function} A response handler function that processes the event stream
|
|
32
33
|
*/
|
|
33
|
-
export declare const createSuccessErrorEventStreamHandler: <T>({ resolve, reject, successEventType, onError, }: {
|
|
34
|
+
export declare const createSuccessErrorEventStreamHandler: <T>({ resolve, reject, successEventType, onError, onCeremonyComplete, }: {
|
|
34
35
|
resolve: (data: T) => void;
|
|
35
36
|
reject: (error: Error) => void;
|
|
36
37
|
successEventType: string;
|
|
37
38
|
onError?: (error: Error) => void;
|
|
39
|
+
onCeremonyComplete?: () => void;
|
|
38
40
|
}) => (response: {
|
|
39
41
|
data: {
|
|
40
42
|
getReader: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/eventStream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C,CAAC;SAC3D,CAAC;KACH,CAAC;CACH,SAoCF,CAAC"}
|
package/src/types.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type ReshareResponse = {
|
|
|
22
22
|
};
|
|
23
23
|
export declare enum SuccessEventType {
|
|
24
24
|
KeygenComplete = "keygen_complete",
|
|
25
|
-
RoomCreated = "room_created"
|
|
25
|
+
RoomCreated = "room_created",
|
|
26
|
+
CeremonyComplete = "ceremony_complete"
|
|
26
27
|
}
|
|
27
28
|
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,kBAAkB,EAAE,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEF,oBAAY,gBAAgB;IAC1B,cAAc,oBAAoB;IAClC,WAAW,iBAAiB;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,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