Skip to content

Commit 9c484cb

Browse files
committed
Release candidate for 1.5.x
1 parent d27c996 commit 9c484cb

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:
3131

3232
```swift
3333
dependencies: [
34-
.package(url: "[email protected]:appwrite/sdk-for-apple.git", from: "5.0.0-rc.2"),
34+
.package(url: "[email protected]:appwrite/sdk-for-apple.git", from: "5.0.0-rc.3"),
3535
],
3636
```
3737

Sources/Appwrite/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ open class Client {
2525
"x-sdk-name": "Apple",
2626
"x-sdk-platform": "client",
2727
"x-sdk-language": "apple",
28-
"x-sdk-version": "5.0.0-rc.2",
29-
"x-appwrite-response-format": "1.4.0"
28+
"x-sdk-version": "5.0.0-rc.3",
29+
"x-appwrite-response-format": "1.5.0"
3030
]
3131

3232
internal var config: [String: String] = [:]

Sources/Appwrite/Services/Account.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,12 @@ open class Account: Service {
400400
///
401401
/// Create 2FA Challenge
402402
///
403-
/// @param AppwriteEnums.Factor factor
403+
/// @param AppwriteEnums.AuthenticationFactor factor
404404
/// @throws Exception
405405
/// @return array
406406
///
407407
open func create2FAChallenge(
408-
factor: AppwriteEnums.Factor
408+
factor: AppwriteEnums.AuthenticationFactor
409409
) async throws -> AppwriteModels.MfaChallenge {
410410
let apiPath: String = "/account/mfa/challenge"
411411

@@ -492,12 +492,12 @@ open class Account: Service {
492492
///
493493
/// Add Authenticator
494494
///
495-
/// @param AppwriteEnums.Type type
495+
/// @param AppwriteEnums.AuthenticatorType type
496496
/// @throws Exception
497497
/// @return array
498498
///
499499
open func addAuthenticator(
500-
type: AppwriteEnums.Type
500+
type: AppwriteEnums.AuthenticatorType
501501
) async throws -> AppwriteModels.MfaType {
502502
let apiPath: String = "/account/mfa/{type}"
503503
.replacingOccurrences(of: "{type}", with: type.rawValue)
@@ -524,13 +524,13 @@ open class Account: Service {
524524
///
525525
/// Verify Authenticator
526526
///
527-
/// @param AppwriteEnums.Type type
527+
/// @param AppwriteEnums.AuthenticatorType type
528528
/// @param String otp
529529
/// @throws Exception
530530
/// @return array
531531
///
532532
open func verifyAuthenticator<T>(
533-
type: AppwriteEnums.Type,
533+
type: AppwriteEnums.AuthenticatorType,
534534
otp: String,
535535
nestedType: T.Type
536536
) async throws -> AppwriteModels.User<T> {
@@ -561,13 +561,13 @@ open class Account: Service {
561561
///
562562
/// Verify Authenticator
563563
///
564-
/// @param AppwriteEnums.Type type
564+
/// @param AppwriteEnums.AuthenticatorType type
565565
/// @param String otp
566566
/// @throws Exception
567567
/// @return array
568568
///
569569
open func verifyAuthenticator(
570-
type: AppwriteEnums.Type,
570+
type: AppwriteEnums.AuthenticatorType,
571571
otp: String
572572
) async throws -> AppwriteModels.User<[String: AnyCodable]> {
573573
return try await verifyAuthenticator(
@@ -580,13 +580,13 @@ open class Account: Service {
580580
///
581581
/// Delete Authenticator
582582
///
583-
/// @param AppwriteEnums.Type type
583+
/// @param AppwriteEnums.AuthenticatorType type
584584
/// @param String otp
585585
/// @throws Exception
586586
/// @return array
587587
///
588588
open func deleteAuthenticator<T>(
589-
type: AppwriteEnums.Type,
589+
type: AppwriteEnums.AuthenticatorType,
590590
otp: String,
591591
nestedType: T.Type
592592
) async throws -> AppwriteModels.User<T> {
@@ -617,13 +617,13 @@ open class Account: Service {
617617
///
618618
/// Delete Authenticator
619619
///
620-
/// @param AppwriteEnums.Type type
620+
/// @param AppwriteEnums.AuthenticatorType type
621621
/// @param String otp
622622
/// @throws Exception
623623
/// @return array
624624
///
625625
open func deleteAuthenticator(
626-
type: AppwriteEnums.Type,
626+
type: AppwriteEnums.AuthenticatorType,
627627
otp: String
628628
) async throws -> AppwriteModels.User<[String: AnyCodable]> {
629629
return try await deleteAuthenticator(

Sources/AppwriteEnums/Factor.swift renamed to Sources/AppwriteEnums/AuthenticationFactor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public enum Factor: String, Codable {
3+
public enum AuthenticationFactor: String, Codable {
44
case totp = "totp"
55
case phone = "phone"
66
case email = "email"

Sources/AppwriteEnums/Type.swift renamed to Sources/AppwriteEnums/AuthenticatorType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public enum Type: String, Codable {
3+
public enum AuthenticatorType: String, Codable {
44
case totp = "totp"
55

66
public func encode(to encoder: Encoder) throws {

0 commit comments

Comments
 (0)