@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/dist/esm/sdk.js
CHANGED
|
@@ -115,7 +115,7 @@ class Client {
|
|
|
115
115
|
'x-sdk-name': 'Console',
|
|
116
116
|
'x-sdk-platform': 'console',
|
|
117
117
|
'x-sdk-language': 'web',
|
|
118
|
-
'x-sdk-version': '0.6.0-rc.
|
|
118
|
+
'x-sdk-version': '0.6.0-rc.16',
|
|
119
119
|
'X-Appwrite-Response-Format': '1.5.0',
|
|
120
120
|
};
|
|
121
121
|
this.realtime = {
|
|
@@ -698,7 +698,7 @@ class Account extends Service {
|
|
|
698
698
|
* authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
|
|
699
699
|
* method.
|
|
700
700
|
*
|
|
701
|
-
* @param {
|
|
701
|
+
* @param {AuthenticatorType} type
|
|
702
702
|
* @throws {AppwriteException}
|
|
703
703
|
* @returns {Promise}
|
|
704
704
|
*/
|
|
@@ -722,7 +722,7 @@ class Account extends Service {
|
|
|
722
722
|
* authenticator](/docs/references/cloud/client-web/account#addAuthenticator)
|
|
723
723
|
* method.
|
|
724
724
|
*
|
|
725
|
-
* @param {
|
|
725
|
+
* @param {AuthenticatorType} type
|
|
726
726
|
* @param {string} otp
|
|
727
727
|
* @throws {AppwriteException}
|
|
728
728
|
* @returns {Promise}
|
|
@@ -751,7 +751,7 @@ class Account extends Service {
|
|
|
751
751
|
*
|
|
752
752
|
* Delete an authenticator for a user by ID.
|
|
753
753
|
*
|
|
754
|
-
* @param {
|
|
754
|
+
* @param {AuthenticatorType} type
|
|
755
755
|
* @param {string} otp
|
|
756
756
|
* @throws {AppwriteException}
|
|
757
757
|
* @returns {Promise}
|
|
@@ -782,7 +782,7 @@ class Account extends Service {
|
|
|
782
782
|
* [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
|
|
783
783
|
* method.
|
|
784
784
|
*
|
|
785
|
-
* @param {
|
|
785
|
+
* @param {AuthenticationFactor} factor
|
|
786
786
|
* @throws {AppwriteException}
|
|
787
787
|
* @returns {Promise}
|
|
788
788
|
*/
|
|
@@ -1423,10 +1423,11 @@ class Account extends Service {
|
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
1425
|
/**
|
|
1426
|
-
* Update
|
|
1426
|
+
* Update session
|
|
1427
1427
|
*
|
|
1428
|
-
*
|
|
1429
|
-
* useful when session
|
|
1428
|
+
* Use this endpoint to extend a session's length. Extending a session is
|
|
1429
|
+
* useful when session expiry is short. If the session was created using an
|
|
1430
|
+
* OAuth provider, this endpoint refreshes the access token from the provider.
|
|
1430
1431
|
*
|
|
1431
1432
|
* @param {string} sessionId
|
|
1432
1433
|
* @throws {AppwriteException}
|
|
@@ -12762,18 +12763,18 @@ class ID {
|
|
|
12762
12763
|
}
|
|
12763
12764
|
}
|
|
12764
12765
|
|
|
12765
|
-
var
|
|
12766
|
-
(function (
|
|
12767
|
-
|
|
12768
|
-
})(
|
|
12766
|
+
var AuthenticatorType;
|
|
12767
|
+
(function (AuthenticatorType) {
|
|
12768
|
+
AuthenticatorType["Totp"] = "totp";
|
|
12769
|
+
})(AuthenticatorType || (AuthenticatorType = {}));
|
|
12769
12770
|
|
|
12770
|
-
var
|
|
12771
|
-
(function (
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
})(
|
|
12771
|
+
var AuthenticationFactor;
|
|
12772
|
+
(function (AuthenticationFactor) {
|
|
12773
|
+
AuthenticationFactor["Email"] = "email";
|
|
12774
|
+
AuthenticationFactor["Phone"] = "phone";
|
|
12775
|
+
AuthenticationFactor["Totp"] = "totp";
|
|
12776
|
+
AuthenticationFactor["Recoverycode"] = "recoverycode";
|
|
12777
|
+
})(AuthenticationFactor || (AuthenticationFactor = {}));
|
|
12777
12778
|
|
|
12778
12779
|
var OAuthProvider;
|
|
12779
12780
|
(function (OAuthProvider) {
|
|
@@ -13574,6 +13575,11 @@ var UserUsageRange;
|
|
|
13574
13575
|
UserUsageRange["NinetyDays"] = "90d";
|
|
13575
13576
|
})(UserUsageRange || (UserUsageRange = {}));
|
|
13576
13577
|
|
|
13578
|
+
var Type;
|
|
13579
|
+
(function (Type) {
|
|
13580
|
+
Type["Totp"] = "totp";
|
|
13581
|
+
})(Type || (Type = {}));
|
|
13582
|
+
|
|
13577
13583
|
var MessagingProviderType;
|
|
13578
13584
|
(function (MessagingProviderType) {
|
|
13579
13585
|
MessagingProviderType["Email"] = "email";
|
|
@@ -13581,5 +13587,5 @@ var MessagingProviderType;
|
|
|
13581
13587
|
MessagingProviderType["Push"] = "push";
|
|
13582
13588
|
})(MessagingProviderType || (MessagingProviderType = {}));
|
|
13583
13589
|
|
|
13584
|
-
export { Account, ApiService, AppwriteException, Assistant, AuthMethod, Avatars, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, EmailTemplateLocale, EmailTemplateType, ExecutionMethod,
|
|
13590
|
+
export { Account, ApiService, AppwriteException, Assistant, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, Flag, FunctionUsageRange, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, PasswordHash, Permission, PlatformType, Project, ProjectUsageRange, Projects, Proxy, Query, Region, RelationMutate, RelationshipType, ResourceType, Role, Runtime, SMTPSecure, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Storage, StorageUsageRange, Teams, Type, UserUsageRange, Users, Vcs };
|
|
13585
13591
|
//# sourceMappingURL=sdk.js.map
|