From baa7a170d9a2d2edfde5a4e0f859baf3889da4d0 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 29 Oct 2025 18:54:29 +0530 Subject: [PATCH 1/6] update sdks --- app/config/platforms.php | 8 ++++---- composer.lock | 30 +++++++++++++++--------------- docs/sdks/apple/CHANGELOG.md | 4 ++++ docs/sdks/cli/CHANGELOG.md | 7 +++++++ docs/sdks/flutter/CHANGELOG.md | 4 ++++ docs/sdks/python/CHANGELOG.md | 5 +++++ 6 files changed, 39 insertions(+), 19 deletions(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index edb94f1f96..fa753f1871 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -60,7 +60,7 @@ return [ [ 'key' => 'flutter', 'name' => 'Flutter', - 'version' => '20.2.1', + 'version' => '20.2.2', 'url' => 'https://github.com/appwrite/sdk-for-flutter', 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, @@ -79,7 +79,7 @@ return [ [ 'key' => 'apple', 'name' => 'Apple', - 'version' => '13.3.0', + 'version' => '13.3.1', 'url' => 'https://github.com/appwrite/sdk-for-apple', 'package' => 'https://github.com/appwrite/sdk-for-apple', 'enabled' => true, @@ -226,7 +226,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '10.2.3', + 'version' => '10.2.4', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, @@ -300,7 +300,7 @@ return [ [ 'key' => 'python', 'name' => 'Python', - 'version' => '13.4.1', + 'version' => '13.4.2', 'url' => 'https://github.com/appwrite/sdk-for-python', 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, diff --git a/composer.lock b/composer.lock index 9bb2f6a074..f24faa22de 100644 --- a/composer.lock +++ b/composer.lock @@ -4108,16 +4108,16 @@ }, { "name": "utopia-php/emails", - "version": "0.6.2", + "version": "0.6.1", "source": { "type": "git", "url": "https://github.com/utopia-php/emails.git", - "reference": "9c4c40cf7c03c2e9e21364566f9b192d03ea93c9" + "reference": "0de8896f369b6aa1f14df338645048f95a8439e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/emails/zipball/9c4c40cf7c03c2e9e21364566f9b192d03ea93c9", - "reference": "9c4c40cf7c03c2e9e21364566f9b192d03ea93c9", + "url": "https://api.github.com/repos/utopia-php/emails/zipball/0de8896f369b6aa1f14df338645048f95a8439e3", + "reference": "0de8896f369b6aa1f14df338645048f95a8439e3", "shasum": "" }, "require": { @@ -4125,7 +4125,7 @@ "utopia-php/cli": "^0.15", "utopia-php/domains": "^0.9", "utopia-php/fetch": "^0.4", - "utopia-php/validators": "^0.0.2" + "utopia-php/validators": "^0.0.1" }, "require-dev": { "laravel/pint": "1.25.*", @@ -4162,9 +4162,9 @@ ], "support": { "issues": "https://github.com/utopia-php/emails/issues", - "source": "https://github.com/utopia-php/emails/tree/0.6.2" + "source": "https://github.com/utopia-php/emails/tree/0.6.1" }, - "time": "2025-10-28T16:08:17+00:00" + "time": "2025-10-28T07:29:58+00:00" }, { "name": "utopia-php/fetch", @@ -5109,16 +5109,16 @@ }, { "name": "utopia-php/validators", - "version": "0.0.2", + "version": "0.0.1", "source": { "type": "git", "url": "https://github.com/utopia-php/validators.git", - "reference": "894210695c5d35fa248fb65f7fe7237b6ff4fb0b" + "reference": "69d1afa5df2f052535764520609e91b491708db2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/validators/zipball/894210695c5d35fa248fb65f7fe7237b6ff4fb0b", - "reference": "894210695c5d35fa248fb65f7fe7237b6ff4fb0b", + "url": "https://api.github.com/repos/utopia-php/validators/zipball/69d1afa5df2f052535764520609e91b491708db2", + "reference": "69d1afa5df2f052535764520609e91b491708db2", "shasum": "" }, "require": { @@ -5149,9 +5149,9 @@ ], "support": { "issues": "https://github.com/utopia-php/validators/issues", - "source": "https://github.com/utopia-php/validators/tree/0.0.2" + "source": "https://github.com/utopia-php/validators/tree/0.0.1" }, - "time": "2025-10-20T21:52:28+00:00" + "time": "2025-10-20T15:08:50+00:00" }, { "name": "utopia-php/vcs", @@ -8892,7 +8892,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { @@ -8916,5 +8916,5 @@ "platform-overrides": { "php": "8.3" }, - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.6.0" } diff --git a/docs/sdks/apple/CHANGELOG.md b/docs/sdks/apple/CHANGELOG.md index 9ffa37cdf8..202dc1cb67 100644 --- a/docs/sdks/apple/CHANGELOG.md +++ b/docs/sdks/apple/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 13.3.1 + +* Fix `onOpen` callback not being called when the websocket connection is established + ## 13.3.0 * Add `onOpen`, `onClose` and `onError` callbacks to `Realtime` service diff --git a/docs/sdks/cli/CHANGELOG.md b/docs/sdks/cli/CHANGELOG.md index 8a1ea0f360..641e62d73b 100644 --- a/docs/sdks/cli/CHANGELOG.md +++ b/docs/sdks/cli/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 10.2.4 + +* Fix syncing of tables deleted locally during `push tables` command +* Fix added push command support for cli spatial types +* Fix attribute changing during push +* Replace pkg with @yao-pkg/pkg in dependencies + ## 10.2.3 * Fix `init tables` command not working diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index 7ac74d0c05..77317be7eb 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 20.2.2 + +* Widen `device_info_plus` and `package_info_plus` dependencies to allow for newer versions for Android 15+ support + ## 20.2.1 * Add transaction support for Databases and TablesDB diff --git a/docs/sdks/python/CHANGELOG.md b/docs/sdks/python/CHANGELOG.md index 7d8327b919..90dcfc2ade 100644 --- a/docs/sdks/python/CHANGELOG.md +++ b/docs/sdks/python/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 13.4.2 + +* Fix adding `Optional[]` to optional parameters +* Fix passing of `None` to nullable parameters + ## 13.4.1 * Add transaction support for Databases and TablesDB From 07214de37023a592dedbca1346c10a1fcd953981 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 30 Oct 2025 10:03:36 +0530 Subject: [PATCH 2/6] update sdks --- app/config/platforms.php | 4 +- composer.lock | 24 +++--- .../examples/migrations/create-csv-export.md | 4 + .../examples/migrations/create-csv-import.md | 4 + docs/sdks/apple/CHANGELOG.md | 1 + docs/sdks/cli/CHANGELOG.md | 4 +- docs/sdks/flutter/CHANGELOG.md | 2 + docs/sdks/python/CHANGELOG.md | 4 +- src/Appwrite/Platform/Tasks/SDKs.php | 81 ++++++++++++------- 9 files changed, 85 insertions(+), 43 deletions(-) create mode 100644 docs/examples/1.8.x/console-cli/examples/migrations/create-csv-export.md create mode 100644 docs/examples/1.8.x/console-cli/examples/migrations/create-csv-import.md diff --git a/app/config/platforms.php b/app/config/platforms.php index fa753f1871..2956efe1ad 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -226,7 +226,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '10.2.4', + 'version' => '10.3.0', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, @@ -300,7 +300,7 @@ return [ [ 'key' => 'python', 'name' => 'Python', - 'version' => '13.4.2', + 'version' => '13.5.0', 'url' => 'https://github.com/appwrite/sdk-for-python', 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, diff --git a/composer.lock b/composer.lock index f24faa22de..ddb3b9a6ad 100644 --- a/composer.lock +++ b/composer.lock @@ -5253,16 +5253,16 @@ }, { "name": "webmozart/assert", - "version": "1.12.0", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "541057574806f942c94662b817a50f63f7345360" + "reference": "9be6926d8b485f55b9229203f962b51ed377ba68" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/541057574806f942c94662b817a50f63f7345360", - "reference": "541057574806f942c94662b817a50f63f7345360", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/9be6926d8b485f55b9229203f962b51ed377ba68", + "reference": "9be6926d8b485f55b9229203f962b51ed377ba68", "shasum": "" }, "require": { @@ -5305,9 +5305,9 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.12.0" + "source": "https://github.com/webmozarts/assert/tree/1.12.1" }, - "time": "2025-10-20T12:43:39+00:00" + "time": "2025-10-29T15:56:20+00:00" }, { "name": "webonyx/graphql-php", @@ -5378,16 +5378,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "1.4.15", + "version": "1.4.16", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "b4a2fd9e92903c2e156f17fc5dafe102e6cfdfda" + "reference": "08f839443f678208eb56a6c5a7456dd632adfc9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/b4a2fd9e92903c2e156f17fc5dafe102e6cfdfda", - "reference": "b4a2fd9e92903c2e156f17fc5dafe102e6cfdfda", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/08f839443f678208eb56a6c5a7456dd632adfc9a", + "reference": "08f839443f678208eb56a6c5a7456dd632adfc9a", "shasum": "" }, "require": { @@ -5423,9 +5423,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/1.4.15" + "source": "https://github.com/appwrite/sdk-generator/tree/1.4.16" }, - "time": "2025-10-28T04:52:59+00:00" + "time": "2025-10-29T08:39:55+00:00" }, { "name": "doctrine/annotations", diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-export.md b/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-export.md new file mode 100644 index 0000000000..e56afae786 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-export.md @@ -0,0 +1,4 @@ +appwrite migrations create-csv-export \ + --resource-id \ + --bucket-id \ + --filename diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-import.md b/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-import.md new file mode 100644 index 0000000000..196112bdf8 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-import.md @@ -0,0 +1,4 @@ +appwrite migrations create-csv-import \ + --bucket-id \ + --file-id \ + --resource-id diff --git a/docs/sdks/apple/CHANGELOG.md b/docs/sdks/apple/CHANGELOG.md index 202dc1cb67..df3170cc4d 100644 --- a/docs/sdks/apple/CHANGELOG.md +++ b/docs/sdks/apple/CHANGELOG.md @@ -3,6 +3,7 @@ ## 13.3.1 * Fix `onOpen` callback not being called when the websocket connection is established +* Fix add missing `scheduled` value to `ExecutionStatus` enum ## 13.3.0 diff --git a/docs/sdks/cli/CHANGELOG.md b/docs/sdks/cli/CHANGELOG.md index 641e62d73b..18a3af6387 100644 --- a/docs/sdks/cli/CHANGELOG.md +++ b/docs/sdks/cli/CHANGELOG.md @@ -1,7 +1,9 @@ # Change Log -## 10.2.4 +## 10.3.0 +* Add `create-csv-export` and `create-csv-import` commands to create a CSV export and import of a collection/table +* Add `create-resend-provider` and `update-resend-provider` commands to create and update a Resend Email provider * Fix syncing of tables deleted locally during `push tables` command * Fix added push command support for cli spatial types * Fix attribute changing during push diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index 77317be7eb..4c723b8017 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -3,6 +3,8 @@ ## 20.2.2 * Widen `device_info_plus` and `package_info_plus` dependencies to allow for newer versions for Android 15+ support +* Fix `CHUNK_SIZE` constant to `chunkSize` +* Fix missing `@override` annotation to `toMap` method in all model classes ## 20.2.1 diff --git a/docs/sdks/python/CHANGELOG.md b/docs/sdks/python/CHANGELOG.md index 90dcfc2ade..cb7f47d379 100644 --- a/docs/sdks/python/CHANGELOG.md +++ b/docs/sdks/python/CHANGELOG.md @@ -1,7 +1,9 @@ # Change Log -## 13.4.2 +## 13.5.0 +* Add `create_resend_provider` and `update_resend_provider` methods to `Messaging` service +* Improve deprecation warnings * Fix adding `Optional[]` to optional parameters * Fix passing of `None` to nullable parameters diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index 2fb15c5f7d..14c4b736e8 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -48,13 +48,18 @@ class SDKs extends Action ->param('message', null, new Nullable(new Text(256)), 'Commit Message', optional: true) ->param('release', null, new Nullable(new WhiteList(['yes', 'no'])), 'Should we create releases?', optional: true) ->param('commit', null, new Nullable(new WhiteList(['yes', 'no'])), 'Actually create releases (yes) or dry-run (no)?', optional: true) + ->param('sdks', null, new Nullable(new Text(256)), 'Selected SDKs', optional: true) ->callback($this->action(...)); } - public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message, ?string $release, ?string $commit): void + public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message, ?string $release, ?string $commit, ?string $sdks): void { - $selectedPlatform ??= Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):'); - $selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):')); + if (!$sdks){ + $selectedPlatform ??= Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):'); + $selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):')); + } else { + $sdks = explode(',', $sdks); + } $version ??= Console::confirm('Choose an Appwrite version'); $createRelease = ($release === 'yes'); @@ -104,12 +109,12 @@ class SDKs extends Action $platforms = Config::getParam('platforms'); foreach ($platforms as $key => $platform) { - if ($selectedPlatform !== $key && $selectedPlatform !== '*') { + if ($selectedPlatform !== $key && $selectedPlatform !== '*' && ($sdks === null)) { continue; } foreach ($platform['sdks'] as $language) { - if ($selectedSDK !== $language['key'] && $selectedSDK !== '*') { + if ($selectedSDK !== $language['key'] && $selectedSDK !== '*' && ($sdks === null || !\in_array($language['key'], $sdks))) { continue; } @@ -472,38 +477,60 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND $errorMessage = implode("\n", $prOutput); if (strpos($errorMessage, 'already exists') !== false) { Console::warning("Pull request already exists for {$language['name']} SDK, updating title and body..."); - - $updateCommand = 'cd ' . $target . ' && \ - gh pr edit "' . $gitBranch . '" \ + $prNumberCommand = 'cd ' . $target . ' && \ + gh pr list \ --repo "' . $repoName . '" \ - --title "' . $prTitle . '" \ - --body "' . $prBody . '" \ + --head "' . $gitBranch . '" \ + --json number \ + --jq ".[0].number" \ 2>&1'; - $updateOutput = []; - $updateReturnCode = 0; - \exec($updateCommand, $updateOutput, $updateReturnCode); + $prNumberOutput = []; + $prNumberReturnCode = 0; + \exec($prNumberCommand, $prNumberOutput, $prNumberReturnCode); - if ($updateReturnCode === 0) { - Console::success("Successfully updated pull request for {$language['name']} SDK"); + if ($prNumberReturnCode === 0 && !empty($prNumberOutput[0])) { + $prNumber = trim($prNumberOutput[0]); - $prUrlCommand = 'cd ' . $target . ' && \ - gh pr view "' . $gitBranch . '" \ - --repo "' . $repoName . '" \ - --json url \ - --jq .url \ + // Use API directly to update PR to avoid deprecated projectCards field + $updateCommand = 'cd ' . $target . ' && \ + gh api \ + --method PATCH \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/' . $repoName . '/pulls/' . $prNumber . ' \ + -f title="' . $prTitle . '" \ + -f body="' . $prBody . '" \ 2>&1'; - $prUrlOutput = []; - $prUrlReturnCode = 0; - \exec($prUrlCommand, $prUrlOutput, $prUrlReturnCode); + $updateOutput = []; + $updateReturnCode = 0; + \exec($updateCommand, $updateOutput, $updateReturnCode); - if ($prUrlReturnCode === 0 && !empty($prUrlOutput)) { - $prUrls[$language['name']] = $prUrlOutput[0]; + if ($updateReturnCode === 0) { + Console::success("Successfully updated pull request for {$language['name']} SDK"); + + $prUrlCommand = 'cd ' . $target . ' && \ + gh pr list \ + --repo "' . $repoName . '" \ + --head "' . $gitBranch . '" \ + --json url \ + --jq ".[0].url" \ + 2>&1'; + + $prUrlOutput = []; + $prUrlReturnCode = 0; + \exec($prUrlCommand, $prUrlOutput, $prUrlReturnCode); + + if ($prUrlReturnCode === 0 && !empty($prUrlOutput)) { + $prUrls[$language['name']] = trim($prUrlOutput[0]); + } + } else { + $updateErrorMessage = implode("\n", $updateOutput); + Console::error("Failed to update pull request for {$language['name']} SDK: " . $updateErrorMessage); } } else { - $updateErrorMessage = implode("\n", $updateOutput); - Console::error("Failed to update pull request for {$language['name']} SDK: " . $updateErrorMessage); + Console::error("Failed to get PR number for {$language['name']} SDK"); } } else { Console::error("Failed to create pull request for {$language['name']} SDK: " . $errorMessage); From 88dffcffbf5c52bb41265ed31c02fe30326d3400 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 30 Oct 2025 11:01:42 +0530 Subject: [PATCH 3/6] format --- src/Appwrite/Platform/Tasks/SDKs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index 14c4b736e8..f587e0f946 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -54,7 +54,7 @@ class SDKs extends Action public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message, ?string $release, ?string $commit, ?string $sdks): void { - if (!$sdks){ + if (!$sdks) { $selectedPlatform ??= Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):'); $selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):')); } else { From 6bd52875dc4042bf4097534a40f7ea5f33da7144 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 30 Oct 2025 18:13:32 +0530 Subject: [PATCH 4/6] update to major --- app/config/platforms.php | 2 +- docs/sdks/cli/CHANGELOG.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index 2956efe1ad..34c0290832 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -226,7 +226,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '10.3.0', + 'version' => '11.0.0', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, diff --git a/docs/sdks/cli/CHANGELOG.md b/docs/sdks/cli/CHANGELOG.md index 18a3af6387..0ffcb91b80 100644 --- a/docs/sdks/cli/CHANGELOG.md +++ b/docs/sdks/cli/CHANGELOG.md @@ -1,8 +1,9 @@ # Change Log -## 10.3.0 +## 11.0.0 -* Add `create-csv-export` and `create-csv-import` commands to create a CSV export and import of a collection/table +* Rename `create-csv-migration` to `create-csv-import` command to create a CSV import of a collection/table +* Add `create-csv-export` command to create a CSV export of a collection/table * Add `create-resend-provider` and `update-resend-provider` commands to create and update a Resend Email provider * Fix syncing of tables deleted locally during `push tables` command * Fix added push command support for cli spatial types From 68d7ff9c5528986b39756489f551c97617bd7e6e Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 31 Oct 2025 13:05:29 +0530 Subject: [PATCH 5/6] update sdk gen --- composer.lock | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/composer.lock b/composer.lock index ddb3b9a6ad..a5e7d2a0a1 100644 --- a/composer.lock +++ b/composer.lock @@ -3840,16 +3840,16 @@ }, { "name": "utopia-php/database", - "version": "3.0.4", + "version": "3.1.2", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "a83997d5555d6cd873b829a2459292211c6ab13f" + "reference": "b6541a9cd9b21786a5020327f582838afdb159aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/a83997d5555d6cd873b829a2459292211c6ab13f", - "reference": "a83997d5555d6cd873b829a2459292211c6ab13f", + "url": "https://api.github.com/repos/utopia-php/database/zipball/b6541a9cd9b21786a5020327f582838afdb159aa", + "reference": "b6541a9cd9b21786a5020327f582838afdb159aa", "shasum": "" }, "require": { @@ -3892,9 +3892,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/3.0.4" + "source": "https://github.com/utopia-php/database/tree/3.1.2" }, - "time": "2025-10-28T08:21:21+00:00" + "time": "2025-10-30T13:10:13+00:00" }, { "name": "utopia-php/detector", @@ -4108,16 +4108,16 @@ }, { "name": "utopia-php/emails", - "version": "0.6.1", + "version": "0.6.2", "source": { "type": "git", "url": "https://github.com/utopia-php/emails.git", - "reference": "0de8896f369b6aa1f14df338645048f95a8439e3" + "reference": "9c4c40cf7c03c2e9e21364566f9b192d03ea93c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/emails/zipball/0de8896f369b6aa1f14df338645048f95a8439e3", - "reference": "0de8896f369b6aa1f14df338645048f95a8439e3", + "url": "https://api.github.com/repos/utopia-php/emails/zipball/9c4c40cf7c03c2e9e21364566f9b192d03ea93c9", + "reference": "9c4c40cf7c03c2e9e21364566f9b192d03ea93c9", "shasum": "" }, "require": { @@ -4125,7 +4125,7 @@ "utopia-php/cli": "^0.15", "utopia-php/domains": "^0.9", "utopia-php/fetch": "^0.4", - "utopia-php/validators": "^0.0.1" + "utopia-php/validators": "^0.0.2" }, "require-dev": { "laravel/pint": "1.25.*", @@ -4162,9 +4162,9 @@ ], "support": { "issues": "https://github.com/utopia-php/emails/issues", - "source": "https://github.com/utopia-php/emails/tree/0.6.1" + "source": "https://github.com/utopia-php/emails/tree/0.6.2" }, - "time": "2025-10-28T07:29:58+00:00" + "time": "2025-10-28T16:08:17+00:00" }, { "name": "utopia-php/fetch", @@ -5109,16 +5109,16 @@ }, { "name": "utopia-php/validators", - "version": "0.0.1", + "version": "0.0.2", "source": { "type": "git", "url": "https://github.com/utopia-php/validators.git", - "reference": "69d1afa5df2f052535764520609e91b491708db2" + "reference": "894210695c5d35fa248fb65f7fe7237b6ff4fb0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/validators/zipball/69d1afa5df2f052535764520609e91b491708db2", - "reference": "69d1afa5df2f052535764520609e91b491708db2", + "url": "https://api.github.com/repos/utopia-php/validators/zipball/894210695c5d35fa248fb65f7fe7237b6ff4fb0b", + "reference": "894210695c5d35fa248fb65f7fe7237b6ff4fb0b", "shasum": "" }, "require": { @@ -5149,9 +5149,9 @@ ], "support": { "issues": "https://github.com/utopia-php/validators/issues", - "source": "https://github.com/utopia-php/validators/tree/0.0.1" + "source": "https://github.com/utopia-php/validators/tree/0.0.2" }, - "time": "2025-10-20T15:08:50+00:00" + "time": "2025-10-20T21:52:28+00:00" }, { "name": "utopia-php/vcs", @@ -5378,16 +5378,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "1.4.16", + "version": "1.4.17", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "08f839443f678208eb56a6c5a7456dd632adfc9a" + "reference": "9359beffe25e74b21e4a865101692529617b90d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/08f839443f678208eb56a6c5a7456dd632adfc9a", - "reference": "08f839443f678208eb56a6c5a7456dd632adfc9a", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/9359beffe25e74b21e4a865101692529617b90d6", + "reference": "9359beffe25e74b21e4a865101692529617b90d6", "shasum": "" }, "require": { @@ -5423,9 +5423,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/1.4.16" + "source": "https://github.com/appwrite/sdk-generator/tree/1.4.17" }, - "time": "2025-10-29T08:39:55+00:00" + "time": "2025-10-30T12:46:09+00:00" }, { "name": "doctrine/annotations", From ed39fd799977d1648b0b1a80b56d229cd5e02619 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 31 Oct 2025 14:31:16 +0530 Subject: [PATCH 6/6] regen sdks --- .../examples/migrations/create-csv-export.md | 22 +++++++++++++++++++ .../examples/migrations/create-csv-import.md | 16 ++++++++++++++ .../examples/databases/create-collection.md | 2 +- .../examples/databases/create-document.md | 2 +- .../examples/databases/update-collection.md | 2 +- .../examples/databases/update-document.md | 2 +- .../examples/databases/upsert-document.md | 2 +- .../examples/storage/create-bucket.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/storage/update-bucket.md | 2 +- .../examples/storage/update-file.md | 2 +- .../examples/tablesdb/create-row.md | 2 +- .../examples/tablesdb/create-table.md | 2 +- .../examples/tablesdb/update-row.md | 2 +- .../examples/tablesdb/update-table.md | 2 +- .../examples/tablesdb/upsert-row.md | 2 +- 16 files changed, 52 insertions(+), 14 deletions(-) create mode 100644 docs/examples/1.8.x/console-web/examples/migrations/create-csv-export.md create mode 100644 docs/examples/1.8.x/console-web/examples/migrations/create-csv-import.md diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-csv-export.md b/docs/examples/1.8.x/console-web/examples/migrations/create-csv-export.md new file mode 100644 index 0000000000..e1b909a852 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-csv-export.md @@ -0,0 +1,22 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.createCSVExport({ + resourceId: '', + bucketId: '', + filename: '', + columns: [], // optional + queries: [], // optional + delimiter: '', // optional + enclosure: '', // optional + escape: '', // optional + header: false, // optional + notify: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-csv-import.md b/docs/examples/1.8.x/console-web/examples/migrations/create-csv-import.md new file mode 100644 index 0000000000..9b8b2b2b33 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-csv-import.md @@ -0,0 +1,16 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.createCSVImport({ + bucketId: '', + fileId: '', + resourceId: '', + internalFile: false // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md index 8ad770d907..9bc014b59b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md @@ -11,7 +11,7 @@ const result = await databases.createCollection({ databaseId: '', collectionId: '', name: '', - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional documentSecurity: false, // optional enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md index 6fe77c42be..e6b9b49553 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md @@ -18,6 +18,6 @@ const result = await databases.createDocument({ "age": 30, "isAdmin": false }, - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md index d0d25b74d6..4cdc3a203b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md @@ -11,7 +11,7 @@ const result = await databases.updateCollection({ databaseId: '', collectionId: '', name: '', - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional documentSecurity: false, // optional enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md index 3e953760a1..d33d78d7d3 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md @@ -12,6 +12,6 @@ const result = await databases.updateDocument({ collectionId: '', documentId: '', data: {}, // optional - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md index 0aaec4e6cb..8fe4b35194 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md @@ -12,6 +12,6 @@ const result = await databases.upsertDocument({ collectionId: '', documentId: '', data: {}, - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.8.x/server-nodejs/examples/storage/create-bucket.md index f1f029491a..b47d2c8353 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/create-bucket.md @@ -10,7 +10,7 @@ const storage = new sdk.Storage(client); const result = await storage.createBucket({ bucketId: '', name: '', - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional fileSecurity: false, // optional enabled: false, // optional maximumFileSize: 1, // optional diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.8.x/server-nodejs/examples/storage/create-file.md index 628faf7249..8dc1745585 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/create-file.md @@ -12,5 +12,5 @@ const result = await storage.createFile({ bucketId: '', fileId: '', file: InputFile.fromPath('/path/to/file', 'filename'), - permissions: ["read("any")"] // optional + permissions: [sdk.Permission.read(sdk.Role.any())] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.8.x/server-nodejs/examples/storage/update-bucket.md index 136ebafe1b..9535914eeb 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/update-bucket.md @@ -10,7 +10,7 @@ const storage = new sdk.Storage(client); const result = await storage.updateBucket({ bucketId: '', name: '', - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional fileSecurity: false, // optional enabled: false, // optional maximumFileSize: 1, // optional diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.8.x/server-nodejs/examples/storage/update-file.md index 2d78d5fb91..131682134d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/update-file.md @@ -11,5 +11,5 @@ const result = await storage.updateFile({ bucketId: '', fileId: '', name: '', // optional - permissions: ["read("any")"] // optional + permissions: [sdk.Permission.read(sdk.Role.any())] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md index 4468c168e8..d437501ba0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md @@ -18,6 +18,6 @@ const result = await tablesDB.createRow({ "age": 30, "isAdmin": false }, - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md index 1b252f1484..6a4c12d34d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md @@ -11,7 +11,7 @@ const result = await tablesDB.createTable({ databaseId: '', tableId: '', name: '', - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional rowSecurity: false, // optional enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md index 58583af745..d5d2ee3002 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md @@ -12,6 +12,6 @@ const result = await tablesDB.updateRow({ tableId: '', rowId: '', data: {}, // optional - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md index b61fd6ac4e..97483daa03 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md @@ -11,7 +11,7 @@ const result = await tablesDB.updateTable({ databaseId: '', tableId: '', name: '', - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional rowSecurity: false, // optional enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md index bfb833356a..f48b0daebd 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md @@ -12,6 +12,6 @@ const result = await tablesDB.upsertRow({ tableId: '', rowId: '', data: {}, // optional - permissions: ["read("any")"], // optional + permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional });