Merge pull request #11222 from appwrite/release-array-param-enums

This commit is contained in:
Jake Barnby 2026-02-02 13:08:51 +00:00 committed by GitHub
commit a25977c6b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
529 changed files with 15772 additions and 1226 deletions

View file

@ -11,7 +11,7 @@ return [
[
'key' => 'web',
'name' => 'Web',
'version' => '21.5.0',
'version' => '22.0.0',
'url' => 'https://github.com/appwrite/sdk-for-web',
'package' => 'https://www.npmjs.com/package/appwrite',
'enabled' => true,
@ -60,7 +60,7 @@ return [
[
'key' => 'flutter',
'name' => 'Flutter',
'version' => '20.3.3',
'version' => '21.0.0',
'url' => 'https://github.com/appwrite/sdk-for-flutter',
'package' => 'https://pub.dev/packages/appwrite',
'enabled' => true,
@ -79,7 +79,7 @@ return [
[
'key' => 'apple',
'name' => 'Apple',
'version' => '13.5.0',
'version' => '14.0.0',
'url' => 'https://github.com/appwrite/sdk-for-apple',
'package' => 'https://github.com/appwrite/sdk-for-apple',
'enabled' => true,
@ -117,7 +117,7 @@ return [
'key' => 'android',
'name' => 'Android',
'namespace' => 'io.appwrite',
'version' => '11.4.0',
'version' => '12.0.0',
'url' => 'https://github.com/appwrite/sdk-for-android',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
'enabled' => true,
@ -140,7 +140,7 @@ return [
[
'key' => 'react-native',
'name' => 'React Native',
'version' => '0.19.0',
'version' => '0.20.0',
'url' => 'https://github.com/appwrite/sdk-for-react-native',
'package' => 'https://npmjs.com/package/react-native-appwrite',
'enabled' => true,
@ -208,7 +208,7 @@ return [
[
'key' => 'web',
'name' => 'Console',
'version' => '0.2.0',
'version' => '0.3.0',
'url' => '',
'package' => '',
'enabled' => true,
@ -227,7 +227,7 @@ return [
[
'key' => 'cli',
'name' => 'Command Line',
'version' => '13.1.0',
'version' => '14.0.0',
'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://www.npmjs.com/package/appwrite-cli',
'enabled' => true,
@ -253,7 +253,7 @@ return [
[
'key' => 'markdown',
'name' => 'Markdown',
'version' => '0.1.0',
'version' => '0.2.0',
'url' => 'https://github.com/appwrite/sdk-for-md.git',
'package' => 'https://www.npmjs.com/package/@appwrite.io/docs',
'enabled' => true,
@ -283,7 +283,7 @@ return [
[
'key' => 'nodejs',
'name' => 'Node.js',
'version' => '21.1.0',
'version' => '22.0.0',
'url' => 'https://github.com/appwrite/sdk-for-node',
'package' => 'https://www.npmjs.com/package/node-appwrite',
'enabled' => true,
@ -302,7 +302,7 @@ return [
[
'key' => 'php',
'name' => 'PHP',
'version' => '19.1.0',
'version' => '20.0.0',
'url' => 'https://github.com/appwrite/sdk-for-php',
'package' => 'https://packagist.org/packages/appwrite/appwrite',
'enabled' => true,
@ -321,7 +321,7 @@ return [
[
'key' => 'python',
'name' => 'Python',
'version' => '14.1.0',
'version' => '15.0.0',
'url' => 'https://github.com/appwrite/sdk-for-python',
'package' => 'https://pypi.org/project/appwrite/',
'enabled' => true,
@ -340,7 +340,7 @@ return [
[
'key' => 'ruby',
'name' => 'Ruby',
'version' => '20.1.0',
'version' => '21.0.0',
'url' => 'https://github.com/appwrite/sdk-for-ruby',
'package' => 'https://rubygems.org/gems/appwrite',
'enabled' => true,
@ -378,7 +378,7 @@ return [
[
'key' => 'dotnet',
'name' => '.NET',
'version' => '0.24.0',
'version' => '0.25.0',
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => true,
@ -397,7 +397,7 @@ return [
[
'key' => 'dart',
'name' => 'Dart',
'version' => '20.1.1',
'version' => '21.0.0',
'url' => 'https://github.com/appwrite/sdk-for-dart',
'package' => 'https://pub.dev/packages/dart_appwrite',
'enabled' => true,
@ -417,7 +417,7 @@ return [
'key' => 'kotlin',
'name' => 'Kotlin',
'namespace' => 'io.appwrite',
'version' => '13.1.0',
'version' => '14.0.0',
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
'enabled' => true,
@ -440,7 +440,7 @@ return [
[
'key' => 'swift',
'name' => 'Swift',
'version' => '14.1.0',
'version' => '15.0.0',
'url' => 'https://github.com/appwrite/sdk-for-swift',
'package' => 'https://github.com/appwrite/sdk-for-swift',
'enabled' => true,

View file

@ -5888,7 +5888,7 @@
"x-appwrite": {
"method": "listTransactions",
"group": "transactions",
"weight": 338,
"weight": 346,
"cookies": false,
"type": "",
"demo": "databases\/list-transactions.md",
@ -5955,7 +5955,7 @@
"x-appwrite": {
"method": "createTransaction",
"group": "transactions",
"weight": 334,
"weight": 342,
"cookies": false,
"type": "",
"demo": "databases\/create-transaction.md",
@ -6026,7 +6026,7 @@
"x-appwrite": {
"method": "getTransaction",
"group": "transactions",
"weight": 335,
"weight": 343,
"cookies": false,
"type": "",
"demo": "databases\/get-transaction.md",
@ -6090,7 +6090,7 @@
"x-appwrite": {
"method": "updateTransaction",
"group": "transactions",
"weight": 336,
"weight": 344,
"cookies": false,
"type": "",
"demo": "databases\/update-transaction.md",
@ -6168,7 +6168,7 @@
"x-appwrite": {
"method": "deleteTransaction",
"group": "transactions",
"weight": 337,
"weight": 345,
"cookies": false,
"type": "",
"demo": "databases\/delete-transaction.md",
@ -6234,7 +6234,7 @@
"x-appwrite": {
"method": "createOperations",
"group": "transactions",
"weight": 339,
"weight": 347,
"cookies": false,
"type": "",
"demo": "databases\/create-operations.md",
@ -7335,7 +7335,7 @@
"x-appwrite": {
"method": "listExecutions",
"group": "executions",
"weight": 431,
"weight": 447,
"cookies": false,
"type": "",
"demo": "functions\/list-executions.md",
@ -7422,7 +7422,7 @@
"x-appwrite": {
"method": "createExecution",
"group": "executions",
"weight": 429,
"weight": 445,
"cookies": false,
"type": "",
"demo": "functions\/create-execution.md",
@ -7540,7 +7540,7 @@
"x-appwrite": {
"method": "getExecution",
"group": "executions",
"weight": 430,
"weight": 446,
"cookies": false,
"type": "",
"demo": "functions\/get-execution.md",
@ -8315,7 +8315,7 @@
"x-appwrite": {
"method": "listFiles",
"group": "files",
"weight": 527,
"weight": 543,
"cookies": false,
"type": "",
"demo": "storage\/list-files.md",
@ -8414,7 +8414,7 @@
"x-appwrite": {
"method": "createFile",
"group": "files",
"weight": 525,
"weight": 541,
"cookies": false,
"type": "upload",
"demo": "storage\/create-file.md",
@ -8516,7 +8516,7 @@
"x-appwrite": {
"method": "getFile",
"group": "files",
"weight": 526,
"weight": 542,
"cookies": false,
"type": "",
"demo": "storage\/get-file.md",
@ -8590,7 +8590,7 @@
"x-appwrite": {
"method": "updateFile",
"group": "files",
"weight": 528,
"weight": 544,
"cookies": false,
"type": "",
"demo": "storage\/update-file.md",
@ -8682,7 +8682,7 @@
"x-appwrite": {
"method": "deleteFile",
"group": "files",
"weight": 529,
"weight": 545,
"cookies": false,
"type": "",
"demo": "storage\/delete-file.md",
@ -8751,7 +8751,7 @@
"x-appwrite": {
"method": "getFileDownload",
"group": "files",
"weight": 531,
"weight": 547,
"cookies": false,
"type": "location",
"demo": "storage\/get-file-download.md",
@ -8831,7 +8831,7 @@
"x-appwrite": {
"method": "getFilePreview",
"group": "files",
"weight": 530,
"weight": 546,
"cookies": false,
"type": "location",
"demo": "storage\/get-file-preview.md",
@ -9061,7 +9061,7 @@
"x-appwrite": {
"method": "getFileView",
"group": "files",
"weight": 532,
"weight": 548,
"cookies": false,
"type": "location",
"demo": "storage\/get-file-view.md",
@ -9148,7 +9148,7 @@
"x-appwrite": {
"method": "listTransactions",
"group": "transactions",
"weight": 403,
"weight": 419,
"cookies": false,
"type": "",
"demo": "tablesdb\/list-transactions.md",
@ -9218,7 +9218,7 @@
"x-appwrite": {
"method": "createTransaction",
"group": "transactions",
"weight": 399,
"weight": 415,
"cookies": false,
"type": "",
"demo": "tablesdb\/create-transaction.md",
@ -9292,7 +9292,7 @@
"x-appwrite": {
"method": "getTransaction",
"group": "transactions",
"weight": 400,
"weight": 416,
"cookies": false,
"type": "",
"demo": "tablesdb\/get-transaction.md",
@ -9359,7 +9359,7 @@
"x-appwrite": {
"method": "updateTransaction",
"group": "transactions",
"weight": 401,
"weight": 417,
"cookies": false,
"type": "",
"demo": "tablesdb\/update-transaction.md",
@ -9440,7 +9440,7 @@
"x-appwrite": {
"method": "deleteTransaction",
"group": "transactions",
"weight": 402,
"weight": 418,
"cookies": false,
"type": "",
"demo": "tablesdb\/delete-transaction.md",
@ -9509,7 +9509,7 @@
"x-appwrite": {
"method": "createOperations",
"group": "transactions",
"weight": 404,
"weight": 420,
"cookies": false,
"type": "",
"demo": "tablesdb\/create-operations.md",
@ -9597,7 +9597,7 @@
"x-appwrite": {
"method": "listRows",
"group": "rows",
"weight": 395,
"weight": 411,
"cookies": false,
"type": "",
"demo": "tablesdb\/list-rows.md",
@ -9708,7 +9708,7 @@
"x-appwrite": {
"method": "createRow",
"group": "rows",
"weight": 387,
"weight": 403,
"cookies": false,
"type": "",
"demo": "tablesdb\/create-row.md",
@ -9864,7 +9864,7 @@
"x-appwrite": {
"method": "getRow",
"group": "rows",
"weight": 388,
"weight": 404,
"cookies": false,
"type": "",
"demo": "tablesdb\/get-row.md",
@ -9974,7 +9974,7 @@
"x-appwrite": {
"method": "upsertRow",
"group": "rows",
"weight": 391,
"weight": 407,
"cookies": false,
"type": "",
"demo": "tablesdb\/upsert-row.md",
@ -10124,7 +10124,7 @@
"x-appwrite": {
"method": "updateRow",
"group": "rows",
"weight": 389,
"weight": 405,
"cookies": false,
"type": "",
"demo": "tablesdb\/update-row.md",
@ -10235,7 +10235,7 @@
"x-appwrite": {
"method": "deleteRow",
"group": "rows",
"weight": 393,
"weight": 409,
"cookies": false,
"type": "",
"demo": "tablesdb\/delete-row.md",
@ -10341,7 +10341,7 @@
"x-appwrite": {
"method": "decrementRowColumn",
"group": "rows",
"weight": 398,
"weight": 414,
"cookies": false,
"type": "",
"demo": "tablesdb\/decrement-row-column.md",
@ -10469,7 +10469,7 @@
"x-appwrite": {
"method": "incrementRowColumn",
"group": "rows",
"weight": 397,
"weight": 413,
"cookies": false,
"type": "",
"demo": "tablesdb\/increment-row-column.md",

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -5994,7 +5994,7 @@
"x-appwrite": {
"method": "listTransactions",
"group": "transactions",
"weight": 338,
"weight": 346,
"cookies": false,
"type": "",
"demo": "databases\/list-transactions.md",
@ -6061,7 +6061,7 @@
"x-appwrite": {
"method": "createTransaction",
"group": "transactions",
"weight": 334,
"weight": 342,
"cookies": false,
"type": "",
"demo": "databases\/create-transaction.md",
@ -6132,7 +6132,7 @@
"x-appwrite": {
"method": "getTransaction",
"group": "transactions",
"weight": 335,
"weight": 343,
"cookies": false,
"type": "",
"demo": "databases\/get-transaction.md",
@ -6195,7 +6195,7 @@
"x-appwrite": {
"method": "updateTransaction",
"group": "transactions",
"weight": 336,
"weight": 344,
"cookies": false,
"type": "",
"demo": "databases\/update-transaction.md",
@ -6274,7 +6274,7 @@
"x-appwrite": {
"method": "deleteTransaction",
"group": "transactions",
"weight": 337,
"weight": 345,
"cookies": false,
"type": "",
"demo": "databases\/delete-transaction.md",
@ -6339,7 +6339,7 @@
"x-appwrite": {
"method": "createOperations",
"group": "transactions",
"weight": 339,
"weight": 347,
"cookies": false,
"type": "",
"demo": "databases\/create-operations.md",
@ -7392,7 +7392,7 @@
"x-appwrite": {
"method": "listExecutions",
"group": "executions",
"weight": 431,
"weight": 447,
"cookies": false,
"type": "",
"demo": "functions\/list-executions.md",
@ -7475,7 +7475,7 @@
"x-appwrite": {
"method": "createExecution",
"group": "executions",
"weight": 429,
"weight": 445,
"cookies": false,
"type": "",
"demo": "functions\/create-execution.md",
@ -7594,7 +7594,7 @@
"x-appwrite": {
"method": "getExecution",
"group": "executions",
"weight": 430,
"weight": 446,
"cookies": false,
"type": "",
"demo": "functions\/get-execution.md",
@ -8396,7 +8396,7 @@
"x-appwrite": {
"method": "listFiles",
"group": "files",
"weight": 527,
"weight": 543,
"cookies": false,
"type": "",
"demo": "storage\/list-files.md",
@ -8489,7 +8489,7 @@
"x-appwrite": {
"method": "createFile",
"group": "files",
"weight": 525,
"weight": 541,
"cookies": false,
"type": "upload",
"demo": "storage\/create-file.md",
@ -8580,7 +8580,7 @@
"x-appwrite": {
"method": "getFile",
"group": "files",
"weight": 526,
"weight": 542,
"cookies": false,
"type": "",
"demo": "storage\/get-file.md",
@ -8651,7 +8651,7 @@
"x-appwrite": {
"method": "updateFile",
"group": "files",
"weight": 528,
"weight": 544,
"cookies": false,
"type": "",
"demo": "storage\/update-file.md",
@ -8742,7 +8742,7 @@
"x-appwrite": {
"method": "deleteFile",
"group": "files",
"weight": 529,
"weight": 545,
"cookies": false,
"type": "",
"demo": "storage\/delete-file.md",
@ -8813,7 +8813,7 @@
"x-appwrite": {
"method": "getFileDownload",
"group": "files",
"weight": 531,
"weight": 547,
"cookies": false,
"type": "location",
"demo": "storage\/get-file-download.md",
@ -8893,7 +8893,7 @@
"x-appwrite": {
"method": "getFilePreview",
"group": "files",
"weight": 530,
"weight": 546,
"cookies": false,
"type": "location",
"demo": "storage\/get-file-preview.md",
@ -9101,7 +9101,7 @@
"x-appwrite": {
"method": "getFileView",
"group": "files",
"weight": 532,
"weight": 548,
"cookies": false,
"type": "location",
"demo": "storage\/get-file-view.md",
@ -9181,7 +9181,7 @@
"x-appwrite": {
"method": "listTransactions",
"group": "transactions",
"weight": 403,
"weight": 419,
"cookies": false,
"type": "",
"demo": "tablesdb\/list-transactions.md",
@ -9251,7 +9251,7 @@
"x-appwrite": {
"method": "createTransaction",
"group": "transactions",
"weight": 399,
"weight": 415,
"cookies": false,
"type": "",
"demo": "tablesdb\/create-transaction.md",
@ -9325,7 +9325,7 @@
"x-appwrite": {
"method": "getTransaction",
"group": "transactions",
"weight": 400,
"weight": 416,
"cookies": false,
"type": "",
"demo": "tablesdb\/get-transaction.md",
@ -9391,7 +9391,7 @@
"x-appwrite": {
"method": "updateTransaction",
"group": "transactions",
"weight": 401,
"weight": 417,
"cookies": false,
"type": "",
"demo": "tablesdb\/update-transaction.md",
@ -9473,7 +9473,7 @@
"x-appwrite": {
"method": "deleteTransaction",
"group": "transactions",
"weight": 402,
"weight": 418,
"cookies": false,
"type": "",
"demo": "tablesdb\/delete-transaction.md",
@ -9541,7 +9541,7 @@
"x-appwrite": {
"method": "createOperations",
"group": "transactions",
"weight": 404,
"weight": 420,
"cookies": false,
"type": "",
"demo": "tablesdb\/create-operations.md",
@ -9625,7 +9625,7 @@
"x-appwrite": {
"method": "listRows",
"group": "rows",
"weight": 395,
"weight": 411,
"cookies": false,
"type": "",
"demo": "tablesdb\/list-rows.md",
@ -9728,7 +9728,7 @@
"x-appwrite": {
"method": "createRow",
"group": "rows",
"weight": 387,
"weight": 403,
"cookies": false,
"type": "",
"demo": "tablesdb\/create-row.md",
@ -9882,7 +9882,7 @@
"x-appwrite": {
"method": "getRow",
"group": "rows",
"weight": 388,
"weight": 404,
"cookies": false,
"type": "",
"demo": "tablesdb\/get-row.md",
@ -9984,7 +9984,7 @@
"x-appwrite": {
"method": "upsertRow",
"group": "rows",
"weight": 391,
"weight": 407,
"cookies": false,
"type": "",
"demo": "tablesdb\/upsert-row.md",
@ -10130,7 +10130,7 @@
"x-appwrite": {
"method": "updateRow",
"group": "rows",
"weight": 389,
"weight": 405,
"cookies": false,
"type": "",
"demo": "tablesdb\/update-row.md",
@ -10239,7 +10239,7 @@
"x-appwrite": {
"method": "deleteRow",
"group": "rows",
"weight": 393,
"weight": 409,
"cookies": false,
"type": "",
"demo": "tablesdb\/delete-row.md",
@ -10339,7 +10339,7 @@
"x-appwrite": {
"method": "decrementRowColumn",
"group": "rows",
"weight": 398,
"weight": 414,
"cookies": false,
"type": "",
"demo": "tablesdb\/decrement-row-column.md",
@ -10461,7 +10461,7 @@
"x-appwrite": {
"method": "incrementRowColumn",
"group": "rows",
"weight": 397,
"weight": 413,
"cookies": false,
"type": "",
"demo": "tablesdb\/increment-row-column.md",

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

38
composer.lock generated
View file

@ -3615,16 +3615,16 @@
},
{
"name": "utopia-php/audit",
"version": "2.1.1",
"version": "2.2.0",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/audit.git",
"reference": "00b1d5c0fe7f912315598ee83278fe74d234b196"
"reference": "1865d055d38b71f41e68561cf0c474b5bf6143e5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/audit/zipball/00b1d5c0fe7f912315598ee83278fe74d234b196",
"reference": "00b1d5c0fe7f912315598ee83278fe74d234b196",
"url": "https://api.github.com/repos/utopia-php/audit/zipball/1865d055d38b71f41e68561cf0c474b5bf6143e5",
"reference": "1865d055d38b71f41e68561cf0c474b5bf6143e5",
"shasum": ""
},
"require": {
@ -3658,9 +3658,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/audit/issues",
"source": "https://github.com/utopia-php/audit/tree/2.1.1"
"source": "https://github.com/utopia-php/audit/tree/2.2.0"
},
"time": "2026-02-01T08:12:53+00:00"
"time": "2026-02-02T09:49:02+00:00"
},
{
"name": "utopia-php/auth",
@ -4902,16 +4902,16 @@
},
{
"name": "utopia-php/queue",
"version": "0.15.1",
"version": "0.15.2",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/queue.git",
"reference": "e551606385990ec7901d222017c4cfc2749a518c"
"reference": "5051c08d9f50ff4aa78c0eb2f7ca74b328509c81"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/queue/zipball/e551606385990ec7901d222017c4cfc2749a518c",
"reference": "e551606385990ec7901d222017c4cfc2749a518c",
"url": "https://api.github.com/repos/utopia-php/queue/zipball/5051c08d9f50ff4aa78c0eb2f7ca74b328509c81",
"reference": "5051c08d9f50ff4aa78c0eb2f7ca74b328509c81",
"shasum": ""
},
"require": {
@ -4962,9 +4962,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/queue/issues",
"source": "https://github.com/utopia-php/queue/tree/0.15.1"
"source": "https://github.com/utopia-php/queue/tree/0.15.2"
},
"time": "2026-01-16T07:54:54+00:00"
"time": "2026-02-02T11:56:51+00:00"
},
{
"name": "utopia-php/registry",
@ -5546,16 +5546,16 @@
"packages-dev": [
{
"name": "appwrite/sdk-generator",
"version": "1.8.21",
"version": "1.8.22",
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
"reference": "1b47b2c794811c565f8b5e7eeaa19f749bcbeb6b"
"reference": "2888fa2abd820dca24f3d967ba54d498999e3caf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/1b47b2c794811c565f8b5e7eeaa19f749bcbeb6b",
"reference": "1b47b2c794811c565f8b5e7eeaa19f749bcbeb6b",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/2888fa2abd820dca24f3d967ba54d498999e3caf",
"reference": "2888fa2abd820dca24f3d967ba54d498999e3caf",
"shasum": ""
},
"require": {
@ -5591,9 +5591,9 @@
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"support": {
"issues": "https://github.com/appwrite/sdk-generator/issues",
"source": "https://github.com/appwrite/sdk-generator/tree/1.8.21"
"source": "https://github.com/appwrite/sdk-generator/tree/1.8.22"
},
"time": "2026-01-26T04:42:33+00:00"
"time": "2026-02-02T13:02:47+00:00"
},
{
"name": "doctrine/annotations",
@ -9052,7 +9052,7 @@
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"stability-flags": {},
"prefer-stable": false,
"prefer-lowest": false,
"platform": {

View file

@ -8,11 +8,15 @@ Client client = new Client(context)
Account account = new Account(client);
account.createJWT(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
account.createJWT(
0, // duration (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);
Log.d("Appwrite", result.toString());
}));

View file

@ -3,7 +3,8 @@ import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Avatars;
import io.appwrite.enums.Theme;
import io.appwrite.enums.Timezone;
import io.appwrite.enums.Output;
import io.appwrite.enums.BrowserPermission;
import io.appwrite.enums.ImageFormat;
Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -29,12 +30,12 @@ avatars.getScreenshot(
-122.4194, // longitude (optional)
100, // accuracy (optional)
true, // touch (optional)
List.of("geolocation", "notifications"), // permissions (optional)
BrowserPermission.GEOLOCATION, // permissions (optional)
3, // sleep (optional)
800, // width (optional)
600, // height (optional)
85, // quality (optional)
Output.JPG, // output (optional)
ImageFormat.JPG, // output (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Teams;
import io.appwrite.enums.Roles;
Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -10,7 +11,7 @@ Teams teams = new Teams(client);
teams.createMembership(
"<TEAM_ID>", // teamId
List.of(), // roles
Roles.ADMIN, // roles
"email@example.com", // email (optional)
"<USER_ID>", // userId (optional)
"+12065550100", // phone (optional)

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Teams;
import io.appwrite.enums.Roles;
Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -11,7 +12,7 @@ Teams teams = new Teams(client);
teams.updateMembership(
"<TEAM_ID>", // teamId
"<MEMBERSHIP_ID>", // membershipId
List.of(), // roles
Roles.ADMIN, // roles
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -8,4 +8,6 @@ val client = Client(context)
val account = Account(client)
val result = account.createJWT()
val result = account.createJWT(
duration = 0, // (optional)
)

View file

@ -3,7 +3,8 @@ import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Avatars
import io.appwrite.enums.Theme
import io.appwrite.enums.Timezone
import io.appwrite.enums.Output
import io.appwrite.enums.BrowserPermission
import io.appwrite.enums.ImageFormat
val client = Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -29,10 +30,10 @@ val result = avatars.getScreenshot(
longitude = -122.4194, // (optional)
accuracy = 100, // (optional)
touch = true, // (optional)
permissions = listOf("geolocation", "notifications"), // (optional)
permissions = BrowserPermission.GEOLOCATION, // (optional)
sleep = 3, // (optional)
width = 800, // (optional)
height = 600, // (optional)
quality = 85, // (optional)
output = output.JPG, // (optional)
output = ImageFormat.JPG, // (optional)
)

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Teams
import io.appwrite.enums.Roles
val client = Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -10,7 +11,7 @@ val teams = Teams(client)
val result = teams.createMembership(
teamId = "<TEAM_ID>",
roles = listOf(),
roles = roles.ADMIN,
email = "email@example.com", // (optional)
userId = "<USER_ID>", // (optional)
phone = "+12065550100", // (optional)

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Teams
import io.appwrite.enums.Roles
val client = Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -11,5 +12,5 @@ val teams = Teams(client)
val result = teams.updateMembership(
teamId = "<TEAM_ID>",
membershipId = "<MEMBERSHIP_ID>",
roles = listOf(),
roles = roles.ADMIN,
)

View file

@ -6,5 +6,7 @@ let client = Client()
let account = Account(client)
let jwt = try await account.createJWT()
let jwt = try await account.createJWT(
duration: 0 // optional
)

View file

@ -16,20 +16,20 @@ let bytes = try await avatars.getScreenshot(
viewportWidth: 1920, // optional
viewportHeight: 1080, // optional
scale: 2, // optional
theme: .light, // optional
theme: .dark, // optional
userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // optional
fullpage: true, // optional
locale: "en-US", // optional
timezone: .africaAbidjan, // optional
timezone: .americaNewYork, // optional
latitude: 37.7749, // optional
longitude: -122.4194, // optional
accuracy: 100, // optional
touch: true, // optional
permissions: ["geolocation","notifications"], // optional
permissions: [.geolocation, .notifications], // optional
sleep: 3, // optional
width: 800, // optional
height: 600, // optional
quality: 85, // optional
output: .jpg // optional
output: .jpeg // optional
)

View file

@ -1,4 +1,5 @@
import Appwrite
import AppwriteEnums
let client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -8,7 +9,7 @@ let teams = Teams(client)
let membership = try await teams.createMembership(
teamId: "<TEAM_ID>",
roles: [],
roles: [.admin],
email: "email@example.com", // optional
userId: "<USER_ID>", // optional
phone: "+12065550100", // optional

View file

@ -1,4 +1,5 @@
import Appwrite
import AppwriteEnums
let client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -9,6 +10,6 @@ let teams = Teams(client)
let membership = try await teams.updateMembership(
teamId: "<TEAM_ID>",
membershipId: "<MEMBERSHIP_ID>",
roles: []
roles: [.admin]
)

View file

@ -6,4 +6,6 @@ Client client = Client()
Account account = Account(client);
Jwt result = await account.createJWT();
Jwt result = await account.createJWT(
duration: 0, // optional
);

View file

@ -7,5 +7,5 @@ Client client = Client()
Account account = Account(client);
MfaType result = await account.createMFAAuthenticator(
type: AuthenticatorType.totp,
type: enums.AuthenticatorType.totp,
);

View file

@ -7,5 +7,5 @@ Client client = Client()
Account account = Account(client);
MfaChallenge result = await account.createMFAChallenge(
factor: AuthenticationFactor.email,
factor: enums.AuthenticationFactor.email,
);

View file

@ -7,7 +7,7 @@ Client client = Client()
Account account = Account(client);
await account.createOAuth2Session(
provider: OAuthProvider.amazon,
provider: enums.OAuthProvider.amazon,
success: 'https://example.com', // optional
failure: 'https://example.com', // optional
scopes: [], // optional

View file

@ -7,7 +7,7 @@ Client client = Client()
Account account = Account(client);
await account.createOAuth2Token(
provider: OAuthProvider.amazon,
provider: enums.OAuthProvider.amazon,
success: 'https://example.com', // optional
failure: 'https://example.com', // optional
scopes: [], // optional

View file

@ -7,5 +7,5 @@ Client client = Client()
Account account = Account(client);
await account.deleteMFAAuthenticator(
type: AuthenticatorType.totp,
type: enums.AuthenticatorType.totp,
);

View file

@ -7,6 +7,6 @@ Client client = Client()
Account account = Account(client);
User result = await account.updateMFAAuthenticator(
type: AuthenticatorType.totp,
type: enums.AuthenticatorType.totp,
otp: '<OTP>',
);

View file

@ -8,7 +8,7 @@ Avatars avatars = Avatars(client);
// Downloading file
Uint8List bytes = await avatars.getBrowser(
code: Browser.avantBrowser,
code: enums.Browser.avantBrowser,
width: 0, // optional
height: 0, // optional
quality: -1, // optional
@ -20,7 +20,7 @@ file.writeAsBytesSync(bytes);
// Displaying image preview
FutureBuilder(
future: avatars.getBrowser(
code: Browser.avantBrowser,
code: enums.Browser.avantBrowser,
width:0 , // optional
height:0 , // optional
quality:-1 , // optional

View file

@ -8,7 +8,7 @@ Avatars avatars = Avatars(client);
// Downloading file
Uint8List bytes = await avatars.getCreditCard(
code: CreditCard.americanExpress,
code: enums.CreditCard.americanExpress,
width: 0, // optional
height: 0, // optional
quality: -1, // optional
@ -20,7 +20,7 @@ file.writeAsBytesSync(bytes);
// Displaying image preview
FutureBuilder(
future: avatars.getCreditCard(
code: CreditCard.americanExpress,
code: enums.CreditCard.americanExpress,
width:0 , // optional
height:0 , // optional
quality:-1 , // optional

View file

@ -8,7 +8,7 @@ Avatars avatars = Avatars(client);
// Downloading file
Uint8List bytes = await avatars.getFlag(
code: Flag.afghanistan,
code: enums.Flag.afghanistan,
width: 0, // optional
height: 0, // optional
quality: -1, // optional
@ -20,7 +20,7 @@ file.writeAsBytesSync(bytes);
// Displaying image preview
FutureBuilder(
future: avatars.getFlag(
code: Flag.afghanistan,
code: enums.Flag.afghanistan,
width:0 , // optional
height:0 , // optional
quality:-1 , // optional

View file

@ -16,21 +16,21 @@ Uint8List bytes = await avatars.getScreenshot(
viewportWidth: 1920, // optional
viewportHeight: 1080, // optional
scale: 2, // optional
theme: Theme.light, // optional
theme: enums.Theme.dark, // optional
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional
fullpage: true, // optional
locale: 'en-US', // optional
timezone: Timezone.africaAbidjan, // optional
timezone: enums.Timezone.americaNewYork, // optional
latitude: 37.7749, // optional
longitude: -122.4194, // optional
accuracy: 100, // optional
touch: true, // optional
permissions: ["geolocation","notifications"], // optional
permissions: [enums.BrowserPermission.geolocation, enums.BrowserPermission.notifications], // optional
sleep: 3, // optional
width: 800, // optional
height: 600, // optional
quality: 85, // optional
output: Output.jpg, // optional
output: enums.ImageFormat.jpeg, // optional
)
final file = File('path_to_file/filename.ext');
@ -47,21 +47,21 @@ FutureBuilder(
viewportWidth:1920 , // optional
viewportHeight:1080 , // optional
scale:2 , // optional
theme: Theme.light, // optional
theme: enums.Theme.dark, // optional
userAgent:'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15' , // optional
fullpage:true , // optional
locale:'en-US' , // optional
timezone: Timezone.africaAbidjan, // optional
timezone: enums.Timezone.americaNewYork, // optional
latitude:37.7749 , // optional
longitude:-122.4194 , // optional
accuracy:100 , // optional
touch:true , // optional
permissions:["geolocation","notifications"] , // optional
permissions: [enums.BrowserPermission.geolocation, enums.BrowserPermission.notifications], // optional
sleep:3 , // optional
width:800 , // optional
height:600 , // optional
quality:85 , // optional
output: Output.jpg, // optional
output: enums.ImageFormat.jpeg, // optional
), // Works for both public file and private file, for private files you need to be logged in
builder: (context, snapshot) {
return snapshot.hasData && snapshot.data != null

View file

@ -11,7 +11,7 @@ Execution result = await functions.createExecution(
body: '<BODY>', // optional
xasync: false, // optional
path: '<PATH>', // optional
method: ExecutionMethod.gET, // optional
method: enums.ExecutionMethod.gET, // optional
headers: {}, // optional
scheduledAt: '<SCHEDULED_AT>', // optional
);

View file

@ -12,7 +12,7 @@ Uint8List bytes = await storage.getFilePreview(
fileId: '<FILE_ID>',
width: 0, // optional
height: 0, // optional
gravity: ImageGravity.center, // optional
gravity: enums.ImageGravity.center, // optional
quality: -1, // optional
borderWidth: 0, // optional
borderColor: '', // optional
@ -20,7 +20,7 @@ Uint8List bytes = await storage.getFilePreview(
opacity: 0, // optional
rotation: -360, // optional
background: '', // optional
output: ImageFormat.jpg, // optional
output: enums.ImageFormat.jpg, // optional
token: '<TOKEN>', // optional
)
@ -34,7 +34,7 @@ FutureBuilder(
fileId:'<FILE_ID>' ,
width:0 , // optional
height:0 , // optional
gravity: ImageGravity.center, // optional
gravity: enums.ImageGravity.center, // optional
quality:-1 , // optional
borderWidth:0 , // optional
borderColor:'' , // optional
@ -42,7 +42,7 @@ FutureBuilder(
opacity:0 , // optional
rotation:-360 , // optional
background:'' , // optional
output: ImageFormat.jpg, // optional
output: enums.ImageFormat.jpg, // optional
token:'<TOKEN>' , // optional
), // Works for both public file and private file, for private files you need to be logged in
builder: (context, snapshot) {

View file

@ -8,7 +8,7 @@ Teams teams = Teams(client);
Membership result = await teams.createMembership(
teamId: '<TEAM_ID>',
roles: [],
roles: [enums.Roles.admin],
email: 'email@example.com', // optional
userId: '<USER_ID>', // optional
phone: '+12065550100', // optional

View file

@ -9,5 +9,5 @@ Teams teams = Teams(client);
Membership result = await teams.updateMembership(
teamId: '<TEAM_ID>',
membershipId: '<MEMBERSHIP_ID>',
roles: [],
roles: [enums.Roles.admin],
);

View file

@ -1,5 +1,7 @@
mutation {
accountCreateJWT {
accountCreateJWT(
duration: 0
) {
jwt
}
}

View file

@ -16,5 +16,7 @@ mutation {
sizeOriginal
chunksTotal
chunksUploaded
encryption
compression
}
}

View file

@ -6,6 +6,8 @@ const client = new Client()
const account = new Account(client);
const result = await account.createJWT();
const result = await account.createJWT({
duration: 0 // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Avatars, Theme, Timezone, Output } from "react-native-appwrite";
import { Client, Avatars, Theme, Timezone, BrowserPermission, ImageFormat } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -15,21 +15,21 @@ const result = avatars.getScreenshot({
viewportWidth: 1920, // optional
viewportHeight: 1080, // optional
scale: 2, // optional
theme: Theme.Light, // optional
theme: Theme.Dark, // optional
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional
fullpage: true, // optional
locale: 'en-US', // optional
timezone: Timezone.AfricaAbidjan, // optional
timezone: Timezone.AmericaNewYork, // optional
latitude: 37.7749, // optional
longitude: -122.4194, // optional
accuracy: 100, // optional
touch: true, // optional
permissions: ["geolocation","notifications"], // optional
permissions: [BrowserPermission.Geolocation, BrowserPermission.Notifications], // optional
sleep: 3, // optional
width: 800, // optional
height: 600, // optional
quality: 85, // optional
output: Output.Jpg // optional
output: ImageFormat.Jpeg // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Teams } from "react-native-appwrite";
import { Client, Teams, Roles } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -8,7 +8,7 @@ const teams = new Teams(client);
const result = await teams.createMembership({
teamId: '<TEAM_ID>',
roles: [],
roles: [Roles.Admin],
email: 'email@example.com', // optional
userId: '<USER_ID>', // optional
phone: '+12065550100', // optional

View file

@ -1,4 +1,4 @@
import { Client, Teams } from "react-native-appwrite";
import { Client, Teams, Roles } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -9,7 +9,7 @@ const teams = new Teams(client);
const result = await teams.updateMembership({
teamId: '<TEAM_ID>',
membershipId: '<MEMBERSHIP_ID>',
roles: []
roles: [Roles.Admin]
});
console.log(result);

View file

@ -6,3 +6,6 @@ X-Appwrite-Project: <YOUR_PROJECT_ID>
X-Appwrite-Session:
X-Appwrite-JWT: <YOUR_JWT>
{
"duration": 0
}

View file

@ -6,6 +6,8 @@ const client = new Client()
const account = new Account(client);
const result = await account.createJWT();
const result = await account.createJWT({
duration: 0 // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Avatars, Theme, Timezone, Output } from "appwrite";
import { Client, Avatars, Theme, Timezone, BrowserPermission, ImageFormat } from "appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -15,21 +15,21 @@ const result = avatars.getScreenshot({
viewportWidth: 1920, // optional
viewportHeight: 1080, // optional
scale: 2, // optional
theme: Theme.Light, // optional
theme: Theme.Dark, // optional
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional
fullpage: true, // optional
locale: 'en-US', // optional
timezone: Timezone.AfricaAbidjan, // optional
timezone: Timezone.AmericaNewYork, // optional
latitude: 37.7749, // optional
longitude: -122.4194, // optional
accuracy: 100, // optional
touch: true, // optional
permissions: ["geolocation","notifications"], // optional
permissions: [BrowserPermission.Geolocation, BrowserPermission.Notifications], // optional
sleep: 3, // optional
width: 800, // optional
height: 600, // optional
quality: 85, // optional
output: Output.Jpg // optional
output: ImageFormat.Jpeg // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Teams } from "appwrite";
import { Client, Teams, Roles } from "appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -8,7 +8,7 @@ const teams = new Teams(client);
const result = await teams.createMembership({
teamId: '<TEAM_ID>',
roles: [],
roles: [Roles.Admin],
email: 'email@example.com', // optional
userId: '<USER_ID>', // optional
phone: '+12065550100', // optional

View file

@ -1,4 +1,4 @@
import { Client, Teams } from "appwrite";
import { Client, Teams, Roles } from "appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -9,7 +9,7 @@ const teams = new Teams(client);
const result = await teams.updateMembership({
teamId: '<TEAM_ID>',
membershipId: '<MEMBERSHIP_ID>',
roles: []
roles: [Roles.Admin]
});
console.log(result);

View file

@ -0,0 +1,5 @@
appwrite databases create-longtext-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false

View file

@ -0,0 +1,5 @@
appwrite databases create-mediumtext-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false

View file

@ -0,0 +1,5 @@
appwrite databases create-text-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false

View file

@ -0,0 +1,6 @@
appwrite databases create-varchar-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--size 1 \
--required false

View file

@ -1,4 +1,3 @@
appwrite databases update-collection \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--name <NAME>
--collection-id <COLLECTION_ID>

View file

@ -0,0 +1,6 @@
appwrite databases update-longtext-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false \
--default <DEFAULT>

View file

@ -0,0 +1,6 @@
appwrite databases update-mediumtext-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false \
--default <DEFAULT>

View file

@ -0,0 +1,6 @@
appwrite databases update-text-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false \
--default <DEFAULT>

View file

@ -0,0 +1,6 @@
appwrite databases update-varchar-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false \
--default <DEFAULT>

View file

@ -1,3 +1,2 @@
appwrite databases update \
--database-id <DATABASE_ID> \
--name <NAME>
--database-id <DATABASE_ID>

View file

@ -0,0 +1,5 @@
appwrite tables-db create-longtext-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false

View file

@ -0,0 +1,5 @@
appwrite tables-db create-mediumtext-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false

View file

@ -0,0 +1,5 @@
appwrite tables-db create-text-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false

View file

@ -0,0 +1,6 @@
appwrite tables-db create-varchar-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--size 1 \
--required false

View file

@ -0,0 +1,6 @@
appwrite tables-db update-longtext-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false \
--default <DEFAULT>

View file

@ -0,0 +1,6 @@
appwrite tables-db update-mediumtext-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false \
--default <DEFAULT>

View file

@ -1,4 +1,3 @@
appwrite tables-db update-table \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--name <NAME>
--table-id <TABLE_ID>

View file

@ -0,0 +1,6 @@
appwrite tables-db update-text-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false \
--default <DEFAULT>

View file

@ -0,0 +1,6 @@
appwrite tables-db update-varchar-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false \
--default <DEFAULT>

View file

@ -1,3 +1,2 @@
appwrite tables-db update \
--database-id <DATABASE_ID> \
--name <NAME>
--database-id <DATABASE_ID>

View file

@ -6,6 +6,8 @@ const client = new Client()
const account = new Account(client);
const result = await account.createJWT();
const result = await account.createJWT({
duration: 0 // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Avatars, Theme, Timezone, Output } from "@appwrite.io/console";
import { Client, Avatars, Theme, Timezone, BrowserPermission, ImageFormat } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -15,21 +15,21 @@ const result = avatars.getScreenshot({
viewportWidth: 1920, // optional
viewportHeight: 1080, // optional
scale: 2, // optional
theme: Theme.Light, // optional
theme: Theme.Dark, // optional
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // optional
fullpage: true, // optional
locale: 'en-US', // optional
timezone: Timezone.AfricaAbidjan, // optional
timezone: Timezone.AmericaNewYork, // optional
latitude: 37.7749, // optional
longitude: -122.4194, // optional
accuracy: 100, // optional
touch: true, // optional
permissions: ["geolocation","notifications"], // optional
permissions: [BrowserPermission.Geolocation, BrowserPermission.Notifications], // optional
sleep: 3, // optional
width: 800, // optional
height: 600, // optional
quality: 85, // optional
output: Output.Jpg // optional
output: ImageFormat.Jpeg // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Databases, IndexType } from "@appwrite.io/console";
import { Client, Databases, IndexType, OrderBy } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -12,7 +12,7 @@ const result = await databases.createIndex({
key: '',
type: IndexType.Key,
attributes: [],
orders: [], // optional
orders: [OrderBy.Asc], // optional
lengths: [] // optional
});

View file

@ -0,0 +1,18 @@
import { Client, Databases } 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 databases = new Databases(client);
const result = await databases.createLongtextAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
array: false // optional
});
console.log(result);

View file

@ -0,0 +1,18 @@
import { Client, Databases } 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 databases = new Databases(client);
const result = await databases.createMediumtextAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
array: false // optional
});
console.log(result);

View file

@ -0,0 +1,18 @@
import { Client, Databases } 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 databases = new Databases(client);
const result = await databases.createTextAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
array: false // optional
});
console.log(result);

View file

@ -0,0 +1,19 @@
import { Client, Databases } 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 databases = new Databases(client);
const result = await databases.createVarcharAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
size: 1,
required: false,
default: '<DEFAULT>', // optional
array: false // optional
});
console.log(result);

View file

@ -9,7 +9,7 @@ const databases = new Databases(client);
const result = await databases.updateCollection({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
name: '<NAME>',
name: '<NAME>', // optional
permissions: [Permission.read(Role.any())], // optional
documentSecurity: false, // optional
enabled: false // optional

View file

@ -0,0 +1,18 @@
import { Client, Databases } 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 databases = new Databases(client);
const result = await databases.updateLongtextAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
newKey: '' // optional
});
console.log(result);

View file

@ -0,0 +1,18 @@
import { Client, Databases } 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 databases = new Databases(client);
const result = await databases.updateMediumtextAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
newKey: '' // optional
});
console.log(result);

View file

@ -0,0 +1,18 @@
import { Client, Databases } 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 databases = new Databases(client);
const result = await databases.updateTextAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
newKey: '' // optional
});
console.log(result);

View file

@ -0,0 +1,19 @@
import { Client, Databases } 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 databases = new Databases(client);
const result = await databases.updateVarcharAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
size: 1, // optional
newKey: '' // optional
});
console.log(result);

View file

@ -8,7 +8,7 @@ const databases = new Databases(client);
const result = await databases.update({
databaseId: '<DATABASE_ID>',
name: '<NAME>',
name: '<NAME>', // optional
enabled: false // optional
});

View file

@ -1,4 +1,4 @@
import { Client, Functions, Runtime } from "@appwrite.io/console";
import { Client, Functions, Runtime, Scopes } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -18,7 +18,7 @@ const result = await functions.create({
logging: false, // optional
entrypoint: '<ENTRYPOINT>', // optional
commands: '<COMMANDS>', // optional
scopes: [], // optional
scopes: [Scopes.SessionsWrite], // optional
installationId: '<INSTALLATION_ID>', // optional
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional
providerBranch: '<PROVIDER_BRANCH>', // optional

View file

@ -1,4 +1,4 @@
import { Client, Functions } from "@appwrite.io/console";
import { Client, Functions, Runtimes, UseCases } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,8 +7,8 @@ const client = new Client()
const functions = new Functions(client);
const result = await functions.listTemplates({
runtimes: [], // optional
useCases: [], // optional
runtimes: [Runtimes.Node145], // optional
useCases: [UseCases.Starter], // optional
limit: 1, // optional
offset: 0, // optional
total: false // optional

View file

@ -1,4 +1,4 @@
import { Client, Functions, Runtime } from "@appwrite.io/console";
import { Client, Functions, Runtime, Scopes } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -18,7 +18,7 @@ const result = await functions.update({
logging: false, // optional
entrypoint: '<ENTRYPOINT>', // optional
commands: '<COMMANDS>', // optional
scopes: [], // optional
scopes: [Scopes.SessionsWrite], // optional
installationId: '<INSTALLATION_ID>', // optional
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional
providerBranch: '<PROVIDER_BRANCH>', // optional

View file

@ -0,0 +1,13 @@
import { Client, Health } 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 health = new Health(client);
const result = await health.getQueueAudits({
threshold: null // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Migrations } from "@appwrite.io/console";
import { Client, Migrations, Resources } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const migrations = new Migrations(client);
const result = await migrations.createAppwriteMigration({
resources: [],
resources: [Resources.User],
endpoint: 'https://example.com',
projectId: '<PROJECT_ID>',
apiKey: '<API_KEY>'

View file

@ -1,4 +1,4 @@
import { Client, Migrations } from "@appwrite.io/console";
import { Client, Migrations, Resources } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const migrations = new Migrations(client);
const result = await migrations.createFirebaseMigration({
resources: [],
resources: [Resources.User],
serviceAccount: '<SERVICE_ACCOUNT>'
});

View file

@ -1,4 +1,4 @@
import { Client, Migrations } from "@appwrite.io/console";
import { Client, Migrations, Resources } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const migrations = new Migrations(client);
const result = await migrations.createNHostMigration({
resources: [],
resources: [Resources.User],
subdomain: '<SUBDOMAIN>',
region: '<REGION>',
adminSecret: '<ADMIN_SECRET>',

View file

@ -1,4 +1,4 @@
import { Client, Migrations } from "@appwrite.io/console";
import { Client, Migrations, Resources } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const migrations = new Migrations(client);
const result = await migrations.createSupabaseMigration({
resources: [],
resources: [Resources.User],
endpoint: 'https://example.com',
apiKey: '<API_KEY>',
databaseHost: '<DATABASE_HOST>',

View file

@ -1,4 +1,4 @@
import { Client, Migrations } from "@appwrite.io/console";
import { Client, Migrations, Resources } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const migrations = new Migrations(client);
const result = await migrations.getAppwriteReport({
resources: [],
resources: [Resources.User],
endpoint: 'https://example.com',
projectID: '<PROJECT_ID>',
key: '<KEY>'

View file

@ -1,4 +1,4 @@
import { Client, Migrations } from "@appwrite.io/console";
import { Client, Migrations, Resources } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const migrations = new Migrations(client);
const result = await migrations.getFirebaseReport({
resources: [],
resources: [Resources.User],
serviceAccount: '<SERVICE_ACCOUNT>'
});

View file

@ -1,4 +1,4 @@
import { Client, Migrations } from "@appwrite.io/console";
import { Client, Migrations, Resources } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const migrations = new Migrations(client);
const result = await migrations.getNHostReport({
resources: [],
resources: [Resources.User],
subdomain: '<SUBDOMAIN>',
region: '<REGION>',
adminSecret: '<ADMIN_SECRET>',

View file

@ -1,4 +1,4 @@
import { Client, Migrations } from "@appwrite.io/console";
import { Client, Migrations, Resources } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,7 +7,7 @@ const client = new Client()
const migrations = new Migrations(client);
const result = await migrations.getSupabaseReport({
resources: [],
resources: [Resources.User],
endpoint: 'https://example.com',
apiKey: '<API_KEY>',
databaseHost: '<DATABASE_HOST>',

View file

@ -1,4 +1,4 @@
import { Client, Projects } from "@appwrite.io/console";
import { Client, Projects, Scopes } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -8,7 +8,7 @@ const projects = new Projects(client);
const result = await projects.createJWT({
projectId: '<PROJECT_ID>',
scopes: [],
scopes: [Scopes.SessionsWrite],
duration: 0 // optional
});

View file

@ -1,4 +1,4 @@
import { Client, Projects } from "@appwrite.io/console";
import { Client, Projects, Scopes } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -9,7 +9,7 @@ const projects = new Projects(client);
const result = await projects.createKey({
projectId: '<PROJECT_ID>',
name: '<NAME>',
scopes: [],
scopes: [Scopes.SessionsWrite],
expire: '' // optional
});

View file

@ -1,4 +1,4 @@
import { Client, Projects } from "@appwrite.io/console";
import { Client, Projects, Scopes } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -10,7 +10,7 @@ const result = await projects.updateKey({
projectId: '<PROJECT_ID>',
keyId: '<KEY_ID>',
name: '<NAME>',
scopes: [],
scopes: [Scopes.SessionsWrite],
expire: '' // optional
});

View file

@ -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.updateLabels({
projectId: '<PROJECT_ID>',
labels: []
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Sites } from "@appwrite.io/console";
import { Client, Sites, Frameworks, UseCases } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -7,8 +7,8 @@ const client = new Client()
const sites = new Sites(client);
const result = await sites.listTemplates({
frameworks: [], // optional
useCases: [], // optional
frameworks: [Frameworks.Analog], // optional
useCases: [UseCases.Portfolio], // optional
limit: 1, // optional
offset: 0 // optional
});

View file

@ -1,4 +1,4 @@
import { Client, TablesDB, IndexType } from "@appwrite.io/console";
import { Client, TablesDB, IndexType, OrderBy } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -12,7 +12,7 @@ const result = await tablesDB.createIndex({
key: '',
type: IndexType.Key,
columns: [],
orders: [], // optional
orders: [OrderBy.Asc], // optional
lengths: [] // optional
});

View file

@ -0,0 +1,18 @@
import { Client, TablesDB } 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 tablesDB = new TablesDB(client);
const result = await tablesDB.createLongtextColumn({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
array: false // optional
});
console.log(result);

View file

@ -0,0 +1,18 @@
import { Client, TablesDB } 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 tablesDB = new TablesDB(client);
const result = await tablesDB.createMediumtextColumn({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
array: false // optional
});
console.log(result);

View file

@ -0,0 +1,18 @@
import { Client, TablesDB } 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 tablesDB = new TablesDB(client);
const result = await tablesDB.createTextColumn({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
array: false // optional
});
console.log(result);

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