1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

chore: generate docs

This commit is contained in:
Torsten Dittmann 2024-03-04 11:06:47 +01:00
parent a05b8c015e
commit 907c9201f9
79 changed files with 122 additions and 122 deletions

View file

@ -185,7 +185,7 @@ return [
[
'key' => 'web',
'name' => 'Console',
'version' => '0.6.0-rc.15',
'version' => '0.6.0-rc.17',
'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '',
'enabled' => true,
@ -195,7 +195,7 @@ return [
'family' => APP_PLATFORM_CONSOLE,
'prism' => 'javascript',
'source' => \realpath(__DIR__ . '/../sdks/console-web'),
'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git',
'gitUrl' => 'https://github.com/appwrite/sdk-for-console.git',
'gitBranch' => '1.5.x',
'gitRepoName' => 'sdk-for-console',
'gitUserName' => 'appwrite',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Account;
import io.appwrite.enums.Type;
import io.appwrite.enums.AuthenticatorType;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,7 +10,7 @@ Client client = new Client(context)
Account account = new Account(client);
account.createMfaAuthenticator(
type.TOTP, // type
AuthenticatorType.TOTP, // type
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Account;
import io.appwrite.enums.Factor;
import io.appwrite.enums.AuthenticationFactor;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,7 +10,7 @@ Client client = new Client(context)
Account account = new Account(client);
account.createMfaChallenge(
factor.EMAIL, // factor
AuthenticationFactor.EMAIL, // factor
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Account;
import io.appwrite.enums.Type;
import io.appwrite.enums.AuthenticatorType;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,7 +10,7 @@ Client client = new Client(context)
Account account = new Account(client);
account.deleteMfaAuthenticator(
type.TOTP, // type
AuthenticatorType.TOTP, // type
"<OTP>", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Account;
import io.appwrite.enums.Type;
import io.appwrite.enums.AuthenticatorType;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,7 +10,7 @@ Client client = new Client(context)
Account account = new Account(client);
account.updateMfaAuthenticator(
type.TOTP, // type
AuthenticatorType.TOTP, // type
"<OTP>", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Account
import io.appwrite.enums.Type
import io.appwrite.enums.AuthenticatorType
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,5 +10,5 @@ val client = Client(context)
val account = Account(client)
val result = account.createMfaAuthenticator(
type = type.TOTP,
type = AuthenticatorType.TOTP,
)

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Account
import io.appwrite.enums.Factor
import io.appwrite.enums.AuthenticationFactor
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,5 +10,5 @@ val client = Client(context)
val account = Account(client)
val result = account.createMfaChallenge(
factor = factor.EMAIL,
factor = AuthenticationFactor.EMAIL,
)

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Account
import io.appwrite.enums.Type
import io.appwrite.enums.AuthenticatorType
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,6 +10,6 @@ val client = Client(context)
val account = Account(client)
val result = account.deleteMfaAuthenticator(
type = type.TOTP,
type = AuthenticatorType.TOTP,
otp = "<OTP>",
)

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Account
import io.appwrite.enums.Type
import io.appwrite.enums.AuthenticatorType
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,6 +10,6 @@ val client = Client(context)
val account = Account(client)
val result = account.updateMfaAuthenticator(
type = type.TOTP,
type = AuthenticatorType.TOTP,
otp = "<OTP>",
)

View file

@ -7,5 +7,5 @@ Client client = Client()
Account account = Account(client);
MfaType result = await account.createMfaAuthenticator(
type: .totp,
type: AuthenticatorType.totp,
);

View file

@ -7,5 +7,5 @@ Client client = Client()
Account account = Account(client);
MfaChallenge result = await account.createMfaChallenge(
factor: .email,
factor: AuthenticationFactor.email,
);

View file

@ -7,6 +7,6 @@ Client client = Client()
Account account = Account(client);
await account.deleteMfaAuthenticator(
type: .totp,
type: AuthenticatorType.totp,
otp: '<OTP>',
);

View file

@ -7,6 +7,6 @@ Client client = Client()
Account account = Account(client);
User result = await account.updateMfaAuthenticator(
type: .totp,
type: AuthenticatorType.totp,
otp: '<OTP>',
);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "appwrite";
import { Client, Account, AuthenticatorType } from "appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.createMfaAuthenticator(
.Totp // type
AuthenticatorType.Totp // type
);
console.log(response);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "appwrite";
import { Client, Account, AuthenticationFactor } from "appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.createMfaChallenge(
.Email // factor
AuthenticationFactor.Email // factor
);
console.log(response);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "appwrite";
import { Client, Account, AuthenticatorType } from "appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.deleteMfaAuthenticator(
.Totp, // type
AuthenticatorType.Totp, // type
'<OTP>' // otp
);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "appwrite";
import { Client, Account, AuthenticatorType } from "appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.updateMfaAuthenticator(
.Totp, // type
AuthenticatorType.Totp, // type
'<OTP>' // otp
);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "@appwrite.io/console";
import { Client, Account, AuthenticatorType } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.createMfaAuthenticator(
.Totp // type
AuthenticatorType.Totp // type
);
console.log(response);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "@appwrite.io/console";
import { Client, Account, AuthenticationFactor } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.createMfaChallenge(
.Email // factor
AuthenticationFactor.Email // factor
);
console.log(response);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "@appwrite.io/console";
import { Client, Account, AuthenticatorType } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.deleteMfaAuthenticator(
.Totp, // type
AuthenticatorType.Totp, // type
'<OTP>' // otp
);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "@appwrite.io/console";
import { Client, Account, AuthenticatorType } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.updateMfaAuthenticator(
.Totp, // type
AuthenticatorType.Totp, // type
'<OTP>' // otp
);

View file

@ -1,4 +1,4 @@
import { Client, Users, } from "@appwrite.io/console";
import { Client, Users, AuthenticatorType } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -8,7 +8,7 @@ const users = new Users(client);
const result = await users.deleteMfaAuthenticator(
'<USER_ID>', // userId
.Totp // type
AuthenticatorType.Totp // type
);
console.log(response);

View file

@ -8,5 +8,5 @@ Client client = Client()
Account account = Account(client);
MfaType result = await account.createMfaAuthenticator(
type: .totp,
type: AuthenticatorType.totp,
);

View file

@ -7,5 +7,5 @@ Client client = Client()
Account account = Account(client);
MfaChallenge result = await account.createMfaChallenge(
factor: .email,
factor: AuthenticationFactor.email,
);

View file

@ -8,6 +8,6 @@ Client client = Client()
Account account = Account(client);
await account.deleteMfaAuthenticator(
type: .totp,
type: AuthenticatorType.totp,
otp: '<OTP>',
);

View file

@ -8,6 +8,6 @@ Client client = Client()
Account account = Account(client);
User result = await account.updateMfaAuthenticator(
type: .totp,
type: AuthenticatorType.totp,
otp: '<OTP>',
);

View file

@ -9,5 +9,5 @@ Users users = Users(client);
await users.deleteMfaAuthenticator(
userId: '<USER_ID>',
type: .totp,
type: AuthenticatorType.totp,
);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "https://deno.land/x/appwrite/mod.ts";
import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -8,5 +8,5 @@ const client = new Client()
const account = new Account(client);
const response = await account.createMfaAuthenticator(
.Totp // type
AuthenticatorType.Totp // type
);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "https://deno.land/x/appwrite/mod.ts";
import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -7,5 +7,5 @@ const client = new Client()
const account = new Account(client);
const response = await account.createMfaChallenge(
.Email // factor
AuthenticationFactor.Email // factor
);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "https://deno.land/x/appwrite/mod.ts";
import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -8,6 +8,6 @@ const client = new Client()
const account = new Account(client);
const response = await account.deleteMfaAuthenticator(
.Totp, // type
AuthenticatorType.Totp, // type
'<OTP>' // otp
);

View file

@ -1,4 +1,4 @@
import { Client, Account, } from "https://deno.land/x/appwrite/mod.ts";
import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -8,6 +8,6 @@ const client = new Client()
const account = new Account(client);
const response = await account.updateMfaAuthenticator(
.Totp, // type
AuthenticatorType.Totp, // type
'<OTP>' // otp
);

View file

@ -1,4 +1,4 @@
import { Client, Users, } from "https://deno.land/x/appwrite/mod.ts";
import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -9,5 +9,5 @@ const users = new Users(client);
const response = await users.deleteMfaAuthenticator(
'<USER_ID>', // userId
.Totp // type
AuthenticatorType.Totp // type
);

View file

@ -11,5 +11,5 @@ Client client = new Client()
Account account = new Account(client);
MfaType result = await account.CreateMfaAuthenticator(
type: .Totp
type: AuthenticatorType.Totp
);

View file

@ -10,5 +10,5 @@ Client client = new Client()
Account account = new Account(client);
MfaChallenge result = await account.CreateMfaChallenge(
factor: .Email
factor: AuthenticationFactor.Email
);

View file

@ -11,6 +11,6 @@ Client client = new Client()
Account account = new Account(client);
await account.DeleteMfaAuthenticator(
type: .Totp,
type: AuthenticatorType.Totp,
otp: "<OTP>"
);

View file

@ -11,6 +11,6 @@ Client client = new Client()
Account account = new Account(client);
User result = await account.UpdateMfaAuthenticator(
type: .Totp,
type: AuthenticatorType.Totp,
otp: "<OTP>"
);

View file

@ -12,5 +12,5 @@ Users users = new Users(client);
await users.DeleteMfaAuthenticator(
userId: "<USER_ID>",
type: .Totp
type: AuthenticatorType.Totp
);

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Account;
import io.appwrite.enums.Type;
import io.appwrite.enums.AuthenticatorType;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -11,7 +11,7 @@ Client client = new Client()
Account account = new Account(client);
account.createMfaAuthenticator(
.TOTP, // type
AuthenticatorType.TOTP, // type
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Account;
import io.appwrite.enums.Factor;
import io.appwrite.enums.AuthenticationFactor;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.createMfaChallenge(
.EMAIL, // factor
AuthenticationFactor.EMAIL, // factor
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Account;
import io.appwrite.enums.Type;
import io.appwrite.enums.AuthenticatorType;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -11,7 +11,7 @@ Client client = new Client()
Account account = new Account(client);
account.deleteMfaAuthenticator(
.TOTP, // type
AuthenticatorType.TOTP, // type
"<OTP>", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Account;
import io.appwrite.enums.Type;
import io.appwrite.enums.AuthenticatorType;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -11,7 +11,7 @@ Client client = new Client()
Account account = new Account(client);
account.updateMfaAuthenticator(
.TOTP, // type
AuthenticatorType.TOTP, // type
"<OTP>", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {

View file

@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Users;
import io.appwrite.enums.Type;
import io.appwrite.enums.AuthenticatorType;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -12,7 +12,7 @@ Users users = new Users(client);
users.deleteMfaAuthenticator(
"<USER_ID>", // userId
.TOTP, // type
AuthenticatorType.TOTP, // type
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Account
import io.appwrite.enums.Type
import io.appwrite.enums.AuthenticatorType
val client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -11,5 +11,5 @@ val client = Client()
val account = Account(client)
val response = account.createMfaAuthenticator(
type = .TOTP
type = AuthenticatorType.TOTP
)

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Account
import io.appwrite.enums.Factor
import io.appwrite.enums.AuthenticationFactor
val client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -10,5 +10,5 @@ val client = Client()
val account = Account(client)
val response = account.createMfaChallenge(
factor = .EMAIL
factor = AuthenticationFactor.EMAIL
)

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Account
import io.appwrite.enums.Type
import io.appwrite.enums.AuthenticatorType
val client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -11,6 +11,6 @@ val client = Client()
val account = Account(client)
val response = account.deleteMfaAuthenticator(
type = .TOTP,
type = AuthenticatorType.TOTP,
otp = "<OTP>"
)

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Account
import io.appwrite.enums.Type
import io.appwrite.enums.AuthenticatorType
val client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -11,6 +11,6 @@ val client = Client()
val account = Account(client)
val response = account.updateMfaAuthenticator(
type = .TOTP,
type = AuthenticatorType.TOTP,
otp = "<OTP>"
)

View file

@ -1,7 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Users
import io.appwrite.enums.Type
import io.appwrite.enums.AuthenticatorType
val client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@ -12,5 +12,5 @@ val users = Users(client)
val response = users.deleteMfaAuthenticator(
userId = "<USER_ID>",
type = .TOTP
type = AuthenticatorType.TOTP
)

View file

@ -8,5 +8,5 @@ const client = new sdk.Client()
const account = new sdk.Account(client);
const result = await account.createMfaAuthenticator(
sdk..Totp // type
sdk.AuthenticatorType.Totp // type
);

View file

@ -7,5 +7,5 @@ const client = new sdk.Client()
const account = new sdk.Account(client);
const result = await account.createMfaChallenge(
sdk..Email // factor
sdk.AuthenticationFactor.Email // factor
);

View file

@ -8,6 +8,6 @@ const client = new sdk.Client()
const account = new sdk.Account(client);
const result = await account.deleteMfaAuthenticator(
sdk..Totp, // type
sdk.AuthenticatorType.Totp, // type
'<OTP>' // otp
);

View file

@ -8,6 +8,6 @@ const client = new sdk.Client()
const account = new sdk.Account(client);
const result = await account.updateMfaAuthenticator(
sdk..Totp, // type
sdk.AuthenticatorType.Totp, // type
'<OTP>' // otp
);

View file

@ -9,5 +9,5 @@ const users = new sdk.Users(client);
const result = await users.deleteMfaAuthenticator(
'<USER_ID>', // userId
sdk..Totp // type
sdk.AuthenticatorType.Totp // type
);

View file

@ -2,7 +2,7 @@
use Appwrite\Client;
use Appwrite\Services\Account;
use Appwrite\Enums\;
use Appwrite\Enums\AuthenticatorType;
$client = (new Client())
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -12,5 +12,5 @@ $client = (new Client())
$account = new Account($client);
$result = $account->createMfaAuthenticator(
type: ::TOTP()
type: AuthenticatorType::TOTP()
);

View file

@ -2,7 +2,7 @@
use Appwrite\Client;
use Appwrite\Services\Account;
use Appwrite\Enums\;
use Appwrite\Enums\AuthenticationFactor;
$client = (new Client())
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -11,5 +11,5 @@ $client = (new Client())
$account = new Account($client);
$result = $account->createMfaChallenge(
factor: ::EMAIL()
factor: AuthenticationFactor::EMAIL()
);

View file

@ -2,7 +2,7 @@
use Appwrite\Client;
use Appwrite\Services\Account;
use Appwrite\Enums\;
use Appwrite\Enums\AuthenticatorType;
$client = (new Client())
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -12,6 +12,6 @@ $client = (new Client())
$account = new Account($client);
$result = $account->deleteMfaAuthenticator(
type: ::TOTP(),
type: AuthenticatorType::TOTP(),
otp: '<OTP>'
);

View file

@ -2,7 +2,7 @@
use Appwrite\Client;
use Appwrite\Services\Account;
use Appwrite\Enums\;
use Appwrite\Enums\AuthenticatorType;
$client = (new Client())
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -12,6 +12,6 @@ $client = (new Client())
$account = new Account($client);
$result = $account->updateMfaAuthenticator(
type: ::TOTP(),
type: AuthenticatorType::TOTP(),
otp: '<OTP>'
);

View file

@ -2,7 +2,7 @@
use Appwrite\Client;
use Appwrite\Services\Users;
use Appwrite\Enums\;
use Appwrite\Enums\AuthenticatorType;
$client = (new Client())
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
@ -13,5 +13,5 @@ $users = new Users($client);
$result = $users->deleteMfaAuthenticator(
userId: '<USER_ID>',
type: ::TOTP()
type: AuthenticatorType::TOTP()
);

View file

@ -1,5 +1,5 @@
from appwrite.client import Client
from appwrite.enums import
from appwrite.enums import AuthenticatorType
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
@ -9,5 +9,5 @@ client.set_session('') # The user session to authenticate with
account = Account(client)
result = account.create_mfa_authenticator(
type = .TOTP
type = AuthenticatorType.TOTP
)

View file

@ -1,5 +1,5 @@
from appwrite.client import Client
from appwrite.enums import
from appwrite.enums import AuthenticationFactor
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
@ -8,5 +8,5 @@ client.set_project('5df5acd0d48c2') # Your project ID
account = Account(client)
result = account.create_mfa_challenge(
factor = .EMAIL
factor = AuthenticationFactor.EMAIL
)

View file

@ -1,5 +1,5 @@
from appwrite.client import Client
from appwrite.enums import
from appwrite.enums import AuthenticatorType
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
@ -9,6 +9,6 @@ client.set_session('') # The user session to authenticate with
account = Account(client)
result = account.delete_mfa_authenticator(
type = .TOTP,
type = AuthenticatorType.TOTP,
otp = '<OTP>'
)

View file

@ -1,5 +1,5 @@
from appwrite.client import Client
from appwrite.enums import
from appwrite.enums import AuthenticatorType
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
@ -9,6 +9,6 @@ client.set_session('') # The user session to authenticate with
account = Account(client)
result = account.update_mfa_authenticator(
type = .TOTP,
type = AuthenticatorType.TOTP,
otp = '<OTP>'
)

View file

@ -1,5 +1,5 @@
from appwrite.client import Client
from appwrite.enums import
from appwrite.enums import AuthenticatorType
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
@ -10,5 +10,5 @@ users = Users(client)
result = users.delete_mfa_authenticator(
user_id = '<USER_ID>',
type = .TOTP
type = AuthenticatorType.TOTP
)

View file

@ -11,5 +11,5 @@ client = Client.new
account = Account.new(client)
result = account.create_mfa_authenticator(
type: ::TOTP
type: AuthenticatorType::TOTP
)

View file

@ -10,5 +10,5 @@ client = Client.new
account = Account.new(client)
result = account.create_mfa_challenge(
factor: ::EMAIL
factor: AuthenticationFactor::EMAIL
)

View file

@ -11,6 +11,6 @@ client = Client.new
account = Account.new(client)
result = account.delete_mfa_authenticator(
type: ::TOTP,
type: AuthenticatorType::TOTP,
otp: '<OTP>'
)

View file

@ -11,6 +11,6 @@ client = Client.new
account = Account.new(client)
result = account.update_mfa_authenticator(
type: ::TOTP,
type: AuthenticatorType::TOTP,
otp: '<OTP>'
)

View file

@ -12,5 +12,5 @@ users = Users.new(client)
result = users.delete_mfa_authenticator(
user_id: '<USER_ID>',
type: ::TOTP
type: AuthenticatorType::TOTP
)