Skip to content

Commit 6d683d0

Browse files
committed
Release candidate for 1.5.x
1 parent 8ef98ad commit 6d683d0

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

README.md

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

3434
```swift
3535
dependencies: [
36-
.package(url: "[email protected]:appwrite/sdk-for-swift.git", from: "5.0.0-rc.2"),
36+
.package(url: "[email protected]:appwrite/sdk-for-swift.git", from: "5.0.0-rc.3"),
3737
],
3838
```
3939

Sources/Appwrite/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ open class Client {
2121
"x-sdk-name": "Swift",
2222
"x-sdk-platform": "server",
2323
"x-sdk-language": "swift",
24-
"x-sdk-version": "5.0.0-rc.2",
25-
"x-appwrite-response-format": "1.4.0"
24+
"x-sdk-version": "5.0.0-rc.3",
25+
"x-appwrite-response-format": "1.5.0"
2626
]
2727

2828
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/Appwrite/Services/Users.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,14 +1196,14 @@ open class Users: Service {
11961196
/// Delete Authenticator
11971197
///
11981198
/// @param String userId
1199-
/// @param AppwriteEnums.Type type
1199+
/// @param AppwriteEnums.AuthenticatorType type
12001200
/// @param String otp
12011201
/// @throws Exception
12021202
/// @return array
12031203
///
12041204
open func deleteAuthenticator<T>(
12051205
userId: String,
1206-
type: AppwriteEnums.Type,
1206+
type: AppwriteEnums.AuthenticatorType,
12071207
otp: String,
12081208
nestedType: T.Type
12091209
) async throws -> AppwriteModels.User<T> {
@@ -1236,14 +1236,14 @@ open class Users: Service {
12361236
/// Delete Authenticator
12371237
///
12381238
/// @param String userId
1239-
/// @param AppwriteEnums.Type type
1239+
/// @param AppwriteEnums.AuthenticatorType type
12401240
/// @param String otp
12411241
/// @throws Exception
12421242
/// @return array
12431243
///
12441244
open func deleteAuthenticator(
12451245
userId: String,
1246-
type: AppwriteEnums.Type,
1246+
type: AppwriteEnums.AuthenticatorType,
12471247
otp: String
12481248
) async throws -> AppwriteModels.User<[String: AnyCodable]> {
12491249
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)