cidaas-javascript-sdk 2.0.7 → 2.0.8

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 CHANGED
@@ -16,9 +16,9 @@ This cidaas Javascript SDK library is built on the top of [OIDC client javascrip
16
16
  From CDN
17
17
 
18
18
  ```html
19
- <!-- Release version 2.0.7 -->
19
+ <!-- Release version 2.0.8 -->
20
20
  <!-- Minified version -->
21
- <script src="https://cdn.cidaas.de/javascript/oidc/2.0.7/cidaas-javascript-sdk.min.js"></script>
21
+ <script src="https://cdn.cidaas.de/javascript/oidc/2.0.8/cidaas-javascript-sdk.min.js"></script>
22
22
  ```
23
23
 
24
24
  From npm
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "cidaas-javascript-sdk",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "author": "cidaas by Widas ID GmbH",
5
5
  "description": "Cidaas native javascript sdk",
6
6
  "license": "MIT",
7
7
  "main": "src/main/index.js",
8
+ "types": "types/main/index.d.ts",
8
9
  "engine": {
9
10
  "node": ">=8.9.10"
10
11
  },
11
12
  "scripts": {
12
13
  "dev": "webpack --config webpack.dev.js",
13
- "build": "webpack --config webpack.prod.js",
14
+ "build": "npm run build-types && webpack --config webpack.prod.js",
14
15
  "test": "jest --coverage",
15
- "test:coverage": "jest --coverage"
16
+ "test:coverage": "jest --coverage",
17
+ "build-types": "npx -p typescript tsc src/**/*.js --declaration --allowJs --emitDeclarationOnly --outDir types"
16
18
  },
17
19
  "dependencies": {
18
20
  "crypto-js": "^3.1.9-1",
@@ -22,6 +24,7 @@
22
24
  "compression-webpack-plugin": "^7.1.2",
23
25
  "jest": "26.6.3",
24
26
  "terser-webpack-plugin": "^5.1.1",
27
+ "typescript": "^4.5.4",
25
28
  "webpack": "^5.27.2",
26
29
  "webpack-cli": "^4.5.0",
27
30
  "webpack-dev-server": "^3.11.2",
package/tsconfig.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ // Change this to match your project
3
+ "include": ["src/**/*"],
4
+ "compilerOptions": {
5
+ // Tells TypeScript to read JS files, as
6
+ // normally they are ignored as source files
7
+ "allowJs": true,
8
+ // Generate d.ts files
9
+ "declaration": true,
10
+ // This compiler run should
11
+ // only output d.ts files
12
+ "emitDeclarationOnly": true,
13
+ // Types should go into this directory.
14
+ // Removing this would place the .d.ts files
15
+ // next to the .js files
16
+ "outDir": "dist",
17
+ // go to js file when using IDE functions like
18
+ // "Go to Definition" in VSCode
19
+ "declarationMap": true
20
+ }
21
+ }
@@ -0,0 +1,15 @@
1
+ export = Authentication;
2
+ declare function Authentication(): void;
3
+ declare class Authentication {
4
+ redirectSignIn(view_type: any): void;
5
+ redirectSignInCallback(): Promise<any>;
6
+ redirectSignOut(): Promise<any>;
7
+ redirectSignOutCallback(): Promise<any>;
8
+ popupSignIn(): void;
9
+ popupSignInCallback(): void;
10
+ popupSignOut(): void;
11
+ popupSignOutCallback(): void;
12
+ silentSignIn(): void;
13
+ silentSignInCallback(): void;
14
+ silentSignInCallbackV2(): Promise<any>;
15
+ }
@@ -0,0 +1,5 @@
1
+ import WebAuth = require("./web-auth/webauth");
2
+ import CustomException = require("./web-auth/exception");
3
+ import Authentication = require("./authentication");
4
+ export declare const Version: any;
5
+ export { WebAuth, CustomException, Authentication };
@@ -0,0 +1,7 @@
1
+ export = CustomException;
2
+ declare function CustomException(errorMessage: any, statusCode: any): void;
3
+ declare class CustomException {
4
+ constructor(errorMessage: any, statusCode: any);
5
+ message: any;
6
+ status: any;
7
+ }
@@ -0,0 +1,130 @@
1
+ export = WebAuth;
2
+ declare function WebAuth(settings: any): void;
3
+ declare class WebAuth {
4
+ constructor(settings: any);
5
+ loginWithBrowser(): void;
6
+ registerWithBrowser(): void;
7
+ loginCallback(): Promise<any>;
8
+ getUserInfo(): Promise<any>;
9
+ getUserProfile(options: any): Promise<any>;
10
+ getProfileInfo(access_token: any): Promise<any>;
11
+ logout(): Promise<any>;
12
+ logoutCallback(): Promise<any>;
13
+ renewToken(options: any): Promise<any>;
14
+ generateCodeVerifier(): void;
15
+ generateRandomString(length: any): string;
16
+ generateCodeChallenge(code_verifier: any): any;
17
+ base64URL(string: any): any;
18
+ getLoginURL(): string;
19
+ getAccessToken(options: any): Promise<any>;
20
+ validateAccessToken(options: any): Promise<any>;
21
+ getRequestId(): Promise<any>;
22
+ loginWithCredentials(options: any): void;
23
+ loginWithSocial(options: any, queryParams: any): void;
24
+ registerWithSocial(options: any, queryParams: any): void;
25
+ getMissingFields(options: any): Promise<any>;
26
+ getTenantInfo(): Promise<any>;
27
+ logoutUser(options: any): void;
28
+ getClientInfo(options: any): Promise<any>;
29
+ getRegistrationSetup(options: any): Promise<any>;
30
+ register(options: any, headers: any): Promise<any>;
31
+ getInviteUserDetails(options: any): Promise<any>;
32
+ getCommunicationStatus(options: any): Promise<any>;
33
+ initiateAccountVerification(options: any): void;
34
+ verifyAccount(options: any): Promise<any>;
35
+ initiateResetPassword(options: any): Promise<any>;
36
+ handleResetPassword(options: any): void;
37
+ resetPassword(options: any): void;
38
+ getMFAList(options: any): Promise<any>;
39
+ getMFAListV2(options: any): Promise<any>;
40
+ initiateMFAV2(options: any): Promise<any>;
41
+ initiateEmail(options: any): Promise<any>;
42
+ initiateEmailV2(options: any): Promise<any>;
43
+ initiateSMS(options: any): Promise<any>;
44
+ initiateSMSV2(options: any): Promise<any>;
45
+ initiateIVR(options: any): Promise<any>;
46
+ initiateIVRV2(options: any): Promise<any>;
47
+ initiateBackupcode(options: any): Promise<any>;
48
+ initiateBackupcodeV2(options: any): Promise<any>;
49
+ initiateTOTP(options: any): Promise<any>;
50
+ initiateTOTPV2(options: any): Promise<any>;
51
+ initiatePattern(options: any): Promise<any>;
52
+ initiatePatternV2(options: any): Promise<any>;
53
+ initiateTouchId(options: any): Promise<any>;
54
+ initiateTouchIdV2(options: any): Promise<any>;
55
+ initiateSmartPush(options: any): Promise<any>;
56
+ initiateSmartPushV2(options: any): Promise<any>;
57
+ initiateFace(options: any): Promise<any>;
58
+ initiateFaceV2(options: any): Promise<any>;
59
+ initiateVoice(options: any): Promise<any>;
60
+ initiateVoiceV2(options: any): Promise<any>;
61
+ authenticateMFAV2(options: any): Promise<any>;
62
+ cancelMFAV2(options: any): Promise<any>;
63
+ authenticateEmail(options: any): Promise<any>;
64
+ authenticateEmailV2(options: any): Promise<any>;
65
+ authenticateSMS(options: any): Promise<any>;
66
+ authenticateSMSV2(options: any): Promise<any>;
67
+ authenticateIVR(options: any): Promise<any>;
68
+ authenticateIVRV2(options: any): Promise<any>;
69
+ authenticateBackupcode(options: any): Promise<any>;
70
+ authenticateBackupcodeV2(options: any): Promise<any>;
71
+ authenticateTOTP(options: any): Promise<any>;
72
+ authenticateTOTPV2(options: any): Promise<any>;
73
+ passwordlessLogin(options: any): void;
74
+ getConsentDetails(options: any): Promise<any>;
75
+ getConsentDetailsV2(options: any): Promise<any>;
76
+ acceptConsent(options: any): Promise<any>;
77
+ acceptConsentV2(options: any): Promise<any>;
78
+ getScopeConsentDetails(options: any): Promise<any>;
79
+ getScopeConsentVersionDetailsV2(options: any): Promise<any>;
80
+ acceptScopeConsent(options: any): Promise<any>;
81
+ scopeConsentContinue(options: any): void;
82
+ getDeduplicationDetails(options: any): Promise<any>;
83
+ deduplicationLogin(options: any): void;
84
+ registerDeduplication(options: any): Promise<any>;
85
+ consentContinue(options: any): void;
86
+ mfaContinue(options: any): void;
87
+ firstTimeChangePassword(options: any): void;
88
+ changePassword(options: any, access_token: any): Promise<any>;
89
+ updateProfile(options: any, access_token: any, sub: any): Promise<any>;
90
+ getUserActivities(options: any, access_token: any): Promise<any>;
91
+ getUnreviewedDevices(access_token: any, sub: any): Promise<any>;
92
+ getReviewedDevices(access_token: any, sub: any): Promise<any>;
93
+ reviewDevice(options: any, access_token: any, sub: any): Promise<any>;
94
+ getAcceptedConsentList(options: any, access_token: any): Promise<any>;
95
+ viewAcceptedConsent(options: any, access_token: any): Promise<any>;
96
+ getConfiguredVerificationList(options: any, access_token: any): Promise<any>;
97
+ initiateLinkAccount(options: any, access_token: any): Promise<any>;
98
+ completeLinkAccount(options: any, access_token: any): Promise<any>;
99
+ getLinkedUsers(access_token: any, sub: any): Promise<any>;
100
+ unlinkAccount(access_token: any, identityId: any): Promise<any>;
101
+ getAllVerificationList(access_token: any): Promise<any>;
102
+ updateProfileImage(options: any, access_token: any): Promise<any>;
103
+ setupEmail(options: any): Promise<any>;
104
+ setupSMS(options: any): Promise<any>;
105
+ setupIVR(options: any): Promise<any>;
106
+ setupBackupcode(options: any, access_token: any): Promise<any>;
107
+ setupTOTP(options: any, access_token: any): Promise<any>;
108
+ setupPattern(options: any, access_token: any): Promise<any>;
109
+ setupTouchId(options: any, access_token: any): Promise<any>;
110
+ setupSmartPush(options: any, access_token: any): Promise<any>;
111
+ setupFace(options: any, access_token: any): Promise<any>;
112
+ setupVoice(options: any, access_token: any): Promise<any>;
113
+ enrollEmail(options: any, access_token: any): Promise<any>;
114
+ enrollSMS(options: any, access_token: any): Promise<any>;
115
+ enrollIVR(options: any, access_token: any): Promise<any>;
116
+ enrollTOTP(options: any, access_token: any): Promise<any>;
117
+ updateSuggestMFA(track_id: any, options: any): Promise<any>;
118
+ enrollVerification(options: any): Promise<any>;
119
+ updateSocket(status_id: any): Promise<any>;
120
+ setupFidoVerification(options: any): Promise<any>;
121
+ checkVerificationTypeConfigured(options: any): Promise<any>;
122
+ authenticateVerification(options: any): Promise<any>;
123
+ authenticateFaceVerification(options: any): Promise<any>;
124
+ initiateVerification(options: any): Promise<any>;
125
+ deleteUserAccount(options: any): Promise<any>;
126
+ getMissingFieldsLogin(trackId: any): Promise<any>;
127
+ progressiveRegistration(options: any, headers: any): Promise<any>;
128
+ loginAfterRegister(options: any): void;
129
+ userCheckExists(options: any): Promise<any>;
130
+ }
@@ -0,0 +1,2 @@
1
+ export = sum;
2
+ declare function sum(a: any, b: any): any;
@@ -0,0 +1 @@
1
+ export {};