@asgardeo/javascript 0.1.0 → 0.1.2
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/AsgardeoJavaScriptClient.d.ts +19 -52
- package/dist/IsomorphicCrypto.d.ts +2 -2
- package/dist/StorageManager.d.ts +1 -1
- package/dist/__legacy__/client.d.ts +2 -2
- package/dist/__legacy__/helpers/authentication-helper.d.ts +3 -3
- package/dist/api/createOrganization.d.ts +129 -0
- package/dist/api/executeEmbeddedSignInFlow.d.ts +21 -0
- package/dist/api/executeEmbeddedSignUpFlow.d.ts +44 -0
- package/dist/api/getAllOrganizations.d.ts +112 -0
- package/dist/api/getBrandingPreference.d.ts +103 -0
- package/dist/api/getMeOrganizations.d.ts +119 -0
- package/dist/api/getOrganization.d.ts +109 -0
- package/dist/api/getSchemas.d.ts +89 -0
- package/dist/api/getScim2Me.d.ts +89 -0
- package/dist/api/initializeEmbeddedSignInFlow.d.ts +51 -0
- package/dist/api/updateMeProfile.d.ts +82 -0
- package/dist/api/updateOrganization.d.ts +118 -0
- package/dist/cjs/index.js +1100 -157
- package/dist/cjs/index.js.map +4 -4
- package/dist/constants/OIDCRequestConstants.d.ts +1 -1
- package/dist/constants/ScopeConstants.d.ts +3 -6
- package/dist/constants/TokenExchangeConstants.d.ts +2 -2
- package/dist/constants/VendorConstants.d.ts +31 -0
- package/dist/index.d.ts +24 -6
- package/dist/index.js +1071 -148
- package/dist/index.js.map +4 -4
- package/dist/models/branding-preference.d.ts +248 -0
- package/dist/models/client.d.ts +55 -5
- package/dist/models/config.d.ts +54 -12
- package/dist/models/embedded-flow.d.ts +66 -0
- package/dist/models/embedded-signin-flow.d.ts +99 -0
- package/dist/models/flow.d.ts +30 -0
- package/dist/models/i18n.d.ts +24 -0
- package/dist/models/organization.d.ts +24 -0
- package/dist/models/token.d.ts +42 -30
- package/dist/theme/createTheme.d.ts +1 -1
- package/dist/theme/types.d.ts +42 -17
- package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts +47 -0
- package/dist/utils/extractTenantDomainFromIdTokenPayload.d.ts +2 -2
- package/dist/utils/extractUserClaimsFromIdToken.d.ts +2 -2
- package/dist/utils/generateFlattenedUserProfile.d.ts +9 -2
- package/dist/utils/isEmpty.d.ts +48 -0
- package/dist/utils/withVendorCSSClassPrefix.d.ts +32 -0
- package/package.json +1 -1
- package/dist/api/handleApplicationNativeAuthentication.d.ts +0 -33
- package/dist/api/initializeApplicationNativeAuthentication.d.ts +0 -117
- package/dist/models/application-native-authentication.d.ts +0 -82
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export interface ApplicationNativeAuthenticationInitiateResponse {
|
|
2
|
-
flowId: string;
|
|
3
|
-
flowStatus: ApplicationNativeAuthenticationFlowStatus;
|
|
4
|
-
flowType: ApplicationNativeAuthenticationFlowType;
|
|
5
|
-
nextStep: {
|
|
6
|
-
stepType: ApplicationNativeAuthenticationStepType;
|
|
7
|
-
authenticators: ApplicationNativeAuthenticationAuthenticator[];
|
|
8
|
-
};
|
|
9
|
-
links: ApplicationNativeAuthenticationLink[];
|
|
10
|
-
}
|
|
11
|
-
export declare enum ApplicationNativeAuthenticationFlowStatus {
|
|
12
|
-
SuccessCompleted = "SUCCESS_COMPLETED",
|
|
13
|
-
FailCompleted = "FAIL_COMPLETED",
|
|
14
|
-
FailIncomplete = "FAIL_INCOMPLETE",
|
|
15
|
-
Incomplete = "INCOMPLETE"
|
|
16
|
-
}
|
|
17
|
-
export declare enum ApplicationNativeAuthenticationFlowType {
|
|
18
|
-
Authentication = "AUTHENTICATION"
|
|
19
|
-
}
|
|
20
|
-
export declare enum ApplicationNativeAuthenticationStepType {
|
|
21
|
-
AuthenticatorPrompt = "AUTHENTICATOR_PROMPT",
|
|
22
|
-
MultOptionsPrompt = "MULTI_OPTIONS_PROMPT"
|
|
23
|
-
}
|
|
24
|
-
export interface ApplicationNativeAuthenticationAuthenticator {
|
|
25
|
-
authenticatorId: string;
|
|
26
|
-
authenticator: string;
|
|
27
|
-
idp: string;
|
|
28
|
-
metadata: {
|
|
29
|
-
i18nKey: string;
|
|
30
|
-
promptType: ApplicationNativeAuthenticationAuthenticatorPromptType;
|
|
31
|
-
params: {
|
|
32
|
-
param: string;
|
|
33
|
-
type: ApplicationNativeAuthenticationAuthenticatorParamType;
|
|
34
|
-
order: number;
|
|
35
|
-
i18nKey: string;
|
|
36
|
-
displayName: string;
|
|
37
|
-
confidential: boolean;
|
|
38
|
-
}[];
|
|
39
|
-
};
|
|
40
|
-
requiredParams: string[];
|
|
41
|
-
}
|
|
42
|
-
export interface ApplicationNativeAuthenticationLink {
|
|
43
|
-
name: string;
|
|
44
|
-
href: string;
|
|
45
|
-
method: string;
|
|
46
|
-
}
|
|
47
|
-
export interface ApplicationNativeAuthenticationHandleRequestPayload {
|
|
48
|
-
flowId: string;
|
|
49
|
-
selectedAuthenticator: {
|
|
50
|
-
authenticatorId: string;
|
|
51
|
-
params: Record<string, string>;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export interface ApplicationNativeAuthenticationHandleResponse {
|
|
55
|
-
flowStatus: string;
|
|
56
|
-
authData: Record<string, any>;
|
|
57
|
-
}
|
|
58
|
-
export declare enum ApplicationNativeAuthenticationAuthenticatorParamType {
|
|
59
|
-
String = "STRING",
|
|
60
|
-
Integer = "INTEGER",
|
|
61
|
-
MultiValued = "MULTI_VALUED"
|
|
62
|
-
}
|
|
63
|
-
export declare enum ApplicationNativeAuthenticationAuthenticatorExtendedParamType {
|
|
64
|
-
Otp = "OTPCode"
|
|
65
|
-
}
|
|
66
|
-
export declare enum ApplicationNativeAuthenticationAuthenticatorKnownIdPType {
|
|
67
|
-
Local = "LOCAL"
|
|
68
|
-
}
|
|
69
|
-
export declare enum ApplicationNativeAuthenticationAuthenticatorPromptType {
|
|
70
|
-
/**
|
|
71
|
-
* Prompt for user input, typically for username/password or similar credentials.
|
|
72
|
-
*/
|
|
73
|
-
UserPrompt = "USER_PROMPT",
|
|
74
|
-
/**
|
|
75
|
-
* Prompt for internal system use, such as API keys or tokens.
|
|
76
|
-
*/
|
|
77
|
-
InternalPrompt = "INTERNAL_PROMPT",
|
|
78
|
-
/**
|
|
79
|
-
* Prompt for redirection to another page or service.
|
|
80
|
-
*/
|
|
81
|
-
RedirectionPrompt = "REDIRECTION_PROMPT"
|
|
82
|
-
}
|