Merge branch '0.10.x' of https://github.com/appwrite/appwrite into feat-265-realtime

This commit is contained in:
Torsten Dittmann
2021-07-12 09:53:27 +02:00
113 changed files with 250 additions and 230 deletions
+4 -4
View File
@@ -123,6 +123,10 @@ Learn more at our [Technology Stack](## Technology Stack) section.
Appwrite's current structure is a combination of both [Monolithic](https://en.wikipedia.org/wiki/Monolithic_application) and [Microservice](https://en.wikipedia.org/wiki/Microservices) architectures, but our final goal, as we grow, is to be using only microservices.
---
![Appwrite](docs/specs/overview.drawio.svg)
---
### File Structure
```bash
@@ -176,10 +180,6 @@ Appwrite's current structure is a combination of both [Monolithic](https://en.wi
└── unit
```
---
![Appwrite](docs/specs/overview.drawio.svg)
---
### The Monolithic Part
Appwrite's main API container is designed as a monolithic app. This is a decision we made to allow us to develop the project faster while still being a very small team.
+9 -7
View File
@@ -1,6 +1,6 @@
<br />
<p align="center">
<a href="https://appwrite.io" target="_blank"><img width="260" height="39" src="https://appwrite.io/images/github-logo.png" alt="Appwrite Logo"></a>
<a href="https://appwrite.io" target="_blank"><img width="260" height="39" src="https://appwrite.io/images/appwrite.svg" alt="Appwrite Logo"></a>
<br />
<br />
<b>A complete backend solution for your [Flutter / Vue / Angular / React / iOS / Android / *ANY OTHER*] app</b>
@@ -15,7 +15,7 @@
[![Build Status](https://img.shields.io/travis/com/appwrite/appwrite?style=flat-square)](https://travis-ci.com/appwrite/appwrite)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
[**Appwrite 0.8 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-0-8-an-open-source-self-hosted-baas-kda)
[**Appwrite 0.9 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-0-9-the-open-source-firebase-alternative-53ho)
Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker<nobr> microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster.
@@ -56,7 +56,7 @@ docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:0.8.0
appwrite/appwrite:0.9.0
```
### Windows
@@ -68,7 +68,7 @@ docker run -it --rm ^
--volume //var/run/docker.sock:/var/run/docker.sock ^
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
--entrypoint="install" ^
appwrite/appwrite:0.8.0
appwrite/appwrite:0.9.0
```
#### PowerShell
@@ -78,7 +78,7 @@ docker run -it --rm ,
--volume /var/run/docker.sock:/var/run/docker.sock ,
--volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ,
--entrypoint="install" ,
appwrite/appwrite:0.8.0
appwrite/appwrite:0.9.0
```
Once the Docker installation completes, go to http://localhost to access the Appwrite console from your browser. Please note that on non-linux native hosts, the server might take a few minutes to start after installation completes.
@@ -121,14 +121,16 @@ Below is a list of currently supported platforms and languages. If you wish to h
#### Client
* ✅ &nbsp; [Web](https://github.com/appwrite/sdk-for-web) (Maintained by the Appwrite Team)
* ✅ &nbsp; [Flutter](https://github.com/appwrite/sdk-for-flutter) (Maintained by the Appwrite Team)
* ✅ &nbsp; [Android](https://github.com/appwrite/sdk-for-android) (Maintained by the Appwrite Team)
#### Server
* ✅ &nbsp; [NodeJS](https://github.com/appwrite/sdk-for-node) (Maintained by the Appwrite Team)
* ✅ &nbsp; [PHP](https://github.com/appwrite/sdk-for-php) (Maintained by the Appwrite Team)
* ✅ &nbsp; [Dart](https://github.com/appwrite/sdk-for-dart) **Beta** (Maintained by the Appwrite Team)
* ✅ &nbsp; [Deno](https://github.com/appwrite/sdk-for-deno) - **Beta** (Maintained by the Appwrite Team)
* ✅ &nbsp; [Ruby](https://github.com/appwrite/sdk-for-ruby) - **Beta** (Maintained by the Appwrite Team)
* ✅ &nbsp; [Python](https://github.com/appwrite/sdk-for-python) - **Beta** (Maintained by the Appwrite Team)
* ✅ &nbsp; [Ruby](https://github.com/appwrite/sdk-for-ruby) (Maintained by the Appwrite Team)
* ✅ &nbsp; [Python](https://github.com/appwrite/sdk-for-python) (Maintained by the Appwrite Team)
* ✅ &nbsp; [Kotlin](https://github.com/appwrite/sdk-for-kotlin) - **Beta** (Maintained by the Appwrite Team)
* ✅ &nbsp; [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Experimental** (Maintained by the Appwrite Team)
Looking for more SDKs? - Help us by contributing a pull request to our [SDK Generator](https://github.com/appwrite/sdk-generator)!
+2 -2
View File
@@ -113,7 +113,7 @@ return [
'name' => 'Android',
'version' => '0.0.1',
'url' => 'https://github.com/appwrite/sdk-for-android',
'package' => 'https://repo1.maven.org/maven2/io/appwrite/sdk-for-android/',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
'enabled' => true,
'beta' => true,
'dev' => false,
@@ -355,7 +355,7 @@ return [
'name' => 'Kotlin',
'version' => '0.0.1',
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
'package' => 'https://repo1.maven.org/maven2/io/appwrite/sdk-for-kotlin/',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
'enabled' => true,
'beta' => true,
'dev' => false,
+2 -2
View File
@@ -437,7 +437,7 @@ App::get('/v1/database/collections/:collectionId/documents')
}
$types = [];
foreach ($collection->getAttribute('rules') as $rule) {
foreach ($collection->getAttribute('rules', []) as $rule) {
/** @var Document $rule */
$types[$rule->getAttribute('key')] = $rule->getAttribute('type');
}
@@ -630,4 +630,4 @@ App::delete('/v1/database/collections/:collectionId/documents/:documentId')
;
$response->noContent();
});
});
+1 -1
View File
@@ -338,7 +338,7 @@ class FunctionsV1 extends Worker
: null;
if(\is_null($runtime)) {
throw new Exception('Runtime "'.$function->getAttribute('runtime', '').' is not supported');
throw new Exception('Runtime "'.$function->getAttribute('runtime', '').'" is not supported');
}
$vars = \array_merge($function->getAttribute('vars', []), [
@@ -9,9 +9,9 @@ public void main() {
Account account = new Account(client);
account.createRecovery(
email = "email@example.com",
url = "https://example.com"
new Continuation<Response>() {
"email@example.com",
"https://example.com"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Account account = new Account(client);
account.createVerification(
url = "https://example.com"
new Continuation<Response>() {
"https://example.com"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Account account = new Account(client);
account.deleteSession(
sessionId = "[SESSION_ID]"
new Continuation<Response>() {
"[SESSION_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
Account account = new Account(client);
account.deleteSessions(new Continuation<Response>() {
account.deleteSessions(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
Account account = new Account(client);
account.delete(new Continuation<Response>() {
account.delete(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
Account account = new Account(client);
account.getLogs(new Continuation<Response>() {
account.getLogs(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
Account account = new Account(client);
account.getPrefs(new Continuation<Response>() {
account.getPrefs(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Account account = new Account(client);
account.getSession(
sessionId = "[SESSION_ID]"
new Continuation<Response>() {
"[SESSION_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
Account account = new Account(client);
account.getSessions(new Continuation<Response>() {
account.getSessions(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
Account account = new Account(client);
account.get(new Continuation<Response>() {
account.get(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Account account = new Account(client);
account.updateEmail(
email = "email@example.com",
password = "password"
new Continuation<Response>() {
"email@example.com",
"password"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Account account = new Account(client);
account.updateName(
name = "[NAME]"
new Continuation<Response>() {
"[NAME]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Account account = new Account(client);
account.updatePassword(
password = "password",
new Continuation<Response>() {
"password",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Account account = new Account(client);
account.updatePrefs(
prefs = mapOf( "a" to "b" )
new Continuation<Response>() {
mapOf( "a" to "b" )
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,11 +9,11 @@ public void main() {
Account account = new Account(client);
account.updateRecovery(
userId = "[USER_ID]",
secret = "[SECRET]",
password = "password",
passwordAgain = "password"
new Continuation<Response>() {
"[USER_ID]",
"[SECRET]",
"password",
"password"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Account account = new Account(client);
account.updateVerification(
userId = "[USER_ID]",
secret = "[SECRET]"
new Continuation<Response>() {
"[USER_ID]",
"[SECRET]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Avatars avatars = new Avatars(client);
avatars.getBrowser(
code = "aa",
new Continuation<Response>() {
"aa",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Avatars avatars = new Avatars(client);
avatars.getCreditCard(
code = "amex",
new Continuation<Response>() {
"amex",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Avatars avatars = new Avatars(client);
avatars.getFavicon(
url = "https://example.com"
new Continuation<Response>() {
"https://example.com"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Avatars avatars = new Avatars(client);
avatars.getFlag(
code = "af",
new Continuation<Response>() {
"af",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Avatars avatars = new Avatars(client);
avatars.getImage(
url = "https://example.com",
new Continuation<Response>() {
"https://example.com",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,7 +9,7 @@ public void main() {
Avatars avatars = new Avatars(client);
avatars.getInitials(
new Continuation<Response>() {
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Avatars avatars = new Avatars(client);
avatars.getQR(
text = "[TEXT]",
new Continuation<Response>() {
"[TEXT]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,11 +9,11 @@ public void main() {
Database database = new Database(client);
database.createCollection(
name = "[NAME]",
read = listOf(),
write = listOf(),
rules = listOf()
new Continuation<Response>() {
"[NAME]",
listOf(),
listOf(),
listOf()
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Database database = new Database(client);
database.createDocument(
collectionId = "[COLLECTION_ID]",
data = mapOf( "a" to "b" ),
new Continuation<Response>() {
"[COLLECTION_ID]",
mapOf( "a" to "b" ),
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Database database = new Database(client);
database.deleteCollection(
collectionId = "[COLLECTION_ID]"
new Continuation<Response>() {
"[COLLECTION_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Database database = new Database(client);
database.deleteDocument(
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]"
new Continuation<Response>() {
"[COLLECTION_ID]",
"[DOCUMENT_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Database database = new Database(client);
database.getCollection(
collectionId = "[COLLECTION_ID]"
new Continuation<Response>() {
"[COLLECTION_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Database database = new Database(client);
database.getDocument(
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]"
new Continuation<Response>() {
"[COLLECTION_ID]",
"[DOCUMENT_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,7 +9,7 @@ public void main() {
Database database = new Database(client);
database.listCollections(
new Continuation<Response>() {
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Database database = new Database(client);
database.listDocuments(
collectionId = "[COLLECTION_ID]",
new Continuation<Response>() {
"[COLLECTION_ID]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Database database = new Database(client);
database.updateCollection(
collectionId = "[COLLECTION_ID]",
name = "[NAME]",
new Continuation<Response>() {
"[COLLECTION_ID]",
"[NAME]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,10 +9,10 @@ public void main() {
Database database = new Database(client);
database.updateDocument(
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]",
data = mapOf( "a" to "b" ),
new Continuation<Response>() {
"[COLLECTION_ID]",
"[DOCUMENT_ID]",
mapOf( "a" to "b" ),
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Functions functions = new Functions(client);
functions.createExecution(
functionId = "[FUNCTION_ID]",
new Continuation<Response>() {
"[FUNCTION_ID]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,10 +9,10 @@ public void main() {
Functions functions = new Functions(client);
functions.createTag(
functionId = "[FUNCTION_ID]",
command = "[COMMAND]",
code = File("./path-to-files/image.jpg")
new Continuation<Response>() {
"[FUNCTION_ID]",
"[COMMAND]",
File("./path-to-files/image.jpg")
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,10 +9,10 @@ public void main() {
Functions functions = new Functions(client);
functions.create(
name = "[NAME]",
execute = listOf(),
runtime = "java-11.0",
new Continuation<Response>() {
"[NAME]",
listOf(),
"java-11.0",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Functions functions = new Functions(client);
functions.deleteTag(
functionId = "[FUNCTION_ID]",
tagId = "[TAG_ID]"
new Continuation<Response>() {
"[FUNCTION_ID]",
"[TAG_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Functions functions = new Functions(client);
functions.delete(
functionId = "[FUNCTION_ID]"
new Continuation<Response>() {
"[FUNCTION_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Functions functions = new Functions(client);
functions.getExecution(
functionId = "[FUNCTION_ID]",
executionId = "[EXECUTION_ID]"
new Continuation<Response>() {
"[FUNCTION_ID]",
"[EXECUTION_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Functions functions = new Functions(client);
functions.getTag(
functionId = "[FUNCTION_ID]",
tagId = "[TAG_ID]"
new Continuation<Response>() {
"[FUNCTION_ID]",
"[TAG_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Functions functions = new Functions(client);
functions.get(
functionId = "[FUNCTION_ID]"
new Continuation<Response>() {
"[FUNCTION_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Functions functions = new Functions(client);
functions.listExecutions(
functionId = "[FUNCTION_ID]",
new Continuation<Response>() {
"[FUNCTION_ID]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Functions functions = new Functions(client);
functions.listTags(
functionId = "[FUNCTION_ID]",
new Continuation<Response>() {
"[FUNCTION_ID]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,7 +9,7 @@ public void main() {
Functions functions = new Functions(client);
functions.list(
new Continuation<Response>() {
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Functions functions = new Functions(client);
functions.updateTag(
functionId = "[FUNCTION_ID]",
tag = "[TAG]"
new Continuation<Response>() {
"[FUNCTION_ID]",
"[TAG]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,10 +9,10 @@ public void main() {
Functions functions = new Functions(client);
functions.update(
functionId = "[FUNCTION_ID]",
name = "[NAME]",
execute = listOf(),
new Continuation<Response>() {
"[FUNCTION_ID]",
"[NAME]",
listOf(),
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getAntiVirus(new Continuation<Response>() {
health.getAntiVirus(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getCache(new Continuation<Response>() {
health.getCache(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getDB(new Continuation<Response>() {
health.getDB(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getQueueCertificates(new Continuation<Response>() {
health.getQueueCertificates(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getQueueFunctions(new Continuation<Response>() {
health.getQueueFunctions(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getQueueLogs(new Continuation<Response>() {
health.getQueueLogs(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getQueueTasks(new Continuation<Response>() {
health.getQueueTasks(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getQueueUsage(new Continuation<Response>() {
health.getQueueUsage(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getQueueWebhooks(new Continuation<Response>() {
health.getQueueWebhooks(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getStorageLocal(new Continuation<Response>() {
health.getStorageLocal(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getTime(new Continuation<Response>() {
health.getTime(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.get(new Continuation<Response>() {
health.get(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Locale locale = new Locale(client);
locale.getContinents(new Continuation<Response>() {
locale.getContinents(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Locale locale = new Locale(client);
locale.getCountriesEU(new Continuation<Response>() {
locale.getCountriesEU(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Locale locale = new Locale(client);
locale.getCountriesPhones(new Continuation<Response>() {
locale.getCountriesPhones(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Locale locale = new Locale(client);
locale.getCountries(new Continuation<Response>() {
locale.getCountries(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Locale locale = new Locale(client);
locale.getCurrencies(new Continuation<Response>() {
locale.getCurrencies(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Locale locale = new Locale(client);
locale.getLanguages(new Continuation<Response>() {
locale.getLanguages(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -8,7 +8,7 @@ public void main() {
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Locale locale = new Locale(client);
locale.get(new Continuation<Response>() {
locale.get(new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Storage storage = new Storage(client);
storage.createFile(
file = File("./path-to-files/image.jpg"),
new Continuation<Response>() {
File("./path-to-files/image.jpg"),
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Storage storage = new Storage(client);
storage.deleteFile(
fileId = "[FILE_ID]"
new Continuation<Response>() {
"[FILE_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Storage storage = new Storage(client);
storage.getFileDownload(
fileId = "[FILE_ID]"
new Continuation<Response>() {
"[FILE_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Storage storage = new Storage(client);
storage.getFilePreview(
fileId = "[FILE_ID]",
new Continuation<Response>() {
"[FILE_ID]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Storage storage = new Storage(client);
storage.getFileView(
fileId = "[FILE_ID]"
new Continuation<Response>() {
"[FILE_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Storage storage = new Storage(client);
storage.getFile(
fileId = "[FILE_ID]"
new Continuation<Response>() {
"[FILE_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,7 +9,7 @@ public void main() {
Storage storage = new Storage(client);
storage.listFiles(
new Continuation<Response>() {
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,10 +9,10 @@ public void main() {
Storage storage = new Storage(client);
storage.updateFile(
fileId = "[FILE_ID]",
read = listOf(),
write = listOf()
new Continuation<Response>() {
"[FILE_ID]",
listOf(),
listOf()
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,11 +9,11 @@ public void main() {
Teams teams = new Teams(client);
teams.createMembership(
teamId = "[TEAM_ID]",
email = "email@example.com",
roles = listOf(),
url = "https://example.com",
new Continuation<Response>() {
"[TEAM_ID]",
"email@example.com",
listOf(),
"https://example.com",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Teams teams = new Teams(client);
teams.create(
name = "[NAME]",
new Continuation<Response>() {
"[NAME]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Teams teams = new Teams(client);
teams.deleteMembership(
teamId = "[TEAM_ID]",
membershipId = "[MEMBERSHIP_ID]"
new Continuation<Response>() {
"[TEAM_ID]",
"[MEMBERSHIP_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Teams teams = new Teams(client);
teams.delete(
teamId = "[TEAM_ID]"
new Continuation<Response>() {
"[TEAM_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Teams teams = new Teams(client);
teams.getMemberships(
teamId = "[TEAM_ID]",
new Continuation<Response>() {
"[TEAM_ID]",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Teams teams = new Teams(client);
teams.get(
teamId = "[TEAM_ID]"
new Continuation<Response>() {
"[TEAM_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,7 +9,7 @@ public void main() {
Teams teams = new Teams(client);
teams.list(
new Continuation<Response>() {
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,10 +9,10 @@ public void main() {
Teams teams = new Teams(client);
teams.updateMembershipRoles(
teamId = "[TEAM_ID]",
membershipId = "[MEMBERSHIP_ID]",
roles = listOf()
new Continuation<Response>() {
"[TEAM_ID]",
"[MEMBERSHIP_ID]",
listOf()
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,11 +9,11 @@ public void main() {
Teams teams = new Teams(client);
teams.updateMembershipStatus(
teamId = "[TEAM_ID]",
membershipId = "[MEMBERSHIP_ID]",
userId = "[USER_ID]",
secret = "[SECRET]"
new Continuation<Response>() {
"[TEAM_ID]",
"[MEMBERSHIP_ID]",
"[USER_ID]",
"[SECRET]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Teams teams = new Teams(client);
teams.update(
teamId = "[TEAM_ID]",
name = "[NAME]"
new Continuation<Response>() {
"[TEAM_ID]",
"[NAME]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Users users = new Users(client);
users.create(
email = "email@example.com",
password = "password",
new Continuation<Response>() {
"email@example.com",
"password",
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Users users = new Users(client);
users.deleteSession(
userId = "[USER_ID]",
sessionId = "[SESSION_ID]"
new Continuation<Response>() {
"[USER_ID]",
"[SESSION_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Users users = new Users(client);
users.deleteSessions(
userId = "[USER_ID]"
new Continuation<Response>() {
"[USER_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Users users = new Users(client);
users.delete(
userId = "[USER_ID]"
new Continuation<Response>() {
"[USER_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Users users = new Users(client);
users.getLogs(
userId = "[USER_ID]"
new Continuation<Response>() {
"[USER_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Users users = new Users(client);
users.getPrefs(
userId = "[USER_ID]"
new Continuation<Response>() {
"[USER_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Users users = new Users(client);
users.getSessions(
userId = "[USER_ID]"
new Continuation<Response>() {
"[USER_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,8 +9,8 @@ public void main() {
Users users = new Users(client);
users.get(
userId = "[USER_ID]"
new Continuation<Response>() {
"[USER_ID]"
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,7 +9,7 @@ public void main() {
Users users = new Users(client);
users.list(
new Continuation<Response>() {
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Users users = new Users(client);
users.updatePrefs(
userId = "[USER_ID]",
prefs = mapOf( "a" to "b" )
new Continuation<Response>() {
"[USER_ID]",
mapOf( "a" to "b" )
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Users users = new Users(client);
users.updateStatus(
userId = "[USER_ID]",
status = 1
new Continuation<Response>() {
"[USER_ID]",
1
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {
@@ -9,9 +9,9 @@ public void main() {
Users users = new Users(client);
users.updateVerification(
userId = "[USER_ID]",
emailVerification = false
new Continuation<Response>() {
"[USER_ID]",
false
new Continuation<Object>() {
@NotNull
@Override
public CoroutineContext getContext() {

Some files were not shown because too many files have changed in this diff Show More