Skip to content

Commit 738e335

Browse files
committed
chore: update sdks for appwrite 1.6
1 parent 2531577 commit 738e335

File tree

90 files changed

+578
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+578
-66
lines changed

Sources/AppwriteModels/AlgoArgon2.swift

+4
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ public class AlgoArgon2 {
77
/// Algo type.
88
public let type: String
99

10+
1011
/// Memory used to compute hash.
1112
public let memoryCost: Int
1213

14+
1315
/// Amount of time consumed to compute hash
1416
public let timeCost: Int
1517

18+
1619
/// Number of threads used to compute hash.
1720
public let threads: Int
1821

1922

23+
2024
init(
2125
type: String,
2226
memoryCost: Int,

Sources/AppwriteModels/AlgoBcrypt.swift

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class AlgoBcrypt {
88
public let type: String
99

1010

11+
1112
init(
1213
type: String
1314
) {

Sources/AppwriteModels/AlgoMd5.swift

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class AlgoMd5 {
88
public let type: String
99

1010

11+
1112
init(
1213
type: String
1314
) {

Sources/AppwriteModels/AlgoPhpass.swift

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class AlgoPhpass {
88
public let type: String
99

1010

11+
1112
init(
1213
type: String
1314
) {

Sources/AppwriteModels/AlgoScrypt.swift

+5
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,24 @@ public class AlgoScrypt {
77
/// Algo type.
88
public let type: String
99

10+
1011
/// CPU complexity of computed hash.
1112
public let costCpu: Int
1213

14+
1315
/// Memory complexity of computed hash.
1416
public let costMemory: Int
1517

18+
1619
/// Parallelization of computed hash.
1720
public let costParallel: Int
1821

22+
1923
/// Length used to compute hash.
2024
public let length: Int
2125

2226

27+
2328
init(
2429
type: String,
2530
costCpu: Int,

Sources/AppwriteModels/AlgoScryptModified.swift

+4
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ public class AlgoScryptModified {
77
/// Algo type.
88
public let type: String
99

10+
1011
/// Salt used to compute hash.
1112
public let salt: String
1213

14+
1315
/// Separator used to compute hash.
1416
public let saltSeparator: String
1517

18+
1619
/// Key used to compute hash.
1720
public let signerKey: String
1821

1922

23+
2024
init(
2125
type: String,
2226
salt: String,

Sources/AppwriteModels/AlgoSha.swift

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class AlgoSha {
88
public let type: String
99

1010

11+
1112
init(
1213
type: String
1314
) {

Sources/AppwriteModels/AttributeBoolean.swift

+11-4
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,30 @@ public class AttributeBoolean {
77
/// Attribute Key.
88
public let key: String
99

10+
1011
/// Attribute type.
1112
public let type: String
1213

14+
1315
/// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1416
public let status: String
1517

18+
1619
/// Error message. Displays error generated on failure of creating or deleting an attribute.
1720
public let error: String
1821

22+
1923
/// Is attribute required?
2024
public let `required`: Bool
2125

26+
2227
/// Is attribute an array?
23-
public let array: Bool??
28+
public let array: Bool?
29+
2430

2531
/// Default value for attribute when not provided. Cannot be set when attribute is required.
26-
public let `default`: Bool??
32+
public let `default`: Bool?
33+
2734

2835

2936
init(
@@ -32,8 +39,8 @@ public class AttributeBoolean {
3239
status: String,
3340
error: String,
3441
`required`: Bool,
35-
array: Bool??,
36-
`default`: Bool??
42+
array: Bool?,
43+
`default`: Bool?
3744
) {
3845
self.key = key
3946
self.type = type

Sources/AppwriteModels/AttributeDatetime.swift

+12-4
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,34 @@ public class AttributeDatetime {
77
/// Attribute Key.
88
public let key: String
99

10+
1011
/// Attribute type.
1112
public let type: String
1213

14+
1315
/// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1416
public let status: String
1517

18+
1619
/// Error message. Displays error generated on failure of creating or deleting an attribute.
1720
public let error: String
1821

22+
1923
/// Is attribute required?
2024
public let `required`: Bool
2125

26+
2227
/// Is attribute an array?
23-
public let array: Bool??
28+
public let array: Bool?
29+
2430

2531
/// ISO 8601 format.
2632
public let format: String
2733

34+
2835
/// Default value for attribute when not provided. Only null is optional
29-
public let `default`: String??
36+
public let `default`: String?
37+
3038

3139

3240
init(
@@ -35,9 +43,9 @@ public class AttributeDatetime {
3543
status: String,
3644
error: String,
3745
`required`: Bool,
38-
array: Bool??,
46+
array: Bool?,
3947
format: String,
40-
`default`: String??
48+
`default`: String?
4149
) {
4250
self.key = key
4351
self.type = type

Sources/AppwriteModels/AttributeEmail.swift

+12-4
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,34 @@ public class AttributeEmail {
77
/// Attribute Key.
88
public let key: String
99

10+
1011
/// Attribute type.
1112
public let type: String
1213

14+
1315
/// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1416
public let status: String
1517

18+
1619
/// Error message. Displays error generated on failure of creating or deleting an attribute.
1720
public let error: String
1821

22+
1923
/// Is attribute required?
2024
public let `required`: Bool
2125

26+
2227
/// Is attribute an array?
23-
public let array: Bool??
28+
public let array: Bool?
29+
2430

2531
/// String format.
2632
public let format: String
2733

34+
2835
/// Default value for attribute when not provided. Cannot be set when attribute is required.
29-
public let `default`: String??
36+
public let `default`: String?
37+
3038

3139

3240
init(
@@ -35,9 +43,9 @@ public class AttributeEmail {
3543
status: String,
3644
error: String,
3745
`required`: Bool,
38-
array: Bool??,
46+
array: Bool?,
3947
format: String,
40-
`default`: String??
48+
`default`: String?
4149
) {
4250
self.key = key
4351
self.type = type

Sources/AppwriteModels/AttributeEnum.swift

+13-4
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,38 @@ public class AttributeEnum {
77
/// Attribute Key.
88
public let key: String
99

10+
1011
/// Attribute type.
1112
public let type: String
1213

14+
1315
/// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1416
public let status: String
1517

18+
1619
/// Error message. Displays error generated on failure of creating or deleting an attribute.
1720
public let error: String
1821

22+
1923
/// Is attribute required?
2024
public let `required`: Bool
2125

26+
2227
/// Is attribute an array?
23-
public let array: Bool??
28+
public let array: Bool?
29+
2430

2531
/// Array of elements in enumerated type.
2632
public let elements: [Any]
2733

34+
2835
/// String format.
2936
public let format: String
3037

38+
3139
/// Default value for attribute when not provided. Cannot be set when attribute is required.
32-
public let `default`: String??
40+
public let `default`: String?
41+
3342

3443

3544
init(
@@ -38,10 +47,10 @@ public class AttributeEnum {
3847
status: String,
3948
error: String,
4049
`required`: Bool,
41-
array: Bool??,
50+
array: Bool?,
4251
elements: [Any],
4352
format: String,
44-
`default`: String??
53+
`default`: String?
4554
) {
4655
self.key = key
4756
self.type = type

Sources/AppwriteModels/AttributeFloat.swift

+17-8
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,38 @@ public class AttributeFloat {
77
/// Attribute Key.
88
public let key: String
99

10+
1011
/// Attribute type.
1112
public let type: String
1213

14+
1315
/// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1416
public let status: String
1517

18+
1619
/// Error message. Displays error generated on failure of creating or deleting an attribute.
1720
public let error: String
1821

22+
1923
/// Is attribute required?
2024
public let `required`: Bool
2125

26+
2227
/// Is attribute an array?
23-
public let array: Bool??
28+
public let array: Bool?
29+
2430

2531
/// Minimum value to enforce for new documents.
26-
public let min: Double??
32+
public let min: Double?
33+
2734

2835
/// Maximum value to enforce for new documents.
29-
public let max: Double??
36+
public let max: Double?
37+
3038

3139
/// Default value for attribute when not provided. Cannot be set when attribute is required.
32-
public let `default`: Double??
40+
public let `default`: Double?
41+
3342

3443

3544
init(
@@ -38,10 +47,10 @@ public class AttributeFloat {
3847
status: String,
3948
error: String,
4049
`required`: Bool,
41-
array: Bool??,
42-
min: Double??,
43-
max: Double??,
44-
`default`: Double??
50+
array: Bool?,
51+
min: Double?,
52+
max: Double?,
53+
`default`: Double?
4554
) {
4655
self.key = key
4756
self.type = type

0 commit comments

Comments
 (0)