Skip to content

Commit d029f79

Browse files
committed
Fixes for nested query parsing and MFA route authentication types
1 parent 22683ff commit d029f79

File tree

7 files changed

+6
-22
lines changed

7 files changed

+6
-22
lines changed

docs/examples/java/users/delete-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import io.appwrite.enums.AuthenticatorProvider;
66
Client client = new Client()
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
88
.setProject("5df5acd0d48c2") // Your project ID
9-
.setSession(""); // The user session to authenticate with
9+
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
1010

1111
Users users = new Users(client);
1212

docs/examples/java/users/list-providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import io.appwrite.services.Users;
55
Client client = new Client()
66
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
8-
.setSession(""); // The user session to authenticate with
8+
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
99

1010
Users users = new Users(client);
1111

docs/examples/kotlin/users/delete-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import io.appwrite.enums.AuthenticatorProvider
66
val client = Client()
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
88
.setProject("5df5acd0d48c2") // Your project ID
9-
.setSession("") // The user session to authenticate with
9+
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
1010

1111
val users = Users(client)
1212

docs/examples/kotlin/users/list-providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import io.appwrite.services.Users
55
val client = Client()
66
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("5df5acd0d48c2") // Your project ID
8-
.setSession("") // The user session to authenticate with
8+
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
99

1010
val users = Users(client)
1111

src/main/kotlin/io/appwrite/models/Message.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@ data class Message(
8585
@SerializedName("status")
8686
val status: String,
8787

88-
/**
89-
* Message description.
90-
*/
91-
@SerializedName("description")
92-
var description: String?,
93-
9488
) {
9589
fun toMap(): Map<String, Any> = mapOf(
9690
"\$id" to id as Any,
@@ -106,7 +100,6 @@ data class Message(
106100
"deliveredTotal" to deliveredTotal as Any,
107101
"data" to data as Any,
108102
"status" to status as Any,
109-
"description" to description as Any,
110103
)
111104

112105
companion object {
@@ -128,7 +121,6 @@ data class Message(
128121
deliveredTotal = (map["deliveredTotal"] as Number).toLong(),
129122
data = map["data"] as Any,
130123
status = map["status"] as String,
131-
description = map["description"] as? String?,
132124
)
133125
}
134126
}

src/main/kotlin/io/appwrite/models/Session.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ data class Session(
161161
* Returns a list of active session factors.
162162
*/
163163
@SerializedName("factors")
164-
val factors: Long,
164+
val factors: List<Any>,
165165

166166
/**
167167
* Secret used to authenticate the user. Only included if the request was made with an API key
@@ -231,7 +231,7 @@ data class Session(
231231
countryCode = map["countryCode"] as String,
232232
countryName = map["countryName"] as String,
233233
current = map["current"] as Boolean,
234-
factors = (map["factors"] as Number).toLong(),
234+
factors = map["factors"] as List<Any>,
235235
secret = map["secret"] as String,
236236
)
237237
}

src/main/kotlin/io/appwrite/models/Topic.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,13 @@ data class Topic(
3737
@SerializedName("total")
3838
val total: Long,
3939

40-
/**
41-
* Description of the topic.
42-
*/
43-
@SerializedName("description")
44-
var description: String?,
45-
4640
) {
4741
fun toMap(): Map<String, Any> = mapOf(
4842
"\$id" to id as Any,
4943
"\$createdAt" to createdAt as Any,
5044
"\$updatedAt" to updatedAt as Any,
5145
"name" to name as Any,
5246
"total" to total as Any,
53-
"description" to description as Any,
5447
)
5548

5649
companion object {
@@ -64,7 +57,6 @@ data class Topic(
6457
updatedAt = map["\$updatedAt"] as String,
6558
name = map["name"] as String,
6659
total = (map["total"] as Number).toLong(),
67-
description = map["description"] as? String?,
6860
)
6961
}
7062
}

0 commit comments

Comments
 (0)