@getpara/core-sdk 3.5.1 → 3.7.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/cjs/ParaCore.js +11 -4
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/cryptography/utils.js +2 -2
- package/dist/cjs/external/localDevUrlOverrides.js +50 -0
- package/dist/cjs/external/userManagementClient.js +11 -21
- package/dist/cjs/index.js +15 -15
- package/dist/cjs/services/PollingService.js +11 -0
- package/dist/cjs/services/PortalUrlService.js +1 -1
- package/dist/cjs/services/WalletService.js +19 -4
- package/dist/cjs/state/actors/authenticateWithEmailOrPhone.js +1 -1
- package/dist/cjs/state/actors/authenticateWithExternalWallet.js +1 -1
- package/dist/cjs/state/actors/authenticateWithFarcaster.js +1 -1
- package/dist/cjs/state/actors/authenticateWithFarcasterLegacy.js +1 -1
- package/dist/cjs/state/actors/authenticateWithTelegram.js +1 -1
- package/dist/cjs/state/actors/authenticateWithTelegramLegacy.js +1 -1
- package/dist/cjs/state/actors/checkUserState.js +1 -1
- package/dist/cjs/state/actors/claimWallets.js +1 -1
- package/dist/cjs/state/actors/connectExternalConnectors.js +1 -1
- package/dist/cjs/state/actors/connectExternalWallet.js +1 -1
- package/dist/cjs/state/actors/createGuestWallets.js +1 -1
- package/dist/cjs/state/actors/createWallets.js +1 -1
- package/dist/cjs/state/actors/processAuthentication.js +1 -1
- package/dist/cjs/state/actors/setupAfterLogin.js +1 -1
- package/dist/cjs/state/actors/setupPara.js +1 -1
- package/dist/cjs/state/actors/signExternalWalletVerification.js +1 -1
- package/dist/cjs/state/actors/switchExternalWallet.js +1 -1
- package/dist/cjs/state/actors/verifyExternalWallet.js +1 -1
- package/dist/cjs/state/actors/verifyNewAccount.js +1 -1
- package/dist/cjs/state/actors/waitForExternalWalletProviders.js +1 -1
- package/dist/cjs/state/machines/authStateMachine.js +14 -7
- package/dist/cjs/state/machines/coreStateMachine.js +1 -1
- package/dist/cjs/state/machines/walletStateMachine.js +1 -1
- package/dist/cjs/telemetry/tracer.js +1 -1
- package/dist/cjs/utils/url.js +5 -2
- package/dist/esm/ParaCore.js +11 -4
- package/dist/esm/constants.js +1 -1
- package/dist/esm/cryptography/utils.js +2 -2
- package/dist/esm/external/localDevUrlOverrides.js +27 -0
- package/dist/esm/external/userManagementClient.js +11 -21
- package/dist/esm/index.js +2 -2
- package/dist/esm/services/PollingService.js +11 -0
- package/dist/esm/services/PortalUrlService.js +1 -1
- package/dist/esm/services/WalletService.js +19 -4
- package/dist/esm/state/actors/authenticateWithEmailOrPhone.js +1 -1
- package/dist/esm/state/actors/authenticateWithExternalWallet.js +1 -1
- package/dist/esm/state/actors/authenticateWithFarcaster.js +1 -1
- package/dist/esm/state/actors/authenticateWithFarcasterLegacy.js +1 -1
- package/dist/esm/state/actors/authenticateWithTelegram.js +1 -1
- package/dist/esm/state/actors/authenticateWithTelegramLegacy.js +1 -1
- package/dist/esm/state/actors/checkUserState.js +1 -1
- package/dist/esm/state/actors/claimWallets.js +1 -1
- package/dist/esm/state/actors/connectExternalConnectors.js +1 -1
- package/dist/esm/state/actors/connectExternalWallet.js +1 -1
- package/dist/esm/state/actors/createGuestWallets.js +1 -1
- package/dist/esm/state/actors/createWallets.js +1 -1
- package/dist/esm/state/actors/processAuthentication.js +1 -1
- package/dist/esm/state/actors/setupAfterLogin.js +1 -1
- package/dist/esm/state/actors/setupPara.js +1 -1
- package/dist/esm/state/actors/signExternalWalletVerification.js +1 -1
- package/dist/esm/state/actors/switchExternalWallet.js +1 -1
- package/dist/esm/state/actors/verifyExternalWallet.js +1 -1
- package/dist/esm/state/actors/verifyNewAccount.js +1 -1
- package/dist/esm/state/actors/waitForExternalWalletProviders.js +1 -1
- package/dist/esm/state/machines/authStateMachine.js +14 -7
- package/dist/esm/state/machines/coreStateMachine.js +1 -1
- package/dist/esm/state/machines/walletStateMachine.js +1 -1
- package/dist/esm/telemetry/tracer.js +1 -1
- package/dist/esm/utils/url.js +4 -2
- package/dist/types/external/localDevUrlOverrides.d.ts +4 -0
- package/dist/types/external/userManagementClient.d.ts +5 -4
- package/dist/types/services/types/PollingServiceTypes.d.ts +9 -0
- package/dist/types/state/machines/authStateMachine.d.ts +2 -0
- package/dist/types/state/machines/coreStateMachine.d.ts +12 -0
- package/dist/types/types/config.d.ts +2 -0
- package/dist/types/utils/url.d.ts +1 -0
- package/package.json +14 -14
|
@@ -54,7 +54,7 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
54
54
|
connectExternalWallet: createConnectExternalWalletActor(paraCoreInterface.externalWalletService),
|
|
55
55
|
signExternalWalletVerification: createSignExternalWalletVerificationActor(paraCoreInterface.externalWalletService),
|
|
56
56
|
switchExternalWallet: createSwitchExternalWalletActor(paraCoreInterface.externalWalletService),
|
|
57
|
-
logoutActor: fromPromise(() => __async(
|
|
57
|
+
logoutActor: fromPromise(() => __async(null, null, function* () {
|
|
58
58
|
yield paraCoreInterface.logout({ skipStateReset: true });
|
|
59
59
|
}))
|
|
60
60
|
},
|
|
@@ -277,7 +277,7 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
277
277
|
let oauthSessionLookupId;
|
|
278
278
|
let oauthAuthState = null;
|
|
279
279
|
return {
|
|
280
|
-
init: () => __async(
|
|
280
|
+
init: () => __async(null, null, function* () {
|
|
281
281
|
try {
|
|
282
282
|
const { sessionLookupId } = yield paraCoreInterface.pollingService.initOAuthPolling({
|
|
283
283
|
onOAuthPopup,
|
|
@@ -292,7 +292,7 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
292
292
|
throw new Error(`OAuth initialization failed: ${extractErrorMessage(error, "Unknown error")}`);
|
|
293
293
|
}
|
|
294
294
|
}),
|
|
295
|
-
checkCondition: () => __async(
|
|
295
|
+
checkCondition: () => __async(null, null, function* () {
|
|
296
296
|
try {
|
|
297
297
|
const result = yield paraCoreInterface.pollingService.waitForOAuth({
|
|
298
298
|
onSuccess: (serverAuthState) => {
|
|
@@ -320,6 +320,11 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
320
320
|
return (_b = (_a = event.data).onCancel) == null ? void 0 : _b.call(_a);
|
|
321
321
|
},
|
|
322
322
|
isCanceled: event.data.isCanceled || (() => false),
|
|
323
|
+
// verify-oauth buffers success server-side, so closing the in-app browser
|
|
324
|
+
// right after authenticating (Apple's Face ID confirm is near-instant) can
|
|
325
|
+
// land as "cancel" for a login that already succeeded — re-check once
|
|
326
|
+
// before giving up (ENG-6993).
|
|
327
|
+
graceCheckOnCancel: true,
|
|
323
328
|
id: "authenticatingOauth"
|
|
324
329
|
};
|
|
325
330
|
}
|
|
@@ -605,7 +610,7 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
605
610
|
var _a;
|
|
606
611
|
let farcasterAuthState = null;
|
|
607
612
|
return {
|
|
608
|
-
checkCondition: () => __async(
|
|
613
|
+
checkCondition: () => __async(null, null, function* () {
|
|
609
614
|
try {
|
|
610
615
|
const result = yield paraCoreInterface.pollingService.waitForFarcasterAuth({
|
|
611
616
|
onSuccess: (serverAuthState) => {
|
|
@@ -877,7 +882,7 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
877
882
|
var _a;
|
|
878
883
|
let resolvedAuthState = null;
|
|
879
884
|
return {
|
|
880
|
-
checkCondition: () => __async(
|
|
885
|
+
checkCondition: () => __async(null, null, function* () {
|
|
881
886
|
try {
|
|
882
887
|
const result = yield paraCoreInterface.pollingService.waitForOAuth({
|
|
883
888
|
onSuccess: (serverAuthState) => {
|
|
@@ -898,6 +903,8 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
898
903
|
return (_b = (_a2 = context.pollingCallbacks) == null ? void 0 : _a2.onCancel) == null ? void 0 : _b.call(_a2);
|
|
899
904
|
},
|
|
900
905
|
isCanceled: ((_a = context.pollingCallbacks) == null ? void 0 : _a.isCanceled) || (() => false),
|
|
906
|
+
// Same cancel-races-completion window as authenticating_oauth (ENG-6993).
|
|
907
|
+
graceCheckOnCancel: true,
|
|
901
908
|
id: "resolving2fa"
|
|
902
909
|
};
|
|
903
910
|
},
|
|
@@ -1069,7 +1076,7 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
1069
1076
|
input: ({ context }) => {
|
|
1070
1077
|
var _a;
|
|
1071
1078
|
return {
|
|
1072
|
-
init: () => __async(
|
|
1079
|
+
init: () => __async(null, null, function* () {
|
|
1073
1080
|
try {
|
|
1074
1081
|
yield paraCoreInterface.sessionManagementService.touchSession();
|
|
1075
1082
|
if (!paraCoreInterface.authService.isExternalWalletAuth) {
|
|
@@ -1080,7 +1087,7 @@ function createAuthStateMachine(paraCoreInterface) {
|
|
|
1080
1087
|
throw new Error(`Session touch failed: ${extractErrorMessage(error, "Unknown error")}`);
|
|
1081
1088
|
}
|
|
1082
1089
|
}),
|
|
1083
|
-
checkCondition: () => __async(
|
|
1090
|
+
checkCondition: () => __async(null, null, function* () {
|
|
1084
1091
|
try {
|
|
1085
1092
|
return yield paraCoreInterface.pollingService.waitForSession();
|
|
1086
1093
|
} catch (error) {
|
|
@@ -18,7 +18,7 @@ function createCoreStateMachine(paraCoreInterface) {
|
|
|
18
18
|
waitForExternalWalletProviders: createWaitForExternalWalletProvidersActor(paraCoreInterface),
|
|
19
19
|
authMachine: createAuthStateMachine(paraCoreInterface),
|
|
20
20
|
walletMachine: createWalletStateMachine(paraCoreInterface),
|
|
21
|
-
logoutPara: fromPromise(() => __async(
|
|
21
|
+
logoutPara: fromPromise(() => __async(null, null, function* () {
|
|
22
22
|
yield paraCoreInterface.logout();
|
|
23
23
|
}))
|
|
24
24
|
},
|
|
@@ -283,7 +283,7 @@ function createWalletStateMachine(paraCoreInterface) {
|
|
|
283
283
|
input: ({ context, self }) => {
|
|
284
284
|
var _a;
|
|
285
285
|
return {
|
|
286
|
-
checkCondition: () => __async(
|
|
286
|
+
checkCondition: () => __async(null, null, function* () {
|
|
287
287
|
try {
|
|
288
288
|
return yield paraCoreInterface.pollingService.waitForWallets({ parent: self })();
|
|
289
289
|
} catch (error) {
|
|
@@ -27,7 +27,7 @@ function wrapWithSpan(name, fn, attributes) {
|
|
|
27
27
|
const parentCtx = activeSpan ? active : (_b = (_a = getModalSessionContext()) != null ? _a : defaultParentContext) != null ? _b : active;
|
|
28
28
|
return otelContext.with(
|
|
29
29
|
parentCtx,
|
|
30
|
-
() => getTracer().startActiveSpan(name, { attributes }, (span) => __async(
|
|
30
|
+
() => getTracer().startActiveSpan(name, { attributes }, (span) => __async(null, null, function* () {
|
|
31
31
|
try {
|
|
32
32
|
const result = yield fn(span);
|
|
33
33
|
return result;
|
package/dist/esm/utils/url.js
CHANGED
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
import { upload } from "../transmission/transmissionUtils.js";
|
|
5
5
|
import { Environment } from "../types/index.js";
|
|
6
6
|
function getGlobalPortalUrlOverride() {
|
|
7
|
-
|
|
7
|
+
var _a;
|
|
8
|
+
const override = (_a = typeof globalThis !== "undefined" ? globalThis.__PARA_PORTAL_URL_OVERRIDE__ : void 0) != null ? _a : typeof process !== "undefined" ? process.env.PARA_PORTAL_URL : void 0;
|
|
8
9
|
return typeof override === "string" && override ? override : void 0;
|
|
9
10
|
}
|
|
10
11
|
function getPortalDomain(env, isE2E, isLegacy) {
|
|
@@ -27,7 +28,7 @@ function getPortalDomain(env, isE2E, isLegacy) {
|
|
|
27
28
|
}
|
|
28
29
|
function getPortalBaseURL({ env, isE2E, portalUrlOverride }, useLocalIp, isForWasm, isLegacy) {
|
|
29
30
|
const resolvedPortalUrlOverride = portalUrlOverride != null ? portalUrlOverride : getGlobalPortalUrlOverride();
|
|
30
|
-
if (resolvedPortalUrlOverride
|
|
31
|
+
if (resolvedPortalUrlOverride) {
|
|
31
32
|
return new URL(resolvedPortalUrlOverride).origin;
|
|
32
33
|
}
|
|
33
34
|
if (isE2E) {
|
|
@@ -91,6 +92,7 @@ function shortenUrl(ctx, url, isLegacy) {
|
|
|
91
92
|
}
|
|
92
93
|
export {
|
|
93
94
|
constructUrl,
|
|
95
|
+
getGlobalPortalUrlOverride,
|
|
94
96
|
getParaConnectBaseUrl,
|
|
95
97
|
getParaConnectDomain,
|
|
96
98
|
getPortalBaseURL,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
type DevUrlScheme = 'http' | 'ws';
|
|
2
|
+
export declare function getDevApiBaseUrlOverride(apiBaseUrlOverride?: string, scheme?: DevUrlScheme): string | undefined;
|
|
3
|
+
export declare function getDevMPCNetworkUrlOverride(mpcNetworkUrlOverride?: string, useWebsocket?: boolean): string | undefined;
|
|
4
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Client from '@getpara/user-management-client';
|
|
2
2
|
import { Environment } from '../types/index.js';
|
|
3
|
-
export declare function getBaseOAuthUrl(env: Environment): string;
|
|
4
|
-
export declare function getBaseUrl(env: Environment, scheme?: 'http' | 'ws'): string;
|
|
5
|
-
export declare function getBaseMPCNetworkUrl(env: Environment, useWebsocket?: boolean): string;
|
|
3
|
+
export declare function getBaseOAuthUrl(env: Environment, apiBaseUrlOverride?: string): string;
|
|
4
|
+
export declare function getBaseUrl(env: Environment, scheme?: 'http' | 'ws', apiBaseUrlOverride?: string): string;
|
|
5
|
+
export declare function getBaseMPCNetworkUrl(env: Environment, useWebsocket?: boolean, mpcNetworkUrlOverride?: string): string;
|
|
6
6
|
/**
|
|
7
7
|
* Maps a raw host-platform / sdkType value onto the normalized `client_type`
|
|
8
8
|
* dimension used by backend analytics + Sentry. Unknown values (e.g. BRIDGE
|
|
@@ -11,7 +11,7 @@ export declare function getBaseMPCNetworkUrl(env: Environment, useWebsocket?: bo
|
|
|
11
11
|
* outside this core SDK path.
|
|
12
12
|
*/
|
|
13
13
|
export declare function normalizePlatform(platform?: string): string | undefined;
|
|
14
|
-
export declare function initClient({ env, version, apiKey, partnerId, platform, useFetchAdapter, retrieveSessionCookie, persistSessionCookie, staticTraceContext, httpAgent, httpsAgent, }: {
|
|
14
|
+
export declare function initClient({ env, version, apiKey, partnerId, platform, useFetchAdapter, retrieveSessionCookie, persistSessionCookie, staticTraceContext, httpAgent, httpsAgent, apiBaseUrlOverride, }: {
|
|
15
15
|
env: Environment;
|
|
16
16
|
version?: string;
|
|
17
17
|
apiKey: string;
|
|
@@ -24,4 +24,5 @@ export declare function initClient({ env, version, apiKey, partnerId, platform,
|
|
|
24
24
|
staticTraceContext?: Record<string, string>;
|
|
25
25
|
httpAgent?: unknown;
|
|
26
26
|
httpsAgent?: unknown;
|
|
27
|
+
apiBaseUrlOverride?: string;
|
|
27
28
|
}): Client;
|
|
@@ -34,6 +34,15 @@ export interface PollingConfig<T> extends PollingCallbacks {
|
|
|
34
34
|
intervalMs?: number;
|
|
35
35
|
timeoutMs?: number;
|
|
36
36
|
id?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Run one final `checkCondition` when cancellation is detected, and resolve COMPLETE
|
|
39
|
+
* if it reports finished. For polls whose condition is durable server-side (e.g.
|
|
40
|
+
* verify-oauth), cancellation can race an already-successful completion — the user
|
|
41
|
+
* closes the in-app browser after authenticating but before the next poll tick —
|
|
42
|
+
* and without this check the SDK reports "canceled" for a login that succeeded
|
|
43
|
+
* (ENG-6993).
|
|
44
|
+
*/
|
|
45
|
+
graceCheckOnCancel?: boolean;
|
|
37
46
|
}
|
|
38
47
|
export type PollingResult<T> = {
|
|
39
48
|
type: 'COMPLETE';
|
|
@@ -850,6 +850,7 @@ export declare function createAuthStateMachine(paraCoreInterface: StateMachineIn
|
|
|
850
850
|
onPoll: () => void;
|
|
851
851
|
onCancel: () => void;
|
|
852
852
|
isCanceled: () => boolean;
|
|
853
|
+
graceCheckOnCancel: true;
|
|
853
854
|
id: string;
|
|
854
855
|
};
|
|
855
856
|
readonly onError: {
|
|
@@ -2167,6 +2168,7 @@ export declare function createAuthStateMachine(paraCoreInterface: StateMachineIn
|
|
|
2167
2168
|
onPoll: () => void;
|
|
2168
2169
|
onCancel: () => void;
|
|
2169
2170
|
isCanceled: () => boolean;
|
|
2171
|
+
graceCheckOnCancel: true;
|
|
2170
2172
|
id: string;
|
|
2171
2173
|
};
|
|
2172
2174
|
readonly onError: {
|
|
@@ -850,6 +850,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
850
850
|
onPoll: () => void;
|
|
851
851
|
onCancel: () => void;
|
|
852
852
|
isCanceled: () => boolean;
|
|
853
|
+
graceCheckOnCancel: true;
|
|
853
854
|
id: string;
|
|
854
855
|
};
|
|
855
856
|
readonly onError: {
|
|
@@ -2167,6 +2168,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
2167
2168
|
onPoll: () => void;
|
|
2168
2169
|
onCancel: () => void;
|
|
2169
2170
|
isCanceled: () => boolean;
|
|
2171
|
+
graceCheckOnCancel: true;
|
|
2170
2172
|
id: string;
|
|
2171
2173
|
};
|
|
2172
2174
|
readonly onError: {
|
|
@@ -4672,6 +4674,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
4672
4674
|
onPoll: () => void;
|
|
4673
4675
|
onCancel: () => void;
|
|
4674
4676
|
isCanceled: () => boolean;
|
|
4677
|
+
graceCheckOnCancel: true;
|
|
4675
4678
|
id: string;
|
|
4676
4679
|
};
|
|
4677
4680
|
readonly onError: {
|
|
@@ -5989,6 +5992,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
5989
5992
|
onPoll: () => void;
|
|
5990
5993
|
onCancel: () => void;
|
|
5991
5994
|
isCanceled: () => boolean;
|
|
5995
|
+
graceCheckOnCancel: true;
|
|
5992
5996
|
id: string;
|
|
5993
5997
|
};
|
|
5994
5998
|
readonly onError: {
|
|
@@ -8572,6 +8576,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
8572
8576
|
onPoll: () => void;
|
|
8573
8577
|
onCancel: () => void;
|
|
8574
8578
|
isCanceled: () => boolean;
|
|
8579
|
+
graceCheckOnCancel: true;
|
|
8575
8580
|
id: string;
|
|
8576
8581
|
};
|
|
8577
8582
|
readonly onError: {
|
|
@@ -9889,6 +9894,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
9889
9894
|
onPoll: () => void;
|
|
9890
9895
|
onCancel: () => void;
|
|
9891
9896
|
isCanceled: () => boolean;
|
|
9897
|
+
graceCheckOnCancel: true;
|
|
9892
9898
|
id: string;
|
|
9893
9899
|
};
|
|
9894
9900
|
readonly onError: {
|
|
@@ -12410,6 +12416,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
12410
12416
|
onPoll: () => void;
|
|
12411
12417
|
onCancel: () => void;
|
|
12412
12418
|
isCanceled: () => boolean;
|
|
12419
|
+
graceCheckOnCancel: true;
|
|
12413
12420
|
id: string;
|
|
12414
12421
|
};
|
|
12415
12422
|
readonly onError: {
|
|
@@ -13727,6 +13734,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
13727
13734
|
onPoll: () => void;
|
|
13728
13735
|
onCancel: () => void;
|
|
13729
13736
|
isCanceled: () => boolean;
|
|
13737
|
+
graceCheckOnCancel: true;
|
|
13730
13738
|
id: string;
|
|
13731
13739
|
};
|
|
13732
13740
|
readonly onError: {
|
|
@@ -16345,6 +16353,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
16345
16353
|
onPoll: () => void;
|
|
16346
16354
|
onCancel: () => void;
|
|
16347
16355
|
isCanceled: () => boolean;
|
|
16356
|
+
graceCheckOnCancel: true;
|
|
16348
16357
|
id: string;
|
|
16349
16358
|
};
|
|
16350
16359
|
readonly onError: {
|
|
@@ -17662,6 +17671,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
17662
17671
|
onPoll: () => void;
|
|
17663
17672
|
onCancel: () => void;
|
|
17664
17673
|
isCanceled: () => boolean;
|
|
17674
|
+
graceCheckOnCancel: true;
|
|
17665
17675
|
id: string;
|
|
17666
17676
|
};
|
|
17667
17677
|
readonly onError: {
|
|
@@ -20184,6 +20194,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
20184
20194
|
onPoll: () => void;
|
|
20185
20195
|
onCancel: () => void;
|
|
20186
20196
|
isCanceled: () => boolean;
|
|
20197
|
+
graceCheckOnCancel: true;
|
|
20187
20198
|
id: string;
|
|
20188
20199
|
};
|
|
20189
20200
|
readonly onError: {
|
|
@@ -21501,6 +21512,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
21501
21512
|
onPoll: () => void;
|
|
21502
21513
|
onCancel: () => void;
|
|
21503
21514
|
isCanceled: () => boolean;
|
|
21515
|
+
graceCheckOnCancel: true;
|
|
21504
21516
|
id: string;
|
|
21505
21517
|
};
|
|
21506
21518
|
readonly onError: {
|
|
@@ -17,6 +17,8 @@ export interface Ctx {
|
|
|
17
17
|
disableWorkers?: boolean;
|
|
18
18
|
offloadMPCComputationURL?: string;
|
|
19
19
|
mpcComputationClient?: AxiosInstance;
|
|
20
|
+
apiBaseUrlOverride?: string;
|
|
21
|
+
mpcNetworkUrlOverride?: string;
|
|
20
22
|
useLocalFiles?: boolean;
|
|
21
23
|
useDKLS?: boolean;
|
|
22
24
|
disableWebSockets: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Ctx, Environment } from '../types/index.js';
|
|
2
|
+
export declare function getGlobalPortalUrlOverride(): string | undefined;
|
|
2
3
|
export declare function getPortalDomain(env: Environment, isE2E?: boolean, isLegacy?: boolean): string;
|
|
3
4
|
export declare function getPortalBaseURL({ env, isE2E, portalUrlOverride }: {
|
|
4
5
|
env: Environment;
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@celo/utils": "^8.0.2",
|
|
6
6
|
"@cosmjs/encoding": "^0.32.4",
|
|
7
7
|
"@ethereumjs/util": "^9.1.0",
|
|
8
|
-
"@getpara/user-management-client": "3.
|
|
8
|
+
"@getpara/user-management-client": "3.7.0",
|
|
9
9
|
"@noble/hashes": "^1.5.0",
|
|
10
10
|
"@opentelemetry/api": "^1.9.1",
|
|
11
|
-
"@opentelemetry/context-zone": "^2.
|
|
12
|
-
"@opentelemetry/core": "^2.
|
|
13
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
14
|
-
"@opentelemetry/instrumentation": "^0.
|
|
15
|
-
"@opentelemetry/instrumentation-fetch": "^0.
|
|
16
|
-
"@opentelemetry/instrumentation-xml-http-request": "^0.
|
|
17
|
-
"@opentelemetry/otlp-transformer": "^0.
|
|
18
|
-
"@opentelemetry/resources": "^2.
|
|
19
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
11
|
+
"@opentelemetry/context-zone": "^2.9.0",
|
|
12
|
+
"@opentelemetry/core": "^2.9.0",
|
|
13
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.220.0",
|
|
14
|
+
"@opentelemetry/instrumentation": "^0.220.0",
|
|
15
|
+
"@opentelemetry/instrumentation-fetch": "^0.220.0",
|
|
16
|
+
"@opentelemetry/instrumentation-xml-http-request": "^0.220.0",
|
|
17
|
+
"@opentelemetry/otlp-transformer": "^0.220.0",
|
|
18
|
+
"@opentelemetry/resources": "^2.9.0",
|
|
19
|
+
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
20
20
|
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
21
21
|
"axios": "^1.8.4",
|
|
22
22
|
"base64url": "^3.0.1",
|
|
23
23
|
"elliptic": "^6.6.1",
|
|
24
24
|
"libphonenumber-js": "^1.11.7",
|
|
25
|
-
"node-forge": "^1.
|
|
26
|
-
"uuid": "^11.1.
|
|
25
|
+
"node-forge": "^1.4.0",
|
|
26
|
+
"uuid": "^11.1.1",
|
|
27
27
|
"xstate": "^5.24.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dist",
|
|
42
42
|
"package.json"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "ab8876230a5d00b2c620bd23a4e3ed69762fc192",
|
|
45
45
|
"main": "dist/cjs/index.js",
|
|
46
46
|
"module": "dist/esm/index.js",
|
|
47
47
|
"scripts": {
|