diff --git a/README-CN.md b/README-CN.md index c79e0a1db4..811fe6435c 100644 --- a/README-CN.md +++ b/README-CN.md @@ -72,7 +72,7 @@ docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ - appwrite/appwrite:1.7.0 + appwrite/appwrite:1.7.2 ``` ### Windows @@ -84,7 +84,7 @@ docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="install" ^ - appwrite/appwrite:1.7.0 + appwrite/appwrite:1.7.2 ``` #### PowerShell @@ -94,7 +94,7 @@ docker run -it --rm ` --volume /var/run/docker.sock:/var/run/docker.sock ` --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ` --entrypoint="install" ` - appwrite/appwrite:1.7.0 + appwrite/appwrite:1.7.2 ``` 运行后,可以在浏览器上访问 http://localhost 找到 Appwrite 控制台。在非 Linux 的本机主机上完成安装后,服务器可能需要几分钟才能启动。 diff --git a/README.md b/README.md index 435a2efd87..f29be0bd61 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ - appwrite/appwrite:1.7.0 + appwrite/appwrite:1.7.2 ``` ### Windows @@ -90,7 +90,7 @@ docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="install" ^ - appwrite/appwrite:1.7.0 + appwrite/appwrite:1.7.2 ``` #### PowerShell @@ -100,7 +100,7 @@ docker run -it --rm ` --volume /var/run/docker.sock:/var/run/docker.sock ` --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ` --entrypoint="install" ` - appwrite/appwrite:1.7.0 + appwrite/appwrite:1.7.2 ``` Once the Docker installation is complete, go to http://localhost to access the Appwrite console from your browser. Please note that on non-Linux native hosts, the server might take a few minutes to start after completing the installation. diff --git a/app/cli.php b/app/cli.php index 0f0e48bf7d..9517347420 100644 --- a/app/cli.php +++ b/app/cli.php @@ -10,12 +10,15 @@ use Appwrite\Event\StatsUsage; use Appwrite\Platform\Appwrite; use Appwrite\Runtimes\Runtimes; use Executor\Executor; +use Swoole\Runtime; use Swoole\Timer; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Cache\Adapter\Sharding; use Utopia\Cache\Cache; use Utopia\CLI\CLI; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\Document; use Utopia\Database\Validator\Authorization; @@ -23,6 +26,7 @@ use Utopia\DSN\DSN; use Utopia\Logger\Log; use Utopia\Platform\Service; use Utopia\Pools\Group; +use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Queue\Publisher; use Utopia\Registry\Registry; use Utopia\System\System; @@ -45,10 +49,7 @@ CLI::setResource('cache', function ($pools) { $adapters = []; foreach ($list as $value) { - $adapters[] = $pools - ->get($value) - ->pop() - ->getResource(); + $adapters[] = new CachePool($pools->get($value)); } return new Cache(new Sharding($adapters)); @@ -68,12 +69,8 @@ CLI::setResource('dbForPlatform', function ($pools, $cache) { $attempts++; try { // Prepare database connection - $dbAdapter = $pools - ->get('console') - ->pop() - ->getResource(); - - $dbForPlatform = new Database($dbAdapter, $cache); + $adapter = new DatabasePool($pools->get('console')); + $dbForPlatform = new Database($adapter, $cache); $dbForPlatform ->setNamespace('_console') @@ -91,7 +88,6 @@ CLI::setResource('dbForPlatform', function ($pools, $cache) { $ready = true; } catch (\Throwable $err) { Console::warning($err->getMessage()); - $pools->get('console')->reclaim(); sleep($sleep); } } while ($attempts < $maxAttempts && !$ready); @@ -141,12 +137,8 @@ CLI::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform return $database; } - $dbAdapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $database = new Database($adapter, $cache); $databases[$dsn->getHost()] = $database; $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); @@ -172,21 +164,15 @@ CLI::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform CLI::setResource('getLogsDB', function (Group $pools, Cache $cache) { $database = null; + return function (?Document $project = null) use ($pools, $cache, $database) { if ($database !== null && $project !== null && !$project->isEmpty() && $project->getId() !== 'console') { $database->setTenant($project->getInternalId()); return $database; } - $dbAdapter = $pools - ->get('logs') - ->pop() - ->getResource(); - - $database = new Database( - $dbAdapter, - $cache - ); + $adapter = new DatabasePool($pools->get('logs')); + $database = new Database($adapter, $cache); $database ->setSharedTables(true) @@ -210,7 +196,7 @@ CLI::setResource('queueForStatsResources', function (Publisher $publisher) { return new StatsResources($publisher); }, ['publisher']); CLI::setResource('publisher', function (Group $pools) { - return $pools->get('publisher')->pop()->getResource(); + return new BrokerPool(publisher: $pools->get('publisher')); }, ['pools']); CLI::setResource('queueForFunctions', function (Publisher $publisher) { return new Func($publisher); @@ -298,4 +284,6 @@ $cli $cli->shutdown()->action(fn () => Timer::clearAll()); +// Enable coroutines, but disable TCP hooks. These don't work until we use `\Utopia\Cache\Adapter\Pool` and `\Utopia\Database\Adapter\Pool`. +Runtime::enableCoroutine(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP); run($cli->run(...)); diff --git a/app/config/platforms.php b/app/config/platforms.php index ac6c4a6214..358edd0cf8 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -11,7 +11,7 @@ return [ [ 'key' => 'web', 'name' => 'Web', - 'version' => '18.0.0', + 'version' => '18.1.0', 'url' => 'https://github.com/appwrite/sdk-for-web', 'package' => 'https://www.npmjs.com/package/appwrite', 'enabled' => true, @@ -59,7 +59,7 @@ return [ [ 'key' => 'flutter', 'name' => 'Flutter', - 'version' => '16.0.0', + 'version' => '16.1.0', 'url' => 'https://github.com/appwrite/sdk-for-flutter', 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, @@ -77,7 +77,7 @@ return [ [ 'key' => 'apple', 'name' => 'Apple', - 'version' => '10.0.0', + 'version' => '10.1.0', 'url' => 'https://github.com/appwrite/sdk-for-apple', 'package' => 'https://github.com/appwrite/sdk-for-apple', 'enabled' => true, @@ -112,7 +112,7 @@ return [ [ 'key' => 'android', 'name' => 'Android', - 'version' => '8.0.0', + 'version' => '8.1.0', 'url' => 'https://github.com/appwrite/sdk-for-android', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android', 'enabled' => true, @@ -134,7 +134,7 @@ return [ [ 'key' => 'react-native', 'name' => 'React Native', - 'version' => '0.9.0', + 'version' => '0.9.1', 'url' => 'https://github.com/appwrite/sdk-for-react-native', 'package' => 'https://npmjs.com/package/react-native-appwrite', 'enabled' => true, @@ -199,7 +199,7 @@ return [ [ 'key' => 'web', 'name' => 'Console', - 'version' => '1.3.0', + 'version' => '1.7.0', 'url' => 'https://github.com/appwrite/sdk-for-console', 'package' => '', 'enabled' => true, @@ -353,7 +353,7 @@ return [ [ 'key' => 'dotnet', 'name' => '.NET', - 'version' => '0.15.0', + 'version' => '0.13.0', 'url' => 'https://github.com/appwrite/sdk-for-dotnet', 'package' => 'https://www.nuget.org/packages/Appwrite', 'enabled' => true, diff --git a/app/config/specs/open-api3-1.7.x-client.json b/app/config/specs/open-api3-1.7.x-client.json index 92e64c7ba0..abeab8a56f 100644 --- a/app/config/specs/open-api3-1.7.x-client.json +++ b/app/config/specs/open-api3-1.7.x-client.json @@ -4660,6 +4660,115 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/document" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Session": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + } + } + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -4781,7 +4890,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -4865,7 +4974,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -4940,7 +5049,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -5055,7 +5164,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -5129,7 +5238,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -5181,7 +5290,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -5233,7 +5342,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -5285,7 +5394,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -5337,7 +5446,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -5389,7 +5498,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -5441,7 +5550,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -5493,7 +5602,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -5545,7 +5654,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -5597,7 +5706,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -5649,7 +5758,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -5732,7 +5841,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -5807,7 +5916,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -5893,7 +6002,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -5991,7 +6100,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -6063,7 +6172,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -6152,7 +6261,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -6219,7 +6328,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -6297,7 +6406,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -6524,7 +6633,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -6609,7 +6718,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -6685,7 +6794,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -6770,7 +6879,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -6832,7 +6941,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -6906,7 +7015,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -6970,7 +7079,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -7056,7 +7165,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -7167,7 +7276,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -7239,7 +7348,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -7326,7 +7435,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -7400,7 +7509,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -7498,7 +7607,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -7559,7 +7668,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -9752,6 +9861,12 @@ "name": "X-Appwrite-Session", "description": "The user session to authenticate with", "in": "header" + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-Dev-Key", + "description": "Your secret dev API key", + "in": "header" } } }, diff --git a/app/config/specs/open-api3-1.7.x-console.json b/app/config/specs/open-api3-1.7.x-console.json index 31d5016e85..19ce78915c 100644 --- a/app/config/specs/open-api3-1.7.x-console.json +++ b/app/config/specs/open-api3-1.7.x-console.json @@ -4359,7 +4359,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 307, + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -4419,7 +4419,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 431, + "weight": 432, "cookies": false, "type": "", "deprecated": false, @@ -4494,7 +4494,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 306, + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -4694,7 +4694,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 118, + "weight": 119, "cookies": false, "type": "", "deprecated": false, @@ -8049,29 +8049,6 @@ } ], "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." - }, - { - "name": "createDocuments", - "auth": { - "Key": [] - }, - "parameters": [ - "databaseId", - "collectionId", - "documents" - ], - "required": [ - "databaseId", - "collectionId", - "documents" - ], - "responses": [ - { - "code": 201, - "model": "#\/components\/schemas\/documentList" - } - ], - "description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } ], "auth": { @@ -8167,7 +8144,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 115, + "weight": 116, "cookies": false, "type": "", "deprecated": false, @@ -8255,7 +8232,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 114, + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -8348,7 +8325,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 117, + "weight": 118, "cookies": false, "type": "", "deprecated": false, @@ -8511,6 +8488,115 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/document" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + } + } + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -8632,7 +8718,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -9253,7 +9339,7 @@ "x-appwrite": { "method": "getCollectionUsage", "group": null, - "weight": 120, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -9418,7 +9504,7 @@ "x-appwrite": { "method": "getDatabaseUsage", "group": null, - "weight": 119, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -9500,7 +9586,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 375, + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -9573,7 +9659,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 372, + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -9804,7 +9890,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 377, + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -9853,7 +9939,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 378, + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -9903,7 +9989,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 401, + "weight": 402, "cookies": false, "type": "", "deprecated": false, @@ -10003,7 +10089,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 400, + "weight": 401, "cookies": false, "type": "", "deprecated": false, @@ -10063,7 +10149,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 394, + "weight": 395, "cookies": false, "type": "", "deprecated": false, @@ -10135,7 +10221,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 373, + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -10194,7 +10280,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 374, + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -10422,7 +10508,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 376, + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -10483,7 +10569,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 381, + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -10563,7 +10649,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 382, + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -10646,7 +10732,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 379, + "weight": 380, "cookies": false, "type": "upload", "deprecated": false, @@ -10742,7 +10828,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 387, + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -10827,7 +10913,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 384, + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -10930,7 +11016,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 385, + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -11027,7 +11113,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 380, + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -11089,7 +11175,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 383, + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -11153,7 +11239,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 386, + "weight": 387, "cookies": false, "type": "location", "deprecated": false, @@ -11243,7 +11329,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 388, + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -11314,7 +11400,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -11389,7 +11475,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -11504,7 +11590,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -11569,7 +11655,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 392, + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -11640,7 +11726,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 393, + "weight": 394, "cookies": false, "type": "", "deprecated": false, @@ -11722,7 +11808,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 397, + "weight": 398, "cookies": false, "type": "", "deprecated": false, @@ -11781,7 +11867,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 395, + "weight": 396, "cookies": false, "type": "", "deprecated": false, @@ -11872,7 +11958,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 396, + "weight": 397, "cookies": false, "type": "", "deprecated": false, @@ -11941,7 +12027,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 398, + "weight": 399, "cookies": false, "type": "", "deprecated": false, @@ -12032,7 +12118,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 399, + "weight": 400, "cookies": false, "type": "", "deprecated": false, @@ -12103,7 +12189,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -12155,7 +12241,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -12207,7 +12293,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 129, + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -12256,7 +12342,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 150, + "weight": 151, "cookies": false, "type": "", "deprecated": false, @@ -12305,7 +12391,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 132, + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -12354,7 +12440,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 137, + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -12414,7 +12500,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 131, + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -12463,7 +12549,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 133, + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -12512,7 +12598,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 139, + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -12574,7 +12660,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 138, + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -12636,7 +12722,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 140, + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -12709,7 +12795,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 141, + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -12771,7 +12857,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 151, + "weight": 152, "cookies": false, "type": "", "deprecated": false, @@ -12859,7 +12945,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 145, + "weight": 146, "cookies": false, "type": "", "deprecated": false, @@ -12921,7 +13007,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 136, + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -12983,7 +13069,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 142, + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -13045,7 +13131,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 143, + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -13107,7 +13193,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 144, + "weight": 145, "cookies": false, "type": "", "deprecated": false, @@ -13169,7 +13255,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 146, + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -13231,7 +13317,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 147, + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -13293,7 +13379,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 135, + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -13355,7 +13441,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 149, + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -13404,7 +13490,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 148, + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -13453,7 +13539,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 134, + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -13502,7 +13588,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -13554,7 +13640,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -13606,7 +13692,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -13658,7 +13744,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -13710,7 +13796,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -13762,7 +13848,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -13814,7 +13900,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -13866,7 +13952,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -13918,7 +14004,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 359, + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -13994,7 +14080,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 356, + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -14138,7 +14224,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -14284,7 +14370,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 358, + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -14458,7 +14544,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -14636,7 +14722,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 357, + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -14745,7 +14831,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -14857,7 +14943,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -14910,7 +14996,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -14972,7 +15058,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 360, + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -15047,7 +15133,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -15122,7 +15208,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 331, + "weight": 332, "cookies": false, "type": "", "deprecated": false, @@ -15198,7 +15284,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 330, + "weight": 331, "cookies": false, "type": "", "deprecated": false, @@ -15303,7 +15389,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 343, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -15411,7 +15497,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 329, + "weight": 330, "cookies": false, "type": "", "deprecated": false, @@ -15496,7 +15582,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 342, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -15584,7 +15670,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 321, + "weight": 322, "cookies": false, "type": "", "deprecated": false, @@ -15699,7 +15785,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 334, + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -15817,7 +15903,7 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 324, + "weight": 325, "cookies": false, "type": "", "deprecated": false, @@ -15912,7 +15998,7 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 337, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -16010,7 +16096,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 322, + "weight": 323, "cookies": false, "type": "", "deprecated": false, @@ -16115,7 +16201,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 335, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -16223,7 +16309,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 323, + "weight": 324, "cookies": false, "type": "", "deprecated": false, @@ -16366,7 +16452,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 336, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -16511,7 +16597,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 325, + "weight": 326, "cookies": false, "type": "", "deprecated": false, @@ -16606,7 +16692,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 338, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -16704,7 +16790,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 326, + "weight": 327, "cookies": false, "type": "", "deprecated": false, @@ -16799,7 +16885,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 339, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -16897,7 +16983,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 327, + "weight": 328, "cookies": false, "type": "", "deprecated": false, @@ -16992,7 +17078,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 340, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -17090,7 +17176,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 328, + "weight": 329, "cookies": false, "type": "", "deprecated": false, @@ -17185,7 +17271,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 341, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -17283,7 +17369,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 333, + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -17336,7 +17422,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 344, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -17398,7 +17484,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 332, + "weight": 333, "cookies": false, "type": "", "deprecated": false, @@ -17473,7 +17559,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 353, + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -17548,7 +17634,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 346, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -17622,7 +17708,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 345, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -17705,7 +17791,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 348, + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -17765,7 +17851,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 349, + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -17842,7 +17928,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 350, + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -17904,7 +17990,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 347, + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -17979,7 +18065,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 352, + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -18063,7 +18149,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -18153,7 +18239,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 354, + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -18216,7 +18302,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -18291,7 +18377,7 @@ "x-appwrite": { "method": "list", "group": null, - "weight": 313, + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -18365,7 +18451,7 @@ "x-appwrite": { "method": "createAppwriteMigration", "group": null, - "weight": 308, + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -18453,7 +18539,7 @@ "x-appwrite": { "method": "getAppwriteReport", "group": null, - "weight": 315, + "weight": 316, "cookies": false, "type": "", "deprecated": false, @@ -18546,7 +18632,7 @@ "x-appwrite": { "method": "createCsvMigration", "group": null, - "weight": 312, + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -18625,7 +18711,7 @@ "x-appwrite": { "method": "createFirebaseMigration", "group": null, - "weight": 309, + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -18701,7 +18787,7 @@ "x-appwrite": { "method": "getFirebaseReport", "group": null, - "weight": 316, + "weight": 317, "cookies": false, "type": "", "deprecated": false, @@ -18773,7 +18859,7 @@ "x-appwrite": { "method": "createNHostMigration", "group": null, - "weight": 311, + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -18884,7 +18970,7 @@ "x-appwrite": { "method": "getNHostReport", "group": null, - "weight": 318, + "weight": 319, "cookies": false, "type": "", "deprecated": false, @@ -19017,7 +19103,7 @@ "x-appwrite": { "method": "createSupabaseMigration", "group": null, - "weight": 310, + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -19122,7 +19208,7 @@ "x-appwrite": { "method": "getSupabaseReport", "group": null, - "weight": 317, + "weight": 318, "cookies": false, "type": "", "deprecated": false, @@ -19246,7 +19332,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 314, + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -19304,7 +19390,7 @@ "x-appwrite": { "method": "retry", "group": null, - "weight": 319, + "weight": 320, "cookies": false, "type": "", "deprecated": false, @@ -19355,7 +19441,7 @@ "x-appwrite": { "method": "delete", "group": null, - "weight": 320, + "weight": 321, "cookies": false, "type": "", "deprecated": false, @@ -19415,7 +19501,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 199, + "weight": 200, "cookies": false, "type": "", "deprecated": false, @@ -19503,7 +19589,7 @@ "x-appwrite": { "method": "listVariables", "group": null, - "weight": 201, + "weight": 202, "cookies": false, "type": "", "deprecated": false, @@ -19549,7 +19635,7 @@ "x-appwrite": { "method": "createVariable", "group": null, - "weight": 200, + "weight": 201, "cookies": false, "type": "", "deprecated": false, @@ -19627,7 +19713,7 @@ "x-appwrite": { "method": "getVariable", "group": null, - "weight": 202, + "weight": 203, "cookies": false, "type": "", "deprecated": false, @@ -19685,7 +19771,7 @@ "x-appwrite": { "method": "updateVariable", "group": null, - "weight": 203, + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -19765,7 +19851,7 @@ "x-appwrite": { "method": "deleteVariable", "group": null, - "weight": 204, + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -19825,7 +19911,7 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 154, + "weight": 155, "cookies": false, "type": "", "deprecated": false, @@ -19897,7 +19983,7 @@ "x-appwrite": { "method": "create", "group": "projects", - "weight": 153, + "weight": 154, "cookies": false, "type": "", "deprecated": false, @@ -20031,7 +20117,7 @@ "x-appwrite": { "method": "get", "group": "projects", - "weight": 155, + "weight": 156, "cookies": false, "type": "", "deprecated": false, @@ -20089,7 +20175,7 @@ "x-appwrite": { "method": "update", "group": "projects", - "weight": 156, + "weight": 157, "cookies": false, "type": "", "deprecated": false, @@ -20204,7 +20290,7 @@ "x-appwrite": { "method": "delete", "group": "projects", - "weight": 173, + "weight": 174, "cookies": false, "type": "", "deprecated": false, @@ -20264,7 +20350,7 @@ "x-appwrite": { "method": "updateApiStatus", "group": "projects", - "weight": 160, + "weight": 161, "cookies": false, "type": "", "deprecated": false, @@ -20356,7 +20442,7 @@ "x-appwrite": { "method": "updateApiStatusAll", "group": "projects", - "weight": 161, + "weight": 162, "cookies": false, "type": "", "deprecated": false, @@ -20435,7 +20521,7 @@ "x-appwrite": { "method": "updateAuthDuration", "group": "auth", - "weight": 166, + "weight": 167, "cookies": false, "type": "", "deprecated": false, @@ -20514,7 +20600,7 @@ "x-appwrite": { "method": "updateAuthLimit", "group": "auth", - "weight": 165, + "weight": 166, "cookies": false, "type": "", "deprecated": false, @@ -20593,7 +20679,7 @@ "x-appwrite": { "method": "updateAuthSessionsLimit", "group": "auth", - "weight": 171, + "weight": 172, "cookies": false, "type": "", "deprecated": false, @@ -20672,7 +20758,7 @@ "x-appwrite": { "method": "updateMembershipsPrivacy", "group": "auth", - "weight": 164, + "weight": 165, "cookies": false, "type": "", "deprecated": false, @@ -20763,7 +20849,7 @@ "x-appwrite": { "method": "updateMockNumbers", "group": "auth", - "weight": 172, + "weight": 173, "cookies": false, "type": "", "deprecated": false, @@ -20845,7 +20931,7 @@ "x-appwrite": { "method": "updateAuthPasswordDictionary", "group": "auth", - "weight": 169, + "weight": 170, "cookies": false, "type": "", "deprecated": false, @@ -20924,7 +21010,7 @@ "x-appwrite": { "method": "updateAuthPasswordHistory", "group": "auth", - "weight": 168, + "weight": 169, "cookies": false, "type": "", "deprecated": false, @@ -21003,7 +21089,7 @@ "x-appwrite": { "method": "updatePersonalDataCheck", "group": "auth", - "weight": 170, + "weight": 171, "cookies": false, "type": "", "deprecated": false, @@ -21082,7 +21168,7 @@ "x-appwrite": { "method": "updateSessionAlerts", "group": "auth", - "weight": 163, + "weight": 164, "cookies": false, "type": "", "deprecated": false, @@ -21161,7 +21247,7 @@ "x-appwrite": { "method": "updateAuthStatus", "group": "auth", - "weight": 167, + "weight": 168, "cookies": false, "type": "", "deprecated": false, @@ -21261,7 +21347,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -21329,7 +21415,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -21414,7 +21500,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -21482,7 +21568,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -21568,7 +21654,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 371, + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -21638,7 +21724,7 @@ "x-appwrite": { "method": "createJWT", "group": "auth", - "weight": 185, + "weight": 186, "cookies": false, "type": "", "deprecated": false, @@ -21725,7 +21811,7 @@ "x-appwrite": { "method": "listKeys", "group": "keys", - "weight": 181, + "weight": 182, "cookies": false, "type": "", "deprecated": false, @@ -21783,7 +21869,7 @@ "x-appwrite": { "method": "createKey", "group": "keys", - "weight": 180, + "weight": 181, "cookies": false, "type": "", "deprecated": false, @@ -21876,7 +21962,7 @@ "x-appwrite": { "method": "getKey", "group": "keys", - "weight": 182, + "weight": 183, "cookies": false, "type": "", "deprecated": false, @@ -21944,7 +22030,7 @@ "x-appwrite": { "method": "updateKey", "group": "keys", - "weight": 183, + "weight": 184, "cookies": false, "type": "", "deprecated": false, @@ -22038,7 +22124,7 @@ "x-appwrite": { "method": "deleteKey", "group": "keys", - "weight": 184, + "weight": 185, "cookies": false, "type": "", "deprecated": false, @@ -22108,7 +22194,7 @@ "x-appwrite": { "method": "updateOAuth2", "group": "auth", - "weight": 162, + "weight": 163, "cookies": false, "type": "", "deprecated": false, @@ -22246,7 +22332,7 @@ "x-appwrite": { "method": "listPlatforms", "group": "platforms", - "weight": 187, + "weight": 188, "cookies": false, "type": "", "deprecated": false, @@ -22304,7 +22390,7 @@ "x-appwrite": { "method": "createPlatform", "group": "platforms", - "weight": 186, + "weight": 187, "cookies": false, "type": "", "deprecated": false, @@ -22423,7 +22509,7 @@ "x-appwrite": { "method": "getPlatform", "group": "platforms", - "weight": 188, + "weight": 189, "cookies": false, "type": "", "deprecated": false, @@ -22491,7 +22577,7 @@ "x-appwrite": { "method": "updatePlatform", "group": "platforms", - "weight": 189, + "weight": 190, "cookies": false, "type": "", "deprecated": false, @@ -22586,7 +22672,7 @@ "x-appwrite": { "method": "deletePlatform", "group": "platforms", - "weight": 190, + "weight": 191, "cookies": false, "type": "", "deprecated": false, @@ -22656,7 +22742,7 @@ "x-appwrite": { "method": "updateServiceStatus", "group": "projects", - "weight": 158, + "weight": 159, "cookies": false, "type": "", "deprecated": false, @@ -22757,7 +22843,7 @@ "x-appwrite": { "method": "updateServiceStatusAll", "group": "projects", - "weight": 159, + "weight": 160, "cookies": false, "type": "", "deprecated": false, @@ -22836,7 +22922,7 @@ "x-appwrite": { "method": "updateSmtp", "group": "templates", - "weight": 191, + "weight": 192, "cookies": false, "type": "", "deprecated": false, @@ -22954,7 +23040,7 @@ "x-appwrite": { "method": "createSmtpTest", "group": "templates", - "weight": 192, + "weight": 193, "cookies": false, "type": "", "deprecated": false, @@ -23085,7 +23171,7 @@ "x-appwrite": { "method": "updateTeam", "group": "projects", - "weight": 157, + "weight": 158, "cookies": false, "type": "", "deprecated": false, @@ -23164,7 +23250,7 @@ "x-appwrite": { "method": "getEmailTemplate", "group": "templates", - "weight": 194, + "weight": 195, "cookies": false, "type": "", "deprecated": false, @@ -23388,7 +23474,7 @@ "x-appwrite": { "method": "updateEmailTemplate", "group": "templates", - "weight": 196, + "weight": 197, "cookies": false, "type": "", "deprecated": false, @@ -23652,7 +23738,7 @@ "x-appwrite": { "method": "deleteEmailTemplate", "group": "templates", - "weight": 198, + "weight": 199, "cookies": false, "type": "", "deprecated": false, @@ -23878,7 +23964,7 @@ "x-appwrite": { "method": "getSmsTemplate", "group": "templates", - "weight": 193, + "weight": 194, "cookies": false, "type": "", "deprecated": false, @@ -24099,7 +24185,7 @@ "x-appwrite": { "method": "updateSmsTemplate", "group": "templates", - "weight": 195, + "weight": 196, "cookies": false, "type": "", "deprecated": false, @@ -24339,7 +24425,7 @@ "x-appwrite": { "method": "deleteSmsTemplate", "group": "templates", - "weight": 197, + "weight": 198, "cookies": false, "type": "", "deprecated": false, @@ -24562,7 +24648,7 @@ "x-appwrite": { "method": "listWebhooks", "group": "webhooks", - "weight": 175, + "weight": 176, "cookies": false, "type": "", "deprecated": false, @@ -24620,7 +24706,7 @@ "x-appwrite": { "method": "createWebhook", "group": "webhooks", - "weight": 174, + "weight": 175, "cookies": false, "type": "", "deprecated": false, @@ -24735,7 +24821,7 @@ "x-appwrite": { "method": "getWebhook", "group": "webhooks", - "weight": 176, + "weight": 177, "cookies": false, "type": "", "deprecated": false, @@ -24803,7 +24889,7 @@ "x-appwrite": { "method": "updateWebhook", "group": "webhooks", - "weight": 177, + "weight": 178, "cookies": false, "type": "", "deprecated": false, @@ -24919,7 +25005,7 @@ "x-appwrite": { "method": "deleteWebhook", "group": "webhooks", - "weight": 179, + "weight": 180, "cookies": false, "type": "", "deprecated": false, @@ -24989,7 +25075,7 @@ "x-appwrite": { "method": "updateWebhookSignature", "group": "webhooks", - "weight": 178, + "weight": 179, "cookies": false, "type": "", "deprecated": false, @@ -25059,7 +25145,7 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 291, + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -25133,7 +25219,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 432, + "weight": 433, "cookies": false, "type": "", "deprecated": false, @@ -25200,7 +25286,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 434, + "weight": 435, "cookies": false, "type": "", "deprecated": false, @@ -25278,7 +25364,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 435, + "weight": 436, "cookies": false, "type": "", "deprecated": false, @@ -25370,7 +25456,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 433, + "weight": 434, "cookies": false, "type": "", "deprecated": false, @@ -25448,7 +25534,7 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 292, + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -25499,7 +25585,7 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 293, + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -25559,7 +25645,7 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 294, + "weight": 295, "cookies": false, "type": "", "deprecated": false, @@ -25619,7 +25705,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 404, + "weight": 405, "cookies": false, "type": "", "deprecated": false, @@ -25689,7 +25775,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 402, + "weight": 403, "cookies": false, "type": "", "deprecated": false, @@ -25936,7 +26022,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 407, + "weight": 408, "cookies": false, "type": "", "deprecated": false, @@ -25985,7 +26071,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 430, + "weight": 431, "cookies": false, "type": "", "deprecated": false, @@ -26035,7 +26121,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 426, + "weight": 427, "cookies": false, "type": "", "deprecated": false, @@ -26135,7 +26221,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 427, + "weight": 428, "cookies": false, "type": "", "deprecated": false, @@ -26195,7 +26281,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 428, + "weight": 429, "cookies": false, "type": "", "deprecated": false, @@ -26267,7 +26353,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 403, + "weight": 404, "cookies": false, "type": "", "deprecated": false, @@ -26326,7 +26412,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 405, + "weight": 406, "cookies": false, "type": "", "deprecated": false, @@ -26569,7 +26655,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 406, + "weight": 407, "cookies": false, "type": "", "deprecated": false, @@ -26630,7 +26716,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 413, + "weight": 414, "cookies": false, "type": "", "deprecated": false, @@ -26710,7 +26796,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 412, + "weight": 413, "cookies": false, "type": "", "deprecated": false, @@ -26793,7 +26879,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 408, + "weight": 409, "cookies": false, "type": "upload", "deprecated": false, @@ -26894,7 +26980,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 416, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -26974,7 +27060,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 409, + "weight": 410, "cookies": false, "type": "", "deprecated": false, @@ -27077,7 +27163,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 410, + "weight": 411, "cookies": false, "type": "", "deprecated": false, @@ -27175,7 +27261,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 411, + "weight": 412, "cookies": false, "type": "", "deprecated": false, @@ -27237,7 +27323,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 414, + "weight": 415, "cookies": false, "type": "", "deprecated": false, @@ -27301,7 +27387,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 415, + "weight": 416, "cookies": false, "type": "location", "deprecated": false, @@ -27391,7 +27477,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 417, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -27462,7 +27548,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 419, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -27533,7 +27619,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 418, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -27595,7 +27681,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 420, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -27666,7 +27752,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 429, + "weight": 430, "cookies": false, "type": "", "deprecated": false, @@ -27748,7 +27834,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 423, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -27807,7 +27893,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 421, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -27898,7 +27984,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 422, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -27967,7 +28053,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 424, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -28058,7 +28144,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 425, + "weight": 426, "cookies": false, "type": "", "deprecated": false, @@ -28129,7 +28215,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 206, + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -28202,7 +28288,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 205, + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -28329,7 +28415,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 207, + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -28388,7 +28474,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 208, + "weight": 209, "cookies": false, "type": "", "deprecated": false, @@ -28512,7 +28598,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 209, + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -28573,7 +28659,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -28659,7 +28745,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -28757,7 +28843,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -28829,7 +28915,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -28918,7 +29004,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -28985,7 +29071,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -29063,7 +29149,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -29290,7 +29376,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -29375,7 +29461,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 219, + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -29447,7 +29533,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 220, + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -29529,7 +29615,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -29605,7 +29691,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -29690,7 +29776,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -29752,7 +29838,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -29826,7 +29912,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -29890,7 +29976,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 234, + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -29963,7 +30049,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -30049,7 +30135,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -30160,7 +30246,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -30232,7 +30318,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -30319,7 +30405,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -30393,7 +30479,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -30490,7 +30576,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -30550,7 +30636,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -30631,7 +30717,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 438, + "weight": 439, "cookies": false, "type": "", "deprecated": false, @@ -30695,7 +30781,7 @@ "tags": [ "tokens" ], - "description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "description": "Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "responses": { "201": { "description": "ResourceToken", @@ -30711,12 +30797,12 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 436, + "weight": 437, "cookies": false, "type": "", "deprecated": false, "demo": "tokens\/create-file-token.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -30800,7 +30886,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 437, + "weight": 438, "cookies": false, "type": "", "deprecated": false, @@ -30860,7 +30946,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 439, + "weight": 440, "cookies": false, "type": "", "deprecated": false, @@ -30930,7 +31016,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 440, + "weight": 441, "cookies": false, "type": "", "deprecated": false, @@ -30992,7 +31078,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 244, + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -31065,7 +31151,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 235, + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -31153,7 +31239,7 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 238, + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -31238,7 +31324,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 236, + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -31323,7 +31409,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 252, + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -31391,7 +31477,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 275, + "weight": 276, "cookies": false, "type": "", "deprecated": false, @@ -31452,7 +31538,7 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 237, + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -31537,7 +31623,7 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 240, + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -31622,7 +31708,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 241, + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -31737,7 +31823,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 242, + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -31840,7 +31926,7 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 239, + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -31945,7 +32031,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 277, + "weight": 278, "cookies": false, "type": "", "deprecated": false, @@ -32017,7 +32103,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 245, + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -32069,7 +32155,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 273, + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -32130,7 +32216,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 258, + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -32210,7 +32296,7 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 276, + "weight": 277, "cookies": false, "type": "", "deprecated": false, @@ -32292,7 +32378,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 254, + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -32375,7 +32461,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 250, + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -32449,7 +32535,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 249, + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -32534,7 +32620,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 263, + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -32607,7 +32693,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 268, + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -32683,7 +32769,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 264, + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -32744,7 +32830,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 265, + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -32803,7 +32889,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 267, + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -32862,7 +32948,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 266, + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -32923,7 +33009,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 256, + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -33003,7 +33089,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 257, + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -33083,7 +33169,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 259, + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -33163,7 +33249,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 246, + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -33222,7 +33308,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 261, + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -33302,7 +33388,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 248, + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -33361,7 +33447,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 269, + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -33413,7 +33499,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 272, + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -33467,7 +33553,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 271, + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -33538,7 +33624,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 253, + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -33618,7 +33704,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 251, + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -33691,7 +33777,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 243, + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -33801,7 +33887,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 247, + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -33871,7 +33957,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 262, + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -33960,7 +34046,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 274, + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -34032,7 +34118,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 270, + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -34114,7 +34200,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 260, + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -34194,7 +34280,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 255, + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -34274,7 +34360,7 @@ "x-appwrite": { "method": "createRepositoryDetection", "group": "repositories", - "weight": 281, + "weight": 282, "cookies": false, "type": "", "deprecated": false, @@ -34370,7 +34456,7 @@ "x-appwrite": { "method": "listRepositories", "group": "repositories", - "weight": 282, + "weight": 283, "cookies": false, "type": "", "deprecated": false, @@ -34455,7 +34541,7 @@ "x-appwrite": { "method": "createRepository", "group": "repositories", - "weight": 283, + "weight": 284, "cookies": false, "type": "", "deprecated": false, @@ -34540,7 +34626,7 @@ "x-appwrite": { "method": "getRepository", "group": "repositories", - "weight": 284, + "weight": 285, "cookies": false, "type": "", "deprecated": false, @@ -34610,7 +34696,7 @@ "x-appwrite": { "method": "listRepositoryBranches", "group": "repositories", - "weight": 285, + "weight": 286, "cookies": false, "type": "", "deprecated": false, @@ -34680,7 +34766,7 @@ "x-appwrite": { "method": "getRepositoryContents", "group": "repositories", - "weight": 280, + "weight": 281, "cookies": false, "type": "", "deprecated": false, @@ -34754,7 +34840,7 @@ "x-appwrite": { "method": "updateExternalDeployments", "group": "repositories", - "weight": 290, + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -34843,7 +34929,7 @@ "x-appwrite": { "method": "listInstallations", "group": "installations", - "weight": 287, + "weight": 288, "cookies": false, "type": "", "deprecated": false, @@ -34917,7 +35003,7 @@ "x-appwrite": { "method": "getInstallation", "group": "installations", - "weight": 288, + "weight": 289, "cookies": false, "type": "", "deprecated": false, @@ -34968,7 +35054,7 @@ "x-appwrite": { "method": "deleteInstallation", "group": "installations", - "weight": 289, + "weight": 290, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/open-api3-1.7.x-server.json b/app/config/specs/open-api3-1.7.x-server.json index ac1c26d5b6..db615d642c 100644 --- a/app/config/specs/open-api3-1.7.x-server.json +++ b/app/config/specs/open-api3-1.7.x-server.json @@ -7530,29 +7530,6 @@ } ], "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." - }, - { - "name": "createDocuments", - "auth": { - "Key": [] - }, - "parameters": [ - "databaseId", - "collectionId", - "documents" - ], - "required": [ - "databaseId", - "collectionId", - "documents" - ], - "responses": [ - { - "code": 201, - "model": "#\/components\/schemas\/documentList" - } - ], - "description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } ], "auth": { @@ -7650,7 +7627,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 115, + "weight": 116, "cookies": false, "type": "", "deprecated": false, @@ -7739,7 +7716,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 114, + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -7833,7 +7810,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 117, + "weight": 118, "cookies": false, "type": "", "deprecated": false, @@ -7999,6 +7976,117 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/document" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Session": [] + } + }, + "security": [ + { + "Project": [], + "Session": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + } + } + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -8122,7 +8210,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -8573,7 +8661,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 375, + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -8647,7 +8735,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 372, + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -8879,7 +8967,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 377, + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -8929,7 +9017,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 378, + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -8980,7 +9068,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 373, + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -9040,7 +9128,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 374, + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -9269,7 +9357,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 376, + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -9331,7 +9419,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 381, + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -9412,7 +9500,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 382, + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -9496,7 +9584,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 379, + "weight": 380, "cookies": false, "type": "upload", "deprecated": false, @@ -9593,7 +9681,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 387, + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -9679,7 +9767,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 384, + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -9783,7 +9871,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 385, + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -9881,7 +9969,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 380, + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -9944,7 +10032,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 383, + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -10009,7 +10097,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 386, + "weight": 387, "cookies": false, "type": "location", "deprecated": false, @@ -10100,7 +10188,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 388, + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -10172,7 +10260,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -10249,7 +10337,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -10366,7 +10454,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -10433,7 +10521,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 392, + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -10505,7 +10593,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 397, + "weight": 398, "cookies": false, "type": "", "deprecated": false, @@ -10565,7 +10653,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 395, + "weight": 396, "cookies": false, "type": "", "deprecated": false, @@ -10657,7 +10745,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 396, + "weight": 397, "cookies": false, "type": "", "deprecated": false, @@ -10727,7 +10815,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 398, + "weight": 399, "cookies": false, "type": "", "deprecated": false, @@ -10819,7 +10907,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 399, + "weight": 400, "cookies": false, "type": "", "deprecated": false, @@ -10891,7 +10979,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -10945,7 +11033,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -10999,7 +11087,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 129, + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -11049,7 +11137,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 150, + "weight": 151, "cookies": false, "type": "", "deprecated": false, @@ -11099,7 +11187,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 132, + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -11149,7 +11237,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 137, + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -11210,7 +11298,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 131, + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -11260,7 +11348,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 133, + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -11310,7 +11398,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 139, + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -11373,7 +11461,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 138, + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -11436,7 +11524,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 140, + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -11510,7 +11598,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 141, + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -11573,7 +11661,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 151, + "weight": 152, "cookies": false, "type": "", "deprecated": false, @@ -11662,7 +11750,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 145, + "weight": 146, "cookies": false, "type": "", "deprecated": false, @@ -11725,7 +11813,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 136, + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -11788,7 +11876,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 142, + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -11851,7 +11939,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 143, + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -11914,7 +12002,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 144, + "weight": 145, "cookies": false, "type": "", "deprecated": false, @@ -11977,7 +12065,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 146, + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -12040,7 +12128,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 147, + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -12103,7 +12191,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 135, + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -12166,7 +12254,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 149, + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -12216,7 +12304,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 148, + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -12266,7 +12354,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 134, + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -12316,7 +12404,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -12370,7 +12458,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -12424,7 +12512,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -12478,7 +12566,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -12532,7 +12620,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -12586,7 +12674,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -12640,7 +12728,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -12694,7 +12782,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -12748,7 +12836,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 359, + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -12825,7 +12913,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 356, + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -12970,7 +13058,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -13117,7 +13205,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 358, + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -13292,7 +13380,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -13471,7 +13559,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 357, + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -13581,7 +13669,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -13694,7 +13782,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -13748,7 +13836,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -13811,7 +13899,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 360, + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -13887,7 +13975,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -13963,7 +14051,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 331, + "weight": 332, "cookies": false, "type": "", "deprecated": false, @@ -14040,7 +14128,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 330, + "weight": 331, "cookies": false, "type": "", "deprecated": false, @@ -14146,7 +14234,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 343, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -14255,7 +14343,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 329, + "weight": 330, "cookies": false, "type": "", "deprecated": false, @@ -14341,7 +14429,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 342, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -14430,7 +14518,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 321, + "weight": 322, "cookies": false, "type": "", "deprecated": false, @@ -14546,7 +14634,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 334, + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -14665,7 +14753,7 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 324, + "weight": 325, "cookies": false, "type": "", "deprecated": false, @@ -14761,7 +14849,7 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 337, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -14860,7 +14948,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 322, + "weight": 323, "cookies": false, "type": "", "deprecated": false, @@ -14966,7 +15054,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 335, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -15075,7 +15163,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 323, + "weight": 324, "cookies": false, "type": "", "deprecated": false, @@ -15219,7 +15307,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 336, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -15365,7 +15453,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 325, + "weight": 326, "cookies": false, "type": "", "deprecated": false, @@ -15461,7 +15549,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 338, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -15560,7 +15648,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 326, + "weight": 327, "cookies": false, "type": "", "deprecated": false, @@ -15656,7 +15744,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 339, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -15755,7 +15843,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 327, + "weight": 328, "cookies": false, "type": "", "deprecated": false, @@ -15851,7 +15939,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 340, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -15950,7 +16038,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 328, + "weight": 329, "cookies": false, "type": "", "deprecated": false, @@ -16046,7 +16134,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 341, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -16145,7 +16233,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 333, + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -16199,7 +16287,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 344, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -16262,7 +16350,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 332, + "weight": 333, "cookies": false, "type": "", "deprecated": false, @@ -16338,7 +16426,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 353, + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -16414,7 +16502,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 346, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -16489,7 +16577,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 345, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -16573,7 +16661,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 348, + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -16634,7 +16722,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 349, + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -16712,7 +16800,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 350, + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -16775,7 +16863,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 347, + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -16851,7 +16939,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 352, + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -16936,7 +17024,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -17028,7 +17116,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 354, + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -17092,7 +17180,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -17169,7 +17257,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 404, + "weight": 405, "cookies": false, "type": "", "deprecated": false, @@ -17240,7 +17328,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 402, + "weight": 403, "cookies": false, "type": "", "deprecated": false, @@ -17488,7 +17576,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 407, + "weight": 408, "cookies": false, "type": "", "deprecated": false, @@ -17538,7 +17626,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 430, + "weight": 431, "cookies": false, "type": "", "deprecated": false, @@ -17589,7 +17677,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 403, + "weight": 404, "cookies": false, "type": "", "deprecated": false, @@ -17649,7 +17737,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 405, + "weight": 406, "cookies": false, "type": "", "deprecated": false, @@ -17893,7 +17981,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 406, + "weight": 407, "cookies": false, "type": "", "deprecated": false, @@ -17955,7 +18043,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 413, + "weight": 414, "cookies": false, "type": "", "deprecated": false, @@ -18036,7 +18124,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 412, + "weight": 413, "cookies": false, "type": "", "deprecated": false, @@ -18120,7 +18208,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 408, + "weight": 409, "cookies": false, "type": "upload", "deprecated": false, @@ -18222,7 +18310,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 416, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -18303,7 +18391,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 409, + "weight": 410, "cookies": false, "type": "", "deprecated": false, @@ -18407,7 +18495,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 410, + "weight": 411, "cookies": false, "type": "", "deprecated": false, @@ -18506,7 +18594,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 411, + "weight": 412, "cookies": false, "type": "", "deprecated": false, @@ -18569,7 +18657,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 414, + "weight": 415, "cookies": false, "type": "", "deprecated": false, @@ -18634,7 +18722,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 415, + "weight": 416, "cookies": false, "type": "location", "deprecated": false, @@ -18725,7 +18813,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 417, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -18797,7 +18885,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 419, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -18869,7 +18957,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 418, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -18932,7 +19020,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 420, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -19004,7 +19092,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 423, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -19064,7 +19152,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 421, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -19156,7 +19244,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 422, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -19226,7 +19314,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 424, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -19318,7 +19406,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 425, + "weight": 426, "cookies": false, "type": "", "deprecated": false, @@ -19390,7 +19478,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 206, + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -19464,7 +19552,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 205, + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -19592,7 +19680,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 207, + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -19652,7 +19740,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 208, + "weight": 209, "cookies": false, "type": "", "deprecated": false, @@ -19777,7 +19865,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 209, + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -19839,7 +19927,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -19927,7 +20015,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -20027,7 +20115,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -20101,7 +20189,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -20192,7 +20280,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -20261,7 +20349,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -20341,7 +20429,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -20570,7 +20658,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -20657,7 +20745,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -20735,7 +20823,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -20822,7 +20910,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -20886,7 +20974,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -20962,7 +21050,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -21028,7 +21116,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -21116,7 +21204,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -21229,7 +21317,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -21303,7 +21391,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -21392,7 +21480,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -21468,7 +21556,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -21567,7 +21655,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -21629,7 +21717,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -21712,7 +21800,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 438, + "weight": 439, "cookies": false, "type": "", "deprecated": false, @@ -21777,7 +21865,7 @@ "tags": [ "tokens" ], - "description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "description": "Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "responses": { "201": { "description": "ResourceToken", @@ -21793,12 +21881,12 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 436, + "weight": 437, "cookies": false, "type": "", "deprecated": false, "demo": "tokens\/create-file-token.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -21883,7 +21971,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 437, + "weight": 438, "cookies": false, "type": "", "deprecated": false, @@ -21944,7 +22032,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 439, + "weight": 440, "cookies": false, "type": "", "deprecated": false, @@ -22015,7 +22103,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 440, + "weight": 441, "cookies": false, "type": "", "deprecated": false, @@ -22078,7 +22166,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 244, + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -22152,7 +22240,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 235, + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -22241,7 +22329,7 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 238, + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -22327,7 +22415,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 236, + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -22413,7 +22501,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 252, + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -22482,7 +22570,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 275, + "weight": 276, "cookies": false, "type": "", "deprecated": false, @@ -22544,7 +22632,7 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 237, + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -22630,7 +22718,7 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 240, + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -22716,7 +22804,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 241, + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -22832,7 +22920,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 242, + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -22936,7 +23024,7 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 239, + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -23042,7 +23130,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 245, + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -23095,7 +23183,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 273, + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -23157,7 +23245,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 258, + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -23238,7 +23326,7 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 276, + "weight": 277, "cookies": false, "type": "", "deprecated": false, @@ -23321,7 +23409,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 254, + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -23405,7 +23493,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 250, + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -23480,7 +23568,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 249, + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -23566,7 +23654,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 263, + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -23640,7 +23728,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 268, + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -23717,7 +23805,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 264, + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -23779,7 +23867,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 265, + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -23839,7 +23927,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 267, + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -23899,7 +23987,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 266, + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -23961,7 +24049,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 256, + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -24042,7 +24130,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 257, + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -24123,7 +24211,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 259, + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -24204,7 +24292,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 246, + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -24264,7 +24352,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 261, + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -24345,7 +24433,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 248, + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -24405,7 +24493,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 269, + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -24458,7 +24546,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 272, + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -24513,7 +24601,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 271, + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -24585,7 +24673,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 253, + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -24666,7 +24754,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 251, + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -24740,7 +24828,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 243, + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -24851,7 +24939,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 247, + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -24922,7 +25010,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 262, + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -25012,7 +25100,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 274, + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -25085,7 +25173,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 270, + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -25168,7 +25256,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 260, + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -25249,7 +25337,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 255, + "weight": 256, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 92e64c7ba0..abeab8a56f 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -4660,6 +4660,115 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/document" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Session": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + } + } + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -4781,7 +4890,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -4865,7 +4974,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -4940,7 +5049,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -5055,7 +5164,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -5129,7 +5238,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -5181,7 +5290,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -5233,7 +5342,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -5285,7 +5394,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -5337,7 +5446,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -5389,7 +5498,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -5441,7 +5550,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -5493,7 +5602,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -5545,7 +5654,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -5597,7 +5706,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -5649,7 +5758,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -5732,7 +5841,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -5807,7 +5916,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -5893,7 +6002,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -5991,7 +6100,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -6063,7 +6172,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -6152,7 +6261,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -6219,7 +6328,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -6297,7 +6406,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -6524,7 +6633,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -6609,7 +6718,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -6685,7 +6794,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -6770,7 +6879,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -6832,7 +6941,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -6906,7 +7015,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -6970,7 +7079,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -7056,7 +7165,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -7167,7 +7276,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -7239,7 +7348,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -7326,7 +7435,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -7400,7 +7509,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -7498,7 +7607,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -7559,7 +7668,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -9752,6 +9861,12 @@ "name": "X-Appwrite-Session", "description": "The user session to authenticate with", "in": "header" + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-Dev-Key", + "description": "Your secret dev API key", + "in": "header" } } }, diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 31d5016e85..19ce78915c 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -4359,7 +4359,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 307, + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -4419,7 +4419,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 431, + "weight": 432, "cookies": false, "type": "", "deprecated": false, @@ -4494,7 +4494,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 306, + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -4694,7 +4694,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 118, + "weight": 119, "cookies": false, "type": "", "deprecated": false, @@ -8049,29 +8049,6 @@ } ], "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." - }, - { - "name": "createDocuments", - "auth": { - "Key": [] - }, - "parameters": [ - "databaseId", - "collectionId", - "documents" - ], - "required": [ - "databaseId", - "collectionId", - "documents" - ], - "responses": [ - { - "code": 201, - "model": "#\/components\/schemas\/documentList" - } - ], - "description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } ], "auth": { @@ -8167,7 +8144,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 115, + "weight": 116, "cookies": false, "type": "", "deprecated": false, @@ -8255,7 +8232,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 114, + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -8348,7 +8325,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 117, + "weight": 118, "cookies": false, "type": "", "deprecated": false, @@ -8511,6 +8488,115 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/document" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + } + } + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -8632,7 +8718,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -9253,7 +9339,7 @@ "x-appwrite": { "method": "getCollectionUsage", "group": null, - "weight": 120, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -9418,7 +9504,7 @@ "x-appwrite": { "method": "getDatabaseUsage", "group": null, - "weight": 119, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -9500,7 +9586,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 375, + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -9573,7 +9659,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 372, + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -9804,7 +9890,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 377, + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -9853,7 +9939,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 378, + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -9903,7 +9989,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 401, + "weight": 402, "cookies": false, "type": "", "deprecated": false, @@ -10003,7 +10089,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 400, + "weight": 401, "cookies": false, "type": "", "deprecated": false, @@ -10063,7 +10149,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 394, + "weight": 395, "cookies": false, "type": "", "deprecated": false, @@ -10135,7 +10221,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 373, + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -10194,7 +10280,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 374, + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -10422,7 +10508,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 376, + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -10483,7 +10569,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 381, + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -10563,7 +10649,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 382, + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -10646,7 +10732,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 379, + "weight": 380, "cookies": false, "type": "upload", "deprecated": false, @@ -10742,7 +10828,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 387, + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -10827,7 +10913,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 384, + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -10930,7 +11016,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 385, + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -11027,7 +11113,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 380, + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -11089,7 +11175,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 383, + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -11153,7 +11239,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 386, + "weight": 387, "cookies": false, "type": "location", "deprecated": false, @@ -11243,7 +11329,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 388, + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -11314,7 +11400,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -11389,7 +11475,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -11504,7 +11590,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -11569,7 +11655,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 392, + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -11640,7 +11726,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 393, + "weight": 394, "cookies": false, "type": "", "deprecated": false, @@ -11722,7 +11808,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 397, + "weight": 398, "cookies": false, "type": "", "deprecated": false, @@ -11781,7 +11867,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 395, + "weight": 396, "cookies": false, "type": "", "deprecated": false, @@ -11872,7 +11958,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 396, + "weight": 397, "cookies": false, "type": "", "deprecated": false, @@ -11941,7 +12027,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 398, + "weight": 399, "cookies": false, "type": "", "deprecated": false, @@ -12032,7 +12118,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 399, + "weight": 400, "cookies": false, "type": "", "deprecated": false, @@ -12103,7 +12189,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -12155,7 +12241,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -12207,7 +12293,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 129, + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -12256,7 +12342,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 150, + "weight": 151, "cookies": false, "type": "", "deprecated": false, @@ -12305,7 +12391,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 132, + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -12354,7 +12440,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 137, + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -12414,7 +12500,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 131, + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -12463,7 +12549,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 133, + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -12512,7 +12598,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 139, + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -12574,7 +12660,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 138, + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -12636,7 +12722,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 140, + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -12709,7 +12795,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 141, + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -12771,7 +12857,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 151, + "weight": 152, "cookies": false, "type": "", "deprecated": false, @@ -12859,7 +12945,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 145, + "weight": 146, "cookies": false, "type": "", "deprecated": false, @@ -12921,7 +13007,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 136, + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -12983,7 +13069,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 142, + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -13045,7 +13131,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 143, + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -13107,7 +13193,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 144, + "weight": 145, "cookies": false, "type": "", "deprecated": false, @@ -13169,7 +13255,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 146, + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -13231,7 +13317,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 147, + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -13293,7 +13379,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 135, + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -13355,7 +13441,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 149, + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -13404,7 +13490,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 148, + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -13453,7 +13539,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 134, + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -13502,7 +13588,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -13554,7 +13640,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -13606,7 +13692,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -13658,7 +13744,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -13710,7 +13796,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -13762,7 +13848,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -13814,7 +13900,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -13866,7 +13952,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -13918,7 +14004,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 359, + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -13994,7 +14080,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 356, + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -14138,7 +14224,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -14284,7 +14370,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 358, + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -14458,7 +14544,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -14636,7 +14722,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 357, + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -14745,7 +14831,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -14857,7 +14943,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -14910,7 +14996,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -14972,7 +15058,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 360, + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -15047,7 +15133,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -15122,7 +15208,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 331, + "weight": 332, "cookies": false, "type": "", "deprecated": false, @@ -15198,7 +15284,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 330, + "weight": 331, "cookies": false, "type": "", "deprecated": false, @@ -15303,7 +15389,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 343, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -15411,7 +15497,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 329, + "weight": 330, "cookies": false, "type": "", "deprecated": false, @@ -15496,7 +15582,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 342, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -15584,7 +15670,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 321, + "weight": 322, "cookies": false, "type": "", "deprecated": false, @@ -15699,7 +15785,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 334, + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -15817,7 +15903,7 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 324, + "weight": 325, "cookies": false, "type": "", "deprecated": false, @@ -15912,7 +15998,7 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 337, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -16010,7 +16096,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 322, + "weight": 323, "cookies": false, "type": "", "deprecated": false, @@ -16115,7 +16201,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 335, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -16223,7 +16309,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 323, + "weight": 324, "cookies": false, "type": "", "deprecated": false, @@ -16366,7 +16452,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 336, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -16511,7 +16597,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 325, + "weight": 326, "cookies": false, "type": "", "deprecated": false, @@ -16606,7 +16692,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 338, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -16704,7 +16790,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 326, + "weight": 327, "cookies": false, "type": "", "deprecated": false, @@ -16799,7 +16885,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 339, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -16897,7 +16983,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 327, + "weight": 328, "cookies": false, "type": "", "deprecated": false, @@ -16992,7 +17078,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 340, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -17090,7 +17176,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 328, + "weight": 329, "cookies": false, "type": "", "deprecated": false, @@ -17185,7 +17271,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 341, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -17283,7 +17369,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 333, + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -17336,7 +17422,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 344, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -17398,7 +17484,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 332, + "weight": 333, "cookies": false, "type": "", "deprecated": false, @@ -17473,7 +17559,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 353, + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -17548,7 +17634,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 346, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -17622,7 +17708,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 345, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -17705,7 +17791,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 348, + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -17765,7 +17851,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 349, + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -17842,7 +17928,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 350, + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -17904,7 +17990,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 347, + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -17979,7 +18065,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 352, + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -18063,7 +18149,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -18153,7 +18239,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 354, + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -18216,7 +18302,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -18291,7 +18377,7 @@ "x-appwrite": { "method": "list", "group": null, - "weight": 313, + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -18365,7 +18451,7 @@ "x-appwrite": { "method": "createAppwriteMigration", "group": null, - "weight": 308, + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -18453,7 +18539,7 @@ "x-appwrite": { "method": "getAppwriteReport", "group": null, - "weight": 315, + "weight": 316, "cookies": false, "type": "", "deprecated": false, @@ -18546,7 +18632,7 @@ "x-appwrite": { "method": "createCsvMigration", "group": null, - "weight": 312, + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -18625,7 +18711,7 @@ "x-appwrite": { "method": "createFirebaseMigration", "group": null, - "weight": 309, + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -18701,7 +18787,7 @@ "x-appwrite": { "method": "getFirebaseReport", "group": null, - "weight": 316, + "weight": 317, "cookies": false, "type": "", "deprecated": false, @@ -18773,7 +18859,7 @@ "x-appwrite": { "method": "createNHostMigration", "group": null, - "weight": 311, + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -18884,7 +18970,7 @@ "x-appwrite": { "method": "getNHostReport", "group": null, - "weight": 318, + "weight": 319, "cookies": false, "type": "", "deprecated": false, @@ -19017,7 +19103,7 @@ "x-appwrite": { "method": "createSupabaseMigration", "group": null, - "weight": 310, + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -19122,7 +19208,7 @@ "x-appwrite": { "method": "getSupabaseReport", "group": null, - "weight": 317, + "weight": 318, "cookies": false, "type": "", "deprecated": false, @@ -19246,7 +19332,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 314, + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -19304,7 +19390,7 @@ "x-appwrite": { "method": "retry", "group": null, - "weight": 319, + "weight": 320, "cookies": false, "type": "", "deprecated": false, @@ -19355,7 +19441,7 @@ "x-appwrite": { "method": "delete", "group": null, - "weight": 320, + "weight": 321, "cookies": false, "type": "", "deprecated": false, @@ -19415,7 +19501,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 199, + "weight": 200, "cookies": false, "type": "", "deprecated": false, @@ -19503,7 +19589,7 @@ "x-appwrite": { "method": "listVariables", "group": null, - "weight": 201, + "weight": 202, "cookies": false, "type": "", "deprecated": false, @@ -19549,7 +19635,7 @@ "x-appwrite": { "method": "createVariable", "group": null, - "weight": 200, + "weight": 201, "cookies": false, "type": "", "deprecated": false, @@ -19627,7 +19713,7 @@ "x-appwrite": { "method": "getVariable", "group": null, - "weight": 202, + "weight": 203, "cookies": false, "type": "", "deprecated": false, @@ -19685,7 +19771,7 @@ "x-appwrite": { "method": "updateVariable", "group": null, - "weight": 203, + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -19765,7 +19851,7 @@ "x-appwrite": { "method": "deleteVariable", "group": null, - "weight": 204, + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -19825,7 +19911,7 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 154, + "weight": 155, "cookies": false, "type": "", "deprecated": false, @@ -19897,7 +19983,7 @@ "x-appwrite": { "method": "create", "group": "projects", - "weight": 153, + "weight": 154, "cookies": false, "type": "", "deprecated": false, @@ -20031,7 +20117,7 @@ "x-appwrite": { "method": "get", "group": "projects", - "weight": 155, + "weight": 156, "cookies": false, "type": "", "deprecated": false, @@ -20089,7 +20175,7 @@ "x-appwrite": { "method": "update", "group": "projects", - "weight": 156, + "weight": 157, "cookies": false, "type": "", "deprecated": false, @@ -20204,7 +20290,7 @@ "x-appwrite": { "method": "delete", "group": "projects", - "weight": 173, + "weight": 174, "cookies": false, "type": "", "deprecated": false, @@ -20264,7 +20350,7 @@ "x-appwrite": { "method": "updateApiStatus", "group": "projects", - "weight": 160, + "weight": 161, "cookies": false, "type": "", "deprecated": false, @@ -20356,7 +20442,7 @@ "x-appwrite": { "method": "updateApiStatusAll", "group": "projects", - "weight": 161, + "weight": 162, "cookies": false, "type": "", "deprecated": false, @@ -20435,7 +20521,7 @@ "x-appwrite": { "method": "updateAuthDuration", "group": "auth", - "weight": 166, + "weight": 167, "cookies": false, "type": "", "deprecated": false, @@ -20514,7 +20600,7 @@ "x-appwrite": { "method": "updateAuthLimit", "group": "auth", - "weight": 165, + "weight": 166, "cookies": false, "type": "", "deprecated": false, @@ -20593,7 +20679,7 @@ "x-appwrite": { "method": "updateAuthSessionsLimit", "group": "auth", - "weight": 171, + "weight": 172, "cookies": false, "type": "", "deprecated": false, @@ -20672,7 +20758,7 @@ "x-appwrite": { "method": "updateMembershipsPrivacy", "group": "auth", - "weight": 164, + "weight": 165, "cookies": false, "type": "", "deprecated": false, @@ -20763,7 +20849,7 @@ "x-appwrite": { "method": "updateMockNumbers", "group": "auth", - "weight": 172, + "weight": 173, "cookies": false, "type": "", "deprecated": false, @@ -20845,7 +20931,7 @@ "x-appwrite": { "method": "updateAuthPasswordDictionary", "group": "auth", - "weight": 169, + "weight": 170, "cookies": false, "type": "", "deprecated": false, @@ -20924,7 +21010,7 @@ "x-appwrite": { "method": "updateAuthPasswordHistory", "group": "auth", - "weight": 168, + "weight": 169, "cookies": false, "type": "", "deprecated": false, @@ -21003,7 +21089,7 @@ "x-appwrite": { "method": "updatePersonalDataCheck", "group": "auth", - "weight": 170, + "weight": 171, "cookies": false, "type": "", "deprecated": false, @@ -21082,7 +21168,7 @@ "x-appwrite": { "method": "updateSessionAlerts", "group": "auth", - "weight": 163, + "weight": 164, "cookies": false, "type": "", "deprecated": false, @@ -21161,7 +21247,7 @@ "x-appwrite": { "method": "updateAuthStatus", "group": "auth", - "weight": 167, + "weight": 168, "cookies": false, "type": "", "deprecated": false, @@ -21261,7 +21347,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -21329,7 +21415,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -21414,7 +21500,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -21482,7 +21568,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -21568,7 +21654,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 371, + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -21638,7 +21724,7 @@ "x-appwrite": { "method": "createJWT", "group": "auth", - "weight": 185, + "weight": 186, "cookies": false, "type": "", "deprecated": false, @@ -21725,7 +21811,7 @@ "x-appwrite": { "method": "listKeys", "group": "keys", - "weight": 181, + "weight": 182, "cookies": false, "type": "", "deprecated": false, @@ -21783,7 +21869,7 @@ "x-appwrite": { "method": "createKey", "group": "keys", - "weight": 180, + "weight": 181, "cookies": false, "type": "", "deprecated": false, @@ -21876,7 +21962,7 @@ "x-appwrite": { "method": "getKey", "group": "keys", - "weight": 182, + "weight": 183, "cookies": false, "type": "", "deprecated": false, @@ -21944,7 +22030,7 @@ "x-appwrite": { "method": "updateKey", "group": "keys", - "weight": 183, + "weight": 184, "cookies": false, "type": "", "deprecated": false, @@ -22038,7 +22124,7 @@ "x-appwrite": { "method": "deleteKey", "group": "keys", - "weight": 184, + "weight": 185, "cookies": false, "type": "", "deprecated": false, @@ -22108,7 +22194,7 @@ "x-appwrite": { "method": "updateOAuth2", "group": "auth", - "weight": 162, + "weight": 163, "cookies": false, "type": "", "deprecated": false, @@ -22246,7 +22332,7 @@ "x-appwrite": { "method": "listPlatforms", "group": "platforms", - "weight": 187, + "weight": 188, "cookies": false, "type": "", "deprecated": false, @@ -22304,7 +22390,7 @@ "x-appwrite": { "method": "createPlatform", "group": "platforms", - "weight": 186, + "weight": 187, "cookies": false, "type": "", "deprecated": false, @@ -22423,7 +22509,7 @@ "x-appwrite": { "method": "getPlatform", "group": "platforms", - "weight": 188, + "weight": 189, "cookies": false, "type": "", "deprecated": false, @@ -22491,7 +22577,7 @@ "x-appwrite": { "method": "updatePlatform", "group": "platforms", - "weight": 189, + "weight": 190, "cookies": false, "type": "", "deprecated": false, @@ -22586,7 +22672,7 @@ "x-appwrite": { "method": "deletePlatform", "group": "platforms", - "weight": 190, + "weight": 191, "cookies": false, "type": "", "deprecated": false, @@ -22656,7 +22742,7 @@ "x-appwrite": { "method": "updateServiceStatus", "group": "projects", - "weight": 158, + "weight": 159, "cookies": false, "type": "", "deprecated": false, @@ -22757,7 +22843,7 @@ "x-appwrite": { "method": "updateServiceStatusAll", "group": "projects", - "weight": 159, + "weight": 160, "cookies": false, "type": "", "deprecated": false, @@ -22836,7 +22922,7 @@ "x-appwrite": { "method": "updateSmtp", "group": "templates", - "weight": 191, + "weight": 192, "cookies": false, "type": "", "deprecated": false, @@ -22954,7 +23040,7 @@ "x-appwrite": { "method": "createSmtpTest", "group": "templates", - "weight": 192, + "weight": 193, "cookies": false, "type": "", "deprecated": false, @@ -23085,7 +23171,7 @@ "x-appwrite": { "method": "updateTeam", "group": "projects", - "weight": 157, + "weight": 158, "cookies": false, "type": "", "deprecated": false, @@ -23164,7 +23250,7 @@ "x-appwrite": { "method": "getEmailTemplate", "group": "templates", - "weight": 194, + "weight": 195, "cookies": false, "type": "", "deprecated": false, @@ -23388,7 +23474,7 @@ "x-appwrite": { "method": "updateEmailTemplate", "group": "templates", - "weight": 196, + "weight": 197, "cookies": false, "type": "", "deprecated": false, @@ -23652,7 +23738,7 @@ "x-appwrite": { "method": "deleteEmailTemplate", "group": "templates", - "weight": 198, + "weight": 199, "cookies": false, "type": "", "deprecated": false, @@ -23878,7 +23964,7 @@ "x-appwrite": { "method": "getSmsTemplate", "group": "templates", - "weight": 193, + "weight": 194, "cookies": false, "type": "", "deprecated": false, @@ -24099,7 +24185,7 @@ "x-appwrite": { "method": "updateSmsTemplate", "group": "templates", - "weight": 195, + "weight": 196, "cookies": false, "type": "", "deprecated": false, @@ -24339,7 +24425,7 @@ "x-appwrite": { "method": "deleteSmsTemplate", "group": "templates", - "weight": 197, + "weight": 198, "cookies": false, "type": "", "deprecated": false, @@ -24562,7 +24648,7 @@ "x-appwrite": { "method": "listWebhooks", "group": "webhooks", - "weight": 175, + "weight": 176, "cookies": false, "type": "", "deprecated": false, @@ -24620,7 +24706,7 @@ "x-appwrite": { "method": "createWebhook", "group": "webhooks", - "weight": 174, + "weight": 175, "cookies": false, "type": "", "deprecated": false, @@ -24735,7 +24821,7 @@ "x-appwrite": { "method": "getWebhook", "group": "webhooks", - "weight": 176, + "weight": 177, "cookies": false, "type": "", "deprecated": false, @@ -24803,7 +24889,7 @@ "x-appwrite": { "method": "updateWebhook", "group": "webhooks", - "weight": 177, + "weight": 178, "cookies": false, "type": "", "deprecated": false, @@ -24919,7 +25005,7 @@ "x-appwrite": { "method": "deleteWebhook", "group": "webhooks", - "weight": 179, + "weight": 180, "cookies": false, "type": "", "deprecated": false, @@ -24989,7 +25075,7 @@ "x-appwrite": { "method": "updateWebhookSignature", "group": "webhooks", - "weight": 178, + "weight": 179, "cookies": false, "type": "", "deprecated": false, @@ -25059,7 +25145,7 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 291, + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -25133,7 +25219,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 432, + "weight": 433, "cookies": false, "type": "", "deprecated": false, @@ -25200,7 +25286,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 434, + "weight": 435, "cookies": false, "type": "", "deprecated": false, @@ -25278,7 +25364,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 435, + "weight": 436, "cookies": false, "type": "", "deprecated": false, @@ -25370,7 +25456,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 433, + "weight": 434, "cookies": false, "type": "", "deprecated": false, @@ -25448,7 +25534,7 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 292, + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -25499,7 +25585,7 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 293, + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -25559,7 +25645,7 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 294, + "weight": 295, "cookies": false, "type": "", "deprecated": false, @@ -25619,7 +25705,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 404, + "weight": 405, "cookies": false, "type": "", "deprecated": false, @@ -25689,7 +25775,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 402, + "weight": 403, "cookies": false, "type": "", "deprecated": false, @@ -25936,7 +26022,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 407, + "weight": 408, "cookies": false, "type": "", "deprecated": false, @@ -25985,7 +26071,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 430, + "weight": 431, "cookies": false, "type": "", "deprecated": false, @@ -26035,7 +26121,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 426, + "weight": 427, "cookies": false, "type": "", "deprecated": false, @@ -26135,7 +26221,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 427, + "weight": 428, "cookies": false, "type": "", "deprecated": false, @@ -26195,7 +26281,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 428, + "weight": 429, "cookies": false, "type": "", "deprecated": false, @@ -26267,7 +26353,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 403, + "weight": 404, "cookies": false, "type": "", "deprecated": false, @@ -26326,7 +26412,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 405, + "weight": 406, "cookies": false, "type": "", "deprecated": false, @@ -26569,7 +26655,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 406, + "weight": 407, "cookies": false, "type": "", "deprecated": false, @@ -26630,7 +26716,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 413, + "weight": 414, "cookies": false, "type": "", "deprecated": false, @@ -26710,7 +26796,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 412, + "weight": 413, "cookies": false, "type": "", "deprecated": false, @@ -26793,7 +26879,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 408, + "weight": 409, "cookies": false, "type": "upload", "deprecated": false, @@ -26894,7 +26980,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 416, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -26974,7 +27060,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 409, + "weight": 410, "cookies": false, "type": "", "deprecated": false, @@ -27077,7 +27163,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 410, + "weight": 411, "cookies": false, "type": "", "deprecated": false, @@ -27175,7 +27261,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 411, + "weight": 412, "cookies": false, "type": "", "deprecated": false, @@ -27237,7 +27323,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 414, + "weight": 415, "cookies": false, "type": "", "deprecated": false, @@ -27301,7 +27387,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 415, + "weight": 416, "cookies": false, "type": "location", "deprecated": false, @@ -27391,7 +27477,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 417, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -27462,7 +27548,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 419, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -27533,7 +27619,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 418, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -27595,7 +27681,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 420, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -27666,7 +27752,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 429, + "weight": 430, "cookies": false, "type": "", "deprecated": false, @@ -27748,7 +27834,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 423, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -27807,7 +27893,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 421, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -27898,7 +27984,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 422, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -27967,7 +28053,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 424, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -28058,7 +28144,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 425, + "weight": 426, "cookies": false, "type": "", "deprecated": false, @@ -28129,7 +28215,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 206, + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -28202,7 +28288,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 205, + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -28329,7 +28415,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 207, + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -28388,7 +28474,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 208, + "weight": 209, "cookies": false, "type": "", "deprecated": false, @@ -28512,7 +28598,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 209, + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -28573,7 +28659,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -28659,7 +28745,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -28757,7 +28843,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -28829,7 +28915,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -28918,7 +29004,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -28985,7 +29071,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -29063,7 +29149,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -29290,7 +29376,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -29375,7 +29461,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 219, + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -29447,7 +29533,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 220, + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -29529,7 +29615,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -29605,7 +29691,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -29690,7 +29776,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -29752,7 +29838,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -29826,7 +29912,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -29890,7 +29976,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 234, + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -29963,7 +30049,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -30049,7 +30135,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -30160,7 +30246,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -30232,7 +30318,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -30319,7 +30405,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -30393,7 +30479,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -30490,7 +30576,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -30550,7 +30636,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -30631,7 +30717,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 438, + "weight": 439, "cookies": false, "type": "", "deprecated": false, @@ -30695,7 +30781,7 @@ "tags": [ "tokens" ], - "description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "description": "Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "responses": { "201": { "description": "ResourceToken", @@ -30711,12 +30797,12 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 436, + "weight": 437, "cookies": false, "type": "", "deprecated": false, "demo": "tokens\/create-file-token.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -30800,7 +30886,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 437, + "weight": 438, "cookies": false, "type": "", "deprecated": false, @@ -30860,7 +30946,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 439, + "weight": 440, "cookies": false, "type": "", "deprecated": false, @@ -30930,7 +31016,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 440, + "weight": 441, "cookies": false, "type": "", "deprecated": false, @@ -30992,7 +31078,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 244, + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -31065,7 +31151,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 235, + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -31153,7 +31239,7 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 238, + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -31238,7 +31324,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 236, + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -31323,7 +31409,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 252, + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -31391,7 +31477,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 275, + "weight": 276, "cookies": false, "type": "", "deprecated": false, @@ -31452,7 +31538,7 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 237, + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -31537,7 +31623,7 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 240, + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -31622,7 +31708,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 241, + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -31737,7 +31823,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 242, + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -31840,7 +31926,7 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 239, + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -31945,7 +32031,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 277, + "weight": 278, "cookies": false, "type": "", "deprecated": false, @@ -32017,7 +32103,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 245, + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -32069,7 +32155,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 273, + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -32130,7 +32216,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 258, + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -32210,7 +32296,7 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 276, + "weight": 277, "cookies": false, "type": "", "deprecated": false, @@ -32292,7 +32378,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 254, + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -32375,7 +32461,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 250, + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -32449,7 +32535,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 249, + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -32534,7 +32620,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 263, + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -32607,7 +32693,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 268, + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -32683,7 +32769,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 264, + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -32744,7 +32830,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 265, + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -32803,7 +32889,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 267, + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -32862,7 +32948,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 266, + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -32923,7 +33009,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 256, + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -33003,7 +33089,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 257, + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -33083,7 +33169,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 259, + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -33163,7 +33249,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 246, + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -33222,7 +33308,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 261, + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -33302,7 +33388,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 248, + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -33361,7 +33447,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 269, + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -33413,7 +33499,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 272, + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -33467,7 +33553,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 271, + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -33538,7 +33624,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 253, + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -33618,7 +33704,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 251, + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -33691,7 +33777,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 243, + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -33801,7 +33887,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 247, + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -33871,7 +33957,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 262, + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -33960,7 +34046,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 274, + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -34032,7 +34118,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 270, + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -34114,7 +34200,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 260, + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -34194,7 +34280,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 255, + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -34274,7 +34360,7 @@ "x-appwrite": { "method": "createRepositoryDetection", "group": "repositories", - "weight": 281, + "weight": 282, "cookies": false, "type": "", "deprecated": false, @@ -34370,7 +34456,7 @@ "x-appwrite": { "method": "listRepositories", "group": "repositories", - "weight": 282, + "weight": 283, "cookies": false, "type": "", "deprecated": false, @@ -34455,7 +34541,7 @@ "x-appwrite": { "method": "createRepository", "group": "repositories", - "weight": 283, + "weight": 284, "cookies": false, "type": "", "deprecated": false, @@ -34540,7 +34626,7 @@ "x-appwrite": { "method": "getRepository", "group": "repositories", - "weight": 284, + "weight": 285, "cookies": false, "type": "", "deprecated": false, @@ -34610,7 +34696,7 @@ "x-appwrite": { "method": "listRepositoryBranches", "group": "repositories", - "weight": 285, + "weight": 286, "cookies": false, "type": "", "deprecated": false, @@ -34680,7 +34766,7 @@ "x-appwrite": { "method": "getRepositoryContents", "group": "repositories", - "weight": 280, + "weight": 281, "cookies": false, "type": "", "deprecated": false, @@ -34754,7 +34840,7 @@ "x-appwrite": { "method": "updateExternalDeployments", "group": "repositories", - "weight": 290, + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -34843,7 +34929,7 @@ "x-appwrite": { "method": "listInstallations", "group": "installations", - "weight": 287, + "weight": 288, "cookies": false, "type": "", "deprecated": false, @@ -34917,7 +35003,7 @@ "x-appwrite": { "method": "getInstallation", "group": "installations", - "weight": 288, + "weight": 289, "cookies": false, "type": "", "deprecated": false, @@ -34968,7 +35054,7 @@ "x-appwrite": { "method": "deleteInstallation", "group": "installations", - "weight": 289, + "weight": 290, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index ac1c26d5b6..db615d642c 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -7530,29 +7530,6 @@ } ], "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." - }, - { - "name": "createDocuments", - "auth": { - "Key": [] - }, - "parameters": [ - "databaseId", - "collectionId", - "documents" - ], - "required": [ - "databaseId", - "collectionId", - "documents" - ], - "responses": [ - { - "code": 201, - "model": "#\/components\/schemas\/documentList" - } - ], - "description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } ], "auth": { @@ -7650,7 +7627,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 115, + "weight": 116, "cookies": false, "type": "", "deprecated": false, @@ -7739,7 +7716,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 114, + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -7833,7 +7810,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 117, + "weight": 118, "cookies": false, "type": "", "deprecated": false, @@ -7999,6 +7976,117 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/document" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Session": [] + } + }, + "security": [ + { + "Project": [], + "Session": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + } + } + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -8122,7 +8210,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -8573,7 +8661,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 375, + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -8647,7 +8735,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 372, + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -8879,7 +8967,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 377, + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -8929,7 +9017,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 378, + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -8980,7 +9068,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 373, + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -9040,7 +9128,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 374, + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -9269,7 +9357,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 376, + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -9331,7 +9419,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 381, + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -9412,7 +9500,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 382, + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -9496,7 +9584,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 379, + "weight": 380, "cookies": false, "type": "upload", "deprecated": false, @@ -9593,7 +9681,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 387, + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -9679,7 +9767,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 384, + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -9783,7 +9871,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 385, + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -9881,7 +9969,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 380, + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -9944,7 +10032,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 383, + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -10009,7 +10097,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 386, + "weight": 387, "cookies": false, "type": "location", "deprecated": false, @@ -10100,7 +10188,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 388, + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -10172,7 +10260,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -10249,7 +10337,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -10366,7 +10454,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -10433,7 +10521,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 392, + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -10505,7 +10593,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 397, + "weight": 398, "cookies": false, "type": "", "deprecated": false, @@ -10565,7 +10653,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 395, + "weight": 396, "cookies": false, "type": "", "deprecated": false, @@ -10657,7 +10745,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 396, + "weight": 397, "cookies": false, "type": "", "deprecated": false, @@ -10727,7 +10815,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 398, + "weight": 399, "cookies": false, "type": "", "deprecated": false, @@ -10819,7 +10907,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 399, + "weight": 400, "cookies": false, "type": "", "deprecated": false, @@ -10891,7 +10979,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -10945,7 +11033,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -10999,7 +11087,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 129, + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -11049,7 +11137,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 150, + "weight": 151, "cookies": false, "type": "", "deprecated": false, @@ -11099,7 +11187,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 132, + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -11149,7 +11237,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 137, + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -11210,7 +11298,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 131, + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -11260,7 +11348,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 133, + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -11310,7 +11398,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 139, + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -11373,7 +11461,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 138, + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -11436,7 +11524,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 140, + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -11510,7 +11598,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 141, + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -11573,7 +11661,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 151, + "weight": 152, "cookies": false, "type": "", "deprecated": false, @@ -11662,7 +11750,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 145, + "weight": 146, "cookies": false, "type": "", "deprecated": false, @@ -11725,7 +11813,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 136, + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -11788,7 +11876,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 142, + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -11851,7 +11939,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 143, + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -11914,7 +12002,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 144, + "weight": 145, "cookies": false, "type": "", "deprecated": false, @@ -11977,7 +12065,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 146, + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -12040,7 +12128,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 147, + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -12103,7 +12191,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 135, + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -12166,7 +12254,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 149, + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -12216,7 +12304,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 148, + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -12266,7 +12354,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 134, + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -12316,7 +12404,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -12370,7 +12458,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -12424,7 +12512,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -12478,7 +12566,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -12532,7 +12620,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -12586,7 +12674,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -12640,7 +12728,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -12694,7 +12782,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -12748,7 +12836,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 359, + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -12825,7 +12913,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 356, + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -12970,7 +13058,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -13117,7 +13205,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 358, + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -13292,7 +13380,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -13471,7 +13559,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 357, + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -13581,7 +13669,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -13694,7 +13782,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -13748,7 +13836,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -13811,7 +13899,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 360, + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -13887,7 +13975,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -13963,7 +14051,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 331, + "weight": 332, "cookies": false, "type": "", "deprecated": false, @@ -14040,7 +14128,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 330, + "weight": 331, "cookies": false, "type": "", "deprecated": false, @@ -14146,7 +14234,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 343, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -14255,7 +14343,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 329, + "weight": 330, "cookies": false, "type": "", "deprecated": false, @@ -14341,7 +14429,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 342, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -14430,7 +14518,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 321, + "weight": 322, "cookies": false, "type": "", "deprecated": false, @@ -14546,7 +14634,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 334, + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -14665,7 +14753,7 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 324, + "weight": 325, "cookies": false, "type": "", "deprecated": false, @@ -14761,7 +14849,7 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 337, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -14860,7 +14948,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 322, + "weight": 323, "cookies": false, "type": "", "deprecated": false, @@ -14966,7 +15054,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 335, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -15075,7 +15163,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 323, + "weight": 324, "cookies": false, "type": "", "deprecated": false, @@ -15219,7 +15307,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 336, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -15365,7 +15453,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 325, + "weight": 326, "cookies": false, "type": "", "deprecated": false, @@ -15461,7 +15549,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 338, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -15560,7 +15648,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 326, + "weight": 327, "cookies": false, "type": "", "deprecated": false, @@ -15656,7 +15744,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 339, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -15755,7 +15843,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 327, + "weight": 328, "cookies": false, "type": "", "deprecated": false, @@ -15851,7 +15939,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 340, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -15950,7 +16038,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 328, + "weight": 329, "cookies": false, "type": "", "deprecated": false, @@ -16046,7 +16134,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 341, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -16145,7 +16233,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 333, + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -16199,7 +16287,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 344, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -16262,7 +16350,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 332, + "weight": 333, "cookies": false, "type": "", "deprecated": false, @@ -16338,7 +16426,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 353, + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -16414,7 +16502,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 346, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -16489,7 +16577,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 345, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -16573,7 +16661,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 348, + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -16634,7 +16722,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 349, + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -16712,7 +16800,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 350, + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -16775,7 +16863,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 347, + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -16851,7 +16939,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 352, + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -16936,7 +17024,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -17028,7 +17116,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 354, + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -17092,7 +17180,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -17169,7 +17257,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 404, + "weight": 405, "cookies": false, "type": "", "deprecated": false, @@ -17240,7 +17328,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 402, + "weight": 403, "cookies": false, "type": "", "deprecated": false, @@ -17488,7 +17576,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 407, + "weight": 408, "cookies": false, "type": "", "deprecated": false, @@ -17538,7 +17626,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 430, + "weight": 431, "cookies": false, "type": "", "deprecated": false, @@ -17589,7 +17677,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 403, + "weight": 404, "cookies": false, "type": "", "deprecated": false, @@ -17649,7 +17737,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 405, + "weight": 406, "cookies": false, "type": "", "deprecated": false, @@ -17893,7 +17981,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 406, + "weight": 407, "cookies": false, "type": "", "deprecated": false, @@ -17955,7 +18043,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 413, + "weight": 414, "cookies": false, "type": "", "deprecated": false, @@ -18036,7 +18124,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 412, + "weight": 413, "cookies": false, "type": "", "deprecated": false, @@ -18120,7 +18208,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 408, + "weight": 409, "cookies": false, "type": "upload", "deprecated": false, @@ -18222,7 +18310,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 416, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -18303,7 +18391,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 409, + "weight": 410, "cookies": false, "type": "", "deprecated": false, @@ -18407,7 +18495,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 410, + "weight": 411, "cookies": false, "type": "", "deprecated": false, @@ -18506,7 +18594,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 411, + "weight": 412, "cookies": false, "type": "", "deprecated": false, @@ -18569,7 +18657,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 414, + "weight": 415, "cookies": false, "type": "", "deprecated": false, @@ -18634,7 +18722,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 415, + "weight": 416, "cookies": false, "type": "location", "deprecated": false, @@ -18725,7 +18813,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 417, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -18797,7 +18885,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 419, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -18869,7 +18957,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 418, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -18932,7 +19020,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 420, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -19004,7 +19092,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 423, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -19064,7 +19152,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 421, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -19156,7 +19244,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 422, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -19226,7 +19314,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 424, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -19318,7 +19406,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 425, + "weight": 426, "cookies": false, "type": "", "deprecated": false, @@ -19390,7 +19478,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 206, + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -19464,7 +19552,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 205, + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -19592,7 +19680,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 207, + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -19652,7 +19740,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 208, + "weight": 209, "cookies": false, "type": "", "deprecated": false, @@ -19777,7 +19865,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 209, + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -19839,7 +19927,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -19927,7 +20015,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -20027,7 +20115,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -20101,7 +20189,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -20192,7 +20280,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -20261,7 +20349,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -20341,7 +20429,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -20570,7 +20658,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -20657,7 +20745,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -20735,7 +20823,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -20822,7 +20910,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -20886,7 +20974,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -20962,7 +21050,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -21028,7 +21116,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -21116,7 +21204,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -21229,7 +21317,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -21303,7 +21391,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -21392,7 +21480,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -21468,7 +21556,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -21567,7 +21655,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -21629,7 +21717,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -21712,7 +21800,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 438, + "weight": 439, "cookies": false, "type": "", "deprecated": false, @@ -21777,7 +21865,7 @@ "tags": [ "tokens" ], - "description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "description": "Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "responses": { "201": { "description": "ResourceToken", @@ -21793,12 +21881,12 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 436, + "weight": 437, "cookies": false, "type": "", "deprecated": false, "demo": "tokens\/create-file-token.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -21883,7 +21971,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 437, + "weight": 438, "cookies": false, "type": "", "deprecated": false, @@ -21944,7 +22032,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 439, + "weight": 440, "cookies": false, "type": "", "deprecated": false, @@ -22015,7 +22103,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 440, + "weight": 441, "cookies": false, "type": "", "deprecated": false, @@ -22078,7 +22166,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 244, + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -22152,7 +22240,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 235, + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -22241,7 +22329,7 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 238, + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -22327,7 +22415,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 236, + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -22413,7 +22501,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 252, + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -22482,7 +22570,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 275, + "weight": 276, "cookies": false, "type": "", "deprecated": false, @@ -22544,7 +22632,7 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 237, + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -22630,7 +22718,7 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 240, + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -22716,7 +22804,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 241, + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -22832,7 +22920,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 242, + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -22936,7 +23024,7 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 239, + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -23042,7 +23130,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 245, + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -23095,7 +23183,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 273, + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -23157,7 +23245,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 258, + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -23238,7 +23326,7 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 276, + "weight": 277, "cookies": false, "type": "", "deprecated": false, @@ -23321,7 +23409,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 254, + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -23405,7 +23493,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 250, + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -23480,7 +23568,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 249, + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -23566,7 +23654,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 263, + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -23640,7 +23728,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 268, + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -23717,7 +23805,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 264, + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -23779,7 +23867,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 265, + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -23839,7 +23927,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 267, + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -23899,7 +23987,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 266, + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -23961,7 +24049,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 256, + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -24042,7 +24130,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 257, + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -24123,7 +24211,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 259, + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -24204,7 +24292,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 246, + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -24264,7 +24352,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 261, + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -24345,7 +24433,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 248, + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -24405,7 +24493,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 269, + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -24458,7 +24546,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 272, + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -24513,7 +24601,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 271, + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -24585,7 +24673,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 253, + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -24666,7 +24754,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 251, + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -24740,7 +24828,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 243, + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -24851,7 +24939,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 247, + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -24922,7 +25010,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 262, + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -25012,7 +25100,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 274, + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -25085,7 +25173,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 270, + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -25168,7 +25256,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 260, + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -25249,7 +25337,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 255, + "weight": 256, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/swagger2-1.7.x-client.json b/app/config/specs/swagger2-1.7.x-client.json index 9bfe261df1..5c1b764e1e 100644 --- a/app/config/specs/swagger2-1.7.x-client.json +++ b/app/config/specs/swagger2-1.7.x-client.json @@ -61,6 +61,12 @@ "name": "X-Appwrite-Session", "description": "The user session to authenticate with", "in": "header" + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-Dev-Key", + "description": "Your secret dev API key", + "in": "header" } }, "paths": { @@ -4791,6 +4797,111 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "schema": { + "$ref": "#\/definitions\/document" + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Session": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "default": {}, + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "default": null, + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + ] + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -4912,7 +5023,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -4990,7 +5101,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -5064,7 +5175,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -5181,7 +5292,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -5253,7 +5364,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -5327,7 +5438,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -5399,7 +5510,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -5451,7 +5562,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -5503,7 +5614,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -5555,7 +5666,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -5607,7 +5718,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -5659,7 +5770,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -5711,7 +5822,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -5763,7 +5874,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -5817,7 +5928,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -5902,7 +6013,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -5973,7 +6084,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -6056,7 +6167,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -6146,7 +6257,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -6216,7 +6327,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -6305,7 +6416,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -6375,7 +6486,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -6454,7 +6565,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -6660,7 +6771,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -6739,7 +6850,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -6814,7 +6925,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -6904,7 +7015,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -6966,7 +7077,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -7041,7 +7152,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -7103,7 +7214,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -7186,7 +7297,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -7299,7 +7410,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -7369,7 +7480,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -7455,7 +7566,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -7527,7 +7638,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -7621,7 +7732,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -7682,7 +7793,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/swagger2-1.7.x-console.json b/app/config/specs/swagger2-1.7.x-console.json index d7f8a4c9d1..96705f3e61 100644 --- a/app/config/specs/swagger2-1.7.x-console.json +++ b/app/config/specs/swagger2-1.7.x-console.json @@ -4527,7 +4527,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 307, + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -4590,7 +4590,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 431, + "weight": 432, "cookies": false, "type": "", "deprecated": false, @@ -4661,7 +4661,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 306, + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -4863,7 +4863,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 118, + "weight": 119, "cookies": false, "type": "", "deprecated": false, @@ -8178,29 +8178,6 @@ } ], "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." - }, - { - "name": "createDocuments", - "auth": { - "Key": [] - }, - "parameters": [ - "databaseId", - "collectionId", - "documents" - ], - "required": [ - "databaseId", - "collectionId", - "documents" - ], - "responses": [ - { - "code": 201, - "model": "#\/definitions\/documentList" - } - ], - "description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } ], "auth": { @@ -8296,7 +8273,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 115, + "weight": 116, "cookies": false, "type": "", "deprecated": false, @@ -8381,7 +8358,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 114, + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -8472,7 +8449,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 117, + "weight": 118, "cookies": false, "type": "", "deprecated": false, @@ -8623,6 +8600,111 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "schema": { + "$ref": "#\/definitions\/document" + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "default": {}, + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "default": null, + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + ] + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -8744,7 +8826,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -9335,7 +9417,7 @@ "x-appwrite": { "method": "getCollectionUsage", "group": null, - "weight": 120, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -9491,7 +9573,7 @@ "x-appwrite": { "method": "getDatabaseUsage", "group": null, - "weight": 119, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -9569,7 +9651,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 375, + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -9641,7 +9723,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 372, + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -9890,7 +9972,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 377, + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -9939,7 +10021,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 378, + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -9989,7 +10071,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 401, + "weight": 402, "cookies": false, "type": "", "deprecated": false, @@ -10083,7 +10165,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 400, + "weight": 401, "cookies": false, "type": "", "deprecated": false, @@ -10141,7 +10223,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 394, + "weight": 395, "cookies": false, "type": "", "deprecated": false, @@ -10211,7 +10293,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 373, + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -10270,7 +10352,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 374, + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -10515,7 +10597,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 376, + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -10576,7 +10658,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 381, + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -10653,7 +10735,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 382, + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -10733,7 +10815,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 379, + "weight": 380, "cookies": false, "type": "upload", "deprecated": false, @@ -10825,7 +10907,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 387, + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -10910,7 +10992,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 384, + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -11016,7 +11098,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 385, + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -11112,7 +11194,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 380, + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -11174,7 +11256,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 383, + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -11241,7 +11323,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 386, + "weight": 387, "cookies": false, "type": "location", "deprecated": false, @@ -11327,7 +11409,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 388, + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -11394,7 +11476,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -11468,7 +11550,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -11585,7 +11667,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -11650,7 +11732,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 392, + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -11717,7 +11799,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 393, + "weight": 394, "cookies": false, "type": "", "deprecated": false, @@ -11795,7 +11877,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 397, + "weight": 398, "cookies": false, "type": "", "deprecated": false, @@ -11854,7 +11936,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 395, + "weight": 396, "cookies": false, "type": "", "deprecated": false, @@ -11944,7 +12026,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 396, + "weight": 397, "cookies": false, "type": "", "deprecated": false, @@ -12011,7 +12093,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 398, + "weight": 399, "cookies": false, "type": "", "deprecated": false, @@ -12103,7 +12185,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 399, + "weight": 400, "cookies": false, "type": "", "deprecated": false, @@ -12172,7 +12254,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -12246,7 +12328,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -12318,7 +12400,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 129, + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -12367,7 +12449,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 150, + "weight": 151, "cookies": false, "type": "", "deprecated": false, @@ -12416,7 +12498,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 132, + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -12465,7 +12547,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 137, + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -12523,7 +12605,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 131, + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -12572,7 +12654,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 133, + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -12621,7 +12703,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 139, + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -12681,7 +12763,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 138, + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -12741,7 +12823,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 140, + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -12810,7 +12892,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 141, + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -12870,7 +12952,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 151, + "weight": 152, "cookies": false, "type": "", "deprecated": false, @@ -12954,7 +13036,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 145, + "weight": 146, "cookies": false, "type": "", "deprecated": false, @@ -13014,7 +13096,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 136, + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -13074,7 +13156,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 142, + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -13134,7 +13216,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 143, + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -13194,7 +13276,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 144, + "weight": 145, "cookies": false, "type": "", "deprecated": false, @@ -13254,7 +13336,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 146, + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -13314,7 +13396,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 147, + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -13374,7 +13456,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 135, + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -13434,7 +13516,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 149, + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -13483,7 +13565,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 148, + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -13532,7 +13614,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 134, + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -13581,7 +13663,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -13633,7 +13715,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -13685,7 +13767,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -13737,7 +13819,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -13789,7 +13871,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -13841,7 +13923,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -13893,7 +13975,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -13945,7 +14027,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -13997,7 +14079,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 359, + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -14072,7 +14154,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 356, + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -14230,7 +14312,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -14385,7 +14467,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 358, + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -14580,7 +14662,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -14774,7 +14856,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 357, + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -14892,7 +14974,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -15006,7 +15088,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -15061,7 +15143,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -15121,7 +15203,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 360, + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -15193,7 +15275,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -15265,7 +15347,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 331, + "weight": 332, "cookies": false, "type": "", "deprecated": false, @@ -15340,7 +15422,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 330, + "weight": 331, "cookies": false, "type": "", "deprecated": false, @@ -15455,7 +15537,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 343, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -15568,7 +15650,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 329, + "weight": 330, "cookies": false, "type": "", "deprecated": false, @@ -15659,7 +15741,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 342, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -15748,7 +15830,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 321, + "weight": 322, "cookies": false, "type": "", "deprecated": false, @@ -15875,7 +15957,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 334, + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -16000,7 +16082,7 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 324, + "weight": 325, "cookies": false, "type": "", "deprecated": false, @@ -16103,7 +16185,7 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 337, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -16204,7 +16286,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 322, + "weight": 323, "cookies": false, "type": "", "deprecated": false, @@ -16319,7 +16401,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 335, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -16432,7 +16514,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 323, + "weight": 324, "cookies": false, "type": "", "deprecated": false, @@ -16591,7 +16673,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 336, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -16747,7 +16829,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 325, + "weight": 326, "cookies": false, "type": "", "deprecated": false, @@ -16850,7 +16932,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 338, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -16951,7 +17033,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 326, + "weight": 327, "cookies": false, "type": "", "deprecated": false, @@ -17054,7 +17136,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 339, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -17155,7 +17237,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 327, + "weight": 328, "cookies": false, "type": "", "deprecated": false, @@ -17258,7 +17340,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 340, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -17359,7 +17441,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 328, + "weight": 329, "cookies": false, "type": "", "deprecated": false, @@ -17462,7 +17544,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 341, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -17561,7 +17643,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 333, + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -17616,7 +17698,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 344, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -17676,7 +17758,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 332, + "weight": 333, "cookies": false, "type": "", "deprecated": false, @@ -17748,7 +17830,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 353, + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -17820,7 +17902,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 346, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -17893,7 +17975,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 345, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -17981,7 +18063,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 348, + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -18041,7 +18123,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 349, + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -18120,7 +18202,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 350, + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -18180,7 +18262,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 347, + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -18252,7 +18334,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 352, + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -18333,7 +18415,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -18421,7 +18503,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 354, + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -18484,7 +18566,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -18555,7 +18637,7 @@ "x-appwrite": { "method": "list", "group": null, - "weight": 313, + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -18628,7 +18710,7 @@ "x-appwrite": { "method": "createAppwriteMigration", "group": null, - "weight": 308, + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -18720,7 +18802,7 @@ "x-appwrite": { "method": "getAppwriteReport", "group": null, - "weight": 315, + "weight": 316, "cookies": false, "type": "", "deprecated": false, @@ -18808,7 +18890,7 @@ "x-appwrite": { "method": "createCsvMigration", "group": null, - "weight": 312, + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -18892,7 +18974,7 @@ "x-appwrite": { "method": "createFirebaseMigration", "group": null, - "weight": 309, + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -18970,7 +19052,7 @@ "x-appwrite": { "method": "getFirebaseReport", "group": null, - "weight": 316, + "weight": 317, "cookies": false, "type": "", "deprecated": false, @@ -19041,7 +19123,7 @@ "x-appwrite": { "method": "createNHostMigration", "group": null, - "weight": 311, + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -19160,7 +19242,7 @@ "x-appwrite": { "method": "getNHostReport", "group": null, - "weight": 318, + "weight": 319, "cookies": false, "type": "", "deprecated": false, @@ -19280,7 +19362,7 @@ "x-appwrite": { "method": "createSupabaseMigration", "group": null, - "weight": 310, + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -19392,7 +19474,7 @@ "x-appwrite": { "method": "getSupabaseReport", "group": null, - "weight": 317, + "weight": 318, "cookies": false, "type": "", "deprecated": false, @@ -19503,7 +19585,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 314, + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -19561,7 +19643,7 @@ "x-appwrite": { "method": "retry", "group": null, - "weight": 319, + "weight": 320, "cookies": false, "type": "", "deprecated": false, @@ -19614,7 +19696,7 @@ "x-appwrite": { "method": "delete", "group": null, - "weight": 320, + "weight": 321, "cookies": false, "type": "", "deprecated": false, @@ -19672,7 +19754,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 199, + "weight": 200, "cookies": false, "type": "", "deprecated": false, @@ -19754,7 +19836,7 @@ "x-appwrite": { "method": "listVariables", "group": null, - "weight": 201, + "weight": 202, "cookies": false, "type": "", "deprecated": false, @@ -19802,7 +19884,7 @@ "x-appwrite": { "method": "createVariable", "group": null, - "weight": 200, + "weight": 201, "cookies": false, "type": "", "deprecated": false, @@ -19883,7 +19965,7 @@ "x-appwrite": { "method": "getVariable", "group": null, - "weight": 202, + "weight": 203, "cookies": false, "type": "", "deprecated": false, @@ -19941,7 +20023,7 @@ "x-appwrite": { "method": "updateVariable", "group": null, - "weight": 203, + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -20024,7 +20106,7 @@ "x-appwrite": { "method": "deleteVariable", "group": null, - "weight": 204, + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -20082,7 +20164,7 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 154, + "weight": 155, "cookies": false, "type": "", "deprecated": false, @@ -20153,7 +20235,7 @@ "x-appwrite": { "method": "create", "group": "projects", - "weight": 153, + "weight": 154, "cookies": false, "type": "", "deprecated": false, @@ -20300,7 +20382,7 @@ "x-appwrite": { "method": "get", "group": "projects", - "weight": 155, + "weight": 156, "cookies": false, "type": "", "deprecated": false, @@ -20358,7 +20440,7 @@ "x-appwrite": { "method": "update", "group": "projects", - "weight": 156, + "weight": 157, "cookies": false, "type": "", "deprecated": false, @@ -20483,7 +20565,7 @@ "x-appwrite": { "method": "delete", "group": "projects", - "weight": 173, + "weight": 174, "cookies": false, "type": "", "deprecated": false, @@ -20543,7 +20625,7 @@ "x-appwrite": { "method": "updateApiStatus", "group": "projects", - "weight": 160, + "weight": 161, "cookies": false, "type": "", "deprecated": false, @@ -20635,7 +20717,7 @@ "x-appwrite": { "method": "updateApiStatusAll", "group": "projects", - "weight": 161, + "weight": 162, "cookies": false, "type": "", "deprecated": false, @@ -20713,7 +20795,7 @@ "x-appwrite": { "method": "updateAuthDuration", "group": "auth", - "weight": 166, + "weight": 167, "cookies": false, "type": "", "deprecated": false, @@ -20791,7 +20873,7 @@ "x-appwrite": { "method": "updateAuthLimit", "group": "auth", - "weight": 165, + "weight": 166, "cookies": false, "type": "", "deprecated": false, @@ -20869,7 +20951,7 @@ "x-appwrite": { "method": "updateAuthSessionsLimit", "group": "auth", - "weight": 171, + "weight": 172, "cookies": false, "type": "", "deprecated": false, @@ -20947,7 +21029,7 @@ "x-appwrite": { "method": "updateMembershipsPrivacy", "group": "auth", - "weight": 164, + "weight": 165, "cookies": false, "type": "", "deprecated": false, @@ -21039,7 +21121,7 @@ "x-appwrite": { "method": "updateMockNumbers", "group": "auth", - "weight": 172, + "weight": 173, "cookies": false, "type": "", "deprecated": false, @@ -21120,7 +21202,7 @@ "x-appwrite": { "method": "updateAuthPasswordDictionary", "group": "auth", - "weight": 169, + "weight": 170, "cookies": false, "type": "", "deprecated": false, @@ -21198,7 +21280,7 @@ "x-appwrite": { "method": "updateAuthPasswordHistory", "group": "auth", - "weight": 168, + "weight": 169, "cookies": false, "type": "", "deprecated": false, @@ -21276,7 +21358,7 @@ "x-appwrite": { "method": "updatePersonalDataCheck", "group": "auth", - "weight": 170, + "weight": 171, "cookies": false, "type": "", "deprecated": false, @@ -21354,7 +21436,7 @@ "x-appwrite": { "method": "updateSessionAlerts", "group": "auth", - "weight": 163, + "weight": 164, "cookies": false, "type": "", "deprecated": false, @@ -21432,7 +21514,7 @@ "x-appwrite": { "method": "updateAuthStatus", "group": "auth", - "weight": 167, + "weight": 168, "cookies": false, "type": "", "deprecated": false, @@ -21527,7 +21609,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -21597,7 +21679,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -21680,7 +21762,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -21746,7 +21828,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -21832,7 +21914,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 371, + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -21900,7 +21982,7 @@ "x-appwrite": { "method": "createJWT", "group": "auth", - "weight": 185, + "weight": 186, "cookies": false, "type": "", "deprecated": false, @@ -21985,7 +22067,7 @@ "x-appwrite": { "method": "listKeys", "group": "keys", - "weight": 181, + "weight": 182, "cookies": false, "type": "", "deprecated": false, @@ -22043,7 +22125,7 @@ "x-appwrite": { "method": "createKey", "group": "keys", - "weight": 180, + "weight": 181, "cookies": false, "type": "", "deprecated": false, @@ -22135,7 +22217,7 @@ "x-appwrite": { "method": "getKey", "group": "keys", - "weight": 182, + "weight": 183, "cookies": false, "type": "", "deprecated": false, @@ -22201,7 +22283,7 @@ "x-appwrite": { "method": "updateKey", "group": "keys", - "weight": 183, + "weight": 184, "cookies": false, "type": "", "deprecated": false, @@ -22296,7 +22378,7 @@ "x-appwrite": { "method": "deleteKey", "group": "keys", - "weight": 184, + "weight": 185, "cookies": false, "type": "", "deprecated": false, @@ -22364,7 +22446,7 @@ "x-appwrite": { "method": "updateOAuth2", "group": "auth", - "weight": 162, + "weight": 163, "cookies": false, "type": "", "deprecated": false, @@ -22502,7 +22584,7 @@ "x-appwrite": { "method": "listPlatforms", "group": "platforms", - "weight": 187, + "weight": 188, "cookies": false, "type": "", "deprecated": false, @@ -22560,7 +22642,7 @@ "x-appwrite": { "method": "createPlatform", "group": "platforms", - "weight": 186, + "weight": 187, "cookies": false, "type": "", "deprecated": false, @@ -22680,7 +22762,7 @@ "x-appwrite": { "method": "getPlatform", "group": "platforms", - "weight": 188, + "weight": 189, "cookies": false, "type": "", "deprecated": false, @@ -22746,7 +22828,7 @@ "x-appwrite": { "method": "updatePlatform", "group": "platforms", - "weight": 189, + "weight": 190, "cookies": false, "type": "", "deprecated": false, @@ -22843,7 +22925,7 @@ "x-appwrite": { "method": "deletePlatform", "group": "platforms", - "weight": 190, + "weight": 191, "cookies": false, "type": "", "deprecated": false, @@ -22911,7 +22993,7 @@ "x-appwrite": { "method": "updateServiceStatus", "group": "projects", - "weight": 158, + "weight": 159, "cookies": false, "type": "", "deprecated": false, @@ -23012,7 +23094,7 @@ "x-appwrite": { "method": "updateServiceStatusAll", "group": "projects", - "weight": 159, + "weight": 160, "cookies": false, "type": "", "deprecated": false, @@ -23090,7 +23172,7 @@ "x-appwrite": { "method": "updateSmtp", "group": "templates", - "weight": 191, + "weight": 192, "cookies": false, "type": "", "deprecated": false, @@ -23219,7 +23301,7 @@ "x-appwrite": { "method": "createSmtpTest", "group": "templates", - "weight": 192, + "weight": 193, "cookies": false, "type": "", "deprecated": false, @@ -23357,7 +23439,7 @@ "x-appwrite": { "method": "updateTeam", "group": "projects", - "weight": 157, + "weight": 158, "cookies": false, "type": "", "deprecated": false, @@ -23433,7 +23515,7 @@ "x-appwrite": { "method": "getEmailTemplate", "group": "templates", - "weight": 194, + "weight": 195, "cookies": false, "type": "", "deprecated": false, @@ -23653,7 +23735,7 @@ "x-appwrite": { "method": "updateEmailTemplate", "group": "templates", - "weight": 196, + "weight": 197, "cookies": false, "type": "", "deprecated": false, @@ -23916,7 +23998,7 @@ "x-appwrite": { "method": "deleteEmailTemplate", "group": "templates", - "weight": 198, + "weight": 199, "cookies": false, "type": "", "deprecated": false, @@ -24136,7 +24218,7 @@ "x-appwrite": { "method": "getSmsTemplate", "group": "templates", - "weight": 193, + "weight": 194, "cookies": false, "type": "", "deprecated": false, @@ -24353,7 +24435,7 @@ "x-appwrite": { "method": "updateSmsTemplate", "group": "templates", - "weight": 195, + "weight": 196, "cookies": false, "type": "", "deprecated": false, @@ -24588,7 +24670,7 @@ "x-appwrite": { "method": "deleteSmsTemplate", "group": "templates", - "weight": 197, + "weight": 198, "cookies": false, "type": "", "deprecated": false, @@ -24805,7 +24887,7 @@ "x-appwrite": { "method": "listWebhooks", "group": "webhooks", - "weight": 175, + "weight": 176, "cookies": false, "type": "", "deprecated": false, @@ -24863,7 +24945,7 @@ "x-appwrite": { "method": "createWebhook", "group": "webhooks", - "weight": 174, + "weight": 175, "cookies": false, "type": "", "deprecated": false, @@ -24981,7 +25063,7 @@ "x-appwrite": { "method": "getWebhook", "group": "webhooks", - "weight": 176, + "weight": 177, "cookies": false, "type": "", "deprecated": false, @@ -25047,7 +25129,7 @@ "x-appwrite": { "method": "updateWebhook", "group": "webhooks", - "weight": 177, + "weight": 178, "cookies": false, "type": "", "deprecated": false, @@ -25168,7 +25250,7 @@ "x-appwrite": { "method": "deleteWebhook", "group": "webhooks", - "weight": 179, + "weight": 180, "cookies": false, "type": "", "deprecated": false, @@ -25236,7 +25318,7 @@ "x-appwrite": { "method": "updateWebhookSignature", "group": "webhooks", - "weight": 178, + "weight": 179, "cookies": false, "type": "", "deprecated": false, @@ -25302,7 +25384,7 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 291, + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -25375,7 +25457,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 432, + "weight": 433, "cookies": false, "type": "", "deprecated": false, @@ -25445,7 +25527,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 434, + "weight": 435, "cookies": false, "type": "", "deprecated": false, @@ -25528,7 +25610,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 435, + "weight": 436, "cookies": false, "type": "", "deprecated": false, @@ -25625,7 +25707,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 433, + "weight": 434, "cookies": false, "type": "", "deprecated": false, @@ -25706,7 +25788,7 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 292, + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -25759,7 +25841,7 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 293, + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -25819,7 +25901,7 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 294, + "weight": 295, "cookies": false, "type": "", "deprecated": false, @@ -25877,7 +25959,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 404, + "weight": 405, "cookies": false, "type": "", "deprecated": false, @@ -25949,7 +26031,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 402, + "weight": 403, "cookies": false, "type": "", "deprecated": false, @@ -26214,7 +26296,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 407, + "weight": 408, "cookies": false, "type": "", "deprecated": false, @@ -26263,7 +26345,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 430, + "weight": 431, "cookies": false, "type": "", "deprecated": false, @@ -26313,7 +26395,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 426, + "weight": 427, "cookies": false, "type": "", "deprecated": false, @@ -26407,7 +26489,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 427, + "weight": 428, "cookies": false, "type": "", "deprecated": false, @@ -26465,7 +26547,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 428, + "weight": 429, "cookies": false, "type": "", "deprecated": false, @@ -26535,7 +26617,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 403, + "weight": 404, "cookies": false, "type": "", "deprecated": false, @@ -26594,7 +26676,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 405, + "weight": 406, "cookies": false, "type": "", "deprecated": false, @@ -26854,7 +26936,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 406, + "weight": 407, "cookies": false, "type": "", "deprecated": false, @@ -26915,7 +26997,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 413, + "weight": 414, "cookies": false, "type": "", "deprecated": false, @@ -26992,7 +27074,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 412, + "weight": 413, "cookies": false, "type": "", "deprecated": false, @@ -27072,7 +27154,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 408, + "weight": 409, "cookies": false, "type": "upload", "deprecated": false, @@ -27172,7 +27254,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 416, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -27251,7 +27333,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 409, + "weight": 410, "cookies": false, "type": "", "deprecated": false, @@ -27357,7 +27439,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 410, + "weight": 411, "cookies": false, "type": "", "deprecated": false, @@ -27454,7 +27536,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 411, + "weight": 412, "cookies": false, "type": "", "deprecated": false, @@ -27516,7 +27598,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 414, + "weight": 415, "cookies": false, "type": "", "deprecated": false, @@ -27583,7 +27665,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 415, + "weight": 416, "cookies": false, "type": "location", "deprecated": false, @@ -27669,7 +27751,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 417, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -27736,7 +27818,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 419, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -27807,7 +27889,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 418, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -27871,7 +27953,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 420, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -27938,7 +28020,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 429, + "weight": 430, "cookies": false, "type": "", "deprecated": false, @@ -28016,7 +28098,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 423, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -28075,7 +28157,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 421, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -28165,7 +28247,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 422, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -28232,7 +28314,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 424, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -28324,7 +28406,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 425, + "weight": 426, "cookies": false, "type": "", "deprecated": false, @@ -28391,7 +28473,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 206, + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -28463,7 +28545,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 205, + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -28600,7 +28682,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 207, + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -28659,7 +28741,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 208, + "weight": 209, "cookies": false, "type": "", "deprecated": false, @@ -28792,7 +28874,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 209, + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -28851,7 +28933,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -28934,7 +29016,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -29024,7 +29106,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -29094,7 +29176,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -29183,7 +29265,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -29253,7 +29335,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -29332,7 +29414,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -29538,7 +29620,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -29617,7 +29699,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 219, + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -29687,7 +29769,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 220, + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -29765,7 +29847,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -29840,7 +29922,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -29930,7 +30012,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -29992,7 +30074,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -30067,7 +30149,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -30129,7 +30211,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 234, + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -30199,7 +30281,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -30282,7 +30364,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -30395,7 +30477,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -30465,7 +30547,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -30551,7 +30633,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -30623,7 +30705,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -30716,7 +30798,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -30776,7 +30858,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -30854,7 +30936,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 438, + "weight": 439, "cookies": false, "type": "", "deprecated": false, @@ -30922,7 +31004,7 @@ "tags": [ "tokens" ], - "description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "description": "Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "responses": { "201": { "description": "ResourceToken", @@ -30934,12 +31016,12 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 436, + "weight": 437, "cookies": false, "type": "", "deprecated": false, "demo": "tokens\/create-file-token.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -31018,7 +31100,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 437, + "weight": 438, "cookies": false, "type": "", "deprecated": false, @@ -31078,7 +31160,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 439, + "weight": 440, "cookies": false, "type": "", "deprecated": false, @@ -31149,7 +31231,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 440, + "weight": 441, "cookies": false, "type": "", "deprecated": false, @@ -31209,7 +31291,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 244, + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -31281,7 +31363,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 235, + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -31376,7 +31458,7 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 238, + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -31467,7 +31549,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 236, + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -31556,7 +31638,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 252, + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -31625,7 +31707,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 275, + "weight": 276, "cookies": false, "type": "", "deprecated": false, @@ -31686,7 +31768,7 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 237, + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -31777,7 +31859,7 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 240, + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -31868,7 +31950,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 241, + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -31994,7 +32076,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 242, + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -32106,7 +32188,7 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 239, + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -32216,7 +32298,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 277, + "weight": 278, "cookies": false, "type": "", "deprecated": false, @@ -32286,7 +32368,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 245, + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -32340,7 +32422,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 273, + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -32401,7 +32483,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 258, + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -32480,7 +32562,7 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 276, + "weight": 277, "cookies": false, "type": "", "deprecated": false, @@ -32562,7 +32644,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 254, + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -32642,7 +32724,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 250, + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -32713,7 +32795,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 249, + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -32795,7 +32877,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 263, + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -32869,7 +32951,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 268, + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -32941,7 +33023,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 264, + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -33000,7 +33082,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 265, + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -33059,7 +33141,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 267, + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -33118,7 +33200,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 266, + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -33179,7 +33261,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 256, + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -33258,7 +33340,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 257, + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -33337,7 +33419,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 259, + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -33414,7 +33496,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 246, + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -33473,7 +33555,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 261, + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -33550,7 +33632,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 248, + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -33609,7 +33691,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 269, + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -33663,7 +33745,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 272, + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -33719,7 +33801,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 271, + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -33788,7 +33870,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 253, + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -33865,7 +33947,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 251, + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -33937,7 +34019,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 243, + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -34048,7 +34130,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 247, + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -34116,7 +34198,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 262, + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -34206,7 +34288,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 274, + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -34276,7 +34358,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 270, + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -34358,7 +34440,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 260, + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -34437,7 +34519,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 255, + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -34516,7 +34598,7 @@ "x-appwrite": { "method": "createRepositoryDetection", "group": "repositories", - "weight": 281, + "weight": 282, "cookies": false, "type": "", "deprecated": false, @@ -34611,7 +34693,7 @@ "x-appwrite": { "method": "listRepositories", "group": "repositories", - "weight": 282, + "weight": 283, "cookies": false, "type": "", "deprecated": false, @@ -34692,7 +34774,7 @@ "x-appwrite": { "method": "createRepository", "group": "repositories", - "weight": 283, + "weight": 284, "cookies": false, "type": "", "deprecated": false, @@ -34775,7 +34857,7 @@ "x-appwrite": { "method": "getRepository", "group": "repositories", - "weight": 284, + "weight": 285, "cookies": false, "type": "", "deprecated": false, @@ -34841,7 +34923,7 @@ "x-appwrite": { "method": "listRepositoryBranches", "group": "repositories", - "weight": 285, + "weight": 286, "cookies": false, "type": "", "deprecated": false, @@ -34907,7 +34989,7 @@ "x-appwrite": { "method": "getRepositoryContents", "group": "repositories", - "weight": 280, + "weight": 281, "cookies": false, "type": "", "deprecated": false, @@ -34981,7 +35063,7 @@ "x-appwrite": { "method": "updateExternalDeployments", "group": "repositories", - "weight": 290, + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -35065,7 +35147,7 @@ "x-appwrite": { "method": "listInstallations", "group": "installations", - "weight": 287, + "weight": 288, "cookies": false, "type": "", "deprecated": false, @@ -35136,7 +35218,7 @@ "x-appwrite": { "method": "getInstallation", "group": "installations", - "weight": 288, + "weight": 289, "cookies": false, "type": "", "deprecated": false, @@ -35189,7 +35271,7 @@ "x-appwrite": { "method": "deleteInstallation", "group": "installations", - "weight": 289, + "weight": 290, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/swagger2-1.7.x-server.json b/app/config/specs/swagger2-1.7.x-server.json index d2924041c0..c033008417 100644 --- a/app/config/specs/swagger2-1.7.x-server.json +++ b/app/config/specs/swagger2-1.7.x-server.json @@ -7649,29 +7649,6 @@ } ], "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." - }, - { - "name": "createDocuments", - "auth": { - "Key": [] - }, - "parameters": [ - "databaseId", - "collectionId", - "documents" - ], - "required": [ - "databaseId", - "collectionId", - "documents" - ], - "responses": [ - { - "code": 201, - "model": "#\/definitions\/documentList" - } - ], - "description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } ], "auth": { @@ -7769,7 +7746,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 115, + "weight": 116, "cookies": false, "type": "", "deprecated": false, @@ -7855,7 +7832,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 114, + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -7947,7 +7924,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 117, + "weight": 118, "cookies": false, "type": "", "deprecated": false, @@ -8101,6 +8078,113 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "schema": { + "$ref": "#\/definitions\/document" + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Session": [] + } + }, + "security": [ + { + "Project": [], + "Session": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "default": {}, + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "default": null, + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + ] + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -8224,7 +8308,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -8657,7 +8741,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 375, + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -8730,7 +8814,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 372, + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -8980,7 +9064,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 377, + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -9030,7 +9114,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 378, + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -9081,7 +9165,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 373, + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -9141,7 +9225,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 374, + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -9387,7 +9471,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 376, + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -9449,7 +9533,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 381, + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -9527,7 +9611,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 382, + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -9608,7 +9692,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 379, + "weight": 380, "cookies": false, "type": "upload", "deprecated": false, @@ -9701,7 +9785,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 387, + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -9787,7 +9871,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 384, + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -9894,7 +9978,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 385, + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -9991,7 +10075,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 380, + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -10054,7 +10138,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 383, + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -10122,7 +10206,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 386, + "weight": 387, "cookies": false, "type": "location", "deprecated": false, @@ -10209,7 +10293,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 388, + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -10277,7 +10361,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -10353,7 +10437,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -10472,7 +10556,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -10539,7 +10623,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 392, + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -10607,7 +10691,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 397, + "weight": 398, "cookies": false, "type": "", "deprecated": false, @@ -10667,7 +10751,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 395, + "weight": 396, "cookies": false, "type": "", "deprecated": false, @@ -10758,7 +10842,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 396, + "weight": 397, "cookies": false, "type": "", "deprecated": false, @@ -10826,7 +10910,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 398, + "weight": 399, "cookies": false, "type": "", "deprecated": false, @@ -10919,7 +11003,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 399, + "weight": 400, "cookies": false, "type": "", "deprecated": false, @@ -10989,7 +11073,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -11065,7 +11149,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -11139,7 +11223,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 129, + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -11189,7 +11273,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 150, + "weight": 151, "cookies": false, "type": "", "deprecated": false, @@ -11239,7 +11323,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 132, + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -11289,7 +11373,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 137, + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -11348,7 +11432,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 131, + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -11398,7 +11482,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 133, + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -11448,7 +11532,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 139, + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -11509,7 +11593,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 138, + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -11570,7 +11654,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 140, + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -11640,7 +11724,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 141, + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -11701,7 +11785,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 151, + "weight": 152, "cookies": false, "type": "", "deprecated": false, @@ -11786,7 +11870,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 145, + "weight": 146, "cookies": false, "type": "", "deprecated": false, @@ -11847,7 +11931,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 136, + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -11908,7 +11992,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 142, + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -11969,7 +12053,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 143, + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -12030,7 +12114,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 144, + "weight": 145, "cookies": false, "type": "", "deprecated": false, @@ -12091,7 +12175,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 146, + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -12152,7 +12236,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 147, + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -12213,7 +12297,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 135, + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -12274,7 +12358,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 149, + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -12324,7 +12408,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 148, + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -12374,7 +12458,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 134, + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -12424,7 +12508,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -12478,7 +12562,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -12532,7 +12616,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -12586,7 +12670,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -12640,7 +12724,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -12694,7 +12778,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -12748,7 +12832,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -12802,7 +12886,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -12856,7 +12940,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 359, + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -12932,7 +13016,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 356, + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -13091,7 +13175,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -13247,7 +13331,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 358, + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -13443,7 +13527,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -13638,7 +13722,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 357, + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -13757,7 +13841,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -13872,7 +13956,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -13928,7 +14012,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -13989,7 +14073,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 360, + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -14062,7 +14146,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -14135,7 +14219,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 331, + "weight": 332, "cookies": false, "type": "", "deprecated": false, @@ -14211,7 +14295,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 330, + "weight": 331, "cookies": false, "type": "", "deprecated": false, @@ -14327,7 +14411,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 343, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -14441,7 +14525,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 329, + "weight": 330, "cookies": false, "type": "", "deprecated": false, @@ -14533,7 +14617,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 342, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -14623,7 +14707,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 321, + "weight": 322, "cookies": false, "type": "", "deprecated": false, @@ -14751,7 +14835,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 334, + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -14877,7 +14961,7 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 324, + "weight": 325, "cookies": false, "type": "", "deprecated": false, @@ -14981,7 +15065,7 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 337, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -15083,7 +15167,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 322, + "weight": 323, "cookies": false, "type": "", "deprecated": false, @@ -15199,7 +15283,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 335, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -15313,7 +15397,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 323, + "weight": 324, "cookies": false, "type": "", "deprecated": false, @@ -15473,7 +15557,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 336, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -15630,7 +15714,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 325, + "weight": 326, "cookies": false, "type": "", "deprecated": false, @@ -15734,7 +15818,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 338, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -15836,7 +15920,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 326, + "weight": 327, "cookies": false, "type": "", "deprecated": false, @@ -15940,7 +16024,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 339, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -16042,7 +16126,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 327, + "weight": 328, "cookies": false, "type": "", "deprecated": false, @@ -16146,7 +16230,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 340, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -16248,7 +16332,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 328, + "weight": 329, "cookies": false, "type": "", "deprecated": false, @@ -16352,7 +16436,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 341, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -16452,7 +16536,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 333, + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -16508,7 +16592,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 344, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -16569,7 +16653,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 332, + "weight": 333, "cookies": false, "type": "", "deprecated": false, @@ -16642,7 +16726,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 353, + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -16715,7 +16799,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 346, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -16789,7 +16873,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 345, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -16878,7 +16962,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 348, + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -16939,7 +17023,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 349, + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -17019,7 +17103,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 350, + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -17080,7 +17164,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 347, + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -17153,7 +17237,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 352, + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -17235,7 +17319,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -17325,7 +17409,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 354, + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -17389,7 +17473,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -17462,7 +17546,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 404, + "weight": 405, "cookies": false, "type": "", "deprecated": false, @@ -17535,7 +17619,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 402, + "weight": 403, "cookies": false, "type": "", "deprecated": false, @@ -17801,7 +17885,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 407, + "weight": 408, "cookies": false, "type": "", "deprecated": false, @@ -17851,7 +17935,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 430, + "weight": 431, "cookies": false, "type": "", "deprecated": false, @@ -17902,7 +17986,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 403, + "weight": 404, "cookies": false, "type": "", "deprecated": false, @@ -17962,7 +18046,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 405, + "weight": 406, "cookies": false, "type": "", "deprecated": false, @@ -18223,7 +18307,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 406, + "weight": 407, "cookies": false, "type": "", "deprecated": false, @@ -18285,7 +18369,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 413, + "weight": 414, "cookies": false, "type": "", "deprecated": false, @@ -18363,7 +18447,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 412, + "weight": 413, "cookies": false, "type": "", "deprecated": false, @@ -18444,7 +18528,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 408, + "weight": 409, "cookies": false, "type": "upload", "deprecated": false, @@ -18545,7 +18629,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 416, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -18625,7 +18709,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 409, + "weight": 410, "cookies": false, "type": "", "deprecated": false, @@ -18732,7 +18816,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 410, + "weight": 411, "cookies": false, "type": "", "deprecated": false, @@ -18830,7 +18914,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 411, + "weight": 412, "cookies": false, "type": "", "deprecated": false, @@ -18893,7 +18977,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 414, + "weight": 415, "cookies": false, "type": "", "deprecated": false, @@ -18961,7 +19045,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 415, + "weight": 416, "cookies": false, "type": "location", "deprecated": false, @@ -19048,7 +19132,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 417, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -19116,7 +19200,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 419, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -19188,7 +19272,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 418, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -19253,7 +19337,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 420, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -19321,7 +19405,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 423, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -19381,7 +19465,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 421, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -19472,7 +19556,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 422, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -19540,7 +19624,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 424, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -19633,7 +19717,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 425, + "weight": 426, "cookies": false, "type": "", "deprecated": false, @@ -19701,7 +19785,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 206, + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -19774,7 +19858,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 205, + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -19912,7 +19996,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 207, + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -19972,7 +20056,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 208, + "weight": 209, "cookies": false, "type": "", "deprecated": false, @@ -20106,7 +20190,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 209, + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -20166,7 +20250,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -20251,7 +20335,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -20343,7 +20427,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -20415,7 +20499,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -20506,7 +20590,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -20578,7 +20662,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -20659,7 +20743,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -20867,7 +20951,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -20948,7 +21032,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -21025,7 +21109,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -21117,7 +21201,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -21181,7 +21265,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -21258,7 +21342,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -21322,7 +21406,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -21407,7 +21491,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -21522,7 +21606,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -21594,7 +21678,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -21682,7 +21766,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -21756,7 +21840,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -21851,7 +21935,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -21913,7 +21997,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -21993,7 +22077,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 438, + "weight": 439, "cookies": false, "type": "", "deprecated": false, @@ -22062,7 +22146,7 @@ "tags": [ "tokens" ], - "description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "description": "Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "responses": { "201": { "description": "ResourceToken", @@ -22074,12 +22158,12 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 436, + "weight": 437, "cookies": false, "type": "", "deprecated": false, "demo": "tokens\/create-file-token.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -22159,7 +22243,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 437, + "weight": 438, "cookies": false, "type": "", "deprecated": false, @@ -22220,7 +22304,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 439, + "weight": 440, "cookies": false, "type": "", "deprecated": false, @@ -22292,7 +22376,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 440, + "weight": 441, "cookies": false, "type": "", "deprecated": false, @@ -22353,7 +22437,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 244, + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -22426,7 +22510,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 235, + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -22522,7 +22606,7 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 238, + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -22614,7 +22698,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 236, + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -22704,7 +22788,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 252, + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -22774,7 +22858,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 275, + "weight": 276, "cookies": false, "type": "", "deprecated": false, @@ -22836,7 +22920,7 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 237, + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -22928,7 +23012,7 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 240, + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -23020,7 +23104,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 241, + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -23147,7 +23231,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 242, + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -23260,7 +23344,7 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 239, + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -23371,7 +23455,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 245, + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -23426,7 +23510,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 273, + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -23488,7 +23572,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 258, + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -23568,7 +23652,7 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 276, + "weight": 277, "cookies": false, "type": "", "deprecated": false, @@ -23651,7 +23735,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 254, + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -23732,7 +23816,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 250, + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -23804,7 +23888,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 249, + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -23887,7 +23971,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 263, + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -23962,7 +24046,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 268, + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -24035,7 +24119,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 264, + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -24095,7 +24179,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 265, + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -24155,7 +24239,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 267, + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -24215,7 +24299,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 266, + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -24277,7 +24361,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 256, + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -24357,7 +24441,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 257, + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -24437,7 +24521,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 259, + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -24515,7 +24599,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 246, + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -24575,7 +24659,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 261, + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -24653,7 +24737,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 248, + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -24713,7 +24797,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 269, + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -24768,7 +24852,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 272, + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -24825,7 +24909,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 271, + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -24895,7 +24979,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 253, + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -24973,7 +25057,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 251, + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -25046,7 +25130,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 243, + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -25158,7 +25242,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 247, + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -25227,7 +25311,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 262, + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -25318,7 +25402,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 274, + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -25389,7 +25473,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 270, + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -25472,7 +25556,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 260, + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -25552,7 +25636,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 255, + "weight": 256, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index 9bfe261df1..5c1b764e1e 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -61,6 +61,12 @@ "name": "X-Appwrite-Session", "description": "The user session to authenticate with", "in": "header" + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-Dev-Key", + "description": "Your secret dev API key", + "in": "header" } }, "paths": { @@ -4791,6 +4797,111 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "schema": { + "$ref": "#\/definitions\/document" + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Session": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "default": {}, + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "default": null, + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + ] + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -4912,7 +5023,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -4990,7 +5101,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -5064,7 +5175,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -5181,7 +5292,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -5253,7 +5364,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -5327,7 +5438,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -5399,7 +5510,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -5451,7 +5562,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -5503,7 +5614,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -5555,7 +5666,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -5607,7 +5718,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -5659,7 +5770,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -5711,7 +5822,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -5763,7 +5874,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -5817,7 +5928,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -5902,7 +6013,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -5973,7 +6084,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -6056,7 +6167,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -6146,7 +6257,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -6216,7 +6327,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -6305,7 +6416,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -6375,7 +6486,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -6454,7 +6565,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -6660,7 +6771,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -6739,7 +6850,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -6814,7 +6925,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -6904,7 +7015,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -6966,7 +7077,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -7041,7 +7152,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -7103,7 +7214,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -7186,7 +7297,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -7299,7 +7410,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -7369,7 +7480,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -7455,7 +7566,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -7527,7 +7638,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -7621,7 +7732,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -7682,7 +7793,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index d7f8a4c9d1..96705f3e61 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -4527,7 +4527,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 307, + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -4590,7 +4590,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 431, + "weight": 432, "cookies": false, "type": "", "deprecated": false, @@ -4661,7 +4661,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 306, + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -4863,7 +4863,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 118, + "weight": 119, "cookies": false, "type": "", "deprecated": false, @@ -8178,29 +8178,6 @@ } ], "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." - }, - { - "name": "createDocuments", - "auth": { - "Key": [] - }, - "parameters": [ - "databaseId", - "collectionId", - "documents" - ], - "required": [ - "databaseId", - "collectionId", - "documents" - ], - "responses": [ - { - "code": 201, - "model": "#\/definitions\/documentList" - } - ], - "description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } ], "auth": { @@ -8296,7 +8273,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 115, + "weight": 116, "cookies": false, "type": "", "deprecated": false, @@ -8381,7 +8358,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 114, + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -8472,7 +8449,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 117, + "weight": 118, "cookies": false, "type": "", "deprecated": false, @@ -8623,6 +8600,111 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "schema": { + "$ref": "#\/definitions\/document" + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "default": {}, + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "default": null, + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + ] + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -8744,7 +8826,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -9335,7 +9417,7 @@ "x-appwrite": { "method": "getCollectionUsage", "group": null, - "weight": 120, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -9491,7 +9573,7 @@ "x-appwrite": { "method": "getDatabaseUsage", "group": null, - "weight": 119, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -9569,7 +9651,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 375, + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -9641,7 +9723,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 372, + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -9890,7 +9972,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 377, + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -9939,7 +10021,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 378, + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -9989,7 +10071,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 401, + "weight": 402, "cookies": false, "type": "", "deprecated": false, @@ -10083,7 +10165,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 400, + "weight": 401, "cookies": false, "type": "", "deprecated": false, @@ -10141,7 +10223,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 394, + "weight": 395, "cookies": false, "type": "", "deprecated": false, @@ -10211,7 +10293,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 373, + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -10270,7 +10352,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 374, + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -10515,7 +10597,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 376, + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -10576,7 +10658,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 381, + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -10653,7 +10735,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 382, + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -10733,7 +10815,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 379, + "weight": 380, "cookies": false, "type": "upload", "deprecated": false, @@ -10825,7 +10907,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 387, + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -10910,7 +10992,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 384, + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -11016,7 +11098,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 385, + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -11112,7 +11194,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 380, + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -11174,7 +11256,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 383, + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -11241,7 +11323,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 386, + "weight": 387, "cookies": false, "type": "location", "deprecated": false, @@ -11327,7 +11409,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 388, + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -11394,7 +11476,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -11468,7 +11550,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -11585,7 +11667,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -11650,7 +11732,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 392, + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -11717,7 +11799,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 393, + "weight": 394, "cookies": false, "type": "", "deprecated": false, @@ -11795,7 +11877,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 397, + "weight": 398, "cookies": false, "type": "", "deprecated": false, @@ -11854,7 +11936,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 395, + "weight": 396, "cookies": false, "type": "", "deprecated": false, @@ -11944,7 +12026,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 396, + "weight": 397, "cookies": false, "type": "", "deprecated": false, @@ -12011,7 +12093,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 398, + "weight": 399, "cookies": false, "type": "", "deprecated": false, @@ -12103,7 +12185,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 399, + "weight": 400, "cookies": false, "type": "", "deprecated": false, @@ -12172,7 +12254,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -12246,7 +12328,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -12318,7 +12400,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 129, + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -12367,7 +12449,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 150, + "weight": 151, "cookies": false, "type": "", "deprecated": false, @@ -12416,7 +12498,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 132, + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -12465,7 +12547,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 137, + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -12523,7 +12605,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 131, + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -12572,7 +12654,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 133, + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -12621,7 +12703,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 139, + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -12681,7 +12763,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 138, + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -12741,7 +12823,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 140, + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -12810,7 +12892,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 141, + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -12870,7 +12952,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 151, + "weight": 152, "cookies": false, "type": "", "deprecated": false, @@ -12954,7 +13036,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 145, + "weight": 146, "cookies": false, "type": "", "deprecated": false, @@ -13014,7 +13096,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 136, + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -13074,7 +13156,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 142, + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -13134,7 +13216,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 143, + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -13194,7 +13276,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 144, + "weight": 145, "cookies": false, "type": "", "deprecated": false, @@ -13254,7 +13336,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 146, + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -13314,7 +13396,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 147, + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -13374,7 +13456,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 135, + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -13434,7 +13516,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 149, + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -13483,7 +13565,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 148, + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -13532,7 +13614,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 134, + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -13581,7 +13663,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -13633,7 +13715,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -13685,7 +13767,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -13737,7 +13819,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -13789,7 +13871,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -13841,7 +13923,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -13893,7 +13975,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -13945,7 +14027,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -13997,7 +14079,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 359, + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -14072,7 +14154,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 356, + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -14230,7 +14312,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -14385,7 +14467,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 358, + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -14580,7 +14662,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -14774,7 +14856,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 357, + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -14892,7 +14974,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -15006,7 +15088,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -15061,7 +15143,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -15121,7 +15203,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 360, + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -15193,7 +15275,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -15265,7 +15347,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 331, + "weight": 332, "cookies": false, "type": "", "deprecated": false, @@ -15340,7 +15422,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 330, + "weight": 331, "cookies": false, "type": "", "deprecated": false, @@ -15455,7 +15537,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 343, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -15568,7 +15650,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 329, + "weight": 330, "cookies": false, "type": "", "deprecated": false, @@ -15659,7 +15741,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 342, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -15748,7 +15830,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 321, + "weight": 322, "cookies": false, "type": "", "deprecated": false, @@ -15875,7 +15957,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 334, + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -16000,7 +16082,7 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 324, + "weight": 325, "cookies": false, "type": "", "deprecated": false, @@ -16103,7 +16185,7 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 337, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -16204,7 +16286,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 322, + "weight": 323, "cookies": false, "type": "", "deprecated": false, @@ -16319,7 +16401,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 335, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -16432,7 +16514,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 323, + "weight": 324, "cookies": false, "type": "", "deprecated": false, @@ -16591,7 +16673,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 336, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -16747,7 +16829,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 325, + "weight": 326, "cookies": false, "type": "", "deprecated": false, @@ -16850,7 +16932,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 338, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -16951,7 +17033,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 326, + "weight": 327, "cookies": false, "type": "", "deprecated": false, @@ -17054,7 +17136,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 339, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -17155,7 +17237,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 327, + "weight": 328, "cookies": false, "type": "", "deprecated": false, @@ -17258,7 +17340,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 340, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -17359,7 +17441,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 328, + "weight": 329, "cookies": false, "type": "", "deprecated": false, @@ -17462,7 +17544,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 341, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -17561,7 +17643,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 333, + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -17616,7 +17698,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 344, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -17676,7 +17758,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 332, + "weight": 333, "cookies": false, "type": "", "deprecated": false, @@ -17748,7 +17830,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 353, + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -17820,7 +17902,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 346, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -17893,7 +17975,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 345, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -17981,7 +18063,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 348, + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -18041,7 +18123,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 349, + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -18120,7 +18202,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 350, + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -18180,7 +18262,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 347, + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -18252,7 +18334,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 352, + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -18333,7 +18415,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -18421,7 +18503,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 354, + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -18484,7 +18566,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -18555,7 +18637,7 @@ "x-appwrite": { "method": "list", "group": null, - "weight": 313, + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -18628,7 +18710,7 @@ "x-appwrite": { "method": "createAppwriteMigration", "group": null, - "weight": 308, + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -18720,7 +18802,7 @@ "x-appwrite": { "method": "getAppwriteReport", "group": null, - "weight": 315, + "weight": 316, "cookies": false, "type": "", "deprecated": false, @@ -18808,7 +18890,7 @@ "x-appwrite": { "method": "createCsvMigration", "group": null, - "weight": 312, + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -18892,7 +18974,7 @@ "x-appwrite": { "method": "createFirebaseMigration", "group": null, - "weight": 309, + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -18970,7 +19052,7 @@ "x-appwrite": { "method": "getFirebaseReport", "group": null, - "weight": 316, + "weight": 317, "cookies": false, "type": "", "deprecated": false, @@ -19041,7 +19123,7 @@ "x-appwrite": { "method": "createNHostMigration", "group": null, - "weight": 311, + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -19160,7 +19242,7 @@ "x-appwrite": { "method": "getNHostReport", "group": null, - "weight": 318, + "weight": 319, "cookies": false, "type": "", "deprecated": false, @@ -19280,7 +19362,7 @@ "x-appwrite": { "method": "createSupabaseMigration", "group": null, - "weight": 310, + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -19392,7 +19474,7 @@ "x-appwrite": { "method": "getSupabaseReport", "group": null, - "weight": 317, + "weight": 318, "cookies": false, "type": "", "deprecated": false, @@ -19503,7 +19585,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 314, + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -19561,7 +19643,7 @@ "x-appwrite": { "method": "retry", "group": null, - "weight": 319, + "weight": 320, "cookies": false, "type": "", "deprecated": false, @@ -19614,7 +19696,7 @@ "x-appwrite": { "method": "delete", "group": null, - "weight": 320, + "weight": 321, "cookies": false, "type": "", "deprecated": false, @@ -19672,7 +19754,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 199, + "weight": 200, "cookies": false, "type": "", "deprecated": false, @@ -19754,7 +19836,7 @@ "x-appwrite": { "method": "listVariables", "group": null, - "weight": 201, + "weight": 202, "cookies": false, "type": "", "deprecated": false, @@ -19802,7 +19884,7 @@ "x-appwrite": { "method": "createVariable", "group": null, - "weight": 200, + "weight": 201, "cookies": false, "type": "", "deprecated": false, @@ -19883,7 +19965,7 @@ "x-appwrite": { "method": "getVariable", "group": null, - "weight": 202, + "weight": 203, "cookies": false, "type": "", "deprecated": false, @@ -19941,7 +20023,7 @@ "x-appwrite": { "method": "updateVariable", "group": null, - "weight": 203, + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -20024,7 +20106,7 @@ "x-appwrite": { "method": "deleteVariable", "group": null, - "weight": 204, + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -20082,7 +20164,7 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 154, + "weight": 155, "cookies": false, "type": "", "deprecated": false, @@ -20153,7 +20235,7 @@ "x-appwrite": { "method": "create", "group": "projects", - "weight": 153, + "weight": 154, "cookies": false, "type": "", "deprecated": false, @@ -20300,7 +20382,7 @@ "x-appwrite": { "method": "get", "group": "projects", - "weight": 155, + "weight": 156, "cookies": false, "type": "", "deprecated": false, @@ -20358,7 +20440,7 @@ "x-appwrite": { "method": "update", "group": "projects", - "weight": 156, + "weight": 157, "cookies": false, "type": "", "deprecated": false, @@ -20483,7 +20565,7 @@ "x-appwrite": { "method": "delete", "group": "projects", - "weight": 173, + "weight": 174, "cookies": false, "type": "", "deprecated": false, @@ -20543,7 +20625,7 @@ "x-appwrite": { "method": "updateApiStatus", "group": "projects", - "weight": 160, + "weight": 161, "cookies": false, "type": "", "deprecated": false, @@ -20635,7 +20717,7 @@ "x-appwrite": { "method": "updateApiStatusAll", "group": "projects", - "weight": 161, + "weight": 162, "cookies": false, "type": "", "deprecated": false, @@ -20713,7 +20795,7 @@ "x-appwrite": { "method": "updateAuthDuration", "group": "auth", - "weight": 166, + "weight": 167, "cookies": false, "type": "", "deprecated": false, @@ -20791,7 +20873,7 @@ "x-appwrite": { "method": "updateAuthLimit", "group": "auth", - "weight": 165, + "weight": 166, "cookies": false, "type": "", "deprecated": false, @@ -20869,7 +20951,7 @@ "x-appwrite": { "method": "updateAuthSessionsLimit", "group": "auth", - "weight": 171, + "weight": 172, "cookies": false, "type": "", "deprecated": false, @@ -20947,7 +21029,7 @@ "x-appwrite": { "method": "updateMembershipsPrivacy", "group": "auth", - "weight": 164, + "weight": 165, "cookies": false, "type": "", "deprecated": false, @@ -21039,7 +21121,7 @@ "x-appwrite": { "method": "updateMockNumbers", "group": "auth", - "weight": 172, + "weight": 173, "cookies": false, "type": "", "deprecated": false, @@ -21120,7 +21202,7 @@ "x-appwrite": { "method": "updateAuthPasswordDictionary", "group": "auth", - "weight": 169, + "weight": 170, "cookies": false, "type": "", "deprecated": false, @@ -21198,7 +21280,7 @@ "x-appwrite": { "method": "updateAuthPasswordHistory", "group": "auth", - "weight": 168, + "weight": 169, "cookies": false, "type": "", "deprecated": false, @@ -21276,7 +21358,7 @@ "x-appwrite": { "method": "updatePersonalDataCheck", "group": "auth", - "weight": 170, + "weight": 171, "cookies": false, "type": "", "deprecated": false, @@ -21354,7 +21436,7 @@ "x-appwrite": { "method": "updateSessionAlerts", "group": "auth", - "weight": 163, + "weight": 164, "cookies": false, "type": "", "deprecated": false, @@ -21432,7 +21514,7 @@ "x-appwrite": { "method": "updateAuthStatus", "group": "auth", - "weight": 167, + "weight": 168, "cookies": false, "type": "", "deprecated": false, @@ -21527,7 +21609,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -21597,7 +21679,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -21680,7 +21762,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -21746,7 +21828,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -21832,7 +21914,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 371, + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -21900,7 +21982,7 @@ "x-appwrite": { "method": "createJWT", "group": "auth", - "weight": 185, + "weight": 186, "cookies": false, "type": "", "deprecated": false, @@ -21985,7 +22067,7 @@ "x-appwrite": { "method": "listKeys", "group": "keys", - "weight": 181, + "weight": 182, "cookies": false, "type": "", "deprecated": false, @@ -22043,7 +22125,7 @@ "x-appwrite": { "method": "createKey", "group": "keys", - "weight": 180, + "weight": 181, "cookies": false, "type": "", "deprecated": false, @@ -22135,7 +22217,7 @@ "x-appwrite": { "method": "getKey", "group": "keys", - "weight": 182, + "weight": 183, "cookies": false, "type": "", "deprecated": false, @@ -22201,7 +22283,7 @@ "x-appwrite": { "method": "updateKey", "group": "keys", - "weight": 183, + "weight": 184, "cookies": false, "type": "", "deprecated": false, @@ -22296,7 +22378,7 @@ "x-appwrite": { "method": "deleteKey", "group": "keys", - "weight": 184, + "weight": 185, "cookies": false, "type": "", "deprecated": false, @@ -22364,7 +22446,7 @@ "x-appwrite": { "method": "updateOAuth2", "group": "auth", - "weight": 162, + "weight": 163, "cookies": false, "type": "", "deprecated": false, @@ -22502,7 +22584,7 @@ "x-appwrite": { "method": "listPlatforms", "group": "platforms", - "weight": 187, + "weight": 188, "cookies": false, "type": "", "deprecated": false, @@ -22560,7 +22642,7 @@ "x-appwrite": { "method": "createPlatform", "group": "platforms", - "weight": 186, + "weight": 187, "cookies": false, "type": "", "deprecated": false, @@ -22680,7 +22762,7 @@ "x-appwrite": { "method": "getPlatform", "group": "platforms", - "weight": 188, + "weight": 189, "cookies": false, "type": "", "deprecated": false, @@ -22746,7 +22828,7 @@ "x-appwrite": { "method": "updatePlatform", "group": "platforms", - "weight": 189, + "weight": 190, "cookies": false, "type": "", "deprecated": false, @@ -22843,7 +22925,7 @@ "x-appwrite": { "method": "deletePlatform", "group": "platforms", - "weight": 190, + "weight": 191, "cookies": false, "type": "", "deprecated": false, @@ -22911,7 +22993,7 @@ "x-appwrite": { "method": "updateServiceStatus", "group": "projects", - "weight": 158, + "weight": 159, "cookies": false, "type": "", "deprecated": false, @@ -23012,7 +23094,7 @@ "x-appwrite": { "method": "updateServiceStatusAll", "group": "projects", - "weight": 159, + "weight": 160, "cookies": false, "type": "", "deprecated": false, @@ -23090,7 +23172,7 @@ "x-appwrite": { "method": "updateSmtp", "group": "templates", - "weight": 191, + "weight": 192, "cookies": false, "type": "", "deprecated": false, @@ -23219,7 +23301,7 @@ "x-appwrite": { "method": "createSmtpTest", "group": "templates", - "weight": 192, + "weight": 193, "cookies": false, "type": "", "deprecated": false, @@ -23357,7 +23439,7 @@ "x-appwrite": { "method": "updateTeam", "group": "projects", - "weight": 157, + "weight": 158, "cookies": false, "type": "", "deprecated": false, @@ -23433,7 +23515,7 @@ "x-appwrite": { "method": "getEmailTemplate", "group": "templates", - "weight": 194, + "weight": 195, "cookies": false, "type": "", "deprecated": false, @@ -23653,7 +23735,7 @@ "x-appwrite": { "method": "updateEmailTemplate", "group": "templates", - "weight": 196, + "weight": 197, "cookies": false, "type": "", "deprecated": false, @@ -23916,7 +23998,7 @@ "x-appwrite": { "method": "deleteEmailTemplate", "group": "templates", - "weight": 198, + "weight": 199, "cookies": false, "type": "", "deprecated": false, @@ -24136,7 +24218,7 @@ "x-appwrite": { "method": "getSmsTemplate", "group": "templates", - "weight": 193, + "weight": 194, "cookies": false, "type": "", "deprecated": false, @@ -24353,7 +24435,7 @@ "x-appwrite": { "method": "updateSmsTemplate", "group": "templates", - "weight": 195, + "weight": 196, "cookies": false, "type": "", "deprecated": false, @@ -24588,7 +24670,7 @@ "x-appwrite": { "method": "deleteSmsTemplate", "group": "templates", - "weight": 197, + "weight": 198, "cookies": false, "type": "", "deprecated": false, @@ -24805,7 +24887,7 @@ "x-appwrite": { "method": "listWebhooks", "group": "webhooks", - "weight": 175, + "weight": 176, "cookies": false, "type": "", "deprecated": false, @@ -24863,7 +24945,7 @@ "x-appwrite": { "method": "createWebhook", "group": "webhooks", - "weight": 174, + "weight": 175, "cookies": false, "type": "", "deprecated": false, @@ -24981,7 +25063,7 @@ "x-appwrite": { "method": "getWebhook", "group": "webhooks", - "weight": 176, + "weight": 177, "cookies": false, "type": "", "deprecated": false, @@ -25047,7 +25129,7 @@ "x-appwrite": { "method": "updateWebhook", "group": "webhooks", - "weight": 177, + "weight": 178, "cookies": false, "type": "", "deprecated": false, @@ -25168,7 +25250,7 @@ "x-appwrite": { "method": "deleteWebhook", "group": "webhooks", - "weight": 179, + "weight": 180, "cookies": false, "type": "", "deprecated": false, @@ -25236,7 +25318,7 @@ "x-appwrite": { "method": "updateWebhookSignature", "group": "webhooks", - "weight": 178, + "weight": 179, "cookies": false, "type": "", "deprecated": false, @@ -25302,7 +25384,7 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 291, + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -25375,7 +25457,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 432, + "weight": 433, "cookies": false, "type": "", "deprecated": false, @@ -25445,7 +25527,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 434, + "weight": 435, "cookies": false, "type": "", "deprecated": false, @@ -25528,7 +25610,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 435, + "weight": 436, "cookies": false, "type": "", "deprecated": false, @@ -25625,7 +25707,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 433, + "weight": 434, "cookies": false, "type": "", "deprecated": false, @@ -25706,7 +25788,7 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 292, + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -25759,7 +25841,7 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 293, + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -25819,7 +25901,7 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 294, + "weight": 295, "cookies": false, "type": "", "deprecated": false, @@ -25877,7 +25959,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 404, + "weight": 405, "cookies": false, "type": "", "deprecated": false, @@ -25949,7 +26031,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 402, + "weight": 403, "cookies": false, "type": "", "deprecated": false, @@ -26214,7 +26296,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 407, + "weight": 408, "cookies": false, "type": "", "deprecated": false, @@ -26263,7 +26345,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 430, + "weight": 431, "cookies": false, "type": "", "deprecated": false, @@ -26313,7 +26395,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 426, + "weight": 427, "cookies": false, "type": "", "deprecated": false, @@ -26407,7 +26489,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 427, + "weight": 428, "cookies": false, "type": "", "deprecated": false, @@ -26465,7 +26547,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 428, + "weight": 429, "cookies": false, "type": "", "deprecated": false, @@ -26535,7 +26617,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 403, + "weight": 404, "cookies": false, "type": "", "deprecated": false, @@ -26594,7 +26676,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 405, + "weight": 406, "cookies": false, "type": "", "deprecated": false, @@ -26854,7 +26936,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 406, + "weight": 407, "cookies": false, "type": "", "deprecated": false, @@ -26915,7 +26997,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 413, + "weight": 414, "cookies": false, "type": "", "deprecated": false, @@ -26992,7 +27074,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 412, + "weight": 413, "cookies": false, "type": "", "deprecated": false, @@ -27072,7 +27154,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 408, + "weight": 409, "cookies": false, "type": "upload", "deprecated": false, @@ -27172,7 +27254,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 416, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -27251,7 +27333,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 409, + "weight": 410, "cookies": false, "type": "", "deprecated": false, @@ -27357,7 +27439,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 410, + "weight": 411, "cookies": false, "type": "", "deprecated": false, @@ -27454,7 +27536,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 411, + "weight": 412, "cookies": false, "type": "", "deprecated": false, @@ -27516,7 +27598,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 414, + "weight": 415, "cookies": false, "type": "", "deprecated": false, @@ -27583,7 +27665,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 415, + "weight": 416, "cookies": false, "type": "location", "deprecated": false, @@ -27669,7 +27751,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 417, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -27736,7 +27818,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 419, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -27807,7 +27889,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 418, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -27871,7 +27953,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 420, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -27938,7 +28020,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 429, + "weight": 430, "cookies": false, "type": "", "deprecated": false, @@ -28016,7 +28098,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 423, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -28075,7 +28157,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 421, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -28165,7 +28247,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 422, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -28232,7 +28314,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 424, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -28324,7 +28406,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 425, + "weight": 426, "cookies": false, "type": "", "deprecated": false, @@ -28391,7 +28473,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 206, + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -28463,7 +28545,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 205, + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -28600,7 +28682,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 207, + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -28659,7 +28741,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 208, + "weight": 209, "cookies": false, "type": "", "deprecated": false, @@ -28792,7 +28874,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 209, + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -28851,7 +28933,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -28934,7 +29016,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -29024,7 +29106,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -29094,7 +29176,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -29183,7 +29265,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -29253,7 +29335,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -29332,7 +29414,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -29538,7 +29620,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -29617,7 +29699,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 219, + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -29687,7 +29769,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 220, + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -29765,7 +29847,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -29840,7 +29922,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -29930,7 +30012,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -29992,7 +30074,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -30067,7 +30149,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -30129,7 +30211,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 234, + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -30199,7 +30281,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -30282,7 +30364,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -30395,7 +30477,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -30465,7 +30547,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -30551,7 +30633,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -30623,7 +30705,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -30716,7 +30798,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -30776,7 +30858,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -30854,7 +30936,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 438, + "weight": 439, "cookies": false, "type": "", "deprecated": false, @@ -30922,7 +31004,7 @@ "tags": [ "tokens" ], - "description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "description": "Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "responses": { "201": { "description": "ResourceToken", @@ -30934,12 +31016,12 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 436, + "weight": 437, "cookies": false, "type": "", "deprecated": false, "demo": "tokens\/create-file-token.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -31018,7 +31100,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 437, + "weight": 438, "cookies": false, "type": "", "deprecated": false, @@ -31078,7 +31160,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 439, + "weight": 440, "cookies": false, "type": "", "deprecated": false, @@ -31149,7 +31231,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 440, + "weight": 441, "cookies": false, "type": "", "deprecated": false, @@ -31209,7 +31291,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 244, + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -31281,7 +31363,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 235, + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -31376,7 +31458,7 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 238, + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -31467,7 +31549,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 236, + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -31556,7 +31638,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 252, + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -31625,7 +31707,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 275, + "weight": 276, "cookies": false, "type": "", "deprecated": false, @@ -31686,7 +31768,7 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 237, + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -31777,7 +31859,7 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 240, + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -31868,7 +31950,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 241, + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -31994,7 +32076,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 242, + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -32106,7 +32188,7 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 239, + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -32216,7 +32298,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 277, + "weight": 278, "cookies": false, "type": "", "deprecated": false, @@ -32286,7 +32368,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 245, + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -32340,7 +32422,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 273, + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -32401,7 +32483,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 258, + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -32480,7 +32562,7 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 276, + "weight": 277, "cookies": false, "type": "", "deprecated": false, @@ -32562,7 +32644,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 254, + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -32642,7 +32724,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 250, + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -32713,7 +32795,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 249, + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -32795,7 +32877,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 263, + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -32869,7 +32951,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 268, + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -32941,7 +33023,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 264, + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -33000,7 +33082,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 265, + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -33059,7 +33141,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 267, + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -33118,7 +33200,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 266, + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -33179,7 +33261,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 256, + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -33258,7 +33340,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 257, + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -33337,7 +33419,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 259, + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -33414,7 +33496,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 246, + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -33473,7 +33555,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 261, + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -33550,7 +33632,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 248, + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -33609,7 +33691,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 269, + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -33663,7 +33745,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 272, + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -33719,7 +33801,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 271, + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -33788,7 +33870,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 253, + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -33865,7 +33947,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 251, + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -33937,7 +34019,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 243, + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -34048,7 +34130,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 247, + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -34116,7 +34198,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 262, + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -34206,7 +34288,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 274, + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -34276,7 +34358,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 270, + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -34358,7 +34440,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 260, + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -34437,7 +34519,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 255, + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -34516,7 +34598,7 @@ "x-appwrite": { "method": "createRepositoryDetection", "group": "repositories", - "weight": 281, + "weight": 282, "cookies": false, "type": "", "deprecated": false, @@ -34611,7 +34693,7 @@ "x-appwrite": { "method": "listRepositories", "group": "repositories", - "weight": 282, + "weight": 283, "cookies": false, "type": "", "deprecated": false, @@ -34692,7 +34774,7 @@ "x-appwrite": { "method": "createRepository", "group": "repositories", - "weight": 283, + "weight": 284, "cookies": false, "type": "", "deprecated": false, @@ -34775,7 +34857,7 @@ "x-appwrite": { "method": "getRepository", "group": "repositories", - "weight": 284, + "weight": 285, "cookies": false, "type": "", "deprecated": false, @@ -34841,7 +34923,7 @@ "x-appwrite": { "method": "listRepositoryBranches", "group": "repositories", - "weight": 285, + "weight": 286, "cookies": false, "type": "", "deprecated": false, @@ -34907,7 +34989,7 @@ "x-appwrite": { "method": "getRepositoryContents", "group": "repositories", - "weight": 280, + "weight": 281, "cookies": false, "type": "", "deprecated": false, @@ -34981,7 +35063,7 @@ "x-appwrite": { "method": "updateExternalDeployments", "group": "repositories", - "weight": 290, + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -35065,7 +35147,7 @@ "x-appwrite": { "method": "listInstallations", "group": "installations", - "weight": 287, + "weight": 288, "cookies": false, "type": "", "deprecated": false, @@ -35136,7 +35218,7 @@ "x-appwrite": { "method": "getInstallation", "group": "installations", - "weight": 288, + "weight": 289, "cookies": false, "type": "", "deprecated": false, @@ -35189,7 +35271,7 @@ "x-appwrite": { "method": "deleteInstallation", "group": "installations", - "weight": 289, + "weight": 290, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index d2924041c0..c033008417 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -7649,29 +7649,6 @@ } ], "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." - }, - { - "name": "createDocuments", - "auth": { - "Key": [] - }, - "parameters": [ - "databaseId", - "collectionId", - "documents" - ], - "required": [ - "databaseId", - "collectionId", - "documents" - ], - "responses": [ - { - "code": 201, - "model": "#\/definitions\/documentList" - } - ], - "description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } ], "auth": { @@ -7769,7 +7746,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 115, + "weight": 116, "cookies": false, "type": "", "deprecated": false, @@ -7855,7 +7832,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 114, + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -7947,7 +7924,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 117, + "weight": 118, "cookies": false, "type": "", "deprecated": false, @@ -8101,6 +8078,113 @@ } ] }, + "put": { + "summary": "Upsert document", + "operationId": "databasesUpsertDocument", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "responses": { + "200": { + "description": "Document", + "schema": { + "$ref": "#\/definitions\/document" + } + } + }, + "x-appwrite": { + "method": "upsertDocument", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Session": [] + } + }, + "security": [ + { + "Project": [], + "Session": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", + "default": {}, + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "default": null, + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + }, + "required": [ + "data" + ] + } + } + ] + }, "patch": { "summary": "Update document", "operationId": "databasesUpdateDocument", @@ -8224,7 +8308,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 116, + "weight": 117, "cookies": false, "type": "", "deprecated": false, @@ -8657,7 +8741,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 375, + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -8730,7 +8814,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 372, + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -8980,7 +9064,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 377, + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -9030,7 +9114,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 378, + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -9081,7 +9165,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 373, + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -9141,7 +9225,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 374, + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -9387,7 +9471,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 376, + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -9449,7 +9533,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 381, + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -9527,7 +9611,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 382, + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -9608,7 +9692,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 379, + "weight": 380, "cookies": false, "type": "upload", "deprecated": false, @@ -9701,7 +9785,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 387, + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -9787,7 +9871,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 384, + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -9894,7 +9978,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 385, + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -9991,7 +10075,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 380, + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -10054,7 +10138,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 383, + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -10122,7 +10206,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 386, + "weight": 387, "cookies": false, "type": "location", "deprecated": false, @@ -10209,7 +10293,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 388, + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -10277,7 +10361,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 391, + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -10353,7 +10437,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 389, + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -10472,7 +10556,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 390, + "weight": 391, "cookies": false, "type": "", "deprecated": false, @@ -10539,7 +10623,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 392, + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -10607,7 +10691,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 397, + "weight": 398, "cookies": false, "type": "", "deprecated": false, @@ -10667,7 +10751,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 395, + "weight": 396, "cookies": false, "type": "", "deprecated": false, @@ -10758,7 +10842,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 396, + "weight": 397, "cookies": false, "type": "", "deprecated": false, @@ -10826,7 +10910,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 398, + "weight": 399, "cookies": false, "type": "", "deprecated": false, @@ -10919,7 +11003,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 399, + "weight": 400, "cookies": false, "type": "", "deprecated": false, @@ -10989,7 +11073,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 305, + "weight": 306, "cookies": false, "type": "graphql", "deprecated": false, @@ -11065,7 +11149,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 304, + "weight": 305, "cookies": false, "type": "graphql", "deprecated": false, @@ -11139,7 +11223,7 @@ "x-appwrite": { "method": "get", "group": "health", - "weight": 129, + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -11189,7 +11273,7 @@ "x-appwrite": { "method": "getAntivirus", "group": "health", - "weight": 150, + "weight": 151, "cookies": false, "type": "", "deprecated": false, @@ -11239,7 +11323,7 @@ "x-appwrite": { "method": "getCache", "group": "health", - "weight": 132, + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -11289,7 +11373,7 @@ "x-appwrite": { "method": "getCertificate", "group": "health", - "weight": 137, + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -11348,7 +11432,7 @@ "x-appwrite": { "method": "getDB", "group": "health", - "weight": 131, + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -11398,7 +11482,7 @@ "x-appwrite": { "method": "getPubSub", "group": "health", - "weight": 133, + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -11448,7 +11532,7 @@ "x-appwrite": { "method": "getQueueBuilds", "group": "queue", - "weight": 139, + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -11509,7 +11593,7 @@ "x-appwrite": { "method": "getQueueCertificates", "group": "queue", - "weight": 138, + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -11570,7 +11654,7 @@ "x-appwrite": { "method": "getQueueDatabases", "group": "queue", - "weight": 140, + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -11640,7 +11724,7 @@ "x-appwrite": { "method": "getQueueDeletes", "group": "queue", - "weight": 141, + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -11701,7 +11785,7 @@ "x-appwrite": { "method": "getFailedJobs", "group": "queue", - "weight": 151, + "weight": 152, "cookies": false, "type": "", "deprecated": false, @@ -11786,7 +11870,7 @@ "x-appwrite": { "method": "getQueueFunctions", "group": "queue", - "weight": 145, + "weight": 146, "cookies": false, "type": "", "deprecated": false, @@ -11847,7 +11931,7 @@ "x-appwrite": { "method": "getQueueLogs", "group": "queue", - "weight": 136, + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -11908,7 +11992,7 @@ "x-appwrite": { "method": "getQueueMails", "group": "queue", - "weight": 142, + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -11969,7 +12053,7 @@ "x-appwrite": { "method": "getQueueMessaging", "group": "queue", - "weight": 143, + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -12030,7 +12114,7 @@ "x-appwrite": { "method": "getQueueMigrations", "group": "queue", - "weight": 144, + "weight": 145, "cookies": false, "type": "", "deprecated": false, @@ -12091,7 +12175,7 @@ "x-appwrite": { "method": "getQueueStatsResources", "group": "queue", - "weight": 146, + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -12152,7 +12236,7 @@ "x-appwrite": { "method": "getQueueUsage", "group": "queue", - "weight": 147, + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -12213,7 +12297,7 @@ "x-appwrite": { "method": "getQueueWebhooks", "group": "queue", - "weight": 135, + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -12274,7 +12358,7 @@ "x-appwrite": { "method": "getStorage", "group": "storage", - "weight": 149, + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -12324,7 +12408,7 @@ "x-appwrite": { "method": "getStorageLocal", "group": "storage", - "weight": 148, + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -12374,7 +12458,7 @@ "x-appwrite": { "method": "getTime", "group": "health", - "weight": 134, + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -12424,7 +12508,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 121, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -12478,7 +12562,7 @@ "x-appwrite": { "method": "listCodes", "group": null, - "weight": 122, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -12532,7 +12616,7 @@ "x-appwrite": { "method": "listContinents", "group": null, - "weight": 126, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -12586,7 +12670,7 @@ "x-appwrite": { "method": "listCountries", "group": null, - "weight": 123, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -12640,7 +12724,7 @@ "x-appwrite": { "method": "listCountriesEU", "group": null, - "weight": 124, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -12694,7 +12778,7 @@ "x-appwrite": { "method": "listCountriesPhones", "group": null, - "weight": 125, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -12748,7 +12832,7 @@ "x-appwrite": { "method": "listCurrencies", "group": null, - "weight": 127, + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -12802,7 +12886,7 @@ "x-appwrite": { "method": "listLanguages", "group": null, - "weight": 128, + "weight": 129, "cookies": false, "type": "", "deprecated": false, @@ -12856,7 +12940,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 359, + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -12932,7 +13016,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 356, + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -13091,7 +13175,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -13247,7 +13331,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 358, + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -13443,7 +13527,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -13638,7 +13722,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 357, + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -13757,7 +13841,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -13872,7 +13956,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -13928,7 +14012,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -13989,7 +14073,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 360, + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -14062,7 +14146,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -14135,7 +14219,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 331, + "weight": 332, "cookies": false, "type": "", "deprecated": false, @@ -14211,7 +14295,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 330, + "weight": 331, "cookies": false, "type": "", "deprecated": false, @@ -14327,7 +14411,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 343, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -14441,7 +14525,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 329, + "weight": 330, "cookies": false, "type": "", "deprecated": false, @@ -14533,7 +14617,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 342, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -14623,7 +14707,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 321, + "weight": 322, "cookies": false, "type": "", "deprecated": false, @@ -14751,7 +14835,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 334, + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -14877,7 +14961,7 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 324, + "weight": 325, "cookies": false, "type": "", "deprecated": false, @@ -14981,7 +15065,7 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 337, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -15083,7 +15167,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 322, + "weight": 323, "cookies": false, "type": "", "deprecated": false, @@ -15199,7 +15283,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 335, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -15313,7 +15397,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 323, + "weight": 324, "cookies": false, "type": "", "deprecated": false, @@ -15473,7 +15557,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 336, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -15630,7 +15714,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 325, + "weight": 326, "cookies": false, "type": "", "deprecated": false, @@ -15734,7 +15818,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 338, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -15836,7 +15920,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 326, + "weight": 327, "cookies": false, "type": "", "deprecated": false, @@ -15940,7 +16024,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 339, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -16042,7 +16126,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 327, + "weight": 328, "cookies": false, "type": "", "deprecated": false, @@ -16146,7 +16230,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 340, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -16248,7 +16332,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 328, + "weight": 329, "cookies": false, "type": "", "deprecated": false, @@ -16352,7 +16436,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 341, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -16452,7 +16536,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 333, + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -16508,7 +16592,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 344, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -16569,7 +16653,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 332, + "weight": 333, "cookies": false, "type": "", "deprecated": false, @@ -16642,7 +16726,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 353, + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -16715,7 +16799,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 346, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -16789,7 +16873,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 345, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -16878,7 +16962,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 348, + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -16939,7 +17023,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 349, + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -17019,7 +17103,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 350, + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -17080,7 +17164,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 347, + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -17153,7 +17237,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 352, + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -17235,7 +17319,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 351, + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -17325,7 +17409,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 354, + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -17389,7 +17473,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 355, + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -17462,7 +17546,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 404, + "weight": 405, "cookies": false, "type": "", "deprecated": false, @@ -17535,7 +17619,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 402, + "weight": 403, "cookies": false, "type": "", "deprecated": false, @@ -17801,7 +17885,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 407, + "weight": 408, "cookies": false, "type": "", "deprecated": false, @@ -17851,7 +17935,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 430, + "weight": 431, "cookies": false, "type": "", "deprecated": false, @@ -17902,7 +17986,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 403, + "weight": 404, "cookies": false, "type": "", "deprecated": false, @@ -17962,7 +18046,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 405, + "weight": 406, "cookies": false, "type": "", "deprecated": false, @@ -18223,7 +18307,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 406, + "weight": 407, "cookies": false, "type": "", "deprecated": false, @@ -18285,7 +18369,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 413, + "weight": 414, "cookies": false, "type": "", "deprecated": false, @@ -18363,7 +18447,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 412, + "weight": 413, "cookies": false, "type": "", "deprecated": false, @@ -18444,7 +18528,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 408, + "weight": 409, "cookies": false, "type": "upload", "deprecated": false, @@ -18545,7 +18629,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 416, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -18625,7 +18709,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 409, + "weight": 410, "cookies": false, "type": "", "deprecated": false, @@ -18732,7 +18816,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 410, + "weight": 411, "cookies": false, "type": "", "deprecated": false, @@ -18830,7 +18914,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 411, + "weight": 412, "cookies": false, "type": "", "deprecated": false, @@ -18893,7 +18977,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 414, + "weight": 415, "cookies": false, "type": "", "deprecated": false, @@ -18961,7 +19045,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 415, + "weight": 416, "cookies": false, "type": "location", "deprecated": false, @@ -19048,7 +19132,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 417, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -19116,7 +19200,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 419, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -19188,7 +19272,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 418, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -19253,7 +19337,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 420, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -19321,7 +19405,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 423, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -19381,7 +19465,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 421, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -19472,7 +19556,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 422, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -19540,7 +19624,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 424, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -19633,7 +19717,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 425, + "weight": 426, "cookies": false, "type": "", "deprecated": false, @@ -19701,7 +19785,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 206, + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -19774,7 +19858,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 205, + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -19912,7 +19996,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 207, + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -19972,7 +20056,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 208, + "weight": 209, "cookies": false, "type": "", "deprecated": false, @@ -20106,7 +20190,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 209, + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -20166,7 +20250,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 211, + "weight": 212, "cookies": false, "type": "", "deprecated": false, @@ -20251,7 +20335,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 210, + "weight": 211, "cookies": false, "type": "upload", "deprecated": false, @@ -20343,7 +20427,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 212, + "weight": 213, "cookies": false, "type": "", "deprecated": false, @@ -20415,7 +20499,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 217, + "weight": 218, "cookies": false, "type": "", "deprecated": false, @@ -20506,7 +20590,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 218, + "weight": 219, "cookies": false, "type": "", "deprecated": false, @@ -20578,7 +20662,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 214, + "weight": 215, "cookies": false, "type": "location", "deprecated": false, @@ -20659,7 +20743,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 213, + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -20867,7 +20951,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 215, + "weight": 216, "cookies": false, "type": "location", "deprecated": false, @@ -20948,7 +21032,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 222, + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -21025,7 +21109,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 221, + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -21117,7 +21201,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 223, + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -21181,7 +21265,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 225, + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -21258,7 +21342,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 227, + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -21322,7 +21406,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 229, + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -21407,7 +21491,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 228, + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -21522,7 +21606,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 230, + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -21594,7 +21678,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 231, + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -21682,7 +21766,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 233, + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -21756,7 +21840,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 232, + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -21851,7 +21935,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 224, + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -21913,7 +21997,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 226, + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -21993,7 +22077,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 438, + "weight": 439, "cookies": false, "type": "", "deprecated": false, @@ -22062,7 +22146,7 @@ "tags": [ "tokens" ], - "description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "description": "Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "responses": { "201": { "description": "ResourceToken", @@ -22074,12 +22158,12 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 436, + "weight": 437, "cookies": false, "type": "", "deprecated": false, "demo": "tokens\/create-file-token.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a request URL search parameter.", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -22159,7 +22243,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 437, + "weight": 438, "cookies": false, "type": "", "deprecated": false, @@ -22220,7 +22304,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 439, + "weight": 440, "cookies": false, "type": "", "deprecated": false, @@ -22292,7 +22376,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 440, + "weight": 441, "cookies": false, "type": "", "deprecated": false, @@ -22353,7 +22437,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 244, + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -22426,7 +22510,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 235, + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -22522,7 +22606,7 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 238, + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -22614,7 +22698,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 236, + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -22704,7 +22788,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 252, + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -22774,7 +22858,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 275, + "weight": 276, "cookies": false, "type": "", "deprecated": false, @@ -22836,7 +22920,7 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 237, + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -22928,7 +23012,7 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 240, + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -23020,7 +23104,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 241, + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -23147,7 +23231,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 242, + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -23260,7 +23344,7 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 239, + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -23371,7 +23455,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 245, + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -23426,7 +23510,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 273, + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -23488,7 +23572,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 258, + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -23568,7 +23652,7 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 276, + "weight": 277, "cookies": false, "type": "", "deprecated": false, @@ -23651,7 +23735,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 254, + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -23732,7 +23816,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 250, + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -23804,7 +23888,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 249, + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -23887,7 +23971,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 263, + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -23962,7 +24046,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 268, + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -24035,7 +24119,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 264, + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -24095,7 +24179,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 265, + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -24155,7 +24239,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 267, + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -24215,7 +24299,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 266, + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -24277,7 +24361,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 256, + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -24357,7 +24441,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 257, + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -24437,7 +24521,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 259, + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -24515,7 +24599,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 246, + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -24575,7 +24659,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 261, + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -24653,7 +24737,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 248, + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -24713,7 +24797,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 269, + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -24768,7 +24852,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 272, + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -24825,7 +24909,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 271, + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -24895,7 +24979,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 253, + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -24973,7 +25057,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 251, + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -25046,7 +25130,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 243, + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -25158,7 +25242,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 247, + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -25227,7 +25311,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 262, + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -25318,7 +25402,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 274, + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -25389,7 +25473,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 270, + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -25472,7 +25556,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 260, + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -25552,7 +25636,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 255, + "weight": 256, "cookies": false, "type": "", "deprecated": false, diff --git a/app/config/templates/site.php b/app/config/templates/site.php index ab6d5c4d4d..a853955a97 100644 --- a/app/config/templates/site.php +++ b/app/config/templates/site.php @@ -1351,4 +1351,23 @@ return [ 'providerVersion' => '0.3.*', 'variables' => [], ], + [ + 'key' => 'gallery-for-lynx', + 'name' => 'Lynx gallery', + 'tagline' => 'A Lynx website showcasing gallery with smooth animations.', + 'score' => 1, // 0 to 10 based on looks of screenshot (avoid 1,2,3,8,9,10 if possible) + 'useCases' => [UseCases::STARTER], + 'screenshotDark' => $url . '/images/sites/templates/gallery-for-lynx-dark.png', + 'screenshotLight' => $url . '/images/sites/templates/gallery-for-lynx-light.png', + 'frameworks' => [ + getFramework('LYNX', [ + 'providerRootDirectory' => './lynx/gallery', + ]), + ], + 'vcsProvider' => 'github', + 'providerRepositoryId' => 'templates-for-sites', + 'providerOwner' => 'appwrite', + 'providerVersion' => '0.3.*', + 'variables' => [] + ], ]; diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 62ddd41daa..352503b730 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -1347,7 +1347,11 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/string ->inject('dbForProject') ->inject('queueForDatabase') ->inject('queueForEvents') - ->action(function (string $databaseId, string $collectionId, string $key, ?int $size, ?bool $required, ?string $default, bool $array, bool $encrypt, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { + ->inject('plan') + ->action(function (string $databaseId, string $collectionId, string $key, ?int $size, ?bool $required, ?string $default, bool $array, bool $encrypt, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents, array $plan) { + if ($encrypt && !empty($plan) && !($plan['databasesAllowEncrypt'] ?? false)) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Encrypted string attributes are not available on your plan. Please upgrade to create encrypted string attributes.'); + } // Ensure attribute default is within required size $validator = new Text($size, 0); if (!is_null($default) && !$validator->isValid($default)) { @@ -3785,7 +3789,12 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $document = $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId, $queries); + try { + $document = $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId, $queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + if ($document->isEmpty()) { throw new Exception(Exception::DOCUMENT_NOT_FOUND); } @@ -4202,6 +4211,244 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/documents/:docum $response->dynamic($document, Response::MODEL_DOCUMENT); }); +App::put('/v1/databases/:databaseId/collections/:collectionId/documents/:documentId') + ->desc('Upsert document') + ->groups(['api', 'database']) + ->label('event', 'databases.[databaseId].collections.[collectionId].documents.[documentId].upsert') + ->label('scope', 'documents.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'document.upsert') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}/document/{response.$id}') + ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT * 2) + ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'upsertDocument', + description: '/docs/references/databases/upsert-document.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DOCUMENT, + ) + ], + contentType: ContentType::JSON + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID.') + ->param('documentId', '', new CustomId(), 'Document ID.') + ->param('data', [], new JSON(), 'Document data as JSON object. Include all required attributes of the document to be created or updated.') + ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) + ->inject('requestTimestamp') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->inject('queueForStatsUsage') + ->action(function (string $databaseId, string $collectionId, string $documentId, string|array $data, ?array $permissions, ?\DateTime $requestTimestamp, Response $response, Database $dbForProject, Event $queueForEvents, StatsUsage $queueForStatsUsage) { + $data = (\is_string($data)) ? \json_decode($data, true) : $data; // Cast to JSON array + + if (empty($data) && \is_null($permissions)) { + throw new Exception(Exception::DOCUMENT_MISSING_PAYLOAD); + } + + $isAPIKey = Auth::isAppUser(Authorization::getRoles()); + $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + if ($database->isEmpty() || (!$database->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { + throw new Exception(Exception::DATABASE_NOT_FOUND); + } + + $collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId)); + if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { + throw new Exception(Exception::COLLECTION_NOT_FOUND); + } + + // Map aggregate permissions into the multiple permissions they represent. + $permissions = Permission::aggregate($permissions, [ + Database::PERMISSION_READ, + Database::PERMISSION_UPDATE, + Database::PERMISSION_DELETE, + ]); + + // Users can only manage their own roles, API keys and Admin users can manage any + $roles = Authorization::getRoles(); + if (!$isAPIKey && !$isPrivilegedUser && !\is_null($permissions)) { + foreach (Database::PERMISSIONS as $type) { + foreach ($permissions as $permission) { + $permission = Permission::parse($permission); + if ($permission->getPermission() != $type) { + continue; + } + $role = (new Role( + $permission->getRole(), + $permission->getIdentifier(), + $permission->getDimension() + ))->toString(); + if (!Authorization::isRole($role)) { + throw new Exception(Exception::USER_UNAUTHORIZED, 'Permissions must be one of: (' . \implode(', ', $roles) . ')'); + } + } + } + } + + $data['$id'] = $documentId; + $data['$permissions'] = $permissions; + $newDocument = new Document($data); + + $operations = 0; + + $setCollection = (function (Document $collection, Document $document) use (&$setCollection, $dbForProject, $database, &$operations) { + + $operations++; + + $relationships = \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ); + + foreach ($relationships as $relationship) { + $related = $document->getAttribute($relationship->getAttribute('key')); + + if (empty($related)) { + continue; + } + + $isList = \is_array($related) && \array_values($related) === $related; + + if ($isList) { + $relations = $related; + } else { + $relations = [$related]; + } + + $relatedCollectionId = $relationship->getAttribute('relatedCollection'); + $relatedCollection = Authorization::skip( + fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $relatedCollectionId) + ); + + foreach ($relations as &$relation) { + // If the relation is an array it can be either update or create a child document. + if ( + \is_array($relation) + && \array_values($relation) !== $relation + && !isset($relation['$id']) + ) { + $relation['$id'] = ID::unique(); + $relation = new Document($relation); + } + if ($relation instanceof Document) { + $oldDocument = Authorization::skip(fn () => $dbForProject->getDocument( + 'database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId(), + $relation->getId() + )); + $relation->removeAttribute('$collectionId'); + $relation->removeAttribute('$databaseId'); + // Attribute $collection is required for Utopia. + $relation->setAttribute( + '$collection', + 'database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId() + ); + + if ($oldDocument->isEmpty()) { + if (isset($relation['$id']) && $relation['$id'] === 'unique()') { + $relation['$id'] = ID::unique(); + } + } + $setCollection($relatedCollection, $relation); + } + } + + if ($isList) { + $document->setAttribute($relationship->getAttribute('key'), \array_values($relations)); + } else { + $document->setAttribute($relationship->getAttribute('key'), \reset($relations)); + } + } + }); + + $setCollection($collection, $newDocument); + + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, \max(1, $operations)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES), \max(1, $operations)); + + $upserted = []; + try { + $modified = $dbForProject->createOrUpdateDocuments( + 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + [$newDocument], + onNext: function (Document $document) use (&$upserted) { + $upserted[] = $document; + }, + ); + } catch (ConflictException) { + throw new Exception(Exception::DOCUMENT_UPDATE_CONFLICT); + } catch (DuplicateException) { + throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS); + } catch (RelationshipException $e) { + throw new Exception(Exception::RELATIONSHIP_VALUE_INVALID, $e->getMessage()); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } + + $document = $upserted[0]; + // Add $collectionId and $databaseId for all documents + $processDocument = function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database) { + $document->setAttribute('$databaseId', $database->getId()); + $document->setAttribute('$collectionId', $collection->getId()); + + $relationships = \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ); + + foreach ($relationships as $relationship) { + $related = $document->getAttribute($relationship->getAttribute('key')); + + if (empty($related)) { + continue; + } + if (!\is_array($related)) { + $related = [$related]; + } + + $relatedCollectionId = $relationship->getAttribute('relatedCollection'); + $relatedCollection = Authorization::skip( + fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $relatedCollectionId) + ); + + foreach ($related as $relation) { + if ($relation instanceof Document) { + $processDocument($relatedCollection, $relation); + } + } + } + }; + + $processDocument($collection, $document); + + $relationships = \array_map( + fn ($document) => $document->getAttribute('key'), + \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ) + ); + + $queueForEvents + ->setParam('databaseId', $databaseId) + ->setParam('collectionId', $collection->getId()) + ->setParam('documentId', $document->getId()) + ->setContext('collection', $collection) + ->setContext('database', $database) + ->setPayload($response->getPayload(), sensitive: $relationships); + + $response->dynamic($document, Response::MODEL_DOCUMENT); + }); + App::patch('/v1/databases/:databaseId/collections/:collectionId/documents') ->desc('Update documents') ->groups(['api', 'database']) diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index 11fc4cc244..b95eb432a1 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -3,13 +3,16 @@ use Appwrite\ClamAV\Network; use Appwrite\Event\Event; use Appwrite\Extend\Exception; +use Appwrite\PubSub\Adapter\Pool as PubSubPool; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response; use Utopia\App; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Document; use Utopia\Domains\Validator\PublicDomain; use Utopia\Pools\Group; @@ -34,8 +37,8 @@ App::get('/v1/health') namespace: 'health', group: 'health', name: 'get', - auth: [AuthType::KEY], description: '/docs/references/health/get.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -70,11 +73,11 @@ App::get('/v1/health/db') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'health', name: 'getDB', description: '/docs/references/health/get-db.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -86,8 +89,8 @@ App::get('/v1/health/db') ->inject('response') ->inject('pools') ->action(function (Response $response, Group $pools) { - $output = []; + $failures = []; $configs = [ 'Console.DB' => Config::getParam('pools-console'), @@ -97,7 +100,7 @@ App::get('/v1/health/db') foreach ($configs as $key => $config) { foreach ($config as $database) { try { - $adapter = $pools->get($database)->pop()->getResource(); + $adapter = new DatabasePool($pools->get($database)); $checkStart = \microtime(true); @@ -108,16 +111,16 @@ App::get('/v1/health/db') 'ping' => \round((\microtime(true) - $checkStart) / 1000) ]); } else { - $failure[] = $database; + $failures[] = $database; } - } catch (\Throwable $th) { - $failure[] = $database; + } catch (\Throwable) { + $failures[] = $database; } } } - if (!empty($failure)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failure)); + if (!empty($failures)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures)); } $response->dynamic(new Document([ @@ -131,11 +134,11 @@ App::get('/v1/health/cache') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'health', name: 'getCache', description: '/docs/references/health/get-cache.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -147,44 +150,39 @@ App::get('/v1/health/cache') ->inject('response') ->inject('pools') ->action(function (Response $response, Group $pools) { - $output = []; + $failures = []; $configs = [ 'Cache' => Config::getParam('pools-cache'), ]; foreach ($configs as $key => $config) { - foreach ($config as $database) { + foreach ($config as $cache) { try { - /** @var \Utopia\Cache\Adapter $adapter */ - $adapter = $pools->get($database)->pop()->getResource(); + $adapter = new CachePool($pools->get($cache)); $checkStart = \microtime(true); if ($adapter->ping()) { $output[] = new Document([ - 'name' => $key . " ($database)", + 'name' => $key . " ($cache)", 'status' => 'pass', 'ping' => \round((\microtime(true) - $checkStart) / 1000) ]); } else { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); + $failures[] = $cache; } - } catch (\Throwable $th) { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); + } catch (\Throwable) { + $failures[] = $cache; } } } + if (!empty($failures)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Cache failure on: ' . implode(", ", $failures)); + } + $response->dynamic(new Document([ 'statuses' => $output, 'total' => count($output), @@ -196,11 +194,11 @@ App::get('/v1/health/pubsub') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'health', name: 'getPubSub', description: '/docs/references/health/get-pubsub.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -212,44 +210,39 @@ App::get('/v1/health/pubsub') ->inject('response') ->inject('pools') ->action(function (Response $response, Group $pools) { - $output = []; + $failures = []; $configs = [ 'PubSub' => Config::getParam('pools-pubsub'), ]; foreach ($configs as $key => $config) { - foreach ($config as $database) { + foreach ($config as $pubsub) { try { - /** @var \Appwrite\PubSub\Adapter $adapter */ - $adapter = $pools->get($database)->pop()->getResource(); + $adapter = new PubSubPool($pools->get($pubsub)); $checkStart = \microtime(true); if ($adapter->ping()) { $output[] = new Document([ - 'name' => $key . " ($database)", + 'name' => $key . " ($pubsub)", 'status' => 'pass', 'ping' => \round((\microtime(true) - $checkStart) / 1000) ]); } else { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); + $failures[] = $pubsub; } - } catch (\Throwable $th) { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); + } catch (\Throwable) { + $failures[] = $pubsub; } } } + if (!empty($failures)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Pubsub failure on: ' . implode(", ", $failures)); + } + $response->dynamic(new Document([ 'statuses' => $output, 'total' => count($output), @@ -261,11 +254,11 @@ App::get('/v1/health/time') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'health', name: 'getTime', description: '/docs/references/health/get-time.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -325,11 +318,11 @@ App::get('/v1/health/queue/webhooks') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueWebhooks', description: '/docs/references/health/get-queue-webhooks.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -351,18 +344,18 @@ App::get('/v1/health/queue/webhooks') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/logs') ->desc('Get logs queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueLogs', description: '/docs/references/health/get-queue-logs.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -384,18 +377,18 @@ App::get('/v1/health/queue/logs') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/certificate') ->desc('Get the SSL certificate for a domain') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'health', name: 'getCertificate', description: '/docs/references/health/get-certificate.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -441,18 +434,18 @@ App::get('/v1/health/certificate') 'validTo' => $certificatePayload['validTo_time_t'], 'signatureTypeSN' => $certificatePayload['signatureTypeSN'], ]), Response::MODEL_HEALTH_CERTIFICATE); - }, ['response']); + }); App::get('/v1/health/queue/certificates') ->desc('Get certificates queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueCertificates', description: '/docs/references/health/get-queue-certificates.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -474,18 +467,18 @@ App::get('/v1/health/queue/certificates') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/builds') ->desc('Get builds queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueBuilds', description: '/docs/references/health/get-queue-builds.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -507,18 +500,18 @@ App::get('/v1/health/queue/builds') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/databases') ->desc('Get databases queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueDatabases', description: '/docs/references/health/get-queue-databases.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -541,18 +534,18 @@ App::get('/v1/health/queue/databases') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/deletes') ->desc('Get deletes queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueDeletes', description: '/docs/references/health/get-queue-deletes.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -574,18 +567,18 @@ App::get('/v1/health/queue/deletes') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/mails') ->desc('Get mails queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueMails', description: '/docs/references/health/get-queue-mails.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -607,18 +600,18 @@ App::get('/v1/health/queue/mails') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/messaging') ->desc('Get messaging queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueMessaging', description: '/docs/references/health/get-queue-messaging.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -640,18 +633,18 @@ App::get('/v1/health/queue/messaging') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/migrations') ->desc('Get migrations queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueMigrations', description: '/docs/references/health/get-queue-migrations.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -673,18 +666,18 @@ App::get('/v1/health/queue/migrations') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/functions') ->desc('Get functions queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueFunctions', description: '/docs/references/health/get-queue-functions.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -706,18 +699,18 @@ App::get('/v1/health/queue/functions') } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/stats-resources') ->desc('Get stats resources queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueStatsResources', description: '/docs/references/health/get-queue-stats-resources.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -746,11 +739,11 @@ App::get('/v1/health/queue/stats-usage') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getQueueUsage', description: '/docs/references/health/get-queue-stats-usage.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -779,11 +772,11 @@ App::get('/v1/health/storage/local') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'storage', name: 'getStorageLocal', description: '/docs/references/health/get-storage-local.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -829,11 +822,11 @@ App::get('/v1/health/storage') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'storage', name: 'getStorage', description: '/docs/references/health/get-storage.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -878,11 +871,11 @@ App::get('/v1/health/anti-virus') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'health', name: 'getAntivirus', description: '/docs/references/health/get-storage-anti-virus.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, @@ -924,11 +917,11 @@ App::get('/v1/health/queue/failed/:name') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( - auth: [AuthType::KEY], namespace: 'health', group: 'queue', name: 'getFailedJobs', description: '/docs/references/health/get-failed-queue-jobs.md', + auth: [AuthType::KEY], responses: [ new SDKResponse( code: Response::STATUS_CODE_OK, diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index e158cf52fb..5eda8e9a0e 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -24,6 +24,7 @@ use Utopia\App; use Utopia\Audit\Audit; use Utopia\Cache\Cache; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; @@ -223,7 +224,7 @@ App::post('/v1/projects') $sharedTables = $sharedTablesV1 || $sharedTablesV2; if (!$sharedTablesV2) { - $adapter = $pools->get($dsn->getHost())->pop()->getResource(); + $adapter = new DatabasePool($pools->get($dsn->getHost())); $dbForProject = new Database($adapter, $cache); if ($sharedTables) { diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index ee6279c3bc..b3b8fb906a 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -1241,12 +1241,15 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/download') if (!empty($source)) { if (!empty($rangeHeader)) { $response->send(substr($source, $start, ($end - $start + 1))); + return; } $response->send($source); + return; } if (!empty($rangeHeader)) { $response->send($deviceForFiles->read($path, $start, ($end - $start + 1))); + return; } if ($size > APP_STORAGE_READ_BUFFER) { @@ -1407,6 +1410,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/view') if (!empty($source)) { if (!empty($rangeHeader)) { $response->send(substr($source, $start, ($end - $start + 1))); + return; } $response->send($source); return; @@ -1558,6 +1562,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/push') if (!empty($source)) { if (!empty($rangeHeader)) { $response->send(substr($source, $start, ($end - $start + 1))); + return; } $response->send($source); return; diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 6211faf90e..571c7ddca7 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -252,7 +252,6 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId 'providerCommitUrl' => $providerCommitUrl, 'providerCommentId' => \strval($latestCommentId), 'providerBranch' => $providerBranch, - 'search' => implode(' ', [$deploymentId, $resource->getAttribute('entrypoint', '')]), 'activate' => $activate, ]))); diff --git a/app/controllers/general.php b/app/controllers/general.php index 26874d4f66..bff701792e 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -452,16 +452,33 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw $endpoint = $protocol . '://' . $hostname . "/v1"; // Appwrite vars + if ($type === 'function') { + $vars = \array_merge($vars, [ + 'APPWRITE_FUNCTION_API_ENDPOINT' => $endpoint, + 'APPWRITE_FUNCTION_ID' => $resource->getId(), + 'APPWRITE_FUNCTION_NAME' => $resource->getAttribute('name'), + 'APPWRITE_FUNCTION_DEPLOYMENT' => $deployment->getId(), + 'APPWRITE_FUNCTION_PROJECT_ID' => $project->getId(), + 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'] ?? '', + 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'] ?? '', + 'APPWRITE_FUNCTION_CPUS' => $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT, + 'APPWRITE_FUNCTION_MEMORY' => $spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, + ]); + } elseif ($type === 'site') { + $vars = \array_merge($vars, [ + 'APPWRITE_SITE_API_ENDPOINT' => $endpoint, + 'APPWRITE_SITE_ID' => $resource->getId(), + 'APPWRITE_SITE_NAME' => $resource->getAttribute('name'), + 'APPWRITE_SITE_DEPLOYMENT' => $deployment->getId(), + 'APPWRITE_SITE_PROJECT_ID' => $project->getId(), + 'APPWRITE_SITE_RUNTIME_NAME' => $runtime['name'] ?? '', + 'APPWRITE_SITE_RUNTIME_VERSION' => $runtime['version'] ?? '', + 'APPWRITE_SITE_CPUS' => $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT, + 'APPWRITE_SITE_MEMORY' => $spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, + ]); + } + $vars = \array_merge($vars, [ - 'APPWRITE_FUNCTION_API_ENDPOINT' => $endpoint, - 'APPWRITE_FUNCTION_ID' => $resource->getId(), - 'APPWRITE_FUNCTION_NAME' => $resource->getAttribute('name'), - 'APPWRITE_FUNCTION_DEPLOYMENT' => $deployment->getId(), - 'APPWRITE_FUNCTION_PROJECT_ID' => $project->getId(), - 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'] ?? '', - 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'] ?? '', - 'APPWRITE_FUNCTION_CPUS' => $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT, - 'APPWRITE_FUNCTION_MEMORY' => $spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, 'APPWRITE_VERSION' => APP_VERSION_STABLE, 'APPWRITE_REGION' => $project->getAttribute('region'), 'APPWRITE_DEPLOYMENT_TYPE' => $deployment->getAttribute('type', ''), diff --git a/app/http.php b/app/http.php index e413c5d248..6064dfdd4c 100644 --- a/app/http.php +++ b/app/http.php @@ -15,9 +15,11 @@ use Utopia\Audit\Audit; use Utopia\CLI\Console; use Utopia\Compression\Compression; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; +use Utopia\Database\Exception\Duplicate as DuplicateException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; @@ -170,7 +172,7 @@ function createDatabase(App $app, string $resourceKey, string $dbName, array $co $sleep = 1; $attempts = 0; - do { + while (true) { try { $attempts++; $resource = $app->getResource($resourceKey); @@ -179,13 +181,12 @@ function createDatabase(App $app, string $resourceKey, string $dbName, array $co break; // exit loop on success } catch (\Exception $e) { Console::warning(" └── Database not ready. Retrying connection ({$attempts})..."); - $pools->reclaim(); if ($attempts >= $max) { throw new \Exception(' └── Failed to connect to database: ' . $e->getMessage()); } sleep($sleep); } - } while ($attempts < $max); + } Console::success("[Setup] - $dbName database init started..."); @@ -368,11 +369,7 @@ $http->on(Constant::EVENT_START, function (Server $http) use ($payloadSize, $reg $cache = $app->getResource('cache'); foreach ($sharedTablesV2 as $hostname) { - $adapter = $pools - ->get($hostname) - ->pop() - ->getResource(); - + $adapter = new DatabasePool($pools->get($hostname)); $dbForProject = (new Database($adapter, $cache)) ->setDatabase('appwrite') ->setSharedTables(true) @@ -382,7 +379,7 @@ $http->on(Constant::EVENT_START, function (Server $http) use ($payloadSize, $reg try { Console::success('[Setup] - Creating project database: ' . $hostname . '...'); $dbForProject->create(); - } catch (Duplicate) { + } catch (DuplicateException) { Console::success('[Setup] - Skip: metadata table already exists'); } @@ -408,7 +405,6 @@ $http->on(Constant::EVENT_START, function (Server $http) use ($payloadSize, $reg } } - $pools->reclaim(); Console::success('[Setup] - Server database init completed...'); }); @@ -523,6 +519,7 @@ $http->on(Constant::EVENT_REQUEST, function (SwooleRequest $swooleRequest, Swool Console::error('[Error] Message: ' . $th->getMessage()); Console::error('[Error] File: ' . $th->getFile()); Console::error('[Error] Line: ' . $th->getLine()); + Console::error('[Error] Trace: ' . $th->getTraceAsString()); $swooleResponse->setStatusCode(500); @@ -540,8 +537,6 @@ $http->on(Constant::EVENT_REQUEST, function (SwooleRequest $swooleRequest, Swool ]; $swooleResponse->end(\json_encode($output)); - } finally { - $pools->reclaim(); } }); diff --git a/app/init/constants.php b/app/init/constants.php index 7686759719..86787e3bab 100644 --- a/app/init/constants.php +++ b/app/init/constants.php @@ -38,7 +38,7 @@ const APP_RESOURCE_TOKEN_ACCESS = 24 * 60 * 60; // 24 hours const APP_FILE_ACCESS = 24 * 60 * 60; // 24 hours const APP_CACHE_UPDATE = 24 * 60 * 60; // 24 hours const APP_CACHE_BUSTER = 4319; -const APP_VERSION_STABLE = '1.7.0'; +const APP_VERSION_STABLE = '1.7.2'; const APP_DATABASE_ATTRIBUTE_EMAIL = 'email'; const APP_DATABASE_ATTRIBUTE_ENUM = 'enum'; const APP_DATABASE_ATTRIBUTE_IP = 'ip'; diff --git a/app/init/registers.php b/app/init/registers.php index 1adaaf35ce..415730f936 100644 --- a/app/init/registers.php +++ b/app/init/registers.php @@ -216,13 +216,13 @@ $register->set('pools', function () { 'mysql', 'mariadb' => function () use ($dsnHost, $dsnPort, $dsnUser, $dsnPass, $dsnDatabase) { return new PDOProxy(function () use ($dsnHost, $dsnPort, $dsnUser, $dsnPass, $dsnDatabase) { - return new PDO("mysql:host={$dsnHost};port={$dsnPort};dbname={$dsnDatabase};charset=utf8mb4", $dsnUser, $dsnPass, array( + return new PDO("mysql:host={$dsnHost};port={$dsnPort};dbname={$dsnDatabase};charset=utf8mb4", $dsnUser, $dsnPass, [ \PDO::ATTR_TIMEOUT => 3, // Seconds \PDO::ATTR_PERSISTENT => false, \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, \PDO::ATTR_EMULATE_PREPARES => true, \PDO::ATTR_STRINGIFY_FETCHES => true - )); + ]); }); }, 'redis' => function () use ($dsnHost, $dsnPort, $dsnPass) { diff --git a/app/init/resources.php b/app/init/resources.php index e96432ad70..910e8369db 100644 --- a/app/init/resources.php +++ b/app/init/resources.php @@ -24,10 +24,12 @@ use Appwrite\Utopia\Request; use Executor\Executor; use Utopia\Abuse\Adapters\TimeLimit\Redis as TimeLimitRedis; use Utopia\App; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Cache\Adapter\Sharding; use Utopia\Cache\Cache; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\DateTime as DatabaseDateTime; use Utopia\Database\Document; @@ -38,6 +40,7 @@ use Utopia\DSN\DSN; use Utopia\Locale\Locale; use Utopia\Logger\Log; use Utopia\Pools\Group; +use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Queue\Publisher; use Utopia\Storage\Device; use Utopia\Storage\Device\AWS; @@ -74,10 +77,10 @@ App::setResource('localeCodes', function () { // Queues App::setResource('publisher', function (Group $pools) { - return $pools->get('publisher')->pop()->getResource(); + return new BrokerPool(publisher: $pools->get('publisher')); }, ['pools']); App::setResource('consumer', function (Group $pools) { - return $pools->get('consumer')->pop()->getResource(); + return new BrokerPool(consumer: $pools->get('consumer')); }, ['pools']); App::setResource('queueForMessaging', function (Publisher $publisher) { return new Messaging($publisher); @@ -331,12 +334,8 @@ App::setResource('dbForProject', function (Group $pools, Database $dbForPlatform $dsn = new DSN('mysql://' . $project->getAttribute('database')); } - $dbAdapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $database = new Database($adapter, $cache); $database ->setMetadata('host', \gethostname()) @@ -362,12 +361,8 @@ App::setResource('dbForProject', function (Group $pools, Database $dbForPlatform }, ['pools', 'dbForPlatform', 'cache', 'project']); App::setResource('dbForPlatform', function (Group $pools, Cache $cache) { - $dbAdapter = $pools - ->get('console') - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); + $adapter = new DatabasePool($pools->get('console')); + $database = new Database($adapter, $cache); $database ->setNamespace('_console') @@ -380,7 +375,7 @@ App::setResource('dbForPlatform', function (Group $pools, Cache $cache) { }, ['pools', 'cache']); App::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform, $cache) { - $databases = []; // TODO: @Meldiron This should probably be responsibility of utopia-php/pools + $databases = []; return function (Document $project) use ($pools, $dbForPlatform, $cache, &$databases) { if ($project->isEmpty() || $project->getId() === 'console') { @@ -422,12 +417,8 @@ App::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform return $database; } - $dbAdapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $database = new Database($adapter, $cache); $databases[$dsn->getHost()] = $database; $configure($database); @@ -437,21 +428,15 @@ App::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform App::setResource('getLogsDB', function (Group $pools, Cache $cache) { $database = null; - return function (?Document $project = null) use ($pools, $cache, $database) { + + return function (?Document $project = null) use ($pools, $cache, &$database) { if ($database !== null && $project !== null && !$project->isEmpty() && $project->getId() !== 'console') { $database->setTenant($project->getInternalId()); return $database; } - $dbAdapter = $pools - ->get('logs') - ->pop() - ->getResource(); - - $database = new Database( - $dbAdapter, - $cache - ); + $adapter = new DatabasePool($pools->get('logs')); + $database = new Database($adapter, $cache); $database ->setSharedTables(true) @@ -475,10 +460,7 @@ App::setResource('cache', function (Group $pools) { $adapters = []; foreach ($list as $value) { - $adapters[] = $pools - ->get($value) - ->pop() - ->getResource(); + $adapters[] = new CachePool($pools->get($value)); } return new Cache(new Sharding($adapters)); diff --git a/app/realtime.php b/app/realtime.php index 86f9c85fdd..7e6fc0e311 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -5,6 +5,7 @@ use Appwrite\Extend\Exception; use Appwrite\Extend\Exception as AppwriteException; use Appwrite\Messaging\Adapter\Realtime; use Appwrite\Network\Validator\Origin; +use Appwrite\PubSub\Adapter\Pool as PubSubPool; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Swoole\Http\Request as SwooleRequest; @@ -15,10 +16,12 @@ use Swoole\Timer; use Utopia\Abuse\Abuse; use Utopia\Abuse\Adapters\TimeLimit\Redis as TimeLimitRedis; use Utopia\App; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Cache\Adapter\Sharding; use Utopia\Cache\Cache; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; @@ -28,13 +31,15 @@ use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\DSN\DSN; use Utopia\Logger\Log; +use Utopia\Pools\Group; +use Utopia\Registry\Registry; use Utopia\System\System; use Utopia\Telemetry\Adapter\None as NoTelemetry; use Utopia\WebSocket\Adapter; use Utopia\WebSocket\Server; /** - * @var \Utopia\Registry\Registry $register + * @var Registry $register */ require_once __DIR__ . '/init.php'; @@ -46,17 +51,17 @@ if (!function_exists('getConsoleDB')) { { global $register; - /** @var \Utopia\Pools\Group $pools */ + static $database = null; + + if ($database !== null) { + return $database; + } + + /** @var Group $pools */ $pools = $register->get('pools'); - $dbAdapter = $pools - ->get('console') - ->pop() - ->getResource() - ; - - $database = new Database($dbAdapter, getCache()); - + $adapter = new DatabasePool($pools->get('console')); + $database = new Database($adapter, getCache()); $database ->setNamespace('_console') ->setMetadata('host', \gethostname()) @@ -72,7 +77,13 @@ if (!function_exists('getProjectDB')) { { global $register; - /** @var \Utopia\Pools\Group $pools */ + static $databases = []; + + if (isset($databases[$project->getInternalId()])) { + return $databases[$project->getInternalId()]; + } + + /** @var Group $pools */ $pools = $register->get('pools'); if ($project->isEmpty() || $project->getId() === 'console') { @@ -86,11 +97,7 @@ if (!function_exists('getProjectDB')) { $dsn = new DSN('mysql://' . $project->getAttribute('database')); } - $adapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - + $adapter = new DatabasePool($pools->get($dsn->getHost())); $database = new Database($adapter, getCache()); $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); @@ -111,7 +118,7 @@ if (!function_exists('getProjectDB')) { ->setMetadata('host', \gethostname()) ->setMetadata('project', $project->getId()); - return $database; + return $databases[$project->getInternalId()] = $database; } } @@ -121,20 +128,22 @@ if (!function_exists('getCache')) { { global $register; - $pools = $register->get('pools'); /** @var \Utopia\Pools\Group $pools */ + static $cache = null; + + if ($cache !== null) { + return $cache; + } + + $pools = $register->get('pools'); /** @var Group $pools */ $list = Config::getParam('pools-cache', []); $adapters = []; foreach ($list as $value) { - $adapters[] = $pools - ->get($value) - ->pop() - ->getResource() - ; + $adapters[] = new CachePool($pools->get($value)); } - return new Cache(new Sharding($adapters)); + return $cache = new Cache(new Sharding($adapters)); } } @@ -142,6 +151,12 @@ if (!function_exists('getCache')) { if (!function_exists('getRedis')) { function getRedis(): \Redis { + static $redis = null; + + if ($redis !== null) { + return $redis; + } + $host = System::getEnv('_APP_REDIS_HOST', 'localhost'); $port = System::getEnv('_APP_REDIS_PORT', 6379); $pass = System::getEnv('_APP_REDIS_PASS', ''); @@ -160,21 +175,39 @@ if (!function_exists('getRedis')) { if (!function_exists('getTimelimit')) { function getTimelimit(): TimeLimitRedis { - return new TimeLimitRedis("", 0, 1, getRedis()); + static $timelimit = null; + + if ($timelimit !== null) { + return $timelimit; + } + + return $timelimit = new TimeLimitRedis("", 0, 1, getRedis()); } } if (!function_exists('getRealtime')) { function getRealtime(): Realtime { - return new Realtime(); + static $realtime = null; + + if ($realtime !== null) { + return $realtime; + } + + return $realtime = new Realtime(); } } if (!function_exists('getTelemetry')) { function getTelemetry(int $workerId): Utopia\Telemetry\Adapter { - return new NoTelemetry(); + static $telemetry = null; + + if ($telemetry !== null) { + return $telemetry; + } + + return $telemetry = new NoTelemetry(); } } @@ -273,7 +306,6 @@ $server->onStart(function () use ($stats, $register, $containerId, &$statsDocume sleep(DATABASE_RECONNECT_SLEEP); } } while (true); - $register->get('pools')->reclaim(); }); /** @@ -299,9 +331,7 @@ $server->onStart(function () use ($stats, $register, $containerId, &$statsDocume Authorization::skip(fn () => $database->updateDocument('realtime', $statsDocument->getId(), $statsDocument)); } catch (Throwable $th) { - call_user_func($logError, $th, "updateWorkerDocument"); - } finally { - $register->get('pools')->reclaim(); + $logError($th, "updateWorkerDocument"); } }); } @@ -370,8 +400,6 @@ $server->onWorkerStart(function (int $workerId) use ($server, $register, $stats, 'data' => $event['data'] ])); } - - $register->get('pools')->reclaim(); } } /** @@ -407,8 +435,8 @@ $server->onWorkerStart(function (int $workerId) use ($server, $register, $stats, } $start = time(); - /** @var \Appwrite\PubSub\Adapter $pubsub */ - $pubsub = $register->get('pools')->get('pubsub')->pop()->getResource(); + $pubsub = new PubSubPool($register->get('pools')->get('pubsub')); + if ($pubsub->ping(true)) { $attempts = 0; Console::success('Pub/sub connection established (worker: ' . $workerId . ')'); @@ -436,8 +464,6 @@ $server->onWorkerStart(function (int $workerId) use ($server, $register, $stats, $realtime->unsubscribe($connection); $realtime->subscribe($projectId, $connection, $roles, $channels); - - $register->get('pools')->reclaim(); } } @@ -463,14 +489,12 @@ $server->onWorkerStart(function (int $workerId) use ($server, $register, $stats, } }); } catch (Throwable $th) { - call_user_func($logError, $th, "pubSubConnection"); + $logError($th, "pubSubConnection"); Console::error('Pub/sub error: ' . $th->getMessage()); $attempts++; sleep(DATABASE_RECONNECT_SLEEP); continue; - } finally { - $register->get('pools')->reclaim(); } } @@ -572,7 +596,7 @@ $server->onOpen(function (int $connection, SwooleRequest $request) use ($server, $stats->incr($project->getId(), 'connections'); $stats->incr($project->getId(), 'connectionsTotal'); } catch (Throwable $th) { - call_user_func($logError, $th, "initServer"); + $logError($th, "initServer"); // Handle SQL error code is 'HY000' $code = $th->getCode(); @@ -596,8 +620,6 @@ $server->onOpen(function (int $connection, SwooleRequest $request) use ($server, Console::error('[Error] Code: ' . $response['data']['code']); Console::error('[Error] Message: ' . $response['data']['message']); } - } finally { - $register->get('pools')->reclaim(); } }); @@ -696,8 +718,6 @@ $server->onMessage(function (int $connection, string $message) use ($server, $re if ($th->getCode() === 1008) { $server->close($connection, $th->getCode()); } - } finally { - $register->get('pools')->reclaim(); } }); diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index 6f6fac3f77..f53a6f2545 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -177,7 +177,7 @@ $image = $this->getParam('image', ''); appwrite-console: <<: *x-logging container_name: appwrite-console - image: /console:6.0.1 + image: /console:6.0.8 restart: unless-stopped networks: - appwrite diff --git a/app/worker.php b/app/worker.php index 0dceb4f937..79cfffc8bb 100644 --- a/app/worker.php +++ b/app/worker.php @@ -20,10 +20,12 @@ use Appwrite\Platform\Appwrite; use Executor\Executor; use Swoole\Runtime; use Utopia\Abuse\Adapters\TimeLimit\Redis as TimeLimitRedis; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Cache\Adapter\Sharding; use Utopia\Cache\Cache; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; @@ -33,6 +35,7 @@ use Utopia\Logger\Log; use Utopia\Logger\Logger; use Utopia\Platform\Service; use Utopia\Pools\Group; +use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Queue\Message; use Utopia\Queue\Publisher; use Utopia\Queue\Server; @@ -41,21 +44,17 @@ use Utopia\System\System; use Utopia\Telemetry\Adapter\None as NoTelemetry; Authorization::disable(); -Runtime::enableCoroutine(SWOOLE_HOOK_ALL); +Runtime::enableCoroutine(); Server::setResource('register', fn () => $register); Server::setResource('dbForPlatform', function (Cache $cache, Registry $register) { $pools = $register->get('pools'); - $database = $pools - ->get('console') - ->pop() - ->getResource(); + $adapter = new DatabasePool($pools->get('console')); + $dbForPlatform = new Database($adapter, $cache); + $dbForPlatform->setNamespace('_console'); - $adapter = new Database($database, $cache); - $adapter->setNamespace('_console'); - - return $adapter; + return $dbForPlatform; }, ['cache', 'register']); Server::setResource('project', function (Message $message, Database $dbForPlatform) { @@ -83,20 +82,9 @@ Server::setResource('dbForProject', function (Cache $cache, Registry $register, $dsn = new DSN('mysql://' . $project->getAttribute('database')); } - $adapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - + $adapter = new DatabasePool($pools->get($dsn->getHost())); $database = new Database($adapter, $cache); - try { - $dsn = new DSN($project->getAttribute('database')); - } catch (\InvalidArgumentException) { - // TODO: Temporary until all projects are using shared tables - $dsn = new DSN('mysql://' . $project->getAttribute('database')); - } - $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); if (\in_array($dsn->getHost(), $sharedTables)) { @@ -151,12 +139,8 @@ Server::setResource('getProjectDB', function (Group $pools, Database $dbForPlatf return $database; } - $dbAdapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $database = new Database($adapter, $cache); $databases[$dsn->getHost()] = $database; @@ -188,15 +172,8 @@ Server::setResource('getLogsDB', function (Group $pools, Cache $cache) { return $database; } - $dbAdapter = $pools - ->get('logs') - ->pop() - ->getResource(); - - $database = new Database( - $dbAdapter, - $cache - ); + $adapter = new DatabasePool($pools->get('logs')); + $database = new Database($adapter, $cache); $database ->setSharedTables(true) @@ -234,11 +211,7 @@ Server::setResource('cache', function (Registry $register) { $adapters = []; foreach ($list as $value) { - $adapters[] = $pools - ->get($value) - ->pop() - ->getResource() - ; + $adapters[] = new CachePool($pools->get($value)); } return new Cache(new Sharding($adapters)); @@ -268,11 +241,11 @@ Server::setResource('timelimit', function (\Redis $redis) { Server::setResource('log', fn () => new Log()); Server::setResource('publisher', function (Group $pools) { - return $pools->get('publisher')->pop()->getResource(); + return new BrokerPool(publisher: $pools->get('publisher')); }, ['pools']); Server::setResource('consumer', function (Group $pools) { - return $pools->get('consumer')->pop()->getResource(); + return new BrokerPool(consumer: $pools->get('consumer')); }, ['pools']); Server::setResource('queueForStatsUsage', function (Publisher $publisher) { @@ -463,13 +436,6 @@ try { $worker = $platform->getWorker(); -$worker - ->shutdown() - ->inject('pools') - ->action(function (Group $pools) { - $pools->reclaim(); - }); - $worker ->error() ->inject('error') @@ -477,8 +443,7 @@ $worker ->inject('log') ->inject('pools') ->inject('project') - ->action(function (Throwable $error, ?Logger $logger, Log $log, Group $pools, Document $project) use ($queueName) { - $pools->reclaim(); + ->action(function (Throwable $error, ?Logger $logger, Log $log, Group $pools, Document $project) use ($worker, $queueName) { $version = System::getEnv('_APP_VERSION', 'UNKNOWN'); if ($logger) { diff --git a/composer.json b/composer.json index d9109f40f8..7e445cd36b 100644 --- a/composer.json +++ b/composer.json @@ -54,7 +54,7 @@ "utopia-php/config": "0.2.*", "utopia-php/detector": "0.1.*", "utopia-php/database": "0.69.*", - "utopia-php/domains": "0.5.*", + "utopia-php/domains": "0.8.0", "utopia-php/dsn": "0.2.1", "utopia-php/framework": "0.33.*", "utopia-php/fetch": "0.4.*", @@ -67,7 +67,7 @@ "utopia-php/platform": "0.7.*", "utopia-php/pools": "0.8.*", "utopia-php/preloader": "0.2.*", - "utopia-php/queue": "0.9.*", + "utopia-php/queue": "0.10.*", "utopia-php/registry": "0.5.*", "utopia-php/storage": "0.18.*", "utopia-php/swoole": "0.8.*", diff --git a/composer.lock b/composer.lock index a495c50034..f36b815777 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "735023e2b70ce47fe65985f195b257bd", + "content-hash": "9f5de64d73e2ef73d796fa64f2baf232", "packages": [ { "name": "adhocore/jwt", @@ -3555,16 +3555,16 @@ }, { "name": "utopia-php/detector", - "version": "0.1.4", + "version": "0.1.5", "source": { "type": "git", "url": "https://github.com/utopia-php/detector.git", - "reference": "895a4147463965b5f9cbc083b764b6476f547879" + "reference": "b5d6ba51352485b524589bc0ee8d07a9efafe718" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/detector/zipball/895a4147463965b5f9cbc083b764b6476f547879", - "reference": "895a4147463965b5f9cbc083b764b6476f547879", + "url": "https://api.github.com/repos/utopia-php/detector/zipball/b5d6ba51352485b524589bc0ee8d07a9efafe718", + "reference": "b5d6ba51352485b524589bc0ee8d07a9efafe718", "shasum": "" }, "require": { @@ -3594,30 +3594,31 @@ ], "support": { "issues": "https://github.com/utopia-php/detector/issues", - "source": "https://github.com/utopia-php/detector/tree/0.1.4" + "source": "https://github.com/utopia-php/detector/tree/0.1.5" }, - "time": "2025-04-09T11:50:45+00:00" + "time": "2025-05-19T11:01:28+00:00" }, { "name": "utopia-php/domains", - "version": "0.5.0", + "version": "0.8.0", "source": { "type": "git", "url": "https://github.com/utopia-php/domains.git", - "reference": "bf07f60326f8389f378ddf6fcde86217e5cfe18c" + "reference": "650463d2a1525273eb03223c48da9fb1a768bbf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/domains/zipball/bf07f60326f8389f378ddf6fcde86217e5cfe18c", - "reference": "bf07f60326f8389f378ddf6fcde86217e5cfe18c", + "url": "https://api.github.com/repos/utopia-php/domains/zipball/650463d2a1525273eb03223c48da9fb1a768bbf7", + "reference": "650463d2a1525273eb03223c48da9fb1a768bbf7", "shasum": "" }, "require": { "php": ">=8.0", - "utopia-php/framework": "0.*.*" + "utopia-php/framework": "0.33.*" }, "require-dev": { "laravel/pint": "1.2.*", + "phpstan/phpstan": "1.9.x-dev", "phpunit/phpunit": "^9.3" }, "type": "library", @@ -3654,9 +3655,9 @@ ], "support": { "issues": "https://github.com/utopia-php/domains/issues", - "source": "https://github.com/utopia-php/domains/tree/0.5.0" + "source": "https://github.com/utopia-php/domains/tree/0.8.0" }, - "time": "2024-01-03T22:04:27+00:00" + "time": "2025-05-16T10:03:59+00:00" }, { "name": "utopia-php/dsn", @@ -3746,16 +3747,16 @@ }, { "name": "utopia-php/framework", - "version": "0.33.19", + "version": "0.33.20", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "64c7b7bb8a8595ffe875fa8d4b7705684dbf46c0" + "reference": "e1c7ab4e0b5b0a9a70256b1e00912e101e76a131" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/64c7b7bb8a8595ffe875fa8d4b7705684dbf46c0", - "reference": "64c7b7bb8a8595ffe875fa8d4b7705684dbf46c0", + "url": "https://api.github.com/repos/utopia-php/http/zipball/e1c7ab4e0b5b0a9a70256b1e00912e101e76a131", + "reference": "e1c7ab4e0b5b0a9a70256b1e00912e101e76a131", "shasum": "" }, "require": { @@ -3787,9 +3788,9 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/0.33.19" + "source": "https://github.com/utopia-php/http/tree/0.33.20" }, - "time": "2025-03-06T11:37:49+00:00" + "time": "2025-05-18T23:51:21+00:00" }, { "name": "utopia-php/image", @@ -4104,16 +4105,16 @@ }, { "name": "utopia-php/platform", - "version": "0.7.4", + "version": "0.7.7", "source": { "type": "git", "url": "https://github.com/utopia-php/platform.git", - "reference": "a5b93d8177702ec458c3af9137663133c012b71b" + "reference": "8c43cd866148a7c4c495e3401268429e338004b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/platform/zipball/a5b93d8177702ec458c3af9137663133c012b71b", - "reference": "a5b93d8177702ec458c3af9137663133c012b71b", + "url": "https://api.github.com/repos/utopia-php/platform/zipball/8c43cd866148a7c4c495e3401268429e338004b3", + "reference": "8c43cd866148a7c4c495e3401268429e338004b3", "shasum": "" }, "require": { @@ -4122,11 +4123,11 @@ "php": ">=8.0", "utopia-php/cli": "0.15.*", "utopia-php/framework": "0.33.*", - "utopia-php/queue": "0.9.*" + "utopia-php/queue": "0.10.*" }, "require-dev": { - "laravel/pint": "1.2.*", - "phpunit/phpunit": "^9.3" + "laravel/pint": "1.*", + "phpunit/phpunit": "9.*" }, "type": "library", "autoload": { @@ -4148,9 +4149,9 @@ ], "support": { "issues": "https://github.com/utopia-php/platform/issues", - "source": "https://github.com/utopia-php/platform/tree/0.7.4" + "source": "https://github.com/utopia-php/platform/tree/0.7.7" }, - "time": "2025-03-13T13:00:12+00:00" + "time": "2025-05-20T09:23:44+00:00" }, { "name": "utopia-php/pools", @@ -4259,16 +4260,16 @@ }, { "name": "utopia-php/queue", - "version": "0.9.1", + "version": "0.10.0", "source": { "type": "git", "url": "https://github.com/utopia-php/queue.git", - "reference": "32b6f84c55aae761db5a5ae76cc91ca8dbc8bc32" + "reference": "0eccc559168ea72241c39a4c482d868314666be1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/queue/zipball/32b6f84c55aae761db5a5ae76cc91ca8dbc8bc32", - "reference": "32b6f84c55aae761db5a5ae76cc91ca8dbc8bc32", + "url": "https://api.github.com/repos/utopia-php/queue/zipball/0eccc559168ea72241c39a4c482d868314666be1", + "reference": "0eccc559168ea72241c39a4c482d868314666be1", "shasum": "" }, "require": { @@ -4277,6 +4278,7 @@ "utopia-php/cli": "0.15.*", "utopia-php/fetch": "0.4.*", "utopia-php/framework": "0.33.*", + "utopia-php/pools": "0.8.*", "utopia-php/telemetry": "0.1.*" }, "require-dev": { @@ -4318,9 +4320,9 @@ ], "support": { "issues": "https://github.com/utopia-php/queue/issues", - "source": "https://github.com/utopia-php/queue/tree/0.9.1" + "source": "https://github.com/utopia-php/queue/tree/0.10.0" }, - "time": "2025-03-28T19:49:36+00:00" + "time": "2025-04-17T12:15:52+00:00" }, { "name": "utopia-php/registry", @@ -8240,7 +8242,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": {}, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { @@ -8264,5 +8266,5 @@ "platform-overrides": { "php": "8.3" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.3.0" } diff --git a/docker-compose.yml b/docker-compose.yml index 7b0eca52a1..6c7900ac78 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -213,7 +213,7 @@ services: appwrite-console: <<: *x-logging container_name: appwrite-console - image: appwrite/console:6.0.1 + image: appwrite/console:6.0.8 restart: unless-stopped networks: - appwrite @@ -951,7 +951,7 @@ services: hostname: exc1 <<: *x-logging stop_signal: SIGINT - image: openruntimes/executor:0.7.14 + image: openruntimes/executor:0.7.16 restart: unless-stopped networks: - appwrite diff --git a/docs/examples/1.7.x/client-android/java/databases/create-documents.md b/docs/examples/1.7.x/client-android/java/databases/create-documents.md new file mode 100644 index 0000000000..dbdc64f111 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/databases/create-documents.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setKey(""); // + +Databases databases = new Databases(client); + +databases.createDocuments( + "", // databaseId + "", // collectionId + listOf(), // documents + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/databases/upsert-document.md b/docs/examples/1.7.x/client-android/java/databases/upsert-document.md new file mode 100644 index 0000000000..868576b982 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/databases/upsert-document.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Databases databases = new Databases(client); + +databases.upsertDocument( + "", // databaseId + "", // collectionId + "", // documentId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/kotlin/databases/create-documents.md b/docs/examples/1.7.x/client-android/kotlin/databases/create-documents.md new file mode 100644 index 0000000000..33635b4e4c --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/databases/create-documents.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setKey("") // + +val databases = Databases(client) + +val result = databases.createDocuments( + databaseId = "", + collectionId = "", + documents = listOf(), +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/databases/upsert-document.md b/docs/examples/1.7.x/client-android/kotlin/databases/upsert-document.md new file mode 100644 index 0000000000..a31dfc8797 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/databases/upsert-document.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val databases = Databases(client) + +val result = databases.upsertDocument( + databaseId = "", + collectionId = "", + documentId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-apple/examples/databases/create-documents.md b/docs/examples/1.7.x/client-apple/examples/databases/create-documents.md new file mode 100644 index 0000000000..b47247a359 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setKey("") // + +let databases = Databases(client) + +let documentList = try await databases.createDocuments( + databaseId: "", + collectionId: "", + documents: [] +) + diff --git a/docs/examples/1.7.x/client-apple/examples/databases/upsert-document.md b/docs/examples/1.7.x/client-apple/examples/databases/upsert-document.md new file mode 100644 index 0000000000..3e1bf83a66 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/databases/upsert-document.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let databases = Databases(client) + +let document = try await databases.upsertDocument( + databaseId: "", + collectionId: "", + documentId: "", + data: [:], + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/client-flutter/examples/databases/create-documents.md b/docs/examples/1.7.x/client-flutter/examples/databases/create-documents.md new file mode 100644 index 0000000000..953553749a --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/databases/create-documents.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setKey(''); // + +Databases databases = Databases(client); + +DocumentList result = await databases.createDocuments( + databaseId: '', + collectionId: '', + documents: [], +); diff --git a/docs/examples/1.7.x/client-flutter/examples/databases/upsert-document.md b/docs/examples/1.7.x/client-flutter/examples/databases/upsert-document.md new file mode 100644 index 0000000000..398a99cb1d --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/databases/upsert-document.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Databases databases = Databases(client); + +Document result = await databases.upsertDocument( + databaseId: '', + collectionId: '', + documentId: '', + data: {}, + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.7.x/client-graphql/examples/databases/create-documents.md b/docs/examples/1.7.x/client-graphql/examples/databases/create-documents.md new file mode 100644 index 0000000000..3e3a50f3ab --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/databases/create-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesCreateDocuments( + databaseId: "", + collectionId: "", + documents: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/databases/upsert-document.md b/docs/examples/1.7.x/client-graphql/examples/databases/upsert-document.md new file mode 100644 index 0000000000..2ccab1c490 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/databases/upsert-document.md @@ -0,0 +1,17 @@ +mutation { + databasesUpsertDocument( + databaseId: "", + collectionId: "", + documentId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.7.x/client-react-native/examples/databases/create-documents.md b/docs/examples/1.7.x/client-react-native/examples/databases/create-documents.md new file mode 100644 index 0000000000..08663b6dbe --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setKey(''); // + +const databases = new Databases(client); + +const result = await databases.createDocuments( + '', // databaseId + '', // collectionId + [] // documents +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/databases/upsert-document.md b/docs/examples/1.7.x/client-react-native/examples/databases/upsert-document.md new file mode 100644 index 0000000000..ae423d12a7 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/databases/upsert-document.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.upsertDocument( + '', // databaseId + '', // collectionId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-rest/examples/databases/create-documents.md b/docs/examples/1.7.x/client-rest/examples/databases/create-documents.md new file mode 100644 index 0000000000..e4d2b956e0 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/databases/create-documents.md @@ -0,0 +1,11 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "documents": [] +} diff --git a/docs/examples/1.7.x/client-rest/examples/databases/upsert-document.md b/docs/examples/1.7.x/client-rest/examples/databases/upsert-document.md new file mode 100644 index 0000000000..f834802b7e --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/databases/upsert-document.md @@ -0,0 +1,12 @@ +PUT /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.7.x/client-web/examples/databases/create-documents.md b/docs/examples/1.7.x/client-web/examples/databases/create-documents.md new file mode 100644 index 0000000000..ec6bdf244a --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setKey(''); // + +const databases = new Databases(client); + +const result = await databases.createDocuments( + '', // databaseId + '', // collectionId + [] // documents +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/databases/upsert-document.md b/docs/examples/1.7.x/client-web/examples/databases/upsert-document.md new file mode 100644 index 0000000000..cfefe06242 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/databases/upsert-document.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.upsertDocument( + '', // databaseId + '', // collectionId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/console-cli/examples/account/create-anonymous-session.md new file mode 100644 index 0000000000..a7eb9c5be3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-anonymous-session.md @@ -0,0 +1 @@ +appwrite account createAnonymousSession diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-email-password-session.md b/docs/examples/1.7.x/console-cli/examples/account/create-email-password-session.md new file mode 100644 index 0000000000..951293b4b2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-email-password-session.md @@ -0,0 +1,3 @@ +appwrite account createEmailPasswordSession \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-email-token.md b/docs/examples/1.7.x/console-cli/examples/account/create-email-token.md new file mode 100644 index 0000000000..0aaf2476c9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-email-token.md @@ -0,0 +1,4 @@ +appwrite account createEmailToken \ + --userId \ + --email email@example.com \ + diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-j-w-t.md b/docs/examples/1.7.x/console-cli/examples/account/create-j-w-t.md new file mode 100644 index 0000000000..7b5337993d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-j-w-t.md @@ -0,0 +1 @@ +appwrite account createJWT diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/console-cli/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 0000000000..69203b085d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,5 @@ +appwrite account createMagicURLToken \ + --userId \ + --email email@example.com \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/console-cli/examples/account/create-mfa-authenticator.md new file mode 100644 index 0000000000..7634217700 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-mfa-authenticator.md @@ -0,0 +1,2 @@ +appwrite account createMfaAuthenticator \ + --type totp diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/console-cli/examples/account/create-mfa-challenge.md new file mode 100644 index 0000000000..8696be7ec1 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-mfa-challenge.md @@ -0,0 +1,2 @@ +appwrite account createMfaChallenge \ + --factor email diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/console-cli/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 0000000000..0ef25446fd --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1 @@ +appwrite account createMfaRecoveryCodes diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-o-auth2session.md b/docs/examples/1.7.x/console-cli/examples/account/create-o-auth2session.md new file mode 100644 index 0000000000..9159b8f25f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-o-auth2session.md @@ -0,0 +1,5 @@ +appwrite account createOAuth2Session \ + --provider amazon \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/console-cli/examples/account/create-o-auth2token.md new file mode 100644 index 0000000000..b36f350d99 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-o-auth2token.md @@ -0,0 +1,5 @@ +appwrite account createOAuth2Token \ + --provider amazon \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-phone-token.md b/docs/examples/1.7.x/console-cli/examples/account/create-phone-token.md new file mode 100644 index 0000000000..23f7f19cac --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-phone-token.md @@ -0,0 +1,3 @@ +appwrite account createPhoneToken \ + --userId \ + --phone +12065550100 diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-phone-verification.md b/docs/examples/1.7.x/console-cli/examples/account/create-phone-verification.md new file mode 100644 index 0000000000..3c4402ba1f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-phone-verification.md @@ -0,0 +1 @@ +appwrite account createPhoneVerification diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-push-target.md b/docs/examples/1.7.x/console-cli/examples/account/create-push-target.md new file mode 100644 index 0000000000..41c380b288 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-push-target.md @@ -0,0 +1,4 @@ +appwrite account createPushTarget \ + --targetId \ + --identifier \ + diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-recovery.md b/docs/examples/1.7.x/console-cli/examples/account/create-recovery.md new file mode 100644 index 0000000000..ea8c145abb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-recovery.md @@ -0,0 +1,3 @@ +appwrite account createRecovery \ + --email email@example.com \ + --url https://example.com diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-session.md b/docs/examples/1.7.x/console-cli/examples/account/create-session.md new file mode 100644 index 0000000000..426713ef50 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-session.md @@ -0,0 +1,3 @@ +appwrite account createSession \ + --userId \ + --secret diff --git a/docs/examples/1.7.x/console-cli/examples/account/create-verification.md b/docs/examples/1.7.x/console-cli/examples/account/create-verification.md new file mode 100644 index 0000000000..402038b4b6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create-verification.md @@ -0,0 +1,2 @@ +appwrite account createVerification \ + --url https://example.com diff --git a/docs/examples/1.7.x/console-cli/examples/account/create.md b/docs/examples/1.7.x/console-cli/examples/account/create.md new file mode 100644 index 0000000000..09686a2454 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/create.md @@ -0,0 +1,5 @@ +appwrite account create \ + --userId \ + --email email@example.com \ + --password '' \ + diff --git a/docs/examples/1.7.x/console-cli/examples/account/delete-identity.md b/docs/examples/1.7.x/console-cli/examples/account/delete-identity.md new file mode 100644 index 0000000000..acd8511dfb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/delete-identity.md @@ -0,0 +1,2 @@ +appwrite account deleteIdentity \ + --identityId diff --git a/docs/examples/1.7.x/console-cli/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/console-cli/examples/account/delete-mfa-authenticator.md new file mode 100644 index 0000000000..d4664855b5 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,2 @@ +appwrite account deleteMfaAuthenticator \ + --type totp diff --git a/docs/examples/1.7.x/console-cli/examples/account/delete-push-target.md b/docs/examples/1.7.x/console-cli/examples/account/delete-push-target.md new file mode 100644 index 0000000000..610ea232d8 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/delete-push-target.md @@ -0,0 +1,2 @@ +appwrite account deletePushTarget \ + --targetId diff --git a/docs/examples/1.7.x/console-cli/examples/account/delete-session.md b/docs/examples/1.7.x/console-cli/examples/account/delete-session.md new file mode 100644 index 0000000000..9774552408 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/delete-session.md @@ -0,0 +1,2 @@ +appwrite account deleteSession \ + --sessionId diff --git a/docs/examples/1.7.x/console-cli/examples/account/delete-sessions.md b/docs/examples/1.7.x/console-cli/examples/account/delete-sessions.md new file mode 100644 index 0000000000..dd11877a5d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/delete-sessions.md @@ -0,0 +1 @@ +appwrite account deleteSessions diff --git a/docs/examples/1.7.x/console-cli/examples/account/delete.md b/docs/examples/1.7.x/console-cli/examples/account/delete.md new file mode 100644 index 0000000000..dac412f7c2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/delete.md @@ -0,0 +1 @@ +appwrite account delete diff --git a/docs/examples/1.7.x/console-cli/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/console-cli/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 0000000000..0e61d658de --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1 @@ +appwrite account getMfaRecoveryCodes diff --git a/docs/examples/1.7.x/console-cli/examples/account/get-prefs.md b/docs/examples/1.7.x/console-cli/examples/account/get-prefs.md new file mode 100644 index 0000000000..6569925d99 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/get-prefs.md @@ -0,0 +1 @@ +appwrite account getPrefs diff --git a/docs/examples/1.7.x/console-cli/examples/account/get-session.md b/docs/examples/1.7.x/console-cli/examples/account/get-session.md new file mode 100644 index 0000000000..120dc8277f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/get-session.md @@ -0,0 +1,2 @@ +appwrite account getSession \ + --sessionId diff --git a/docs/examples/1.7.x/console-cli/examples/account/get.md b/docs/examples/1.7.x/console-cli/examples/account/get.md new file mode 100644 index 0000000000..c8b46e34c7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/get.md @@ -0,0 +1 @@ +appwrite account get diff --git a/docs/examples/1.7.x/console-cli/examples/account/list-identities.md b/docs/examples/1.7.x/console-cli/examples/account/list-identities.md new file mode 100644 index 0000000000..877b443ea8 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/list-identities.md @@ -0,0 +1,2 @@ +appwrite account listIdentities \ + diff --git a/docs/examples/1.7.x/console-cli/examples/account/list-logs.md b/docs/examples/1.7.x/console-cli/examples/account/list-logs.md new file mode 100644 index 0000000000..e92f49063a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/list-logs.md @@ -0,0 +1,2 @@ +appwrite account listLogs \ + diff --git a/docs/examples/1.7.x/console-cli/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/console-cli/examples/account/list-mfa-factors.md new file mode 100644 index 0000000000..a29f287d24 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/list-mfa-factors.md @@ -0,0 +1 @@ +appwrite account listMfaFactors diff --git a/docs/examples/1.7.x/console-cli/examples/account/list-sessions.md b/docs/examples/1.7.x/console-cli/examples/account/list-sessions.md new file mode 100644 index 0000000000..87cbab0f66 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/list-sessions.md @@ -0,0 +1 @@ +appwrite account listSessions diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-email.md b/docs/examples/1.7.x/console-cli/examples/account/update-email.md new file mode 100644 index 0000000000..81938ff3a9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-email.md @@ -0,0 +1,3 @@ +appwrite account updateEmail \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-m-f-a.md b/docs/examples/1.7.x/console-cli/examples/account/update-m-f-a.md new file mode 100644 index 0000000000..f714d4dbe9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-m-f-a.md @@ -0,0 +1,2 @@ +appwrite account updateMFA \ + --mfa false diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/console-cli/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 0000000000..919bd70a30 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,3 @@ +appwrite account updateMagicURLSession \ + --userId \ + --secret diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/console-cli/examples/account/update-mfa-authenticator.md new file mode 100644 index 0000000000..b51796a79e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-mfa-authenticator.md @@ -0,0 +1,3 @@ +appwrite account updateMfaAuthenticator \ + --type totp \ + --otp diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/console-cli/examples/account/update-mfa-challenge.md new file mode 100644 index 0000000000..37e09ef4e8 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-mfa-challenge.md @@ -0,0 +1,3 @@ +appwrite account updateMfaChallenge \ + --challengeId \ + --otp diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/console-cli/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 0000000000..a129ca6f98 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1 @@ +appwrite account updateMfaRecoveryCodes diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-name.md b/docs/examples/1.7.x/console-cli/examples/account/update-name.md new file mode 100644 index 0000000000..6f3b5977f4 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-name.md @@ -0,0 +1,2 @@ +appwrite account updateName \ + --name diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-password.md b/docs/examples/1.7.x/console-cli/examples/account/update-password.md new file mode 100644 index 0000000000..340baec562 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-password.md @@ -0,0 +1,3 @@ +appwrite account updatePassword \ + --password '' \ + diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-phone-session.md b/docs/examples/1.7.x/console-cli/examples/account/update-phone-session.md new file mode 100644 index 0000000000..d70f33fab5 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-phone-session.md @@ -0,0 +1,3 @@ +appwrite account updatePhoneSession \ + --userId \ + --secret diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-phone-verification.md b/docs/examples/1.7.x/console-cli/examples/account/update-phone-verification.md new file mode 100644 index 0000000000..cef2b5a40d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-phone-verification.md @@ -0,0 +1,3 @@ +appwrite account updatePhoneVerification \ + --userId \ + --secret diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-phone.md b/docs/examples/1.7.x/console-cli/examples/account/update-phone.md new file mode 100644 index 0000000000..93a619a801 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-phone.md @@ -0,0 +1,3 @@ +appwrite account updatePhone \ + --phone +12065550100 \ + --password password diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-prefs.md b/docs/examples/1.7.x/console-cli/examples/account/update-prefs.md new file mode 100644 index 0000000000..568ac66e48 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-prefs.md @@ -0,0 +1,2 @@ +appwrite account updatePrefs \ + --prefs '{ "key": "value" }' diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-push-target.md b/docs/examples/1.7.x/console-cli/examples/account/update-push-target.md new file mode 100644 index 0000000000..f3aa1a906a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-push-target.md @@ -0,0 +1,3 @@ +appwrite account updatePushTarget \ + --targetId \ + --identifier diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-recovery.md b/docs/examples/1.7.x/console-cli/examples/account/update-recovery.md new file mode 100644 index 0000000000..903a99cc99 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-recovery.md @@ -0,0 +1,4 @@ +appwrite account updateRecovery \ + --userId \ + --secret \ + --password '' diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-session.md b/docs/examples/1.7.x/console-cli/examples/account/update-session.md new file mode 100644 index 0000000000..5fb6a2e8d5 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-session.md @@ -0,0 +1,2 @@ +appwrite account updateSession \ + --sessionId diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-status.md b/docs/examples/1.7.x/console-cli/examples/account/update-status.md new file mode 100644 index 0000000000..8886dbbc6a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-status.md @@ -0,0 +1 @@ +appwrite account updateStatus diff --git a/docs/examples/1.7.x/console-cli/examples/account/update-verification.md b/docs/examples/1.7.x/console-cli/examples/account/update-verification.md new file mode 100644 index 0000000000..afdfaa8372 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/account/update-verification.md @@ -0,0 +1,3 @@ +appwrite account updateVerification \ + --userId \ + --secret diff --git a/docs/examples/1.7.x/console-cli/examples/assistant/chat.md b/docs/examples/1.7.x/console-cli/examples/assistant/chat.md new file mode 100644 index 0000000000..cf62d30515 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/assistant/chat.md @@ -0,0 +1,2 @@ +appwrite assistant chat \ + --prompt diff --git a/docs/examples/1.7.x/console-cli/examples/avatars/get-browser.md b/docs/examples/1.7.x/console-cli/examples/avatars/get-browser.md new file mode 100644 index 0000000000..6b4f0b8007 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/avatars/get-browser.md @@ -0,0 +1,5 @@ +appwrite avatars getBrowser \ + --code aa \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/console-cli/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..365568ba19 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/avatars/get-credit-card.md @@ -0,0 +1,5 @@ +appwrite avatars getCreditCard \ + --code amex \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/avatars/get-favicon.md b/docs/examples/1.7.x/console-cli/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..c658f1a483 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/avatars/get-favicon.md @@ -0,0 +1,2 @@ +appwrite avatars getFavicon \ + --url https://example.com diff --git a/docs/examples/1.7.x/console-cli/examples/avatars/get-flag.md b/docs/examples/1.7.x/console-cli/examples/avatars/get-flag.md new file mode 100644 index 0000000000..9f11fef840 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/avatars/get-flag.md @@ -0,0 +1,5 @@ +appwrite avatars getFlag \ + --code af \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/avatars/get-image.md b/docs/examples/1.7.x/console-cli/examples/avatars/get-image.md new file mode 100644 index 0000000000..7df150610c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/avatars/get-image.md @@ -0,0 +1,4 @@ +appwrite avatars getImage \ + --url https://example.com \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/avatars/get-initials.md b/docs/examples/1.7.x/console-cli/examples/avatars/get-initials.md new file mode 100644 index 0000000000..b0b3da71c9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/avatars/get-initials.md @@ -0,0 +1,5 @@ +appwrite avatars getInitials \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/avatars/get-q-r.md b/docs/examples/1.7.x/console-cli/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..01e5085732 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/avatars/get-q-r.md @@ -0,0 +1,5 @@ +appwrite avatars getQR \ + --text \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/console/get-resource.md b/docs/examples/1.7.x/console-cli/examples/console/get-resource.md new file mode 100644 index 0000000000..3e55163966 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/console/get-resource.md @@ -0,0 +1,3 @@ +appwrite console getResource \ + --value \ + --type rules diff --git a/docs/examples/1.7.x/console-cli/examples/console/variables.md b/docs/examples/1.7.x/console-cli/examples/console/variables.md new file mode 100644 index 0000000000..1c67cf5ad8 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/console/variables.md @@ -0,0 +1 @@ +appwrite console variables diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-boolean-attribute.md new file mode 100644 index 0000000000..6babbfb5af --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-boolean-attribute.md @@ -0,0 +1,7 @@ +appwrite databases createBooleanAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-collection.md b/docs/examples/1.7.x/console-cli/examples/databases/create-collection.md new file mode 100644 index 0000000000..d97c424d16 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-collection.md @@ -0,0 +1,7 @@ +appwrite databases createCollection \ + --databaseId \ + --collectionId \ + --name \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-datetime-attribute.md new file mode 100644 index 0000000000..f6aaf54fa2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-datetime-attribute.md @@ -0,0 +1,7 @@ +appwrite databases createDatetimeAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-document.md b/docs/examples/1.7.x/console-cli/examples/databases/create-document.md new file mode 100644 index 0000000000..513cfc4f33 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-document.md @@ -0,0 +1,6 @@ +appwrite databases createDocument \ + --databaseId \ + --collectionId \ + --documentId \ + --data '{ "key": "value" }' \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-documents.md b/docs/examples/1.7.x/console-cli/examples/databases/create-documents.md new file mode 100644 index 0000000000..e9e65b5c3c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-documents.md @@ -0,0 +1,4 @@ +appwrite databases createDocuments \ + --databaseId \ + --collectionId \ + --documents one two three diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-email-attribute.md new file mode 100644 index 0000000000..5c23f940de --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-email-attribute.md @@ -0,0 +1,7 @@ +appwrite databases createEmailAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-enum-attribute.md new file mode 100644 index 0000000000..5d3c614410 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-enum-attribute.md @@ -0,0 +1,8 @@ +appwrite databases createEnumAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --elements one two three \ + --required false \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-float-attribute.md new file mode 100644 index 0000000000..5a6ef4e4ef --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-float-attribute.md @@ -0,0 +1,9 @@ +appwrite databases createFloatAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-index.md b/docs/examples/1.7.x/console-cli/examples/databases/create-index.md new file mode 100644 index 0000000000..2dc95ea921 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-index.md @@ -0,0 +1,8 @@ +appwrite databases createIndex \ + --databaseId \ + --collectionId \ + --key '' \ + --type key \ + --attributes one two three \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-integer-attribute.md new file mode 100644 index 0000000000..791f3770c9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-integer-attribute.md @@ -0,0 +1,9 @@ +appwrite databases createIntegerAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-ip-attribute.md new file mode 100644 index 0000000000..4f39d84bab --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-ip-attribute.md @@ -0,0 +1,7 @@ +appwrite databases createIpAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-relationship-attribute.md new file mode 100644 index 0000000000..c7d8ae568a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-relationship-attribute.md @@ -0,0 +1,9 @@ +appwrite databases createRelationshipAttribute \ + --databaseId \ + --collectionId \ + --relatedCollectionId \ + --type oneToOne \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-string-attribute.md new file mode 100644 index 0000000000..37b1db644a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-string-attribute.md @@ -0,0 +1,9 @@ +appwrite databases createStringAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --size 1 \ + --required false \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/create-url-attribute.md new file mode 100644 index 0000000000..4406ed7879 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create-url-attribute.md @@ -0,0 +1,7 @@ +appwrite databases createUrlAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/create.md b/docs/examples/1.7.x/console-cli/examples/databases/create.md new file mode 100644 index 0000000000..9e7523974f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/create.md @@ -0,0 +1,4 @@ +appwrite databases create \ + --databaseId \ + --name \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/delete-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/delete-attribute.md new file mode 100644 index 0000000000..88e7df985f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/delete-attribute.md @@ -0,0 +1,4 @@ +appwrite databases deleteAttribute \ + --databaseId \ + --collectionId \ + --key '' diff --git a/docs/examples/1.7.x/console-cli/examples/databases/delete-collection.md b/docs/examples/1.7.x/console-cli/examples/databases/delete-collection.md new file mode 100644 index 0000000000..0db185a7d7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/delete-collection.md @@ -0,0 +1,3 @@ +appwrite databases deleteCollection \ + --databaseId \ + --collectionId diff --git a/docs/examples/1.7.x/console-cli/examples/databases/delete-document.md b/docs/examples/1.7.x/console-cli/examples/databases/delete-document.md new file mode 100644 index 0000000000..3a96d35798 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/delete-document.md @@ -0,0 +1,4 @@ +appwrite databases deleteDocument \ + --databaseId \ + --collectionId \ + --documentId diff --git a/docs/examples/1.7.x/console-cli/examples/databases/delete-documents.md b/docs/examples/1.7.x/console-cli/examples/databases/delete-documents.md new file mode 100644 index 0000000000..6f3463cbf9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/delete-documents.md @@ -0,0 +1,4 @@ +appwrite databases deleteDocuments \ + --databaseId \ + --collectionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/delete-index.md b/docs/examples/1.7.x/console-cli/examples/databases/delete-index.md new file mode 100644 index 0000000000..56485e7a78 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/delete-index.md @@ -0,0 +1,4 @@ +appwrite databases deleteIndex \ + --databaseId \ + --collectionId \ + --key '' diff --git a/docs/examples/1.7.x/console-cli/examples/databases/delete.md b/docs/examples/1.7.x/console-cli/examples/databases/delete.md new file mode 100644 index 0000000000..a24a3a04d3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/delete.md @@ -0,0 +1,2 @@ +appwrite databases delete \ + --databaseId diff --git a/docs/examples/1.7.x/console-cli/examples/databases/get-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/get-attribute.md new file mode 100644 index 0000000000..821698011f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/get-attribute.md @@ -0,0 +1,4 @@ +appwrite databases getAttribute \ + --databaseId \ + --collectionId \ + --key '' diff --git a/docs/examples/1.7.x/console-cli/examples/databases/get-collection-usage.md b/docs/examples/1.7.x/console-cli/examples/databases/get-collection-usage.md new file mode 100644 index 0000000000..b57e6c92a9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/get-collection-usage.md @@ -0,0 +1,4 @@ +appwrite databases getCollectionUsage \ + --databaseId \ + --collectionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/get-collection.md b/docs/examples/1.7.x/console-cli/examples/databases/get-collection.md new file mode 100644 index 0000000000..e763b5bbfb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/get-collection.md @@ -0,0 +1,3 @@ +appwrite databases getCollection \ + --databaseId \ + --collectionId diff --git a/docs/examples/1.7.x/console-cli/examples/databases/get-database-usage.md b/docs/examples/1.7.x/console-cli/examples/databases/get-database-usage.md new file mode 100644 index 0000000000..1001e9cd11 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/get-database-usage.md @@ -0,0 +1,3 @@ +appwrite databases getDatabaseUsage \ + --databaseId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/get-document.md b/docs/examples/1.7.x/console-cli/examples/databases/get-document.md new file mode 100644 index 0000000000..35d9615503 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/get-document.md @@ -0,0 +1,5 @@ +appwrite databases getDocument \ + --databaseId \ + --collectionId \ + --documentId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/get-index.md b/docs/examples/1.7.x/console-cli/examples/databases/get-index.md new file mode 100644 index 0000000000..0071834a8c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/get-index.md @@ -0,0 +1,4 @@ +appwrite databases getIndex \ + --databaseId \ + --collectionId \ + --key '' diff --git a/docs/examples/1.7.x/console-cli/examples/databases/get-usage.md b/docs/examples/1.7.x/console-cli/examples/databases/get-usage.md new file mode 100644 index 0000000000..53c85fc849 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/get-usage.md @@ -0,0 +1,2 @@ +appwrite databases getUsage \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/get.md b/docs/examples/1.7.x/console-cli/examples/databases/get.md new file mode 100644 index 0000000000..35480b64cc --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/get.md @@ -0,0 +1,2 @@ +appwrite databases get \ + --databaseId diff --git a/docs/examples/1.7.x/console-cli/examples/databases/list-attributes.md b/docs/examples/1.7.x/console-cli/examples/databases/list-attributes.md new file mode 100644 index 0000000000..a2382feb3a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/list-attributes.md @@ -0,0 +1,4 @@ +appwrite databases listAttributes \ + --databaseId \ + --collectionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/list-collection-logs.md b/docs/examples/1.7.x/console-cli/examples/databases/list-collection-logs.md new file mode 100644 index 0000000000..eadac47a6b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/list-collection-logs.md @@ -0,0 +1,4 @@ +appwrite databases listCollectionLogs \ + --databaseId \ + --collectionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/list-collections.md b/docs/examples/1.7.x/console-cli/examples/databases/list-collections.md new file mode 100644 index 0000000000..b05c330be2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/list-collections.md @@ -0,0 +1,4 @@ +appwrite databases listCollections \ + --databaseId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/list-document-logs.md b/docs/examples/1.7.x/console-cli/examples/databases/list-document-logs.md new file mode 100644 index 0000000000..63b5394647 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/list-document-logs.md @@ -0,0 +1,5 @@ +appwrite databases listDocumentLogs \ + --databaseId \ + --collectionId \ + --documentId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/list-documents.md b/docs/examples/1.7.x/console-cli/examples/databases/list-documents.md new file mode 100644 index 0000000000..98e389579d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/list-documents.md @@ -0,0 +1,4 @@ +appwrite databases listDocuments \ + --databaseId \ + --collectionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/list-indexes.md b/docs/examples/1.7.x/console-cli/examples/databases/list-indexes.md new file mode 100644 index 0000000000..50acb4d7ad --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/list-indexes.md @@ -0,0 +1,4 @@ +appwrite databases listIndexes \ + --databaseId \ + --collectionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/list-logs.md b/docs/examples/1.7.x/console-cli/examples/databases/list-logs.md new file mode 100644 index 0000000000..38547c7c3c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/list-logs.md @@ -0,0 +1,3 @@ +appwrite databases listLogs \ + --databaseId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/list.md b/docs/examples/1.7.x/console-cli/examples/databases/list.md new file mode 100644 index 0000000000..e723bc32ec --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/list.md @@ -0,0 +1,3 @@ +appwrite databases list \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-boolean-attribute.md new file mode 100644 index 0000000000..f5adb497ec --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-boolean-attribute.md @@ -0,0 +1,7 @@ +appwrite databases updateBooleanAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + --default false \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-collection.md b/docs/examples/1.7.x/console-cli/examples/databases/update-collection.md new file mode 100644 index 0000000000..eab3617c80 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-collection.md @@ -0,0 +1,7 @@ +appwrite databases updateCollection \ + --databaseId \ + --collectionId \ + --name \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-datetime-attribute.md new file mode 100644 index 0000000000..fe4a462664 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-datetime-attribute.md @@ -0,0 +1,7 @@ +appwrite databases updateDatetimeAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + --default '' \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-document.md b/docs/examples/1.7.x/console-cli/examples/databases/update-document.md new file mode 100644 index 0000000000..a4ac55bf6b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-document.md @@ -0,0 +1,6 @@ +appwrite databases updateDocument \ + --databaseId \ + --collectionId \ + --documentId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-documents.md b/docs/examples/1.7.x/console-cli/examples/databases/update-documents.md new file mode 100644 index 0000000000..935f664440 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-documents.md @@ -0,0 +1,5 @@ +appwrite databases updateDocuments \ + --databaseId \ + --collectionId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-email-attribute.md new file mode 100644 index 0000000000..58510a6f8e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-email-attribute.md @@ -0,0 +1,7 @@ +appwrite databases updateEmailAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + --default email@example.com \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-enum-attribute.md new file mode 100644 index 0000000000..21d56d3e64 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-enum-attribute.md @@ -0,0 +1,8 @@ +appwrite databases updateEnumAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --elements one two three \ + --required false \ + --default \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-float-attribute.md new file mode 100644 index 0000000000..a9bba3eb5e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-float-attribute.md @@ -0,0 +1,9 @@ +appwrite databases updateFloatAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + --default null \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-integer-attribute.md new file mode 100644 index 0000000000..660cd4d148 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-integer-attribute.md @@ -0,0 +1,9 @@ +appwrite databases updateIntegerAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + --default null \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-ip-attribute.md new file mode 100644 index 0000000000..a400eadc1e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-ip-attribute.md @@ -0,0 +1,7 @@ +appwrite databases updateIpAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + --default '' \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-relationship-attribute.md new file mode 100644 index 0000000000..6e2dbd927d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-relationship-attribute.md @@ -0,0 +1,6 @@ +appwrite databases updateRelationshipAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-string-attribute.md new file mode 100644 index 0000000000..526ece0b72 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-string-attribute.md @@ -0,0 +1,8 @@ +appwrite databases updateStringAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + --default \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/console-cli/examples/databases/update-url-attribute.md new file mode 100644 index 0000000000..e6f401b8ca --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update-url-attribute.md @@ -0,0 +1,7 @@ +appwrite databases updateUrlAttribute \ + --databaseId \ + --collectionId \ + --key '' \ + --required false \ + --default https://example.com \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/update.md b/docs/examples/1.7.x/console-cli/examples/databases/update.md new file mode 100644 index 0000000000..a1e0a844e5 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/update.md @@ -0,0 +1,4 @@ +appwrite databases update \ + --databaseId \ + --name \ + diff --git a/docs/examples/1.7.x/console-cli/examples/databases/upsert-documents.md b/docs/examples/1.7.x/console-cli/examples/databases/upsert-documents.md new file mode 100644 index 0000000000..3d0bd165d5 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/databases/upsert-documents.md @@ -0,0 +1,4 @@ +appwrite databases upsertDocuments \ + --databaseId \ + --collectionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/create-deployment.md b/docs/examples/1.7.x/console-cli/examples/functions/create-deployment.md new file mode 100644 index 0000000000..6ac80bd73a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/create-deployment.md @@ -0,0 +1,6 @@ +appwrite functions createDeployment \ + --functionId \ + --code 'path/to/file.png' \ + --activate false \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/console-cli/examples/functions/create-duplicate-deployment.md new file mode 100644 index 0000000000..4839155bd2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,4 @@ +appwrite functions createDuplicateDeployment \ + --functionId \ + --deploymentId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/create-execution.md b/docs/examples/1.7.x/console-cli/examples/functions/create-execution.md new file mode 100644 index 0000000000..febe88c541 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/create-execution.md @@ -0,0 +1,8 @@ +appwrite functions createExecution \ + --functionId \ + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/console-cli/examples/functions/create-template-deployment.md new file mode 100644 index 0000000000..a6164a3d0b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/create-template-deployment.md @@ -0,0 +1,7 @@ +appwrite functions createTemplateDeployment \ + --functionId \ + --repository \ + --owner \ + --rootDirectory \ + --version \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/create-variable.md b/docs/examples/1.7.x/console-cli/examples/functions/create-variable.md new file mode 100644 index 0000000000..f35f228d41 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/create-variable.md @@ -0,0 +1,5 @@ +appwrite functions createVariable \ + --functionId \ + --key \ + --value \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/console-cli/examples/functions/create-vcs-deployment.md new file mode 100644 index 0000000000..89f4caca66 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/create-vcs-deployment.md @@ -0,0 +1,5 @@ +appwrite functions createVcsDeployment \ + --functionId \ + --type branch \ + --reference \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/create.md b/docs/examples/1.7.x/console-cli/examples/functions/create.md new file mode 100644 index 0000000000..ebca5741ed --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/create.md @@ -0,0 +1,19 @@ +appwrite functions create \ + --functionId \ + --name \ + --runtime node-14.5 \ + + + + + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/delete-deployment.md b/docs/examples/1.7.x/console-cli/examples/functions/delete-deployment.md new file mode 100644 index 0000000000..2c9a6aa04a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/delete-deployment.md @@ -0,0 +1,3 @@ +appwrite functions deleteDeployment \ + --functionId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/delete-execution.md b/docs/examples/1.7.x/console-cli/examples/functions/delete-execution.md new file mode 100644 index 0000000000..2926b5aaf1 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/delete-execution.md @@ -0,0 +1,3 @@ +appwrite functions deleteExecution \ + --functionId \ + --executionId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/delete-variable.md b/docs/examples/1.7.x/console-cli/examples/functions/delete-variable.md new file mode 100644 index 0000000000..835d125dc6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/delete-variable.md @@ -0,0 +1,3 @@ +appwrite functions deleteVariable \ + --functionId \ + --variableId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/delete.md b/docs/examples/1.7.x/console-cli/examples/functions/delete.md new file mode 100644 index 0000000000..0eea41c849 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/delete.md @@ -0,0 +1,2 @@ +appwrite functions delete \ + --functionId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/console-cli/examples/functions/get-deployment-download.md new file mode 100644 index 0000000000..485b608623 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/get-deployment-download.md @@ -0,0 +1,4 @@ +appwrite functions getDeploymentDownload \ + --functionId \ + --deploymentId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/get-deployment.md b/docs/examples/1.7.x/console-cli/examples/functions/get-deployment.md new file mode 100644 index 0000000000..3da1605fea --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/get-deployment.md @@ -0,0 +1,3 @@ +appwrite functions getDeployment \ + --functionId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/get-execution.md b/docs/examples/1.7.x/console-cli/examples/functions/get-execution.md new file mode 100644 index 0000000000..d593f07c43 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/get-execution.md @@ -0,0 +1,3 @@ +appwrite functions getExecution \ + --functionId \ + --executionId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/get-template.md b/docs/examples/1.7.x/console-cli/examples/functions/get-template.md new file mode 100644 index 0000000000..15c6068f35 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/get-template.md @@ -0,0 +1,2 @@ +appwrite functions getTemplate \ + --templateId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/get-usage.md b/docs/examples/1.7.x/console-cli/examples/functions/get-usage.md new file mode 100644 index 0000000000..469db0f171 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/get-usage.md @@ -0,0 +1,3 @@ +appwrite functions getUsage \ + --functionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/get-variable.md b/docs/examples/1.7.x/console-cli/examples/functions/get-variable.md new file mode 100644 index 0000000000..241a91d936 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/get-variable.md @@ -0,0 +1,3 @@ +appwrite functions getVariable \ + --functionId \ + --variableId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/get.md b/docs/examples/1.7.x/console-cli/examples/functions/get.md new file mode 100644 index 0000000000..f678ef7663 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/get.md @@ -0,0 +1,2 @@ +appwrite functions get \ + --functionId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/list-deployments.md b/docs/examples/1.7.x/console-cli/examples/functions/list-deployments.md new file mode 100644 index 0000000000..2befb86abc --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/list-deployments.md @@ -0,0 +1,4 @@ +appwrite functions listDeployments \ + --functionId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/list-executions.md b/docs/examples/1.7.x/console-cli/examples/functions/list-executions.md new file mode 100644 index 0000000000..8d3136e6a4 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/list-executions.md @@ -0,0 +1,3 @@ +appwrite functions listExecutions \ + --functionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/list-runtimes.md b/docs/examples/1.7.x/console-cli/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..15dc019c44 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/list-runtimes.md @@ -0,0 +1 @@ +appwrite functions listRuntimes diff --git a/docs/examples/1.7.x/console-cli/examples/functions/list-specifications.md b/docs/examples/1.7.x/console-cli/examples/functions/list-specifications.md new file mode 100644 index 0000000000..1d64bc68e7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/list-specifications.md @@ -0,0 +1 @@ +appwrite functions listSpecifications diff --git a/docs/examples/1.7.x/console-cli/examples/functions/list-templates.md b/docs/examples/1.7.x/console-cli/examples/functions/list-templates.md new file mode 100644 index 0000000000..b48bab53e1 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/list-templates.md @@ -0,0 +1,5 @@ +appwrite functions listTemplates \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/list-usage.md b/docs/examples/1.7.x/console-cli/examples/functions/list-usage.md new file mode 100644 index 0000000000..8ae7855f45 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/list-usage.md @@ -0,0 +1,2 @@ +appwrite functions listUsage \ + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/list-variables.md b/docs/examples/1.7.x/console-cli/examples/functions/list-variables.md new file mode 100644 index 0000000000..21bf2eb506 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/list-variables.md @@ -0,0 +1,2 @@ +appwrite functions listVariables \ + --functionId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/list.md b/docs/examples/1.7.x/console-cli/examples/functions/list.md new file mode 100644 index 0000000000..3b7551266e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/list.md @@ -0,0 +1,3 @@ +appwrite functions list \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/console-cli/examples/functions/update-deployment-status.md new file mode 100644 index 0000000000..06d2dcdcf0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/update-deployment-status.md @@ -0,0 +1,3 @@ +appwrite functions updateDeploymentStatus \ + --functionId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/console-cli/examples/functions/update-function-deployment.md new file mode 100644 index 0000000000..652bfe809e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/update-function-deployment.md @@ -0,0 +1,3 @@ +appwrite functions updateFunctionDeployment \ + --functionId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/functions/update-variable.md b/docs/examples/1.7.x/console-cli/examples/functions/update-variable.md new file mode 100644 index 0000000000..a2b10491c6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/update-variable.md @@ -0,0 +1,6 @@ +appwrite functions updateVariable \ + --functionId \ + --variableId \ + --key \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/functions/update.md b/docs/examples/1.7.x/console-cli/examples/functions/update.md new file mode 100644 index 0000000000..7ac63e0cd1 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/functions/update.md @@ -0,0 +1,19 @@ +appwrite functions update \ + --functionId \ + --name \ + + + + + + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/graphql/mutation.md b/docs/examples/1.7.x/console-cli/examples/graphql/mutation.md new file mode 100644 index 0000000000..f6127a175c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/graphql/mutation.md @@ -0,0 +1,2 @@ +appwrite graphql mutation \ + --query '{ "key": "value" }' diff --git a/docs/examples/1.7.x/console-cli/examples/graphql/query.md b/docs/examples/1.7.x/console-cli/examples/graphql/query.md new file mode 100644 index 0000000000..1d84bcaa6a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/graphql/query.md @@ -0,0 +1,2 @@ +appwrite graphql query \ + --query '{ "key": "value" }' diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-antivirus.md b/docs/examples/1.7.x/console-cli/examples/health/get-antivirus.md new file mode 100644 index 0000000000..96dd7e78b2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-antivirus.md @@ -0,0 +1 @@ +appwrite health getAntivirus diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-cache.md b/docs/examples/1.7.x/console-cli/examples/health/get-cache.md new file mode 100644 index 0000000000..ad1111ccf0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-cache.md @@ -0,0 +1 @@ +appwrite health getCache diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-certificate.md b/docs/examples/1.7.x/console-cli/examples/health/get-certificate.md new file mode 100644 index 0000000000..4659415822 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-certificate.md @@ -0,0 +1,2 @@ +appwrite health getCertificate \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-d-b.md b/docs/examples/1.7.x/console-cli/examples/health/get-d-b.md new file mode 100644 index 0000000000..b0ea2d3eac --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-d-b.md @@ -0,0 +1 @@ +appwrite health getDB diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/console-cli/examples/health/get-failed-jobs.md new file mode 100644 index 0000000000..724299e384 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-failed-jobs.md @@ -0,0 +1,3 @@ +appwrite health getFailedJobs \ + --name v1-database \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-pub-sub.md b/docs/examples/1.7.x/console-cli/examples/health/get-pub-sub.md new file mode 100644 index 0000000000..aa1773b35b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-pub-sub.md @@ -0,0 +1 @@ +appwrite health getPubSub diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-builds.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-builds.md new file mode 100644 index 0000000000..7204c2c896 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-builds.md @@ -0,0 +1,2 @@ +appwrite health getQueueBuilds \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..203e8650cc --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-certificates.md @@ -0,0 +1,2 @@ +appwrite health getQueueCertificates \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-databases.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-databases.md new file mode 100644 index 0000000000..f30b941cbc --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-databases.md @@ -0,0 +1,3 @@ +appwrite health getQueueDatabases \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-deletes.md new file mode 100644 index 0000000000..1d44146dc4 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-deletes.md @@ -0,0 +1,2 @@ +appwrite health getQueueDeletes \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-functions.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..4aca467306 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-functions.md @@ -0,0 +1,2 @@ +appwrite health getQueueFunctions \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-logs.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..3f1386b73a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-logs.md @@ -0,0 +1,2 @@ +appwrite health getQueueLogs \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-mails.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-mails.md new file mode 100644 index 0000000000..a41f4c308b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-mails.md @@ -0,0 +1,2 @@ +appwrite health getQueueMails \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-messaging.md new file mode 100644 index 0000000000..11b7ff832b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-messaging.md @@ -0,0 +1,2 @@ +appwrite health getQueueMessaging \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-migrations.md new file mode 100644 index 0000000000..2f17bb56f4 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-migrations.md @@ -0,0 +1,2 @@ +appwrite health getQueueMigrations \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-stats-resources.md new file mode 100644 index 0000000000..9cce963748 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-stats-resources.md @@ -0,0 +1,2 @@ +appwrite health getQueueStatsResources \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-usage.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..d021a3faa1 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-usage.md @@ -0,0 +1,2 @@ +appwrite health getQueueUsage \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/console-cli/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..471175bbe4 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-queue-webhooks.md @@ -0,0 +1,2 @@ +appwrite health getQueueWebhooks \ + diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-storage-local.md b/docs/examples/1.7.x/console-cli/examples/health/get-storage-local.md new file mode 100644 index 0000000000..b5df39fae0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-storage-local.md @@ -0,0 +1 @@ +appwrite health getStorageLocal diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-storage.md b/docs/examples/1.7.x/console-cli/examples/health/get-storage.md new file mode 100644 index 0000000000..eccd21acc3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-storage.md @@ -0,0 +1 @@ +appwrite health getStorage diff --git a/docs/examples/1.7.x/console-cli/examples/health/get-time.md b/docs/examples/1.7.x/console-cli/examples/health/get-time.md new file mode 100644 index 0000000000..067e5daf9e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get-time.md @@ -0,0 +1 @@ +appwrite health getTime diff --git a/docs/examples/1.7.x/console-cli/examples/health/get.md b/docs/examples/1.7.x/console-cli/examples/health/get.md new file mode 100644 index 0000000000..94c08e5aa3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/health/get.md @@ -0,0 +1 @@ +appwrite health get diff --git a/docs/examples/1.7.x/console-cli/examples/locale/get.md b/docs/examples/1.7.x/console-cli/examples/locale/get.md new file mode 100644 index 0000000000..2002a06c20 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/locale/get.md @@ -0,0 +1 @@ +appwrite locale get diff --git a/docs/examples/1.7.x/console-cli/examples/locale/list-codes.md b/docs/examples/1.7.x/console-cli/examples/locale/list-codes.md new file mode 100644 index 0000000000..5586d1566c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/locale/list-codes.md @@ -0,0 +1 @@ +appwrite locale listCodes diff --git a/docs/examples/1.7.x/console-cli/examples/locale/list-continents.md b/docs/examples/1.7.x/console-cli/examples/locale/list-continents.md new file mode 100644 index 0000000000..775af5d9df --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/locale/list-continents.md @@ -0,0 +1 @@ +appwrite locale listContinents diff --git a/docs/examples/1.7.x/console-cli/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/console-cli/examples/locale/list-countries-e-u.md new file mode 100644 index 0000000000..43b7eff7ad --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/locale/list-countries-e-u.md @@ -0,0 +1 @@ +appwrite locale listCountriesEU diff --git a/docs/examples/1.7.x/console-cli/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/console-cli/examples/locale/list-countries-phones.md new file mode 100644 index 0000000000..072516bf71 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/locale/list-countries-phones.md @@ -0,0 +1 @@ +appwrite locale listCountriesPhones diff --git a/docs/examples/1.7.x/console-cli/examples/locale/list-countries.md b/docs/examples/1.7.x/console-cli/examples/locale/list-countries.md new file mode 100644 index 0000000000..ee7101df68 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/locale/list-countries.md @@ -0,0 +1 @@ +appwrite locale listCountries diff --git a/docs/examples/1.7.x/console-cli/examples/locale/list-currencies.md b/docs/examples/1.7.x/console-cli/examples/locale/list-currencies.md new file mode 100644 index 0000000000..01b1b3c4b2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/locale/list-currencies.md @@ -0,0 +1 @@ +appwrite locale listCurrencies diff --git a/docs/examples/1.7.x/console-cli/examples/locale/list-languages.md b/docs/examples/1.7.x/console-cli/examples/locale/list-languages.md new file mode 100644 index 0000000000..d47622c570 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/locale/list-languages.md @@ -0,0 +1 @@ +appwrite locale listLanguages diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-apns-provider.md new file mode 100644 index 0000000000..8b369f403d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-apns-provider.md @@ -0,0 +1,9 @@ +appwrite messaging createApnsProvider \ + --providerId \ + --name \ + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-email.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-email.md new file mode 100644 index 0000000000..2a8e03b7da --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-email.md @@ -0,0 +1,13 @@ +appwrite messaging createEmail \ + --messageId \ + --subject \ + --content \ + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-fcm-provider.md new file mode 100644 index 0000000000..a19dcbe28c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-fcm-provider.md @@ -0,0 +1,5 @@ +appwrite messaging createFcmProvider \ + --providerId \ + --name \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-mailgun-provider.md new file mode 100644 index 0000000000..6b07359194 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,11 @@ +appwrite messaging createMailgunProvider \ + --providerId \ + --name \ + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-msg91provider.md new file mode 100644 index 0000000000..f687e36472 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-msg91provider.md @@ -0,0 +1,7 @@ +appwrite messaging createMsg91Provider \ + --providerId \ + --name \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-push.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-push.md new file mode 100644 index 0000000000..18d8ec5aec --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-push.md @@ -0,0 +1,20 @@ +appwrite messaging createPush \ + --messageId \ + + + + + + + + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 0000000000..de8d059abb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,9 @@ +appwrite messaging createSendgridProvider \ + --providerId \ + --name \ + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-sms.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-sms.md new file mode 100644 index 0000000000..dfc9b27ff3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-sms.md @@ -0,0 +1,8 @@ +appwrite messaging createSms \ + --messageId \ + --content \ + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-smtp-provider.md new file mode 100644 index 0000000000..13f04fe648 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-smtp-provider.md @@ -0,0 +1,15 @@ +appwrite messaging createSmtpProvider \ + --providerId \ + --name \ + --host \ + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-subscriber.md new file mode 100644 index 0000000000..5e65c36df7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-subscriber.md @@ -0,0 +1,4 @@ +appwrite messaging createSubscriber \ + --topicId \ + --subscriberId \ + --targetId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-telesign-provider.md new file mode 100644 index 0000000000..783f7594fd --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-telesign-provider.md @@ -0,0 +1,7 @@ +appwrite messaging createTelesignProvider \ + --providerId \ + --name \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-textmagic-provider.md new file mode 100644 index 0000000000..77185c71de --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,7 @@ +appwrite messaging createTextmagicProvider \ + --providerId \ + --name \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-topic.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-topic.md new file mode 100644 index 0000000000..1d57e1cee0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-topic.md @@ -0,0 +1,4 @@ +appwrite messaging createTopic \ + --topicId \ + --name \ + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-twilio-provider.md new file mode 100644 index 0000000000..91fdaae96b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-twilio-provider.md @@ -0,0 +1,7 @@ +appwrite messaging createTwilioProvider \ + --providerId \ + --name \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/create-vonage-provider.md new file mode 100644 index 0000000000..1939d1c04b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/create-vonage-provider.md @@ -0,0 +1,7 @@ +appwrite messaging createVonageProvider \ + --providerId \ + --name \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/delete-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/delete-provider.md new file mode 100644 index 0000000000..a93885573c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/delete-provider.md @@ -0,0 +1,2 @@ +appwrite messaging deleteProvider \ + --providerId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/console-cli/examples/messaging/delete-subscriber.md new file mode 100644 index 0000000000..c535154df6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/delete-subscriber.md @@ -0,0 +1,3 @@ +appwrite messaging deleteSubscriber \ + --topicId \ + --subscriberId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/delete-topic.md b/docs/examples/1.7.x/console-cli/examples/messaging/delete-topic.md new file mode 100644 index 0000000000..1fa387c6ab --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/delete-topic.md @@ -0,0 +1,2 @@ +appwrite messaging deleteTopic \ + --topicId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/delete.md b/docs/examples/1.7.x/console-cli/examples/messaging/delete.md new file mode 100644 index 0000000000..82ff141b03 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/delete.md @@ -0,0 +1,2 @@ +appwrite messaging delete \ + --messageId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/get-message.md b/docs/examples/1.7.x/console-cli/examples/messaging/get-message.md new file mode 100644 index 0000000000..0144f79699 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/get-message.md @@ -0,0 +1,2 @@ +appwrite messaging getMessage \ + --messageId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/get-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/get-provider.md new file mode 100644 index 0000000000..9da9f2d864 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/get-provider.md @@ -0,0 +1,2 @@ +appwrite messaging getProvider \ + --providerId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/console-cli/examples/messaging/get-subscriber.md new file mode 100644 index 0000000000..02f8bc0e57 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/get-subscriber.md @@ -0,0 +1,3 @@ +appwrite messaging getSubscriber \ + --topicId \ + --subscriberId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/get-topic.md b/docs/examples/1.7.x/console-cli/examples/messaging/get-topic.md new file mode 100644 index 0000000000..feb2dc66b6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/get-topic.md @@ -0,0 +1,2 @@ +appwrite messaging getTopic \ + --topicId diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-message-logs.md new file mode 100644 index 0000000000..91366f35f7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-message-logs.md @@ -0,0 +1,3 @@ +appwrite messaging listMessageLogs \ + --messageId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-messages.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-messages.md new file mode 100644 index 0000000000..6ab04b0fd2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-messages.md @@ -0,0 +1,3 @@ +appwrite messaging listMessages \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-provider-logs.md new file mode 100644 index 0000000000..0dee2e3f4b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-provider-logs.md @@ -0,0 +1,3 @@ +appwrite messaging listProviderLogs \ + --providerId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-providers.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-providers.md new file mode 100644 index 0000000000..0a2ce47a3f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-providers.md @@ -0,0 +1,3 @@ +appwrite messaging listProviders \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-subscriber-logs.md new file mode 100644 index 0000000000..4a04ac4373 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,3 @@ +appwrite messaging listSubscriberLogs \ + --subscriberId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-subscribers.md new file mode 100644 index 0000000000..2eed8bd3f0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-subscribers.md @@ -0,0 +1,4 @@ +appwrite messaging listSubscribers \ + --topicId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-targets.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-targets.md new file mode 100644 index 0000000000..7efa50ee3b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-targets.md @@ -0,0 +1,3 @@ +appwrite messaging listTargets \ + --messageId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-topic-logs.md new file mode 100644 index 0000000000..f23c10aba6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-topic-logs.md @@ -0,0 +1,3 @@ +appwrite messaging listTopicLogs \ + --topicId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/list-topics.md b/docs/examples/1.7.x/console-cli/examples/messaging/list-topics.md new file mode 100644 index 0000000000..1810a7bd7b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/list-topics.md @@ -0,0 +1,3 @@ +appwrite messaging listTopics \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-apns-provider.md new file mode 100644 index 0000000000..9e895a066a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-apns-provider.md @@ -0,0 +1,9 @@ +appwrite messaging updateApnsProvider \ + --providerId \ + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-email.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-email.md new file mode 100644 index 0000000000..934fd29213 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-email.md @@ -0,0 +1,13 @@ +appwrite messaging updateEmail \ + --messageId \ + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-fcm-provider.md new file mode 100644 index 0000000000..000022361f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-fcm-provider.md @@ -0,0 +1,5 @@ +appwrite messaging updateFcmProvider \ + --providerId \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-mailgun-provider.md new file mode 100644 index 0000000000..f35c5e9157 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,11 @@ +appwrite messaging updateMailgunProvider \ + --providerId \ + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-msg91provider.md new file mode 100644 index 0000000000..8e2d604a19 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-msg91provider.md @@ -0,0 +1,7 @@ +appwrite messaging updateMsg91Provider \ + --providerId \ + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-push.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-push.md new file mode 100644 index 0000000000..1f4427cee7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-push.md @@ -0,0 +1,20 @@ +appwrite messaging updatePush \ + --messageId \ + + + + + + + + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 0000000000..7f2e97dbf7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,9 @@ +appwrite messaging updateSendgridProvider \ + --providerId \ + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-sms.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-sms.md new file mode 100644 index 0000000000..a30ff43d0c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-sms.md @@ -0,0 +1,8 @@ +appwrite messaging updateSms \ + --messageId \ + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-smtp-provider.md new file mode 100644 index 0000000000..4e0f7b6b8d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-smtp-provider.md @@ -0,0 +1,15 @@ +appwrite messaging updateSmtpProvider \ + --providerId \ + + + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-telesign-provider.md new file mode 100644 index 0000000000..0a92f2cacd --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-telesign-provider.md @@ -0,0 +1,7 @@ +appwrite messaging updateTelesignProvider \ + --providerId \ + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-textmagic-provider.md new file mode 100644 index 0000000000..79160b2461 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,7 @@ +appwrite messaging updateTextmagicProvider \ + --providerId \ + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-topic.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-topic.md new file mode 100644 index 0000000000..d10b0edde3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-topic.md @@ -0,0 +1,4 @@ +appwrite messaging updateTopic \ + --topicId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-twilio-provider.md new file mode 100644 index 0000000000..c967d724af --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-twilio-provider.md @@ -0,0 +1,7 @@ +appwrite messaging updateTwilioProvider \ + --providerId \ + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/console-cli/examples/messaging/update-vonage-provider.md new file mode 100644 index 0000000000..11f7963be2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/messaging/update-vonage-provider.md @@ -0,0 +1,7 @@ +appwrite messaging updateVonageProvider \ + --providerId \ + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/create-appwrite-migration.md b/docs/examples/1.7.x/console-cli/examples/migrations/create-appwrite-migration.md new file mode 100644 index 0000000000..73e9ee62d8 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/create-appwrite-migration.md @@ -0,0 +1,5 @@ +appwrite migrations createAppwriteMigration \ + --resources one two three \ + --endpoint https://example.com \ + --projectId \ + --apiKey diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/create-csv-migration.md b/docs/examples/1.7.x/console-cli/examples/migrations/create-csv-migration.md new file mode 100644 index 0000000000..594bc85052 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/create-csv-migration.md @@ -0,0 +1,4 @@ +appwrite migrations createCsvMigration \ + --bucketId \ + --fileId \ + --resourceId [ID1:ID2] diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/create-firebase-migration.md b/docs/examples/1.7.x/console-cli/examples/migrations/create-firebase-migration.md new file mode 100644 index 0000000000..3dfb3aeac6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/create-firebase-migration.md @@ -0,0 +1,3 @@ +appwrite migrations createFirebaseMigration \ + --resources one two three \ + --serviceAccount diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/create-n-host-migration.md b/docs/examples/1.7.x/console-cli/examples/migrations/create-n-host-migration.md new file mode 100644 index 0000000000..d959897109 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/create-n-host-migration.md @@ -0,0 +1,9 @@ +appwrite migrations createNHostMigration \ + --resources one two three \ + --subdomain \ + --region \ + --adminSecret \ + --database \ + --username \ + --password \ + diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/create-supabase-migration.md b/docs/examples/1.7.x/console-cli/examples/migrations/create-supabase-migration.md new file mode 100644 index 0000000000..0620f3ba2e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/create-supabase-migration.md @@ -0,0 +1,8 @@ +appwrite migrations createSupabaseMigration \ + --resources one two three \ + --endpoint https://example.com \ + --apiKey \ + --databaseHost \ + --username \ + --password \ + diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/delete.md b/docs/examples/1.7.x/console-cli/examples/migrations/delete.md new file mode 100644 index 0000000000..9dac1aa3db --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/delete.md @@ -0,0 +1,2 @@ +appwrite migrations delete \ + --migrationId diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/get-appwrite-report.md b/docs/examples/1.7.x/console-cli/examples/migrations/get-appwrite-report.md new file mode 100644 index 0000000000..745e9fb98c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/get-appwrite-report.md @@ -0,0 +1,5 @@ +appwrite migrations getAppwriteReport \ + --resources one two three \ + --endpoint https://example.com \ + --projectID \ + --key diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/get-firebase-report.md b/docs/examples/1.7.x/console-cli/examples/migrations/get-firebase-report.md new file mode 100644 index 0000000000..73c7e1ca14 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/get-firebase-report.md @@ -0,0 +1,3 @@ +appwrite migrations getFirebaseReport \ + --resources one two three \ + --serviceAccount diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/get-n-host-report.md b/docs/examples/1.7.x/console-cli/examples/migrations/get-n-host-report.md new file mode 100644 index 0000000000..6b7e2eaff2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/get-n-host-report.md @@ -0,0 +1,9 @@ +appwrite migrations getNHostReport \ + --resources one two three \ + --subdomain \ + --region \ + --adminSecret \ + --database \ + --username \ + --password \ + diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/get-supabase-report.md b/docs/examples/1.7.x/console-cli/examples/migrations/get-supabase-report.md new file mode 100644 index 0000000000..9754f38e24 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/get-supabase-report.md @@ -0,0 +1,8 @@ +appwrite migrations getSupabaseReport \ + --resources one two three \ + --endpoint https://example.com \ + --apiKey \ + --databaseHost \ + --username \ + --password \ + diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/get.md b/docs/examples/1.7.x/console-cli/examples/migrations/get.md new file mode 100644 index 0000000000..8810646c7e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/get.md @@ -0,0 +1,2 @@ +appwrite migrations get \ + --migrationId diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/list.md b/docs/examples/1.7.x/console-cli/examples/migrations/list.md new file mode 100644 index 0000000000..c120a61e80 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/list.md @@ -0,0 +1,3 @@ +appwrite migrations list \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/migrations/retry.md b/docs/examples/1.7.x/console-cli/examples/migrations/retry.md new file mode 100644 index 0000000000..518f86cee7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/migrations/retry.md @@ -0,0 +1,2 @@ +appwrite migrations retry \ + --migrationId diff --git a/docs/examples/1.7.x/console-cli/examples/project/create-variable.md b/docs/examples/1.7.x/console-cli/examples/project/create-variable.md new file mode 100644 index 0000000000..253d6ddf75 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/project/create-variable.md @@ -0,0 +1,4 @@ +appwrite project createVariable \ + --key \ + --value \ + diff --git a/docs/examples/1.7.x/console-cli/examples/project/delete-variable.md b/docs/examples/1.7.x/console-cli/examples/project/delete-variable.md new file mode 100644 index 0000000000..7fdda874fd --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/project/delete-variable.md @@ -0,0 +1,2 @@ +appwrite project deleteVariable \ + --variableId diff --git a/docs/examples/1.7.x/console-cli/examples/project/get-usage.md b/docs/examples/1.7.x/console-cli/examples/project/get-usage.md new file mode 100644 index 0000000000..9b4c296a8c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/project/get-usage.md @@ -0,0 +1,4 @@ +appwrite project getUsage \ + --startDate '' \ + --endDate '' \ + diff --git a/docs/examples/1.7.x/console-cli/examples/project/get-variable.md b/docs/examples/1.7.x/console-cli/examples/project/get-variable.md new file mode 100644 index 0000000000..b2d482586b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/project/get-variable.md @@ -0,0 +1,2 @@ +appwrite project getVariable \ + --variableId diff --git a/docs/examples/1.7.x/console-cli/examples/project/list-variables.md b/docs/examples/1.7.x/console-cli/examples/project/list-variables.md new file mode 100644 index 0000000000..bd26c7db6b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/project/list-variables.md @@ -0,0 +1 @@ +appwrite project listVariables diff --git a/docs/examples/1.7.x/console-cli/examples/project/update-variable.md b/docs/examples/1.7.x/console-cli/examples/project/update-variable.md new file mode 100644 index 0000000000..4365b64888 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/project/update-variable.md @@ -0,0 +1,5 @@ +appwrite project updateVariable \ + --variableId \ + --key \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/create-dev-key.md b/docs/examples/1.7.x/console-cli/examples/projects/create-dev-key.md new file mode 100644 index 0000000000..8b9ec8969a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/create-dev-key.md @@ -0,0 +1,4 @@ +appwrite projects createDevKey \ + --projectId \ + --name \ + --expire '' diff --git a/docs/examples/1.7.x/console-cli/examples/projects/create-j-w-t.md b/docs/examples/1.7.x/console-cli/examples/projects/create-j-w-t.md new file mode 100644 index 0000000000..d703d36b65 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/create-j-w-t.md @@ -0,0 +1,4 @@ +appwrite projects createJWT \ + --projectId \ + --scopes one two three \ + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/create-key.md b/docs/examples/1.7.x/console-cli/examples/projects/create-key.md new file mode 100644 index 0000000000..fb986dcebc --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/create-key.md @@ -0,0 +1,5 @@ +appwrite projects createKey \ + --projectId \ + --name \ + --scopes one two three \ + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/create-platform.md b/docs/examples/1.7.x/console-cli/examples/projects/create-platform.md new file mode 100644 index 0000000000..8727d21d64 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/create-platform.md @@ -0,0 +1,7 @@ +appwrite projects createPlatform \ + --projectId \ + --type web \ + --name \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/create-smtp-test.md b/docs/examples/1.7.x/console-cli/examples/projects/create-smtp-test.md new file mode 100644 index 0000000000..66ce5880aa --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/create-smtp-test.md @@ -0,0 +1,11 @@ +appwrite projects createSmtpTest \ + --projectId \ + --emails one two three \ + --senderName \ + --senderEmail email@example.com \ + --host '' \ + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/create-webhook.md b/docs/examples/1.7.x/console-cli/examples/projects/create-webhook.md new file mode 100644 index 0000000000..03ecf4110d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/create-webhook.md @@ -0,0 +1,9 @@ +appwrite projects createWebhook \ + --projectId \ + --name \ + --events one two three \ + --url '' \ + --security false \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/create.md b/docs/examples/1.7.x/console-cli/examples/projects/create.md new file mode 100644 index 0000000000..0504785503 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/create.md @@ -0,0 +1,14 @@ +appwrite projects create \ + --projectId '' \ + --name \ + --teamId \ + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/delete-dev-key.md b/docs/examples/1.7.x/console-cli/examples/projects/delete-dev-key.md new file mode 100644 index 0000000000..2859a3309f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/delete-dev-key.md @@ -0,0 +1,3 @@ +appwrite projects deleteDevKey \ + --projectId \ + --keyId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/delete-email-template.md b/docs/examples/1.7.x/console-cli/examples/projects/delete-email-template.md new file mode 100644 index 0000000000..01ce0fac68 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/delete-email-template.md @@ -0,0 +1,4 @@ +appwrite projects deleteEmailTemplate \ + --projectId \ + --type verification \ + --locale af diff --git a/docs/examples/1.7.x/console-cli/examples/projects/delete-key.md b/docs/examples/1.7.x/console-cli/examples/projects/delete-key.md new file mode 100644 index 0000000000..6baf05706e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/delete-key.md @@ -0,0 +1,3 @@ +appwrite projects deleteKey \ + --projectId \ + --keyId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/delete-platform.md b/docs/examples/1.7.x/console-cli/examples/projects/delete-platform.md new file mode 100644 index 0000000000..a85bd865ba --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/delete-platform.md @@ -0,0 +1,3 @@ +appwrite projects deletePlatform \ + --projectId \ + --platformId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/delete-sms-template.md b/docs/examples/1.7.x/console-cli/examples/projects/delete-sms-template.md new file mode 100644 index 0000000000..3afcf649c7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/delete-sms-template.md @@ -0,0 +1,4 @@ +appwrite projects deleteSmsTemplate \ + --projectId \ + --type verification \ + --locale af diff --git a/docs/examples/1.7.x/console-cli/examples/projects/delete-webhook.md b/docs/examples/1.7.x/console-cli/examples/projects/delete-webhook.md new file mode 100644 index 0000000000..a67301ef07 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/delete-webhook.md @@ -0,0 +1,3 @@ +appwrite projects deleteWebhook \ + --projectId \ + --webhookId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/delete.md b/docs/examples/1.7.x/console-cli/examples/projects/delete.md new file mode 100644 index 0000000000..a4ffc70c91 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/delete.md @@ -0,0 +1,2 @@ +appwrite projects delete \ + --projectId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/get-dev-key.md b/docs/examples/1.7.x/console-cli/examples/projects/get-dev-key.md new file mode 100644 index 0000000000..cfc37ed437 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/get-dev-key.md @@ -0,0 +1,3 @@ +appwrite projects getDevKey \ + --projectId \ + --keyId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/get-email-template.md b/docs/examples/1.7.x/console-cli/examples/projects/get-email-template.md new file mode 100644 index 0000000000..6e4c21e52b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/get-email-template.md @@ -0,0 +1,4 @@ +appwrite projects getEmailTemplate \ + --projectId \ + --type verification \ + --locale af diff --git a/docs/examples/1.7.x/console-cli/examples/projects/get-key.md b/docs/examples/1.7.x/console-cli/examples/projects/get-key.md new file mode 100644 index 0000000000..f69b51bbe2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/get-key.md @@ -0,0 +1,3 @@ +appwrite projects getKey \ + --projectId \ + --keyId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/get-platform.md b/docs/examples/1.7.x/console-cli/examples/projects/get-platform.md new file mode 100644 index 0000000000..67648be035 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/get-platform.md @@ -0,0 +1,3 @@ +appwrite projects getPlatform \ + --projectId \ + --platformId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/get-sms-template.md b/docs/examples/1.7.x/console-cli/examples/projects/get-sms-template.md new file mode 100644 index 0000000000..c655953c8e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/get-sms-template.md @@ -0,0 +1,4 @@ +appwrite projects getSmsTemplate \ + --projectId \ + --type verification \ + --locale af diff --git a/docs/examples/1.7.x/console-cli/examples/projects/get-webhook.md b/docs/examples/1.7.x/console-cli/examples/projects/get-webhook.md new file mode 100644 index 0000000000..890bf37069 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/get-webhook.md @@ -0,0 +1,3 @@ +appwrite projects getWebhook \ + --projectId \ + --webhookId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/get.md b/docs/examples/1.7.x/console-cli/examples/projects/get.md new file mode 100644 index 0000000000..919321b81d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/get.md @@ -0,0 +1,2 @@ +appwrite projects get \ + --projectId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/list-dev-keys.md b/docs/examples/1.7.x/console-cli/examples/projects/list-dev-keys.md new file mode 100644 index 0000000000..d552cb3bca --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/list-dev-keys.md @@ -0,0 +1,3 @@ +appwrite projects listDevKeys \ + --projectId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/list-keys.md b/docs/examples/1.7.x/console-cli/examples/projects/list-keys.md new file mode 100644 index 0000000000..cc37680b5b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/list-keys.md @@ -0,0 +1,2 @@ +appwrite projects listKeys \ + --projectId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/list-platforms.md b/docs/examples/1.7.x/console-cli/examples/projects/list-platforms.md new file mode 100644 index 0000000000..5fc2ea4106 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/list-platforms.md @@ -0,0 +1,2 @@ +appwrite projects listPlatforms \ + --projectId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/list-webhooks.md b/docs/examples/1.7.x/console-cli/examples/projects/list-webhooks.md new file mode 100644 index 0000000000..dcf9953f80 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/list-webhooks.md @@ -0,0 +1,2 @@ +appwrite projects listWebhooks \ + --projectId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/list.md b/docs/examples/1.7.x/console-cli/examples/projects/list.md new file mode 100644 index 0000000000..0d3dd7a539 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/list.md @@ -0,0 +1,3 @@ +appwrite projects list \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-api-status-all.md b/docs/examples/1.7.x/console-cli/examples/projects/update-api-status-all.md new file mode 100644 index 0000000000..e5f63c59a3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-api-status-all.md @@ -0,0 +1,3 @@ +appwrite projects updateApiStatusAll \ + --projectId \ + --status false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-api-status.md b/docs/examples/1.7.x/console-cli/examples/projects/update-api-status.md new file mode 100644 index 0000000000..01120957af --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-api-status.md @@ -0,0 +1,4 @@ +appwrite projects updateApiStatus \ + --projectId \ + --api rest \ + --status false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-auth-duration.md b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-duration.md new file mode 100644 index 0000000000..ad6f8ac97c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-duration.md @@ -0,0 +1,3 @@ +appwrite projects updateAuthDuration \ + --projectId \ + --duration 0 diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-auth-limit.md b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-limit.md new file mode 100644 index 0000000000..9d01fa5a1a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-limit.md @@ -0,0 +1,3 @@ +appwrite projects updateAuthLimit \ + --projectId \ + --limit 0 diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-password-dictionary.md new file mode 100644 index 0000000000..f477bba56d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-password-dictionary.md @@ -0,0 +1,3 @@ +appwrite projects updateAuthPasswordDictionary \ + --projectId \ + --enabled false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-auth-password-history.md b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-password-history.md new file mode 100644 index 0000000000..8b9b90a32a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-password-history.md @@ -0,0 +1,3 @@ +appwrite projects updateAuthPasswordHistory \ + --projectId \ + --limit 0 diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-sessions-limit.md new file mode 100644 index 0000000000..2a1294d17b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-sessions-limit.md @@ -0,0 +1,3 @@ +appwrite projects updateAuthSessionsLimit \ + --projectId \ + --limit 1 diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-auth-status.md b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-status.md new file mode 100644 index 0000000000..848987b2f8 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-auth-status.md @@ -0,0 +1,4 @@ +appwrite projects updateAuthStatus \ + --projectId \ + --method email-password \ + --status false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-dev-key.md b/docs/examples/1.7.x/console-cli/examples/projects/update-dev-key.md new file mode 100644 index 0000000000..cc95030389 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-dev-key.md @@ -0,0 +1,5 @@ +appwrite projects updateDevKey \ + --projectId \ + --keyId \ + --name \ + --expire '' diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-email-template.md b/docs/examples/1.7.x/console-cli/examples/projects/update-email-template.md new file mode 100644 index 0000000000..a3acd066ec --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-email-template.md @@ -0,0 +1,9 @@ +appwrite projects updateEmailTemplate \ + --projectId \ + --type verification \ + --locale af \ + --subject \ + --message \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-key.md b/docs/examples/1.7.x/console-cli/examples/projects/update-key.md new file mode 100644 index 0000000000..6d3dc198da --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-key.md @@ -0,0 +1,6 @@ +appwrite projects updateKey \ + --projectId \ + --keyId \ + --name \ + --scopes one two three \ + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-memberships-privacy.md b/docs/examples/1.7.x/console-cli/examples/projects/update-memberships-privacy.md new file mode 100644 index 0000000000..6c811ccfce --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-memberships-privacy.md @@ -0,0 +1,5 @@ +appwrite projects updateMembershipsPrivacy \ + --projectId \ + --userName false \ + --userEmail false \ + --mfa false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-mock-numbers.md b/docs/examples/1.7.x/console-cli/examples/projects/update-mock-numbers.md new file mode 100644 index 0000000000..733cc16887 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-mock-numbers.md @@ -0,0 +1,3 @@ +appwrite projects updateMockNumbers \ + --projectId \ + --numbers one two three diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-o-auth2.md b/docs/examples/1.7.x/console-cli/examples/projects/update-o-auth2.md new file mode 100644 index 0000000000..92f6718962 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-o-auth2.md @@ -0,0 +1,6 @@ +appwrite projects updateOAuth2 \ + --projectId \ + --provider amazon \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-personal-data-check.md b/docs/examples/1.7.x/console-cli/examples/projects/update-personal-data-check.md new file mode 100644 index 0000000000..21dca78369 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-personal-data-check.md @@ -0,0 +1,3 @@ +appwrite projects updatePersonalDataCheck \ + --projectId \ + --enabled false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-platform.md b/docs/examples/1.7.x/console-cli/examples/projects/update-platform.md new file mode 100644 index 0000000000..05b1602ae9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-platform.md @@ -0,0 +1,7 @@ +appwrite projects updatePlatform \ + --projectId \ + --platformId \ + --name \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-service-status-all.md b/docs/examples/1.7.x/console-cli/examples/projects/update-service-status-all.md new file mode 100644 index 0000000000..1ffb77e085 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-service-status-all.md @@ -0,0 +1,3 @@ +appwrite projects updateServiceStatusAll \ + --projectId \ + --status false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-service-status.md b/docs/examples/1.7.x/console-cli/examples/projects/update-service-status.md new file mode 100644 index 0000000000..03963a1214 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-service-status.md @@ -0,0 +1,4 @@ +appwrite projects updateServiceStatus \ + --projectId \ + --service account \ + --status false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-session-alerts.md b/docs/examples/1.7.x/console-cli/examples/projects/update-session-alerts.md new file mode 100644 index 0000000000..bd23b7417a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-session-alerts.md @@ -0,0 +1,3 @@ +appwrite projects updateSessionAlerts \ + --projectId \ + --alerts false diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-sms-template.md b/docs/examples/1.7.x/console-cli/examples/projects/update-sms-template.md new file mode 100644 index 0000000000..fc8310eb25 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-sms-template.md @@ -0,0 +1,5 @@ +appwrite projects updateSmsTemplate \ + --projectId \ + --type verification \ + --locale af \ + --message diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-smtp.md b/docs/examples/1.7.x/console-cli/examples/projects/update-smtp.md new file mode 100644 index 0000000000..0afbe9cec9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-smtp.md @@ -0,0 +1,11 @@ +appwrite projects updateSmtp \ + --projectId \ + --enabled false \ + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-team.md b/docs/examples/1.7.x/console-cli/examples/projects/update-team.md new file mode 100644 index 0000000000..49214ad9f3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-team.md @@ -0,0 +1,3 @@ +appwrite projects updateTeam \ + --projectId \ + --teamId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-webhook-signature.md b/docs/examples/1.7.x/console-cli/examples/projects/update-webhook-signature.md new file mode 100644 index 0000000000..6034ef01f6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-webhook-signature.md @@ -0,0 +1,3 @@ +appwrite projects updateWebhookSignature \ + --projectId \ + --webhookId diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update-webhook.md b/docs/examples/1.7.x/console-cli/examples/projects/update-webhook.md new file mode 100644 index 0000000000..51c536d74c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update-webhook.md @@ -0,0 +1,10 @@ +appwrite projects updateWebhook \ + --projectId \ + --webhookId \ + --name \ + --events one two three \ + --url '' \ + --security false \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/projects/update.md b/docs/examples/1.7.x/console-cli/examples/projects/update.md new file mode 100644 index 0000000000..d4df289636 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/projects/update.md @@ -0,0 +1,12 @@ +appwrite projects update \ + --projectId \ + --name \ + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/proxy/create-a-p-i-rule.md b/docs/examples/1.7.x/console-cli/examples/proxy/create-a-p-i-rule.md new file mode 100644 index 0000000000..5746b94b1e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/proxy/create-a-p-i-rule.md @@ -0,0 +1,2 @@ +appwrite proxy createAPIRule \ + --domain '' diff --git a/docs/examples/1.7.x/console-cli/examples/proxy/create-function-rule.md b/docs/examples/1.7.x/console-cli/examples/proxy/create-function-rule.md new file mode 100644 index 0000000000..380650c208 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/proxy/create-function-rule.md @@ -0,0 +1,4 @@ +appwrite proxy createFunctionRule \ + --domain '' \ + --functionId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/proxy/create-redirect-rule.md b/docs/examples/1.7.x/console-cli/examples/proxy/create-redirect-rule.md new file mode 100644 index 0000000000..f975ce686e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/proxy/create-redirect-rule.md @@ -0,0 +1,4 @@ +appwrite proxy createRedirectRule \ + --domain '' \ + --url https://example.com \ + --statusCode 301 diff --git a/docs/examples/1.7.x/console-cli/examples/proxy/create-site-rule.md b/docs/examples/1.7.x/console-cli/examples/proxy/create-site-rule.md new file mode 100644 index 0000000000..eb41bd7158 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/proxy/create-site-rule.md @@ -0,0 +1,4 @@ +appwrite proxy createSiteRule \ + --domain '' \ + --siteId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/proxy/delete-rule.md b/docs/examples/1.7.x/console-cli/examples/proxy/delete-rule.md new file mode 100644 index 0000000000..b11b6ca23e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/proxy/delete-rule.md @@ -0,0 +1,2 @@ +appwrite proxy deleteRule \ + --ruleId diff --git a/docs/examples/1.7.x/console-cli/examples/proxy/get-rule.md b/docs/examples/1.7.x/console-cli/examples/proxy/get-rule.md new file mode 100644 index 0000000000..85d11a50b1 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/proxy/get-rule.md @@ -0,0 +1,2 @@ +appwrite proxy getRule \ + --ruleId diff --git a/docs/examples/1.7.x/console-cli/examples/proxy/list-rules.md b/docs/examples/1.7.x/console-cli/examples/proxy/list-rules.md new file mode 100644 index 0000000000..bc654bac5c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/proxy/list-rules.md @@ -0,0 +1,3 @@ +appwrite proxy listRules \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/proxy/update-rule-verification.md b/docs/examples/1.7.x/console-cli/examples/proxy/update-rule-verification.md new file mode 100644 index 0000000000..8200d15702 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/proxy/update-rule-verification.md @@ -0,0 +1,2 @@ +appwrite proxy updateRuleVerification \ + --ruleId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/create-deployment.md b/docs/examples/1.7.x/console-cli/examples/sites/create-deployment.md new file mode 100644 index 0000000000..a83d7f3cfe --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/create-deployment.md @@ -0,0 +1,7 @@ +appwrite sites createDeployment \ + --siteId \ + --code 'path/to/file.png' \ + --activate false \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/console-cli/examples/sites/create-duplicate-deployment.md new file mode 100644 index 0000000000..bab63ca8a3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,3 @@ +appwrite sites createDuplicateDeployment \ + --siteId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/console-cli/examples/sites/create-template-deployment.md new file mode 100644 index 0000000000..2aaaf445db --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/create-template-deployment.md @@ -0,0 +1,7 @@ +appwrite sites createTemplateDeployment \ + --siteId \ + --repository \ + --owner \ + --rootDirectory \ + --version \ + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/create-variable.md b/docs/examples/1.7.x/console-cli/examples/sites/create-variable.md new file mode 100644 index 0000000000..b640321317 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/create-variable.md @@ -0,0 +1,5 @@ +appwrite sites createVariable \ + --siteId \ + --key \ + --value \ + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/console-cli/examples/sites/create-vcs-deployment.md new file mode 100644 index 0000000000..85c96f93ec --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/create-vcs-deployment.md @@ -0,0 +1,5 @@ +appwrite sites createVcsDeployment \ + --siteId \ + --type branch \ + --reference \ + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/create.md b/docs/examples/1.7.x/console-cli/examples/sites/create.md new file mode 100644 index 0000000000..bd7e86e70f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/create.md @@ -0,0 +1,19 @@ +appwrite sites create \ + --siteId \ + --name \ + --framework analog \ + --buildRuntime node-14.5 \ + + + + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/delete-deployment.md b/docs/examples/1.7.x/console-cli/examples/sites/delete-deployment.md new file mode 100644 index 0000000000..c1cbf49637 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/delete-deployment.md @@ -0,0 +1,3 @@ +appwrite sites deleteDeployment \ + --siteId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/delete-log.md b/docs/examples/1.7.x/console-cli/examples/sites/delete-log.md new file mode 100644 index 0000000000..6769be255c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/delete-log.md @@ -0,0 +1,3 @@ +appwrite sites deleteLog \ + --siteId \ + --logId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/delete-variable.md b/docs/examples/1.7.x/console-cli/examples/sites/delete-variable.md new file mode 100644 index 0000000000..60d9ecf4eb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/delete-variable.md @@ -0,0 +1,3 @@ +appwrite sites deleteVariable \ + --siteId \ + --variableId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/delete.md b/docs/examples/1.7.x/console-cli/examples/sites/delete.md new file mode 100644 index 0000000000..9071454850 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/delete.md @@ -0,0 +1,2 @@ +appwrite sites delete \ + --siteId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/console-cli/examples/sites/get-deployment-download.md new file mode 100644 index 0000000000..1fae298796 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/get-deployment-download.md @@ -0,0 +1,4 @@ +appwrite sites getDeploymentDownload \ + --siteId \ + --deploymentId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/get-deployment.md b/docs/examples/1.7.x/console-cli/examples/sites/get-deployment.md new file mode 100644 index 0000000000..93680ff70d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/get-deployment.md @@ -0,0 +1,3 @@ +appwrite sites getDeployment \ + --siteId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/get-log.md b/docs/examples/1.7.x/console-cli/examples/sites/get-log.md new file mode 100644 index 0000000000..7867aba05e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/get-log.md @@ -0,0 +1,3 @@ +appwrite sites getLog \ + --siteId \ + --logId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/get-template.md b/docs/examples/1.7.x/console-cli/examples/sites/get-template.md new file mode 100644 index 0000000000..e04dd2e120 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/get-template.md @@ -0,0 +1,2 @@ +appwrite sites getTemplate \ + --templateId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/get-usage.md b/docs/examples/1.7.x/console-cli/examples/sites/get-usage.md new file mode 100644 index 0000000000..6de7d6bde8 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/get-usage.md @@ -0,0 +1,3 @@ +appwrite sites getUsage \ + --siteId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/get-variable.md b/docs/examples/1.7.x/console-cli/examples/sites/get-variable.md new file mode 100644 index 0000000000..b60b577c38 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/get-variable.md @@ -0,0 +1,3 @@ +appwrite sites getVariable \ + --siteId \ + --variableId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/get.md b/docs/examples/1.7.x/console-cli/examples/sites/get.md new file mode 100644 index 0000000000..7922efa5f0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/get.md @@ -0,0 +1,2 @@ +appwrite sites get \ + --siteId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/list-deployments.md b/docs/examples/1.7.x/console-cli/examples/sites/list-deployments.md new file mode 100644 index 0000000000..5ab2cdc104 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/list-deployments.md @@ -0,0 +1,4 @@ +appwrite sites listDeployments \ + --siteId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/list-frameworks.md b/docs/examples/1.7.x/console-cli/examples/sites/list-frameworks.md new file mode 100644 index 0000000000..1d9b6b4b87 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/list-frameworks.md @@ -0,0 +1 @@ +appwrite sites listFrameworks diff --git a/docs/examples/1.7.x/console-cli/examples/sites/list-logs.md b/docs/examples/1.7.x/console-cli/examples/sites/list-logs.md new file mode 100644 index 0000000000..f13864fe6b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/list-logs.md @@ -0,0 +1,3 @@ +appwrite sites listLogs \ + --siteId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/list-specifications.md b/docs/examples/1.7.x/console-cli/examples/sites/list-specifications.md new file mode 100644 index 0000000000..dc1a16c9dc --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/list-specifications.md @@ -0,0 +1 @@ +appwrite sites listSpecifications diff --git a/docs/examples/1.7.x/console-cli/examples/sites/list-templates.md b/docs/examples/1.7.x/console-cli/examples/sites/list-templates.md new file mode 100644 index 0000000000..9d93913d94 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/list-templates.md @@ -0,0 +1,5 @@ +appwrite sites listTemplates \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/list-usage.md b/docs/examples/1.7.x/console-cli/examples/sites/list-usage.md new file mode 100644 index 0000000000..a6f43f61e7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/list-usage.md @@ -0,0 +1,2 @@ +appwrite sites listUsage \ + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/list-variables.md b/docs/examples/1.7.x/console-cli/examples/sites/list-variables.md new file mode 100644 index 0000000000..13a258b054 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/list-variables.md @@ -0,0 +1,2 @@ +appwrite sites listVariables \ + --siteId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/list.md b/docs/examples/1.7.x/console-cli/examples/sites/list.md new file mode 100644 index 0000000000..0cad70e894 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/list.md @@ -0,0 +1,3 @@ +appwrite sites list \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/console-cli/examples/sites/update-deployment-status.md new file mode 100644 index 0000000000..7923b384f6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/update-deployment-status.md @@ -0,0 +1,3 @@ +appwrite sites updateDeploymentStatus \ + --siteId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/console-cli/examples/sites/update-site-deployment.md new file mode 100644 index 0000000000..de877d8ae7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/update-site-deployment.md @@ -0,0 +1,3 @@ +appwrite sites updateSiteDeployment \ + --siteId \ + --deploymentId diff --git a/docs/examples/1.7.x/console-cli/examples/sites/update-variable.md b/docs/examples/1.7.x/console-cli/examples/sites/update-variable.md new file mode 100644 index 0000000000..e968771056 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/update-variable.md @@ -0,0 +1,6 @@ +appwrite sites updateVariable \ + --siteId \ + --variableId \ + --key \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/sites/update.md b/docs/examples/1.7.x/console-cli/examples/sites/update.md new file mode 100644 index 0000000000..192ee26e3e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/sites/update.md @@ -0,0 +1,19 @@ +appwrite sites update \ + --siteId \ + --name \ + --framework analog \ + + + + + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/create-bucket.md b/docs/examples/1.7.x/console-cli/examples/storage/create-bucket.md new file mode 100644 index 0000000000..878c10d253 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/create-bucket.md @@ -0,0 +1,11 @@ +appwrite storage createBucket \ + --bucketId \ + --name \ + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/create-file.md b/docs/examples/1.7.x/console-cli/examples/storage/create-file.md new file mode 100644 index 0000000000..67bd4da2c0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/create-file.md @@ -0,0 +1,5 @@ +appwrite storage createFile \ + --bucketId \ + --fileId \ + --file 'path/to/file.png' \ + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/delete-bucket.md b/docs/examples/1.7.x/console-cli/examples/storage/delete-bucket.md new file mode 100644 index 0000000000..e51797e12c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/delete-bucket.md @@ -0,0 +1,2 @@ +appwrite storage deleteBucket \ + --bucketId diff --git a/docs/examples/1.7.x/console-cli/examples/storage/delete-file.md b/docs/examples/1.7.x/console-cli/examples/storage/delete-file.md new file mode 100644 index 0000000000..79c03e8288 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/delete-file.md @@ -0,0 +1,3 @@ +appwrite storage deleteFile \ + --bucketId \ + --fileId diff --git a/docs/examples/1.7.x/console-cli/examples/storage/get-bucket-usage.md b/docs/examples/1.7.x/console-cli/examples/storage/get-bucket-usage.md new file mode 100644 index 0000000000..df3659c60a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/get-bucket-usage.md @@ -0,0 +1,3 @@ +appwrite storage getBucketUsage \ + --bucketId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/get-bucket.md b/docs/examples/1.7.x/console-cli/examples/storage/get-bucket.md new file mode 100644 index 0000000000..cf8725b35d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/get-bucket.md @@ -0,0 +1,2 @@ +appwrite storage getBucket \ + --bucketId diff --git a/docs/examples/1.7.x/console-cli/examples/storage/get-file-download.md b/docs/examples/1.7.x/console-cli/examples/storage/get-file-download.md new file mode 100644 index 0000000000..79f3368d87 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/get-file-download.md @@ -0,0 +1,4 @@ +appwrite storage getFileDownload \ + --bucketId \ + --fileId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/get-file-preview.md b/docs/examples/1.7.x/console-cli/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..de437af65b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/get-file-preview.md @@ -0,0 +1,15 @@ +appwrite storage getFilePreview \ + --bucketId \ + --fileId \ + + + + + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/get-file-view.md b/docs/examples/1.7.x/console-cli/examples/storage/get-file-view.md new file mode 100644 index 0000000000..689cf1233b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/get-file-view.md @@ -0,0 +1,4 @@ +appwrite storage getFileView \ + --bucketId \ + --fileId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/get-file.md b/docs/examples/1.7.x/console-cli/examples/storage/get-file.md new file mode 100644 index 0000000000..641c20d2b0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/get-file.md @@ -0,0 +1,3 @@ +appwrite storage getFile \ + --bucketId \ + --fileId diff --git a/docs/examples/1.7.x/console-cli/examples/storage/get-usage.md b/docs/examples/1.7.x/console-cli/examples/storage/get-usage.md new file mode 100644 index 0000000000..29466e02f0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/get-usage.md @@ -0,0 +1,2 @@ +appwrite storage getUsage \ + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/list-buckets.md b/docs/examples/1.7.x/console-cli/examples/storage/list-buckets.md new file mode 100644 index 0000000000..a5cad1988f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/list-buckets.md @@ -0,0 +1,3 @@ +appwrite storage listBuckets \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/list-files.md b/docs/examples/1.7.x/console-cli/examples/storage/list-files.md new file mode 100644 index 0000000000..0e1c2f09c0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/list-files.md @@ -0,0 +1,4 @@ +appwrite storage listFiles \ + --bucketId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/update-bucket.md b/docs/examples/1.7.x/console-cli/examples/storage/update-bucket.md new file mode 100644 index 0000000000..b006a7bf74 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/update-bucket.md @@ -0,0 +1,11 @@ +appwrite storage updateBucket \ + --bucketId \ + --name \ + + + + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/storage/update-file.md b/docs/examples/1.7.x/console-cli/examples/storage/update-file.md new file mode 100644 index 0000000000..593ea658a0 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/storage/update-file.md @@ -0,0 +1,5 @@ +appwrite storage updateFile \ + --bucketId \ + --fileId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/teams/create-membership.md b/docs/examples/1.7.x/console-cli/examples/teams/create-membership.md new file mode 100644 index 0000000000..0d0fc8df09 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/create-membership.md @@ -0,0 +1,8 @@ +appwrite teams createMembership \ + --teamId \ + --roles one two three \ + + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/teams/create.md b/docs/examples/1.7.x/console-cli/examples/teams/create.md new file mode 100644 index 0000000000..e0f9a126f2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/create.md @@ -0,0 +1,4 @@ +appwrite teams create \ + --teamId \ + --name \ + diff --git a/docs/examples/1.7.x/console-cli/examples/teams/delete-membership.md b/docs/examples/1.7.x/console-cli/examples/teams/delete-membership.md new file mode 100644 index 0000000000..58d0adbac7 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/delete-membership.md @@ -0,0 +1,3 @@ +appwrite teams deleteMembership \ + --teamId \ + --membershipId diff --git a/docs/examples/1.7.x/console-cli/examples/teams/delete.md b/docs/examples/1.7.x/console-cli/examples/teams/delete.md new file mode 100644 index 0000000000..5b018158cd --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/delete.md @@ -0,0 +1,2 @@ +appwrite teams delete \ + --teamId diff --git a/docs/examples/1.7.x/console-cli/examples/teams/get-membership.md b/docs/examples/1.7.x/console-cli/examples/teams/get-membership.md new file mode 100644 index 0000000000..5e6af4c1a1 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/get-membership.md @@ -0,0 +1,3 @@ +appwrite teams getMembership \ + --teamId \ + --membershipId diff --git a/docs/examples/1.7.x/console-cli/examples/teams/get-prefs.md b/docs/examples/1.7.x/console-cli/examples/teams/get-prefs.md new file mode 100644 index 0000000000..2ab1f1dc01 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/get-prefs.md @@ -0,0 +1,2 @@ +appwrite teams getPrefs \ + --teamId diff --git a/docs/examples/1.7.x/console-cli/examples/teams/get.md b/docs/examples/1.7.x/console-cli/examples/teams/get.md new file mode 100644 index 0000000000..c8e75b7543 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/get.md @@ -0,0 +1,2 @@ +appwrite teams get \ + --teamId diff --git a/docs/examples/1.7.x/console-cli/examples/teams/list-logs.md b/docs/examples/1.7.x/console-cli/examples/teams/list-logs.md new file mode 100644 index 0000000000..66149350d8 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/list-logs.md @@ -0,0 +1,3 @@ +appwrite teams listLogs \ + --teamId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/teams/list-memberships.md b/docs/examples/1.7.x/console-cli/examples/teams/list-memberships.md new file mode 100644 index 0000000000..050ea961d2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/list-memberships.md @@ -0,0 +1,4 @@ +appwrite teams listMemberships \ + --teamId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/teams/list.md b/docs/examples/1.7.x/console-cli/examples/teams/list.md new file mode 100644 index 0000000000..dfffc4d4dd --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/list.md @@ -0,0 +1,3 @@ +appwrite teams list \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/teams/update-membership-status.md b/docs/examples/1.7.x/console-cli/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..aa4acf9457 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/update-membership-status.md @@ -0,0 +1,5 @@ +appwrite teams updateMembershipStatus \ + --teamId \ + --membershipId \ + --userId \ + --secret diff --git a/docs/examples/1.7.x/console-cli/examples/teams/update-membership.md b/docs/examples/1.7.x/console-cli/examples/teams/update-membership.md new file mode 100644 index 0000000000..6cfda92920 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/update-membership.md @@ -0,0 +1,4 @@ +appwrite teams updateMembership \ + --teamId \ + --membershipId \ + --roles one two three diff --git a/docs/examples/1.7.x/console-cli/examples/teams/update-name.md b/docs/examples/1.7.x/console-cli/examples/teams/update-name.md new file mode 100644 index 0000000000..8c73e00d7b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/update-name.md @@ -0,0 +1,3 @@ +appwrite teams updateName \ + --teamId \ + --name diff --git a/docs/examples/1.7.x/console-cli/examples/teams/update-prefs.md b/docs/examples/1.7.x/console-cli/examples/teams/update-prefs.md new file mode 100644 index 0000000000..b6fc5a8f6e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/teams/update-prefs.md @@ -0,0 +1,3 @@ +appwrite teams updatePrefs \ + --teamId \ + --prefs '{ "key": "value" }' diff --git a/docs/examples/1.7.x/console-cli/examples/tokens/create-file-token.md b/docs/examples/1.7.x/console-cli/examples/tokens/create-file-token.md new file mode 100644 index 0000000000..8de8d7ac6c --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/tokens/create-file-token.md @@ -0,0 +1,4 @@ +appwrite tokens createFileToken \ + --bucketId \ + --fileId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/tokens/delete.md b/docs/examples/1.7.x/console-cli/examples/tokens/delete.md new file mode 100644 index 0000000000..c25ea4a4b4 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/tokens/delete.md @@ -0,0 +1,2 @@ +appwrite tokens delete \ + --tokenId diff --git a/docs/examples/1.7.x/console-cli/examples/tokens/get.md b/docs/examples/1.7.x/console-cli/examples/tokens/get.md new file mode 100644 index 0000000000..2c48280b0d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/tokens/get.md @@ -0,0 +1,2 @@ +appwrite tokens get \ + --tokenId diff --git a/docs/examples/1.7.x/console-cli/examples/tokens/list.md b/docs/examples/1.7.x/console-cli/examples/tokens/list.md new file mode 100644 index 0000000000..a808e545ca --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/tokens/list.md @@ -0,0 +1,4 @@ +appwrite tokens list \ + --bucketId \ + --fileId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/tokens/update.md b/docs/examples/1.7.x/console-cli/examples/tokens/update.md new file mode 100644 index 0000000000..73f21609b6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/tokens/update.md @@ -0,0 +1,3 @@ +appwrite tokens update \ + --tokenId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-argon2user.md b/docs/examples/1.7.x/console-cli/examples/users/create-argon2user.md new file mode 100644 index 0000000000..b0c7494e20 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-argon2user.md @@ -0,0 +1,5 @@ +appwrite users createArgon2User \ + --userId \ + --email email@example.com \ + --password password \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/console-cli/examples/users/create-bcrypt-user.md new file mode 100644 index 0000000000..b5686721b5 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-bcrypt-user.md @@ -0,0 +1,5 @@ +appwrite users createBcryptUser \ + --userId \ + --email email@example.com \ + --password password \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-j-w-t.md b/docs/examples/1.7.x/console-cli/examples/users/create-j-w-t.md new file mode 100644 index 0000000000..220086bb1a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-j-w-t.md @@ -0,0 +1,4 @@ +appwrite users createJWT \ + --userId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-m-d5user.md b/docs/examples/1.7.x/console-cli/examples/users/create-m-d5user.md new file mode 100644 index 0000000000..ba37a78be2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-m-d5user.md @@ -0,0 +1,5 @@ +appwrite users createMD5User \ + --userId \ + --email email@example.com \ + --password password \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/console-cli/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 0000000000..4dbd98ff8a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,2 @@ +appwrite users createMfaRecoveryCodes \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/console-cli/examples/users/create-p-h-pass-user.md new file mode 100644 index 0000000000..9dc378dc99 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-p-h-pass-user.md @@ -0,0 +1,5 @@ +appwrite users createPHPassUser \ + --userId \ + --email email@example.com \ + --password password \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/console-cli/examples/users/create-s-h-a-user.md new file mode 100644 index 0000000000..57483625e9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-s-h-a-user.md @@ -0,0 +1,6 @@ +appwrite users createSHAUser \ + --userId \ + --email email@example.com \ + --password password \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/console-cli/examples/users/create-scrypt-modified-user.md new file mode 100644 index 0000000000..25fc60b6e1 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,8 @@ +appwrite users createScryptModifiedUser \ + --userId \ + --email email@example.com \ + --password password \ + --passwordSalt \ + --passwordSaltSeparator \ + --passwordSignerKey \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/console-cli/examples/users/create-scrypt-user.md new file mode 100644 index 0000000000..3fc56b1ee3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-scrypt-user.md @@ -0,0 +1,10 @@ +appwrite users createScryptUser \ + --userId \ + --email email@example.com \ + --password password \ + --passwordSalt \ + --passwordCpu null \ + --passwordMemory null \ + --passwordParallel null \ + --passwordLength null \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-session.md b/docs/examples/1.7.x/console-cli/examples/users/create-session.md new file mode 100644 index 0000000000..c8938fa706 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-session.md @@ -0,0 +1,2 @@ +appwrite users createSession \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-target.md b/docs/examples/1.7.x/console-cli/examples/users/create-target.md new file mode 100644 index 0000000000..8d9306b00e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-target.md @@ -0,0 +1,7 @@ +appwrite users createTarget \ + --userId \ + --targetId \ + --providerType email \ + --identifier \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create-token.md b/docs/examples/1.7.x/console-cli/examples/users/create-token.md new file mode 100644 index 0000000000..9962e72c73 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create-token.md @@ -0,0 +1,4 @@ +appwrite users createToken \ + --userId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/users/create.md b/docs/examples/1.7.x/console-cli/examples/users/create.md new file mode 100644 index 0000000000..e828f56ecb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/create.md @@ -0,0 +1,6 @@ +appwrite users create \ + --userId \ + + + + diff --git a/docs/examples/1.7.x/console-cli/examples/users/delete-identity.md b/docs/examples/1.7.x/console-cli/examples/users/delete-identity.md new file mode 100644 index 0000000000..f3d2d6d980 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/delete-identity.md @@ -0,0 +1,2 @@ +appwrite users deleteIdentity \ + --identityId diff --git a/docs/examples/1.7.x/console-cli/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/console-cli/examples/users/delete-mfa-authenticator.md new file mode 100644 index 0000000000..edc67d0b9a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,3 @@ +appwrite users deleteMfaAuthenticator \ + --userId \ + --type totp diff --git a/docs/examples/1.7.x/console-cli/examples/users/delete-session.md b/docs/examples/1.7.x/console-cli/examples/users/delete-session.md new file mode 100644 index 0000000000..9f1fbdbfb3 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/delete-session.md @@ -0,0 +1,3 @@ +appwrite users deleteSession \ + --userId \ + --sessionId diff --git a/docs/examples/1.7.x/console-cli/examples/users/delete-sessions.md b/docs/examples/1.7.x/console-cli/examples/users/delete-sessions.md new file mode 100644 index 0000000000..4c683d270a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/delete-sessions.md @@ -0,0 +1,2 @@ +appwrite users deleteSessions \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/delete-target.md b/docs/examples/1.7.x/console-cli/examples/users/delete-target.md new file mode 100644 index 0000000000..e9780911fd --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/delete-target.md @@ -0,0 +1,3 @@ +appwrite users deleteTarget \ + --userId \ + --targetId diff --git a/docs/examples/1.7.x/console-cli/examples/users/delete.md b/docs/examples/1.7.x/console-cli/examples/users/delete.md new file mode 100644 index 0000000000..293a5b040d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/delete.md @@ -0,0 +1,2 @@ +appwrite users delete \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/console-cli/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 0000000000..cefcce607a --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,2 @@ +appwrite users getMfaRecoveryCodes \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/get-prefs.md b/docs/examples/1.7.x/console-cli/examples/users/get-prefs.md new file mode 100644 index 0000000000..324aa4f508 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/get-prefs.md @@ -0,0 +1,2 @@ +appwrite users getPrefs \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/get-target.md b/docs/examples/1.7.x/console-cli/examples/users/get-target.md new file mode 100644 index 0000000000..b80dbd9728 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/get-target.md @@ -0,0 +1,3 @@ +appwrite users getTarget \ + --userId \ + --targetId diff --git a/docs/examples/1.7.x/console-cli/examples/users/get-usage.md b/docs/examples/1.7.x/console-cli/examples/users/get-usage.md new file mode 100644 index 0000000000..ad7895d3aa --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/get-usage.md @@ -0,0 +1,2 @@ +appwrite users getUsage \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/get.md b/docs/examples/1.7.x/console-cli/examples/users/get.md new file mode 100644 index 0000000000..47002c5063 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/get.md @@ -0,0 +1,2 @@ +appwrite users get \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/list-identities.md b/docs/examples/1.7.x/console-cli/examples/users/list-identities.md new file mode 100644 index 0000000000..c6cd6d5e28 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/list-identities.md @@ -0,0 +1,3 @@ +appwrite users listIdentities \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/users/list-logs.md b/docs/examples/1.7.x/console-cli/examples/users/list-logs.md new file mode 100644 index 0000000000..0b0bc1f50f --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/list-logs.md @@ -0,0 +1,3 @@ +appwrite users listLogs \ + --userId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/list-memberships.md b/docs/examples/1.7.x/console-cli/examples/users/list-memberships.md new file mode 100644 index 0000000000..119f446ec9 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/list-memberships.md @@ -0,0 +1,4 @@ +appwrite users listMemberships \ + --userId \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/console-cli/examples/users/list-mfa-factors.md new file mode 100644 index 0000000000..e5d111b8ee --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/list-mfa-factors.md @@ -0,0 +1,2 @@ +appwrite users listMfaFactors \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/list-sessions.md b/docs/examples/1.7.x/console-cli/examples/users/list-sessions.md new file mode 100644 index 0000000000..cb85d15ff6 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/list-sessions.md @@ -0,0 +1,2 @@ +appwrite users listSessions \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/list-targets.md b/docs/examples/1.7.x/console-cli/examples/users/list-targets.md new file mode 100644 index 0000000000..9b5614bd32 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/list-targets.md @@ -0,0 +1,3 @@ +appwrite users listTargets \ + --userId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/users/list.md b/docs/examples/1.7.x/console-cli/examples/users/list.md new file mode 100644 index 0000000000..e5fdb9e5c5 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/list.md @@ -0,0 +1,3 @@ +appwrite users list \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-email-verification.md b/docs/examples/1.7.x/console-cli/examples/users/update-email-verification.md new file mode 100644 index 0000000000..990436f38b --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-email-verification.md @@ -0,0 +1,3 @@ +appwrite users updateEmailVerification \ + --userId \ + --emailVerification false diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-email.md b/docs/examples/1.7.x/console-cli/examples/users/update-email.md new file mode 100644 index 0000000000..cce20e9ebf --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-email.md @@ -0,0 +1,3 @@ +appwrite users updateEmail \ + --userId \ + --email email@example.com diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-labels.md b/docs/examples/1.7.x/console-cli/examples/users/update-labels.md new file mode 100644 index 0000000000..ca60c59683 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-labels.md @@ -0,0 +1,3 @@ +appwrite users updateLabels \ + --userId \ + --labels one two three diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/console-cli/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 0000000000..63fb7f25eb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,2 @@ +appwrite users updateMfaRecoveryCodes \ + --userId diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-mfa.md b/docs/examples/1.7.x/console-cli/examples/users/update-mfa.md new file mode 100644 index 0000000000..3ccdbd8fdf --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-mfa.md @@ -0,0 +1,3 @@ +appwrite users updateMfa \ + --userId \ + --mfa false diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-name.md b/docs/examples/1.7.x/console-cli/examples/users/update-name.md new file mode 100644 index 0000000000..9bf20eb117 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-name.md @@ -0,0 +1,3 @@ +appwrite users updateName \ + --userId \ + --name diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-password.md b/docs/examples/1.7.x/console-cli/examples/users/update-password.md new file mode 100644 index 0000000000..c05197b3c2 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-password.md @@ -0,0 +1,3 @@ +appwrite users updatePassword \ + --userId \ + --password '' diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-phone-verification.md b/docs/examples/1.7.x/console-cli/examples/users/update-phone-verification.md new file mode 100644 index 0000000000..b88a282d48 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-phone-verification.md @@ -0,0 +1,3 @@ +appwrite users updatePhoneVerification \ + --userId \ + --phoneVerification false diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-phone.md b/docs/examples/1.7.x/console-cli/examples/users/update-phone.md new file mode 100644 index 0000000000..118c8e3557 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-phone.md @@ -0,0 +1,3 @@ +appwrite users updatePhone \ + --userId \ + --number +12065550100 diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-prefs.md b/docs/examples/1.7.x/console-cli/examples/users/update-prefs.md new file mode 100644 index 0000000000..f3fa995e4d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-prefs.md @@ -0,0 +1,3 @@ +appwrite users updatePrefs \ + --userId \ + --prefs '{ "key": "value" }' diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-status.md b/docs/examples/1.7.x/console-cli/examples/users/update-status.md new file mode 100644 index 0000000000..b587b70e9e --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-status.md @@ -0,0 +1,3 @@ +appwrite users updateStatus \ + --userId \ + --status false diff --git a/docs/examples/1.7.x/console-cli/examples/users/update-target.md b/docs/examples/1.7.x/console-cli/examples/users/update-target.md new file mode 100644 index 0000000000..d6541a0600 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/users/update-target.md @@ -0,0 +1,6 @@ +appwrite users updateTarget \ + --userId \ + --targetId \ + + + diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/create-repository-detection.md b/docs/examples/1.7.x/console-cli/examples/vcs/create-repository-detection.md new file mode 100644 index 0000000000..d12a093d2d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/create-repository-detection.md @@ -0,0 +1,5 @@ +appwrite vcs createRepositoryDetection \ + --installationId \ + --providerRepositoryId \ + --type runtime \ + diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/create-repository.md b/docs/examples/1.7.x/console-cli/examples/vcs/create-repository.md new file mode 100644 index 0000000000..a4934d5ef5 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/create-repository.md @@ -0,0 +1,4 @@ +appwrite vcs createRepository \ + --installationId \ + --name \ + --private false diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/delete-installation.md b/docs/examples/1.7.x/console-cli/examples/vcs/delete-installation.md new file mode 100644 index 0000000000..f7d3a92001 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/delete-installation.md @@ -0,0 +1,2 @@ +appwrite vcs deleteInstallation \ + --installationId diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/get-installation.md b/docs/examples/1.7.x/console-cli/examples/vcs/get-installation.md new file mode 100644 index 0000000000..df51853ea4 --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/get-installation.md @@ -0,0 +1,2 @@ +appwrite vcs getInstallation \ + --installationId diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/get-repository-contents.md b/docs/examples/1.7.x/console-cli/examples/vcs/get-repository-contents.md new file mode 100644 index 0000000000..7d378d7efa --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/get-repository-contents.md @@ -0,0 +1,4 @@ +appwrite vcs getRepositoryContents \ + --installationId \ + --providerRepositoryId \ + diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/get-repository.md b/docs/examples/1.7.x/console-cli/examples/vcs/get-repository.md new file mode 100644 index 0000000000..9f88e18eef --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/get-repository.md @@ -0,0 +1,3 @@ +appwrite vcs getRepository \ + --installationId \ + --providerRepositoryId diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/list-installations.md b/docs/examples/1.7.x/console-cli/examples/vcs/list-installations.md new file mode 100644 index 0000000000..a0af28dfbb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/list-installations.md @@ -0,0 +1,3 @@ +appwrite vcs listInstallations \ + + diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/list-repositories.md b/docs/examples/1.7.x/console-cli/examples/vcs/list-repositories.md new file mode 100644 index 0000000000..15c3a643bb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/list-repositories.md @@ -0,0 +1,4 @@ +appwrite vcs listRepositories \ + --installationId \ + --type runtime \ + diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/list-repository-branches.md b/docs/examples/1.7.x/console-cli/examples/vcs/list-repository-branches.md new file mode 100644 index 0000000000..ea2fbd29fb --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/list-repository-branches.md @@ -0,0 +1,3 @@ +appwrite vcs listRepositoryBranches \ + --installationId \ + --providerRepositoryId diff --git a/docs/examples/1.7.x/console-cli/examples/vcs/update-external-deployments.md b/docs/examples/1.7.x/console-cli/examples/vcs/update-external-deployments.md new file mode 100644 index 0000000000..417b59431d --- /dev/null +++ b/docs/examples/1.7.x/console-cli/examples/vcs/update-external-deployments.md @@ -0,0 +1,4 @@ +appwrite vcs updateExternalDeployments \ + --installationId \ + --repositoryId \ + --providerPullRequestId diff --git a/docs/examples/1.7.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/console-web/examples/account/create-anonymous-session.md new file mode 100644 index 0000000000..113f882e80 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-anonymous-session.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createAnonymousSession(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-email-password-session.md b/docs/examples/1.7.x/console-web/examples/account/create-email-password-session.md new file mode 100644 index 0000000000..36a503164b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-email-password-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createEmailPasswordSession( + 'email@example.com', // email + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-email-token.md b/docs/examples/1.7.x/console-web/examples/account/create-email-token.md new file mode 100644 index 0000000000..9517000af3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-email-token.md @@ -0,0 +1,15 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createEmailToken( + '', // userId + 'email@example.com', // email + false // phrase (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.7.x/console-web/examples/account/create-j-w-t.md new file mode 100644 index 0000000000..9fc0e6da5e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-j-w-t.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createJWT(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/console-web/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 0000000000..6b1891855e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,16 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createMagicURLToken( + '', // userId + 'email@example.com', // email + 'https://example.com', // url (optional) + false // phrase (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/console-web/examples/account/create-mfa-authenticator.md new file mode 100644 index 0000000000..923eb1ee3c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-mfa-authenticator.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaAuthenticator( + AuthenticatorType.Totp // type +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/console-web/examples/account/create-mfa-challenge.md new file mode 100644 index 0000000000..fd6af6ec19 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-mfa-challenge.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaChallenge( + AuthenticationFactor.Email // factor +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/console-web/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 0000000000..d7c122b79c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.7.x/console-web/examples/account/create-o-auth2session.md new file mode 100644 index 0000000000..a11bd9880b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-o-auth2session.md @@ -0,0 +1,15 @@ +import { Client, Account, OAuthProvider } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +account.createOAuth2Session( + OAuthProvider.Amazon, // provider + 'https://example.com', // success (optional) + 'https://example.com', // failure (optional) + [] // scopes (optional) +); + diff --git a/docs/examples/1.7.x/console-web/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/console-web/examples/account/create-o-auth2token.md new file mode 100644 index 0000000000..9eb7cfab67 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-o-auth2token.md @@ -0,0 +1,15 @@ +import { Client, Account, OAuthProvider } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +account.createOAuth2Token( + OAuthProvider.Amazon, // provider + 'https://example.com', // success (optional) + 'https://example.com', // failure (optional) + [] // scopes (optional) +); + diff --git a/docs/examples/1.7.x/console-web/examples/account/create-phone-token.md b/docs/examples/1.7.x/console-web/examples/account/create-phone-token.md new file mode 100644 index 0000000000..25216ca73c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-phone-token.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createPhoneToken( + '', // userId + '+12065550100' // phone +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.7.x/console-web/examples/account/create-phone-verification.md new file mode 100644 index 0000000000..03185e3e91 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-phone-verification.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createPhoneVerification(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-push-target.md b/docs/examples/1.7.x/console-web/examples/account/create-push-target.md new file mode 100644 index 0000000000..ee35566f8a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-push-target.md @@ -0,0 +1,15 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createPushTarget( + '', // targetId + '', // identifier + '' // providerId (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-recovery.md b/docs/examples/1.7.x/console-web/examples/account/create-recovery.md new file mode 100644 index 0000000000..c2bb4422fa --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-recovery.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createRecovery( + 'email@example.com', // email + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-session.md b/docs/examples/1.7.x/console-web/examples/account/create-session.md new file mode 100644 index 0000000000..1c8d8a4480 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createSession( + '', // userId + '' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create-verification.md b/docs/examples/1.7.x/console-web/examples/account/create-verification.md new file mode 100644 index 0000000000..f6eacdce1f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create-verification.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.createVerification( + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/create.md b/docs/examples/1.7.x/console-web/examples/account/create.md new file mode 100644 index 0000000000..d220aed8d0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/create.md @@ -0,0 +1,16 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.create( + '', // userId + 'email@example.com', // email + '', // password + '' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/delete-identity.md b/docs/examples/1.7.x/console-web/examples/account/delete-identity.md new file mode 100644 index 0000000000..6808b32a1d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/delete-identity.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.deleteIdentity( + '' // identityId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/console-web/examples/account/delete-mfa-authenticator.md new file mode 100644 index 0000000000..54610a810c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.deleteMfaAuthenticator( + AuthenticatorType.Totp // type +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/delete-push-target.md b/docs/examples/1.7.x/console-web/examples/account/delete-push-target.md new file mode 100644 index 0000000000..f530b64dad --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/delete-push-target.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.deletePushTarget( + '' // targetId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/delete-session.md b/docs/examples/1.7.x/console-web/examples/account/delete-session.md new file mode 100644 index 0000000000..4eba0515e4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/delete-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.deleteSession( + '' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.7.x/console-web/examples/account/delete-sessions.md new file mode 100644 index 0000000000..b9904d612f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/delete-sessions.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.deleteSessions(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/delete.md b/docs/examples/1.7.x/console-web/examples/account/delete.md new file mode 100644 index 0000000000..2fc730f9f0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/delete.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.delete(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/console-web/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 0000000000..bee039c48d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.getMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/get-prefs.md b/docs/examples/1.7.x/console-web/examples/account/get-prefs.md new file mode 100644 index 0000000000..3a013e6615 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/get-prefs.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.getPrefs(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/get-session.md b/docs/examples/1.7.x/console-web/examples/account/get-session.md new file mode 100644 index 0000000000..d5da237783 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/get-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.getSession( + '' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/get.md b/docs/examples/1.7.x/console-web/examples/account/get.md new file mode 100644 index 0000000000..35661e483b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/get.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.get(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/list-identities.md b/docs/examples/1.7.x/console-web/examples/account/list-identities.md new file mode 100644 index 0000000000..675e902c9f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/list-identities.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.listIdentities( + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/list-logs.md b/docs/examples/1.7.x/console-web/examples/account/list-logs.md new file mode 100644 index 0000000000..72a0ee12dd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/list-logs.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.listLogs( + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/console-web/examples/account/list-mfa-factors.md new file mode 100644 index 0000000000..7cbc52ec71 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/list-mfa-factors.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.listMfaFactors(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/list-sessions.md b/docs/examples/1.7.x/console-web/examples/account/list-sessions.md new file mode 100644 index 0000000000..6a24e372c5 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/list-sessions.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.listSessions(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-email.md b/docs/examples/1.7.x/console-web/examples/account/update-email.md new file mode 100644 index 0000000000..df1c7f480a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-email.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateEmail( + 'email@example.com', // email + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-m-f-a.md b/docs/examples/1.7.x/console-web/examples/account/update-m-f-a.md new file mode 100644 index 0000000000..b813b60bb4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-m-f-a.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateMFA( + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/console-web/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 0000000000..e0ecd66740 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateMagicURLSession( + '', // userId + '' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/console-web/examples/account/update-mfa-authenticator.md new file mode 100644 index 0000000000..b960675914 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-mfa-authenticator.md @@ -0,0 +1,14 @@ +import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaAuthenticator( + AuthenticatorType.Totp, // type + '' // otp +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/console-web/examples/account/update-mfa-challenge.md new file mode 100644 index 0000000000..5314959f25 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-mfa-challenge.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaChallenge( + '', // challengeId + '' // otp +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/console-web/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 0000000000..654d9fb0fa --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-name.md b/docs/examples/1.7.x/console-web/examples/account/update-name.md new file mode 100644 index 0000000000..cd36ece113 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-name.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateName( + '' // name +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-password.md b/docs/examples/1.7.x/console-web/examples/account/update-password.md new file mode 100644 index 0000000000..863c5f28b3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-password.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updatePassword( + '', // password + 'password' // oldPassword (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.7.x/console-web/examples/account/update-phone-session.md new file mode 100644 index 0000000000..d23c10bbda --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-phone-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhoneSession( + '', // userId + '' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.7.x/console-web/examples/account/update-phone-verification.md new file mode 100644 index 0000000000..1a05386a9d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-phone-verification.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhoneVerification( + '', // userId + '' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-phone.md b/docs/examples/1.7.x/console-web/examples/account/update-phone.md new file mode 100644 index 0000000000..380279d057 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-phone.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhone( + '+12065550100', // phone + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-prefs.md b/docs/examples/1.7.x/console-web/examples/account/update-prefs.md new file mode 100644 index 0000000000..13d857468d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-prefs.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updatePrefs( + {} // prefs +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-push-target.md b/docs/examples/1.7.x/console-web/examples/account/update-push-target.md new file mode 100644 index 0000000000..566d754db7 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-push-target.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updatePushTarget( + '', // targetId + '' // identifier +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-recovery.md b/docs/examples/1.7.x/console-web/examples/account/update-recovery.md new file mode 100644 index 0000000000..53d75f95d2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-recovery.md @@ -0,0 +1,15 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateRecovery( + '', // userId + '', // secret + '' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-session.md b/docs/examples/1.7.x/console-web/examples/account/update-session.md new file mode 100644 index 0000000000..207fc026d8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateSession( + '' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-status.md b/docs/examples/1.7.x/console-web/examples/account/update-status.md new file mode 100644 index 0000000000..c1377dc4a6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-status.md @@ -0,0 +1,11 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateStatus(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/account/update-verification.md b/docs/examples/1.7.x/console-web/examples/account/update-verification.md new file mode 100644 index 0000000000..4861ca2b81 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/account/update-verification.md @@ -0,0 +1,14 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const account = new Account(client); + +const result = await account.updateVerification( + '', // userId + '' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/assistant/chat.md b/docs/examples/1.7.x/console-web/examples/assistant/chat.md new file mode 100644 index 0000000000..98032043a5 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/assistant/chat.md @@ -0,0 +1,13 @@ +import { Client, Assistant } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const assistant = new Assistant(client); + +const result = await assistant.chat( + '' // prompt +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.7.x/console-web/examples/avatars/get-browser.md new file mode 100644 index 0000000000..65e7c826ff --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/avatars/get-browser.md @@ -0,0 +1,16 @@ +import { Client, Avatars, Browser } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getBrowser( + Browser.AvantBrowser, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/console-web/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..bda5407b27 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/avatars/get-credit-card.md @@ -0,0 +1,16 @@ +import { Client, Avatars, CreditCard } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getCreditCard( + CreditCard.AmericanExpress, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.7.x/console-web/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..b23e99a551 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/avatars/get-favicon.md @@ -0,0 +1,13 @@ +import { Client, Avatars } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getFavicon( + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.7.x/console-web/examples/avatars/get-flag.md new file mode 100644 index 0000000000..f6c0814abd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/avatars/get-flag.md @@ -0,0 +1,16 @@ +import { Client, Avatars, Flag } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getFlag( + Flag.Afghanistan, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/avatars/get-image.md b/docs/examples/1.7.x/console-web/examples/avatars/get-image.md new file mode 100644 index 0000000000..209e1ea836 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/avatars/get-image.md @@ -0,0 +1,15 @@ +import { Client, Avatars } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getImage( + 'https://example.com', // url + 0, // width (optional) + 0 // height (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.7.x/console-web/examples/avatars/get-initials.md new file mode 100644 index 0000000000..6ec70b2143 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/avatars/get-initials.md @@ -0,0 +1,16 @@ +import { Client, Avatars } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getInitials( + '', // name (optional) + 0, // width (optional) + 0, // height (optional) + '' // background (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.7.x/console-web/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..a255cdc531 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/avatars/get-q-r.md @@ -0,0 +1,16 @@ +import { Client, Avatars } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getQR( + '', // text + 1, // size (optional) + 0, // margin (optional) + false // download (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/console/get-resource.md b/docs/examples/1.7.x/console-web/examples/console/get-resource.md new file mode 100644 index 0000000000..94a4707081 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/console/get-resource.md @@ -0,0 +1,14 @@ +import { Client, Console, ConsoleResourceType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const console = new Console(client); + +const result = await console.getResource( + '', // value + ConsoleResourceType.Rules // type +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/console/variables.md b/docs/examples/1.7.x/console-web/examples/console/variables.md new file mode 100644 index 0000000000..1dce6c0260 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/console/variables.md @@ -0,0 +1,11 @@ +import { Client, Console } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const console = new Console(client); + +const result = await console.variables(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-boolean-attribute.md new file mode 100644 index 0000000000..5b161c6f51 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-boolean-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createBooleanAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-collection.md b/docs/examples/1.7.x/console-web/examples/databases/create-collection.md new file mode 100644 index 0000000000..cd28cf8616 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-collection.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createCollection( + '', // databaseId + '', // collectionId + '', // name + ["read("any")"], // permissions (optional) + false, // documentSecurity (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-datetime-attribute.md new file mode 100644 index 0000000000..c431105bdf --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-datetime-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createDatetimeAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-document.md b/docs/examples/1.7.x/console-web/examples/databases/create-document.md new file mode 100644 index 0000000000..4524017dd5 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-document.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +const databases = new Databases(client); + +const result = await databases.createDocument( + '', // databaseId + '', // collectionId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-documents.md b/docs/examples/1.7.x/console-web/examples/databases/create-documents.md new file mode 100644 index 0000000000..9651a99775 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const result = await databases.createDocuments( + '', // databaseId + '', // collectionId + [] // documents +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-email-attribute.md new file mode 100644 index 0000000000..f11c1a9649 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-email-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createEmailAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-enum-attribute.md new file mode 100644 index 0000000000..d180b1b9f2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-enum-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createEnumAttribute( + '', // databaseId + '', // collectionId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-float-attribute.md new file mode 100644 index 0000000000..036d3fc201 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-float-attribute.md @@ -0,0 +1,20 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createFloatAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-index.md b/docs/examples/1.7.x/console-web/examples/databases/create-index.md new file mode 100644 index 0000000000..6a35f55349 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-index.md @@ -0,0 +1,19 @@ +import { Client, Databases, IndexType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createIndex( + '', // databaseId + '', // collectionId + '', // key + IndexType.Key, // type + [], // attributes + [], // orders (optional) + [] // lengths (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-integer-attribute.md new file mode 100644 index 0000000000..25f474d0aa --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-integer-attribute.md @@ -0,0 +1,20 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createIntegerAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-ip-attribute.md new file mode 100644 index 0000000000..e8abc80f91 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-ip-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createIpAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-relationship-attribute.md new file mode 100644 index 0000000000..358a2df5fc --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-relationship-attribute.md @@ -0,0 +1,20 @@ +import { Client, Databases, RelationshipType, RelationMutate } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createRelationshipAttribute( + '', // databaseId + '', // collectionId + '', // relatedCollectionId + RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + RelationMutate.Cascade // onDelete (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-string-attribute.md new file mode 100644 index 0000000000..ba94b0348b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-string-attribute.md @@ -0,0 +1,20 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createStringAttribute( + '', // databaseId + '', // collectionId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/create-url-attribute.md new file mode 100644 index 0000000000..da80e392d3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create-url-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createUrlAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/create.md b/docs/examples/1.7.x/console-web/examples/databases/create.md new file mode 100644 index 0000000000..6d709ddd56 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/create.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.create( + '', // databaseId + '', // name + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/delete-attribute.md new file mode 100644 index 0000000000..df12b0d2f0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/delete-attribute.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.deleteAttribute( + '', // databaseId + '', // collectionId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.7.x/console-web/examples/databases/delete-collection.md new file mode 100644 index 0000000000..f490ae1096 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/delete-collection.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.deleteCollection( + '', // databaseId + '' // collectionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/delete-document.md b/docs/examples/1.7.x/console-web/examples/databases/delete-document.md new file mode 100644 index 0000000000..a56a4f23c5 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/delete-document.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.deleteDocument( + '', // databaseId + '', // collectionId + '' // documentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/delete-documents.md b/docs/examples/1.7.x/console-web/examples/databases/delete-documents.md new file mode 100644 index 0000000000..ec520c6cf9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/delete-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.deleteDocuments( + '', // databaseId + '', // collectionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/delete-index.md b/docs/examples/1.7.x/console-web/examples/databases/delete-index.md new file mode 100644 index 0000000000..cdd96a31f0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/delete-index.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.deleteIndex( + '', // databaseId + '', // collectionId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/delete.md b/docs/examples/1.7.x/console-web/examples/databases/delete.md new file mode 100644 index 0000000000..3bd69657f9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/delete.md @@ -0,0 +1,13 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.delete( + '' // databaseId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/get-attribute.md new file mode 100644 index 0000000000..9dac2ad133 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/get-attribute.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getAttribute( + '', // databaseId + '', // collectionId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.7.x/console-web/examples/databases/get-collection-usage.md new file mode 100644 index 0000000000..a2f736377a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/get-collection-usage.md @@ -0,0 +1,15 @@ +import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getCollectionUsage( + '', // databaseId + '', // collectionId + DatabaseUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/get-collection.md b/docs/examples/1.7.x/console-web/examples/databases/get-collection.md new file mode 100644 index 0000000000..56d29f05cb --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/get-collection.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getCollection( + '', // databaseId + '' // collectionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.7.x/console-web/examples/databases/get-database-usage.md new file mode 100644 index 0000000000..13038ab755 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/get-database-usage.md @@ -0,0 +1,14 @@ +import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getDatabaseUsage( + '', // databaseId + DatabaseUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/get-document.md b/docs/examples/1.7.x/console-web/examples/databases/get-document.md new file mode 100644 index 0000000000..0e90cf785e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/get-document.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getDocument( + '', // databaseId + '', // collectionId + '', // documentId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/get-index.md b/docs/examples/1.7.x/console-web/examples/databases/get-index.md new file mode 100644 index 0000000000..4c8c3794af --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/get-index.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getIndex( + '', // databaseId + '', // collectionId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/get-usage.md b/docs/examples/1.7.x/console-web/examples/databases/get-usage.md new file mode 100644 index 0000000000..a0dd3ce983 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/get-usage.md @@ -0,0 +1,13 @@ +import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getUsage( + DatabaseUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/get.md b/docs/examples/1.7.x/console-web/examples/databases/get.md new file mode 100644 index 0000000000..5c72c5639c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/get.md @@ -0,0 +1,13 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.get( + '' // databaseId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.7.x/console-web/examples/databases/list-attributes.md new file mode 100644 index 0000000000..0c2cd4092c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/list-attributes.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listAttributes( + '', // databaseId + '', // collectionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.7.x/console-web/examples/databases/list-collection-logs.md new file mode 100644 index 0000000000..b2ef92d677 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/list-collection-logs.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listCollectionLogs( + '', // databaseId + '', // collectionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/list-collections.md b/docs/examples/1.7.x/console-web/examples/databases/list-collections.md new file mode 100644 index 0000000000..f9a0511e3e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/list-collections.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listCollections( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.7.x/console-web/examples/databases/list-document-logs.md new file mode 100644 index 0000000000..ddb789b3f0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/list-document-logs.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listDocumentLogs( + '', // databaseId + '', // collectionId + '', // documentId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/list-documents.md b/docs/examples/1.7.x/console-web/examples/databases/list-documents.md new file mode 100644 index 0000000000..3a77c05faa --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/list-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listDocuments( + '', // databaseId + '', // collectionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.7.x/console-web/examples/databases/list-indexes.md new file mode 100644 index 0000000000..fbbef1a9d8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/list-indexes.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listIndexes( + '', // databaseId + '', // collectionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/list-logs.md b/docs/examples/1.7.x/console-web/examples/databases/list-logs.md new file mode 100644 index 0000000000..12ccccf87e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/list-logs.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listLogs( + '', // databaseId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/list.md b/docs/examples/1.7.x/console-web/examples/databases/list.md new file mode 100644 index 0000000000..58ec7209a3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/list.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.list( + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-boolean-attribute.md new file mode 100644 index 0000000000..95207fd2ab --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-boolean-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateBooleanAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + false, // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-collection.md b/docs/examples/1.7.x/console-web/examples/databases/update-collection.md new file mode 100644 index 0000000000..ced992baf4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-collection.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateCollection( + '', // databaseId + '', // collectionId + '', // name + ["read("any")"], // permissions (optional) + false, // documentSecurity (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-datetime-attribute.md new file mode 100644 index 0000000000..7c413ee532 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-datetime-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateDatetimeAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-document.md b/docs/examples/1.7.x/console-web/examples/databases/update-document.md new file mode 100644 index 0000000000..85898ea2a7 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-document.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateDocument( + '', // databaseId + '', // collectionId + '', // documentId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-documents.md b/docs/examples/1.7.x/console-web/examples/databases/update-documents.md new file mode 100644 index 0000000000..67be1e405c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-documents.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateDocuments( + '', // databaseId + '', // collectionId + {}, // data (optional) + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-email-attribute.md new file mode 100644 index 0000000000..e54dba99bd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-email-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateEmailAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-enum-attribute.md new file mode 100644 index 0000000000..aa5330af04 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-enum-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateEnumAttribute( + '', // databaseId + '', // collectionId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-float-attribute.md new file mode 100644 index 0000000000..344ddb8815 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-float-attribute.md @@ -0,0 +1,20 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateFloatAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-integer-attribute.md new file mode 100644 index 0000000000..72565bd5f4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-integer-attribute.md @@ -0,0 +1,20 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateIntegerAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-ip-attribute.md new file mode 100644 index 0000000000..ff6dded552 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-ip-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateIpAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-relationship-attribute.md new file mode 100644 index 0000000000..acce3fd741 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-relationship-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases, RelationMutate } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateRelationshipAttribute( + '', // databaseId + '', // collectionId + '', // key + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-string-attribute.md new file mode 100644 index 0000000000..05601bd4a2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-string-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateStringAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/console-web/examples/databases/update-url-attribute.md new file mode 100644 index 0000000000..78b4d92a28 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update-url-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateUrlAttribute( + '', // databaseId + '', // collectionId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/update.md b/docs/examples/1.7.x/console-web/examples/databases/update.md new file mode 100644 index 0000000000..a29475b816 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/update.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.update( + '', // databaseId + '', // name + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/databases/upsert-documents.md b/docs/examples/1.7.x/console-web/examples/databases/upsert-documents.md new file mode 100644 index 0000000000..c58bd1e99c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/databases/upsert-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.upsertDocuments( + '', // databaseId + '', // collectionId + [] // documents (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.7.x/console-web/examples/functions/create-deployment.md new file mode 100644 index 0000000000..62309d5e98 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/create-deployment.md @@ -0,0 +1,17 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.createDeployment( + '', // functionId + document.getElementById('uploader').files[0], // code + false, // activate + '', // entrypoint (optional) + '' // commands (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/console-web/examples/functions/create-duplicate-deployment.md new file mode 100644 index 0000000000..1b48c27a6f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,15 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.createDuplicateDeployment( + '', // functionId + '', // deploymentId + '' // buildId (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/create-execution.md b/docs/examples/1.7.x/console-web/examples/functions/create-execution.md new file mode 100644 index 0000000000..813e1fd0a7 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/create-execution.md @@ -0,0 +1,19 @@ +import { Client, Functions, ExecutionMethod } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.createExecution( + '', // functionId + '', // body (optional) + false, // async (optional) + '', // path (optional) + ExecutionMethod.GET, // method (optional) + {}, // headers (optional) + '' // scheduledAt (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/console-web/examples/functions/create-template-deployment.md new file mode 100644 index 0000000000..98bf957eb1 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/create-template-deployment.md @@ -0,0 +1,18 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.createTemplateDeployment( + '', // functionId + '', // repository + '', // owner + '', // rootDirectory + '', // version + false // activate (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/create-variable.md b/docs/examples/1.7.x/console-web/examples/functions/create-variable.md new file mode 100644 index 0000000000..0b562cb93d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/create-variable.md @@ -0,0 +1,16 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.createVariable( + '', // functionId + '', // key + '', // value + false // secret (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/console-web/examples/functions/create-vcs-deployment.md new file mode 100644 index 0000000000..6a12653de4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/create-vcs-deployment.md @@ -0,0 +1,16 @@ +import { Client, Functions, VCSDeploymentType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.createVcsDeployment( + '', // functionId + VCSDeploymentType.Branch, // type + '', // reference + false // activate (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/create.md b/docs/examples/1.7.x/console-web/examples/functions/create.md new file mode 100644 index 0000000000..1d9915f978 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/create.md @@ -0,0 +1,30 @@ +import { Client, Functions, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.create( + '', // functionId + '', // name + .Node145, // runtime + ["any"], // execute (optional) + [], // events (optional) + '', // schedule (optional) + 1, // timeout (optional) + false, // enabled (optional) + false, // logging (optional) + '', // entrypoint (optional) + '', // commands (optional) + [], // scopes (optional) + '', // installationId (optional) + '', // providerRepositoryId (optional) + '', // providerBranch (optional) + false, // providerSilentMode (optional) + '', // providerRootDirectory (optional) + '' // specification (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.7.x/console-web/examples/functions/delete-deployment.md new file mode 100644 index 0000000000..1bc26feab0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/delete-deployment.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.deleteDeployment( + '', // functionId + '' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/delete-execution.md b/docs/examples/1.7.x/console-web/examples/functions/delete-execution.md new file mode 100644 index 0000000000..0816434637 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/delete-execution.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.deleteExecution( + '', // functionId + '' // executionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.7.x/console-web/examples/functions/delete-variable.md new file mode 100644 index 0000000000..878d15d235 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/delete-variable.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.deleteVariable( + '', // functionId + '' // variableId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/delete.md b/docs/examples/1.7.x/console-web/examples/functions/delete.md new file mode 100644 index 0000000000..86d616d267 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/delete.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.delete( + '' // functionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/console-web/examples/functions/get-deployment-download.md new file mode 100644 index 0000000000..1ad8fd30cd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/get-deployment-download.md @@ -0,0 +1,15 @@ +import { Client, Functions, DeploymentDownloadType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = functions.getDeploymentDownload( + '', // functionId + '', // deploymentId + DeploymentDownloadType.Source // type (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.7.x/console-web/examples/functions/get-deployment.md new file mode 100644 index 0000000000..75cb11f741 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/get-deployment.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.getDeployment( + '', // functionId + '' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/get-execution.md b/docs/examples/1.7.x/console-web/examples/functions/get-execution.md new file mode 100644 index 0000000000..58ab917bbd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/get-execution.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.getExecution( + '', // functionId + '' // executionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/get-template.md b/docs/examples/1.7.x/console-web/examples/functions/get-template.md new file mode 100644 index 0000000000..13c95210ab --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/get-template.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.getTemplate( + '' // templateId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/get-usage.md b/docs/examples/1.7.x/console-web/examples/functions/get-usage.md new file mode 100644 index 0000000000..bc010c3bd9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/get-usage.md @@ -0,0 +1,14 @@ +import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.getUsage( + '', // functionId + FunctionUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/get-variable.md b/docs/examples/1.7.x/console-web/examples/functions/get-variable.md new file mode 100644 index 0000000000..d80b2bccbf --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/get-variable.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.getVariable( + '', // functionId + '' // variableId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/get.md b/docs/examples/1.7.x/console-web/examples/functions/get.md new file mode 100644 index 0000000000..9b852849eb --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/get.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.get( + '' // functionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.7.x/console-web/examples/functions/list-deployments.md new file mode 100644 index 0000000000..b9f2ec0eaf --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/list-deployments.md @@ -0,0 +1,15 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listDeployments( + '', // functionId + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/list-executions.md b/docs/examples/1.7.x/console-web/examples/functions/list-executions.md new file mode 100644 index 0000000000..7d8a6c7a98 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/list-executions.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listExecutions( + '', // functionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.7.x/console-web/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..cdd1e08cad --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/list-runtimes.md @@ -0,0 +1,11 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listRuntimes(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/list-specifications.md b/docs/examples/1.7.x/console-web/examples/functions/list-specifications.md new file mode 100644 index 0000000000..fe671c54bb --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listSpecifications(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/list-templates.md b/docs/examples/1.7.x/console-web/examples/functions/list-templates.md new file mode 100644 index 0000000000..ab7f84b34d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/list-templates.md @@ -0,0 +1,16 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listTemplates( + [], // runtimes (optional) + [], // useCases (optional) + 1, // limit (optional) + 0 // offset (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/list-usage.md b/docs/examples/1.7.x/console-web/examples/functions/list-usage.md new file mode 100644 index 0000000000..14a880692b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/list-usage.md @@ -0,0 +1,13 @@ +import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listUsage( + FunctionUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/list-variables.md b/docs/examples/1.7.x/console-web/examples/functions/list-variables.md new file mode 100644 index 0000000000..5651dbd1c5 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/list-variables.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listVariables( + '' // functionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/list.md b/docs/examples/1.7.x/console-web/examples/functions/list.md new file mode 100644 index 0000000000..462214449d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/list.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.list( + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/console-web/examples/functions/update-deployment-status.md new file mode 100644 index 0000000000..ba4f37fabf --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/update-deployment-status.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.updateDeploymentStatus( + '', // functionId + '' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/console-web/examples/functions/update-function-deployment.md new file mode 100644 index 0000000000..2d714fb43c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/update-function-deployment.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.updateFunctionDeployment( + '', // functionId + '' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/update-variable.md b/docs/examples/1.7.x/console-web/examples/functions/update-variable.md new file mode 100644 index 0000000000..a6be7c0dd2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/update-variable.md @@ -0,0 +1,17 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.updateVariable( + '', // functionId + '', // variableId + '', // key + '', // value (optional) + false // secret (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/functions/update.md b/docs/examples/1.7.x/console-web/examples/functions/update.md new file mode 100644 index 0000000000..66d3cd8e8f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/functions/update.md @@ -0,0 +1,30 @@ +import { Client, Functions, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const functions = new Functions(client); + +const result = await functions.update( + '', // functionId + '', // name + .Node145, // runtime (optional) + ["any"], // execute (optional) + [], // events (optional) + '', // schedule (optional) + 1, // timeout (optional) + false, // enabled (optional) + false, // logging (optional) + '', // entrypoint (optional) + '', // commands (optional) + [], // scopes (optional) + '', // installationId (optional) + '', // providerRepositoryId (optional) + '', // providerBranch (optional) + false, // providerSilentMode (optional) + '', // providerRootDirectory (optional) + '' // specification (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/graphql/mutation.md b/docs/examples/1.7.x/console-web/examples/graphql/mutation.md new file mode 100644 index 0000000000..5360139b07 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/graphql/mutation.md @@ -0,0 +1,13 @@ +import { Client, Graphql } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const graphql = new Graphql(client); + +const result = await graphql.mutation( + {} // query +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/graphql/query.md b/docs/examples/1.7.x/console-web/examples/graphql/query.md new file mode 100644 index 0000000000..15434872ab --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/graphql/query.md @@ -0,0 +1,13 @@ +import { Client, Graphql } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const graphql = new Graphql(client); + +const result = await graphql.query( + {} // query +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.7.x/console-web/examples/health/get-antivirus.md new file mode 100644 index 0000000000..30e142a63d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-antivirus.md @@ -0,0 +1,11 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getAntivirus(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-cache.md b/docs/examples/1.7.x/console-web/examples/health/get-cache.md new file mode 100644 index 0000000000..1c0bb182e2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-cache.md @@ -0,0 +1,11 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getCache(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-certificate.md b/docs/examples/1.7.x/console-web/examples/health/get-certificate.md new file mode 100644 index 0000000000..288c0f8732 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-certificate.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getCertificate( + '' // domain (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-d-b.md b/docs/examples/1.7.x/console-web/examples/health/get-d-b.md new file mode 100644 index 0000000000..855e73466c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-d-b.md @@ -0,0 +1,11 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getDB(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/console-web/examples/health/get-failed-jobs.md new file mode 100644 index 0000000000..d96a5545aa --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-failed-jobs.md @@ -0,0 +1,14 @@ +import { Client, Health, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getFailedJobs( + .V1Database, // name + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-pub-sub.md b/docs/examples/1.7.x/console-web/examples/health/get-pub-sub.md new file mode 100644 index 0000000000..0ccce8e4d8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-pub-sub.md @@ -0,0 +1,11 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getPubSub(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-builds.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-builds.md new file mode 100644 index 0000000000..dfbbfd91a6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-builds.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueBuilds( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..b0397f4422 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-certificates.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueCertificates( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-databases.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-databases.md new file mode 100644 index 0000000000..1b958a9c75 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-databases.md @@ -0,0 +1,14 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueDatabases( + '', // name (optional) + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-deletes.md new file mode 100644 index 0000000000..3f34bc2228 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-deletes.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueDeletes( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..2ea3701462 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-functions.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueFunctions( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..73bd18589a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-logs.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueLogs( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-mails.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-mails.md new file mode 100644 index 0000000000..a6d86c04c7 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-mails.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueMails( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-messaging.md new file mode 100644 index 0000000000..d25979713d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-messaging.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueMessaging( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-migrations.md new file mode 100644 index 0000000000..3619c56028 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-migrations.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueMigrations( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-stats-resources.md new file mode 100644 index 0000000000..cf1c3ee5df --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-usage.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..f79fd3b5ad --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-usage.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueUsage( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/console-web/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..72bcc44c9a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-queue-webhooks.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueWebhooks( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.7.x/console-web/examples/health/get-storage-local.md new file mode 100644 index 0000000000..e6bdf62c50 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-storage-local.md @@ -0,0 +1,11 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getStorageLocal(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-storage.md b/docs/examples/1.7.x/console-web/examples/health/get-storage.md new file mode 100644 index 0000000000..1d8941490e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-storage.md @@ -0,0 +1,11 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getStorage(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get-time.md b/docs/examples/1.7.x/console-web/examples/health/get-time.md new file mode 100644 index 0000000000..826eaf5a8c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get-time.md @@ -0,0 +1,11 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.getTime(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/health/get.md b/docs/examples/1.7.x/console-web/examples/health/get.md new file mode 100644 index 0000000000..b510d8a891 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/health/get.md @@ -0,0 +1,11 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const health = new Health(client); + +const result = await health.get(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/locale/get.md b/docs/examples/1.7.x/console-web/examples/locale/get.md new file mode 100644 index 0000000000..4b0331787e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/locale/get.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const locale = new Locale(client); + +const result = await locale.get(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/locale/list-codes.md b/docs/examples/1.7.x/console-web/examples/locale/list-codes.md new file mode 100644 index 0000000000..d20399af4a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/locale/list-codes.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/locale/list-continents.md b/docs/examples/1.7.x/console-web/examples/locale/list-continents.md new file mode 100644 index 0000000000..d769e88f1c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/locale/list-continents.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listContinents(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/console-web/examples/locale/list-countries-e-u.md new file mode 100644 index 0000000000..ce8746421b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/locale/list-countries-e-u.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountriesEU(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/console-web/examples/locale/list-countries-phones.md new file mode 100644 index 0000000000..457867707c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/locale/list-countries-phones.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountriesPhones(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/locale/list-countries.md b/docs/examples/1.7.x/console-web/examples/locale/list-countries.md new file mode 100644 index 0000000000..298e25ee81 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/locale/list-countries.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountries(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.7.x/console-web/examples/locale/list-currencies.md new file mode 100644 index 0000000000..05ff041cbb --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/locale/list-currencies.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCurrencies(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/locale/list-languages.md b/docs/examples/1.7.x/console-web/examples/locale/list-languages.md new file mode 100644 index 0000000000..1a2db31b55 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/locale/list-languages.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listLanguages(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-apns-provider.md new file mode 100644 index 0000000000..9b238afc9e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-apns-provider.md @@ -0,0 +1,20 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createApnsProvider( + '', // providerId + '', // name + '', // authKey (optional) + '', // authKeyId (optional) + '', // teamId (optional) + '', // bundleId (optional) + false, // sandbox (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-email.md b/docs/examples/1.7.x/console-web/examples/messaging/create-email.md new file mode 100644 index 0000000000..108517c89d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-email.md @@ -0,0 +1,24 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createEmail( + '', // messageId + '', // subject + '', // content + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + [], // cc (optional) + [], // bcc (optional) + [], // attachments (optional) + false, // draft (optional) + false, // html (optional) + '' // scheduledAt (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-fcm-provider.md new file mode 100644 index 0000000000..9d67e89fd6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-fcm-provider.md @@ -0,0 +1,16 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createFcmProvider( + '', // providerId + '', // name + {}, // serviceAccountJSON (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-mailgun-provider.md new file mode 100644 index 0000000000..dc165af859 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,22 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createMailgunProvider( + '', // providerId + '', // name + '', // apiKey (optional) + '', // domain (optional) + false, // isEuRegion (optional) + '', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-msg91provider.md new file mode 100644 index 0000000000..cab468a089 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-msg91provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createMsg91Provider( + '', // providerId + '', // name + '', // templateId (optional) + '', // senderId (optional) + '', // authKey (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-push.md b/docs/examples/1.7.x/console-web/examples/messaging/create-push.md new file mode 100644 index 0000000000..79c3a20e83 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-push.md @@ -0,0 +1,31 @@ +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createPush( + '', // messageId + '', // title (optional) + '<BODY>', // body (optional) + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + {}, // data (optional) + '<ACTION>', // action (optional) + '[ID1:ID2]', // image (optional) + '<ICON>', // icon (optional) + '<SOUND>', // sound (optional) + '<COLOR>', // color (optional) + '<TAG>', // tag (optional) + null, // badge (optional) + false, // draft (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 0000000000..b93c84b258 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,20 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createSendgridProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<API_KEY>', // apiKey (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-sms.md b/docs/examples/1.7.x/console-web/examples/messaging/create-sms.md new file mode 100644 index 0000000000..7146ee4ac9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-sms.md @@ -0,0 +1,19 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createSms( + '<MESSAGE_ID>', // messageId + '<CONTENT>', // content + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + false, // draft (optional) + '' // scheduledAt (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-smtp-provider.md new file mode 100644 index 0000000000..b4bcf14d0b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-smtp-provider.md @@ -0,0 +1,26 @@ +import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createSmtpProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<HOST>', // host + 1, // port (optional) + '<USERNAME>', // username (optional) + '<PASSWORD>', // password (optional) + SmtpEncryption.None, // encryption (optional) + false, // autoTLS (optional) + '<MAILER>', // mailer (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/console-web/examples/messaging/create-subscriber.md new file mode 100644 index 0000000000..b1f7239413 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-subscriber.md @@ -0,0 +1,15 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>', // subscriberId + '<TARGET_ID>' // targetId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-telesign-provider.md new file mode 100644 index 0000000000..355bc22f85 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-telesign-provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createTelesignProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<CUSTOMER_ID>', // customerId (optional) + '<API_KEY>', // apiKey (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-textmagic-provider.md new file mode 100644 index 0000000000..d79cffc316 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createTextmagicProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<USERNAME>', // username (optional) + '<API_KEY>', // apiKey (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-topic.md b/docs/examples/1.7.x/console-web/examples/messaging/create-topic.md new file mode 100644 index 0000000000..274714a63b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-topic.md @@ -0,0 +1,15 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createTopic( + '<TOPIC_ID>', // topicId + '<NAME>', // name + ["any"] // subscribe (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-twilio-provider.md new file mode 100644 index 0000000000..9b8f440743 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-twilio-provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createTwilioProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<ACCOUNT_SID>', // accountSid (optional) + '<AUTH_TOKEN>', // authToken (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/create-vonage-provider.md new file mode 100644 index 0000000000..6e115e8eb9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/create-vonage-provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createVonageProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<API_KEY>', // apiKey (optional) + '<API_SECRET>', // apiSecret (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/delete-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/delete-provider.md new file mode 100644 index 0000000000..f71eb65f29 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/delete-provider.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.deleteProvider( + '<PROVIDER_ID>' // providerId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/console-web/examples/messaging/delete-subscriber.md new file mode 100644 index 0000000000..ace9670211 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/delete-subscriber.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.deleteSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>' // subscriberId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/delete-topic.md b/docs/examples/1.7.x/console-web/examples/messaging/delete-topic.md new file mode 100644 index 0000000000..8f8e5460d3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/delete-topic.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.deleteTopic( + '<TOPIC_ID>' // topicId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/delete.md b/docs/examples/1.7.x/console-web/examples/messaging/delete.md new file mode 100644 index 0000000000..17324cca7e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/delete.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.delete( + '<MESSAGE_ID>' // messageId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/get-message.md b/docs/examples/1.7.x/console-web/examples/messaging/get-message.md new file mode 100644 index 0000000000..3282adbe57 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/get-message.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.getMessage( + '<MESSAGE_ID>' // messageId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/get-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/get-provider.md new file mode 100644 index 0000000000..97ac5fd127 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/get-provider.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.getProvider( + '<PROVIDER_ID>' // providerId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/console-web/examples/messaging/get-subscriber.md new file mode 100644 index 0000000000..b718558d71 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/get-subscriber.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.getSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>' // subscriberId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/get-topic.md b/docs/examples/1.7.x/console-web/examples/messaging/get-topic.md new file mode 100644 index 0000000000..802ec1fba4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/get-topic.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.getTopic( + '<TOPIC_ID>' // topicId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/console-web/examples/messaging/list-message-logs.md new file mode 100644 index 0000000000..8679b267ce --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-message-logs.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listMessageLogs( + '<MESSAGE_ID>', // messageId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-messages.md b/docs/examples/1.7.x/console-web/examples/messaging/list-messages.md new file mode 100644 index 0000000000..a537844f81 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-messages.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listMessages( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/console-web/examples/messaging/list-provider-logs.md new file mode 100644 index 0000000000..2e4acb38cf --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-provider-logs.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listProviderLogs( + '<PROVIDER_ID>', // providerId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-providers.md b/docs/examples/1.7.x/console-web/examples/messaging/list-providers.md new file mode 100644 index 0000000000..5c91f01bbc --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-providers.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listProviders( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/console-web/examples/messaging/list-subscriber-logs.md new file mode 100644 index 0000000000..f722c9a9ed --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listSubscriberLogs( + '<SUBSCRIBER_ID>', // subscriberId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/console-web/examples/messaging/list-subscribers.md new file mode 100644 index 0000000000..f120e9d96d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-subscribers.md @@ -0,0 +1,15 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listSubscribers( + '<TOPIC_ID>', // topicId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-targets.md b/docs/examples/1.7.x/console-web/examples/messaging/list-targets.md new file mode 100644 index 0000000000..89baf87cb0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-targets.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listTargets( + '<MESSAGE_ID>', // messageId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/console-web/examples/messaging/list-topic-logs.md new file mode 100644 index 0000000000..bc23a09a91 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-topic-logs.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listTopicLogs( + '<TOPIC_ID>', // topicId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/list-topics.md b/docs/examples/1.7.x/console-web/examples/messaging/list-topics.md new file mode 100644 index 0000000000..d23cca3171 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/list-topics.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.listTopics( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-apns-provider.md new file mode 100644 index 0000000000..bc69c3ad1e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-apns-provider.md @@ -0,0 +1,20 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateApnsProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<AUTH_KEY>', // authKey (optional) + '<AUTH_KEY_ID>', // authKeyId (optional) + '<TEAM_ID>', // teamId (optional) + '<BUNDLE_ID>', // bundleId (optional) + false // sandbox (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-email.md b/docs/examples/1.7.x/console-web/examples/messaging/update-email.md new file mode 100644 index 0000000000..ba9bc7eb48 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-email.md @@ -0,0 +1,24 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateEmail( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<SUBJECT>', // subject (optional) + '<CONTENT>', // content (optional) + false, // draft (optional) + false, // html (optional) + [], // cc (optional) + [], // bcc (optional) + '', // scheduledAt (optional) + [] // attachments (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-fcm-provider.md new file mode 100644 index 0000000000..d2e7382561 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-fcm-provider.md @@ -0,0 +1,16 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateFcmProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + {} // serviceAccountJSON (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-mailgun-provider.md new file mode 100644 index 0000000000..cc48ac52f3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,22 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateMailgunProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + '<API_KEY>', // apiKey (optional) + '<DOMAIN>', // domain (optional) + false, // isEuRegion (optional) + false, // enabled (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>' // replyToEmail (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-msg91provider.md new file mode 100644 index 0000000000..c2a6faec24 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-msg91provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateMsg91Provider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<TEMPLATE_ID>', // templateId (optional) + '<SENDER_ID>', // senderId (optional) + '<AUTH_KEY>' // authKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-push.md b/docs/examples/1.7.x/console-web/examples/messaging/update-push.md new file mode 100644 index 0000000000..e479dcc425 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-push.md @@ -0,0 +1,31 @@ +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updatePush( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<TITLE>', // title (optional) + '<BODY>', // body (optional) + {}, // data (optional) + '<ACTION>', // action (optional) + '[ID1:ID2]', // image (optional) + '<ICON>', // icon (optional) + '<SOUND>', // sound (optional) + '<COLOR>', // color (optional) + '<TAG>', // tag (optional) + null, // badge (optional) + false, // draft (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 0000000000..efe8263718 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,20 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateSendgridProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<API_KEY>', // apiKey (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>' // replyToEmail (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-sms.md b/docs/examples/1.7.x/console-web/examples/messaging/update-sms.md new file mode 100644 index 0000000000..2c535a014e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-sms.md @@ -0,0 +1,19 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateSms( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<CONTENT>', // content (optional) + false, // draft (optional) + '' // scheduledAt (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-smtp-provider.md new file mode 100644 index 0000000000..0274337a7b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-smtp-provider.md @@ -0,0 +1,26 @@ +import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateSmtpProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + '<HOST>', // host (optional) + 1, // port (optional) + '<USERNAME>', // username (optional) + '<PASSWORD>', // password (optional) + SmtpEncryption.None, // encryption (optional) + false, // autoTLS (optional) + '<MAILER>', // mailer (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>', // replyToEmail (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-telesign-provider.md new file mode 100644 index 0000000000..5d8bc1602d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-telesign-provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateTelesignProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<CUSTOMER_ID>', // customerId (optional) + '<API_KEY>', // apiKey (optional) + '<FROM>' // from (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-textmagic-provider.md new file mode 100644 index 0000000000..564ad4fc69 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateTextmagicProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<USERNAME>', // username (optional) + '<API_KEY>', // apiKey (optional) + '<FROM>' // from (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-topic.md b/docs/examples/1.7.x/console-web/examples/messaging/update-topic.md new file mode 100644 index 0000000000..e0edbae714 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-topic.md @@ -0,0 +1,15 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateTopic( + '<TOPIC_ID>', // topicId + '<NAME>', // name (optional) + ["any"] // subscribe (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-twilio-provider.md new file mode 100644 index 0000000000..544a52e4fd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-twilio-provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateTwilioProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<ACCOUNT_SID>', // accountSid (optional) + '<AUTH_TOKEN>', // authToken (optional) + '<FROM>' // from (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/console-web/examples/messaging/update-vonage-provider.md new file mode 100644 index 0000000000..e831c03184 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/messaging/update-vonage-provider.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.updateVonageProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<API_KEY>', // apiKey (optional) + '<API_SECRET>', // apiSecret (optional) + '<FROM>' // from (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/create-appwrite-migration.md b/docs/examples/1.7.x/console-web/examples/migrations/create-appwrite-migration.md new file mode 100644 index 0000000000..db9a4cd0e0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/create-appwrite-migration.md @@ -0,0 +1,16 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.createAppwriteMigration( + [], // resources + 'https://example.com', // endpoint + '<PROJECT_ID>', // projectId + '<API_KEY>' // apiKey +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/create-csv-migration.md b/docs/examples/1.7.x/console-web/examples/migrations/create-csv-migration.md new file mode 100644 index 0000000000..544f6c8ef6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/create-csv-migration.md @@ -0,0 +1,15 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.createCsvMigration( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '[ID1:ID2]' // resourceId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/create-firebase-migration.md b/docs/examples/1.7.x/console-web/examples/migrations/create-firebase-migration.md new file mode 100644 index 0000000000..20ce3a8b3c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/create-firebase-migration.md @@ -0,0 +1,14 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.createFirebaseMigration( + [], // resources + '<SERVICE_ACCOUNT>' // serviceAccount +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.7.x/console-web/examples/migrations/create-n-host-migration.md new file mode 100644 index 0000000000..23b22ff371 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/create-n-host-migration.md @@ -0,0 +1,20 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.createNHostMigration( + [], // resources + '<SUBDOMAIN>', // subdomain + '<REGION>', // region + '<ADMIN_SECRET>', // adminSecret + '<DATABASE>', // database + '<USERNAME>', // username + '<PASSWORD>', // password + null // port (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.7.x/console-web/examples/migrations/create-supabase-migration.md new file mode 100644 index 0000000000..18c326ca7e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/create-supabase-migration.md @@ -0,0 +1,19 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.createSupabaseMigration( + [], // resources + 'https://example.com', // endpoint + '<API_KEY>', // apiKey + '<DATABASE_HOST>', // databaseHost + '<USERNAME>', // username + '<PASSWORD>', // password + null // port (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/delete.md b/docs/examples/1.7.x/console-web/examples/migrations/delete.md new file mode 100644 index 0000000000..bb013ddf27 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/delete.md @@ -0,0 +1,13 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.delete( + '<MIGRATION_ID>' // migrationId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/get-appwrite-report.md b/docs/examples/1.7.x/console-web/examples/migrations/get-appwrite-report.md new file mode 100644 index 0000000000..a70b6a45fb --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/get-appwrite-report.md @@ -0,0 +1,16 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.getAppwriteReport( + [], // resources + 'https://example.com', // endpoint + '<PROJECT_ID>', // projectID + '<KEY>' // key +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/get-firebase-report.md b/docs/examples/1.7.x/console-web/examples/migrations/get-firebase-report.md new file mode 100644 index 0000000000..bf1c85eeb6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/get-firebase-report.md @@ -0,0 +1,14 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.getFirebaseReport( + [], // resources + '<SERVICE_ACCOUNT>' // serviceAccount +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.7.x/console-web/examples/migrations/get-n-host-report.md new file mode 100644 index 0000000000..a983088f0d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/get-n-host-report.md @@ -0,0 +1,20 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.getNHostReport( + [], // resources + '<SUBDOMAIN>', // subdomain + '<REGION>', // region + '<ADMIN_SECRET>', // adminSecret + '<DATABASE>', // database + '<USERNAME>', // username + '<PASSWORD>', // password + null // port (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.7.x/console-web/examples/migrations/get-supabase-report.md new file mode 100644 index 0000000000..d6ea7a9712 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/get-supabase-report.md @@ -0,0 +1,19 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.getSupabaseReport( + [], // resources + 'https://example.com', // endpoint + '<API_KEY>', // apiKey + '<DATABASE_HOST>', // databaseHost + '<USERNAME>', // username + '<PASSWORD>', // password + null // port (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/get.md b/docs/examples/1.7.x/console-web/examples/migrations/get.md new file mode 100644 index 0000000000..e2c67eb884 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/get.md @@ -0,0 +1,13 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.get( + '<MIGRATION_ID>' // migrationId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/list.md b/docs/examples/1.7.x/console-web/examples/migrations/list.md new file mode 100644 index 0000000000..a978e1843e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/list.md @@ -0,0 +1,14 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/migrations/retry.md b/docs/examples/1.7.x/console-web/examples/migrations/retry.md new file mode 100644 index 0000000000..f489168d7e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/migrations/retry.md @@ -0,0 +1,13 @@ +import { Client, Migrations } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const migrations = new Migrations(client); + +const result = await migrations.retry( + '<MIGRATION_ID>' // migrationId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/project/create-variable.md b/docs/examples/1.7.x/console-web/examples/project/create-variable.md new file mode 100644 index 0000000000..aa7361ffc2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/project/create-variable.md @@ -0,0 +1,15 @@ +import { Client, Project } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const project = new Project(client); + +const result = await project.createVariable( + '<KEY>', // key + '<VALUE>', // value + false // secret (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/project/delete-variable.md b/docs/examples/1.7.x/console-web/examples/project/delete-variable.md new file mode 100644 index 0000000000..224691691d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/project/delete-variable.md @@ -0,0 +1,13 @@ +import { Client, Project } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const project = new Project(client); + +const result = await project.deleteVariable( + '<VARIABLE_ID>' // variableId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/project/get-usage.md b/docs/examples/1.7.x/console-web/examples/project/get-usage.md new file mode 100644 index 0000000000..300311dd8f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/project/get-usage.md @@ -0,0 +1,15 @@ +import { Client, Project, ProjectUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const project = new Project(client); + +const result = await project.getUsage( + '', // startDate + '', // endDate + ProjectUsageRange.OneHour // period (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/project/get-variable.md b/docs/examples/1.7.x/console-web/examples/project/get-variable.md new file mode 100644 index 0000000000..bc30baa325 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/project/get-variable.md @@ -0,0 +1,13 @@ +import { Client, Project } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const project = new Project(client); + +const result = await project.getVariable( + '<VARIABLE_ID>' // variableId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/project/list-variables.md b/docs/examples/1.7.x/console-web/examples/project/list-variables.md new file mode 100644 index 0000000000..9c17f8514e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/project/list-variables.md @@ -0,0 +1,11 @@ +import { Client, Project } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const project = new Project(client); + +const result = await project.listVariables(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/project/update-variable.md b/docs/examples/1.7.x/console-web/examples/project/update-variable.md new file mode 100644 index 0000000000..9dcd62a7c2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/project/update-variable.md @@ -0,0 +1,16 @@ +import { Client, Project } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const project = new Project(client); + +const result = await project.updateVariable( + '<VARIABLE_ID>', // variableId + '<KEY>', // key + '<VALUE>', // value (optional) + false // secret (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/create-dev-key.md b/docs/examples/1.7.x/console-web/examples/projects/create-dev-key.md new file mode 100644 index 0000000000..28f89aea49 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/create-dev-key.md @@ -0,0 +1,15 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.createDevKey( + '<PROJECT_ID>', // projectId + '<NAME>', // name + '' // expire +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/create-j-w-t.md b/docs/examples/1.7.x/console-web/examples/projects/create-j-w-t.md new file mode 100644 index 0000000000..7175e266ae --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/create-j-w-t.md @@ -0,0 +1,15 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.createJWT( + '<PROJECT_ID>', // projectId + [], // scopes + 0 // duration (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/create-key.md b/docs/examples/1.7.x/console-web/examples/projects/create-key.md new file mode 100644 index 0000000000..25bcc125ed --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/create-key.md @@ -0,0 +1,16 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.createKey( + '<PROJECT_ID>', // projectId + '<NAME>', // name + [], // scopes + '' // expire (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/create-platform.md b/docs/examples/1.7.x/console-web/examples/projects/create-platform.md new file mode 100644 index 0000000000..7e23dd6f9e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/create-platform.md @@ -0,0 +1,18 @@ +import { Client, Projects, PlatformType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.createPlatform( + '<PROJECT_ID>', // projectId + PlatformType.Web, // type + '<NAME>', // name + '<KEY>', // key (optional) + '<STORE>', // store (optional) + '' // hostname (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/create-smtp-test.md b/docs/examples/1.7.x/console-web/examples/projects/create-smtp-test.md new file mode 100644 index 0000000000..ab0e184432 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/create-smtp-test.md @@ -0,0 +1,22 @@ +import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.createSmtpTest( + '<PROJECT_ID>', // projectId + [], // emails + '<SENDER_NAME>', // senderName + 'email@example.com', // senderEmail + '', // host + 'email@example.com', // replyTo (optional) + null, // port (optional) + '<USERNAME>', // username (optional) + '<PASSWORD>', // password (optional) + SMTPSecure.Tls // secure (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.7.x/console-web/examples/projects/create-webhook.md new file mode 100644 index 0000000000..62fdac56cd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/create-webhook.md @@ -0,0 +1,20 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.createWebhook( + '<PROJECT_ID>', // projectId + '<NAME>', // name + [], // events + '', // url + false, // security + false, // enabled (optional) + '<HTTP_USER>', // httpUser (optional) + '<HTTP_PASS>' // httpPass (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/create.md b/docs/examples/1.7.x/console-web/examples/projects/create.md new file mode 100644 index 0000000000..58efd0b75f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/create.md @@ -0,0 +1,25 @@ +import { Client, Projects, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.create( + '', // projectId + '<NAME>', // name + '<TEAM_ID>', // teamId + .Default, // region (optional) + '<DESCRIPTION>', // description (optional) + '<LOGO>', // logo (optional) + 'https://example.com', // url (optional) + '<LEGAL_NAME>', // legalName (optional) + '<LEGAL_COUNTRY>', // legalCountry (optional) + '<LEGAL_STATE>', // legalState (optional) + '<LEGAL_CITY>', // legalCity (optional) + '<LEGAL_ADDRESS>', // legalAddress (optional) + '<LEGAL_TAX_ID>' // legalTaxId (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/delete-dev-key.md b/docs/examples/1.7.x/console-web/examples/projects/delete-dev-key.md new file mode 100644 index 0000000000..fc2ca4f1a7 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/delete-dev-key.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.deleteDevKey( + '<PROJECT_ID>', // projectId + '<KEY_ID>' // keyId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/delete-email-template.md b/docs/examples/1.7.x/console-web/examples/projects/delete-email-template.md new file mode 100644 index 0000000000..10e3d302ae --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/delete-email-template.md @@ -0,0 +1,15 @@ +import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.deleteEmailTemplate( + '<PROJECT_ID>', // projectId + EmailTemplateType.Verification, // type + EmailTemplateLocale.Af // locale +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/delete-key.md b/docs/examples/1.7.x/console-web/examples/projects/delete-key.md new file mode 100644 index 0000000000..7ea7dc6fdc --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/delete-key.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.deleteKey( + '<PROJECT_ID>', // projectId + '<KEY_ID>' // keyId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.7.x/console-web/examples/projects/delete-platform.md new file mode 100644 index 0000000000..5c71747a64 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/delete-platform.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.deletePlatform( + '<PROJECT_ID>', // projectId + '<PLATFORM_ID>' // platformId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/delete-sms-template.md b/docs/examples/1.7.x/console-web/examples/projects/delete-sms-template.md new file mode 100644 index 0000000000..eef3cccae9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/delete-sms-template.md @@ -0,0 +1,15 @@ +import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.deleteSmsTemplate( + '<PROJECT_ID>', // projectId + SmsTemplateType.Verification, // type + SmsTemplateLocale.Af // locale +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.7.x/console-web/examples/projects/delete-webhook.md new file mode 100644 index 0000000000..24abaafc66 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/delete-webhook.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.deleteWebhook( + '<PROJECT_ID>', // projectId + '<WEBHOOK_ID>' // webhookId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/delete.md b/docs/examples/1.7.x/console-web/examples/projects/delete.md new file mode 100644 index 0000000000..d868616db2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/delete.md @@ -0,0 +1,13 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.delete( + '<PROJECT_ID>' // projectId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/get-dev-key.md b/docs/examples/1.7.x/console-web/examples/projects/get-dev-key.md new file mode 100644 index 0000000000..a9c38df45a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/get-dev-key.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.getDevKey( + '<PROJECT_ID>', // projectId + '<KEY_ID>' // keyId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/get-email-template.md b/docs/examples/1.7.x/console-web/examples/projects/get-email-template.md new file mode 100644 index 0000000000..1d27c8c682 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/get-email-template.md @@ -0,0 +1,15 @@ +import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.getEmailTemplate( + '<PROJECT_ID>', // projectId + EmailTemplateType.Verification, // type + EmailTemplateLocale.Af // locale +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/get-key.md b/docs/examples/1.7.x/console-web/examples/projects/get-key.md new file mode 100644 index 0000000000..79359e298b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/get-key.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.getKey( + '<PROJECT_ID>', // projectId + '<KEY_ID>' // keyId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/get-platform.md b/docs/examples/1.7.x/console-web/examples/projects/get-platform.md new file mode 100644 index 0000000000..a17bcb122d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/get-platform.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.getPlatform( + '<PROJECT_ID>', // projectId + '<PLATFORM_ID>' // platformId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/get-sms-template.md b/docs/examples/1.7.x/console-web/examples/projects/get-sms-template.md new file mode 100644 index 0000000000..0badf1cca4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/get-sms-template.md @@ -0,0 +1,15 @@ +import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.getSmsTemplate( + '<PROJECT_ID>', // projectId + SmsTemplateType.Verification, // type + SmsTemplateLocale.Af // locale +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.7.x/console-web/examples/projects/get-webhook.md new file mode 100644 index 0000000000..6b6530a04e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/get-webhook.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.getWebhook( + '<PROJECT_ID>', // projectId + '<WEBHOOK_ID>' // webhookId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/get.md b/docs/examples/1.7.x/console-web/examples/projects/get.md new file mode 100644 index 0000000000..dbec5dd543 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/get.md @@ -0,0 +1,13 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.get( + '<PROJECT_ID>' // projectId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/list-dev-keys.md b/docs/examples/1.7.x/console-web/examples/projects/list-dev-keys.md new file mode 100644 index 0000000000..d3b17706cd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/list-dev-keys.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.listDevKeys( + '<PROJECT_ID>', // projectId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/list-keys.md b/docs/examples/1.7.x/console-web/examples/projects/list-keys.md new file mode 100644 index 0000000000..5701133ba4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/list-keys.md @@ -0,0 +1,13 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.listKeys( + '<PROJECT_ID>' // projectId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.7.x/console-web/examples/projects/list-platforms.md new file mode 100644 index 0000000000..214092b6b3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/list-platforms.md @@ -0,0 +1,13 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.listPlatforms( + '<PROJECT_ID>' // projectId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.7.x/console-web/examples/projects/list-webhooks.md new file mode 100644 index 0000000000..11639bfccf --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/list-webhooks.md @@ -0,0 +1,13 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.listWebhooks( + '<PROJECT_ID>' // projectId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/list.md b/docs/examples/1.7.x/console-web/examples/projects/list.md new file mode 100644 index 0000000000..0ade65189a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/list.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-api-status-all.md b/docs/examples/1.7.x/console-web/examples/projects/update-api-status-all.md new file mode 100644 index 0000000000..a51ed2df2b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-api-status-all.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateApiStatusAll( + '<PROJECT_ID>', // projectId + false // status +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-api-status.md b/docs/examples/1.7.x/console-web/examples/projects/update-api-status.md new file mode 100644 index 0000000000..9cc7dfe8ab --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-api-status.md @@ -0,0 +1,15 @@ +import { Client, Projects, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateApiStatus( + '<PROJECT_ID>', // projectId + .Rest, // api + false // status +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.7.x/console-web/examples/projects/update-auth-duration.md new file mode 100644 index 0000000000..d0d8c67b28 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-auth-duration.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateAuthDuration( + '<PROJECT_ID>', // projectId + 0 // duration +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.7.x/console-web/examples/projects/update-auth-limit.md new file mode 100644 index 0000000000..80f73f871f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-auth-limit.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateAuthLimit( + '<PROJECT_ID>', // projectId + 0 // limit +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.7.x/console-web/examples/projects/update-auth-password-dictionary.md new file mode 100644 index 0000000000..1e878c2246 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateAuthPasswordDictionary( + '<PROJECT_ID>', // projectId + false // enabled +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.7.x/console-web/examples/projects/update-auth-password-history.md new file mode 100644 index 0000000000..26a3adcfde --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-auth-password-history.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateAuthPasswordHistory( + '<PROJECT_ID>', // projectId + 0 // limit +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.7.x/console-web/examples/projects/update-auth-sessions-limit.md new file mode 100644 index 0000000000..c1b0e14e91 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateAuthSessionsLimit( + '<PROJECT_ID>', // projectId + 1 // limit +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.7.x/console-web/examples/projects/update-auth-status.md new file mode 100644 index 0000000000..d4862282a6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-auth-status.md @@ -0,0 +1,15 @@ +import { Client, Projects, AuthMethod } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateAuthStatus( + '<PROJECT_ID>', // projectId + AuthMethod.EmailPassword, // method + false // status +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-dev-key.md b/docs/examples/1.7.x/console-web/examples/projects/update-dev-key.md new file mode 100644 index 0000000000..9c00474262 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-dev-key.md @@ -0,0 +1,16 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateDevKey( + '<PROJECT_ID>', // projectId + '<KEY_ID>', // keyId + '<NAME>', // name + '' // expire +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-email-template.md b/docs/examples/1.7.x/console-web/examples/projects/update-email-template.md new file mode 100644 index 0000000000..44467c4f8a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-email-template.md @@ -0,0 +1,20 @@ +import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateEmailTemplate( + '<PROJECT_ID>', // projectId + EmailTemplateType.Verification, // type + EmailTemplateLocale.Af, // locale + '<SUBJECT>', // subject + '<MESSAGE>', // message + '<SENDER_NAME>', // senderName (optional) + 'email@example.com', // senderEmail (optional) + 'email@example.com' // replyTo (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-key.md b/docs/examples/1.7.x/console-web/examples/projects/update-key.md new file mode 100644 index 0000000000..492a0ac23d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-key.md @@ -0,0 +1,17 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateKey( + '<PROJECT_ID>', // projectId + '<KEY_ID>', // keyId + '<NAME>', // name + [], // scopes + '' // expire (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-memberships-privacy.md b/docs/examples/1.7.x/console-web/examples/projects/update-memberships-privacy.md new file mode 100644 index 0000000000..31adcd3855 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-memberships-privacy.md @@ -0,0 +1,16 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateMembershipsPrivacy( + '<PROJECT_ID>', // projectId + false, // userName + false, // userEmail + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-mock-numbers.md b/docs/examples/1.7.x/console-web/examples/projects/update-mock-numbers.md new file mode 100644 index 0000000000..245a20c19b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-mock-numbers.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateMockNumbers( + '<PROJECT_ID>', // projectId + [] // numbers +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.7.x/console-web/examples/projects/update-o-auth2.md new file mode 100644 index 0000000000..0671ee38bd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-o-auth2.md @@ -0,0 +1,17 @@ +import { Client, Projects, OAuthProvider } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateOAuth2( + '<PROJECT_ID>', // projectId + OAuthProvider.Amazon, // provider + '<APP_ID>', // appId (optional) + '<SECRET>', // secret (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-personal-data-check.md b/docs/examples/1.7.x/console-web/examples/projects/update-personal-data-check.md new file mode 100644 index 0000000000..fb0fcffc16 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-personal-data-check.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updatePersonalDataCheck( + '<PROJECT_ID>', // projectId + false // enabled +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-platform.md b/docs/examples/1.7.x/console-web/examples/projects/update-platform.md new file mode 100644 index 0000000000..2f9cc0a4fd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-platform.md @@ -0,0 +1,18 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updatePlatform( + '<PROJECT_ID>', // projectId + '<PLATFORM_ID>', // platformId + '<NAME>', // name + '<KEY>', // key (optional) + '<STORE>', // store (optional) + '' // hostname (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-service-status-all.md b/docs/examples/1.7.x/console-web/examples/projects/update-service-status-all.md new file mode 100644 index 0000000000..672a1491bc --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-service-status-all.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateServiceStatusAll( + '<PROJECT_ID>', // projectId + false // status +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.7.x/console-web/examples/projects/update-service-status.md new file mode 100644 index 0000000000..5d2189e339 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-service-status.md @@ -0,0 +1,15 @@ +import { Client, Projects, ApiService } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateServiceStatus( + '<PROJECT_ID>', // projectId + ApiService.Account, // service + false // status +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-session-alerts.md b/docs/examples/1.7.x/console-web/examples/projects/update-session-alerts.md new file mode 100644 index 0000000000..65aa353b2b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-session-alerts.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateSessionAlerts( + '<PROJECT_ID>', // projectId + false // alerts +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-sms-template.md b/docs/examples/1.7.x/console-web/examples/projects/update-sms-template.md new file mode 100644 index 0000000000..cc801a67c5 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-sms-template.md @@ -0,0 +1,16 @@ +import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateSmsTemplate( + '<PROJECT_ID>', // projectId + SmsTemplateType.Verification, // type + SmsTemplateLocale.Af, // locale + '<MESSAGE>' // message +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-smtp.md b/docs/examples/1.7.x/console-web/examples/projects/update-smtp.md new file mode 100644 index 0000000000..605ba0f5e3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-smtp.md @@ -0,0 +1,22 @@ +import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateSmtp( + '<PROJECT_ID>', // projectId + false, // enabled + '<SENDER_NAME>', // senderName (optional) + 'email@example.com', // senderEmail (optional) + 'email@example.com', // replyTo (optional) + '', // host (optional) + null, // port (optional) + '<USERNAME>', // username (optional) + '<PASSWORD>', // password (optional) + SMTPSecure.Tls // secure (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-team.md b/docs/examples/1.7.x/console-web/examples/projects/update-team.md new file mode 100644 index 0000000000..b7c5d934e2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-team.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateTeam( + '<PROJECT_ID>', // projectId + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.7.x/console-web/examples/projects/update-webhook-signature.md new file mode 100644 index 0000000000..593c6c0fce --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-webhook-signature.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateWebhookSignature( + '<PROJECT_ID>', // projectId + '<WEBHOOK_ID>' // webhookId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.7.x/console-web/examples/projects/update-webhook.md new file mode 100644 index 0000000000..18d10051e9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update-webhook.md @@ -0,0 +1,21 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateWebhook( + '<PROJECT_ID>', // projectId + '<WEBHOOK_ID>', // webhookId + '<NAME>', // name + [], // events + '', // url + false, // security + false, // enabled (optional) + '<HTTP_USER>', // httpUser (optional) + '<HTTP_PASS>' // httpPass (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/projects/update.md b/docs/examples/1.7.x/console-web/examples/projects/update.md new file mode 100644 index 0000000000..8b2d2823ca --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/projects/update.md @@ -0,0 +1,23 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.update( + '<PROJECT_ID>', // projectId + '<NAME>', // name + '<DESCRIPTION>', // description (optional) + '<LOGO>', // logo (optional) + 'https://example.com', // url (optional) + '<LEGAL_NAME>', // legalName (optional) + '<LEGAL_COUNTRY>', // legalCountry (optional) + '<LEGAL_STATE>', // legalState (optional) + '<LEGAL_CITY>', // legalCity (optional) + '<LEGAL_ADDRESS>', // legalAddress (optional) + '<LEGAL_TAX_ID>' // legalTaxId (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/proxy/create-a-p-i-rule.md b/docs/examples/1.7.x/console-web/examples/proxy/create-a-p-i-rule.md new file mode 100644 index 0000000000..e248ebea3d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/proxy/create-a-p-i-rule.md @@ -0,0 +1,13 @@ +import { Client, Proxy } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const proxy = new Proxy(client); + +const result = await proxy.createAPIRule( + '' // domain +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/proxy/create-function-rule.md b/docs/examples/1.7.x/console-web/examples/proxy/create-function-rule.md new file mode 100644 index 0000000000..2bb0b83f08 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/proxy/create-function-rule.md @@ -0,0 +1,15 @@ +import { Client, Proxy } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const proxy = new Proxy(client); + +const result = await proxy.createFunctionRule( + '', // domain + '<FUNCTION_ID>', // functionId + '<BRANCH>' // branch (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/proxy/create-redirect-rule.md b/docs/examples/1.7.x/console-web/examples/proxy/create-redirect-rule.md new file mode 100644 index 0000000000..43b3f79d8a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/proxy/create-redirect-rule.md @@ -0,0 +1,15 @@ +import { Client, Proxy, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const proxy = new Proxy(client); + +const result = await proxy.createRedirectRule( + '', // domain + 'https://example.com', // url + .MovedPermanently301 // statusCode +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/proxy/create-site-rule.md b/docs/examples/1.7.x/console-web/examples/proxy/create-site-rule.md new file mode 100644 index 0000000000..4ea806eceb --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/proxy/create-site-rule.md @@ -0,0 +1,15 @@ +import { Client, Proxy } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const proxy = new Proxy(client); + +const result = await proxy.createSiteRule( + '', // domain + '<SITE_ID>', // siteId + '<BRANCH>' // branch (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/proxy/delete-rule.md b/docs/examples/1.7.x/console-web/examples/proxy/delete-rule.md new file mode 100644 index 0000000000..783f06d95c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/proxy/delete-rule.md @@ -0,0 +1,13 @@ +import { Client, Proxy } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const proxy = new Proxy(client); + +const result = await proxy.deleteRule( + '<RULE_ID>' // ruleId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/proxy/get-rule.md b/docs/examples/1.7.x/console-web/examples/proxy/get-rule.md new file mode 100644 index 0000000000..e69c8210ce --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/proxy/get-rule.md @@ -0,0 +1,13 @@ +import { Client, Proxy } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const proxy = new Proxy(client); + +const result = await proxy.getRule( + '<RULE_ID>' // ruleId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/proxy/list-rules.md b/docs/examples/1.7.x/console-web/examples/proxy/list-rules.md new file mode 100644 index 0000000000..8c07168292 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/proxy/list-rules.md @@ -0,0 +1,14 @@ +import { Client, Proxy } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const proxy = new Proxy(client); + +const result = await proxy.listRules( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/proxy/update-rule-verification.md b/docs/examples/1.7.x/console-web/examples/proxy/update-rule-verification.md new file mode 100644 index 0000000000..349535cec8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/proxy/update-rule-verification.md @@ -0,0 +1,13 @@ +import { Client, Proxy } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const proxy = new Proxy(client); + +const result = await proxy.updateRuleVerification( + '<RULE_ID>' // ruleId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/create-deployment.md b/docs/examples/1.7.x/console-web/examples/sites/create-deployment.md new file mode 100644 index 0000000000..5bc597c20e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/create-deployment.md @@ -0,0 +1,18 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.createDeployment( + '<SITE_ID>', // siteId + document.getElementById('uploader').files[0], // code + false, // activate + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>' // outputDirectory (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/console-web/examples/sites/create-duplicate-deployment.md new file mode 100644 index 0000000000..3b8347fbf6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.createDuplicateDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/console-web/examples/sites/create-template-deployment.md new file mode 100644 index 0000000000..990d7cf98b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/create-template-deployment.md @@ -0,0 +1,18 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.createTemplateDeployment( + '<SITE_ID>', // siteId + '<REPOSITORY>', // repository + '<OWNER>', // owner + '<ROOT_DIRECTORY>', // rootDirectory + '<VERSION>', // version + false // activate (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/create-variable.md b/docs/examples/1.7.x/console-web/examples/sites/create-variable.md new file mode 100644 index 0000000000..d605f2e4aa --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/create-variable.md @@ -0,0 +1,16 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.createVariable( + '<SITE_ID>', // siteId + '<KEY>', // key + '<VALUE>', // value + false // secret (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/console-web/examples/sites/create-vcs-deployment.md new file mode 100644 index 0000000000..dd595db14d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/create-vcs-deployment.md @@ -0,0 +1,16 @@ +import { Client, Sites, VCSDeploymentType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.createVcsDeployment( + '<SITE_ID>', // siteId + VCSDeploymentType.Branch, // type + '<REFERENCE>', // reference + false // activate (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/create.md b/docs/examples/1.7.x/console-web/examples/sites/create.md new file mode 100644 index 0000000000..7880ba361b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/create.md @@ -0,0 +1,30 @@ +import { Client, Sites, , , } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.create( + '<SITE_ID>', // siteId + '<NAME>', // name + .Analog, // framework + .Node145, // buildRuntime + false, // enabled (optional) + false, // logging (optional) + 1, // timeout (optional) + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>', // outputDirectory (optional) + .Static, // adapter (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<FALLBACK_FILE>', // fallbackFile (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/delete-deployment.md b/docs/examples/1.7.x/console-web/examples/sites/delete-deployment.md new file mode 100644 index 0000000000..357b69c04e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/delete-deployment.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.deleteDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/delete-log.md b/docs/examples/1.7.x/console-web/examples/sites/delete-log.md new file mode 100644 index 0000000000..25defd1546 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/delete-log.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.deleteLog( + '<SITE_ID>', // siteId + '<LOG_ID>' // logId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/delete-variable.md b/docs/examples/1.7.x/console-web/examples/sites/delete-variable.md new file mode 100644 index 0000000000..f6201738d8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/delete-variable.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.deleteVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>' // variableId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/delete.md b/docs/examples/1.7.x/console-web/examples/sites/delete.md new file mode 100644 index 0000000000..e3eff9cbb9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/delete.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.delete( + '<SITE_ID>' // siteId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/console-web/examples/sites/get-deployment-download.md new file mode 100644 index 0000000000..17707eded0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/get-deployment-download.md @@ -0,0 +1,15 @@ +import { Client, Sites, DeploymentDownloadType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = sites.getDeploymentDownload( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>', // deploymentId + DeploymentDownloadType.Source // type (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/get-deployment.md b/docs/examples/1.7.x/console-web/examples/sites/get-deployment.md new file mode 100644 index 0000000000..c3453446e8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/get-deployment.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.getDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/get-log.md b/docs/examples/1.7.x/console-web/examples/sites/get-log.md new file mode 100644 index 0000000000..eb1cd654c9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/get-log.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.getLog( + '<SITE_ID>', // siteId + '<LOG_ID>' // logId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/get-template.md b/docs/examples/1.7.x/console-web/examples/sites/get-template.md new file mode 100644 index 0000000000..4220390d95 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/get-template.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.getTemplate( + '<TEMPLATE_ID>' // templateId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/get-usage.md b/docs/examples/1.7.x/console-web/examples/sites/get-usage.md new file mode 100644 index 0000000000..582a754e07 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/get-usage.md @@ -0,0 +1,14 @@ +import { Client, Sites, SiteUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.getUsage( + '<SITE_ID>', // siteId + SiteUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/get-variable.md b/docs/examples/1.7.x/console-web/examples/sites/get-variable.md new file mode 100644 index 0000000000..c0d95326cc --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/get-variable.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.getVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>' // variableId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/get.md b/docs/examples/1.7.x/console-web/examples/sites/get.md new file mode 100644 index 0000000000..102cade4c6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/get.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.get( + '<SITE_ID>' // siteId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/list-deployments.md b/docs/examples/1.7.x/console-web/examples/sites/list-deployments.md new file mode 100644 index 0000000000..8c0bd8ea2d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/list-deployments.md @@ -0,0 +1,15 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.listDeployments( + '<SITE_ID>', // siteId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/list-frameworks.md b/docs/examples/1.7.x/console-web/examples/sites/list-frameworks.md new file mode 100644 index 0000000000..aceadcc8c9 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/list-frameworks.md @@ -0,0 +1,11 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.listFrameworks(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/list-logs.md b/docs/examples/1.7.x/console-web/examples/sites/list-logs.md new file mode 100644 index 0000000000..458cc69b2b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/list-logs.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.listLogs( + '<SITE_ID>', // siteId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/list-specifications.md b/docs/examples/1.7.x/console-web/examples/sites/list-specifications.md new file mode 100644 index 0000000000..9bbb35d76d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/list-specifications.md @@ -0,0 +1,11 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.listSpecifications(); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/list-templates.md b/docs/examples/1.7.x/console-web/examples/sites/list-templates.md new file mode 100644 index 0000000000..58f46bbb4a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/list-templates.md @@ -0,0 +1,16 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.listTemplates( + [], // frameworks (optional) + [], // useCases (optional) + 1, // limit (optional) + 0 // offset (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/list-usage.md b/docs/examples/1.7.x/console-web/examples/sites/list-usage.md new file mode 100644 index 0000000000..7182d78880 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/list-usage.md @@ -0,0 +1,13 @@ +import { Client, Sites, SiteUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.listUsage( + SiteUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/list-variables.md b/docs/examples/1.7.x/console-web/examples/sites/list-variables.md new file mode 100644 index 0000000000..de62195aea --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/list-variables.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.listVariables( + '<SITE_ID>' // siteId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/list.md b/docs/examples/1.7.x/console-web/examples/sites/list.md new file mode 100644 index 0000000000..fafe3cb229 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/list.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/console-web/examples/sites/update-deployment-status.md new file mode 100644 index 0000000000..8205c863b0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/update-deployment-status.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.updateDeploymentStatus( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/console-web/examples/sites/update-site-deployment.md new file mode 100644 index 0000000000..d63541702e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/update-site-deployment.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.updateSiteDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/update-variable.md b/docs/examples/1.7.x/console-web/examples/sites/update-variable.md new file mode 100644 index 0000000000..1ea9481737 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/update-variable.md @@ -0,0 +1,17 @@ +import { Client, Sites } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.updateVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>', // variableId + '<KEY>', // key + '<VALUE>', // value (optional) + false // secret (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/sites/update.md b/docs/examples/1.7.x/console-web/examples/sites/update.md new file mode 100644 index 0000000000..b20a19526d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/sites/update.md @@ -0,0 +1,30 @@ +import { Client, Sites, , , } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const sites = new Sites(client); + +const result = await sites.update( + '<SITE_ID>', // siteId + '<NAME>', // name + .Analog, // framework + false, // enabled (optional) + false, // logging (optional) + 1, // timeout (optional) + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>', // outputDirectory (optional) + .Node145, // buildRuntime (optional) + .Static, // adapter (optional) + '<FALLBACK_FILE>', // fallbackFile (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.7.x/console-web/examples/storage/create-bucket.md new file mode 100644 index 0000000000..a01bb0945f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/create-bucket.md @@ -0,0 +1,22 @@ +import { Client, Storage, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.createBucket( + '<BUCKET_ID>', // bucketId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // fileSecurity (optional) + false, // enabled (optional) + 1, // maximumFileSize (optional) + [], // allowedFileExtensions (optional) + .None, // compression (optional) + false, // encryption (optional) + false // antivirus (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/create-file.md b/docs/examples/1.7.x/console-web/examples/storage/create-file.md new file mode 100644 index 0000000000..8048772389 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/create-file.md @@ -0,0 +1,16 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.createFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + document.getElementById('uploader').files[0], // file + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.7.x/console-web/examples/storage/delete-bucket.md new file mode 100644 index 0000000000..20084fd7e3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/delete-bucket.md @@ -0,0 +1,13 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.deleteBucket( + '<BUCKET_ID>' // bucketId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/delete-file.md b/docs/examples/1.7.x/console-web/examples/storage/delete-file.md new file mode 100644 index 0000000000..41afa9e375 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/delete-file.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.deleteFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.7.x/console-web/examples/storage/get-bucket-usage.md new file mode 100644 index 0000000000..1007454c2e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/get-bucket-usage.md @@ -0,0 +1,14 @@ +import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.getBucketUsage( + '<BUCKET_ID>', // bucketId + StorageUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.7.x/console-web/examples/storage/get-bucket.md new file mode 100644 index 0000000000..ec77dd2bf5 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/get-bucket.md @@ -0,0 +1,13 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.getBucket( + '<BUCKET_ID>' // bucketId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.7.x/console-web/examples/storage/get-file-download.md new file mode 100644 index 0000000000..8e98105ef3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/get-file-download.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFileDownload( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.7.x/console-web/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..b14a02769e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/get-file-preview.md @@ -0,0 +1,26 @@ +import { Client, Storage, ImageGravity, ImageFormat } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFilePreview( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + 0, // width (optional) + 0, // height (optional) + ImageGravity.Center, // gravity (optional) + -1, // quality (optional) + 0, // borderWidth (optional) + '', // borderColor (optional) + 0, // borderRadius (optional) + 0, // opacity (optional) + -360, // rotation (optional) + '', // background (optional) + ImageFormat.Jpg, // output (optional) + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.7.x/console-web/examples/storage/get-file-view.md new file mode 100644 index 0000000000..03db75f044 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/get-file-view.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFileView( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/get-file.md b/docs/examples/1.7.x/console-web/examples/storage/get-file.md new file mode 100644 index 0000000000..76658edb0b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/get-file.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.getFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/get-usage.md b/docs/examples/1.7.x/console-web/examples/storage/get-usage.md new file mode 100644 index 0000000000..b57f8f8b03 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/get-usage.md @@ -0,0 +1,13 @@ +import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.getUsage( + StorageUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.7.x/console-web/examples/storage/list-buckets.md new file mode 100644 index 0000000000..f82c01a879 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/list-buckets.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.listBuckets( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/list-files.md b/docs/examples/1.7.x/console-web/examples/storage/list-files.md new file mode 100644 index 0000000000..9076b8997f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/list-files.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.listFiles( + '<BUCKET_ID>', // bucketId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.7.x/console-web/examples/storage/update-bucket.md new file mode 100644 index 0000000000..d6c125a213 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/update-bucket.md @@ -0,0 +1,22 @@ +import { Client, Storage, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.updateBucket( + '<BUCKET_ID>', // bucketId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // fileSecurity (optional) + false, // enabled (optional) + 1, // maximumFileSize (optional) + [], // allowedFileExtensions (optional) + .None, // compression (optional) + false, // encryption (optional) + false // antivirus (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/storage/update-file.md b/docs/examples/1.7.x/console-web/examples/storage/update-file.md new file mode 100644 index 0000000000..79830f77d2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/storage/update-file.md @@ -0,0 +1,16 @@ +import { Client, Storage } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.updateFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<NAME>', // name (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/create-membership.md b/docs/examples/1.7.x/console-web/examples/teams/create-membership.md new file mode 100644 index 0000000000..18f6b0ab4d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/create-membership.md @@ -0,0 +1,19 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.createMembership( + '<TEAM_ID>', // teamId + [], // roles + 'email@example.com', // email (optional) + '<USER_ID>', // userId (optional) + '+12065550100', // phone (optional) + 'https://example.com', // url (optional) + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/create.md b/docs/examples/1.7.x/console-web/examples/teams/create.md new file mode 100644 index 0000000000..a33e71ad5f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/create.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.create( + '<TEAM_ID>', // teamId + '<NAME>', // name + [] // roles (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.7.x/console-web/examples/teams/delete-membership.md new file mode 100644 index 0000000000..a63ed46749 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/delete-membership.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.deleteMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/delete.md b/docs/examples/1.7.x/console-web/examples/teams/delete.md new file mode 100644 index 0000000000..e97cc05cc7 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/delete.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.delete( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/get-membership.md b/docs/examples/1.7.x/console-web/examples/teams/get-membership.md new file mode 100644 index 0000000000..bc31ee1470 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/get-membership.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.getMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.7.x/console-web/examples/teams/get-prefs.md new file mode 100644 index 0000000000..394848c5c3 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/get-prefs.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.getPrefs( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/get.md b/docs/examples/1.7.x/console-web/examples/teams/get.md new file mode 100644 index 0000000000..8c752a9828 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/get.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.get( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/list-logs.md b/docs/examples/1.7.x/console-web/examples/teams/list-logs.md new file mode 100644 index 0000000000..004e627f0d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/list-logs.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.listLogs( + '<TEAM_ID>', // teamId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.7.x/console-web/examples/teams/list-memberships.md new file mode 100644 index 0000000000..22fb731175 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/list-memberships.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.listMemberships( + '<TEAM_ID>', // teamId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/list.md b/docs/examples/1.7.x/console-web/examples/teams/list.md new file mode 100644 index 0000000000..c51dfaf389 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/list.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.7.x/console-web/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..c8e608278e --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/update-membership-status.md @@ -0,0 +1,16 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateMembershipStatus( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/update-membership.md b/docs/examples/1.7.x/console-web/examples/teams/update-membership.md new file mode 100644 index 0000000000..d3e0164a17 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/update-membership.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + [] // roles +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/update-name.md b/docs/examples/1.7.x/console-web/examples/teams/update-name.md new file mode 100644 index 0000000000..43703d0c98 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/update-name.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateName( + '<TEAM_ID>', // teamId + '<NAME>' // name +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.7.x/console-web/examples/teams/update-prefs.md new file mode 100644 index 0000000000..e0acff0a30 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/teams/update-prefs.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updatePrefs( + '<TEAM_ID>', // teamId + {} // prefs +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/tokens/create-file-token.md b/docs/examples/1.7.x/console-web/examples/tokens/create-file-token.md new file mode 100644 index 0000000000..bac4863159 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/tokens/create-file-token.md @@ -0,0 +1,15 @@ +import { Client, Tokens } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const tokens = new Tokens(client); + +const result = await tokens.createFileToken( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '' // expire (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/tokens/delete.md b/docs/examples/1.7.x/console-web/examples/tokens/delete.md new file mode 100644 index 0000000000..0a871d0fe4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/tokens/delete.md @@ -0,0 +1,13 @@ +import { Client, Tokens } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const tokens = new Tokens(client); + +const result = await tokens.delete( + '<TOKEN_ID>' // tokenId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/tokens/get.md b/docs/examples/1.7.x/console-web/examples/tokens/get.md new file mode 100644 index 0000000000..ee83fb83c2 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/tokens/get.md @@ -0,0 +1,13 @@ +import { Client, Tokens } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const tokens = new Tokens(client); + +const result = await tokens.get( + '<TOKEN_ID>' // tokenId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/tokens/list.md b/docs/examples/1.7.x/console-web/examples/tokens/list.md new file mode 100644 index 0000000000..33077e26dd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/tokens/list.md @@ -0,0 +1,15 @@ +import { Client, Tokens } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const tokens = new Tokens(client); + +const result = await tokens.list( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/tokens/update.md b/docs/examples/1.7.x/console-web/examples/tokens/update.md new file mode 100644 index 0000000000..ce3b80dd22 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/tokens/update.md @@ -0,0 +1,14 @@ +import { Client, Tokens } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const tokens = new Tokens(client); + +const result = await tokens.update( + '<TOKEN_ID>', // tokenId + '' // expire (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.7.x/console-web/examples/users/create-argon2user.md new file mode 100644 index 0000000000..c190225d4b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-argon2user.md @@ -0,0 +1,16 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createArgon2User( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/console-web/examples/users/create-bcrypt-user.md new file mode 100644 index 0000000000..9c51181890 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-bcrypt-user.md @@ -0,0 +1,16 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createBcryptUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-j-w-t.md b/docs/examples/1.7.x/console-web/examples/users/create-j-w-t.md new file mode 100644 index 0000000000..7d50fbce03 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.7.x/console-web/examples/users/create-m-d5user.md new file mode 100644 index 0000000000..610f795ab0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-m-d5user.md @@ -0,0 +1,16 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createMD5User( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/console-web/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 0000000000..ea52af9cf8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createMfaRecoveryCodes( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/console-web/examples/users/create-p-h-pass-user.md new file mode 100644 index 0000000000..c9437c5c38 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-p-h-pass-user.md @@ -0,0 +1,16 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createPHPassUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/console-web/examples/users/create-s-h-a-user.md new file mode 100644 index 0000000000..b70f09c133 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-s-h-a-user.md @@ -0,0 +1,17 @@ +import { Client, Users, PasswordHash } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createSHAUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + PasswordHash.Sha1, // passwordVersion (optional) + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/console-web/examples/users/create-scrypt-modified-user.md new file mode 100644 index 0000000000..c0a0435b67 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,19 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createScryptModifiedUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<PASSWORD_SALT>', // passwordSalt + '<PASSWORD_SALT_SEPARATOR>', // passwordSaltSeparator + '<PASSWORD_SIGNER_KEY>', // passwordSignerKey + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/console-web/examples/users/create-scrypt-user.md new file mode 100644 index 0000000000..f1cb93637a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-scrypt-user.md @@ -0,0 +1,21 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createScryptUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<PASSWORD_SALT>', // passwordSalt + null, // passwordCpu + null, // passwordMemory + null, // passwordParallel + null, // passwordLength + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-session.md b/docs/examples/1.7.x/console-web/examples/users/create-session.md new file mode 100644 index 0000000000..5393c4408d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-session.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createSession( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-target.md b/docs/examples/1.7.x/console-web/examples/users/create-target.md new file mode 100644 index 0000000000..4c8eac9c45 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-target.md @@ -0,0 +1,18 @@ +import { Client, Users, MessagingProviderType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createTarget( + '<USER_ID>', // userId + '<TARGET_ID>', // targetId + MessagingProviderType.Email, // providerType + '<IDENTIFIER>', // identifier + '<PROVIDER_ID>', // providerId (optional) + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create-token.md b/docs/examples/1.7.x/console-web/examples/users/create-token.md new file mode 100644 index 0000000000..58e8c9f035 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create-token.md @@ -0,0 +1,15 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createToken( + '<USER_ID>', // userId + 4, // length (optional) + 60 // expire (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/create.md b/docs/examples/1.7.x/console-web/examples/users/create.md new file mode 100644 index 0000000000..131ef1290c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/create.md @@ -0,0 +1,17 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.create( + '<USER_ID>', // userId + 'email@example.com', // email (optional) + '+12065550100', // phone (optional) + '', // password (optional) + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/delete-identity.md b/docs/examples/1.7.x/console-web/examples/users/delete-identity.md new file mode 100644 index 0000000000..cf7425c843 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/delete-identity.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.deleteIdentity( + '<IDENTITY_ID>' // identityId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/console-web/examples/users/delete-mfa-authenticator.md new file mode 100644 index 0000000000..023686ae26 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,14 @@ +import { Client, Users, AuthenticatorType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.deleteMfaAuthenticator( + '<USER_ID>', // userId + AuthenticatorType.Totp // type +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/delete-session.md b/docs/examples/1.7.x/console-web/examples/users/delete-session.md new file mode 100644 index 0000000000..ca6880431b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/delete-session.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.deleteSession( + '<USER_ID>', // userId + '<SESSION_ID>' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.7.x/console-web/examples/users/delete-sessions.md new file mode 100644 index 0000000000..1137a8b29b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/delete-sessions.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.deleteSessions( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/delete-target.md b/docs/examples/1.7.x/console-web/examples/users/delete-target.md new file mode 100644 index 0000000000..386d8a90b5 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/delete-target.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.deleteTarget( + '<USER_ID>', // userId + '<TARGET_ID>' // targetId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/delete.md b/docs/examples/1.7.x/console-web/examples/users/delete.md new file mode 100644 index 0000000000..1d4b1d0e1c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/delete.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.delete( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/console-web/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 0000000000..02d17649c8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.getMfaRecoveryCodes( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/get-prefs.md b/docs/examples/1.7.x/console-web/examples/users/get-prefs.md new file mode 100644 index 0000000000..b24f2bd3ae --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/get-prefs.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.getPrefs( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/get-target.md b/docs/examples/1.7.x/console-web/examples/users/get-target.md new file mode 100644 index 0000000000..cfa7d3d5cd --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/get-target.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.getTarget( + '<USER_ID>', // userId + '<TARGET_ID>' // targetId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/get-usage.md b/docs/examples/1.7.x/console-web/examples/users/get-usage.md new file mode 100644 index 0000000000..bd87faf10f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/get-usage.md @@ -0,0 +1,13 @@ +import { Client, Users, UserUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.getUsage( + UserUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/get.md b/docs/examples/1.7.x/console-web/examples/users/get.md new file mode 100644 index 0000000000..77f5006890 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/get.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.get( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/list-identities.md b/docs/examples/1.7.x/console-web/examples/users/list-identities.md new file mode 100644 index 0000000000..34b92900a7 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/list-identities.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.listIdentities( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/list-logs.md b/docs/examples/1.7.x/console-web/examples/users/list-logs.md new file mode 100644 index 0000000000..85e6cf5071 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/list-logs.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.listLogs( + '<USER_ID>', // userId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/list-memberships.md b/docs/examples/1.7.x/console-web/examples/users/list-memberships.md new file mode 100644 index 0000000000..01ce244361 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/list-memberships.md @@ -0,0 +1,15 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.listMemberships( + '<USER_ID>', // userId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/console-web/examples/users/list-mfa-factors.md new file mode 100644 index 0000000000..fe1dd23594 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/list-mfa-factors.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.listMfaFactors( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/list-sessions.md b/docs/examples/1.7.x/console-web/examples/users/list-sessions.md new file mode 100644 index 0000000000..e3d5d6e51d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/list-sessions.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.listSessions( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/list-targets.md b/docs/examples/1.7.x/console-web/examples/users/list-targets.md new file mode 100644 index 0000000000..58f4079aee --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/list-targets.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.listTargets( + '<USER_ID>', // userId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/list.md b/docs/examples/1.7.x/console-web/examples/users/list.md new file mode 100644 index 0000000000..d2189b9c93 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/list.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.7.x/console-web/examples/users/update-email-verification.md new file mode 100644 index 0000000000..3fedd4b86f --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-email-verification.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updateEmailVerification( + '<USER_ID>', // userId + false // emailVerification +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-email.md b/docs/examples/1.7.x/console-web/examples/users/update-email.md new file mode 100644 index 0000000000..9922376778 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-email.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updateEmail( + '<USER_ID>', // userId + 'email@example.com' // email +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-labels.md b/docs/examples/1.7.x/console-web/examples/users/update-labels.md new file mode 100644 index 0000000000..4fc268fc3c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-labels.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updateLabels( + '<USER_ID>', // userId + [] // labels +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/console-web/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 0000000000..041cd9098b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updateMfaRecoveryCodes( + '<USER_ID>' // userId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-mfa.md b/docs/examples/1.7.x/console-web/examples/users/update-mfa.md new file mode 100644 index 0000000000..af710ecd48 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-mfa.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updateMfa( + '<USER_ID>', // userId + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-name.md b/docs/examples/1.7.x/console-web/examples/users/update-name.md new file mode 100644 index 0000000000..b57cb33730 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-name.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updateName( + '<USER_ID>', // userId + '<NAME>' // name +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-password.md b/docs/examples/1.7.x/console-web/examples/users/update-password.md new file mode 100644 index 0000000000..e9c7f9b51d --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-password.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updatePassword( + '<USER_ID>', // userId + '' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.7.x/console-web/examples/users/update-phone-verification.md new file mode 100644 index 0000000000..a29e38591c --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-phone-verification.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updatePhoneVerification( + '<USER_ID>', // userId + false // phoneVerification +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-phone.md b/docs/examples/1.7.x/console-web/examples/users/update-phone.md new file mode 100644 index 0000000000..a87780161b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-phone.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updatePhone( + '<USER_ID>', // userId + '+12065550100' // number +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-prefs.md b/docs/examples/1.7.x/console-web/examples/users/update-prefs.md new file mode 100644 index 0000000000..7d9993bbb1 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-prefs.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updatePrefs( + '<USER_ID>', // userId + {} // prefs +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-status.md b/docs/examples/1.7.x/console-web/examples/users/update-status.md new file mode 100644 index 0000000000..5e823e7a48 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-status.md @@ -0,0 +1,14 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updateStatus( + '<USER_ID>', // userId + false // status +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/users/update-target.md b/docs/examples/1.7.x/console-web/examples/users/update-target.md new file mode 100644 index 0000000000..ed33fe9bb0 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/users/update-target.md @@ -0,0 +1,17 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.updateTarget( + '<USER_ID>', // userId + '<TARGET_ID>', // targetId + '<IDENTIFIER>', // identifier (optional) + '<PROVIDER_ID>', // providerId (optional) + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.7.x/console-web/examples/vcs/create-repository-detection.md new file mode 100644 index 0000000000..84de3ffb26 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/create-repository-detection.md @@ -0,0 +1,16 @@ +import { Client, Vcs, VCSDetectionType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.createRepositoryDetection( + '<INSTALLATION_ID>', // installationId + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId + VCSDetectionType.Runtime, // type + '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/create-repository.md b/docs/examples/1.7.x/console-web/examples/vcs/create-repository.md new file mode 100644 index 0000000000..1d08ac5b09 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/create-repository.md @@ -0,0 +1,15 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.createRepository( + '<INSTALLATION_ID>', // installationId + '<NAME>', // name + false // private +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/delete-installation.md b/docs/examples/1.7.x/console-web/examples/vcs/delete-installation.md new file mode 100644 index 0000000000..3f760c09b6 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/delete-installation.md @@ -0,0 +1,13 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.deleteInstallation( + '<INSTALLATION_ID>' // installationId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/get-installation.md b/docs/examples/1.7.x/console-web/examples/vcs/get-installation.md new file mode 100644 index 0000000000..4230f2bd9a --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/get-installation.md @@ -0,0 +1,13 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.getInstallation( + '<INSTALLATION_ID>' // installationId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/get-repository-contents.md b/docs/examples/1.7.x/console-web/examples/vcs/get-repository-contents.md new file mode 100644 index 0000000000..8a04ba1ae4 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/get-repository-contents.md @@ -0,0 +1,15 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.getRepositoryContents( + '<INSTALLATION_ID>', // installationId + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId + '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/get-repository.md b/docs/examples/1.7.x/console-web/examples/vcs/get-repository.md new file mode 100644 index 0000000000..516265a0c8 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/get-repository.md @@ -0,0 +1,14 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.getRepository( + '<INSTALLATION_ID>', // installationId + '<PROVIDER_REPOSITORY_ID>' // providerRepositoryId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.7.x/console-web/examples/vcs/list-installations.md new file mode 100644 index 0000000000..1ba1e64615 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/list-installations.md @@ -0,0 +1,14 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.listInstallations( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.7.x/console-web/examples/vcs/list-repositories.md new file mode 100644 index 0000000000..f414ec316b --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/list-repositories.md @@ -0,0 +1,15 @@ +import { Client, Vcs, VCSDetectionType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.listRepositories( + '<INSTALLATION_ID>', // installationId + VCSDetectionType.Runtime, // type + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/list-repository-branches.md b/docs/examples/1.7.x/console-web/examples/vcs/list-repository-branches.md new file mode 100644 index 0000000000..ba6b86a053 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/list-repository-branches.md @@ -0,0 +1,14 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.listRepositoryBranches( + '<INSTALLATION_ID>', // installationId + '<PROVIDER_REPOSITORY_ID>' // providerRepositoryId +); + +console.log(result); diff --git a/docs/examples/1.7.x/console-web/examples/vcs/update-external-deployments.md b/docs/examples/1.7.x/console-web/examples/vcs/update-external-deployments.md new file mode 100644 index 0000000000..31425cb883 --- /dev/null +++ b/docs/examples/1.7.x/console-web/examples/vcs/update-external-deployments.md @@ -0,0 +1,15 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.updateExternalDeployments( + '<INSTALLATION_ID>', // installationId + '<REPOSITORY_ID>', // repositoryId + '<PROVIDER_PULL_REQUEST_ID>' // providerPullRequestId +); + +console.log(result); diff --git a/docs/references/databases/upsert-document.md b/docs/references/databases/upsert-document.md new file mode 100644 index 0000000000..a67694cfa6 --- /dev/null +++ b/docs/references/databases/upsert-document.md @@ -0,0 +1 @@ +Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. \ No newline at end of file diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index 674742b845..be03d0fa2a 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 16.0.1 + +* Add `setDevKey` method to Client service +* Add `upsertDocument` method to Databases service + ## 16.0.0 * Remove `Gif` from ImageFormat enum diff --git a/public/images/sites/templates/gallery-for-lynx-dark.png b/public/images/sites/templates/gallery-for-lynx-dark.png new file mode 100644 index 0000000000..9dfd278985 Binary files /dev/null and b/public/images/sites/templates/gallery-for-lynx-dark.png differ diff --git a/public/images/sites/templates/gallery-for-lynx-light.png b/public/images/sites/templates/gallery-for-lynx-light.png new file mode 100644 index 0000000000..9dfd278985 Binary files /dev/null and b/public/images/sites/templates/gallery-for-lynx-light.png differ diff --git a/src/Appwrite/Certificates/Adapter.php b/src/Appwrite/Certificates/Adapter.php index 711e4c09b9..ab673e9cfe 100644 --- a/src/Appwrite/Certificates/Adapter.php +++ b/src/Appwrite/Certificates/Adapter.php @@ -6,9 +6,9 @@ use Utopia\Logger\Log; interface Adapter { - public function issueCertificate(string $certName, string $domain): ?string; + public function issueCertificate(string $certName, string $domain, ?string $domainType): ?string; - public function isRenewRequired(string $domain, Log $log): bool; + public function isRenewRequired(string $domain, ?string $domainType, Log $log): bool; public function deleteCertificate(string $domain): void; } diff --git a/src/Appwrite/Certificates/LetsEncrypt.php b/src/Appwrite/Certificates/LetsEncrypt.php index 3896eab022..76638d9816 100644 --- a/src/Appwrite/Certificates/LetsEncrypt.php +++ b/src/Appwrite/Certificates/LetsEncrypt.php @@ -18,7 +18,7 @@ class LetsEncrypt implements Adapter } - public function issueCertificate(string $certName, string $domain): ?string + public function issueCertificate(string $certName, string $domain, ?string $domainType): ?string { $stdout = ''; $stderr = ''; @@ -84,7 +84,7 @@ class LetsEncrypt implements Adapter return DateTime::addSeconds($dt, -60 * 60 * 24 * 30); } - public function isRenewRequired(string $domain, Log $log): bool + public function isRenewRequired(string $domain, ?string $domainType, Log $log): bool { $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; if (\file_exists($certPath)) { diff --git a/src/Appwrite/Event/Event.php b/src/Appwrite/Event/Event.php index d699a45417..2c735ef2d4 100644 --- a/src/Appwrite/Event/Event.php +++ b/src/Appwrite/Event/Event.php @@ -286,13 +286,6 @@ class Event return $this; } - public function setParamSensitive(string $key): self - { - $this->sensitive[$key] = true; - - return $this; - } - /** * Get param of event. * diff --git a/src/Appwrite/Messaging/Adapter/Realtime.php b/src/Appwrite/Messaging/Adapter/Realtime.php index 568132ceb1..d122841d68 100644 --- a/src/Appwrite/Messaging/Adapter/Realtime.php +++ b/src/Appwrite/Messaging/Adapter/Realtime.php @@ -2,14 +2,14 @@ namespace Appwrite\Messaging\Adapter; -use Appwrite\Messaging\Adapter; +use Appwrite\Messaging\Adapter as MessagingAdapter; +use Appwrite\PubSub\Adapter\Pool as PubSubPool; use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Role; -use Utopia\Pools\Pool; -class Realtime extends Adapter +class Realtime extends MessagingAdapter { /** * Connection Tree @@ -36,12 +36,12 @@ class Realtime extends Adapter */ public array $subscriptions = []; - private Pool $pubsubPool; + private PubSubPool $pubSubPool; public function __construct() { global $register; - $this->pubsubPool = $register->get('pools')->get('pubsub'); + $this->pubSubPool = new PubSubPool($register->get('pools')->get('pubsub')); } /** @@ -132,11 +132,12 @@ class Realtime extends Adapter * Sends an event to the Realtime Server * @param string $projectId * @param array $payload - * @param string $event + * @param array $events * @param array $channels * @param array $roles * @param array $options * @return void + * @throws \Exception */ public function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options = []): void { @@ -147,7 +148,7 @@ class Realtime extends Adapter $permissionsChanged = array_key_exists('permissionsChanged', $options) && $options['permissionsChanged']; $userId = array_key_exists('userId', $options) ? $options['userId'] : null; - $message = [ + $this->pubSubPool->publish('realtime', json_encode([ 'project' => $projectId, 'roles' => $roles, 'permissionsChanged' => $permissionsChanged, @@ -158,9 +159,7 @@ class Realtime extends Adapter 'timestamp' => DateTime::formatTz(DateTime::now()), 'payload' => $payload ] - ]; - - $this->pubsubPool->use(fn (\Appwrite\PubSub\Adapter $pubsub) => $pubsub->publish('realtime', json_encode($message))); + ])); } /** @@ -175,8 +174,9 @@ class Realtime extends Adapter * - 1,121.328 ms (±0.84%) | 1,000,000 Connections / 10,000,000 Subscriptions * * @param array $event + * @return int[]|string[] */ - public function getSubscribers(array $event) + public function getSubscribers(array $event): array { $receivers = []; @@ -230,7 +230,7 @@ class Realtime extends Adapter foreach ($channels as $key => $value) { switch (true) { - case strpos($key, 'account.') === 0: + case \str_starts_with($key, 'account.'): unset($channels[$key]); break; @@ -353,7 +353,6 @@ class Realtime extends Adapter } break; - case 'sites': if ($parts[2] === 'deployments') { $channels[] = 'console'; @@ -361,7 +360,6 @@ class Realtime extends Adapter $projectId = 'console'; $roles = [Role::team($project->getAttribute('teamId'))->toString()]; } - break; case 'migrations': $channels[] = 'console'; diff --git a/src/Appwrite/Migration/Migration.php b/src/Appwrite/Migration/Migration.php index 0b1e462d8e..81ea1ef263 100644 --- a/src/Appwrite/Migration/Migration.php +++ b/src/Appwrite/Migration/Migration.php @@ -85,6 +85,8 @@ abstract class Migration '1.6.2' => 'V21', '1.7.0-RC1' => 'V22', '1.7.0' => 'V22', + '1.7.1' => 'V22', + '1.7.2' => 'V22', ]; /** diff --git a/src/Appwrite/Migration/Version/V22.php b/src/Appwrite/Migration/Version/V22.php index e485fb5bd0..50d5bdbb85 100644 --- a/src/Appwrite/Migration/Version/V22.php +++ b/src/Appwrite/Migration/Version/V22.php @@ -348,9 +348,21 @@ class V22 extends Migration if ($deploymentResourceType === 'function') { $project = $this->dbForProject->getDocument('projects', $document->getAttribute('projectId')); + + if ($project->isEmpty()) { + Console::warning("Project \"{$document->getAttribute('projectId')}\" not found for rule \"{$document->getId()}\""); + break; + } + $dbForOwnerProject = ($this->getProjectDB)($project); $function = $dbForOwnerProject->getDocument('functions', $resourceId); - $deploymentId = $function->getAttribute('deployment', $function->getAttribute('deploymentId', $document->getAttribute('deploymentId'))); + + if ($function->isEmpty()) { + Console::warning("Function \"{$resourceId}\" not found for rule \"{$document->getId()}\""); + break; + } + + $deploymentId = $function->getAttribute('deployment', $function->getAttribute('deploymentId', $document->getAttribute('deploymentId', ''))); $deploymentInternalId = $function->getAttribute('deploymentInternalId', $document->getAttribute('deploymentInternalId', '')); $document @@ -386,12 +398,19 @@ class V22 extends Migration 5. Fill latestDeploymentCreatedAt with latestDeployment's "$createdAt" 6. Fill latestDeploymentStatus with latestDeployment's build's "status" */ - if ($document->getAttribute('deployment')) { - $document->setAttribute('deploymentId', $document->getAttribute('deployment', $document->getAttribute('deploymentId', ''))); + if (empty($document->getAttribute('deployment'))) { + break; } + $document->setAttribute('deploymentId', $document->getAttribute('deployment', $document->getAttribute('deploymentId', ''))); $deploymentId = $document->getAttribute('deploymentId'); $deployment = $this->dbForProject->getDocument('deployments', $deploymentId); + + if ($deployment->isEmpty()) { + Console::warning("Deployment \"{$deploymentId}\" not found for function \"{$document->getId()}\""); + break; + } + $document->setAttribute('deploymentCreatedAt', $deployment->getCreatedAt()); $latestDeployment = $this->dbForProject->findOne('deployments', [ @@ -400,8 +419,18 @@ class V22 extends Migration Query::equal('resourceType', ['functions']), ]); + if ($latestDeployment->isEmpty()) { + Console::warning("Latest deployment not found for function \"{$document->getId()}\""); + break; + } + $latestBuild = $this->dbForProject->getDocument('builds', $latestDeployment->getAttribute('buildId', '')); + if ($latestBuild->isEmpty()) { + Console::warning("Build \"{$latestDeployment->getAttribute('buildId')}\" not found for deployment \"{$latestDeployment->getId()}\""); + break; + } + $document ->setAttribute('latestDeploymentId', $latestDeployment->getId()) ->setAttribute('latestDeploymentInternalId', $latestDeployment->getInternalId()) diff --git a/src/Appwrite/Platform/Modules/Compute/Base.php b/src/Appwrite/Platform/Modules/Compute/Base.php index 542b29bcd5..47529a142b 100644 --- a/src/Appwrite/Platform/Modules/Compute/Base.php +++ b/src/Appwrite/Platform/Modules/Compute/Base.php @@ -90,7 +90,6 @@ class Base extends Action 'providerCommitUrl' => $commitDetails['commitUrl'] ?? '', 'providerBranch' => $providerBranch, 'providerRootDirectory' => $function->getAttribute('providerRootDirectory', ''), - 'search' => implode(' ', [$deploymentId, $entrypoint]), 'activate' => $activate, ])); @@ -190,7 +189,6 @@ class Base extends Action 'providerCommitUrl' => $commitDetails['commitUrl'] ?? '', 'providerBranch' => $providerBranch, 'providerRootDirectory' => $site->getAttribute('providerRootDirectory', ''), - 'search' => implode(' ', [$deploymentId]), 'activate' => $activate, ])); diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php index bc0f1b2dab..fd8da657eb 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php @@ -2,8 +2,12 @@ namespace Appwrite\Platform\Modules\Functions\Http\Functions; +use Appwrite\Event\Build; use Appwrite\Event\Event; +use Appwrite\Event\Func; +use Appwrite\Event\Realtime; use Appwrite\Event\Validator\FunctionEvent; +use Appwrite\Event\Webhook; use Appwrite\Extend\Exception; use Appwrite\Platform\Modules\Compute\Base; use Appwrite\Platform\Modules\Compute\Validator\Specification; @@ -13,6 +17,7 @@ use Appwrite\SDK\Response as SDKResponse; use Appwrite\Task\Validator\Cron; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model\Rule; use Utopia\Abuse\Abuse; use Utopia\Config\Config; use Utopia\Database\Database; @@ -25,12 +30,14 @@ use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Roles; use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; +use Utopia\Request; use Utopia\System\System; use Utopia\Validator\ArrayList; use Utopia\Validator\Boolean; use Utopia\Validator\Range; use Utopia\Validator\Text; use Utopia\Validator\WhiteList; +use Utopia\VCS\Adapter\Git\GitHub; class Create extends Base { @@ -91,12 +98,22 @@ class Create extends Base System::getEnv('_APP_COMPUTE_CPUS', 0), System::getEnv('_APP_COMPUTE_MEMORY', 0) ), 'Runtime specification for the function and builds.', true, ['plan']) + ->param('templateRepository', '', new Text(128, 0), 'Repository name of the template.', true, deprecated: true) + ->param('templateOwner', '', new Text(128, 0), 'The name of the owner of the template.', true, deprecated: true) + ->param('templateRootDirectory', '', new Text(128, 0), 'Path to function code in the template repo.', true, deprecated: true) + ->param('templateVersion', '', new Text(128, 0), 'Version (tag) for the repo linked to the function template.', true, deprecated: true) ->inject('response') ->inject('dbForProject') ->inject('timelimit') ->inject('project') ->inject('queueForEvents') + ->inject('queueForBuilds') + ->inject('queueForRealtime') + ->inject('queueForWebhooks') + ->inject('queueForFunctions') ->inject('dbForPlatform') + ->inject('request') + ->inject('gitHub') ->callback([$this, 'action']); } @@ -119,12 +136,22 @@ class Create extends Base bool $providerSilentMode, string $providerRootDirectory, string $specification, + string $templateRepository, + string $templateOwner, + string $templateRootDirectory, + string $templateVersion, Response $response, Database $dbForProject, callable $timelimit, Document $project, Event $queueForEvents, - Database $dbForPlatform + Build $queueForBuilds, + Realtime $queueForRealtime, + Webhook $queueForWebhooks, + Func $queueForFunctions, + Database $dbForPlatform, + Request $request, + GitHub $github ) { // Temporary abuse check @@ -251,6 +278,136 @@ class Create extends Base $function = $dbForProject->updateDocument('functions', $function->getId(), $function); + // Backwards compatibility with 1.6 behaviour + $requestFormat = $request->getHeader('x-appwrite-response-format', System::getEnv('_APP_SYSTEM_RESPONSE_FORMAT', '')); + if ($requestFormat && version_compare($requestFormat, '1.7.0', '<')) { + // build from template + $template = new Document([]); + if ( + !empty($templateRepository) + && !empty($templateOwner) + && !empty($templateRootDirectory) + && !empty($templateVersion) + ) { + $template->setAttribute('repositoryName', $templateRepository) + ->setAttribute('ownerName', $templateOwner) + ->setAttribute('rootDirectory', $templateRootDirectory) + ->setAttribute('version', $templateVersion); + } + + if (!empty($providerRepositoryId)) { + // Deploy VCS + $template = new Document(); + + $installation = $dbForPlatform->getDocument('installations', $function->getAttribute('installationId')); + $deployment = $this->redeployVcsFunction( + request: $request, + function: $function, + project: $project, + installation: $installation, + dbForProject: $dbForProject, + queueForBuilds: $queueForBuilds, + template: $template, + github: $github, + activate: true, + reference: $providerBranch, + referenceType: 'branch' + ); + + $function = $function + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('functions', $function->getId(), $function); + } elseif (!$template->isEmpty()) { + // Deploy non-VCS from template + $deploymentId = ID::unique(); + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceId' => $function->getId(), + 'resourceInternalId' => $function->getInternalId(), + 'resourceType' => 'functions', + 'entrypoint' => $function->getAttribute('entrypoint', ''), + 'buildCommands' => $function->getAttribute('commands', ''), + 'type' => 'manual', + 'activate' => true, + ])); + + $function = $function + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('functions', $function->getId(), $function); + + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($function) + ->setDeployment($deployment) + ->setTemplate($template); + } + + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + if (!empty($functionsDomain)) { + $routeSubdomain = ID::unique(); + $domain = "{$routeSubdomain}.{$functionsDomain}"; + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain) : ID::unique(); + + $rule = Authorization::skip( + fn () => $dbForPlatform->createDocument('rules', new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain, + 'status' => 'verified', + 'type' => 'deployment', + 'trigger' => 'manual', + 'deploymentId' => !isset($deployment) || $deployment->isEmpty() ? '' : $deployment->getId(), + 'deploymentInternalId' => !isset($deployment) || $deployment->isEmpty() ? '' : $deployment->getInternalId(), + 'deploymentResourceType' => 'function', + 'deploymentResourceId' => $function->getId(), + 'deploymentResourceInternalId' => $function->getInternalId(), + 'deploymentVcsProviderBranch' => '', + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain]), + 'owner' => 'Appwrite', + 'region' => $project->getAttribute('region') + ])) + ); + + $ruleModel = new Rule(); + $ruleCreate = + $queueForEvents + ->setProject($project) + ->setEvent('rules.[ruleId].create') + ->setParam('ruleId', $rule->getId()) + ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))); + + /** Trigger Webhook */ + $queueForWebhooks + ->from($ruleCreate) + ->trigger(); + + /** Trigger Functions */ + $queueForFunctions + ->from($ruleCreate) + ->trigger(); + + /** Trigger Realtime Events */ + $queueForRealtime + ->from($ruleCreate) + ->setSubscribers(['console', $project->getId()]) + ->trigger(); + } + } + $queueForEvents->setParam('functionId', $function->getId()); $response diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php index 257d596779..cbbe6ee9c3 100644 --- a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php @@ -738,11 +738,12 @@ class Builds extends Action $insideSeparation = true; } } else { - $logs = ''; $separator = \strpos($logs, '{APPWRITE_DETECTION_SEPARATOR_END}'); if ($separator !== false) { $logs = \substr($logs, $separator + strlen('{APPWRITE_DETECTION_SEPARATOR_END}')); $insideSeparation = false; + } else { + $logs = ''; } } diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php index 218ae4ce9b..8ae48ab345 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php @@ -173,7 +173,8 @@ class Create extends Action if ($rule->getAttribute('status', '') === 'verifying') { $queueForCertificates ->setDomain(new Document([ - 'domain' => $rule->getAttribute('domain') + 'domain' => $rule->getAttribute('domain'), + 'domainType' => 'api', ])) ->trigger(); } diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php index 4c98d3f0a2..15d58c7b29 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php @@ -191,7 +191,8 @@ class Create extends Action if ($rule->getAttribute('status', '') === 'verifying') { $queueForCertificates ->setDomain(new Document([ - 'domain' => $rule->getAttribute('domain') + 'domain' => $rule->getAttribute('domain'), + 'domainType' => 'function', ])) ->trigger(); } diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php index 37db1512d4..0ff41e5ac2 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php @@ -179,7 +179,8 @@ class Create extends Action if ($rule->getAttribute('status', '') === 'verifying') { $queueForCertificates ->setDomain(new Document([ - 'domain' => $rule->getAttribute('domain') + 'domain' => $rule->getAttribute('domain'), + 'domainType' => 'redirect', ])) ->trigger(); } diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php index 1d39df2b24..f5f6628d68 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php @@ -191,7 +191,8 @@ class Create extends Action if ($rule->getAttribute('status', '') === 'verifying') { $queueForCertificates ->setDomain(new Document([ - 'domain' => $rule->getAttribute('domain') + 'domain' => $rule->getAttribute('domain'), + 'domainType' => 'site', ])) ->trigger(); } diff --git a/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php index 4b3b421696..fb96849ed2 100644 --- a/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php +++ b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php @@ -48,7 +48,7 @@ class Create extends Action group: 'files', name: 'createFileToken', description: <<<EOT - Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter. + Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter. EOT, auth: [AuthType::ADMIN, AuthType::KEY], responses: [ diff --git a/src/Appwrite/Platform/Tasks/Doctor.php b/src/Appwrite/Platform/Tasks/Doctor.php index 790f1a7290..b543555477 100644 --- a/src/Appwrite/Platform/Tasks/Doctor.php +++ b/src/Appwrite/Platform/Tasks/Doctor.php @@ -3,14 +3,19 @@ namespace Appwrite\Platform\Tasks; use Appwrite\ClamAV\Network; -use Appwrite\PubSub\Adapter; +use Appwrite\PubSub\Adapter\Pool as PubSubPool; +use PHPMailer\PHPMailer\PHPMailer; use Utopia\App; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Domains\Domain; use Utopia\DSN\DSN; use Utopia\Logger\Logger; use Utopia\Platform\Action; +use Utopia\Pools\Group; +use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Registry\Registry; use Utopia\Storage\Device\Local; use Utopia\Storage\Storage; @@ -89,9 +94,9 @@ class Doctor extends Action Console::log('🟢 Abuse protection is enabled'); } - $authWhitelistRoot = System::getEnv('_APP_CONSOLE_WHITELIST_ROOT', null); - $authWhitelistEmails = System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS', null); - $authWhitelistIPs = System::getEnv('_APP_CONSOLE_WHITELIST_IPS', null); + $authWhitelistRoot = System::getEnv('_APP_CONSOLE_WHITELIST_ROOT'); + $authWhitelistEmails = System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS'); + $authWhitelistIPs = System::getEnv('_APP_CONSOLE_WHITELIST_IPS'); if ( empty($authWhitelistRoot) @@ -127,19 +132,16 @@ class Doctor extends Action } else { Console::log('🟢 Logging adapter is enabled (' . $providerName . ')'); } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::log('🔴 Logging adapter is misconfigured'); } \usleep(200 * 1000); // Sleep for 0.2 seconds - try { - Console::log("\n" . '[Connectivity]'); - } catch (\Throwable $th) { - //throw $th; - } + Console::log("\n" . '[Connectivity]'); - $pools = $register->get('pools'); /** @var \Utopia\Pools\Group $pools */ + /** @var Group $pools */ + $pools = $register->get('pools'); $configs = [ 'Console.DB' => Config::getParam('pools-console'), @@ -149,20 +151,22 @@ class Doctor extends Action foreach ($configs as $key => $config) { foreach ($config as $database) { try { - $adapter = $pools->get($database)->pop()->getResource(); + $adapter = new DatabasePool($pools->get($database)); if ($adapter->ping()) { Console::success('🟢 ' . str_pad("{$key}({$database})", 50, '.') . 'connected'); } else { Console::error('🔴 ' . str_pad("{$key}({$database})", 47, '.') . 'disconnected'); } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('🔴 ' . str_pad("{$key}.({$database})", 47, '.') . 'disconnected'); } } } - $pools = $register->get('pools'); /** @var \Utopia\Pools\Group $pools */ + /** @var Group $pools */ + $pools = $register->get('pools'); + $configs = [ 'Cache' => Config::getParam('pools-cache'), 'Queue' => Config::getParam('pools-queue'), @@ -172,15 +176,18 @@ class Doctor extends Action foreach ($configs as $key => $config) { foreach ($config as $pool) { try { - /** @var Adapter $adapter */ - $adapter = $pools->get($pool)->pop()->getResource(); + $adapter = match($key) { + 'Cache' => new CachePool($pools->get($pool)), + 'Queue' => new BrokerPool($pools->get($pool)), + 'PubSub' => new PubSubPool($pools->get($pool)), + }; if ($adapter->ping()) { Console::success('🟢 ' . str_pad("{$key}({$pool})", 50, '.') . 'connected'); } else { Console::error('🔴 ' . str_pad("{$key}({$pool})", 47, '.') . 'disconnected'); } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('🔴 ' . str_pad("{$key}({$pool})", 47, '.') . 'disconnected'); } } @@ -198,13 +205,14 @@ class Doctor extends Action } else { Console::error('🔴 ' . str_pad("Antivirus", 47, '.') . 'disconnected'); } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('🔴 ' . str_pad("Antivirus", 47, '.') . 'disconnected'); } } try { - $mail = $register->get('smtp'); /* @var $mail \PHPMailer\PHPMailer\PHPMailer */ + /* @var PHPMailer $mail */ + $mail = $register->get('smtp'); $mail->addAddress('demo@example.com', 'Example.com'); $mail->Subject = 'Test SMTP Connection'; @@ -213,7 +221,7 @@ class Doctor extends Action $mail->send(); Console::success('🟢 ' . str_pad("SMTP", 50, '.') . 'connected'); - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('🔴 ' . str_pad("SMTP", 47, '.') . 'disconnected'); } @@ -287,7 +295,7 @@ class Doctor extends Action Console::error('Failed to check for a newer version' . "\n"); } } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('Failed to check for a newer version' . "\n"); } } diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index cf917ae96b..a0009fd59f 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -312,7 +312,5 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND } } } - - Console::exit(); } } diff --git a/src/Appwrite/Platform/Tasks/ScheduleBase.php b/src/Appwrite/Platform/Tasks/ScheduleBase.php index 3cf89f9f44..286ffe45cb 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleBase.php +++ b/src/Appwrite/Platform/Tasks/ScheduleBase.php @@ -12,6 +12,7 @@ use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\Platform\Action; use Utopia\Pools\Group; +use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\System\System; use Utopia\Telemetry\Adapter as Telemetry; use Utopia\Telemetry\Gauge; @@ -24,6 +25,8 @@ abstract class ScheduleBase extends Action protected array $schedules = []; + protected BrokerPool $publisher; + private ?Histogram $collectSchedulesTelemetryDuration = null; private ?Gauge $collectSchedulesTelemetryCount = null; private ?Gauge $scheduleTelemetryCount = null; @@ -68,6 +71,7 @@ abstract class ScheduleBase extends Action Console::title(\ucfirst(static::getSupportedResource()) . ' scheduler V1'); Console::success(APP_NAME . ' ' . \ucfirst(static::getSupportedResource()) . ' scheduler v1 has started'); + $this->publisher = new BrokerPool($pools->get('publisher')); $this->scheduleTelemetryCount = $telemetry->createGauge('task.schedule.count'); $this->collectSchedulesTelemetryDuration = $telemetry->createHistogram('task.schedule.collect_schedules.duration', 's'); $this->collectSchedulesTelemetryCount = $telemetry->createGauge('task.schedule.collect_schedules.count'); @@ -119,8 +123,6 @@ abstract class ScheduleBase extends Action $schedule->getAttribute('resourceId') ); - $pools->reclaim(); - return [ '$internalId' => $schedule->getInternalId(), '$id' => $schedule->getId(), diff --git a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php index 2a8fd99b7f..6bf2f93afe 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php @@ -29,9 +29,7 @@ class ScheduleExecutions extends ScheduleBase protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void { - $queue = $pools->get('publisher')->pop(); - $connection = $queue->getResource(); - $queueForFunctions = new Func($connection); + $queueForFunctions = new Func($this->publisher); $intervalEnd = (new \DateTime())->modify('+' . self::ENQUEUE_TIMER . ' seconds'); foreach ($this->schedules as $schedule) { @@ -85,7 +83,5 @@ class ScheduleExecutions extends ScheduleBase unset($this->schedules[$schedule['$internalId']]); } - - $queue->reclaim(); } } diff --git a/src/Appwrite/Platform/Tasks/ScheduleFunctions.php b/src/Appwrite/Platform/Tasks/ScheduleFunctions.php index 6788748f3d..19e068107a 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleFunctions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleFunctions.php @@ -79,9 +79,6 @@ class ScheduleFunctions extends ScheduleBase \go(function () use ($delay, $schedules, $pools, $dbForPlatform) { \sleep($delay); // in seconds - $queue = $pools->get('publisher')->pop(); - $connection = $queue->getResource(); - foreach ($schedules as $delayConfig) { $scheduleKey = $delayConfig['key']; // Ensure schedule was not deleted @@ -93,7 +90,7 @@ class ScheduleFunctions extends ScheduleBase $this->updateProjectAccess($schedule['project'], $dbForPlatform); - $queueForFunctions = new Func($connection); + $queueForFunctions = new Func($this->publisher); $queueForFunctions ->setType('schedule') @@ -105,8 +102,6 @@ class ScheduleFunctions extends ScheduleBase $this->recordEnqueueDelay($delayConfig['nextDate']); } - - $queue->reclaim(); }); } diff --git a/src/Appwrite/Platform/Tasks/ScheduleMessages.php b/src/Appwrite/Platform/Tasks/ScheduleMessages.php index a15df6ed5b..5e65f7a8a6 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleMessages.php +++ b/src/Appwrite/Platform/Tasks/ScheduleMessages.php @@ -41,9 +41,7 @@ class ScheduleMessages extends ScheduleBase } \go(function () use ($schedule, $scheduledAt, $pools, $dbForPlatform) { - $queue = $pools->get('publisher')->pop(); - $connection = $queue->getResource(); - $queueForMessaging = new Messaging($connection); + $queueForMessaging = new Messaging($this->publisher); $this->updateProjectAccess($schedule['project'], $dbForPlatform); @@ -58,7 +56,6 @@ class ScheduleMessages extends ScheduleBase $schedule['$id'], ); - $queue->reclaim(); $this->recordEnqueueDelay($scheduledAt); unset($this->schedules[$schedule['$internalId']]); }); diff --git a/src/Appwrite/Platform/Tasks/Specs.php b/src/Appwrite/Platform/Tasks/Specs.php index 76c9db079a..4876e8d96c 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -101,6 +101,12 @@ class Specs extends Action 'name' => 'X-Appwrite-Session', 'description' => 'The user session to authenticate with', 'in' => 'header', + ], + 'DevKey' => [ + 'type' => 'apiKey', + 'name' => 'X-Appwrite-Dev-Key', + 'description' => 'Your secret dev API key', + 'in' => 'header', ] ], APP_PLATFORM_SERVER => [ diff --git a/src/Appwrite/Platform/Workers/Certificates.php b/src/Appwrite/Platform/Workers/Certificates.php index afa288849a..4e83497cdd 100644 --- a/src/Appwrite/Platform/Workers/Certificates.php +++ b/src/Appwrite/Platform/Workers/Certificates.php @@ -55,7 +55,7 @@ class Certificates extends Action ->inject('log') ->inject('certificates') ->inject('plan') - ->callback([$this, 'action']); + ->callback($this->action(...)); } /** @@ -96,11 +96,14 @@ class Certificates extends Action $log->addTag('domain', $domain->get()); - $this->execute($domain, $dbForPlatform, $queueForMails, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $log, $certificates, $skipRenewCheck, $plan); + $domainType = $payload['domainType'] ?? null; + + $this->execute($domain, $domainType, $dbForPlatform, $queueForMails, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $log, $certificates, $skipRenewCheck, $plan); } /** * @param Domain $domain + * @param ?string $domainType * @param Database $dbForPlatform * @param Mail $queueForMails * @param Event $queueForEvents @@ -115,6 +118,7 @@ class Certificates extends Action */ private function execute( Domain $domain, + ?string $domainType, Database $dbForPlatform, Mail $queueForMails, Event $queueForEvents, @@ -174,7 +178,7 @@ class Certificates extends Action $this->validateDomain($domain, $isMainDomain, $log); // If certificate exists already, double-check expiry date. Skip if job is forced - if (!$certificates->isRenewRequired($domain->get(), $log)) { + if (!$certificates->isRenewRequired($domain->get(), $domainType, $log)) { Console::info("Skipping, renew isn't required"); return; } @@ -182,7 +186,7 @@ class Certificates extends Action // Prepare unique cert name. Using this helps prevent miss-match in configuration when renewing certificates. $certName = ID::unique(); - $renewDate = $certificates->issueCertificate($certName, $domain->get()); + $renewDate = $certificates->issueCertificate($certName, $domain->get(), $domainType); // Command succeeded, store all data into document $certificate->setAttribute('logs', 'Certificate successfully generated.'); diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index 12143b4106..43bc55583d 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -63,7 +63,7 @@ class Deletes extends Action ->inject('executionRetention') ->inject('auditRetention') ->inject('log') - ->callback([$this, 'action']); + ->callback($this->action(...)); } /** diff --git a/src/Appwrite/Platform/Workers/StatsUsage.php b/src/Appwrite/Platform/Workers/StatsUsage.php index 07131593e2..25c80fabdc 100644 --- a/src/Appwrite/Platform/Workers/StatsUsage.php +++ b/src/Appwrite/Platform/Workers/StatsUsage.php @@ -357,7 +357,7 @@ class StatsUsage extends Action break; } } catch (Throwable $e) { - console::error("[reducer] " . " {DateTime::now()} " . " {$project->getInternalId()} " . " {$e->getMessage()}"); + Console::error("[reducer] " . " {DateTime::now()} " . " {$project->getInternalId()} " . " {$e->getMessage()}"); } } @@ -376,7 +376,7 @@ class StatsUsage extends Action continue; } - console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys); + Console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys); try { foreach ($stats['keys'] ?? [] as $key => $value) { @@ -413,7 +413,7 @@ class StatsUsage extends Action } } } catch (Exception $e) { - console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); + Console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); } } @@ -437,7 +437,7 @@ class StatsUsage extends Action } - protected function prepareForLogsDB(Document $project, Document $stat) + protected function prepareForLogsDB(Document $project, Document $stat): void { if (System::getEnv('_APP_STATS_USAGE_DUAL_WRITING', 'disabled') === 'disabled') { return; @@ -462,8 +462,7 @@ class StatsUsage extends Action return; } - $dbForLogs = call_user_func($this->getLogsDB); - $dbForLogs + $dbForLogs = ($this->getLogsDB)() ->setTenant(null) ->setTenantPerDocument(true); @@ -478,6 +477,5 @@ class StatsUsage extends Action } catch (Throwable $th) { Console::error($th->getMessage()); } - $this->register->get('pools')->get('logs')->reclaim(); } } diff --git a/src/Appwrite/Platform/Workers/StatsUsageDump.php b/src/Appwrite/Platform/Workers/StatsUsageDump.php index b9d486e0d8..77ec3f13e6 100644 --- a/src/Appwrite/Platform/Workers/StatsUsageDump.php +++ b/src/Appwrite/Platform/Workers/StatsUsageDump.php @@ -70,9 +70,9 @@ class StatsUsageDump extends Action ]; /** - * @var callable + * @var callable(Document): Database */ - protected mixed $getLogsDB; + protected $getLogsDB; protected array $periods = [ '1h' => 'Y-m-d H:00', @@ -126,10 +126,10 @@ class StatsUsageDump extends Action continue; } - console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys); + Console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys); try { - /** @var \Utopia\Database\Database $dbForProject */ + /** @var Database $dbForProject */ $dbForProject = $getProjectDB($project); foreach ($stats['keys'] ?? [] as $key => $value) { if ($value == 0) { @@ -169,7 +169,7 @@ class StatsUsageDump extends Action } } } catch (\Exception $e) { - console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); + Console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); } } } @@ -190,8 +190,7 @@ class StatsUsageDump extends Action } } - /** @var \Utopia\Database\Database $dbForLogs*/ - $dbForLogs = call_user_func($this->getLogsDB, $project); + $dbForLogs = ($this->getLogsDB)($project); try { $dbForLogs->createOrUpdateDocumentsWithIncrease( @@ -203,7 +202,5 @@ class StatsUsageDump extends Action } catch (\Throwable $th) { Console::error($th->getMessage()); } - - $this->register->get('pools')->get('logs')->reclaim(); } } diff --git a/src/Appwrite/PubSub/Adapter/Pool.php b/src/Appwrite/PubSub/Adapter/Pool.php new file mode 100644 index 0000000000..a498118dae --- /dev/null +++ b/src/Appwrite/PubSub/Adapter/Pool.php @@ -0,0 +1,46 @@ +<?php + +namespace Appwrite\PubSub\Adapter; + +use Appwrite\PubSub\Adapter; +use Utopia\Database\Exception as DatabaseException; +use Utopia\Pools\Pool as UtopiaPool; + +class Pool implements Adapter +{ + public function __construct(private UtopiaPool $pool) + { + } + + public function ping($message = null): bool + { + return $this->delegate(__FUNCTION__, \func_get_args()); + } + + public function subscribe($channels, $callback): void + { + $this->delegate(__FUNCTION__, \func_get_args()); + } + + public function publish($channel, $message): void + { + $this->delegate(__FUNCTION__, \func_get_args()); + } + + /** + * Forward method calls to the internal adapter instance via the pool. + * + * Required because __call() can't be used to implement abstract methods. + * + * @param string $method + * @param array<mixed> $args + * @return mixed + * @throws DatabaseException + */ + public function delegate(string $method, array $args): mixed + { + return $this->pool->use(function (Adapter $adapter) use ($method, $args) { + return $adapter->{$method}(...$args); + }); + } +} diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index f486a61ce5..19742ee3ee 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -309,6 +309,10 @@ class OpenAPI3 extends Format $bodyRequired = []; foreach ($route->getParams() as $name => $param) { // Set params + if (($param['deprecated'] ?? false) === true) { + continue; + } + /** * @var \Utopia\Validator $validator */ diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 948798ef0b..bac483ffee 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -314,6 +314,10 @@ class Swagger2 extends Format ); foreach ($parameters as $name => $param) { // Set params + if (($param['deprecated'] ?? false) === true) { + continue; + } + /** @var Validator $validator */ $validator = (\is_callable($param['validator'])) ? ($param['validator'])(...$this->app->getResources($param['injections'])) diff --git a/src/Appwrite/Utopia/Request/Filters/V19.php b/src/Appwrite/Utopia/Request/Filters/V19.php index 27b854b46f..8680cd642c 100644 --- a/src/Appwrite/Utopia/Request/Filters/V19.php +++ b/src/Appwrite/Utopia/Request/Filters/V19.php @@ -10,6 +10,16 @@ class V19 extends Filter public function parse(array $content, string $model): array { switch ($model) { + case 'functions.list': + $content = $this->convertQueryAttribute($content, 'deployment', 'deploymentId'); + break; + case 'functions.listDeployments': + $content = $this->convertQueryAttribute($content, 'size', 'deploymentSize'); + break; + case 'proxy.listRules': + $content = $this->convertQueryAttribute($content, 'resourceType', 'deploymentResourceType'); + $content = $this->convertQueryAttribute($content, 'resourceId', 'deploymentResourceId'); + break; case 'functions.create': unset($content['templateRepository']); unset($content['templateOwner']); @@ -28,4 +38,19 @@ class V19 extends Filter } return $content; } + + public function convertQueryAttribute(array $content, string $old, string $new) + { + if (isset($content['queries']) && is_array($content['queries'])) { + foreach ($content['queries'] as $index => $query) { + $query = \json_decode($query, true); + if (($query['attribute'] ?? '') === $old) { + $query['attribute'] = $new; + } + $content['queries'][$index] = \json_encode($query); + } + } + + return $content; + } } diff --git a/tests/e2e/Services/Databases/DatabasesBase.php b/tests/e2e/Services/Databases/DatabasesBase.php index 2b60dee856..7c0060ecaa 100644 --- a/tests/e2e/Services/Databases/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DatabasesBase.php @@ -12,7 +12,6 @@ use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; use Utopia\Database\Query; use Utopia\Database\Validator\Datetime as DatetimeValidator; -use Utopia\Validator\JSON; trait DatabasesBase { @@ -1683,6 +1682,308 @@ trait DatabasesBase return $data; } + /** + * @depends testCreateIndexes + */ + public function testUpsertDocument(array $data): void + { + $databaseId = $data['databaseId']; + $documentId = ID::unique(); + $document = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'title' => 'Thor: Ragnarok', + 'releaseYear' => 2000 + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + ]); + + $this->assertEquals(200, $document['headers']['status-code']); + $this->assertCount(3, $document['body']['$permissions']); + $document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals('Thor: Ragnarok', $document['body']['title']); + + $document = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'title' => 'Thor: Love and Thunder', + 'releaseYear' => 2000 + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + ]); + + $this->assertEquals(200, $document['headers']['status-code']); + $this->assertEquals('Thor: Love and Thunder', $document['body']['title']); + + $document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals('Thor: Love and Thunder', $document['body']['title']); + + // removing permission to read and delete + $document = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'title' => 'Thor: Love and Thunder', + 'releaseYear' => 2000 + ], + 'permissions' => [ + Permission::update(Role::users()) + ], + ]); + // shouldn't be able to read as no read permission + $document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + switch ($this->getSide()) { + case 'client': + $this->assertEquals(404, $document['headers']['status-code']); + break; + case 'server': + $this->assertEquals(200, $document['headers']['status-code']); + break; + } + // shouldn't be able to delete as no delete permission + $document = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + // simulating for the client + // the document should not be allowed to be deleted as needed downward + if ($this->getSide() === 'client') { + $this->assertEquals(401, $document['headers']['status-code']); + } + // giving the delete permission + $document = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'title' => 'Thor: Love and Thunder', + 'releaseYear' => 2000 + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()) + ], + ]); + $document = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + $this->assertEquals(204, $document['headers']['status-code']); + + // relationship behaviour + $person = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => 'person-upsert', + 'name' => 'person', + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + Permission::create(Role::users()), + ], + 'documentSecurity' => true, + ]); + + $this->assertEquals(201, $person['headers']['status-code']); + + $library = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => 'library-upsert', + 'name' => 'library', + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::create(Role::users()), + Permission::delete(Role::users()), + ], + 'documentSecurity' => true, + ]); + + $this->assertEquals(201, $library['headers']['status-code']); + + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'fullName', + 'size' => 255, + 'required' => false, + ]); + + sleep(1); // Wait for worker + + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => 'library-upsert', + 'type' => Database::RELATION_ONE_TO_ONE, + 'key' => 'library', + 'twoWay' => true, + 'onDelete' => Database::RELATION_MUTATE_CASCADE, + ]); + + sleep(1); // Wait for worker + + $libraryName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $library['body']['$id'] . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'libraryName', + 'size' => 255, + 'required' => true, + ]); + + sleep(1); // Wait for worker + + $this->assertEquals(202, $libraryName['headers']['status-code']); + + // upserting values + $documentId = ID::unique(); + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents/'.$documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'library' => [ + '$id' => 'library1', + '$permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + 'libraryName' => 'Library 1', + ], + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ] + ]); + + $this->assertEquals('Library 1', $person1['body']['library']['libraryName']); + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['fullName', 'library.*'])->toString(), + Query::equal('library', ['library1'])->toString(), + ], + ]); + + $this->assertEquals(1, $documents['body']['total']); + $this->assertEquals('Library 1', $documents['body']['documents'][0]['library']['libraryName']); + + + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents/'.$documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'library' => [ + '$id' => 'library1', + '$permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + 'libraryName' => 'Library 2', + ], + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ] + ]); + + // data should get updated + $this->assertEquals('Library 2', $person1['body']['library']['libraryName']); + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['fullName', 'library.*'])->toString(), + Query::equal('library', ['library1'])->toString(), + ], + ]); + + $this->assertEquals(1, $documents['body']['total']); + $this->assertEquals('Library 2', $documents['body']['documents'][0]['library']['libraryName']); + + + // data should get added + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents/'.ID::unique(), array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'library' => [ + '$id' => 'library2', + '$permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + 'libraryName' => 'Library 2', + ], + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ] + ]); + + $this->assertEquals('Library 2', $person1['body']['library']['libraryName']); + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['fullName', 'library.*'])->toString() + ], + ]); + $this->assertEquals(2, $documents['body']['total']); + } + /** * @depends testCreateDocument */ diff --git a/tests/e2e/Services/Databases/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/DatabasesCustomServerTest.php index 829960b54f..67f7a07a9b 100644 --- a/tests/e2e/Services/Databases/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/DatabasesCustomServerTest.php @@ -695,7 +695,7 @@ class DatabasesCustomServerTest extends Scope 'key' => 'lastName', 'size' => 256, 'required' => true, - 'encrypt' => true, + 'encrypt' => true ]); diff --git a/tests/resources/docker/docker-compose.yml b/tests/resources/docker/docker-compose.yml index 4bbca3e9c0..039ffb731a 100644 --- a/tests/resources/docker/docker-compose.yml +++ b/tests/resources/docker/docker-compose.yml @@ -35,7 +35,7 @@ services: - VERSION=dev restart: unless-stopped ports: - - 9501:80 + - "9501:80" networks: - appwrite labels: @@ -52,15 +52,12 @@ services: - ./phpunit.xml:/usr/src/code/phpunit.xml - ./tests:/usr/src/code/tests - ./app:/usr/src/code/app - # - ./vendor:/usr/src/code/vendor - ./docs:/usr/src/code/docs - ./public:/usr/src/code/public - ./src:/usr/src/code/src - - ./debug:/tmp depends_on: - mariadb - redis - # - clamav environment: - _APP_COMPRESSION_MIN_SIZE_BYTES - _APP_ENV @@ -353,33 +350,6 @@ services: volumes: - appwrite-redis:/data:rw - # clamav: - # image: appwrite/clamav:1.2.0 - # container_name: appwrite-clamav - # restart: unless-stopped - # networks: - # - appwrite - # volumes: - # - appwrite-uploads:/storage/uploads - - - # redis-commander: - # image: rediscommander/redis-commander:latest - # restart: unless-stopped - # networks: - # - appwrite - # environment: - # - REDIS_HOSTS=redis - # ports: - # - "8081:8081" - - # webgrind: - # image: 'jokkedk/webgrind:latest' - # volumes: - # - './debug:/tmp' - # ports: - # - '3001:80' - networks: gateway: appwrite: