@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/dist/esm/sdk.js
CHANGED
|
@@ -118,8 +118,8 @@ class Client {
|
|
|
118
118
|
'x-sdk-name': 'Console',
|
|
119
119
|
'x-sdk-platform': 'console',
|
|
120
120
|
'x-sdk-language': 'web',
|
|
121
|
-
'x-sdk-version': '0.6.0-rc.
|
|
122
|
-
'X-Appwrite-Response-Format': '1.
|
|
121
|
+
'x-sdk-version': '0.6.0-rc.11',
|
|
122
|
+
'X-Appwrite-Response-Format': '1.5.0',
|
|
123
123
|
};
|
|
124
124
|
this.realtime = {
|
|
125
125
|
socket: undefined,
|
|
@@ -696,7 +696,7 @@ class Account extends Service {
|
|
|
696
696
|
* Create 2FA Challenge
|
|
697
697
|
*
|
|
698
698
|
*
|
|
699
|
-
* @param {
|
|
699
|
+
* @param {AuthenticationFactor} factor
|
|
700
700
|
* @throws {AppwriteException}
|
|
701
701
|
* @returns {Promise}
|
|
702
702
|
*/
|
|
@@ -768,7 +768,7 @@ class Account extends Service {
|
|
|
768
768
|
* Add Authenticator
|
|
769
769
|
*
|
|
770
770
|
*
|
|
771
|
-
* @param {
|
|
771
|
+
* @param {AuthenticatorType} type
|
|
772
772
|
* @throws {AppwriteException}
|
|
773
773
|
* @returns {Promise}
|
|
774
774
|
*/
|
|
@@ -789,7 +789,7 @@ class Account extends Service {
|
|
|
789
789
|
* Verify Authenticator
|
|
790
790
|
*
|
|
791
791
|
*
|
|
792
|
-
* @param {
|
|
792
|
+
* @param {AuthenticatorType} type
|
|
793
793
|
* @param {string} otp
|
|
794
794
|
* @throws {AppwriteException}
|
|
795
795
|
* @returns {Promise}
|
|
@@ -817,7 +817,7 @@ class Account extends Service {
|
|
|
817
817
|
* Delete Authenticator
|
|
818
818
|
*
|
|
819
819
|
*
|
|
820
|
-
* @param {
|
|
820
|
+
* @param {AuthenticatorType} type
|
|
821
821
|
* @param {string} otp
|
|
822
822
|
* @throws {AppwriteException}
|
|
823
823
|
* @returns {Promise}
|
|
@@ -11514,7 +11514,7 @@ class Users extends Service {
|
|
|
11514
11514
|
*
|
|
11515
11515
|
*
|
|
11516
11516
|
* @param {string} userId
|
|
11517
|
-
* @param {
|
|
11517
|
+
* @param {AuthenticatorType} type
|
|
11518
11518
|
* @param {string} otp
|
|
11519
11519
|
* @throws {AppwriteException}
|
|
11520
11520
|
* @returns {Promise}
|
|
@@ -12429,17 +12429,17 @@ class ID {
|
|
|
12429
12429
|
}
|
|
12430
12430
|
}
|
|
12431
12431
|
|
|
12432
|
-
var
|
|
12433
|
-
(function (
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
})(
|
|
12432
|
+
var AuthenticationFactor;
|
|
12433
|
+
(function (AuthenticationFactor) {
|
|
12434
|
+
AuthenticationFactor["Totp"] = "totp";
|
|
12435
|
+
AuthenticationFactor["Phone"] = "phone";
|
|
12436
|
+
AuthenticationFactor["Email"] = "email";
|
|
12437
|
+
})(AuthenticationFactor || (AuthenticationFactor = {}));
|
|
12438
12438
|
|
|
12439
|
-
var
|
|
12440
|
-
(function (
|
|
12441
|
-
|
|
12442
|
-
})(
|
|
12439
|
+
var AuthenticatorType;
|
|
12440
|
+
(function (AuthenticatorType) {
|
|
12441
|
+
AuthenticatorType["Totp"] = "totp";
|
|
12442
|
+
})(AuthenticatorType || (AuthenticatorType = {}));
|
|
12443
12443
|
|
|
12444
12444
|
var OAuthProvider;
|
|
12445
12445
|
(function (OAuthProvider) {
|
|
@@ -13220,5 +13220,5 @@ var MessagingProviderType;
|
|
|
13220
13220
|
MessagingProviderType["Push"] = "push";
|
|
13221
13221
|
})(MessagingProviderType || (MessagingProviderType = {}));
|
|
13222
13222
|
|
|
13223
|
-
export { APIService, Account, AppwriteException, Assistant, AuthMethod, Avatars, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, EmailTemplateLocale, EmailTemplateType, ExecutionMethod,
|
|
13223
|
+
export { APIService, Account, 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, MessageStatus, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, PasswordHash, Permission, PlatformType, Project, ProjectUsageRange, Projects, Proxy, Query, Region, RelationMutate, RelationshipType, ResourceType, Role, Runtime, SMSTemplateLocale, SMSTemplateType, SMTPEncryption, SMTPSecure, Storage, StorageUsageRange, Teams, UserUsageRange, Users, Vcs };
|
|
13224
13224
|
//# sourceMappingURL=sdk.js.map
|