diff --git a/app/config/platforms.php b/app/config/platforms.php index 944c57167b..2daabc850f 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -63,7 +63,7 @@ return [ [ 'key' => 'flutter', 'name' => 'Flutter', - 'version' => '6.0.0', + 'version' => '7.0.0', 'url' => 'https://github.com/appwrite/sdk-for-flutter', 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, @@ -352,7 +352,7 @@ return [ [ 'key' => 'dart', 'name' => 'Dart', - 'version' => '6.0.0', + 'version' => '6.0.1', 'url' => 'https://github.com/appwrite/sdk-for-dart', 'package' => 'https://pub.dev/packages/dart_appwrite', 'enabled' => true, diff --git a/composer.lock b/composer.lock index bce5b90d88..a07ff69c79 100644 --- a/composer.lock +++ b/composer.lock @@ -481,16 +481,16 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.4.5", + "version": "7.5.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82" + "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", - "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba", + "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba", "shasum": "" }, "require": { @@ -505,10 +505,10 @@ "psr/http-client-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.1", "ext-curl": "*", "php-http/client-integration-tests": "^3.0", - "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -518,8 +518,12 @@ }, "type": "library", "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, "branch-alias": { - "dev-master": "7.4-dev" + "dev-master": "7.5-dev" } }, "autoload": { @@ -585,7 +589,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.4.5" + "source": "https://github.com/guzzle/guzzle/tree/7.5.0" }, "funding": [ { @@ -601,20 +605,20 @@ "type": "tidelift" } ], - "time": "2022-06-20T22:16:13+00:00" + "time": "2022-08-28T15:39:27+00:00" }, { "name": "guzzlehttp/promises", - "version": "1.5.1", + "version": "1.5.2", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + "reference": "b94b2807d85443f9719887892882d0329d1e2598" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", - "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598", + "reference": "b94b2807d85443f9719887892882d0329d1e2598", "shasum": "" }, "require": { @@ -669,7 +673,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/1.5.1" + "source": "https://github.com/guzzle/promises/tree/1.5.2" }, "funding": [ { @@ -685,20 +689,20 @@ "type": "tidelift" } ], - "time": "2021-10-22T20:56:57+00:00" + "time": "2022-08-28T14:55:35+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.4.0", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "13388f00956b1503577598873fffb5ae994b5737" + "reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737", - "reference": "13388f00956b1503577598873fffb5ae994b5737", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/69568e4293f4fa993f3b0e51c9723e1e17c41379", + "reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379", "shasum": "" }, "require": { @@ -712,15 +716,19 @@ "psr/http-message-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.1", "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.8 || ^9.3.10" + "phpunit/phpunit": "^8.5.29 || ^9.5.23" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, "branch-alias": { "dev-master": "2.4-dev" } @@ -784,7 +792,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.4.0" + "source": "https://github.com/guzzle/psr7/tree/2.4.1" }, "funding": [ { @@ -800,7 +808,7 @@ "type": "tidelift" } ], - "time": "2022-06-20T21:43:11+00:00" + "time": "2022-08-28T14:45:39+00:00" }, { "name": "influxdb/influxdb-php", @@ -1894,16 +1902,16 @@ }, { "name": "utopia-php/cache", - "version": "0.6.0", + "version": "0.6.1", "source": { "type": "git", "url": "https://github.com/utopia-php/cache.git", - "reference": "8ea1353a4bbab617e23c865a7c97b60d8074aee3" + "reference": "9889235a6d3da6cbb1f435201529da4d27c30e79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cache/zipball/8ea1353a4bbab617e23c865a7c97b60d8074aee3", - "reference": "8ea1353a4bbab617e23c865a7c97b60d8074aee3", + "url": "https://api.github.com/repos/utopia-php/cache/zipball/9889235a6d3da6cbb1f435201529da4d27c30e79", + "reference": "9889235a6d3da6cbb1f435201529da4d27c30e79", "shasum": "" }, "require": { @@ -1941,9 +1949,9 @@ ], "support": { "issues": "https://github.com/utopia-php/cache/issues", - "source": "https://github.com/utopia-php/cache/tree/0.6.0" + "source": "https://github.com/utopia-php/cache/tree/0.6.1" }, - "time": "2022-04-04T12:30:05+00:00" + "time": "2022-08-10T08:12:46+00:00" }, { "name": "utopia-php/cli", @@ -2948,16 +2956,16 @@ }, { "name": "matthiasmullie/minify", - "version": "1.3.68", + "version": "1.3.69", "source": { "type": "git", "url": "https://github.com/matthiasmullie/minify.git", - "reference": "c00fb02f71b2ef0a5f53fe18c5a8b9aa30f48297" + "reference": "a61c949cccd086808063611ef9698eabe42ef22f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/matthiasmullie/minify/zipball/c00fb02f71b2ef0a5f53fe18c5a8b9aa30f48297", - "reference": "c00fb02f71b2ef0a5f53fe18c5a8b9aa30f48297", + "url": "https://api.github.com/repos/matthiasmullie/minify/zipball/a61c949cccd086808063611ef9698eabe42ef22f", + "reference": "a61c949cccd086808063611ef9698eabe42ef22f", "shasum": "" }, "require": { @@ -3006,7 +3014,7 @@ ], "support": { "issues": "https://github.com/matthiasmullie/minify/issues", - "source": "https://github.com/matthiasmullie/minify/tree/1.3.68" + "source": "https://github.com/matthiasmullie/minify/tree/1.3.69" }, "funding": [ { @@ -3014,7 +3022,7 @@ "type": "github" } ], - "time": "2022-04-19T08:28:56+00:00" + "time": "2022-08-01T09:00:18+00:00" }, { "name": "matthiasmullie/path-converter", @@ -3524,23 +3532,23 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.15", + "version": "9.2.16", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + "reference": "2593003befdcc10db5e213f9f28814f5aa8ac073" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2593003befdcc10db5e213f9f28814f5aa8ac073", + "reference": "2593003befdcc10db5e213f9f28814f5aa8ac073", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^4.14", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -3589,7 +3597,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.16" }, "funding": [ { @@ -3597,7 +3605,7 @@ "type": "github" } ], - "time": "2022-03-07T09:28:20+00:00" + "time": "2022-08-20T05:26:47+00:00" }, { "name": "phpunit/php-file-iterator", @@ -4800,16 +4808,16 @@ }, { "name": "sebastian/type", - "version": "3.0.0", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad" + "reference": "fb44e1cc6e557418387ad815780360057e40753e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb44e1cc6e557418387ad815780360057e40753e", + "reference": "fb44e1cc6e557418387ad815780360057e40753e", "shasum": "" }, "require": { @@ -4821,7 +4829,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -4844,7 +4852,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.0.0" + "source": "https://github.com/sebastianbergmann/type/tree/3.1.0" }, "funding": [ { @@ -4852,7 +4860,7 @@ "type": "github" } ], - "time": "2022-03-15T09:54:48+00:00" + "time": "2022-08-29T06:55:37+00:00" }, { "name": "sebastian/version", @@ -5271,16 +5279,16 @@ }, { "name": "twig/twig", - "version": "v3.4.1", + "version": "v3.4.2", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "e939eae92386b69b49cfa4599dd9bead6bf4a342" + "reference": "e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/e939eae92386b69b49cfa4599dd9bead6bf4a342", - "reference": "e939eae92386b69b49cfa4599dd9bead6bf4a342", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077", + "reference": "e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077", "shasum": "" }, "require": { @@ -5331,7 +5339,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v3.4.1" + "source": "https://github.com/twigphp/Twig/tree/v3.4.2" }, "funding": [ { @@ -5343,7 +5351,7 @@ "type": "tidelift" } ], - "time": "2022-05-17T05:48:52+00:00" + "time": "2022-08-12T06:47:24+00:00" } ], "aliases": [], @@ -5370,5 +5378,5 @@ "platform-overrides": { "php": "8.0" }, - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.2.0" } diff --git a/docs/examples/0.15.x/client-android/java/storage/create-file.md b/docs/examples/0.15.x/client-android/java/storage/create-file.md index d87cfef9e9..32e0fd09f2 100644 --- a/docs/examples/0.15.x/client-android/java/storage/create-file.md +++ b/docs/examples/0.15.x/client-android/java/storage/create-file.md @@ -3,6 +3,7 @@ import android.os.Bundle import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.launch import io.appwrite.Client +import io.appwrite.models.InputFile import io.appwrite.services.Storage public class MainActivity extends AppCompatActivity { diff --git a/docs/examples/0.15.x/client-android/kotlin/storage/create-file.md b/docs/examples/0.15.x/client-android/kotlin/storage/create-file.md index cf1727d062..d3d7c608e4 100644 --- a/docs/examples/0.15.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/0.15.x/client-android/kotlin/storage/create-file.md @@ -3,6 +3,7 @@ import android.os.Bundle import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.launch import io.appwrite.Client +import io.appwrite.models.InputFile import io.appwrite.services.Storage class MainActivity : AppCompatActivity() { diff --git a/docs/examples/0.15.x/console-cli/examples/functions/create.md b/docs/examples/0.15.x/console-cli/examples/functions/create.md index a9c7ec030a..8f0a3c3cbb 100644 --- a/docs/examples/0.15.x/console-cli/examples/functions/create.md +++ b/docs/examples/0.15.x/console-cli/examples/functions/create.md @@ -1,7 +1,7 @@ appwrite functions create \ --functionId [FUNCTION_ID] \ --name [NAME] \ - --execute one two three \ + --execute "role:all" \ --runtime node-14.5 \ diff --git a/docs/examples/0.15.x/console-cli/examples/functions/update.md b/docs/examples/0.15.x/console-cli/examples/functions/update.md index d0557d9cd1..f7759792fb 100644 --- a/docs/examples/0.15.x/console-cli/examples/functions/update.md +++ b/docs/examples/0.15.x/console-cli/examples/functions/update.md @@ -1,7 +1,7 @@ appwrite functions update \ --functionId [FUNCTION_ID] \ --name [NAME] \ - --execute one two three \ + --execute "role:all" \ diff --git a/docs/examples/0.15.x/console-web/examples/functions/create.md b/docs/examples/0.15.x/console-web/examples/functions/create.md index 7a1a0921af..bd5a78bedd 100644 --- a/docs/examples/0.15.x/console-web/examples/functions/create.md +++ b/docs/examples/0.15.x/console-web/examples/functions/create.md @@ -9,7 +9,7 @@ client .setProject('5df5acd0d48c2') // Your project ID ; -const promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5'); +const promise = functions.create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5'); promise.then(function (response) { console.log(response); // Success diff --git a/docs/examples/0.15.x/console-web/examples/functions/update.md b/docs/examples/0.15.x/console-web/examples/functions/update.md index 4ffbe859cf..a2e568822f 100644 --- a/docs/examples/0.15.x/console-web/examples/functions/update.md +++ b/docs/examples/0.15.x/console-web/examples/functions/update.md @@ -9,7 +9,7 @@ client .setProject('5df5acd0d48c2') // Your project ID ; -const promise = functions.update('[FUNCTION_ID]', '[NAME]', []); +const promise = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"]); promise.then(function (response) { console.log(response); // Success diff --git a/docs/examples/0.15.x/server-dart/examples/functions/create.md b/docs/examples/0.15.x/server-dart/examples/functions/create.md index 9788357e4a..11a94f6d4f 100644 --- a/docs/examples/0.15.x/server-dart/examples/functions/create.md +++ b/docs/examples/0.15.x/server-dart/examples/functions/create.md @@ -13,7 +13,7 @@ void main() { // Init SDK Future result = functions.create( functionId: '[FUNCTION_ID]', name: '[NAME]', - execute: [], + execute: ["role:all"], runtime: 'node-14.5', ); diff --git a/docs/examples/0.15.x/server-dart/examples/functions/update.md b/docs/examples/0.15.x/server-dart/examples/functions/update.md index d1845b771d..abdc534718 100644 --- a/docs/examples/0.15.x/server-dart/examples/functions/update.md +++ b/docs/examples/0.15.x/server-dart/examples/functions/update.md @@ -13,7 +13,7 @@ void main() { // Init SDK Future result = functions.update( functionId: '[FUNCTION_ID]', name: '[NAME]', - execute: [], + execute: ["role:all"], ); result diff --git a/docs/examples/0.15.x/server-deno/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-deno/examples/functions/create-deployment.md index 847a82db8c..888c5312c5 100644 --- a/docs/examples/0.15.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/0.15.x/server-deno/examples/functions/create-deployment.md @@ -12,7 +12,7 @@ client ; -let promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false); +let promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile.fromPath('/path/to/file.png', 'file.png'), false); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-deno/examples/functions/create.md b/docs/examples/0.15.x/server-deno/examples/functions/create.md index ac301b2391..b33a3c9b79 100644 --- a/docs/examples/0.15.x/server-deno/examples/functions/create.md +++ b/docs/examples/0.15.x/server-deno/examples/functions/create.md @@ -12,7 +12,7 @@ client ; -let promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5'); +let promise = functions.create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5'); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-deno/examples/functions/update.md b/docs/examples/0.15.x/server-deno/examples/functions/update.md index 9177529061..fbc61dc169 100644 --- a/docs/examples/0.15.x/server-deno/examples/functions/update.md +++ b/docs/examples/0.15.x/server-deno/examples/functions/update.md @@ -12,7 +12,7 @@ client ; -let promise = functions.update('[FUNCTION_ID]', '[NAME]', []); +let promise = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"]); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-deno/examples/storage/create-file.md b/docs/examples/0.15.x/server-deno/examples/storage/create-file.md index d49c4e2079..9864ec1e65 100644 --- a/docs/examples/0.15.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/0.15.x/server-deno/examples/storage/create-file.md @@ -12,7 +12,7 @@ client ; -let promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png'); +let promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', InputFile.fromPath('/path/to/file.png', 'file.png')); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-kotlin/java/databases/create-collection.md b/docs/examples/0.15.x/server-kotlin/java/databases/create-collection.md index d72b557e2e..bf8dc633a0 100644 --- a/docs/examples/0.15.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/0.15.x/server-kotlin/java/databases/create-collection.md @@ -12,8 +12,8 @@ public void main() { collectionId = "[COLLECTION_ID]", name = "[NAME]", permission = "document", - read = ["role:all"], - write = ["role:all"] + read = listOf("role:all"), + write = listOf("role:all") new Continuation() { @NotNull @Override diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/0.15.x/server-kotlin/java/functions/create-deployment.md index 6fa88dbfbc..bd8a4606cc 100644 --- a/docs/examples/0.15.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/0.15.x/server-kotlin/java/functions/create-deployment.md @@ -1,4 +1,5 @@ import io.appwrite.Client +import io.appwrite.models.InputFile import io.appwrite.services.Functions public void main() { diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/create.md b/docs/examples/0.15.x/server-kotlin/java/functions/create.md index b13345c668..3d33ce9e8d 100644 --- a/docs/examples/0.15.x/server-kotlin/java/functions/create.md +++ b/docs/examples/0.15.x/server-kotlin/java/functions/create.md @@ -11,7 +11,7 @@ public void main() { functions.create( functionId = "[FUNCTION_ID]", name = "[NAME]", - execute = listOf(), + execute = listOf("role:all"), runtime = "node-14.5", new Continuation() { @NotNull diff --git a/docs/examples/0.15.x/server-kotlin/java/functions/update.md b/docs/examples/0.15.x/server-kotlin/java/functions/update.md index 80d95c2f4b..8f12732c80 100644 --- a/docs/examples/0.15.x/server-kotlin/java/functions/update.md +++ b/docs/examples/0.15.x/server-kotlin/java/functions/update.md @@ -11,7 +11,7 @@ public void main() { functions.update( functionId = "[FUNCTION_ID]", name = "[NAME]", - execute = listOf(), + execute = listOf("role:all"), new Continuation() { @NotNull @Override diff --git a/docs/examples/0.15.x/server-kotlin/java/storage/create-file.md b/docs/examples/0.15.x/server-kotlin/java/storage/create-file.md index 7031732936..7924fb255f 100644 --- a/docs/examples/0.15.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/0.15.x/server-kotlin/java/storage/create-file.md @@ -1,4 +1,5 @@ import io.appwrite.Client +import io.appwrite.models.InputFile import io.appwrite.services.Storage public void main() { diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/0.15.x/server-kotlin/kotlin/databases/create-collection.md index f90bccf296..849ea335f6 100644 --- a/docs/examples/0.15.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/0.15.x/server-kotlin/kotlin/databases/create-collection.md @@ -12,8 +12,8 @@ suspend fun main() { collectionId = "[COLLECTION_ID]", name = "[NAME]", permission = "document", - read = ["role:all"], - write = ["role:all"] + read = listOf("role:all"), + write = listOf("role:all") ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-deployment.md index 882d38f3c2..9a2dc43359 100644 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/0.15.x/server-kotlin/kotlin/functions/create-deployment.md @@ -1,4 +1,5 @@ import io.appwrite.Client +import io.appwrite.models.InputFile import io.appwrite.services.Functions suspend fun main() { diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/create.md index a0b9600b46..2ec1a56d5a 100644 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/0.15.x/server-kotlin/kotlin/functions/create.md @@ -11,7 +11,7 @@ suspend fun main() { val response = functions.create( functionId = "[FUNCTION_ID]", name = "[NAME]", - execute = listOf(), + execute = listOf("role:all"), runtime = "node-14.5", ) val json = response.body?.string() diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/functions/update.md b/docs/examples/0.15.x/server-kotlin/kotlin/functions/update.md index e8b125fb77..2aeb91fd3f 100644 --- a/docs/examples/0.15.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/0.15.x/server-kotlin/kotlin/functions/update.md @@ -11,7 +11,7 @@ suspend fun main() { val response = functions.update( functionId = "[FUNCTION_ID]", name = "[NAME]", - execute = listOf(), + execute = listOf("role:all"), ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-file.md index fe80210420..65046d0cc1 100644 --- a/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/0.15.x/server-kotlin/kotlin/storage/create-file.md @@ -1,4 +1,5 @@ import io.appwrite.Client +import io.appwrite.models.InputFile import io.appwrite.services.Storage suspend fun main() { diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-nodejs/examples/functions/create-deployment.md index ce8e480215..c48153b3af 100644 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/0.15.x/server-nodejs/examples/functions/create-deployment.md @@ -12,7 +12,7 @@ client .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; -const promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false); +const promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile.fromPath('/path/to/file.png', 'file.png'), false); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/create.md b/docs/examples/0.15.x/server-nodejs/examples/functions/create.md index 47865bc107..a6ca05c032 100644 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/0.15.x/server-nodejs/examples/functions/create.md @@ -11,7 +11,7 @@ client .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; -const promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5'); +const promise = functions.create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5'); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-nodejs/examples/functions/update.md b/docs/examples/0.15.x/server-nodejs/examples/functions/update.md index b7f3a4d7f6..b1572ca8f1 100644 --- a/docs/examples/0.15.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/0.15.x/server-nodejs/examples/functions/update.md @@ -11,7 +11,7 @@ client .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; -const promise = functions.update('[FUNCTION_ID]', '[NAME]', []); +const promise = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"]); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-nodejs/examples/storage/create-file.md b/docs/examples/0.15.x/server-nodejs/examples/storage/create-file.md index d74cfd9edd..4e3138eb65 100644 --- a/docs/examples/0.15.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/0.15.x/server-nodejs/examples/storage/create-file.md @@ -12,7 +12,7 @@ client .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; -const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png'); +const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', InputFile.fromPath('/path/to/file.png', 'file.png')); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.15.x/server-php/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-php/examples/functions/create-deployment.md index 4df1ad86f0..1286055be3 100644 --- a/docs/examples/0.15.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/0.15.x/server-php/examples/functions/create-deployment.md @@ -1,6 +1,7 @@ createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false); \ No newline at end of file +$result = $functions->createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile::withPath('file.png'), false); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/create.md b/docs/examples/0.15.x/server-php/examples/functions/create.md index 69f8d7fa86..96b87474f8 100644 --- a/docs/examples/0.15.x/server-php/examples/functions/create.md +++ b/docs/examples/0.15.x/server-php/examples/functions/create.md @@ -13,4 +13,4 @@ $client $functions = new Functions($client); -$result = $functions->create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5'); \ No newline at end of file +$result = $functions->create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5'); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/functions/update.md b/docs/examples/0.15.x/server-php/examples/functions/update.md index b33ac8abd2..3377e41aff 100644 --- a/docs/examples/0.15.x/server-php/examples/functions/update.md +++ b/docs/examples/0.15.x/server-php/examples/functions/update.md @@ -13,4 +13,4 @@ $client $functions = new Functions($client); -$result = $functions->update('[FUNCTION_ID]', '[NAME]', []); \ No newline at end of file +$result = $functions->update('[FUNCTION_ID]', '[NAME]', ["role:all"]); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-php/examples/storage/create-file.md b/docs/examples/0.15.x/server-php/examples/storage/create-file.md index 883f565577..0fc57b9ffc 100644 --- a/docs/examples/0.15.x/server-php/examples/storage/create-file.md +++ b/docs/examples/0.15.x/server-php/examples/storage/create-file.md @@ -1,6 +1,7 @@ createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png'); \ No newline at end of file +$result = $storage->createFile('[BUCKET_ID]', '[FILE_ID]', InputFile::withPath('file.png')); \ No newline at end of file diff --git a/docs/examples/0.15.x/server-python/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-python/examples/functions/create-deployment.md index eeec9aadac..66a8f4db73 100644 --- a/docs/examples/0.15.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/0.15.x/server-python/examples/functions/create-deployment.md @@ -1,4 +1,5 @@ from appwrite.client import Client +from appwrite.input_file import InputFile from appwrite.services.functions import Functions client = Client() diff --git a/docs/examples/0.15.x/server-python/examples/functions/create.md b/docs/examples/0.15.x/server-python/examples/functions/create.md index 53629a58c0..3a5277fd1d 100644 --- a/docs/examples/0.15.x/server-python/examples/functions/create.md +++ b/docs/examples/0.15.x/server-python/examples/functions/create.md @@ -11,4 +11,4 @@ client = Client() functions = Functions(client) -result = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5') +result = functions.create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5') diff --git a/docs/examples/0.15.x/server-python/examples/functions/update.md b/docs/examples/0.15.x/server-python/examples/functions/update.md index 675338185e..ed02d8c953 100644 --- a/docs/examples/0.15.x/server-python/examples/functions/update.md +++ b/docs/examples/0.15.x/server-python/examples/functions/update.md @@ -11,4 +11,4 @@ client = Client() functions = Functions(client) -result = functions.update('[FUNCTION_ID]', '[NAME]', []) +result = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"]) diff --git a/docs/examples/0.15.x/server-python/examples/storage/create-file.md b/docs/examples/0.15.x/server-python/examples/storage/create-file.md index e8f5a708b0..ce6d3fcb6b 100644 --- a/docs/examples/0.15.x/server-python/examples/storage/create-file.md +++ b/docs/examples/0.15.x/server-python/examples/storage/create-file.md @@ -1,4 +1,5 @@ from appwrite.client import Client +from appwrite.input_file import InputFile from appwrite.services.storage import Storage client = Client() diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-boolean-attribute.md index 6d906d381c..242f19c589 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_boolean_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-collection.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-collection.md index 16e3a15a2b..843e41f51c 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-collection.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', permission: 'document', read: ["role:all"], write: ["role:all"]) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-document.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-document.md index da8af17e8a..8fe6c8131e 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-document.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {}) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-email-attribute.md index 3b2efad4df..3e7c12bbc6 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-email-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_email_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-enum-attribute.md index 8a8fe0d738..ad52ce761e 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-enum-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_enum_attribute(collection_id: '[COLLECTION_ID]', key: '', elements: [], required: false) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-float-attribute.md index fb09b3c2c5..a2f1af98a5 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-float-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_float_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-index.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-index.md index 7abd251107..4f5ffb7874 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-index.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_index(collection_id: '[COLLECTION_ID]', key: '', type: 'key', attributes: []) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-integer-attribute.md index d6faae6ab7..94825064cf 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-integer-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_integer_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-ip-attribute.md index 1b8e7de2fd..5db4f2d57d 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-ip-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_ip_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-string-attribute.md index bd00743136..ced7993a11 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-string-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_string_attribute(collection_id: '[COLLECTION_ID]', key: '', size: 1, required: false) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/create-url-attribute.md index 30d6d3cd72..853228d219 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create-url-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create_url_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/create.md b/docs/examples/0.15.x/server-ruby/examples/databases/create.md index 06f93197bd..0d38eed15e 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/create.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/create.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.create(name: '[NAME]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/delete-attribute.md index 692c6cec12..84c716e3fe 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/delete-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.delete_attribute(collection_id: '[COLLECTION_ID]', key: '') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/0.15.x/server-ruby/examples/databases/delete-collection.md index 5ce0035929..22f560c4ed 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/delete-collection.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.delete_collection(collection_id: '[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/delete-document.md b/docs/examples/0.15.x/server-ruby/examples/databases/delete-document.md index 834c3d4077..958022e7a0 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/delete-document.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.delete_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/delete-index.md b/docs/examples/0.15.x/server-ruby/examples/databases/delete-index.md index 9cd45511bc..06a829c854 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/delete-index.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.delete_index(collection_id: '[COLLECTION_ID]', key: '') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/delete.md b/docs/examples/0.15.x/server-ruby/examples/databases/delete.md index ddd330d8cf..2e0d54dfed 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/delete.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.delete() diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/0.15.x/server-ruby/examples/databases/get-attribute.md index 520f34826f..95fc886a76 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/get-attribute.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.get_attribute(collection_id: '[COLLECTION_ID]', key: '') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/get-collection.md b/docs/examples/0.15.x/server-ruby/examples/databases/get-collection.md index d4e0b83ff1..2a61a867f1 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/get-collection.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.get_collection(collection_id: '[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/get-document.md b/docs/examples/0.15.x/server-ruby/examples/databases/get-document.md index 9676a22d96..c641c87cce 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/get-document.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.get_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/get-index.md b/docs/examples/0.15.x/server-ruby/examples/databases/get-index.md index 36630b3642..ce6e2fa40c 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/get-index.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.get_index(collection_id: '[COLLECTION_ID]', key: '') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/get.md b/docs/examples/0.15.x/server-ruby/examples/databases/get.md index 85be2be6ab..aa86f36b55 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/get.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/get.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.get() diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/0.15.x/server-ruby/examples/databases/list-attributes.md index c8c8c8b25b..0bdb19e13a 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/list-attributes.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.list_attributes(collection_id: '[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/list-collections.md b/docs/examples/0.15.x/server-ruby/examples/databases/list-collections.md index 003a0ff402..996a5eccc4 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/list-collections.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.list_collections() diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/list-documents.md b/docs/examples/0.15.x/server-ruby/examples/databases/list-documents.md index f3b3b96d37..f87b63d51e 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/list-documents.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.list_documents(collection_id: '[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/0.15.x/server-ruby/examples/databases/list-indexes.md index 1cd14d3de0..4e949ce233 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/list-indexes.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.list_indexes(collection_id: '[COLLECTION_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/list.md b/docs/examples/0.15.x/server-ruby/examples/databases/list.md index 7d103f3215..910c23e9e5 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/list.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/list.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.list() diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/update-collection.md b/docs/examples/0.15.x/server-ruby/examples/databases/update-collection.md index 9217c64cd8..a06a1228e5 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/update-collection.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.update_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', permission: 'document') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/update-document.md b/docs/examples/0.15.x/server-ruby/examples/databases/update-document.md index 7813e33d6c..9d15241ce3 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/update-document.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.update_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') diff --git a/docs/examples/0.15.x/server-ruby/examples/databases/update.md b/docs/examples/0.15.x/server-ruby/examples/databases/update.md index a92289b1cd..692566baea 100644 --- a/docs/examples/0.15.x/server-ruby/examples/databases/update.md +++ b/docs/examples/0.15.x/server-ruby/examples/databases/update.md @@ -7,7 +7,7 @@ client .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -databases = Appwrite::Databases.new(client, '[DATABASE_ID]') +databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]') response = databases.update(name: '[NAME]') diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/0.15.x/server-ruby/examples/functions/create-deployment.md index 3fd842aa8c..42f3e467bb 100644 --- a/docs/examples/0.15.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/0.15.x/server-ruby/examples/functions/create-deployment.md @@ -9,6 +9,6 @@ client functions = Appwrite::Functions.new(client) -response = functions.create_deployment(function_id: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', code: InputFile.fromPath('dir/file.png'), activate: false) +response = functions.create_deployment(function_id: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', code: Appwrite::InputFile.from_path('dir/file.png'), activate: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/create.md b/docs/examples/0.15.x/server-ruby/examples/functions/create.md index 7834441203..463ad83949 100644 --- a/docs/examples/0.15.x/server-ruby/examples/functions/create.md +++ b/docs/examples/0.15.x/server-ruby/examples/functions/create.md @@ -9,6 +9,6 @@ client functions = Appwrite::Functions.new(client) -response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: [], runtime: 'node-14.5') +response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: ["role:all"], runtime: 'node-14.5') puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/functions/update.md b/docs/examples/0.15.x/server-ruby/examples/functions/update.md index 606e336343..53398eeeda 100644 --- a/docs/examples/0.15.x/server-ruby/examples/functions/update.md +++ b/docs/examples/0.15.x/server-ruby/examples/functions/update.md @@ -9,6 +9,6 @@ client functions = Appwrite::Functions.new(client) -response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: []) +response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: ["role:all"]) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-ruby/examples/storage/create-file.md b/docs/examples/0.15.x/server-ruby/examples/storage/create-file.md index d965e174a8..efac0b4c0b 100644 --- a/docs/examples/0.15.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/0.15.x/server-ruby/examples/storage/create-file.md @@ -1,6 +1,7 @@ require 'appwrite' client = Appwrite::Client.new +InputFile = Appwrite::InputFile client .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint @@ -9,6 +10,6 @@ client storage = Appwrite::Storage.new(client) -response = storage.create_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]', file: InputFile.fromPath('dir/file.png')) +response = storage.create_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]', file: Appwrite::InputFile.from_path('dir/file.png')) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.15.x/server-swift/examples/functions/create.md b/docs/examples/0.15.x/server-swift/examples/functions/create.md index e6775116f3..70145fa065 100644 --- a/docs/examples/0.15.x/server-swift/examples/functions/create.md +++ b/docs/examples/0.15.x/server-swift/examples/functions/create.md @@ -9,7 +9,7 @@ func main() async throws { let function = try await functions.create( functionId: "[FUNCTION_ID]", name: "[NAME]", - execute: [], + execute: ["role:all"], runtime: "node-14.5" ) diff --git a/docs/examples/0.15.x/server-swift/examples/functions/get-deployment.md b/docs/examples/0.15.x/server-swift/examples/functions/get-deployment.md index 897d5315d2..c5322ee81b 100644 --- a/docs/examples/0.15.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/0.15.x/server-swift/examples/functions/get-deployment.md @@ -6,10 +6,10 @@ func main() async throws { .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) - let deploymentList = try await functions.getDeployment( + let deployment = try await functions.getDeployment( functionId: "[FUNCTION_ID]", deploymentId: "[DEPLOYMENT_ID]" ) - print(String(describing: deploymentList) + print(String(describing: deployment) } diff --git a/docs/examples/0.15.x/server-swift/examples/functions/update.md b/docs/examples/0.15.x/server-swift/examples/functions/update.md index 7a7e5ed6d0..775dca50d6 100644 --- a/docs/examples/0.15.x/server-swift/examples/functions/update.md +++ b/docs/examples/0.15.x/server-swift/examples/functions/update.md @@ -9,7 +9,7 @@ func main() async throws { let function = try await functions.update( functionId: "[FUNCTION_ID]", name: "[NAME]", - execute: [] + execute: ["role:all"] ) print(String(describing: function) diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index 23aea11553..a04b25270b 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -1,3 +1,8 @@ +## 6.0.1 +* Dependency upgrades +* Doc comments updates +* Cleanup code + ## 6.0.0 * Support for Appwrite 0.15 * **BREAKING** `Database` -> `Databases` diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index f6fd906a7d..ae0022f7b2 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,3 +1,9 @@ +## 7.0.0 +* **BREAKING** Switched to using [flutter_web_auth_2](https://pub.dev/packages/flutter_web_auth_2), check Getting Started section in Readme for changes (Android and Web will require adjustments for OAuth to work properly) +* Fixes Concurrent modification issue +* Upgrade dependencies +* **Windows** support for OAuth sessions + ## 6.0.0 * Support for Appwrite 0.15 * **NEW** Phone authentication `account.createPhoneSession()` diff --git a/docs/sdks/flutter/GETTING_STARTED.md b/docs/sdks/flutter/GETTING_STARTED.md index 0a83ae67bd..a9c121d2b9 100644 --- a/docs/sdks/flutter/GETTING_STARTED.md +++ b/docs/sdks/flutter/GETTING_STARTED.md @@ -18,8 +18,8 @@ In order to capture the Appwrite OAuth callback url, the following activity need .... - - + + @@ -58,7 +58,7 @@ For web in order to capture the OAuth2 callback URL and send it to the applicati close the window.