Skip to content

Commit 9ee0e37

Browse files
Merge pull request #63 from appwrite/1.6.x
1.6.x
2 parents 263f9ba + 37a396a commit 9ee0e37

File tree

294 files changed

+1007
-483
lines changed

Some content is hidden

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

294 files changed

+1007
-483
lines changed

.github/workflows/publish.yml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
tags:
66
- '[0-9]+\.[0-9]+\.[0-9]+*'
77

8-
# Publish using custom workflow
98
jobs:
109
publish:
1110
permissions:

CHANGELOG.md

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## 12.0.0
2+
3+
* Support for Appwrite 1.6
4+
* Added `key` attribute to `Runtime` response model.
5+
* Added `buildSize` attribute to `Deployments` response model.
6+
* Added `scheduledAt` attribute to `Executions` response model.
7+
* Added `scopes` attribute to `Functions` response model.
8+
* Added `specifications` attribute to `Functions` response model.
9+
* Added new response model for `Specifications`.
10+
* Added new response model for `Builds`.
11+
* Added `createJWT()` : Enables creating a JWT using the `userId`.
12+
* Added `listSpecifications()`: Enables listing available runtime specifications.
13+
* Added `deleteExecution()` : Enables deleting executions.
14+
* Added `updateDeploymentBuild()`: Enables cancelling a deployment.
15+
* Added `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution
16+
* Breaking changes:
17+
* Removed `otp` parameter from `deleteMFAAuthenticator`.
18+
* Added `scopes` parameter for create/update function.
19+
* Renamed `templateBranch` to `templateVersion` in `createFunction()`.
20+
* Renamed `downloadDeployment()` to `getDeploymentDownload()`
21+
22+
You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
23+
24+
**Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.**
25+
126
## 11.0.3
227

328
* Minor bugfixes

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[![pub package](https://img.shields.io/pub/v/dart_appwrite.svg?style=flat-square)](https://pub.dartlang.org/packages/dart_appwrite)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-dart.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.5.x-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.6.x-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
99

10-
**This SDK is compatible with Appwrite server version 1.5.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dart/releases).**
10+
**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dart/releases).**
1111

1212
> This is the Dart SDK for integrating with Appwrite from your Dart server-side code. If you're looking for the Flutter SDK you should check [appwrite/sdk-for-flutter](https://github.com/appwrite/sdk-for-flutter)
1313
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^11.0.3
26+
dart_appwrite: ^12.0.0
2727
```
2828
2929
You can install packages from the command line:

docs/examples/account/create-anonymous-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-email-password-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-email-token.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-j-w-t.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-magic-u-r-l-token.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-mfa-authenticator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/create-mfa-challenge.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-mfa-recovery-codes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/create-o-auth2token.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-phone-token.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-phone-verification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/create-recovery.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/create-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/create-verification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/create.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/delete-identity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/delete-mfa-authenticator.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);
99

1010
await account.deleteMfaAuthenticator(
1111
type: AuthenticatorType.totp,
12-
otp: '<OTP>',
1312
);

docs/examples/account/delete-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/delete-sessions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/get-mfa-recovery-codes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/get-prefs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/get-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/get.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/list-identities.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/list-logs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/list-mfa-factors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/list-sessions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/update-email.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/update-m-f-a.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/update-magic-u-r-l-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/update-mfa-authenticator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/update-mfa-challenge.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/update-mfa-recovery-codes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/update-name.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/update-password.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

docs/examples/account/update-phone-session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
Account account = Account(client);
88

docs/examples/account/update-phone-verification.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2') // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
66
.setSession(''); // The user session to authenticate with
77

88
Account account = Account(client);

0 commit comments

Comments
 (0)