Remove APPWRITE_API_KEY and add scopes

This commit is contained in:
Khushboo Verma
2024-07-26 16:06:40 +05:30
parent 12487e17b0
commit df5c495e8f
+36 -299
View File
@@ -81,16 +81,8 @@ return [
'providerRepositoryId' => 'templates',
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => false,
'type' => 'password'
]
]
'variables' => [],
'scopes' => ["users.read"]
],
[
'icon' => 'icon-upstash',
@@ -620,22 +612,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The API endpoint of the Appwrite. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database to store the short URLs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -660,7 +636,8 @@ return [
'required' => true,
'type' => 'url'
]
]
],
'scopes' => ["databases.read", "databases.write", "collections.write", "attributes.write", "documents.read", "documents.write"]
],
[
'icon' => 'icon-algolia',
@@ -698,14 +675,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the Appwrite database that contains the collection to sync. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -748,15 +717,8 @@ return [
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
]
]
],
'scopes' => ["databases.read", "collections.read", "documents.read"]
],
[
'icon' => 'icon-meilisearch',
@@ -806,14 +768,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the Appwrite database that contains the collection to sync. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -856,15 +810,8 @@ return [
'required' => true,
'type' => 'text'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
]
]
],
'scopes' => ["databases.read", "collections.read", "documents.read"]
],
[
'icon' => 'icon-vonage',
@@ -1112,22 +1059,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'STRIPE_SECRET_KEY',
'description' => 'Secret for sending requests to the Stripe API. <a class="u-bold" target="_blank" href="https://stripe.com/docs/keys">Learn more</a>.',
@@ -1142,7 +1073,8 @@ return [
'required' => true,
'type' => 'password'
]
]
],
'scopes' => ["users.read", "sessions.write", "users.write"]
],
[
'icon' => 'icon-stripe',
@@ -1168,22 +1100,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'STRIPE_SECRET_KEY',
'description' => 'Secret for sending requests to the Stripe API. <a class="u-bold" target="_blank" href="https://stripe.com/docs/keys">Learn more</a>.',
@@ -1214,7 +1130,8 @@ return [
'required' => false,
'type' => 'text'
]
]
],
'scopes' => ["databases.read", "databases.write", "collections.write", "attributes.write", "documents.read", "documents.write"]
],
[
'icon' => 'icon-chat',
@@ -1306,22 +1223,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database where the responses are stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -1353,7 +1254,8 @@ return [
'required' => true,
'type' => 'password'
]
]
],
'scopes' => ["databases.read", "databases.write", "collections.read", "collections.write", "attributes.write", "documents.read", "documents.write", "buckets.read", "buckets.write", "files.read"]
],
[
'icon' => 'icon-eye',
@@ -1379,22 +1281,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database where the responses are stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -1426,7 +1312,8 @@ return [
'required' => true,
'type' => 'password'
]
]
],
"scopes" => ["databases.read", "databases.write", "collections.read", "collections.write", "attributes.write", "documents.read", "documents.write", "buckets.read", "buckets.write", "files.read"]
],
[
'icon' => 'icon-text',
@@ -1452,22 +1339,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database where the responses are stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -1499,7 +1370,8 @@ return [
'required' => true,
'type' => 'password'
]
]
],
"scopes" => ["databases.read", "databases.write", "collections.read", "collections.write", "attributes.write", "documents.read", "documents.write", "buckets.read", "buckets.write", "files.read"]
],
[
'icon' => 'icon-chat',
@@ -1525,22 +1397,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database where the responses are stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -1572,7 +1428,8 @@ return [
'required' => true,
'type' => 'password'
]
]
],
"scopes" => ["buckets.read", "buckets.write", "files.read", "files.write"]
],
[
'icon' => 'icon-chip',
@@ -1640,22 +1497,6 @@ return [
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_BUCKET_ID',
'description' => 'The ID of the bucket where audio is stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/storage/buckets">Learn more</a>.',
@@ -1663,7 +1504,8 @@ return [
'required' => true,
'type' => 'text'
]
]
],
"scopes" => ["buckets.write", "files.read", "files.write"]
],
[
'icon' => 'icon-chip',
@@ -1785,22 +1627,6 @@ return [
'required' => true,
'type' => 'text'
],
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database where the documents are stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -1815,7 +1641,8 @@ return [
'required' => true,
'type' => 'text'
]
]
],
"scopes" => ["databases.read", "collections.read", "documents.read"]
],
[
'icon' => 'icon-chip',
@@ -1863,22 +1690,6 @@ return [
'required' => true,
'type' => 'text'
],
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database where the documents are stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -1893,7 +1704,8 @@ return [
'required' => true,
'type' => 'text'
]
]
],
"scopes" => ["databases.read", "collections.read", "documents.read"]
],
[
'icon' => 'icon-chat',
@@ -1926,22 +1738,6 @@ return [
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database where the responses are stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -1963,7 +1759,8 @@ return [
'required' => true,
'type' => 'text'
]
]
],
"scopes" => ["buckets.read", "buckets.write", "files.read", "files.write"]
],
[
'icon' => 'icon-chip',
@@ -1996,22 +1793,6 @@ return [
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_BUCKET_ID',
'description' => 'The ID of the bucket where audio is stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/storage/buckets">Learn more</a>.',
@@ -2019,7 +1800,8 @@ return [
'required' => true,
'type' => 'text'
]
]
],
"scopes" => ["buckets.read", "buckets.write", "files.read", "files.write"]
],
[
'icon' => 'icon-chip',
@@ -2085,22 +1867,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_BUCKET_ID',
'description' => 'The ID of the bucket where generated music is stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/storage/buckets">Learn more</a>.',
@@ -2116,7 +1882,8 @@ return [
'required' => true,
'type' => 'password'
]
]
],
"scopes" => ["buckets.read", "buckets.write", "files.read", "files.write"]
],
[
'icon' => 'icon-chip',
@@ -2176,22 +1943,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'LEMON_SQUEEZY_API_KEY',
'description' => 'API key for sending requests to the Lemon Squeezy API. <a class="u-bold" target="_blank" href="https://docs.lemonsqueezy.com/api#authentication">Learn more</a>.',
@@ -2220,7 +1971,8 @@ return [
'required' => true,
'type' => 'text'
]
]
],
"scopes" => ["users.read", "users.write"]
],
[
'icon' => 'icon-currency-dollar',
@@ -2246,22 +1998,6 @@ return [
'providerOwner' => 'appwrite',
'providerBranch' => 'main',
'variables' => [
[
'name' => 'APPWRITE_API_KEY',
'description' => 'The API Key to authenticate against Appwrite\'s Server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.',
'value' => '',
'placeholder' => 'd1efb...aec35',
'required' => true,
'type' => 'password'
],
[
'name' => 'APPWRITE_ENDPOINT',
'description' => 'The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.',
'value' => 'https://cloud.appwrite.io/v1',
'placeholder' => 'https://cloud.appwrite.io/v1',
'required' => false,
'type' => 'url'
],
[
'name' => 'APPWRITE_DATABASE_ID',
'description' => 'The ID of the database to store paid orders. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/databases/databases">Learn more</a>.',
@@ -2306,6 +2042,7 @@ return [
'required' => true,
'type' => 'text'
]
]
],
"scopes" => ["users.read", "users.write"]
]
];