Skip to content

Commit c00ee1d

Browse files
committed
feat: 1.6.x
1 parent 088dbf2 commit c00ee1d

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

Sources/Appwrite/Services/Teams.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ open class Teams: Service {
286286
/// List team memberships
287287
///
288288
/// Use this endpoint to list a team's members using the team's ID. All team
289-
/// members have read access to this endpoint.
289+
/// members have read access to this endpoint. Hide sensitive attributes from
290+
/// the response by toggling membership privacy in the Console.
290291
///
291292
/// @param String teamId
292293
/// @param [String] queries
@@ -401,7 +402,8 @@ open class Teams: Service {
401402
/// Get team membership
402403
///
403404
/// Get a team member by the membership unique id. All team members have read
404-
/// access for this resource.
405+
/// access for this resource. Hide sensitive attributes from the response by
406+
/// toggling membership privacy in the Console.
405407
///
406408
/// @param String teamId
407409
/// @param String membershipId

Sources/AppwriteModels/Membership.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ public class Membership {
1616
/// User ID.
1717
public let userId: String
1818

19-
/// User name.
19+
/// User name. Hide this attribute by toggling membership privacy in the Console.
2020
public let userName: String
2121

22-
/// User email address.
22+
/// User email address. Hide this attribute by toggling membership privacy in the Console.
2323
public let userEmail: String
2424

2525
/// Team ID.
@@ -37,7 +37,7 @@ public class Membership {
3737
/// User confirmation status, true if the user has joined the team or false otherwise.
3838
public let confirm: Bool
3939

40-
/// Multi factor authentication status, true if the user has MFA enabled or false otherwise.
40+
/// Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.
4141
public let mfa: Bool
4242

4343
/// User list of roles

Sources/AppwriteModels/Target.swift

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public class Target {
2828
/// The target identifier.
2929
public let identifier: String
3030

31+
/// Is the target expired.
32+
public let expired: Bool
33+
3134

3235
init(
3336
id: String,
@@ -37,7 +40,8 @@ public class Target {
3740
userId: String,
3841
providerId: String?,
3942
providerType: String,
40-
identifier: String
43+
identifier: String,
44+
expired: Bool
4145
) {
4246
self.id = id
4347
self.createdAt = createdAt
@@ -47,6 +51,7 @@ public class Target {
4751
self.providerId = providerId
4852
self.providerType = providerType
4953
self.identifier = identifier
54+
self.expired = expired
5055
}
5156

5257
public func toMap() -> [String: Any] {
@@ -58,7 +63,8 @@ public class Target {
5863
"userId": userId as Any,
5964
"providerId": providerId as Any,
6065
"providerType": providerType as Any,
61-
"identifier": identifier as Any
66+
"identifier": identifier as Any,
67+
"expired": expired as Any
6268
]
6369
}
6470

@@ -71,7 +77,8 @@ public class Target {
7177
userId: map["userId"] as! String,
7278
providerId: map["providerId"] as? String,
7379
providerType: map["providerType"] as! String,
74-
identifier: map["identifier"] as! String
80+
identifier: map["identifier"] as! String,
81+
expired: map["expired"] as! Bool
7582
)
7683
}
7784
}

0 commit comments

Comments
 (0)