Merge remote-tracking branch 'origin/1.6.x' into feat-benchmark-headers

This commit is contained in:
Matej Bačo 2024-08-21 12:26:59 +00:00
commit d0cf2e26d6
1285 changed files with 2680 additions and 1506 deletions

View file

@ -15,7 +15,7 @@ return [
[ [
'key' => 'web', 'key' => 'web',
'name' => 'Web', 'name' => 'Web',
'version' => '16.0.0-rc.1', 'version' => '16.0.0-rc.4',
'url' => 'https://github.com/appwrite/sdk-for-web', 'url' => 'https://github.com/appwrite/sdk-for-web',
'package' => 'https://www.npmjs.com/package/appwrite', 'package' => 'https://www.npmjs.com/package/appwrite',
'enabled' => true, 'enabled' => true,
@ -63,7 +63,7 @@ return [
[ [
'key' => 'flutter', 'key' => 'flutter',
'name' => 'Flutter', 'name' => 'Flutter',
'version' => '13.0.0-rc.1', 'version' => '13.0.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-flutter', 'url' => 'https://github.com/appwrite/sdk-for-flutter',
'package' => 'https://pub.dev/packages/appwrite', 'package' => 'https://pub.dev/packages/appwrite',
'enabled' => true, 'enabled' => true,
@ -81,7 +81,7 @@ return [
[ [
'key' => 'apple', 'key' => 'apple',
'name' => 'Apple', 'name' => 'Apple',
'version' => '6.0.0', 'version' => '7.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-apple', 'url' => 'https://github.com/appwrite/sdk-for-apple',
'package' => 'https://github.com/appwrite/sdk-for-apple', 'package' => 'https://github.com/appwrite/sdk-for-apple',
'enabled' => true, 'enabled' => true,
@ -116,7 +116,7 @@ return [
[ [
'key' => 'android', 'key' => 'android',
'name' => 'Android', 'name' => 'Android',
'version' => '5.1.1', 'version' => '6.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-android', 'url' => 'https://github.com/appwrite/sdk-for-android',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
'enabled' => true, 'enabled' => true,
@ -138,7 +138,7 @@ return [
[ [
'key' => 'react-native', 'key' => 'react-native',
'name' => 'React Native', 'name' => 'React Native',
'version' => '0.4.0', 'version' => '0.5.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-react-native', 'url' => 'https://github.com/appwrite/sdk-for-react-native',
'package' => 'https://npmjs.com/package/react-native-appwrite', 'package' => 'https://npmjs.com/package/react-native-appwrite',
'enabled' => true, 'enabled' => true,
@ -203,7 +203,7 @@ return [
[ [
'key' => 'web', 'key' => 'web',
'name' => 'Console', 'name' => 'Console',
'version' => '0.6.3', 'version' => '0.6.5-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-console', 'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '', 'package' => '',
'enabled' => true, 'enabled' => true,
@ -214,14 +214,14 @@ return [
'prism' => 'javascript', 'prism' => 'javascript',
'source' => \realpath(__DIR__ . '/../sdks/console-web'), 'source' => \realpath(__DIR__ . '/../sdks/console-web'),
'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git', 'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git',
'gitBranch' => 'main', 'gitBranch' => 'dev',
'gitRepoName' => 'sdk-for-console', 'gitRepoName' => 'sdk-for-console',
'gitUserName' => 'appwrite', 'gitUserName' => 'appwrite',
], ],
[ [
'key' => 'cli', 'key' => 'cli',
'name' => 'Command Line', 'name' => 'Command Line',
'version' => '6.0.0-rc.4', 'version' => '6.0.0-rc.8',
'url' => 'https://github.com/appwrite/sdk-for-cli', 'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://www.npmjs.com/package/appwrite-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli',
'enabled' => true, 'enabled' => true,
@ -249,7 +249,7 @@ return [
[ [
'key' => 'nodejs', 'key' => 'nodejs',
'name' => 'Node.js', 'name' => 'Node.js',
'version' => '14.0.0-rc.1', 'version' => '14.0.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-node', 'url' => 'https://github.com/appwrite/sdk-for-node',
'package' => 'https://www.npmjs.com/package/node-appwrite', 'package' => 'https://www.npmjs.com/package/node-appwrite',
'enabled' => true, 'enabled' => true,
@ -267,7 +267,7 @@ return [
[ [
'key' => 'deno', 'key' => 'deno',
'name' => 'Deno', 'name' => 'Deno',
'version' => '11.0.0', 'version' => '12.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-deno', 'url' => 'https://github.com/appwrite/sdk-for-deno',
'package' => 'https://deno.land/x/appwrite', 'package' => 'https://deno.land/x/appwrite',
'enabled' => true, 'enabled' => true,
@ -285,7 +285,7 @@ return [
[ [
'key' => 'php', 'key' => 'php',
'name' => 'PHP', 'name' => 'PHP',
'version' => '11.0.2', 'version' => '12.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-php', 'url' => 'https://github.com/appwrite/sdk-for-php',
'package' => 'https://packagist.org/packages/appwrite/appwrite', 'package' => 'https://packagist.org/packages/appwrite/appwrite',
'enabled' => true, 'enabled' => true,
@ -303,7 +303,7 @@ return [
[ [
'key' => 'python', 'key' => 'python',
'name' => 'Python', 'name' => 'Python',
'version' => '5.0.3', 'version' => '6.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-python', 'url' => 'https://github.com/appwrite/sdk-for-python',
'package' => 'https://pypi.org/project/appwrite/', 'package' => 'https://pypi.org/project/appwrite/',
'enabled' => true, 'enabled' => true,
@ -321,7 +321,7 @@ return [
[ [
'key' => 'ruby', 'key' => 'ruby',
'name' => 'Ruby', 'name' => 'Ruby',
'version' => '11.0.2', 'version' => '12.0.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-ruby', 'url' => 'https://github.com/appwrite/sdk-for-ruby',
'package' => 'https://rubygems.org/gems/appwrite', 'package' => 'https://rubygems.org/gems/appwrite',
'enabled' => true, 'enabled' => true,
@ -339,7 +339,7 @@ return [
[ [
'key' => 'go', 'key' => 'go',
'name' => 'Go', 'name' => 'Go',
'version' => '4.0.1', 'version' => '0.0.1-rc.8',
'url' => 'https://github.com/appwrite/sdk-for-go', 'url' => 'https://github.com/appwrite/sdk-for-go',
'package' => 'https://github.com/appwrite/sdk-for-go', 'package' => 'https://github.com/appwrite/sdk-for-go',
'enabled' => true, 'enabled' => true,
@ -354,28 +354,10 @@ return [
'gitUserName' => 'appwrite', 'gitUserName' => 'appwrite',
'gitBranch' => 'dev', 'gitBranch' => 'dev',
], ],
[
'key' => 'java',
'name' => 'Java',
'version' => '4.0.2',
'url' => 'https://github.com/appwrite/sdk-for-java',
'package' => '',
'enabled' => false,
'beta' => true,
'dev' => false,
'hidden' => false,
'family' => APP_PLATFORM_SERVER,
'prism' => 'java',
'source' => \realpath(__DIR__ . '/../sdks/server-java'),
'gitUrl' => 'git@github.com:appwrite/sdk-for-java.git',
'gitRepoName' => 'sdk-for-java',
'gitUserName' => 'appwrite',
'gitBranch' => 'dev',
],
[ [
'key' => 'dotnet', 'key' => 'dotnet',
'name' => '.NET', 'name' => '.NET',
'version' => '0.8.3', 'version' => '0.9.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-dotnet', 'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite', 'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => true, 'enabled' => true,
@ -393,7 +375,7 @@ return [
[ [
'key' => 'dart', 'key' => 'dart',
'name' => 'Dart', 'name' => 'Dart',
'version' => '12.0.0-rc.1', 'version' => '12.0.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-dart', 'url' => 'https://github.com/appwrite/sdk-for-dart',
'package' => 'https://pub.dev/packages/dart_appwrite', 'package' => 'https://pub.dev/packages/dart_appwrite',
'enabled' => true, 'enabled' => true,
@ -411,7 +393,7 @@ return [
[ [
'key' => 'kotlin', 'key' => 'kotlin',
'name' => 'Kotlin', 'name' => 'Kotlin',
'version' => '5.0.2', 'version' => '6.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-kotlin', 'url' => 'https://github.com/appwrite/sdk-for-kotlin',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
'enabled' => true, 'enabled' => true,
@ -433,7 +415,7 @@ return [
[ [
'key' => 'swift', 'key' => 'swift',
'name' => 'Swift', 'name' => 'Swift',
'version' => '5.0.2', 'version' => '6.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-swift', 'url' => 'https://github.com/appwrite/sdk-for-swift',
'package' => 'https://github.com/appwrite/sdk-for-swift', 'package' => 'https://github.com/appwrite/sdk-for-swift',
'enabled' => true, 'enabled' => true,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

88
composer.lock generated
View file

@ -2993,16 +2993,16 @@
"packages-dev": [ "packages-dev": [
{ {
"name": "appwrite/sdk-generator", "name": "appwrite/sdk-generator",
"version": "0.39.11", "version": "0.39.13",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/appwrite/sdk-generator.git", "url": "https://github.com/appwrite/sdk-generator.git",
"reference": "703aea359e8a1baecfc167494e750e79616be745" "reference": "1130d024dd667d132be0b843c970bee82e593aaf"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/703aea359e8a1baecfc167494e750e79616be745", "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/1130d024dd667d132be0b843c970bee82e593aaf",
"reference": "703aea359e8a1baecfc167494e750e79616be745", "reference": "1130d024dd667d132be0b843c970bee82e593aaf",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3038,85 +3038,9 @@
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"support": { "support": {
"issues": "https://github.com/appwrite/sdk-generator/issues", "issues": "https://github.com/appwrite/sdk-generator/issues",
"source": "https://github.com/appwrite/sdk-generator/tree/0.39.11" "source": "https://github.com/appwrite/sdk-generator/tree/0.39.13"
}, },
"time": "2024-08-20T16:01:17+00:00" "time": "2024-08-21T10:45:26+00:00"
},
{
"name": "doctrine/annotations",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/annotations.git",
"reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f",
"reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f",
"shasum": ""
},
"require": {
"doctrine/lexer": "^2 || ^3",
"ext-tokenizer": "*",
"php": "^7.2 || ^8.0",
"psr/cache": "^1 || ^2 || ^3"
},
"require-dev": {
"doctrine/cache": "^2.0",
"doctrine/coding-standard": "^10",
"phpstan/phpstan": "^1.8.0",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"symfony/cache": "^5.4 || ^6",
"vimeo/psalm": "^4.10"
},
"suggest": {
"php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations"
},
"type": "library",
"autoload": {
"psr-4": {
"Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
},
{
"name": "Roman Borschel",
"email": "roman@code-factory.org"
},
{
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de"
},
{
"name": "Jonathan Wage",
"email": "jonwage@gmail.com"
},
{
"name": "Johannes Schmitt",
"email": "schmittjoh@gmail.com"
}
],
"description": "Docblock Annotations Parser",
"homepage": "https://www.doctrine-project.org/projects/annotations.html",
"keywords": [
"annotations",
"docblock",
"parser"
],
"support": {
"issues": "https://github.com/doctrine/annotations/issues",
"source": "https://github.com/doctrine/annotations/tree/2.0.1"
},
"time": "2023-02-02T22:02:53+00:00"
}, },
{ {
"name": "doctrine/deprecations", "name": "doctrine/deprecations",

View file

@ -873,7 +873,7 @@ services:
hostname: exc1 hostname: exc1
<<: *x-logging <<: *x-logging
stop_signal: SIGINT stop_signal: SIGINT
image: openruntimes/executor:0.6.6 image: openruntimes/executor:0.6.5
restart: unless-stopped restart: unless-stopped
networks: networks:
- appwrite - appwrite

View file

@ -11,7 +11,6 @@ Account account = new Account(client);
account.deleteMfaAuthenticator( account.deleteMfaAuthenticator(
AuthenticatorType.TOTP, // type AuthenticatorType.TOTP, // type
"<OTP>", // otp
new CoroutineCallback<>((result, error) -> { new CoroutineCallback<>((result, error) -> {
if (error != null) { if (error != null) {
error.printStackTrace(); error.printStackTrace();

View file

@ -0,0 +1,23 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;"); // Your project ID
Functions functions = new Functions(client);
functions.getDeploymentDownload(
"<FUNCTION_ID>", // functionId
"<DEPLOYMENT_ID>", // deploymentId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);

View file

@ -0,0 +1,22 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;"); // Your project ID
Functions functions = new Functions(client);
functions.getTemplate(
"<TEMPLATE_ID>", // templateId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);

View file

@ -0,0 +1,25 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;"); // Your project ID
Functions functions = new Functions(client);
functions.listTemplates(
listOf(), // runtimes (optional)
listOf(), // useCases (optional)
1, // limit (optional)
0, // offset (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);

View file

@ -11,5 +11,4 @@ val account = Account(client)
val result = account.deleteMfaAuthenticator( val result = account.deleteMfaAuthenticator(
type = AuthenticatorType.TOTP, type = AuthenticatorType.TOTP,
otp = "<OTP>",
) )

View file

@ -0,0 +1,14 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
val functions = Functions(client)
val result = functions.getDeploymentDownload(
functionId = "<FUNCTION_ID>",
deploymentId = "<DEPLOYMENT_ID>",
)

View file

@ -0,0 +1,13 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
val functions = Functions(client)
val result = functions.getTemplate(
templateId = "<TEMPLATE_ID>",
)

View file

@ -0,0 +1,16 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
val functions = Functions(client)
val result = functions.listTemplates(
runtimes = listOf(), // (optional)
useCases = listOf(), // (optional)
limit = 1, // (optional)
offset = 0, // (optional)
)

View file

@ -8,7 +8,6 @@ let client = Client()
let account = Account(client) let account = Account(client)
let result = try await account.deleteMfaAuthenticator( let result = try await account.deleteMfaAuthenticator(
type: .totp, type: .totp
otp: "<OTP>"
) )

View file

@ -0,0 +1,13 @@
import Appwrite
let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
let functions = Functions(client)
let bytes = try await functions.getDeploymentDownload(
functionId: "<FUNCTION_ID>",
deploymentId: "<DEPLOYMENT_ID>"
)

View file

@ -0,0 +1,12 @@
import Appwrite
let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
let functions = Functions(client)
let templateFunction = try await functions.getTemplate(
templateId: "<TEMPLATE_ID>"
)

View file

@ -0,0 +1,15 @@
import Appwrite
let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
let functions = Functions(client)
let templateFunctionList = try await functions.listTemplates(
runtimes: [], // optional
useCases: [], // optional
limit: 1, // optional
offset: 0 // optional
)

View file

@ -8,5 +8,4 @@ Account account = Account(client);
await account.deleteMfaAuthenticator( await account.deleteMfaAuthenticator(
type: AuthenticatorType.totp, type: AuthenticatorType.totp,
otp: '<OTP>',
); );

View file

@ -0,0 +1,29 @@
import 'package:appwrite/appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
Functions functions = Functions(client);
// Downloading file
UInt8List bytes = await functions.getDeploymentDownload(
functionId: '<FUNCTION_ID>',
deploymentId: '<DEPLOYMENT_ID>',
)
final file = File('path_to_file/filename.ext');
file.writeAsBytesSync(bytes);
// Displaying image preview
FutureBuilder(
future: functions.getDeploymentDownload(
functionId:'<FUNCTION_ID>' ,
deploymentId:'<DEPLOYMENT_ID>' ,
), // 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
? Image.memory(snapshot.data)
: CircularProgressIndicator();
}
);

View file

@ -0,0 +1,11 @@
import 'package:appwrite/appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
Functions functions = Functions(client);
TemplateFunction result = await functions.getTemplate(
templateId: '<TEMPLATE_ID>',
);

View file

@ -0,0 +1,14 @@
import 'package:appwrite/appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
Functions functions = Functions(client);
TemplateFunctionList result = await functions.listTemplates(
runtimes: [], // optional
useCases: [], // optional
limit: 1, // optional
offset: 0, // optional
);

View file

@ -1,7 +1,6 @@
mutation { mutation {
accountDeleteMfaAuthenticator( accountDeleteMfaAuthenticator(
type: "totp", type: "totp"
otp: "<OTP>"
) { ) {
status status
} }

View file

@ -30,5 +30,6 @@ mutation {
logs logs
errors errors
duration duration
scheduledAt
} }
} }

View file

@ -0,0 +1,8 @@
query {
functionsGetDeploymentDownload(
functionId: "<FUNCTION_ID>",
deploymentId: "<DEPLOYMENT_ID>"
) {
status
}
}

View file

@ -25,5 +25,6 @@ query {
logs logs
errors errors
duration duration
scheduledAt
} }
} }

View file

@ -0,0 +1,35 @@
query {
functionsGetTemplate(
templateId: "<TEMPLATE_ID>"
) {
icon
id
name
tagline
permissions
events
cron
timeout
useCases
runtimes {
name
commands
entrypoint
providerRootDirectory
}
instructions
vcsProvider
providerRepositoryId
providerOwner
providerVersion
variables {
name
description
value
placeholder
required
type
}
scopes
}
}

View file

@ -28,6 +28,7 @@ query {
logs logs
errors errors
duration duration
scheduledAt
} }
} }
} }

View file

@ -0,0 +1,41 @@
query {
functionsListTemplates(
runtimes: [],
useCases: [],
limit: 1,
offset: 0
) {
total
templates {
icon
id
name
tagline
permissions
events
cron
timeout
useCases
runtimes {
name
commands
entrypoint
providerRootDirectory
}
instructions
vcsProvider
providerRepositoryId
providerOwner
providerVersion
variables {
name
description
value
placeholder
required
type
}
scopes
}
}
}

View file

@ -1,7 +1,7 @@
POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 POST /v1/storage/buckets/{bucketId}/files HTTP/1.1
Host: cloud.appwrite.io Host: cloud.appwrite.io
Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" Content-Type: multipart/form-data; boundary="cec8e8123c05ba25"
X-Appwrite-Response-Format: 1.5.0 X-Appwrite-Response-Format: 1.6.0
X-Appwrite-Project: &lt;YOUR_PROJECT_ID&gt; X-Appwrite-Project: &lt;YOUR_PROJECT_ID&gt;
X-Appwrite-Session: X-Appwrite-Session:
X-Appwrite-JWT: &lt;YOUR_JWT&gt; X-Appwrite-JWT: &lt;YOUR_JWT&gt;

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.createAnonymousSession(); const result = await account.createAnonymousSession();
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession(
'password' // password 'password' // password
); );
console.log(response); console.log(result);

View file

@ -12,4 +12,4 @@ const result = await account.createEmailToken(
false // phrase (optional) false // phrase (optional)
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.createJWT(); const result = await account.createJWT();
console.log(response); console.log(result);

View file

@ -13,4 +13,4 @@ const result = await account.createMagicURLToken(
false // phrase (optional) false // phrase (optional)
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator(
AuthenticatorType.Totp // type AuthenticatorType.Totp // type
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.createMfaChallenge(
AuthenticationFactor.Email // factor AuthenticationFactor.Email // factor
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.createMfaRecoveryCodes(); const result = await account.createMfaRecoveryCodes();
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.createPhoneToken(
'+12065550100' // phone '+12065550100' // phone
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.createPhoneVerification(); const result = await account.createPhoneVerification();
console.log(response); console.log(result);

View file

@ -12,4 +12,4 @@ const result = await account.createPushTarget(
'<PROVIDER_ID>' // providerId (optional) '<PROVIDER_ID>' // providerId (optional)
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.createRecovery(
'https://example.com' // url 'https://example.com' // url
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.createSession(
'<SECRET>' // secret '<SECRET>' // secret
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.createVerification(
'https://example.com' // url 'https://example.com' // url
); );
console.log(response); console.log(result);

View file

@ -13,4 +13,4 @@ const result = await account.create(
'<NAME>' // name (optional) '<NAME>' // name (optional)
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.deleteIdentity(
'<IDENTITY_ID>' // identityId '<IDENTITY_ID>' // identityId
); );
console.log(response); console.log(result);

View file

@ -7,8 +7,7 @@ const client = new Client()
const account = new Account(client); const account = new Account(client);
const result = await account.deleteMfaAuthenticator( const result = await account.deleteMfaAuthenticator(
AuthenticatorType.Totp, // type AuthenticatorType.Totp // type
'<OTP>' // otp
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.deletePushTarget(
'<TARGET_ID>' // targetId '<TARGET_ID>' // targetId
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.deleteSession(
'<SESSION_ID>' // sessionId '<SESSION_ID>' // sessionId
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.deleteSessions(); const result = await account.deleteSessions();
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.getMfaRecoveryCodes(); const result = await account.getMfaRecoveryCodes();
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.getPrefs(); const result = await account.getPrefs();
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.getSession(
'<SESSION_ID>' // sessionId '<SESSION_ID>' // sessionId
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.get(); const result = await account.get();
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.listIdentities(
[] // queries (optional) [] // queries (optional)
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.listLogs(
[] // queries (optional) [] // queries (optional)
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.listMfaFactors(); const result = await account.listMfaFactors();
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.listSessions(); const result = await account.listSessions();
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updateEmail(
'password' // password 'password' // password
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.updateMFA(
false // mfa false // mfa
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession(
'<SECRET>' // secret '<SECRET>' // secret
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator(
'<OTP>' // otp '<OTP>' // otp
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge(
'<OTP>' // otp '<OTP>' // otp
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.updateMfaRecoveryCodes(); const result = await account.updateMfaRecoveryCodes();
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.updateName(
'<NAME>' // name '<NAME>' // name
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updatePassword(
'password' // oldPassword (optional) 'password' // oldPassword (optional)
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updatePhoneSession(
'<SECRET>' // secret '<SECRET>' // secret
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification(
'<SECRET>' // secret '<SECRET>' // secret
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updatePhone(
'password' // password 'password' // password
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.updatePrefs(
{} // prefs {} // prefs
); );
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updatePushTarget(
'<IDENTIFIER>' // identifier '<IDENTIFIER>' // identifier
); );
console.log(response); console.log(result);

View file

@ -12,4 +12,4 @@ const result = await account.updateRecovery(
'' // password '' // password
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await account.updateSession(
'<SESSION_ID>' // sessionId '<SESSION_ID>' // sessionId
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.updateStatus(); const result = await account.updateStatus();
console.log(response); console.log(result);

View file

@ -11,4 +11,4 @@ const result = await account.updateVerification(
'<SECRET>' // secret '<SECRET>' // secret
); );
console.log(response); console.log(result);

View file

@ -14,4 +14,4 @@ const result = await databases.createDocument(
["read("any")"] // permissions (optional) ["read("any")"] // permissions (optional)
); );
console.log(response); console.log(result);

View file

@ -12,4 +12,4 @@ const result = await databases.deleteDocument(
'<DOCUMENT_ID>' // documentId '<DOCUMENT_ID>' // documentId
); );
console.log(response); console.log(result);

View file

@ -13,4 +13,4 @@ const result = await databases.getDocument(
[] // queries (optional) [] // queries (optional)
); );
console.log(response); console.log(result);

View file

@ -12,4 +12,4 @@ const result = await databases.listDocuments(
[] // queries (optional) [] // queries (optional)
); );
console.log(response); console.log(result);

View file

@ -14,4 +14,4 @@ const result = await databases.updateDocument(
["read("any")"] // permissions (optional) ["read("any")"] // permissions (optional)
); );
console.log(response); console.log(result);

View file

@ -16,4 +16,4 @@ const result = await functions.createExecution(
'' // scheduledAt (optional) '' // scheduledAt (optional)
); );
console.log(response); console.log(result);

View file

@ -0,0 +1,14 @@
import { Client, Functions } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
const functions = new Functions(client);
const result = functions.getDeploymentDownload(
'<FUNCTION_ID>', // functionId
'<DEPLOYMENT_ID>' // deploymentId
);
console.log(result);

View file

@ -11,4 +11,4 @@ const result = await functions.getExecution(
'<EXECUTION_ID>' // executionId '<EXECUTION_ID>' // executionId
); );
console.log(response); console.log(result);

View file

@ -0,0 +1,13 @@
import { Client, Functions } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
const functions = new Functions(client);
const result = await functions.getTemplate(
'<TEMPLATE_ID>' // templateId
);
console.log(result);

View file

@ -12,4 +12,4 @@ const result = await functions.listExecutions(
'<SEARCH>' // search (optional) '<SEARCH>' // search (optional)
); );
console.log(response); console.log(result);

View file

@ -0,0 +1,16 @@
import { Client, Functions } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // 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);

View file

@ -10,4 +10,4 @@ const result = await graphql.mutation(
{} // query {} // query
); );
console.log(response); console.log(result);

View file

@ -10,4 +10,4 @@ const result = await graphql.query(
{} // query {} // query
); );
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const locale = new Locale(client);
const result = await locale.get(); const result = await locale.get();
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const locale = new Locale(client);
const result = await locale.listCodes(); const result = await locale.listCodes();
console.log(response); console.log(result);

View file

@ -8,4 +8,4 @@ const locale = new Locale(client);
const result = await locale.listContinents(); const result = await locale.listContinents();
console.log(response); console.log(result);

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