@okta/okta-auth-js 6.4.1 → 6.5.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/CHANGELOG.md +25 -0
- package/README.md +1 -1
- package/cjs/OktaAuth.js.map +1 -1
- package/cjs/OktaUserAgent.js +2 -2
- package/cjs/TransactionManager.js +25 -13
- package/cjs/TransactionManager.js.map +1 -1
- package/cjs/crypto/node.js +11 -16
- package/cjs/crypto/node.js.map +1 -1
- package/cjs/errors/AuthApiError.js.map +1 -1
- package/cjs/errors/AuthSdkError.js.map +1 -1
- package/cjs/idx/authenticate.js.map +1 -1
- package/cjs/idx/authenticator/SecurityQuestionEnrollment.js +1 -1
- package/cjs/idx/authenticator/SecurityQuestionEnrollment.js.map +1 -1
- package/cjs/idx/authenticator/SecurityQuestionVerification.js +12 -1
- package/cjs/idx/authenticator/SecurityQuestionVerification.js.map +1 -1
- package/cjs/idx/cancel.js.map +1 -1
- package/cjs/idx/flow/AuthenticationFlow.js.map +1 -1
- package/cjs/idx/idxState/v1/generateIdxAction.js +0 -2
- package/cjs/idx/idxState/v1/generateIdxAction.js.map +1 -1
- package/cjs/idx/idxState/v1/idxResponseParser.js +10 -5
- package/cjs/idx/idxState/v1/idxResponseParser.js.map +1 -1
- package/cjs/idx/idxState/v1/makeIdxState.js +6 -0
- package/cjs/idx/idxState/v1/makeIdxState.js.map +1 -1
- package/cjs/idx/interact.js +16 -16
- package/cjs/idx/interact.js.map +1 -1
- package/cjs/idx/introspect.js +1 -1
- package/cjs/idx/introspect.js.map +1 -1
- package/cjs/idx/proceed.js.map +1 -1
- package/cjs/idx/recoverPassword.js.map +1 -1
- package/cjs/idx/register.js.map +1 -1
- package/cjs/idx/remediate.js +21 -21
- package/cjs/idx/remediate.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js +17 -8
- package/cjs/idx/remediators/AuthenticatorEnrollmentData.js.map +1 -1
- package/cjs/idx/remediators/AuthenticatorVerificationData.js +2 -1
- package/cjs/idx/remediators/AuthenticatorVerificationData.js.map +1 -1
- package/cjs/idx/remediators/Base/AuthenticatorData.js +4 -3
- package/cjs/idx/remediators/Base/AuthenticatorData.js.map +1 -1
- package/cjs/idx/remediators/Base/Remediator.js +1 -1
- package/cjs/idx/remediators/Base/Remediator.js.map +1 -1
- package/cjs/idx/remediators/Base/SelectAuthenticator.js +20 -7
- package/cjs/idx/remediators/Base/SelectAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js +2 -2
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/EnrollPoll.js +2 -2
- package/cjs/idx/remediators/EnrollPoll.js.map +1 -1
- package/cjs/idx/remediators/EnrollmentChannelData.js +2 -2
- package/cjs/idx/remediators/EnrollmentChannelData.js.map +1 -1
- package/cjs/idx/remediators/GenericRemediator/GenericRemediator.js +103 -0
- package/cjs/idx/remediators/GenericRemediator/GenericRemediator.js.map +1 -0
- package/cjs/idx/remediators/GenericRemediator/index.js +17 -0
- package/cjs/idx/remediators/GenericRemediator/index.js.map +1 -0
- package/cjs/idx/remediators/GenericRemediator/util.js +81 -0
- package/cjs/idx/remediators/GenericRemediator/util.js.map +1 -0
- package/cjs/idx/remediators/Identify.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorAuthenticate.js.map +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorUnlockAccount.js +1 -1
- package/cjs/idx/remediators/SelectAuthenticatorUnlockAccount.js.map +1 -1
- package/cjs/idx/remediators/SelectEnrollmentChannel.js +3 -2
- package/cjs/idx/remediators/SelectEnrollmentChannel.js.map +1 -1
- package/cjs/idx/remediators/index.js +13 -0
- package/cjs/idx/remediators/index.js.map +1 -1
- package/cjs/idx/run.js +54 -16
- package/cjs/idx/run.js.map +1 -1
- package/cjs/idx/startTransaction.js.map +1 -1
- package/cjs/idx/transactionMeta.js +4 -2
- package/cjs/idx/transactionMeta.js.map +1 -1
- package/cjs/idx/types/api.js +42 -0
- package/cjs/idx/types/api.js.map +1 -0
- package/cjs/idx/types/idx-js.js.map +1 -1
- package/cjs/idx/types/index.js +27 -51
- package/cjs/idx/types/index.js.map +1 -1
- package/cjs/idx/types/options.js +2 -0
- package/cjs/idx/types/options.js.map +1 -0
- package/cjs/idx/unlockAccount.js.map +1 -1
- package/cjs/idx/util.js +58 -10
- package/cjs/idx/util.js.map +1 -1
- package/cjs/oidc/exchangeCodeForTokens.js.map +1 -1
- package/cjs/options/index.js +6 -0
- package/cjs/options/index.js.map +1 -1
- package/cjs/types/Transaction.js.map +1 -1
- package/dist/okta-auth-js.min.js +1 -1
- package/dist/okta-auth-js.min.js.map +1 -1
- package/dist/okta-auth-js.umd.js +1 -1
- package/dist/okta-auth-js.umd.js.map +1 -1
- package/esm/esm.browser.js +567 -301
- package/esm/esm.browser.js.map +1 -1
- package/esm/esm.node.mjs +567 -301
- package/esm/esm.node.mjs.map +1 -1
- package/lib/OktaAuth.d.ts +2 -2
- package/lib/TransactionManager.d.ts +4 -3
- package/lib/errors/AuthApiError.d.ts +2 -2
- package/lib/errors/AuthSdkError.d.ts +2 -2
- package/lib/idx/authenticate.d.ts +1 -3
- package/lib/idx/authenticator/SecurityQuestionVerification.d.ts +1 -0
- package/lib/idx/cancel.d.ts +2 -3
- package/lib/idx/emailVerify.d.ts +1 -1
- package/lib/idx/idxState/v1/generateIdxAction.d.ts +2 -2
- package/lib/idx/interact.d.ts +2 -16
- package/lib/idx/introspect.d.ts +1 -7
- package/lib/idx/proceed.d.ts +1 -9
- package/lib/idx/recoverPassword.d.ts +1 -3
- package/lib/idx/register.d.ts +1 -3
- package/lib/idx/remediate.d.ts +3 -10
- package/lib/idx/remediators/AuthenticatorEnrollmentData.d.ts +1 -11
- package/lib/idx/remediators/AuthenticatorVerificationData.d.ts +2 -2
- package/lib/idx/remediators/Base/AuthenticatorData.d.ts +5 -1
- package/lib/idx/remediators/Base/Remediator.d.ts +5 -4
- package/lib/idx/remediators/Base/SelectAuthenticator.d.ts +8 -3
- package/lib/idx/remediators/Base/VerifyAuthenticator.d.ts +2 -1
- package/lib/idx/remediators/EnrollPoll.d.ts +2 -2
- package/lib/idx/remediators/EnrollmentChannelData.d.ts +8 -4
- package/lib/idx/remediators/GenericRemediator/GenericRemediator.d.ts +9 -0
- package/lib/idx/remediators/GenericRemediator/index.d.ts +1 -0
- package/lib/idx/remediators/GenericRemediator/util.d.ts +3 -0
- package/lib/idx/remediators/SelectAuthenticatorUnlockAccount.d.ts +1 -1
- package/lib/idx/remediators/SelectEnrollmentChannel.d.ts +8 -4
- package/lib/idx/remediators/index.d.ts +1 -0
- package/lib/idx/run.d.ts +1 -10
- package/lib/idx/startTransaction.d.ts +2 -3
- package/lib/idx/types/api.d.ts +104 -0
- package/lib/idx/types/idx-js.d.ts +16 -5
- package/lib/idx/types/index.d.ts +4 -110
- package/lib/idx/types/options.d.ts +46 -0
- package/lib/idx/unlockAccount.d.ts +1 -3
- package/lib/idx/util.d.ts +4 -3
- package/lib/types/OAuth.d.ts +2 -0
- package/lib/types/OktaAuthOptions.d.ts +28 -11
- package/lib/types/Storage.d.ts +2 -1
- package/lib/types/Transaction.d.ts +8 -28
- package/lib/types/api.d.ts +12 -36
- package/package.json +6 -5
package/lib/OktaAuth.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { OktaAuthInterface, OktaAuthOptions, AccessToken, RefreshToken, TokenAPI, FeaturesAPI, CryptoAPI, WebauthnAPI, SignoutAPI, FingerprintAPI, UserClaims, SigninWithRedirectOptions, SigninWithCredentialsOptions, SignoutOptions, Tokens, ForgotPasswordOptions, VerifyRecoveryTokenOptions, TransactionAPI, SessionAPI, SigninAPI, PkceAPI, SigninOptions, IdxAPI, SignoutRedirectUrlOptions, HttpAPI, RequestOptions, IsAuthenticatedOptions } from './types';
|
|
12
|
+
import { OktaAuthInterface, OktaAuthOptions, AccessToken, RefreshToken, TokenAPI, FeaturesAPI, CryptoAPI, WebauthnAPI, SignoutAPI, FingerprintAPI, UserClaims, SigninWithRedirectOptions, SigninWithCredentialsOptions, SignoutOptions, Tokens, ForgotPasswordOptions, VerifyRecoveryTokenOptions, TransactionAPI, SessionAPI, SigninAPI, PkceAPI, SigninOptions, IdxAPI, SignoutRedirectUrlOptions, HttpAPI, RequestOptions, IsAuthenticatedOptions, OAuthResponseType } from './types';
|
|
13
13
|
import { AuthTransaction } from './tx';
|
|
14
14
|
import { TokenManager } from './TokenManager';
|
|
15
15
|
import { ServiceManager } from './ServiceManager';
|
|
@@ -70,7 +70,7 @@ declare class OktaAuth implements OktaAuthInterface, SigninAPI, SignoutAPI {
|
|
|
70
70
|
isLoginRedirect(): boolean;
|
|
71
71
|
handleLoginRedirect(tokens?: Tokens, originalUri?: string): Promise<void>;
|
|
72
72
|
isPKCE(): boolean;
|
|
73
|
-
hasResponseType(responseType:
|
|
73
|
+
hasResponseType(responseType: OAuthResponseType): boolean;
|
|
74
74
|
isAuthorizationCodeFlow(): boolean;
|
|
75
75
|
getIssuerOrigin(): string;
|
|
76
76
|
forgotPassword(opts: any): Promise<AuthTransaction>;
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { StorageManager } from './StorageManager';
|
|
13
|
-
import { TransactionMeta, PKCETransactionMeta, OAuthTransactionMeta, TransactionMetaOptions, TransactionManagerOptions, SavedIdxResponse } from './types';
|
|
13
|
+
import { TransactionMeta, PKCETransactionMeta, OAuthTransactionMeta, TransactionMetaOptions, TransactionManagerOptions, SavedIdxResponse, IntrospectOptions } from './types';
|
|
14
14
|
export interface ClearTransactionMetaOptions extends TransactionMetaOptions {
|
|
15
15
|
clearSharedStorage?: boolean;
|
|
16
|
+
clearIdxResponse?: boolean;
|
|
16
17
|
}
|
|
17
18
|
export default class TransactionManager {
|
|
18
19
|
options: TransactionManagerOptions;
|
|
@@ -32,7 +33,7 @@ export default class TransactionManager {
|
|
|
32
33
|
loadLegacyPKCE(): PKCETransactionMeta;
|
|
33
34
|
clearLegacyOAuthParams(): void;
|
|
34
35
|
loadLegacyOAuthParams(): OAuthTransactionMeta;
|
|
35
|
-
saveIdxResponse(
|
|
36
|
-
loadIdxResponse(): SavedIdxResponse | null;
|
|
36
|
+
saveIdxResponse(data: SavedIdxResponse): void;
|
|
37
|
+
loadIdxResponse(options?: IntrospectOptions): SavedIdxResponse | null;
|
|
37
38
|
clearIdxResponse(): void;
|
|
38
39
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import CustomError from './CustomError';
|
|
13
|
-
import { APIError, HttpResponse } from '../types';
|
|
13
|
+
import { APIError, FieldError, HttpResponse } from '../types';
|
|
14
14
|
export default class AuthApiError extends CustomError implements APIError {
|
|
15
15
|
errorSummary: string;
|
|
16
16
|
errorCode?: string;
|
|
17
17
|
errorLink?: string;
|
|
18
18
|
errorId?: string;
|
|
19
|
-
errorCauses?:
|
|
19
|
+
errorCauses?: Array<FieldError>;
|
|
20
20
|
xhr?: HttpResponse;
|
|
21
21
|
constructor(err: APIError, xhr?: HttpResponse);
|
|
22
22
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import CustomError from './CustomError';
|
|
13
|
-
import { APIError } from '../types';
|
|
13
|
+
import { APIError, FieldError } from '../types';
|
|
14
14
|
export default class AuthSdkError extends CustomError implements APIError {
|
|
15
15
|
errorSummary: string;
|
|
16
16
|
errorCode: string;
|
|
17
17
|
errorLink: string;
|
|
18
18
|
errorId: string;
|
|
19
|
-
errorCauses:
|
|
19
|
+
errorCauses: Array<FieldError>;
|
|
20
20
|
xhr?: XMLHttpRequest;
|
|
21
21
|
constructor(msg: string, xhr?: XMLHttpRequest);
|
|
22
22
|
}
|
|
@@ -9,7 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { OktaAuthInterface,
|
|
13
|
-
import { IdentifyValues, SelectAuthenticatorAuthenticateValues, ChallengeAuthenticatorValues, ReEnrollAuthenticatorValues, AuthenticatorEnrollmentDataValues, SelectAuthenticatorEnrollValues, EnrollAuthenticatorValues } from './remediators';
|
|
14
|
-
export declare type AuthenticationOptions = IdxOptions & IdentifyValues & SelectAuthenticatorAuthenticateValues & SelectAuthenticatorEnrollValues & ChallengeAuthenticatorValues & ReEnrollAuthenticatorValues & AuthenticatorEnrollmentDataValues & EnrollAuthenticatorValues;
|
|
12
|
+
import { OktaAuthInterface, IdxTransaction, AuthenticationOptions } from '../types';
|
|
15
13
|
export declare function authenticate(authClient: OktaAuthInterface, options?: AuthenticationOptions): Promise<IdxTransaction>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Authenticator, Credentials } from './Authenticator';
|
|
2
2
|
export interface SecurityQuestionVerificationValues {
|
|
3
3
|
answer?: string;
|
|
4
|
+
credentials?: Credentials;
|
|
4
5
|
}
|
|
5
6
|
export declare class SecurityQuestionVerification extends Authenticator<SecurityQuestionVerificationValues> {
|
|
6
7
|
canVerify(values: SecurityQuestionVerificationValues): boolean;
|
package/lib/idx/cancel.d.ts
CHANGED
|
@@ -9,6 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { OktaAuthInterface,
|
|
13
|
-
export declare
|
|
14
|
-
export declare function cancel(authClient: OktaAuthInterface, options?: CancelOptions): Promise<import("./types").IdxTransaction>;
|
|
12
|
+
import { OktaAuthInterface, CancelOptions } from '../types';
|
|
13
|
+
export declare function cancel(authClient: OktaAuthInterface, options?: CancelOptions): Promise<import("./types/api").IdxTransaction>;
|
package/lib/idx/emailVerify.d.ts
CHANGED
|
@@ -23,4 +23,4 @@ export declare class EmailVerifyCallbackError extends CustomError {
|
|
|
23
23
|
export declare function isEmailVerifyCallbackError(error: Error): boolean;
|
|
24
24
|
export declare function isEmailVerifyCallback(urlPath: string): boolean;
|
|
25
25
|
export declare function parseEmailVerifyCallback(urlPath: string): EmailVerifyCallbackResponse;
|
|
26
|
-
export declare function handleEmailVerifyCallback(authClient: OktaAuthInterface, search: string): Promise<import("./types").IdxTransaction | undefined>;
|
|
26
|
+
export declare function handleEmailVerifyCallback(authClient: OktaAuthInterface, search: string): Promise<import("./types/api").IdxTransaction | undefined>;
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { OktaAuthInterface } from '../../../types';
|
|
13
|
-
import {
|
|
14
|
-
declare const generateIdxAction: (authClient: OktaAuthInterface, actionDefinition: any, toPersist: any) =>
|
|
13
|
+
import { IdxActionFunction } from '../../types/idx-js';
|
|
14
|
+
declare const generateIdxAction: (authClient: OktaAuthInterface, actionDefinition: any, toPersist: any) => IdxActionFunction;
|
|
15
15
|
export default generateIdxAction;
|
package/lib/idx/interact.d.ts
CHANGED
|
@@ -9,22 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { OktaAuthInterface,
|
|
13
|
-
export interface InteractOptions {
|
|
14
|
-
withCredentials?: boolean;
|
|
15
|
-
state?: string;
|
|
16
|
-
scopes?: string[];
|
|
17
|
-
codeChallenge?: string;
|
|
18
|
-
codeChallengeMethod?: string;
|
|
19
|
-
activationToken?: string;
|
|
20
|
-
recoveryToken?: string;
|
|
21
|
-
clientSecret?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface InteractResponse {
|
|
24
|
-
state?: string;
|
|
25
|
-
interactionHandle: string;
|
|
26
|
-
meta: IdxTransactionMeta;
|
|
27
|
-
}
|
|
12
|
+
import { OktaAuthInterface, InteractOptions, InteractResponse } from '../types';
|
|
28
13
|
export interface InteractParams {
|
|
29
14
|
client_id: string;
|
|
30
15
|
scope: string;
|
|
@@ -35,5 +20,6 @@ export interface InteractParams {
|
|
|
35
20
|
activation_token?: string;
|
|
36
21
|
recovery_token?: string;
|
|
37
22
|
client_secret?: string;
|
|
23
|
+
max_age?: string | number;
|
|
38
24
|
}
|
|
39
25
|
export declare function interact(authClient: OktaAuthInterface, options?: InteractOptions): Promise<InteractResponse>;
|
package/lib/idx/introspect.d.ts
CHANGED
|
@@ -9,12 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { OktaAuthInterface } from '../types';
|
|
12
|
+
import { IntrospectOptions, OktaAuthInterface } from '../types';
|
|
13
13
|
import { IdxResponse } from './types/idx-js';
|
|
14
|
-
export interface IntrospectOptions {
|
|
15
|
-
withCredentials?: boolean;
|
|
16
|
-
interactionHandle?: string;
|
|
17
|
-
stateHandle?: string;
|
|
18
|
-
version?: string;
|
|
19
|
-
}
|
|
20
14
|
export declare function introspect(authClient: OktaAuthInterface, options?: IntrospectOptions): Promise<IdxResponse>;
|
package/lib/idx/proceed.d.ts
CHANGED
|
@@ -9,14 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { OktaAuthInterface, IdxTransaction } from '../types';
|
|
13
|
-
import { AuthenticationOptions } from './authenticate';
|
|
14
|
-
import { EnrollPollValues as EnrollPollOptions, SelectEnrollmentChannelValues as SelectEnrollmentChannelOptions } from './remediators';
|
|
15
|
-
import { RegistrationOptions } from './register';
|
|
16
|
-
import { PasswordRecoveryOptions } from './recoverPassword';
|
|
17
|
-
import { AccountUnlockOptions } from './unlockAccount';
|
|
18
|
-
export declare type ProceedOptions = AuthenticationOptions & RegistrationOptions & PasswordRecoveryOptions & AccountUnlockOptions & EnrollPollOptions & SelectEnrollmentChannelOptions & {
|
|
19
|
-
step?: string;
|
|
20
|
-
};
|
|
12
|
+
import { OktaAuthInterface, IdxTransaction, ProceedOptions } from '../types';
|
|
21
13
|
export declare function canProceed(authClient: OktaAuthInterface, options?: ProceedOptions): boolean;
|
|
22
14
|
export declare function proceed(authClient: OktaAuthInterface, options?: ProceedOptions): Promise<IdxTransaction>;
|
|
@@ -9,7 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { OktaAuthInterface, IdxOptions, IdxTransaction } from '../types';
|
|
14
|
-
export declare type PasswordRecoveryOptions = IdxOptions & IdentifyValues & SelectAuthenticatorAuthenticateValues & ChallengeAuthenticatorValues & ResetAuthenticatorValues & AuthenticatorVerificationDataValues & ReEnrollAuthenticatorValues;
|
|
12
|
+
import { OktaAuthInterface, PasswordRecoveryOptions, IdxTransaction } from '../types';
|
|
15
13
|
export declare function recoverPassword(authClient: OktaAuthInterface, options?: PasswordRecoveryOptions): Promise<IdxTransaction>;
|
package/lib/idx/register.d.ts
CHANGED
|
@@ -9,7 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { IdxOptions, IdxTransaction, OktaAuthInterface } from '../types';
|
|
14
|
-
export declare type RegistrationOptions = IdxOptions & EnrollProfileValues & SelectAuthenticatorEnrollValues & EnrollAuthenticatorValues & AuthenticatorEnrollmentDataValues & SkipValues;
|
|
12
|
+
import { RegistrationOptions, IdxTransaction, OktaAuthInterface } from '../types';
|
|
15
13
|
export declare function register(authClient: OktaAuthInterface, options?: RegistrationOptions): Promise<IdxTransaction>;
|
package/lib/idx/remediate.d.ts
CHANGED
|
@@ -9,20 +9,13 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
+
import { OktaAuthInterface } from '../types';
|
|
12
13
|
import { RemediationValues } from './remediators';
|
|
13
|
-
import {
|
|
14
|
-
import { RemediationFlow } from './flow';
|
|
14
|
+
import { RemediateOptions, RemediationResponse } from './types';
|
|
15
15
|
import { IdxResponse, IdxActionParams } from './types/idx-js';
|
|
16
16
|
export interface RemediateActionWithOptionalParams {
|
|
17
17
|
name: string;
|
|
18
18
|
params?: IdxActionParams;
|
|
19
19
|
}
|
|
20
20
|
export declare type RemediateAction = string | RemediateActionWithOptionalParams;
|
|
21
|
-
export
|
|
22
|
-
remediators?: RemediationFlow;
|
|
23
|
-
actions?: RemediateAction[];
|
|
24
|
-
flow?: FlowIdentifier;
|
|
25
|
-
step?: string;
|
|
26
|
-
shouldProceedWithEmailAuthenticator?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare function remediate(idxResponse: IdxResponse, values: RemediationValues, options: RemediateOptions): Promise<RemediationResponse>;
|
|
21
|
+
export declare function remediate(authClient: OktaAuthInterface, idxResponse: IdxResponse, values: RemediationValues, options: RemediateOptions): Promise<RemediationResponse>;
|
|
@@ -21,16 +21,6 @@ export declare class AuthenticatorEnrollmentData extends AuthenticatorData<Authe
|
|
|
21
21
|
methodType: string | undefined;
|
|
22
22
|
phoneNumber: string | undefined;
|
|
23
23
|
};
|
|
24
|
-
getInputAuthenticator():
|
|
25
|
-
name: string;
|
|
26
|
-
type: string;
|
|
27
|
-
required: boolean;
|
|
28
|
-
label?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
name: string;
|
|
31
|
-
type: string;
|
|
32
|
-
required: boolean;
|
|
33
|
-
label: string;
|
|
34
|
-
})[];
|
|
24
|
+
getInputAuthenticator(remediation: any): any[];
|
|
35
25
|
protected mapAuthenticatorDataFromValues(data?: any): any;
|
|
36
26
|
}
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { AuthenticatorData, AuthenticatorDataValues } from './Base/AuthenticatorData';
|
|
13
|
-
import { IdxRemediation } from '../types
|
|
14
|
-
import { RemediateOptions } from '../remediate';
|
|
13
|
+
import { IdxRemediation, RemediateOptions } from '../types';
|
|
15
14
|
export declare type AuthenticatorVerificationDataValues = AuthenticatorDataValues;
|
|
16
15
|
export declare class AuthenticatorVerificationData extends AuthenticatorData<AuthenticatorVerificationDataValues> {
|
|
17
16
|
static remediationName: string;
|
|
@@ -23,6 +22,7 @@ export declare class AuthenticatorVerificationData extends AuthenticatorData<Aut
|
|
|
23
22
|
name: string;
|
|
24
23
|
type: string;
|
|
25
24
|
required: boolean;
|
|
25
|
+
options: import("../types/idx-js").IdxOption[];
|
|
26
26
|
};
|
|
27
27
|
getValuesAfterProceed(): AuthenticatorVerificationDataValues;
|
|
28
28
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Remediator';
|
|
13
13
|
import { IdxRemediationValue, IdxOption, IdxRemediation, IdxAuthenticator } from '../../types/idx-js';
|
|
14
|
+
import { OktaAuthInterface } from '../../../types';
|
|
14
15
|
export declare type AuthenticatorDataValues = RemediationValues & {
|
|
15
16
|
methodType?: string;
|
|
16
17
|
};
|
|
@@ -20,7 +21,7 @@ export declare class AuthenticatorData<T extends AuthenticatorDataValues = Authe
|
|
|
20
21
|
protected formatAuthenticatorData(): void;
|
|
21
22
|
protected getAuthenticatorData(): import("../../types").Authenticator | undefined;
|
|
22
23
|
canRemediate(): boolean;
|
|
23
|
-
getNextStep(): {
|
|
24
|
+
getNextStep(authClient: OktaAuthInterface): {
|
|
24
25
|
options: IdxOption[];
|
|
25
26
|
name: string;
|
|
26
27
|
authenticator?: IdxAuthenticator | undefined;
|
|
@@ -29,6 +30,9 @@ export declare class AuthenticatorData<T extends AuthenticatorDataValues = Authe
|
|
|
29
30
|
inputs?: import("../../types").Input[] | undefined;
|
|
30
31
|
poll?: import("../../types").IdxPollOptions | undefined;
|
|
31
32
|
authenticatorEnrollments?: IdxAuthenticator[] | undefined;
|
|
33
|
+
action?: ((params?: import("../../types").IdxActionParams | undefined) => Promise<import("../../types").IdxTransaction>) | undefined;
|
|
34
|
+
idp?: import("../../types/idx-js").IdpConfig | undefined;
|
|
35
|
+
href?: string | undefined;
|
|
32
36
|
};
|
|
33
37
|
protected mapAuthenticatorDataFromValues(authenticatorData?: any): any;
|
|
34
38
|
protected getAuthenticatorFromRemediation(): IdxRemediationValue;
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { NextStep, IdxMessage, Authenticator,
|
|
12
|
+
import { NextStep, IdxMessage, Authenticator, Input, RemediateOptions } from '../../types';
|
|
13
13
|
import { IdxAuthenticator, IdxRemediation, IdxContext } from '../../types/idx-js';
|
|
14
|
+
import { OktaAuthInterface } from '../../../types';
|
|
14
15
|
export declare type IdxToRemediationValueMap = Record<string, string[]>;
|
|
15
|
-
export interface RemediationValues
|
|
16
|
+
export interface RemediationValues {
|
|
16
17
|
stateHandle?: string;
|
|
17
18
|
authenticators?: (Authenticator | string)[];
|
|
18
19
|
authenticator?: string | Authenticator;
|
|
@@ -34,8 +35,8 @@ export declare class Remediator<T extends RemediationValues = RemediationValues>
|
|
|
34
35
|
canRemediate(): boolean;
|
|
35
36
|
getData(key?: string): any;
|
|
36
37
|
hasData(key: string): boolean;
|
|
37
|
-
getNextStep(_context?: IdxContext): NextStep;
|
|
38
|
-
|
|
38
|
+
getNextStep(_authClient: OktaAuthInterface, _context?: IdxContext): NextStep;
|
|
39
|
+
getInputs(): Input[];
|
|
39
40
|
static getMessages(remediation: IdxRemediation): IdxMessage[] | undefined;
|
|
40
41
|
getValuesAfterProceed(): T;
|
|
41
42
|
protected getAuthenticator(): IdxAuthenticator | undefined;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { Remediator, RemediationValues } from './Remediator';
|
|
13
13
|
import { IdxRemediationValue } from '../../types/idx-js';
|
|
14
14
|
import { Authenticator } from '../../types';
|
|
15
|
+
import { OktaAuthInterface } from '../../../types';
|
|
15
16
|
export declare type SelectAuthenticatorValues = RemediationValues & {
|
|
16
17
|
authenticator?: string | Authenticator;
|
|
17
18
|
};
|
|
@@ -20,7 +21,7 @@ export declare class SelectAuthenticator<T extends SelectAuthenticatorValues = S
|
|
|
20
21
|
selectedOption?: any;
|
|
21
22
|
findMatchedOption(authenticators: any, options: any): any;
|
|
22
23
|
canRemediate(): boolean;
|
|
23
|
-
getNextStep(): {
|
|
24
|
+
getNextStep(authClient: OktaAuthInterface): {
|
|
24
25
|
options: {
|
|
25
26
|
label: string;
|
|
26
27
|
value: string;
|
|
@@ -32,13 +33,17 @@ export declare class SelectAuthenticator<T extends SelectAuthenticatorValues = S
|
|
|
32
33
|
inputs?: import("../../types").Input[] | undefined;
|
|
33
34
|
poll?: import("../../types").IdxPollOptions | undefined;
|
|
34
35
|
authenticatorEnrollments?: import("../../types").IdxAuthenticator[] | undefined;
|
|
36
|
+
action?: ((params?: import("../../types").IdxActionParams | undefined) => Promise<import("../../types").IdxTransaction>) | undefined;
|
|
37
|
+
idp?: import("../../types/idx-js").IdpConfig | undefined;
|
|
38
|
+
href?: string | undefined;
|
|
35
39
|
};
|
|
36
40
|
mapAuthenticator(remediationValue: IdxRemediationValue): Authenticator | {
|
|
37
41
|
id: any;
|
|
38
42
|
};
|
|
39
|
-
getInputAuthenticator(): {
|
|
43
|
+
getInputAuthenticator(remediation: any): {
|
|
40
44
|
name: string;
|
|
41
|
-
|
|
45
|
+
type: string;
|
|
46
|
+
options: any;
|
|
42
47
|
};
|
|
43
48
|
getValuesAfterProceed(): T;
|
|
44
49
|
}
|
|
@@ -13,11 +13,12 @@ import { Remediator, RemediationValues } from './Remediator';
|
|
|
13
13
|
import { Authenticator, AuthenticatorValues } from '../../authenticator';
|
|
14
14
|
import { IdxRemediation, IdxContext } from '../../types/idx-js';
|
|
15
15
|
import { NextStep } from '../../types';
|
|
16
|
+
import { OktaAuthInterface } from '../../../types';
|
|
16
17
|
export declare type VerifyAuthenticatorValues = AuthenticatorValues & RemediationValues;
|
|
17
18
|
export declare class VerifyAuthenticator<T extends VerifyAuthenticatorValues = VerifyAuthenticatorValues> extends Remediator<T> {
|
|
18
19
|
authenticator: Authenticator<VerifyAuthenticatorValues>;
|
|
19
20
|
constructor(remediation: IdxRemediation, values?: T);
|
|
20
|
-
getNextStep(context?: IdxContext): NextStep;
|
|
21
|
+
getNextStep(authClient: OktaAuthInterface, context?: IdxContext): NextStep;
|
|
21
22
|
canRemediate(): boolean;
|
|
22
23
|
mapCredentials(): import("../../authenticator").Credentials | undefined;
|
|
23
24
|
getInputCredentials(input: any): any;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
|
-
import { NextStep } from '../../types';
|
|
13
|
+
import { NextStep, OktaAuthInterface } from '../../types';
|
|
14
14
|
import { IdxContext } from '../types/idx-js';
|
|
15
15
|
export interface EnrollPollValues extends RemediationValues {
|
|
16
16
|
startPolling?: boolean;
|
|
@@ -18,6 +18,6 @@ export interface EnrollPollValues extends RemediationValues {
|
|
|
18
18
|
export declare class EnrollPoll extends Remediator<EnrollPollValues> {
|
|
19
19
|
static remediationName: string;
|
|
20
20
|
canRemediate(): boolean;
|
|
21
|
-
getNextStep(context?: IdxContext): NextStep;
|
|
21
|
+
getNextStep(authClient: OktaAuthInterface, context?: IdxContext): NextStep;
|
|
22
22
|
getValuesAfterProceed(): EnrollPollValues;
|
|
23
23
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
13
|
import { IdxContext } from '../types/idx-js';
|
|
14
|
+
import { OktaAuthInterface } from '../../types';
|
|
14
15
|
export declare type EnrollmentChannelDataValues = RemediationValues & {
|
|
15
16
|
email?: string;
|
|
16
17
|
phoneNumber?: string;
|
|
@@ -30,20 +31,23 @@ export declare class EnrollmentChannelData extends Remediator<EnrollmentChannelD
|
|
|
30
31
|
label: string;
|
|
31
32
|
}[];
|
|
32
33
|
canRemediate(): boolean;
|
|
33
|
-
getNextStep(context: IdxContext): {
|
|
34
|
+
getNextStep(authClient: OktaAuthInterface, context: IdxContext): {
|
|
34
35
|
authenticator: import("../types/idx-js").IdxAuthenticator;
|
|
35
36
|
name: string;
|
|
36
37
|
canSkip?: boolean | undefined;
|
|
37
38
|
canResend?: boolean | undefined;
|
|
38
|
-
inputs?: import("../types").Input[] | undefined;
|
|
39
|
+
inputs?: import("../types/api").Input[] | undefined;
|
|
39
40
|
options?: import("../types/idx-js").IdxOption[] | undefined;
|
|
40
|
-
poll?: import("../types").IdxPollOptions | undefined;
|
|
41
|
+
poll?: import("../types/api").IdxPollOptions | undefined;
|
|
41
42
|
authenticatorEnrollments?: import("../types/idx-js").IdxAuthenticator[] | undefined;
|
|
43
|
+
action?: ((params?: import("../types/idx-js").IdxActionParams | undefined) => Promise<import("../types/api").IdxTransaction>) | undefined;
|
|
44
|
+
idp?: import("../types/idx-js").IdpConfig | undefined;
|
|
45
|
+
href?: string | undefined;
|
|
42
46
|
};
|
|
43
47
|
getData(): {
|
|
44
48
|
stateHandle: string | undefined;
|
|
45
49
|
email: string | undefined;
|
|
46
50
|
phoneNumber: string | undefined;
|
|
47
51
|
};
|
|
48
|
-
getValuesAfterProceed():
|
|
52
|
+
getValuesAfterProceed(): EnrollmentChannelDataValues;
|
|
49
53
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IdxContext, NextStep, Input } from '../../types';
|
|
2
|
+
import { Remediator } from '../Base/Remediator';
|
|
3
|
+
import { OktaAuthInterface } from '../../../types';
|
|
4
|
+
export declare class GenericRemediator extends Remediator {
|
|
5
|
+
canRemediate(): boolean;
|
|
6
|
+
getData(): {};
|
|
7
|
+
getNextStep(authClient: OktaAuthInterface, _context?: IdxContext): NextStep;
|
|
8
|
+
getInputs(): Input[];
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GenericRemediator';
|
|
@@ -11,21 +11,25 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
13
|
import { IdxRemediationValueForm, IdxOption, IdxContext } from '../types/idx-js';
|
|
14
|
+
import { OktaAuthInterface } from '../../types';
|
|
14
15
|
export declare type SelectEnrollmentChannelValues = RemediationValues & {
|
|
15
16
|
channel?: string;
|
|
16
17
|
};
|
|
17
18
|
export declare class SelectEnrollmentChannel extends Remediator<SelectEnrollmentChannelValues> {
|
|
18
19
|
static remediationName: string;
|
|
19
20
|
canRemediate(): boolean;
|
|
20
|
-
getNextStep(context: IdxContext): {
|
|
21
|
+
getNextStep(authClient: OktaAuthInterface, context: IdxContext): {
|
|
21
22
|
authenticator: import("../types/idx-js").IdxAuthenticator;
|
|
22
23
|
options?: IdxOption[] | undefined;
|
|
23
24
|
name: string;
|
|
24
25
|
canSkip?: boolean | undefined;
|
|
25
26
|
canResend?: boolean | undefined;
|
|
26
|
-
inputs?: import("../types").Input[] | undefined;
|
|
27
|
-
poll?: import("../types").IdxPollOptions | undefined;
|
|
27
|
+
inputs?: import("../types/api").Input[] | undefined;
|
|
28
|
+
poll?: import("../types/api").IdxPollOptions | undefined;
|
|
28
29
|
authenticatorEnrollments?: import("../types/idx-js").IdxAuthenticator[] | undefined;
|
|
30
|
+
action?: ((params?: import("../types/idx-js").IdxActionParams | undefined) => Promise<import("../types/api").IdxTransaction>) | undefined;
|
|
31
|
+
idp?: import("../types/idx-js").IdpConfig | undefined;
|
|
32
|
+
href?: string | undefined;
|
|
29
33
|
};
|
|
30
34
|
private getChannels;
|
|
31
35
|
getData(): {
|
|
@@ -35,5 +39,5 @@ export declare class SelectEnrollmentChannel extends Remediator<SelectEnrollment
|
|
|
35
39
|
};
|
|
36
40
|
stateHandle: string | undefined;
|
|
37
41
|
};
|
|
38
|
-
getValuesAfterProceed():
|
|
42
|
+
getValuesAfterProceed(): SelectEnrollmentChannelValues;
|
|
39
43
|
}
|
package/lib/idx/run.d.ts
CHANGED
|
@@ -9,14 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { RemediationFlow } from './flow';
|
|
14
|
-
import { OktaAuthInterface, IdxTransaction, FlowIdentifier } from '../types';
|
|
15
|
-
import { ProceedOptions } from './proceed';
|
|
16
|
-
export declare type RunOptions = ProceedOptions & RemediateOptions & {
|
|
17
|
-
flow?: FlowIdentifier;
|
|
18
|
-
remediators?: RemediationFlow;
|
|
19
|
-
actions?: string[];
|
|
20
|
-
withCredentials?: boolean;
|
|
21
|
-
};
|
|
12
|
+
import { OktaAuthInterface, IdxTransaction, RunOptions } from '../types';
|
|
22
13
|
export declare function run(authClient: OktaAuthInterface, options?: RunOptions): Promise<IdxTransaction>;
|
|
@@ -9,6 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
export declare function startTransaction(authClient: OktaAuthInterface, options?: RunOptions): Promise<IdxTransaction>;
|
|
12
|
+
import { OktaAuthInterface, IdxTransaction, StartOptions } from '../types';
|
|
13
|
+
export declare function startTransaction(authClient: OktaAuthInterface, options?: StartOptions): Promise<IdxTransaction>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { APIError } from '../../types/api';
|
|
2
|
+
import { Tokens } from '../../types/Token';
|
|
3
|
+
import { PKCETransactionMeta } from '../../types/Transaction';
|
|
4
|
+
import { FlowIdentifier } from './FlowIdentifier';
|
|
5
|
+
import { IdxActions, IdxAuthenticator, IdxContext, IdxForm, IdxMessage, IdxOption, IdxRemediation, IdxResponse, RawIdxResponse, IdxActionParams, IdpConfig } from './idx-js';
|
|
6
|
+
export declare enum IdxStatus {
|
|
7
|
+
SUCCESS = "SUCCESS",
|
|
8
|
+
PENDING = "PENDING",
|
|
9
|
+
FAILURE = "FAILURE",
|
|
10
|
+
TERMINAL = "TERMINAL",
|
|
11
|
+
CANCELED = "CANCELED"
|
|
12
|
+
}
|
|
13
|
+
export declare enum AuthenticatorKey {
|
|
14
|
+
OKTA_PASSWORD = "okta_password",
|
|
15
|
+
OKTA_EMAIL = "okta_email",
|
|
16
|
+
PHONE_NUMBER = "phone_number",
|
|
17
|
+
GOOGLE_AUTHENTICATOR = "google_otp",
|
|
18
|
+
SECURITY_QUESTION = "security_question",
|
|
19
|
+
OKTA_VERIFY = "okta_verify",
|
|
20
|
+
WEBAUTHN = "webauthn"
|
|
21
|
+
}
|
|
22
|
+
export declare type Input = {
|
|
23
|
+
name: string;
|
|
24
|
+
key?: string;
|
|
25
|
+
type?: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
value?: string | {
|
|
28
|
+
form: IdxForm;
|
|
29
|
+
} | Input[];
|
|
30
|
+
minLength?: number;
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
secret?: boolean;
|
|
33
|
+
required?: boolean;
|
|
34
|
+
options?: IdxOption[];
|
|
35
|
+
};
|
|
36
|
+
export interface IdxPollOptions {
|
|
37
|
+
required?: boolean;
|
|
38
|
+
refresh?: number;
|
|
39
|
+
}
|
|
40
|
+
export declare type NextStep = {
|
|
41
|
+
name: string;
|
|
42
|
+
authenticator?: IdxAuthenticator;
|
|
43
|
+
canSkip?: boolean;
|
|
44
|
+
canResend?: boolean;
|
|
45
|
+
inputs?: Input[];
|
|
46
|
+
options?: IdxOption[];
|
|
47
|
+
poll?: IdxPollOptions;
|
|
48
|
+
authenticatorEnrollments?: IdxAuthenticator[];
|
|
49
|
+
action?: (params?: IdxActionParams) => Promise<IdxTransaction>;
|
|
50
|
+
idp?: IdpConfig;
|
|
51
|
+
href?: string;
|
|
52
|
+
};
|
|
53
|
+
export declare enum IdxFeature {
|
|
54
|
+
PASSWORD_RECOVERY = "recover-password",
|
|
55
|
+
REGISTRATION = "enroll-profile",
|
|
56
|
+
SOCIAL_IDP = "redirect-idp",
|
|
57
|
+
ACCOUNT_UNLOCK = "unlock-account"
|
|
58
|
+
}
|
|
59
|
+
export interface IdxTransactionMeta extends PKCETransactionMeta {
|
|
60
|
+
interactionHandle?: string;
|
|
61
|
+
remediations?: string[];
|
|
62
|
+
flow?: FlowIdentifier;
|
|
63
|
+
withCredentials?: boolean;
|
|
64
|
+
activationToken?: string;
|
|
65
|
+
recoveryToken?: string;
|
|
66
|
+
maxAge?: string | number;
|
|
67
|
+
useGenericRemediator?: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface IdxTransaction {
|
|
70
|
+
status: IdxStatus;
|
|
71
|
+
tokens?: Tokens;
|
|
72
|
+
nextStep?: NextStep;
|
|
73
|
+
messages?: IdxMessage[];
|
|
74
|
+
error?: APIError | IdxResponse;
|
|
75
|
+
meta?: IdxTransactionMeta;
|
|
76
|
+
enabledFeatures?: IdxFeature[];
|
|
77
|
+
availableSteps?: NextStep[];
|
|
78
|
+
requestDidSucceed?: boolean;
|
|
79
|
+
proceed: (remediationName: string, params: unknown) => Promise<IdxResponse>;
|
|
80
|
+
neededToProceed: IdxRemediation[];
|
|
81
|
+
rawIdxState: RawIdxResponse;
|
|
82
|
+
interactionCode?: string;
|
|
83
|
+
actions: IdxActions;
|
|
84
|
+
context: IdxContext;
|
|
85
|
+
}
|
|
86
|
+
export declare type Authenticator = {
|
|
87
|
+
id?: string;
|
|
88
|
+
key?: string;
|
|
89
|
+
methodType?: string;
|
|
90
|
+
phoneNumber?: string;
|
|
91
|
+
};
|
|
92
|
+
export declare function isAuthenticator(obj: any): obj is Authenticator;
|
|
93
|
+
export interface RemediationResponse {
|
|
94
|
+
idxResponse: IdxResponse;
|
|
95
|
+
nextStep?: NextStep;
|
|
96
|
+
messages?: IdxMessage[];
|
|
97
|
+
terminal?: boolean;
|
|
98
|
+
canceled?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface InteractResponse {
|
|
101
|
+
state?: string;
|
|
102
|
+
interactionHandle: string;
|
|
103
|
+
meta: IdxTransactionMeta;
|
|
104
|
+
}
|