@asgardeo/javascript 0.1.0 → 0.1.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/AsgardeoJavaScriptClient.d.ts +16 -50
- 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/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 +966 -146
- 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 +20 -5
- package/dist/index.js +939 -137
- package/dist/index.js.map +4 -4
- package/dist/models/client.d.ts +52 -3
- package/dist/models/config.d.ts +36 -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 +29 -16
- 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
|
@@ -35,11 +35,8 @@
|
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
37
|
declare const ScopeConstants: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* is initiating an OpenID Connect authentication request.
|
|
42
|
-
*/
|
|
43
|
-
readonly OPENID: "openid";
|
|
38
|
+
INTERNAL_LOGIN: string;
|
|
39
|
+
OPENID: string;
|
|
40
|
+
PROFILE: string;
|
|
44
41
|
};
|
|
45
42
|
export default ScopeConstants;
|
|
@@ -42,7 +42,7 @@ declare const TokenExchangeConstants: {
|
|
|
42
42
|
* Placeholder for the token value in exchange requests.
|
|
43
43
|
* Usually replaced with an access token or refresh token.
|
|
44
44
|
*/
|
|
45
|
-
readonly
|
|
45
|
+
readonly ACCESS_TOKEN: "{{accessToken}}";
|
|
46
46
|
/**
|
|
47
47
|
* Placeholder for the username in token exchange operations.
|
|
48
48
|
* Used when user identity needs to be included in the exchange.
|
|
@@ -52,7 +52,7 @@ declare const TokenExchangeConstants: {
|
|
|
52
52
|
* Placeholder for OAuth scopes in token exchange requests.
|
|
53
53
|
* Replaced with space-separated scope strings.
|
|
54
54
|
*/
|
|
55
|
-
readonly
|
|
55
|
+
readonly SCOPES: "{{scopes}}";
|
|
56
56
|
/**
|
|
57
57
|
* Placeholder for client ID in token exchange operations.
|
|
58
58
|
* Required for client authentication.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Constants for vendor-specific configurations.
|
|
20
|
+
* By default, the vendor is inferred as Asgardeo.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* // Using the vendor prefix in a URL
|
|
25
|
+
* const apiUrl = `${VendorConstants.VENDOR_PREFIX}/api/v1/resource`;
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare const VendorConstants: {
|
|
29
|
+
VENDOR_PREFIX: string;
|
|
30
|
+
};
|
|
31
|
+
export default VendorConstants;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,20 +18,32 @@
|
|
|
18
18
|
export * from './__legacy__/client';
|
|
19
19
|
export * from './__legacy__/models';
|
|
20
20
|
export * from './IsomorphicCrypto';
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
21
|
+
export { default as initializeEmbeddedSignInFlow } from './api/initializeEmbeddedSignInFlow';
|
|
22
|
+
export { default as executeEmbeddedSignInFlow } from './api/executeEmbeddedSignInFlow';
|
|
23
|
+
export { default as executeEmbeddedSignUpFlow } from './api/executeEmbeddedSignUpFlow';
|
|
23
24
|
export { default as getUserInfo } from './api/getUserInfo';
|
|
25
|
+
export { default as getScim2Me, GetScim2MeConfig } from './api/getScim2Me';
|
|
26
|
+
export { default as getSchemas, GetSchemasConfig } from './api/getSchemas';
|
|
27
|
+
export { default as getAllOrganizations, PaginatedOrganizationsResponse, GetAllOrganizationsConfig, } from './api/getAllOrganizations';
|
|
28
|
+
export { default as createOrganization, CreateOrganizationPayload, CreateOrganizationConfig, } from './api/createOrganization';
|
|
29
|
+
export { default as getMeOrganizations, GetMeOrganizationsConfig } from './api/getMeOrganizations';
|
|
30
|
+
export { default as getOrganization, OrganizationDetails, GetOrganizationConfig } from './api/getOrganization';
|
|
31
|
+
export { default as updateOrganization, createPatchOperations, UpdateOrganizationConfig } from './api/updateOrganization';
|
|
32
|
+
export { default as updateMeProfile, UpdateMeProfileConfig } from './api/updateMeProfile';
|
|
24
33
|
export { default as ApplicationNativeAuthenticationConstants } from './constants/ApplicationNativeAuthenticationConstants';
|
|
25
34
|
export { default as TokenConstants } from './constants/TokenConstants';
|
|
26
35
|
export { default as OIDCRequestConstants } from './constants/OIDCRequestConstants';
|
|
36
|
+
export { default as VendorConstants } from './constants/VendorConstants';
|
|
27
37
|
export { default as AsgardeoError } from './errors/AsgardeoError';
|
|
28
38
|
export { default as AsgardeoAPIError } from './errors/AsgardeoAPIError';
|
|
29
39
|
export { default as AsgardeoRuntimeError } from './errors/AsgardeoRuntimeError';
|
|
30
40
|
export { AsgardeoAuthException } from './errors/exception';
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
41
|
+
export { EmbeddedSignInFlowInitiateResponse, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignInFlowStepType, EmbeddedSignInFlowAuthenticator, EmbeddedSignInFlowLink, EmbeddedSignInFlowHandleRequestPayload, EmbeddedSignInFlowHandleResponse, EmbeddedSignInFlowAuthenticatorParamType, EmbeddedSignInFlowAuthenticatorPromptType, EmbeddedSignInFlowAuthenticatorKnownIdPType, } from './models/embedded-signin-flow';
|
|
42
|
+
export { EmbeddedFlowType, EmbeddedFlowStatus, EmbeddedFlowExecuteResponse, EmbeddedFlowResponseType, EmbeddedSignUpFlowData, EmbeddedFlowComponent, EmbeddedFlowComponentType, EmbeddedFlowExecuteRequestPayload, EmbeddedFlowExecuteRequestConfig, } from './models/embedded-flow';
|
|
43
|
+
export { FlowMode } from './models/flow';
|
|
44
|
+
export { AsgardeoClient, SignInOptions, SignOutOptions, SignUpOptions } from './models/client';
|
|
33
45
|
export { BaseConfig, Config, Preferences, ThemePreferences, I18nPreferences, WithPreferences } from './models/config';
|
|
34
|
-
export { TokenResponse,
|
|
46
|
+
export { TokenResponse, IdToken, TokenExchangeRequestConfig } from './models/token';
|
|
35
47
|
export { Crypto, JWKInterface } from './models/crypto';
|
|
36
48
|
export { OAuthResponseMode } from './models/oauth-response';
|
|
37
49
|
export { AuthorizeRequestUrlParams, KnownExtendedAuthorizeRequestUrlParams, ExtendedAuthorizeRequestUrlParams, } from './models/oauth-request';
|
|
@@ -39,6 +51,7 @@ export { OIDCEndpoints } from './models/oidc-endpoints';
|
|
|
39
51
|
export { Storage, TemporaryStore } from './models/store';
|
|
40
52
|
export { User, UserProfile } from './models/user';
|
|
41
53
|
export { SessionData } from './models/session';
|
|
54
|
+
export { Organization } from './models/organization';
|
|
42
55
|
export { Schema, SchemaAttribute, WellKnownSchemaIds, FlattenedSchema } from './models/scim2-schema';
|
|
43
56
|
export { RecursivePartial } from './models/utility-types';
|
|
44
57
|
export { FieldType } from './models/field';
|
|
@@ -54,10 +67,12 @@ export { default as generateUserProfile } from './utils/generateUserProfile';
|
|
|
54
67
|
export { default as getLatestStateParam } from './utils/getLatestStateParam';
|
|
55
68
|
export { default as generateFlattenedUserProfile } from './utils/generateFlattenedUserProfile';
|
|
56
69
|
export { default as getI18nBundles } from './utils/getI18nBundles';
|
|
70
|
+
export { default as isEmpty } from './utils/isEmpty';
|
|
57
71
|
export { default as set } from './utils/set';
|
|
58
72
|
export { default as get } from './utils/get';
|
|
59
73
|
export { default as removeTrailingSlash } from './utils/removeTrailingSlash';
|
|
60
74
|
export { default as resolveFieldType } from './utils/resolveFieldType';
|
|
61
75
|
export { default as resolveFieldName } from './utils/resolveFieldName';
|
|
62
76
|
export { default as processOpenIDScopes } from './utils/processOpenIDScopes';
|
|
77
|
+
export { default as withVendorCSSClassPrefix } from './utils/withVendorCSSClassPrefix';
|
|
63
78
|
export { default as StorageManager } from './StorageManager';
|