Skip to content

Commit 0a2e764

Browse files
committed
feat: 1.6.x
1 parent f07d836 commit 0a2e764

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

library/src/main/java/io/appwrite/models/Membership.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ data class Membership(
3232
val userId: String,
3333

3434
/**
35-
* User name.
35+
* User name. Hide this attribute by toggling membership privacy in the Console.
3636
*/
3737
@SerializedName("userName")
3838
val userName: String,
3939

4040
/**
41-
* User email address.
41+
* User email address. Hide this attribute by toggling membership privacy in the Console.
4242
*/
4343
@SerializedName("userEmail")
4444
val userEmail: String,
@@ -74,7 +74,7 @@ data class Membership(
7474
val confirm: Boolean,
7575

7676
/**
77-
* Multi factor authentication status, true if the user has MFA enabled or false otherwise.
77+
* Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.
7878
*/
7979
@SerializedName("mfa")
8080
val mfa: Boolean,

library/src/main/java/io/appwrite/models/Target.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ data class Target(
5555
@SerializedName("identifier")
5656
val identifier: String,
5757

58+
/**
59+
* Is the target expired.
60+
*/
61+
@SerializedName("expired")
62+
val expired: Boolean,
63+
5864
) {
5965
fun toMap(): Map<String, Any> = mapOf(
6066
"\$id" to id as Any,
@@ -65,6 +71,7 @@ data class Target(
6571
"providerId" to providerId as Any,
6672
"providerType" to providerType as Any,
6773
"identifier" to identifier as Any,
74+
"expired" to expired as Any,
6875
)
6976

7077
companion object {
@@ -81,6 +88,7 @@ data class Target(
8188
providerId = map["providerId"] as? String?,
8289
providerType = map["providerType"] as String,
8390
identifier = map["identifier"] as String,
91+
expired = map["expired"] as Boolean,
8492
)
8593
}
8694
}

library/src/main/java/io/appwrite/services/Teams.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class Teams(client: Client) : Service(client) {
275275
/**
276276
* List team memberships
277277
*
278-
* Use this endpoint to list a team&#039;s members using the team&#039;s ID. All team members have read access to this endpoint.
278+
* Use this endpoint to list a team&#039;s members using the team&#039;s ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.
279279
*
280280
* @param teamId Team ID.
281281
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, teamId, invited, joined, confirm
@@ -369,7 +369,7 @@ class Teams(client: Client) : Service(client) {
369369
/**
370370
* Get team membership
371371
*
372-
* Get a team member by the membership unique id. All team members have read access for this resource.
372+
* Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.
373373
*
374374
* @param teamId Team ID.
375375
* @param membershipId Membership ID.

0 commit comments

Comments
 (0)