@appwrite.io/console 0.6.0-rc.10 → 0.6.0-rc.11
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 +1 -1
- package/dist/cjs/sdk.js +17 -17
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +18 -18
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +17 -17
- package/docs/examples/account/add-authenticator.md +2 -2
- package/docs/examples/account/create2f-a-challenge.md +2 -2
- package/docs/examples/account/delete-authenticator.md +2 -2
- package/docs/examples/account/verify-authenticator.md +2 -2
- package/docs/examples/users/delete-authenticator.md +2 -2
- package/package.json +1 -1
- package/src/client.ts +2 -2
- package/src/enums/{factor.ts → authentication-factor.ts} +1 -1
- package/src/enums/authenticator-type.ts +3 -0
- package/src/index.ts +2 -2
- package/src/services/account.ts +10 -10
- package/src/services/users.ts +3 -3
- package/types/enums/{factor.d.ts → authentication-factor.d.ts} +1 -1
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/index.d.ts +2 -2
- package/types/services/account.d.ts +10 -10
- package/types/services/users.d.ts +3 -3
- package/src/enums/type.ts +0 -3
- package/types/enums/type.d.ts +0 -3
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
|
|
|
33
33
|
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
|
|
34
34
|
|
|
35
35
|
```html
|
|
36
|
-
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.6.0-rc.
|
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.6.0-rc.11"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -120,8 +120,8 @@ class Client {
|
|
|
120
120
|
'x-sdk-name': 'Console',
|
|
121
121
|
'x-sdk-platform': 'console',
|
|
122
122
|
'x-sdk-language': 'web',
|
|
123
|
-
'x-sdk-version': '0.6.0-rc.
|
|
124
|
-
'X-Appwrite-Response-Format': '1.
|
|
123
|
+
'x-sdk-version': '0.6.0-rc.11',
|
|
124
|
+
'X-Appwrite-Response-Format': '1.5.0',
|
|
125
125
|
};
|
|
126
126
|
this.realtime = {
|
|
127
127
|
socket: undefined,
|
|
@@ -698,7 +698,7 @@ class Account extends Service {
|
|
|
698
698
|
* Create 2FA Challenge
|
|
699
699
|
*
|
|
700
700
|
*
|
|
701
|
-
* @param {
|
|
701
|
+
* @param {AuthenticationFactor} factor
|
|
702
702
|
* @throws {AppwriteException}
|
|
703
703
|
* @returns {Promise}
|
|
704
704
|
*/
|
|
@@ -770,7 +770,7 @@ class Account extends Service {
|
|
|
770
770
|
* Add Authenticator
|
|
771
771
|
*
|
|
772
772
|
*
|
|
773
|
-
* @param {
|
|
773
|
+
* @param {AuthenticatorType} type
|
|
774
774
|
* @throws {AppwriteException}
|
|
775
775
|
* @returns {Promise}
|
|
776
776
|
*/
|
|
@@ -791,7 +791,7 @@ class Account extends Service {
|
|
|
791
791
|
* Verify Authenticator
|
|
792
792
|
*
|
|
793
793
|
*
|
|
794
|
-
* @param {
|
|
794
|
+
* @param {AuthenticatorType} type
|
|
795
795
|
* @param {string} otp
|
|
796
796
|
* @throws {AppwriteException}
|
|
797
797
|
* @returns {Promise}
|
|
@@ -819,7 +819,7 @@ class Account extends Service {
|
|
|
819
819
|
* Delete Authenticator
|
|
820
820
|
*
|
|
821
821
|
*
|
|
822
|
-
* @param {
|
|
822
|
+
* @param {AuthenticatorType} type
|
|
823
823
|
* @param {string} otp
|
|
824
824
|
* @throws {AppwriteException}
|
|
825
825
|
* @returns {Promise}
|
|
@@ -11516,7 +11516,7 @@ class Users extends Service {
|
|
|
11516
11516
|
*
|
|
11517
11517
|
*
|
|
11518
11518
|
* @param {string} userId
|
|
11519
|
-
* @param {
|
|
11519
|
+
* @param {AuthenticatorType} type
|
|
11520
11520
|
* @param {string} otp
|
|
11521
11521
|
* @throws {AppwriteException}
|
|
11522
11522
|
* @returns {Promise}
|
|
@@ -12431,17 +12431,17 @@ class ID {
|
|
|
12431
12431
|
}
|
|
12432
12432
|
}
|
|
12433
12433
|
|
|
12434
|
-
exports.
|
|
12435
|
-
(function (
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
})(exports.
|
|
12434
|
+
exports.AuthenticationFactor = void 0;
|
|
12435
|
+
(function (AuthenticationFactor) {
|
|
12436
|
+
AuthenticationFactor["Totp"] = "totp";
|
|
12437
|
+
AuthenticationFactor["Phone"] = "phone";
|
|
12438
|
+
AuthenticationFactor["Email"] = "email";
|
|
12439
|
+
})(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
|
|
12440
12440
|
|
|
12441
|
-
exports.
|
|
12442
|
-
(function (
|
|
12443
|
-
|
|
12444
|
-
})(exports.
|
|
12441
|
+
exports.AuthenticatorType = void 0;
|
|
12442
|
+
(function (AuthenticatorType) {
|
|
12443
|
+
AuthenticatorType["Totp"] = "totp";
|
|
12444
|
+
})(exports.AuthenticatorType || (exports.AuthenticatorType = {}));
|
|
12445
12445
|
|
|
12446
12446
|
exports.OAuthProvider = void 0;
|
|
12447
12447
|
(function (OAuthProvider) {
|