Skip to content

Commit 4216a5b

Browse files
Merge pull request #223 from appwrite/dev
release: sdk
2 parents 67f4c14 + 8a9e6dd commit 4216a5b

22 files changed

+74
-39
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^13.0.0
24+
appwrite: ^13.1.0
2525
```
2626
2727
You can install packages from the command line:

lib/services/account.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Account extends Service {
8585
return models.User.fromMap(res.data);
8686
}
8787

88-
/// List Identities
88+
/// List identities
8989
///
9090
/// Get the list of identities for the currently logged in user.
9191
Future<models.IdentityList> listIdentities({List<String>? queries}) async {
@@ -187,7 +187,7 @@ class Account extends Service {
187187
return models.User.fromMap(res.data);
188188
}
189189

190-
/// Create Authenticator
190+
/// Create authenticator
191191
///
192192
/// Add an authenticator app to be used as an MFA factor. Verify the
193193
/// authenticator using the [verify
@@ -210,7 +210,7 @@ class Account extends Service {
210210
return models.MfaType.fromMap(res.data);
211211
}
212212

213-
/// Verify Authenticator
213+
/// Verify authenticator
214214
///
215215
/// Verify an authenticator app after adding it using the [add
216216
/// authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator)
@@ -234,7 +234,7 @@ class Account extends Service {
234234
return models.User.fromMap(res.data);
235235
}
236236

237-
/// Delete Authenticator
237+
/// Delete authenticator
238238
///
239239
/// Delete an authenticator for a user by ID.
240240
Future deleteMfaAuthenticator({required enums.AuthenticatorType type}) async {
@@ -253,7 +253,7 @@ class Account extends Service {
253253
return res.data;
254254
}
255255

256-
/// Create MFA Challenge
256+
/// Create MFA challenge
257257
///
258258
/// Begin the process of MFA verification after sign-in. Finish the flow with
259259
/// [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
@@ -276,7 +276,7 @@ class Account extends Service {
276276
return models.MfaChallenge.fromMap(res.data);
277277
}
278278

279-
/// Create MFA Challenge (confirmation)
279+
/// Create MFA challenge (confirmation)
280280
///
281281
/// Complete the MFA challenge by providing the one-time password. Finish the
282282
/// process of MFA verification by providing the one-time password. To begin
@@ -302,7 +302,7 @@ class Account extends Service {
302302
return res.data;
303303
}
304304

305-
/// List Factors
305+
/// List factors
306306
///
307307
/// List the factors available on the account to be used as a MFA challange.
308308
Future<models.MfaFactors> listMfaFactors() async {
@@ -320,7 +320,7 @@ class Account extends Service {
320320
return models.MfaFactors.fromMap(res.data);
321321
}
322322

323-
/// Get MFA Recovery Codes
323+
/// Get MFA recovery codes
324324
///
325325
/// Get recovery codes that can be used as backup for MFA flow. Before getting
326326
/// codes, they must be generated using
@@ -341,7 +341,7 @@ class Account extends Service {
341341
return models.MfaRecoveryCodes.fromMap(res.data);
342342
}
343343

344-
/// Create MFA Recovery Codes
344+
/// Create MFA recovery codes
345345
///
346346
/// Generate recovery codes as backup for MFA flow. It's recommended to
347347
/// generate and show then immediately after user successfully adds their
@@ -363,7 +363,7 @@ class Account extends Service {
363363
return models.MfaRecoveryCodes.fromMap(res.data);
364364
}
365365

366-
/// Regenerate MFA Recovery Codes
366+
/// Regenerate MFA recovery codes
367367
///
368368
/// Regenerate recovery codes that can be used as backup for MFA flow. Before
369369
/// regenerating codes, they must be first generated using

lib/services/locale.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Locale extends Service {
2929
return models.Locale.fromMap(res.data);
3030
}
3131

32-
/// List Locale Codes
32+
/// List locale codes
3333
///
3434
/// List of all locale codes in [ISO
3535
/// 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).

lib/services/storage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Storage extends Service {
133133
return models.File.fromMap(res.data);
134134
}
135135

136-
/// Delete File
136+
/// Delete file
137137
///
138138
/// Delete a file by its unique ID. Only users with write permissions have
139139
/// access to delete this resource.

lib/services/teams.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ class Teams extends Service {
116116
/// List team memberships
117117
///
118118
/// Use this endpoint to list a team's members using the team's ID. All team
119-
/// members have read access to this endpoint.
119+
/// members have read access to this endpoint. Hide sensitive attributes from
120+
/// the response by toggling membership privacy in the Console.
120121
Future<models.MembershipList> listMemberships(
121122
{required String teamId, List<String>? queries, String? search}) async {
122123
final String apiPath =
@@ -193,7 +194,8 @@ class Teams extends Service {
193194
/// Get team membership
194195
///
195196
/// Get a team member by the membership unique id. All team members have read
196-
/// access for this resource.
197+
/// access for this resource. Hide sensitive attributes from the response by
198+
/// toggling membership privacy in the Console.
197199
Future<models.Membership> getMembership(
198200
{required String teamId, required String membershipId}) async {
199201
final String apiPath = '/teams/{teamId}/memberships/{membershipId}'

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
4343
'x-sdk-name': 'Flutter',
4444
'x-sdk-platform': 'client',
4545
'x-sdk-language': 'flutter',
46-
'x-sdk-version': '13.0.0',
46+
'x-sdk-version': '13.1.0',
4747
'X-Appwrite-Response-Format': '1.6.0',
4848
};
4949

lib/src/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin {
6464
'x-sdk-name': 'Flutter',
6565
'x-sdk-platform': 'client',
6666
'x-sdk-language': 'flutter',
67-
'x-sdk-version': '13.0.0',
67+
'x-sdk-version': '13.1.0',
6868
'X-Appwrite-Response-Format': '1.6.0',
6969
};
7070

lib/src/enums/image_format.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ enum ImageFormat {
55
jpeg(value: 'jpeg'),
66
gif(value: 'gif'),
77
png(value: 'png'),
8-
webp(value: 'webp');
8+
webp(value: 'webp'),
9+
avif(value: 'avif');
910

1011
const ImageFormat({required this.value});
1112

lib/src/models/document.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Document implements Model {
1818
final String $updatedAt;
1919

2020
/// Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
21-
final List $permissions;
21+
final List<String> $permissions;
2222
final Map<String, dynamic> data;
2323

2424
Document({

lib/src/models/execution.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Execution implements Model {
1212
final String $updatedAt;
1313

1414
/// Execution roles.
15-
final List $permissions;
15+
final List<String> $permissions;
1616

1717
/// Function ID.
1818
final String functionId;

0 commit comments

Comments
 (0)