@thunderid/javascript 0.0.5 → 0.2.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/README.md +3 -2
- package/dist/HttpClient.d.ts.map +1 -1
- package/dist/StorageManager.d.ts +10 -4
- package/dist/StorageManager.d.ts.map +1 -1
- package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
- package/dist/api/createOrganization.d.ts +2 -2
- package/dist/api/executeEmbeddedSignUpFlow.d.ts +1 -1
- package/dist/api/getAllOrganizations.d.ts +2 -2
- package/dist/api/getBrandingPreference.d.ts +2 -2
- package/dist/api/getMeOrganizations.d.ts +2 -2
- package/dist/api/getOrganization.d.ts +2 -2
- package/dist/api/getSchemas.d.ts +2 -2
- package/dist/api/getScim2Me.d.ts +2 -2
- package/dist/api/getUserInfo.d.ts +1 -1
- package/dist/api/initializeEmbeddedSignInFlow.d.ts +1 -1
- package/dist/api/updateMeProfile.d.ts +2 -2
- package/dist/api/updateOrganization.d.ts +3 -3
- package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts +2 -2
- package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts.map +1 -1
- package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts +1 -1
- package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts.map +1 -1
- package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts +1 -1
- package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts.map +1 -1
- package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts +4 -4
- package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts.map +1 -1
- package/dist/cjs/index.cjs +269 -149
- package/dist/edge/index.js +269 -149
- package/dist/errors/ThunderIDAPIError.d.ts +3 -3
- package/dist/errors/ThunderIDAPIError.d.ts.map +1 -1
- package/dist/errors/ThunderIDRuntimeError.d.ts +2 -2
- package/dist/errors/ThunderIDRuntimeError.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +269 -149
- package/dist/models/config.d.ts +10 -3
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/embedded-flow.d.ts +1 -6
- package/dist/models/embedded-flow.d.ts.map +1 -1
- package/dist/models/store.d.ts +9 -1
- package/dist/models/store.d.ts.map +1 -1
- package/dist/models/v2/embedded-flow-v2.d.ts +63 -7
- package/dist/models/v2/embedded-flow-v2.d.ts.map +1 -1
- package/dist/models/v2/embedded-recovery-flow-v2.d.ts +4 -15
- package/dist/models/v2/embedded-recovery-flow-v2.d.ts.map +1 -1
- package/dist/models/v2/embedded-signin-flow-v2.d.ts +12 -7
- package/dist/models/v2/embedded-signin-flow-v2.d.ts.map +1 -1
- package/dist/models/v2/embedded-signup-flow-v2.d.ts +21 -54
- package/dist/models/v2/embedded-signup-flow-v2.d.ts.map +1 -1
- package/dist/theme/createTheme.d.ts.map +1 -1
- package/dist/utils/AuthenticationHelper.d.ts.map +1 -1
- package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts +3 -11
- package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts.map +1 -1
- package/dist/utils/identifyPlatform.d.ts.map +1 -1
- package/dist/utils/isRecognizedBaseUrlPattern.d.ts +1 -1
- package/dist/utils/parseApiErrorMessage.d.ts +1 -1
- package/dist/utils/v2/injectRequestedPermissions.d.ts +26 -0
- package/dist/utils/v2/injectRequestedPermissions.d.ts.map +1 -0
- package/package.json +9 -6
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 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
|
+
/**
|
|
19
|
+
* Strips the top-level `scopes` field from a payload and injects it as
|
|
20
|
+
* `inputs.requested_permissions` (space-separated string).
|
|
21
|
+
*
|
|
22
|
+
* The backend reads requested_permissions from UserInputs (the `inputs` map), not a top-level field.
|
|
23
|
+
*/
|
|
24
|
+
declare const injectRequestedPermissions: (payload: Record<string, unknown>) => Record<string, unknown>;
|
|
25
|
+
export default injectRequestedPermissions;
|
|
26
|
+
//# sourceMappingURL=injectRequestedPermissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectRequestedPermissions.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/injectRequestedPermissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;GAKG;AACH,QAAA,MAAM,0BAA0B,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CA0B5F,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thunderid/javascript",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "JavaScript Ecosystem SDK for ThunderID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"thunderid",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"author": "WSO2",
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"type": "module",
|
|
19
|
+
"sideEffects": false,
|
|
19
20
|
"main": "dist/cjs/index.cjs",
|
|
20
21
|
"module": "dist/index.js",
|
|
21
22
|
"exports": {
|
|
@@ -41,9 +42,9 @@
|
|
|
41
42
|
"rimraf": "6.1.3",
|
|
42
43
|
"rolldown": "1.0.0-beta.45",
|
|
43
44
|
"typescript": "5.9.3",
|
|
44
|
-
"vitest": "4.1.
|
|
45
|
-
"@thunderid/
|
|
46
|
-
"@thunderid/
|
|
45
|
+
"vitest": "4.1.6",
|
|
46
|
+
"@thunderid/prettier-config": "^0.0.0",
|
|
47
|
+
"@thunderid/eslint-plugin": "^0.0.0"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
50
|
"jose": "5.2.0",
|
|
@@ -53,8 +54,10 @@
|
|
|
53
54
|
"access": "public"
|
|
54
55
|
},
|
|
55
56
|
"scripts": {
|
|
56
|
-
"build": "pnpm clean &&
|
|
57
|
-
"clean": "
|
|
57
|
+
"build": "pnpm clean:dist && rolldown -c rolldown.config.js && tsc -p tsconfig.lib.json --emitDeclarationOnly --outDir dist",
|
|
58
|
+
"clean": "pnpm clean:node_modules && pnpm clean:dist",
|
|
59
|
+
"clean:dist": "rimraf dist",
|
|
60
|
+
"clean:node_modules": "rimraf node_modules",
|
|
58
61
|
"format:check": "prettier --check --cache .",
|
|
59
62
|
"format:fix": "prettier --write --cache .",
|
|
60
63
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs",
|