@getpara/core-sdk 3.4.0 → 3.5.1
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 +98 -35
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/errors.js +12 -0
- package/dist/cjs/services/AuthService.js +42 -1
- package/dist/cjs/state/CoreStateManager.js +33 -6
- package/dist/cjs/state/machines/authStateMachine.js +105 -8
- package/dist/cjs/state/machines/coreStateMachine.js +8 -0
- package/dist/cjs/types/coreApi.js +2 -0
- package/dist/esm/ParaCore.js +99 -36
- package/dist/esm/constants.js +1 -1
- package/dist/esm/errors.js +11 -0
- package/dist/esm/services/AuthService.js +42 -1
- package/dist/esm/state/CoreStateManager.js +33 -6
- package/dist/esm/state/machines/authStateMachine.js +105 -8
- package/dist/esm/state/machines/coreStateMachine.js +8 -0
- package/dist/esm/types/coreApi.js +2 -0
- package/dist/types/ParaCore.d.ts +24 -2
- package/dist/types/errors.d.ts +13 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/services/AuthService.d.ts +10 -1
- package/dist/types/services/types/AuthServiceTypes.d.ts +6 -3
- package/dist/types/state/CoreStateManager.d.ts +1 -0
- package/dist/types/state/machines/authStateMachine.d.ts +77 -1
- package/dist/types/state/machines/coreStateMachine.d.ts +465 -6
- package/dist/types/state/types/auth.d.ts +4 -1
- package/dist/types/state/types/core.d.ts +23 -1
- package/dist/types/types/authState.d.ts +9 -3
- package/dist/types/types/coreApi.d.ts +17 -2
- package/package.json +3 -3
|
@@ -216,7 +216,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
216
216
|
type: "canRetryNewAccount";
|
|
217
217
|
params: unknown;
|
|
218
218
|
};
|
|
219
|
-
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
219
|
+
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_2fa" | "awaiting_2fa_enrollment" | "resolving_2fa" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
220
220
|
readonly id: "auth";
|
|
221
221
|
readonly initial: "checking_state";
|
|
222
222
|
readonly context: ({ input: { coreRef } }: {
|
|
@@ -2041,6 +2041,26 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
2041
2041
|
};
|
|
2042
2042
|
}];
|
|
2043
2043
|
readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>, unknown, never>;
|
|
2044
|
+
}, {
|
|
2045
|
+
readonly target: "awaiting_2fa_enrollment";
|
|
2046
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
2047
|
+
readonly type: "logTransition";
|
|
2048
|
+
readonly params: {
|
|
2049
|
+
readonly to: "awaiting_2fa_enrollment";
|
|
2050
|
+
readonly detail: "mfa enroll";
|
|
2051
|
+
};
|
|
2052
|
+
}];
|
|
2053
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
2054
|
+
}, {
|
|
2055
|
+
readonly target: "awaiting_2fa";
|
|
2056
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
2057
|
+
readonly type: "logTransition";
|
|
2058
|
+
readonly params: {
|
|
2059
|
+
readonly to: "awaiting_2fa";
|
|
2060
|
+
readonly detail: "mfa verify";
|
|
2061
|
+
};
|
|
2062
|
+
}];
|
|
2063
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
2044
2064
|
}, {
|
|
2045
2065
|
readonly target: "awaiting_session_start";
|
|
2046
2066
|
readonly actions: readonly ["storeAuthStateResult", {
|
|
@@ -2100,6 +2120,62 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
2100
2120
|
};
|
|
2101
2121
|
};
|
|
2102
2122
|
};
|
|
2123
|
+
readonly awaiting_2fa: {
|
|
2124
|
+
readonly on: {
|
|
2125
|
+
readonly RESOLVE_2FA: {
|
|
2126
|
+
readonly target: "resolving_2fa";
|
|
2127
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
2128
|
+
};
|
|
2129
|
+
readonly CANCEL: {
|
|
2130
|
+
readonly target: "unauthenticated";
|
|
2131
|
+
readonly actions: readonly ["resetState"];
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
2135
|
+
readonly awaiting_2fa_enrollment: {
|
|
2136
|
+
readonly on: {
|
|
2137
|
+
readonly RESOLVE_2FA: {
|
|
2138
|
+
readonly target: "resolving_2fa";
|
|
2139
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
2140
|
+
};
|
|
2141
|
+
readonly CANCEL: {
|
|
2142
|
+
readonly target: "unauthenticated";
|
|
2143
|
+
readonly actions: readonly ["resetState"];
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
2147
|
+
readonly resolving_2fa: {
|
|
2148
|
+
readonly entry: readonly [{
|
|
2149
|
+
readonly type: "logTransition";
|
|
2150
|
+
readonly params: {
|
|
2151
|
+
readonly to: "resolving_2fa";
|
|
2152
|
+
};
|
|
2153
|
+
}];
|
|
2154
|
+
readonly invoke: {
|
|
2155
|
+
readonly src: "polling";
|
|
2156
|
+
readonly input: ({ context }: {
|
|
2157
|
+
context: import("../types/auth.js").AuthContext;
|
|
2158
|
+
event: AuthEvents;
|
|
2159
|
+
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../types/auth.js").AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
|
|
2160
|
+
}) => {
|
|
2161
|
+
checkCondition: () => Promise<{
|
|
2162
|
+
finished: boolean;
|
|
2163
|
+
data: {
|
|
2164
|
+
authState: import("@getpara/shared").ServerAuthState;
|
|
2165
|
+
};
|
|
2166
|
+
}>;
|
|
2167
|
+
onPoll: () => void;
|
|
2168
|
+
onCancel: () => void;
|
|
2169
|
+
isCanceled: () => boolean;
|
|
2170
|
+
id: string;
|
|
2171
|
+
};
|
|
2172
|
+
readonly onError: {
|
|
2173
|
+
readonly target: "error";
|
|
2174
|
+
readonly actions: any;
|
|
2175
|
+
};
|
|
2176
|
+
};
|
|
2177
|
+
readonly on: any;
|
|
2178
|
+
};
|
|
2103
2179
|
readonly awaiting_session_start: {
|
|
2104
2180
|
readonly on: {
|
|
2105
2181
|
readonly WAIT_FOR_SESSION: {
|
|
@@ -3962,7 +4038,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
3962
4038
|
type: "canRetryNewAccount";
|
|
3963
4039
|
params: unknown;
|
|
3964
4040
|
};
|
|
3965
|
-
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
4041
|
+
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_2fa" | "awaiting_2fa_enrollment" | "resolving_2fa" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
3966
4042
|
readonly id: "auth";
|
|
3967
4043
|
readonly initial: "checking_state";
|
|
3968
4044
|
readonly context: ({ input: { coreRef } }: {
|
|
@@ -5787,6 +5863,26 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
5787
5863
|
};
|
|
5788
5864
|
}];
|
|
5789
5865
|
readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>, unknown, never>;
|
|
5866
|
+
}, {
|
|
5867
|
+
readonly target: "awaiting_2fa_enrollment";
|
|
5868
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
5869
|
+
readonly type: "logTransition";
|
|
5870
|
+
readonly params: {
|
|
5871
|
+
readonly to: "awaiting_2fa_enrollment";
|
|
5872
|
+
readonly detail: "mfa enroll";
|
|
5873
|
+
};
|
|
5874
|
+
}];
|
|
5875
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
5876
|
+
}, {
|
|
5877
|
+
readonly target: "awaiting_2fa";
|
|
5878
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
5879
|
+
readonly type: "logTransition";
|
|
5880
|
+
readonly params: {
|
|
5881
|
+
readonly to: "awaiting_2fa";
|
|
5882
|
+
readonly detail: "mfa verify";
|
|
5883
|
+
};
|
|
5884
|
+
}];
|
|
5885
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
5790
5886
|
}, {
|
|
5791
5887
|
readonly target: "awaiting_session_start";
|
|
5792
5888
|
readonly actions: readonly ["storeAuthStateResult", {
|
|
@@ -5846,6 +5942,62 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
5846
5942
|
};
|
|
5847
5943
|
};
|
|
5848
5944
|
};
|
|
5945
|
+
readonly awaiting_2fa: {
|
|
5946
|
+
readonly on: {
|
|
5947
|
+
readonly RESOLVE_2FA: {
|
|
5948
|
+
readonly target: "resolving_2fa";
|
|
5949
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
5950
|
+
};
|
|
5951
|
+
readonly CANCEL: {
|
|
5952
|
+
readonly target: "unauthenticated";
|
|
5953
|
+
readonly actions: readonly ["resetState"];
|
|
5954
|
+
};
|
|
5955
|
+
};
|
|
5956
|
+
};
|
|
5957
|
+
readonly awaiting_2fa_enrollment: {
|
|
5958
|
+
readonly on: {
|
|
5959
|
+
readonly RESOLVE_2FA: {
|
|
5960
|
+
readonly target: "resolving_2fa";
|
|
5961
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
5962
|
+
};
|
|
5963
|
+
readonly CANCEL: {
|
|
5964
|
+
readonly target: "unauthenticated";
|
|
5965
|
+
readonly actions: readonly ["resetState"];
|
|
5966
|
+
};
|
|
5967
|
+
};
|
|
5968
|
+
};
|
|
5969
|
+
readonly resolving_2fa: {
|
|
5970
|
+
readonly entry: readonly [{
|
|
5971
|
+
readonly type: "logTransition";
|
|
5972
|
+
readonly params: {
|
|
5973
|
+
readonly to: "resolving_2fa";
|
|
5974
|
+
};
|
|
5975
|
+
}];
|
|
5976
|
+
readonly invoke: {
|
|
5977
|
+
readonly src: "polling";
|
|
5978
|
+
readonly input: ({ context }: {
|
|
5979
|
+
context: import("../types/auth.js").AuthContext;
|
|
5980
|
+
event: AuthEvents;
|
|
5981
|
+
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../types/auth.js").AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
|
|
5982
|
+
}) => {
|
|
5983
|
+
checkCondition: () => Promise<{
|
|
5984
|
+
finished: boolean;
|
|
5985
|
+
data: {
|
|
5986
|
+
authState: import("@getpara/shared").ServerAuthState;
|
|
5987
|
+
};
|
|
5988
|
+
}>;
|
|
5989
|
+
onPoll: () => void;
|
|
5990
|
+
onCancel: () => void;
|
|
5991
|
+
isCanceled: () => boolean;
|
|
5992
|
+
id: string;
|
|
5993
|
+
};
|
|
5994
|
+
readonly onError: {
|
|
5995
|
+
readonly target: "error";
|
|
5996
|
+
readonly actions: any;
|
|
5997
|
+
};
|
|
5998
|
+
};
|
|
5999
|
+
readonly on: any;
|
|
6000
|
+
};
|
|
5849
6001
|
readonly awaiting_session_start: {
|
|
5850
6002
|
readonly on: {
|
|
5851
6003
|
readonly WAIT_FOR_SESSION: {
|
|
@@ -7786,7 +7938,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
7786
7938
|
type: "canRetryNewAccount";
|
|
7787
7939
|
params: unknown;
|
|
7788
7940
|
};
|
|
7789
|
-
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
7941
|
+
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_2fa" | "awaiting_2fa_enrollment" | "resolving_2fa" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
7790
7942
|
readonly id: "auth";
|
|
7791
7943
|
readonly initial: "checking_state";
|
|
7792
7944
|
readonly context: ({ input: { coreRef } }: {
|
|
@@ -9611,6 +9763,26 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
9611
9763
|
};
|
|
9612
9764
|
}];
|
|
9613
9765
|
readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>, unknown, never>;
|
|
9766
|
+
}, {
|
|
9767
|
+
readonly target: "awaiting_2fa_enrollment";
|
|
9768
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
9769
|
+
readonly type: "logTransition";
|
|
9770
|
+
readonly params: {
|
|
9771
|
+
readonly to: "awaiting_2fa_enrollment";
|
|
9772
|
+
readonly detail: "mfa enroll";
|
|
9773
|
+
};
|
|
9774
|
+
}];
|
|
9775
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
9776
|
+
}, {
|
|
9777
|
+
readonly target: "awaiting_2fa";
|
|
9778
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
9779
|
+
readonly type: "logTransition";
|
|
9780
|
+
readonly params: {
|
|
9781
|
+
readonly to: "awaiting_2fa";
|
|
9782
|
+
readonly detail: "mfa verify";
|
|
9783
|
+
};
|
|
9784
|
+
}];
|
|
9785
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
9614
9786
|
}, {
|
|
9615
9787
|
readonly target: "awaiting_session_start";
|
|
9616
9788
|
readonly actions: readonly ["storeAuthStateResult", {
|
|
@@ -9670,6 +9842,62 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
9670
9842
|
};
|
|
9671
9843
|
};
|
|
9672
9844
|
};
|
|
9845
|
+
readonly awaiting_2fa: {
|
|
9846
|
+
readonly on: {
|
|
9847
|
+
readonly RESOLVE_2FA: {
|
|
9848
|
+
readonly target: "resolving_2fa";
|
|
9849
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
9850
|
+
};
|
|
9851
|
+
readonly CANCEL: {
|
|
9852
|
+
readonly target: "unauthenticated";
|
|
9853
|
+
readonly actions: readonly ["resetState"];
|
|
9854
|
+
};
|
|
9855
|
+
};
|
|
9856
|
+
};
|
|
9857
|
+
readonly awaiting_2fa_enrollment: {
|
|
9858
|
+
readonly on: {
|
|
9859
|
+
readonly RESOLVE_2FA: {
|
|
9860
|
+
readonly target: "resolving_2fa";
|
|
9861
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
9862
|
+
};
|
|
9863
|
+
readonly CANCEL: {
|
|
9864
|
+
readonly target: "unauthenticated";
|
|
9865
|
+
readonly actions: readonly ["resetState"];
|
|
9866
|
+
};
|
|
9867
|
+
};
|
|
9868
|
+
};
|
|
9869
|
+
readonly resolving_2fa: {
|
|
9870
|
+
readonly entry: readonly [{
|
|
9871
|
+
readonly type: "logTransition";
|
|
9872
|
+
readonly params: {
|
|
9873
|
+
readonly to: "resolving_2fa";
|
|
9874
|
+
};
|
|
9875
|
+
}];
|
|
9876
|
+
readonly invoke: {
|
|
9877
|
+
readonly src: "polling";
|
|
9878
|
+
readonly input: ({ context }: {
|
|
9879
|
+
context: import("../types/auth.js").AuthContext;
|
|
9880
|
+
event: AuthEvents;
|
|
9881
|
+
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../types/auth.js").AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
|
|
9882
|
+
}) => {
|
|
9883
|
+
checkCondition: () => Promise<{
|
|
9884
|
+
finished: boolean;
|
|
9885
|
+
data: {
|
|
9886
|
+
authState: import("@getpara/shared").ServerAuthState;
|
|
9887
|
+
};
|
|
9888
|
+
}>;
|
|
9889
|
+
onPoll: () => void;
|
|
9890
|
+
onCancel: () => void;
|
|
9891
|
+
isCanceled: () => boolean;
|
|
9892
|
+
id: string;
|
|
9893
|
+
};
|
|
9894
|
+
readonly onError: {
|
|
9895
|
+
readonly target: "error";
|
|
9896
|
+
readonly actions: any;
|
|
9897
|
+
};
|
|
9898
|
+
};
|
|
9899
|
+
readonly on: any;
|
|
9900
|
+
};
|
|
9673
9901
|
readonly awaiting_session_start: {
|
|
9674
9902
|
readonly on: {
|
|
9675
9903
|
readonly WAIT_FOR_SESSION: {
|
|
@@ -11548,7 +11776,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
11548
11776
|
type: "canRetryNewAccount";
|
|
11549
11777
|
params: unknown;
|
|
11550
11778
|
};
|
|
11551
|
-
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
11779
|
+
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_2fa" | "awaiting_2fa_enrollment" | "resolving_2fa" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
11552
11780
|
readonly id: "auth";
|
|
11553
11781
|
readonly initial: "checking_state";
|
|
11554
11782
|
readonly context: ({ input: { coreRef } }: {
|
|
@@ -13373,6 +13601,26 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
13373
13601
|
};
|
|
13374
13602
|
}];
|
|
13375
13603
|
readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>, unknown, never>;
|
|
13604
|
+
}, {
|
|
13605
|
+
readonly target: "awaiting_2fa_enrollment";
|
|
13606
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
13607
|
+
readonly type: "logTransition";
|
|
13608
|
+
readonly params: {
|
|
13609
|
+
readonly to: "awaiting_2fa_enrollment";
|
|
13610
|
+
readonly detail: "mfa enroll";
|
|
13611
|
+
};
|
|
13612
|
+
}];
|
|
13613
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
13614
|
+
}, {
|
|
13615
|
+
readonly target: "awaiting_2fa";
|
|
13616
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
13617
|
+
readonly type: "logTransition";
|
|
13618
|
+
readonly params: {
|
|
13619
|
+
readonly to: "awaiting_2fa";
|
|
13620
|
+
readonly detail: "mfa verify";
|
|
13621
|
+
};
|
|
13622
|
+
}];
|
|
13623
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
13376
13624
|
}, {
|
|
13377
13625
|
readonly target: "awaiting_session_start";
|
|
13378
13626
|
readonly actions: readonly ["storeAuthStateResult", {
|
|
@@ -13432,6 +13680,62 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
13432
13680
|
};
|
|
13433
13681
|
};
|
|
13434
13682
|
};
|
|
13683
|
+
readonly awaiting_2fa: {
|
|
13684
|
+
readonly on: {
|
|
13685
|
+
readonly RESOLVE_2FA: {
|
|
13686
|
+
readonly target: "resolving_2fa";
|
|
13687
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
13688
|
+
};
|
|
13689
|
+
readonly CANCEL: {
|
|
13690
|
+
readonly target: "unauthenticated";
|
|
13691
|
+
readonly actions: readonly ["resetState"];
|
|
13692
|
+
};
|
|
13693
|
+
};
|
|
13694
|
+
};
|
|
13695
|
+
readonly awaiting_2fa_enrollment: {
|
|
13696
|
+
readonly on: {
|
|
13697
|
+
readonly RESOLVE_2FA: {
|
|
13698
|
+
readonly target: "resolving_2fa";
|
|
13699
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
13700
|
+
};
|
|
13701
|
+
readonly CANCEL: {
|
|
13702
|
+
readonly target: "unauthenticated";
|
|
13703
|
+
readonly actions: readonly ["resetState"];
|
|
13704
|
+
};
|
|
13705
|
+
};
|
|
13706
|
+
};
|
|
13707
|
+
readonly resolving_2fa: {
|
|
13708
|
+
readonly entry: readonly [{
|
|
13709
|
+
readonly type: "logTransition";
|
|
13710
|
+
readonly params: {
|
|
13711
|
+
readonly to: "resolving_2fa";
|
|
13712
|
+
};
|
|
13713
|
+
}];
|
|
13714
|
+
readonly invoke: {
|
|
13715
|
+
readonly src: "polling";
|
|
13716
|
+
readonly input: ({ context }: {
|
|
13717
|
+
context: import("../types/auth.js").AuthContext;
|
|
13718
|
+
event: AuthEvents;
|
|
13719
|
+
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../types/auth.js").AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
|
|
13720
|
+
}) => {
|
|
13721
|
+
checkCondition: () => Promise<{
|
|
13722
|
+
finished: boolean;
|
|
13723
|
+
data: {
|
|
13724
|
+
authState: import("@getpara/shared").ServerAuthState;
|
|
13725
|
+
};
|
|
13726
|
+
}>;
|
|
13727
|
+
onPoll: () => void;
|
|
13728
|
+
onCancel: () => void;
|
|
13729
|
+
isCanceled: () => boolean;
|
|
13730
|
+
id: string;
|
|
13731
|
+
};
|
|
13732
|
+
readonly onError: {
|
|
13733
|
+
readonly target: "error";
|
|
13734
|
+
readonly actions: any;
|
|
13735
|
+
};
|
|
13736
|
+
};
|
|
13737
|
+
readonly on: any;
|
|
13738
|
+
};
|
|
13435
13739
|
readonly awaiting_session_start: {
|
|
13436
13740
|
readonly on: {
|
|
13437
13741
|
readonly WAIT_FOR_SESSION: {
|
|
@@ -15132,6 +15436,9 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
15132
15436
|
readonly WAIT_FOR_WALLET_CREATION: {
|
|
15133
15437
|
readonly actions: ({ context, event }: import("xstate").ActionArgs<CoreContext, import("xstate").AnyEventObject, import("xstate").AnyEventObject>) => void;
|
|
15134
15438
|
};
|
|
15439
|
+
readonly RESOLVE_2FA: {
|
|
15440
|
+
readonly actions: ({ context, event }: import("xstate").ActionArgs<CoreContext, import("xstate").AnyEventObject, import("xstate").AnyEventObject>) => void;
|
|
15441
|
+
};
|
|
15135
15442
|
readonly INITIALIZE_GUEST_MODE: {
|
|
15136
15443
|
readonly actions: ({ context, event }: import("xstate").ActionArgs<CoreContext, import("xstate").AnyEventObject, import("xstate").AnyEventObject>) => void;
|
|
15137
15444
|
};
|
|
@@ -15404,7 +15711,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
15404
15711
|
type: "canRetryNewAccount";
|
|
15405
15712
|
params: unknown;
|
|
15406
15713
|
};
|
|
15407
|
-
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
15714
|
+
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_2fa" | "awaiting_2fa_enrollment" | "resolving_2fa" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
15408
15715
|
readonly id: "auth";
|
|
15409
15716
|
readonly initial: "checking_state";
|
|
15410
15717
|
readonly context: ({ input: { coreRef } }: {
|
|
@@ -17229,6 +17536,26 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
17229
17536
|
};
|
|
17230
17537
|
}];
|
|
17231
17538
|
readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>, unknown, never>;
|
|
17539
|
+
}, {
|
|
17540
|
+
readonly target: "awaiting_2fa_enrollment";
|
|
17541
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
17542
|
+
readonly type: "logTransition";
|
|
17543
|
+
readonly params: {
|
|
17544
|
+
readonly to: "awaiting_2fa_enrollment";
|
|
17545
|
+
readonly detail: "mfa enroll";
|
|
17546
|
+
};
|
|
17547
|
+
}];
|
|
17548
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
17549
|
+
}, {
|
|
17550
|
+
readonly target: "awaiting_2fa";
|
|
17551
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
17552
|
+
readonly type: "logTransition";
|
|
17553
|
+
readonly params: {
|
|
17554
|
+
readonly to: "awaiting_2fa";
|
|
17555
|
+
readonly detail: "mfa verify";
|
|
17556
|
+
};
|
|
17557
|
+
}];
|
|
17558
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
17232
17559
|
}, {
|
|
17233
17560
|
readonly target: "awaiting_session_start";
|
|
17234
17561
|
readonly actions: readonly ["storeAuthStateResult", {
|
|
@@ -17288,6 +17615,62 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
17288
17615
|
};
|
|
17289
17616
|
};
|
|
17290
17617
|
};
|
|
17618
|
+
readonly awaiting_2fa: {
|
|
17619
|
+
readonly on: {
|
|
17620
|
+
readonly RESOLVE_2FA: {
|
|
17621
|
+
readonly target: "resolving_2fa";
|
|
17622
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
17623
|
+
};
|
|
17624
|
+
readonly CANCEL: {
|
|
17625
|
+
readonly target: "unauthenticated";
|
|
17626
|
+
readonly actions: readonly ["resetState"];
|
|
17627
|
+
};
|
|
17628
|
+
};
|
|
17629
|
+
};
|
|
17630
|
+
readonly awaiting_2fa_enrollment: {
|
|
17631
|
+
readonly on: {
|
|
17632
|
+
readonly RESOLVE_2FA: {
|
|
17633
|
+
readonly target: "resolving_2fa";
|
|
17634
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
17635
|
+
};
|
|
17636
|
+
readonly CANCEL: {
|
|
17637
|
+
readonly target: "unauthenticated";
|
|
17638
|
+
readonly actions: readonly ["resetState"];
|
|
17639
|
+
};
|
|
17640
|
+
};
|
|
17641
|
+
};
|
|
17642
|
+
readonly resolving_2fa: {
|
|
17643
|
+
readonly entry: readonly [{
|
|
17644
|
+
readonly type: "logTransition";
|
|
17645
|
+
readonly params: {
|
|
17646
|
+
readonly to: "resolving_2fa";
|
|
17647
|
+
};
|
|
17648
|
+
}];
|
|
17649
|
+
readonly invoke: {
|
|
17650
|
+
readonly src: "polling";
|
|
17651
|
+
readonly input: ({ context }: {
|
|
17652
|
+
context: import("../types/auth.js").AuthContext;
|
|
17653
|
+
event: AuthEvents;
|
|
17654
|
+
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../types/auth.js").AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
|
|
17655
|
+
}) => {
|
|
17656
|
+
checkCondition: () => Promise<{
|
|
17657
|
+
finished: boolean;
|
|
17658
|
+
data: {
|
|
17659
|
+
authState: import("@getpara/shared").ServerAuthState;
|
|
17660
|
+
};
|
|
17661
|
+
}>;
|
|
17662
|
+
onPoll: () => void;
|
|
17663
|
+
onCancel: () => void;
|
|
17664
|
+
isCanceled: () => boolean;
|
|
17665
|
+
id: string;
|
|
17666
|
+
};
|
|
17667
|
+
readonly onError: {
|
|
17668
|
+
readonly target: "error";
|
|
17669
|
+
readonly actions: any;
|
|
17670
|
+
};
|
|
17671
|
+
};
|
|
17672
|
+
readonly on: any;
|
|
17673
|
+
};
|
|
17291
17674
|
readonly awaiting_session_start: {
|
|
17292
17675
|
readonly on: {
|
|
17293
17676
|
readonly WAIT_FOR_SESSION: {
|
|
@@ -19167,7 +19550,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
19167
19550
|
type: "canRetryNewAccount";
|
|
19168
19551
|
params: unknown;
|
|
19169
19552
|
};
|
|
19170
|
-
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
19553
|
+
}>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_2fa" | "awaiting_2fa_enrollment" | "resolving_2fa" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, import("../types/auth.js").AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
19171
19554
|
readonly id: "auth";
|
|
19172
19555
|
readonly initial: "checking_state";
|
|
19173
19556
|
readonly context: ({ input: { coreRef } }: {
|
|
@@ -20992,6 +21375,26 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
20992
21375
|
};
|
|
20993
21376
|
}];
|
|
20994
21377
|
readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>, unknown, never>;
|
|
21378
|
+
}, {
|
|
21379
|
+
readonly target: "awaiting_2fa_enrollment";
|
|
21380
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
21381
|
+
readonly type: "logTransition";
|
|
21382
|
+
readonly params: {
|
|
21383
|
+
readonly to: "awaiting_2fa_enrollment";
|
|
21384
|
+
readonly detail: "mfa enroll";
|
|
21385
|
+
};
|
|
21386
|
+
}];
|
|
21387
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
21388
|
+
}, {
|
|
21389
|
+
readonly target: "awaiting_2fa";
|
|
21390
|
+
readonly actions: readonly ["storeAuthStateResult", {
|
|
21391
|
+
readonly type: "logTransition";
|
|
21392
|
+
readonly params: {
|
|
21393
|
+
readonly to: "awaiting_2fa";
|
|
21394
|
+
readonly detail: "mfa verify";
|
|
21395
|
+
};
|
|
21396
|
+
}];
|
|
21397
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<import("../types/auth.js").AuthContext, import("xstate").DoneActorEvent<import("../../index.js").AuthState, string>>) => boolean;
|
|
20995
21398
|
}, {
|
|
20996
21399
|
readonly target: "awaiting_session_start";
|
|
20997
21400
|
readonly actions: readonly ["storeAuthStateResult", {
|
|
@@ -21051,6 +21454,62 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
|
|
|
21051
21454
|
};
|
|
21052
21455
|
};
|
|
21053
21456
|
};
|
|
21457
|
+
readonly awaiting_2fa: {
|
|
21458
|
+
readonly on: {
|
|
21459
|
+
readonly RESOLVE_2FA: {
|
|
21460
|
+
readonly target: "resolving_2fa";
|
|
21461
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
21462
|
+
};
|
|
21463
|
+
readonly CANCEL: {
|
|
21464
|
+
readonly target: "unauthenticated";
|
|
21465
|
+
readonly actions: readonly ["resetState"];
|
|
21466
|
+
};
|
|
21467
|
+
};
|
|
21468
|
+
};
|
|
21469
|
+
readonly awaiting_2fa_enrollment: {
|
|
21470
|
+
readonly on: {
|
|
21471
|
+
readonly RESOLVE_2FA: {
|
|
21472
|
+
readonly target: "resolving_2fa";
|
|
21473
|
+
readonly actions: readonly ["setPollingCallbacks", "resetError"];
|
|
21474
|
+
};
|
|
21475
|
+
readonly CANCEL: {
|
|
21476
|
+
readonly target: "unauthenticated";
|
|
21477
|
+
readonly actions: readonly ["resetState"];
|
|
21478
|
+
};
|
|
21479
|
+
};
|
|
21480
|
+
};
|
|
21481
|
+
readonly resolving_2fa: {
|
|
21482
|
+
readonly entry: readonly [{
|
|
21483
|
+
readonly type: "logTransition";
|
|
21484
|
+
readonly params: {
|
|
21485
|
+
readonly to: "resolving_2fa";
|
|
21486
|
+
};
|
|
21487
|
+
}];
|
|
21488
|
+
readonly invoke: {
|
|
21489
|
+
readonly src: "polling";
|
|
21490
|
+
readonly input: ({ context }: {
|
|
21491
|
+
context: import("../types/auth.js").AuthContext;
|
|
21492
|
+
event: AuthEvents;
|
|
21493
|
+
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../types/auth.js").AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
|
|
21494
|
+
}) => {
|
|
21495
|
+
checkCondition: () => Promise<{
|
|
21496
|
+
finished: boolean;
|
|
21497
|
+
data: {
|
|
21498
|
+
authState: import("@getpara/shared").ServerAuthState;
|
|
21499
|
+
};
|
|
21500
|
+
}>;
|
|
21501
|
+
onPoll: () => void;
|
|
21502
|
+
onCancel: () => void;
|
|
21503
|
+
isCanceled: () => boolean;
|
|
21504
|
+
id: string;
|
|
21505
|
+
};
|
|
21506
|
+
readonly onError: {
|
|
21507
|
+
readonly target: "error";
|
|
21508
|
+
readonly actions: any;
|
|
21509
|
+
};
|
|
21510
|
+
};
|
|
21511
|
+
readonly on: any;
|
|
21512
|
+
};
|
|
21054
21513
|
readonly awaiting_session_start: {
|
|
21055
21514
|
readonly on: {
|
|
21056
21515
|
readonly WAIT_FOR_SESSION: {
|