@appwrite.io/console 0.6.0-rc.15 → 0.6.0-rc.16
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 +25 -19
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +26 -20
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +25 -19
- package/docs/examples/account/create-mfa-authenticator.md +2 -2
- package/docs/examples/account/create-mfa-challenge.md +2 -2
- package/docs/examples/account/delete-mfa-authenticator.md +2 -2
- package/docs/examples/account/update-mfa-authenticator.md +2 -2
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/{factor.ts → authentication-factor.ts} +1 -1
- package/src/enums/authenticator-type.ts +3 -0
- package/src/index.ts +3 -2
- package/src/services/account.ts +14 -13
- 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 +3 -2
- package/types/services/account.d.ts +14 -13
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.16"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -117,7 +117,7 @@ class Client {
|
|
|
117
117
|
'x-sdk-name': 'Console',
|
|
118
118
|
'x-sdk-platform': 'console',
|
|
119
119
|
'x-sdk-language': 'web',
|
|
120
|
-
'x-sdk-version': '0.6.0-rc.
|
|
120
|
+
'x-sdk-version': '0.6.0-rc.16',
|
|
121
121
|
'X-Appwrite-Response-Format': '1.5.0',
|
|
122
122
|
};
|
|
123
123
|
this.realtime = {
|
|
@@ -700,7 +700,7 @@ class Account extends Service {
|
|
|
700
700
|
* authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
|
|
701
701
|
* method.
|
|
702
702
|
*
|
|
703
|
-
* @param {
|
|
703
|
+
* @param {AuthenticatorType} type
|
|
704
704
|
* @throws {AppwriteException}
|
|
705
705
|
* @returns {Promise}
|
|
706
706
|
*/
|
|
@@ -724,7 +724,7 @@ class Account extends Service {
|
|
|
724
724
|
* authenticator](/docs/references/cloud/client-web/account#addAuthenticator)
|
|
725
725
|
* method.
|
|
726
726
|
*
|
|
727
|
-
* @param {
|
|
727
|
+
* @param {AuthenticatorType} type
|
|
728
728
|
* @param {string} otp
|
|
729
729
|
* @throws {AppwriteException}
|
|
730
730
|
* @returns {Promise}
|
|
@@ -753,7 +753,7 @@ class Account extends Service {
|
|
|
753
753
|
*
|
|
754
754
|
* Delete an authenticator for a user by ID.
|
|
755
755
|
*
|
|
756
|
-
* @param {
|
|
756
|
+
* @param {AuthenticatorType} type
|
|
757
757
|
* @param {string} otp
|
|
758
758
|
* @throws {AppwriteException}
|
|
759
759
|
* @returns {Promise}
|
|
@@ -784,7 +784,7 @@ class Account extends Service {
|
|
|
784
784
|
* [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
|
|
785
785
|
* method.
|
|
786
786
|
*
|
|
787
|
-
* @param {
|
|
787
|
+
* @param {AuthenticationFactor} factor
|
|
788
788
|
* @throws {AppwriteException}
|
|
789
789
|
* @returns {Promise}
|
|
790
790
|
*/
|
|
@@ -1425,10 +1425,11 @@ class Account extends Service {
|
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
1427
|
/**
|
|
1428
|
-
* Update
|
|
1428
|
+
* Update session
|
|
1429
1429
|
*
|
|
1430
|
-
*
|
|
1431
|
-
* useful when session
|
|
1430
|
+
* Use this endpoint to extend a session's length. Extending a session is
|
|
1431
|
+
* useful when session expiry is short. If the session was created using an
|
|
1432
|
+
* OAuth provider, this endpoint refreshes the access token from the provider.
|
|
1432
1433
|
*
|
|
1433
1434
|
* @param {string} sessionId
|
|
1434
1435
|
* @throws {AppwriteException}
|
|
@@ -12764,18 +12765,18 @@ class ID {
|
|
|
12764
12765
|
}
|
|
12765
12766
|
}
|
|
12766
12767
|
|
|
12767
|
-
exports.
|
|
12768
|
-
(function (
|
|
12769
|
-
|
|
12770
|
-
})(exports.
|
|
12768
|
+
exports.AuthenticatorType = void 0;
|
|
12769
|
+
(function (AuthenticatorType) {
|
|
12770
|
+
AuthenticatorType["Totp"] = "totp";
|
|
12771
|
+
})(exports.AuthenticatorType || (exports.AuthenticatorType = {}));
|
|
12771
12772
|
|
|
12772
|
-
exports.
|
|
12773
|
-
(function (
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
})(exports.
|
|
12773
|
+
exports.AuthenticationFactor = void 0;
|
|
12774
|
+
(function (AuthenticationFactor) {
|
|
12775
|
+
AuthenticationFactor["Email"] = "email";
|
|
12776
|
+
AuthenticationFactor["Phone"] = "phone";
|
|
12777
|
+
AuthenticationFactor["Totp"] = "totp";
|
|
12778
|
+
AuthenticationFactor["Recoverycode"] = "recoverycode";
|
|
12779
|
+
})(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
|
|
12779
12780
|
|
|
12780
12781
|
exports.OAuthProvider = void 0;
|
|
12781
12782
|
(function (OAuthProvider) {
|
|
@@ -13576,6 +13577,11 @@ exports.UserUsageRange = void 0;
|
|
|
13576
13577
|
UserUsageRange["NinetyDays"] = "90d";
|
|
13577
13578
|
})(exports.UserUsageRange || (exports.UserUsageRange = {}));
|
|
13578
13579
|
|
|
13580
|
+
exports.Type = void 0;
|
|
13581
|
+
(function (Type) {
|
|
13582
|
+
Type["Totp"] = "totp";
|
|
13583
|
+
})(exports.Type || (exports.Type = {}));
|
|
13584
|
+
|
|
13579
13585
|
exports.MessagingProviderType = void 0;
|
|
13580
13586
|
(function (MessagingProviderType) {
|
|
13581
13587
|
MessagingProviderType["Email"] = "email";
|