@thunderid/javascript 0.0.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/LICENSE +201 -0
- package/dist/DefaultCacheStore.d.ts +31 -0
- package/dist/DefaultCacheStore.d.ts.map +1 -0
- package/dist/DefaultCrypto.d.ts +30 -0
- package/dist/DefaultCrypto.d.ts.map +1 -0
- package/dist/HttpClient.d.ts +65 -0
- package/dist/HttpClient.d.ts.map +1 -0
- package/dist/IsomorphicCrypto.d.ts +64 -0
- package/dist/IsomorphicCrypto.d.ts.map +1 -0
- package/dist/StorageManager.d.ts +66 -0
- package/dist/StorageManager.d.ts.map +1 -0
- package/dist/ThunderIDJavaScriptClient.d.ts +66 -0
- package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -0
- package/dist/__legacy__/client.d.ts +485 -0
- package/dist/__legacy__/client.d.ts.map +1 -0
- package/dist/__legacy__/helpers/authentication-helper.d.ts +38 -0
- package/dist/__legacy__/helpers/authentication-helper.d.ts.map +1 -0
- package/dist/__legacy__/helpers/index.d.ts +19 -0
- package/dist/__legacy__/helpers/index.d.ts.map +1 -0
- package/dist/__legacy__/models/client-config.d.ts +106 -0
- package/dist/__legacy__/models/client-config.d.ts.map +1 -0
- package/dist/__legacy__/models/index.d.ts +19 -0
- package/dist/__legacy__/models/index.d.ts.map +1 -0
- package/dist/api/createOrganization.d.ts +130 -0
- package/dist/api/createOrganization.d.ts.map +1 -0
- package/dist/api/executeEmbeddedSignInFlow.d.ts +22 -0
- package/dist/api/executeEmbeddedSignInFlow.d.ts.map +1 -0
- package/dist/api/executeEmbeddedSignUpFlow.d.ts +45 -0
- package/dist/api/executeEmbeddedSignUpFlow.d.ts.map +1 -0
- package/dist/api/getAllOrganizations.d.ts +104 -0
- package/dist/api/getAllOrganizations.d.ts.map +1 -0
- package/dist/api/getBrandingPreference.d.ts +104 -0
- package/dist/api/getBrandingPreference.d.ts.map +1 -0
- package/dist/api/getMeOrganizations.d.ts +120 -0
- package/dist/api/getMeOrganizations.d.ts.map +1 -0
- package/dist/api/getOrganization.d.ts +110 -0
- package/dist/api/getOrganization.d.ts.map +1 -0
- package/dist/api/getSchemas.d.ts +90 -0
- package/dist/api/getSchemas.d.ts.map +1 -0
- package/dist/api/getScim2Me.d.ts +90 -0
- package/dist/api/getScim2Me.d.ts.map +1 -0
- package/dist/api/getUserInfo.d.ts +38 -0
- package/dist/api/getUserInfo.d.ts.map +1 -0
- package/dist/api/initializeEmbeddedSignInFlow.d.ts +52 -0
- package/dist/api/initializeEmbeddedSignInFlow.d.ts.map +1 -0
- package/dist/api/updateMeProfile.d.ts +83 -0
- package/dist/api/updateMeProfile.d.ts.map +1 -0
- package/dist/api/updateOrganization.d.ts +119 -0
- package/dist/api/updateOrganization.d.ts.map +1 -0
- package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts +57 -0
- package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts.map +1 -0
- package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts +22 -0
- package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts.map +1 -0
- package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts +22 -0
- package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts.map +1 -0
- package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts +89 -0
- package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts.map +1 -0
- package/dist/api/v2/getFlowMetaV2.d.ts +56 -0
- package/dist/api/v2/getFlowMetaV2.d.ts.map +1 -0
- package/dist/api/v2/getOrganizationUnitChildren.d.ts +43 -0
- package/dist/api/v2/getOrganizationUnitChildren.d.ts.map +1 -0
- package/dist/cjs/index.cjs +7693 -0
- package/dist/constants/ApplicationNativeAuthenticationConstants.d.ts +40 -0
- package/dist/constants/ApplicationNativeAuthenticationConstants.d.ts.map +1 -0
- package/dist/constants/OIDCDiscoveryConstants.d.ts +65 -0
- package/dist/constants/OIDCDiscoveryConstants.d.ts.map +1 -0
- package/dist/constants/OIDCRequestConstants.d.ts +43 -0
- package/dist/constants/OIDCRequestConstants.d.ts.map +1 -0
- package/dist/constants/PKCEConstants.d.ts +45 -0
- package/dist/constants/PKCEConstants.d.ts.map +1 -0
- package/dist/constants/ScopeConstants.d.ts +43 -0
- package/dist/constants/ScopeConstants.d.ts.map +1 -0
- package/dist/constants/TokenConstants.d.ts +48 -0
- package/dist/constants/TokenConstants.d.ts.map +1 -0
- package/dist/constants/TokenExchangeConstants.d.ts +44 -0
- package/dist/constants/TokenExchangeConstants.d.ts.map +1 -0
- package/dist/constants/VendorConstants.d.ts +32 -0
- package/dist/constants/VendorConstants.d.ts.map +1 -0
- package/dist/constants/v2/OIDCDiscoveryConstants.d.ts +40 -0
- package/dist/constants/v2/OIDCDiscoveryConstants.d.ts.map +1 -0
- package/dist/edge/index.js +7568 -0
- package/dist/errors/ThunderIDAPIError.d.ts +59 -0
- package/dist/errors/ThunderIDAPIError.d.ts.map +1 -0
- package/dist/errors/ThunderIDError.d.ts +50 -0
- package/dist/errors/ThunderIDError.d.ts.map +1 -0
- package/dist/errors/ThunderIDRuntimeError.d.ts +51 -0
- package/dist/errors/ThunderIDRuntimeError.d.ts.map +1 -0
- package/dist/errors/exception.d.ts +27 -0
- package/dist/errors/exception.d.ts.map +1 -0
- package/dist/i18n/constants/TranslationBundleConstants.d.ts +35 -0
- package/dist/i18n/constants/TranslationBundleConstants.d.ts.map +1 -0
- package/dist/i18n/models/i18n.d.ts +127 -0
- package/dist/i18n/models/i18n.d.ts.map +1 -0
- package/dist/i18n/translations/en-US.d.ts +21 -0
- package/dist/i18n/translations/en-US.d.ts.map +1 -0
- package/dist/i18n/translations/fr-FR.d.ts +21 -0
- package/dist/i18n/translations/fr-FR.d.ts.map +1 -0
- package/dist/i18n/translations/hi-IN.d.ts +21 -0
- package/dist/i18n/translations/hi-IN.d.ts.map +1 -0
- package/dist/i18n/translations/index.d.ts +26 -0
- package/dist/i18n/translations/index.d.ts.map +1 -0
- package/dist/i18n/translations/ja-JP.d.ts +21 -0
- package/dist/i18n/translations/ja-JP.d.ts.map +1 -0
- package/dist/i18n/translations/pt-BR.d.ts +21 -0
- package/dist/i18n/translations/pt-BR.d.ts.map +1 -0
- package/dist/i18n/translations/pt-PT.d.ts +21 -0
- package/dist/i18n/translations/pt-PT.d.ts.map +1 -0
- package/dist/i18n/translations/si-LK.d.ts +21 -0
- package/dist/i18n/translations/si-LK.d.ts.map +1 -0
- package/dist/i18n/translations/ta-IN.d.ts +21 -0
- package/dist/i18n/translations/ta-IN.d.ts.map +1 -0
- package/dist/i18n/translations/te-IN.d.ts +21 -0
- package/dist/i18n/translations/te-IN.d.ts.map +1 -0
- package/dist/i18n/utils/getDefaultI18nBundles.d.ts +28 -0
- package/dist/i18n/utils/getDefaultI18nBundles.d.ts.map +1 -0
- package/dist/i18n/utils/normalizeTranslations.d.ts +42 -0
- package/dist/i18n/utils/normalizeTranslations.d.ts.map +1 -0
- package/dist/index.d.ts +143 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7568 -0
- package/dist/models/agent.d.ts +45 -0
- package/dist/models/agent.d.ts.map +1 -0
- package/dist/models/auth-code-response.d.ts +35 -0
- package/dist/models/auth-code-response.d.ts.map +1 -0
- package/dist/models/branding-preference.d.ts +249 -0
- package/dist/models/branding-preference.d.ts.map +1 -0
- package/dist/models/client.d.ts +213 -0
- package/dist/models/client.d.ts.map +1 -0
- package/dist/models/config.d.ts +483 -0
- package/dist/models/config.d.ts.map +1 -0
- package/dist/models/crypto.d.ts +101 -0
- package/dist/models/crypto.d.ts.map +1 -0
- package/dist/models/embedded-flow.d.ts +167 -0
- package/dist/models/embedded-flow.d.ts.map +1 -0
- package/dist/models/embedded-signin-flow.d.ts +100 -0
- package/dist/models/embedded-signin-flow.d.ts.map +1 -0
- package/dist/models/field.d.ts +32 -0
- package/dist/models/field.d.ts.map +1 -0
- package/dist/models/flow.d.ts +31 -0
- package/dist/models/flow.d.ts.map +1 -0
- package/dist/models/http.d.ts +46 -0
- package/dist/models/http.d.ts.map +1 -0
- package/dist/models/oauth-request.d.ts +24 -0
- package/dist/models/oauth-request.d.ts.map +1 -0
- package/dist/models/oauth-response.d.ts +19 -0
- package/dist/models/oauth-response.d.ts.map +1 -0
- package/dist/models/oidc-discovery.d.ts +370 -0
- package/dist/models/oidc-discovery.d.ts.map +1 -0
- package/dist/models/oidc-endpoints.d.ts +72 -0
- package/dist/models/oidc-endpoints.d.ts.map +1 -0
- package/dist/models/organization.d.ts +34 -0
- package/dist/models/organization.d.ts.map +1 -0
- package/dist/models/platforms.d.ts +38 -0
- package/dist/models/platforms.d.ts.map +1 -0
- package/dist/models/scim2-schema.d.ts +66 -0
- package/dist/models/scim2-schema.d.ts.map +1 -0
- package/dist/models/session.d.ts +32 -0
- package/dist/models/session.d.ts.map +1 -0
- package/dist/models/store.d.ts +84 -0
- package/dist/models/store.d.ts.map +1 -0
- package/dist/models/token-endpoint-auth.d.ts +30 -0
- package/dist/models/token-endpoint-auth.d.ts.map +1 -0
- package/dist/models/token.d.ts +181 -0
- package/dist/models/token.d.ts.map +1 -0
- package/dist/models/user.d.ts +34 -0
- package/dist/models/user.d.ts.map +1 -0
- package/dist/models/utility-types.d.ts +21 -0
- package/dist/models/utility-types.d.ts.map +1 -0
- package/dist/models/v2/embedded-flow-v2.d.ts +494 -0
- package/dist/models/v2/embedded-flow-v2.d.ts.map +1 -0
- package/dist/models/v2/embedded-recovery-flow-v2.d.ts +143 -0
- package/dist/models/v2/embedded-recovery-flow-v2.d.ts.map +1 -0
- package/dist/models/v2/embedded-signin-flow-v2.d.ts +340 -0
- package/dist/models/v2/embedded-signin-flow-v2.d.ts.map +1 -0
- package/dist/models/v2/embedded-signup-flow-v2.d.ts +272 -0
- package/dist/models/v2/embedded-signup-flow-v2.d.ts.map +1 -0
- package/dist/models/v2/extensions/components.d.ts +89 -0
- package/dist/models/v2/extensions/components.d.ts.map +1 -0
- package/dist/models/v2/flow-meta-v2.d.ts +299 -0
- package/dist/models/v2/flow-meta-v2.d.ts.map +1 -0
- package/dist/models/v2/organization-unit.d.ts +103 -0
- package/dist/models/v2/organization-unit.d.ts.map +1 -0
- package/dist/models/v2/translation.d.ts +35 -0
- package/dist/models/v2/translation.d.ts.map +1 -0
- package/dist/models/v2/vars.d.ts +36 -0
- package/dist/models/v2/vars.d.ts.map +1 -0
- package/dist/theme/createTheme.d.ts +23 -0
- package/dist/theme/createTheme.d.ts.map +1 -0
- package/dist/theme/types.d.ts +381 -0
- package/dist/theme/types.d.ts.map +1 -0
- package/dist/utils/arrayBufferToBase64url.d.ts +49 -0
- package/dist/utils/arrayBufferToBase64url.d.ts.map +1 -0
- package/dist/utils/base64Encode.d.ts +36 -0
- package/dist/utils/base64Encode.d.ts.map +1 -0
- package/dist/utils/base64urlToArrayBuffer.d.ts +56 -0
- package/dist/utils/base64urlToArrayBuffer.d.ts.map +1 -0
- package/dist/utils/bem.d.ts +47 -0
- package/dist/utils/bem.d.ts.map +1 -0
- package/dist/utils/deepMerge.d.ts +45 -0
- package/dist/utils/deepMerge.d.ts.map +1 -0
- package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts +48 -0
- package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts.map +1 -0
- package/dist/utils/extractPkceStorageKeyFromState.d.ts +33 -0
- package/dist/utils/extractPkceStorageKeyFromState.d.ts.map +1 -0
- package/dist/utils/extractTenantDomainFromIdTokenPayload.d.ts +32 -0
- package/dist/utils/extractTenantDomainFromIdTokenPayload.d.ts.map +1 -0
- package/dist/utils/extractUserClaimsFromIdToken.d.ts +47 -0
- package/dist/utils/extractUserClaimsFromIdToken.d.ts.map +1 -0
- package/dist/utils/flattenUserSchema.d.ts +65 -0
- package/dist/utils/flattenUserSchema.d.ts.map +1 -0
- package/dist/utils/formatDate.d.ts +34 -0
- package/dist/utils/formatDate.d.ts.map +1 -0
- package/dist/utils/generateFlattenedUserProfile.d.ts +54 -0
- package/dist/utils/generateFlattenedUserProfile.d.ts.map +1 -0
- package/dist/utils/generatePkceStorageKey.d.ts +35 -0
- package/dist/utils/generatePkceStorageKey.d.ts.map +1 -0
- package/dist/utils/generateStateParamForRequestCorrelation.d.ts +35 -0
- package/dist/utils/generateStateParamForRequestCorrelation.d.ts.map +1 -0
- package/dist/utils/generateUserProfile.d.ts +56 -0
- package/dist/utils/generateUserProfile.d.ts.map +1 -0
- package/dist/utils/get.d.ts +30 -0
- package/dist/utils/get.d.ts.map +1 -0
- package/dist/utils/getAuthorizeRequestUrlParams.d.ts +61 -0
- package/dist/utils/getAuthorizeRequestUrlParams.d.ts.map +1 -0
- package/dist/utils/getLatestStateParam.d.ts +41 -0
- package/dist/utils/getLatestStateParam.d.ts.map +1 -0
- package/dist/utils/getRedirectBasedSignUpUrl.d.ts +30 -0
- package/dist/utils/getRedirectBasedSignUpUrl.d.ts.map +1 -0
- package/dist/utils/identifyPlatform.d.ts +31 -0
- package/dist/utils/identifyPlatform.d.ts.map +1 -0
- package/dist/utils/isEmpty.d.ts +49 -0
- package/dist/utils/isEmpty.d.ts.map +1 -0
- package/dist/utils/isRecognizedBaseUrlPattern.d.ts +33 -0
- package/dist/utils/isRecognizedBaseUrlPattern.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +143 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/parseApiErrorMessage.d.ts +29 -0
- package/dist/utils/parseApiErrorMessage.d.ts.map +1 -0
- package/dist/utils/processOpenIDScopes.d.ts +42 -0
- package/dist/utils/processOpenIDScopes.d.ts.map +1 -0
- package/dist/utils/processUsername.d.ts +74 -0
- package/dist/utils/processUsername.d.ts.map +1 -0
- package/dist/utils/removeTrailingSlash.d.ts +32 -0
- package/dist/utils/removeTrailingSlash.d.ts.map +1 -0
- package/dist/utils/resolveFieldName.d.ts +20 -0
- package/dist/utils/resolveFieldName.d.ts.map +1 -0
- package/dist/utils/resolveFieldType.d.ts +21 -0
- package/dist/utils/resolveFieldType.d.ts.map +1 -0
- package/dist/utils/set.d.ts +31 -0
- package/dist/utils/set.d.ts.map +1 -0
- package/dist/utils/transformBrandingPreferenceToTheme.d.ts +49 -0
- package/dist/utils/transformBrandingPreferenceToTheme.d.ts.map +1 -0
- package/dist/utils/v2/containsMetaFlowTemplateLiteral.d.ts +57 -0
- package/dist/utils/v2/containsMetaFlowTemplateLiteral.d.ts.map +1 -0
- package/dist/utils/v2/countryCodeToFlagEmoji.d.ts +26 -0
- package/dist/utils/v2/countryCodeToFlagEmoji.d.ts.map +1 -0
- package/dist/utils/v2/extractEmojiFromUri.d.ts +32 -0
- package/dist/utils/v2/extractEmojiFromUri.d.ts.map +1 -0
- package/dist/utils/v2/isEmojiUri.d.ts +34 -0
- package/dist/utils/v2/isEmojiUri.d.ts.map +1 -0
- package/dist/utils/v2/isMetaFlowTemplateLiteral.d.ts +45 -0
- package/dist/utils/v2/isMetaFlowTemplateLiteral.d.ts.map +1 -0
- package/dist/utils/v2/isTranslationFlowTemplateLiteral.d.ts +45 -0
- package/dist/utils/v2/isTranslationFlowTemplateLiteral.d.ts.map +1 -0
- package/dist/utils/v2/parseFlowTemplateLiteral.d.ts +96 -0
- package/dist/utils/v2/parseFlowTemplateLiteral.d.ts.map +1 -0
- package/dist/utils/v2/resolveFlowTemplateLiterals.d.ts +42 -0
- package/dist/utils/v2/resolveFlowTemplateLiterals.d.ts.map +1 -0
- package/dist/utils/v2/resolveLocaleDisplayName.d.ts +30 -0
- package/dist/utils/v2/resolveLocaleDisplayName.d.ts.map +1 -0
- package/dist/utils/v2/resolveLocaleEmoji.d.ts +31 -0
- package/dist/utils/v2/resolveLocaleEmoji.d.ts.map +1 -0
- package/dist/utils/v2/resolveMeta.d.ts +35 -0
- package/dist/utils/v2/resolveMeta.d.ts.map +1 -0
- package/dist/utils/withVendorCSSClassPrefix.d.ts +33 -0
- package/dist/utils/withVendorCSSClassPrefix.d.ts.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025-2026, 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
|
+
export declare enum EmbeddedFlowType {
|
|
19
|
+
Authentication = "AUTHENTICATION",
|
|
20
|
+
Recovery = "RECOVERY",
|
|
21
|
+
Registration = "REGISTRATION",
|
|
22
|
+
UserOnboarding = "USER_ONBOARDING"
|
|
23
|
+
}
|
|
24
|
+
export interface EmbeddedFlowExecuteRequestPayload {
|
|
25
|
+
actionId?: string;
|
|
26
|
+
flowType: EmbeddedFlowType;
|
|
27
|
+
inputs?: Record<string, any>;
|
|
28
|
+
}
|
|
29
|
+
export interface EmbeddedFlowExecuteResponse {
|
|
30
|
+
data: EmbeddedSignUpFlowData;
|
|
31
|
+
flowId: string;
|
|
32
|
+
flowStatus: EmbeddedFlowStatus;
|
|
33
|
+
type: EmbeddedFlowResponseType;
|
|
34
|
+
}
|
|
35
|
+
export declare enum EmbeddedFlowStatus {
|
|
36
|
+
Complete = "COMPLETE",
|
|
37
|
+
Incomplete = "INCOMPLETE"
|
|
38
|
+
}
|
|
39
|
+
export declare enum EmbeddedFlowResponseType {
|
|
40
|
+
Redirection = "REDIRECTION",
|
|
41
|
+
View = "VIEW"
|
|
42
|
+
}
|
|
43
|
+
export interface EmbeddedSignUpFlowData {
|
|
44
|
+
additionalData?: Record<string, any>;
|
|
45
|
+
components?: EmbeddedFlowComponent[];
|
|
46
|
+
redirectURL?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface EmbeddedFlowComponent {
|
|
49
|
+
components: EmbeddedFlowComponent[];
|
|
50
|
+
config: Record<string, unknown>;
|
|
51
|
+
id: string;
|
|
52
|
+
type: EmbeddedFlowComponentType | string;
|
|
53
|
+
variant?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare enum EmbeddedFlowComponentType {
|
|
56
|
+
Button = "BUTTON",
|
|
57
|
+
Checkbox = "CHECKBOX",
|
|
58
|
+
Divider = "DIVIDER",
|
|
59
|
+
Form = "FORM",
|
|
60
|
+
Image = "IMAGE",
|
|
61
|
+
Input = "INPUT",
|
|
62
|
+
Radio = "RADIO",
|
|
63
|
+
Select = "SELECT",
|
|
64
|
+
Typography = "TYPOGRAPHY"
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Request configuration for executing embedded flow operations.
|
|
68
|
+
*
|
|
69
|
+
* This interface extends standard HTTP request configuration with additional
|
|
70
|
+
* properties specific to embedded flow execution, such as base URL and payload data.
|
|
71
|
+
*
|
|
72
|
+
* @template T - Type of the payload data being sent with the request
|
|
73
|
+
*/
|
|
74
|
+
export interface EmbeddedFlowExecuteRequestConfig<T = any> extends Partial<Request> {
|
|
75
|
+
/**
|
|
76
|
+
* Base URL for the API endpoint.
|
|
77
|
+
* This is typically the ThunderID organization URL.
|
|
78
|
+
*/
|
|
79
|
+
baseUrl?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Payload data to be sent with the request.
|
|
82
|
+
* The structure depends on the specific flow operation being executed.
|
|
83
|
+
*/
|
|
84
|
+
payload?: T;
|
|
85
|
+
/**
|
|
86
|
+
* Full URL for the API endpoint.
|
|
87
|
+
* If provided, this overrides the baseUrl.
|
|
88
|
+
*/
|
|
89
|
+
url?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Error response structure for ThunderIDV1 embedded flow operations.
|
|
93
|
+
*
|
|
94
|
+
* This interface defines the structure of error responses returned by ThunderIDV1 APIs
|
|
95
|
+
* when flow operations (such as sign-up or sign-in) fail. This format is distinct from
|
|
96
|
+
* ThunderIDV2's error format which uses `failureReason` instead of `code`/`description`.
|
|
97
|
+
*
|
|
98
|
+
* **Key Characteristics:**
|
|
99
|
+
* - Uses structured error codes (e.g., "FEE-60005") for programmatic error handling
|
|
100
|
+
* - Provides both a brief `message` and detailed `description` for context
|
|
101
|
+
* - Includes `flowType` to identify which flow operation failed
|
|
102
|
+
*
|
|
103
|
+
* **Comparison with ThunderIDV2:**
|
|
104
|
+
* - **ThunderIDV1**: Uses `code`, `message`, `description` fields
|
|
105
|
+
* - **ThunderIDV2**: Uses `flowStatus: "ERROR"` with `failureReason` field
|
|
106
|
+
*
|
|
107
|
+
* **Error Handling:**
|
|
108
|
+
* This error response format is automatically detected and processed by the
|
|
109
|
+
* `extractErrorMessage()` and `checkForErrorResponse()` functions in the React
|
|
110
|
+
* transformer to extract meaningful error messages for display to users.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* // Typical ThunderIDV1 error response
|
|
115
|
+
* const errorResponse: EmbeddedFlowExecuteErrorResponse = {
|
|
116
|
+
* code: "FEE-60005",
|
|
117
|
+
* message: "Error while provisioning user.",
|
|
118
|
+
* description: "Error occurred while provisioning user in the request of flow id: ac57315c-6ca6-49dc-8664-fcdcff354f46",
|
|
119
|
+
* flowType: "REGISTRATION"
|
|
120
|
+
* };
|
|
121
|
+
*
|
|
122
|
+
* // The transformer will extract: "Error occurred while provisioning user in the request of flow id: ac57315c-6ca6-49dc-8664-fcdcff354f46"
|
|
123
|
+
* // (Prefers description over message as it's usually more detailed)
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* @see {@link EmbeddedSignUpFlowErrorResponse} for the ThunderIDV2 equivalent error structure
|
|
127
|
+
*/
|
|
128
|
+
export interface EmbeddedFlowExecuteErrorResponse {
|
|
129
|
+
/**
|
|
130
|
+
* Structured error code identifying the type of error.
|
|
131
|
+
*
|
|
132
|
+
* Format typically follows pattern like "FEE-XXXXX" where:
|
|
133
|
+
* - "FEE" indicates Flow Execution Error
|
|
134
|
+
* - XXXXX is a numeric identifier for the specific error type
|
|
135
|
+
*
|
|
136
|
+
* @example "FEE-60005" - User provisioning error
|
|
137
|
+
*/
|
|
138
|
+
code: string;
|
|
139
|
+
/**
|
|
140
|
+
* Detailed error description with contextual information.
|
|
141
|
+
*
|
|
142
|
+
* This field usually contains more specific information about the error,
|
|
143
|
+
* including flow IDs, operation details, and other debugging context.
|
|
144
|
+
* The transformer prefers this field over `message` when extracting
|
|
145
|
+
* error messages for display to users.
|
|
146
|
+
*
|
|
147
|
+
* @example "Error occurred while provisioning user in the request of flow id: ac57315c-6ca6-49dc-8664-fcdcff354f46"
|
|
148
|
+
*/
|
|
149
|
+
description: string;
|
|
150
|
+
/**
|
|
151
|
+
* Type of flow operation that encountered the error.
|
|
152
|
+
*
|
|
153
|
+
* Currently only supports 'REGISTRATION' but may be extended to
|
|
154
|
+
* include other flow types (e.g., 'LOGIN', 'PASSWORD_RESET') in the future.
|
|
155
|
+
*/
|
|
156
|
+
flowType: 'REGISTRATION' | 'RECOVERY';
|
|
157
|
+
/**
|
|
158
|
+
* Brief error message describing what went wrong.
|
|
159
|
+
*
|
|
160
|
+
* This is typically a short, high-level description of the error.
|
|
161
|
+
* For more detailed information, refer to the `description` field.
|
|
162
|
+
*
|
|
163
|
+
* @example "Error while provisioning user."
|
|
164
|
+
*/
|
|
165
|
+
message: string;
|
|
166
|
+
}
|
|
167
|
+
//# sourceMappingURL=embedded-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-flow.d.ts","sourceRoot":"","sources":["../../src/models/embedded-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oBAAY,gBAAgB;IAC1B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,cAAc,oBAAoB;CACnC;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,kBAAkB,CAAC;IAC/B,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAED,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,oBAAY,wBAAwB;IAClC,WAAW,gBAAgB;IAC3B,IAAI,SAAS;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,yBAAyB,GAAG,MAAM,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,yBAAyB;IACnC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,gCAAgC,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,OAAO,CAAC,OAAO,CAAC;IACjF;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC;IAEZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;;;;;;;OAQG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;;OASG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,QAAQ,EAAE,cAAc,GAAG,UAAU,CAAC;IAEtC;;;;;;;OAOG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
export interface EmbeddedSignInFlowInitiateResponse {
|
|
19
|
+
flowId: string;
|
|
20
|
+
flowStatus: EmbeddedSignInFlowStatus;
|
|
21
|
+
flowType: EmbeddedSignInFlowType;
|
|
22
|
+
links: EmbeddedSignInFlowLink[];
|
|
23
|
+
nextStep: {
|
|
24
|
+
authenticators: EmbeddedSignInFlowAuthenticator[];
|
|
25
|
+
stepType: EmbeddedSignInFlowStepType;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare enum EmbeddedSignInFlowStatus {
|
|
29
|
+
FailCompleted = "FAIL_COMPLETED",
|
|
30
|
+
FailIncomplete = "FAIL_INCOMPLETE",
|
|
31
|
+
Incomplete = "INCOMPLETE",
|
|
32
|
+
SuccessCompleted = "SUCCESS_COMPLETED"
|
|
33
|
+
}
|
|
34
|
+
export declare enum EmbeddedSignInFlowType {
|
|
35
|
+
Authentication = "AUTHENTICATION"
|
|
36
|
+
}
|
|
37
|
+
export declare enum EmbeddedSignInFlowStepType {
|
|
38
|
+
AuthenticatorPrompt = "AUTHENTICATOR_PROMPT",
|
|
39
|
+
MultiOptionsPrompt = "MULTI_OPTIONS_PROMPT"
|
|
40
|
+
}
|
|
41
|
+
export interface EmbeddedSignInFlowAuthenticator {
|
|
42
|
+
authenticator: string;
|
|
43
|
+
authenticatorId: string;
|
|
44
|
+
idp: string;
|
|
45
|
+
metadata: {
|
|
46
|
+
i18nKey: string;
|
|
47
|
+
params: {
|
|
48
|
+
confidential: boolean;
|
|
49
|
+
displayName: string;
|
|
50
|
+
i18nKey: string;
|
|
51
|
+
order: number;
|
|
52
|
+
param: string;
|
|
53
|
+
type: EmbeddedSignInFlowAuthenticatorParamType;
|
|
54
|
+
}[];
|
|
55
|
+
promptType: EmbeddedSignInFlowAuthenticatorPromptType;
|
|
56
|
+
};
|
|
57
|
+
requiredParams: string[];
|
|
58
|
+
}
|
|
59
|
+
export interface EmbeddedSignInFlowLink {
|
|
60
|
+
href: string;
|
|
61
|
+
method: string;
|
|
62
|
+
name: string;
|
|
63
|
+
}
|
|
64
|
+
export interface EmbeddedSignInFlowHandleRequestPayload {
|
|
65
|
+
flowId: string;
|
|
66
|
+
selectedAuthenticator: {
|
|
67
|
+
authenticatorId: string;
|
|
68
|
+
params: Record<string, string>;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export interface EmbeddedSignInFlowHandleResponse {
|
|
72
|
+
authData: Record<string, any>;
|
|
73
|
+
flowStatus: string;
|
|
74
|
+
}
|
|
75
|
+
export declare enum EmbeddedSignInFlowAuthenticatorParamType {
|
|
76
|
+
Integer = "INTEGER",
|
|
77
|
+
MultiValued = "MULTI_VALUED",
|
|
78
|
+
String = "STRING"
|
|
79
|
+
}
|
|
80
|
+
export declare enum EmbeddedSignInFlowAuthenticatorExtendedParamType {
|
|
81
|
+
Otp = "OTPCode"
|
|
82
|
+
}
|
|
83
|
+
export declare enum EmbeddedSignInFlowAuthenticatorKnownIdPType {
|
|
84
|
+
Local = "LOCAL"
|
|
85
|
+
}
|
|
86
|
+
export declare enum EmbeddedSignInFlowAuthenticatorPromptType {
|
|
87
|
+
/**
|
|
88
|
+
* Prompt for internal system use, such as API keys or tokens.
|
|
89
|
+
*/
|
|
90
|
+
InternalPrompt = "INTERNAL_PROMPT",
|
|
91
|
+
/**
|
|
92
|
+
* Prompt for redirection to another page or service.
|
|
93
|
+
*/
|
|
94
|
+
RedirectionPrompt = "REDIRECTION_PROMPT",
|
|
95
|
+
/**
|
|
96
|
+
* Prompt for user input, typically for username/password or similar credentials.
|
|
97
|
+
*/
|
|
98
|
+
UserPrompt = "USER_PROMPT"
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=embedded-signin-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-signin-flow.d.ts","sourceRoot":"","sources":["../../src/models/embedded-signin-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,wBAAwB,CAAC;IACrC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,QAAQ,EAAE;QACR,cAAc,EAAE,+BAA+B,EAAE,CAAC;QAClD,QAAQ,EAAE,0BAA0B,CAAC;KACtC,CAAC;CACH;AAED,oBAAY,wBAAwB;IAClC,aAAa,mBAAmB;IAChC,cAAc,oBAAoB;IAClC,UAAU,eAAe;IACzB,gBAAgB,sBAAsB;CACvC;AAED,oBAAY,sBAAsB;IAChC,cAAc,mBAAmB;CAClC;AAED,oBAAY,0BAA0B;IACpC,mBAAmB,yBAAyB;IAC5C,kBAAkB,yBAAyB;CAC5C;AAED,MAAM,WAAW,+BAA+B;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE;YACN,YAAY,EAAE,OAAO,CAAC;YACtB,WAAW,EAAE,MAAM,CAAC;YACpB,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,wCAAwC,CAAC;SAChD,EAAE,CAAC;QACJ,UAAU,EAAE,yCAAyC,CAAC;KACvD,CAAC;IACF,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sCAAsC;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,CAAC;CACH;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,oBAAY,wCAAwC;IAClD,OAAO,YAAY;IACnB,WAAW,iBAAiB;IAC5B,MAAM,WAAW;CAClB;AAED,oBAAY,gDAAgD;IAC1D,GAAG,YAAY;CAChB;AAED,oBAAY,2CAA2C;IACrD,KAAK,UAAU;CAChB;AAED,oBAAY,yCAAyC;IACnD;;OAEG;IACH,cAAc,oBAAoB;IAClC;;OAEG;IACH,iBAAiB,uBAAuB;IACxC;;OAEG;IACH,UAAU,gBAAgB;CAC3B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
export declare enum FieldType {
|
|
19
|
+
Checkbox = "CHECKBOX",
|
|
20
|
+
Date = "DATE",
|
|
21
|
+
Email = "EMAIL",
|
|
22
|
+
Number = "NUMBER",
|
|
23
|
+
Otp = "OTP",
|
|
24
|
+
Password = "PASSWORD",
|
|
25
|
+
Radio = "RADIO",
|
|
26
|
+
Select = "SELECT",
|
|
27
|
+
Tel = "TEL",
|
|
28
|
+
Text = "TEXT",
|
|
29
|
+
Textarea = "TEXTAREA",
|
|
30
|
+
Time = "TIME"
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/models/field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd"}
|
|
@@ -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
|
+
export declare enum FlowMode {
|
|
19
|
+
/**
|
|
20
|
+
* This mode is suitable for embedded sign-in, sign-up, etc. flows where the authentication
|
|
21
|
+
* UIs are rendered within the application.
|
|
22
|
+
* @see {@link https://is.docs.wso2.com/en/7.1.0/references/app-native-authentication/}
|
|
23
|
+
*/
|
|
24
|
+
Embedded = "DIRECT",
|
|
25
|
+
/**
|
|
26
|
+
* Traditional redirect based sign-in, sign-up, etc. flows where the authentication
|
|
27
|
+
* UIs are from a external Identity Provider (ex: WSO2 Identity Server or ThunderID).
|
|
28
|
+
*/
|
|
29
|
+
Redirect = "REDIRECTION"
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/models/flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oBAAY,QAAQ;IAClB;;;;OAIG;IACH,QAAQ,WAAW;IACnB;;;OAGG;IACH,QAAQ,gBAAgB;CACzB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
export interface HttpResponse<T = any> {
|
|
19
|
+
config: HttpRequestConfig;
|
|
20
|
+
data: T;
|
|
21
|
+
headers: Record<string, string>;
|
|
22
|
+
status: number;
|
|
23
|
+
statusText: string;
|
|
24
|
+
}
|
|
25
|
+
export interface HttpError extends Error {
|
|
26
|
+
code?: string;
|
|
27
|
+
config?: HttpRequestConfig;
|
|
28
|
+
response?: {
|
|
29
|
+
data?: any;
|
|
30
|
+
headers?: Record<string, string>;
|
|
31
|
+
status: number;
|
|
32
|
+
statusText?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface HttpRequestConfig extends Omit<RequestInit, 'body' | 'headers' | 'method'> {
|
|
36
|
+
attachToken?: boolean;
|
|
37
|
+
data?: any;
|
|
38
|
+
headers?: Record<string, string>;
|
|
39
|
+
method?: string;
|
|
40
|
+
params?: Record<string, any>;
|
|
41
|
+
shouldAttachIDPAccessToken?: boolean;
|
|
42
|
+
shouldEncodeToFormData?: boolean;
|
|
43
|
+
startTimeInMs?: number;
|
|
44
|
+
url?: string;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/models/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG;IACnC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,GAAG,CAAC;QACX,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACzF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
|
|
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
|
+
export type AuthorizeRequestUrlParams = Omit<ExtendedAuthorizeRequestUrlParams, 'forceInit'>;
|
|
19
|
+
export interface KnownExtendedAuthorizeRequestUrlParams {
|
|
20
|
+
fidp?: string;
|
|
21
|
+
forceInit?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export type ExtendedAuthorizeRequestUrlParams = KnownExtendedAuthorizeRequestUrlParams & Record<string, string | boolean>;
|
|
24
|
+
//# sourceMappingURL=oauth-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-request.d.ts","sourceRoot":"","sources":["../../src/models/oauth-request.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,iCAAiC,EAAE,WAAW,CAAC,CAAC;AAE7F,MAAM,WAAW,sCAAsC;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,iCAAiC,GAAG,sCAAsC,GACpF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export type OAuthResponseMode = 'form_post' | 'query' | 'direct';
|
|
19
|
+
//# sourceMappingURL=oauth-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-response.d.ts","sourceRoot":"","sources":["../../src/models/oauth-response.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC"}
|