@@ -387,13 +387,13 @@ open class Account: Service {
387
387
/// method.
388
388
///
389
389
/// - Parameters:
390
- /// - type: AuthenticatorType
390
+ /// - type: AppwriteEnums. AuthenticatorType
391
391
/// - Throws: Exception if the request fails
392
392
/// - Returns: AppwriteModels.MfaType
393
393
///
394
394
@available ( * , deprecated, message: " This API has been deprecated since 1.8.0. Please use `Account.createMFAAuthenticator` instead. " )
395
395
open func createMfaAuthenticator(
396
- type: AuthenticatorType
396
+ type: AppwriteEnums . AuthenticatorType
397
397
) async throws -> AppwriteModels . MfaType {
398
398
let apiPath : String = " /account/mfa/authenticators/{type} "
399
399
. replacingOccurrences ( of: " {type} " , with: type. rawValue)
@@ -424,12 +424,12 @@ open class Account: Service {
424
424
/// method.
425
425
///
426
426
/// - Parameters:
427
- /// - type: AuthenticatorType
427
+ /// - type: AppwriteEnums. AuthenticatorType
428
428
/// - Throws: Exception if the request fails
429
429
/// - Returns: AppwriteModels.MfaType
430
430
///
431
431
open func createMFAAuthenticator(
432
- type: AuthenticatorType
432
+ type: AppwriteEnums . AuthenticatorType
433
433
) async throws -> AppwriteModels . MfaType {
434
434
let apiPath : String = " /account/mfa/authenticators/{type} "
435
435
. replacingOccurrences ( of: " {type} " , with: type. rawValue)
@@ -459,14 +459,14 @@ open class Account: Service {
459
459
/// method.
460
460
///
461
461
/// - Parameters:
462
- /// - type: AuthenticatorType
462
+ /// - type: AppwriteEnums. AuthenticatorType
463
463
/// - otp: String
464
464
/// - Throws: Exception if the request fails
465
465
/// - Returns: AppwriteModels.User<T>
466
466
///
467
467
@available ( * , deprecated, message: " This API has been deprecated since 1.8.0. Please use `Account.updateMFAAuthenticator` instead. " )
468
468
open func updateMfaAuthenticator< T> (
469
- type: AuthenticatorType ,
469
+ type: AppwriteEnums . AuthenticatorType ,
470
470
otp: String ,
471
471
nestedType: T . Type
472
472
) async throws -> AppwriteModels . User < T > {
@@ -500,14 +500,14 @@ open class Account: Service {
500
500
/// method.
501
501
///
502
502
/// - Parameters:
503
- /// - type: AuthenticatorType
503
+ /// - type: AppwriteEnums. AuthenticatorType
504
504
/// - otp: String
505
505
/// - Throws: Exception if the request fails
506
506
/// - Returns: AppwriteModels.User<T>
507
507
///
508
508
@available ( * , deprecated, message: " This API has been deprecated since 1.8.0. Please use `Account.updateMFAAuthenticator` instead. " )
509
509
open func updateMfaAuthenticator(
510
- type: AuthenticatorType ,
510
+ type: AppwriteEnums . AuthenticatorType ,
511
511
otp: String
512
512
) async throws -> AppwriteModels . User < [ String : AnyCodable ] > {
513
513
return try await updateMfaAuthenticator (
@@ -523,13 +523,13 @@ open class Account: Service {
523
523
/// method.
524
524
///
525
525
/// - Parameters:
526
- /// - type: AuthenticatorType
526
+ /// - type: AppwriteEnums. AuthenticatorType
527
527
/// - otp: String
528
528
/// - Throws: Exception if the request fails
529
529
/// - Returns: AppwriteModels.User<T>
530
530
///
531
531
open func updateMFAAuthenticator< T> (
532
- type: AuthenticatorType ,
532
+ type: AppwriteEnums . AuthenticatorType ,
533
533
otp: String ,
534
534
nestedType: T . Type
535
535
) async throws -> AppwriteModels . User < T > {
@@ -563,13 +563,13 @@ open class Account: Service {
563
563
/// method.
564
564
///
565
565
/// - Parameters:
566
- /// - type: AuthenticatorType
566
+ /// - type: AppwriteEnums. AuthenticatorType
567
567
/// - otp: String
568
568
/// - Throws: Exception if the request fails
569
569
/// - Returns: AppwriteModels.User<T>
570
570
///
571
571
open func updateMFAAuthenticator(
572
- type: AuthenticatorType ,
572
+ type: AppwriteEnums . AuthenticatorType ,
573
573
otp: String
574
574
) async throws -> AppwriteModels . User < [ String : AnyCodable ] > {
575
575
return try await updateMFAAuthenticator (
@@ -583,13 +583,13 @@ open class Account: Service {
583
583
/// Delete an authenticator for a user by ID.
584
584
///
585
585
/// - Parameters:
586
- /// - type: AuthenticatorType
586
+ /// - type: AppwriteEnums. AuthenticatorType
587
587
/// - Throws: Exception if the request fails
588
588
/// - Returns: Any
589
589
///
590
590
@available ( * , deprecated, message: " This API has been deprecated since 1.8.0. Please use `Account.deleteMFAAuthenticator` instead. " )
591
591
open func deleteMfaAuthenticator(
592
- type: AuthenticatorType
592
+ type: AppwriteEnums . AuthenticatorType
593
593
) async throws -> Any {
594
594
let apiPath : String = " /account/mfa/authenticators/{type} "
595
595
. replacingOccurrences ( of: " {type} " , with: type. rawValue)
@@ -611,12 +611,12 @@ open class Account: Service {
611
611
/// Delete an authenticator for a user by ID.
612
612
///
613
613
/// - Parameters:
614
- /// - type: AuthenticatorType
614
+ /// - type: AppwriteEnums. AuthenticatorType
615
615
/// - Throws: Exception if the request fails
616
616
/// - Returns: Any
617
617
///
618
618
open func deleteMFAAuthenticator(
619
- type: AuthenticatorType
619
+ type: AppwriteEnums . AuthenticatorType
620
620
) async throws -> Any {
621
621
let apiPath : String = " /account/mfa/authenticators/{type} "
622
622
. replacingOccurrences ( of: " {type} " , with: type. rawValue)
@@ -640,13 +640,13 @@ open class Account: Service {
640
640
/// method.
641
641
///
642
642
/// - Parameters:
643
- /// - factor: AuthenticationFactor
643
+ /// - factor: AppwriteEnums. AuthenticationFactor
644
644
/// - Throws: Exception if the request fails
645
645
/// - Returns: AppwriteModels.MfaChallenge
646
646
///
647
647
@available ( * , deprecated, message: " This API has been deprecated since 1.8.0. Please use `Account.createMFAChallenge` instead. " )
648
648
open func createMfaChallenge(
649
- factor: AuthenticationFactor
649
+ factor: AppwriteEnums . AuthenticationFactor
650
650
) async throws -> AppwriteModels . MfaChallenge {
651
651
let apiPath : String = " /account/mfa/challenge "
652
652
@@ -677,12 +677,12 @@ open class Account: Service {
677
677
/// method.
678
678
///
679
679
/// - Parameters:
680
- /// - factor: AuthenticationFactor
680
+ /// - factor: AppwriteEnums. AuthenticationFactor
681
681
/// - Throws: Exception if the request fails
682
682
/// - Returns: AppwriteModels.MfaChallenge
683
683
///
684
684
open func createMFAChallenge(
685
- factor: AuthenticationFactor
685
+ factor: AppwriteEnums . AuthenticationFactor
686
686
) async throws -> AppwriteModels . MfaChallenge {
687
687
let apiPath : String = " /account/mfa/challenge "
688
688
@@ -1927,15 +1927,15 @@ open class Account: Service {
1927
1927
/// limits](https://appwrite.io/docs/authentication-security#limits).
1928
1928
///
1929
1929
/// - Parameters:
1930
- /// - provider: OAuthProvider
1930
+ /// - provider: AppwriteEnums. OAuthProvider
1931
1931
/// - success: String (optional)
1932
1932
/// - failure: String (optional)
1933
1933
/// - scopes: [String] (optional)
1934
1934
/// - Throws: Exception if the request fails
1935
1935
/// - Returns: String?
1936
1936
///
1937
1937
open func createOAuth2Token(
1938
- provider: OAuthProvider ,
1938
+ provider: AppwriteEnums . OAuthProvider ,
1939
1939
success: String ? = nil ,
1940
1940
failure: String ? = nil ,
1941
1941
scopes: [ String ] ? = nil
0 commit comments