Merge branch '1.8.x' into chore-formatinstance

This commit is contained in:
Chirag Aggarwal 2025-11-18 15:34:42 +05:30 committed by GitHub
commit 7b3bceeb7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
127 changed files with 249 additions and 153 deletions

28
composer.lock generated
View file

@ -5383,16 +5383,16 @@
"packages-dev": [
{
"name": "appwrite/sdk-generator",
"version": "1.5.5",
"version": "1.5.7",
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
"reference": "1f3686e41a2d10829220b74f54c80a770e9f968a"
"reference": "dc6720ba92ed98e2c62b2a319d4371f167ccc808"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/1f3686e41a2d10829220b74f54c80a770e9f968a",
"reference": "1f3686e41a2d10829220b74f54c80a770e9f968a",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/dc6720ba92ed98e2c62b2a319d4371f167ccc808",
"reference": "dc6720ba92ed98e2c62b2a319d4371f167ccc808",
"shasum": ""
},
"require": {
@ -5428,9 +5428,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.5.5"
"source": "https://github.com/appwrite/sdk-generator/tree/1.5.7"
},
"time": "2025-11-14T05:56:33+00:00"
"time": "2025-11-18T05:57:01+00:00"
},
{
"name": "doctrine/annotations",
@ -8718,16 +8718,16 @@
},
{
"name": "theseer/tokenizer",
"version": "1.3.0",
"version": "1.3.1",
"source": {
"type": "git",
"url": "https://github.com/theseer/tokenizer.git",
"reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb"
"reference": "b7489ce515e168639d17feec34b8847c326b0b3c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/d74205c497bfbca49f34d4bc4c19c17e22db4ebb",
"reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c",
"reference": "b7489ce515e168639d17feec34b8847c326b0b3c",
"shasum": ""
},
"require": {
@ -8756,7 +8756,7 @@
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"support": {
"issues": "https://github.com/theseer/tokenizer/issues",
"source": "https://github.com/theseer/tokenizer/tree/1.3.0"
"source": "https://github.com/theseer/tokenizer/tree/1.3.1"
},
"funding": [
{
@ -8764,7 +8764,7 @@
"type": "github"
}
],
"time": "2025-11-13T13:44:09+00:00"
"time": "2025-11-17T20:03:58+00:00"
},
{
"name": "twig/twig",
@ -8897,7 +8897,7 @@
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"stability-flags": {},
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
@ -8921,5 +8921,5 @@
"platform-overrides": {
"php": "8.3"
},
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}

View file

@ -1,6 +1,9 @@
import io.appwrite.Client;
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;
Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -14,11 +17,11 @@ avatars.getScreenshot(
1, // viewportWidth (optional)
1, // viewportHeight (optional)
0.1, // scale (optional)
theme.LIGHT, // theme (optional)
Theme.LIGHT, // theme (optional)
"<USER_AGENT>", // userAgent (optional)
false, // fullpage (optional)
"<LOCALE>", // locale (optional)
timezone.AFRICA_ABIDJAN, // timezone (optional)
Timezone.AFRICA_ABIDJAN, // timezone (optional)
-90, // latitude (optional)
-180, // longitude (optional)
0, // accuracy (optional)
@ -28,7 +31,7 @@ avatars.getScreenshot(
0, // width (optional)
0, // height (optional)
-1, // quality (optional)
output.JPG, // output (optional)
Output.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.Functions;
import io.appwrite.enums.ExecutionMethod;
Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Storage;
import io.appwrite.enums.ImageGravity;
import io.appwrite.enums.ImageFormat;
Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,9 @@
import io.appwrite.Client
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
val client = Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
import io.appwrite.enums.ExecutionMethod
val client = Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,8 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Storage
import io.appwrite.enums.ImageGravity
import io.appwrite.enums.ImageFormat
val client = Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -13,11 +13,11 @@ Uint8List bytes = await avatars.getScreenshot(
viewportWidth: 1, // optional
viewportHeight: 1, // optional
scale: 0.1, // optional
theme: .light, // optional
theme: Theme.light, // optional
userAgent: '<USER_AGENT>', // optional
fullpage: false, // optional
locale: '<LOCALE>', // optional
timezone: .africaAbidjan, // optional
timezone: Timezone.africaAbidjan, // optional
latitude: -90, // optional
longitude: -180, // optional
accuracy: 0, // optional
@ -27,7 +27,7 @@ Uint8List bytes = await avatars.getScreenshot(
width: 0, // optional
height: 0, // optional
quality: -1, // optional
output: .jpg, // optional
output: Output.jpg, // optional
)
final file = File('path_to_file/filename.ext');
@ -41,11 +41,11 @@ FutureBuilder(
viewportWidth:1 , // optional
viewportHeight:1 , // optional
scale:0.1 , // optional
theme: .light, // optional
theme: Theme.light, // optional
userAgent:'<USER_AGENT>' , // optional
fullpage:false , // optional
locale:'<LOCALE>' , // optional
timezone: .africaAbidjan, // optional
timezone: Timezone.africaAbidjan, // optional
latitude:-90 , // optional
longitude:-180 , // optional
accuracy:0 , // optional
@ -55,7 +55,7 @@ FutureBuilder(
width:0 , // optional
height:0 , // optional
quality:-1 , // optional
output: .jpg, // optional
output: Output.jpg, // 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

@ -1,4 +1,4 @@
import { Client, Avatars, , , } from "react-native-appwrite";
import { Client, Avatars, Theme, Timezone, Output } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -12,11 +12,11 @@ const result = avatars.getScreenshot({
viewportWidth: 1, // optional
viewportHeight: 1, // optional
scale: 0.1, // optional
theme: .Light, // optional
theme: Theme.Light, // optional
userAgent: '<USER_AGENT>', // optional
fullpage: false, // optional
locale: '<LOCALE>', // optional
timezone: .AfricaAbidjan, // optional
timezone: Timezone.AfricaAbidjan, // optional
latitude: -90, // optional
longitude: -180, // optional
accuracy: 0, // optional
@ -26,7 +26,7 @@ const result = avatars.getScreenshot({
width: 0, // optional
height: 0, // optional
quality: -1, // optional
output: .Jpg // optional
output: Output.Jpg // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Avatars, , , } from "appwrite";
import { Client, Avatars, Theme, Timezone, Output } from "appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -12,11 +12,11 @@ const result = avatars.getScreenshot({
viewportWidth: 1, // optional
viewportHeight: 1, // optional
scale: 0.1, // optional
theme: .Light, // optional
theme: Theme.Light, // optional
userAgent: '<USER_AGENT>', // optional
fullpage: false, // optional
locale: '<LOCALE>', // optional
timezone: .AfricaAbidjan, // optional
timezone: Timezone.AfricaAbidjan, // optional
latitude: -90, // optional
longitude: -180, // optional
accuracy: 0, // optional
@ -26,7 +26,7 @@ const result = avatars.getScreenshot({
width: 0, // optional
height: 0, // optional
quality: -1, // optional
output: .Jpg // optional
output: Output.Jpg // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Avatars, , , } from "@appwrite.io/console";
import { Client, Avatars, Theme, Timezone, Output } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -12,11 +12,11 @@ const result = avatars.getScreenshot({
viewportWidth: 1, // optional
viewportHeight: 1, // optional
scale: 0.1, // optional
theme: .Light, // optional
theme: Theme.Light, // optional
userAgent: '<USER_AGENT>', // optional
fullpage: false, // optional
locale: '<LOCALE>', // optional
timezone: .AfricaAbidjan, // optional
timezone: Timezone.AfricaAbidjan, // optional
latitude: -90, // optional
longitude: -180, // optional
accuracy: 0, // optional
@ -26,7 +26,7 @@ const result = avatars.getScreenshot({
width: 0, // optional
height: 0, // optional
quality: -1, // optional
output: .Jpg // optional
output: Output.Jpg // optional
});
console.log(result);

View file

@ -1,4 +1,4 @@
import { Client, Functions, } from "@appwrite.io/console";
import { Client, Functions, Runtime } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -9,7 +9,7 @@ const functions = new Functions(client);
const result = await functions.create({
functionId: '<FUNCTION_ID>',
name: '<NAME>',
runtime: .Node145,
runtime: Runtime.Node145,
execute: ["any"], // optional
events: [], // optional
schedule: '', // optional

View file

@ -1,4 +1,4 @@
import { Client, Functions, } from "@appwrite.io/console";
import { Client, Functions, Runtime } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -9,7 +9,7 @@ const functions = new Functions(client);
const result = await functions.update({
functionId: '<FUNCTION_ID>',
name: '<NAME>',
runtime: .Node145, // optional
runtime: Runtime.Node145, // optional
execute: ["any"], // optional
events: [], // optional
schedule: '', // optional

View file

@ -1,4 +1,4 @@
import { Client, Health, } from "@appwrite.io/console";
import { Client, Health, Name } 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 health = new Health(client);
const result = await health.getFailedJobs({
name: .V1Database,
name: Name.V1Database,
threshold: null // optional
});

View file

@ -1,4 +1,4 @@
import { Client, Projects, } from "@appwrite.io/console";
import { Client, Projects, Region } 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.create({
projectId: '',
name: '<NAME>',
teamId: '<TEAM_ID>',
region: .Default, // optional
region: Region.Default, // optional
description: '<DESCRIPTION>', // optional
logo: '<LOGO>', // optional
url: 'https://example.com', // optional

View file

@ -1,4 +1,4 @@
import { Client, Projects, } from "@appwrite.io/console";
import { Client, Projects, Api } 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.updateAPIStatus({
projectId: '<PROJECT_ID>',
api: .Rest,
api: Api.Rest,
status: false
});

View file

@ -1,4 +1,4 @@
import { Client, Proxy, , ProxyResourceType } from "@appwrite.io/console";
import { Client, Proxy, StatusCode, ProxyResourceType } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -9,7 +9,7 @@ const proxy = new Proxy(client);
const result = await proxy.createRedirectRule({
domain: '',
url: 'https://example.com',
statusCode: .MovedPermanently301,
statusCode: StatusCode.MovedPermanently301,
resourceId: '<RESOURCE_ID>',
resourceType: ProxyResourceType.Site
});

View file

@ -1,4 +1,4 @@
import { Client, Sites, , , } from "@appwrite.io/console";
import { Client, Sites, Framework, BuildRuntime, Adapter } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -9,15 +9,15 @@ const sites = new Sites(client);
const result = await sites.create({
siteId: '<SITE_ID>',
name: '<NAME>',
framework: .Analog,
buildRuntime: .Node145,
framework: Framework.Analog,
buildRuntime: BuildRuntime.Node145,
enabled: false, // optional
logging: false, // optional
timeout: 1, // optional
installCommand: '<INSTALL_COMMAND>', // optional
buildCommand: '<BUILD_COMMAND>', // optional
outputDirectory: '<OUTPUT_DIRECTORY>', // optional
adapter: .Static, // optional
adapter: Adapter.Static, // optional
installationId: '<INSTALLATION_ID>', // optional
fallbackFile: '<FALLBACK_FILE>', // optional
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional

View file

@ -1,4 +1,4 @@
import { Client, Sites, , , } from "@appwrite.io/console";
import { Client, Sites, Framework, BuildRuntime, Adapter } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -9,15 +9,15 @@ const sites = new Sites(client);
const result = await sites.update({
siteId: '<SITE_ID>',
name: '<NAME>',
framework: .Analog,
framework: Framework.Analog,
enabled: false, // optional
logging: false, // optional
timeout: 1, // optional
installCommand: '<INSTALL_COMMAND>', // optional
buildCommand: '<BUILD_COMMAND>', // optional
outputDirectory: '<OUTPUT_DIRECTORY>', // optional
buildRuntime: .Node145, // optional
adapter: .Static, // optional
buildRuntime: BuildRuntime.Node145, // optional
adapter: Adapter.Static, // optional
fallbackFile: '<FALLBACK_FILE>', // optional
installationId: '<INSTALLATION_ID>', // optional
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional

View file

@ -1,4 +1,4 @@
import { Client, Storage, , Permission, Role } from "@appwrite.io/console";
import { Client, Storage, Compression, Permission, Role } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -14,7 +14,7 @@ const result = await storage.createBucket({
enabled: false, // optional
maximumFileSize: 1, // optional
allowedFileExtensions: [], // optional
compression: .None, // optional
compression: Compression.None, // optional
encryption: false, // optional
antivirus: false, // optional
transformations: false // optional

View file

@ -1,4 +1,4 @@
import { Client, Storage, , Permission, Role } from "@appwrite.io/console";
import { Client, Storage, Compression, Permission, Role } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@ -14,7 +14,7 @@ const result = await storage.updateBucket({
enabled: false, // optional
maximumFileSize: 1, // optional
allowedFileExtensions: [], // optional
compression: .None, // optional
compression: Compression.None, // optional
encryption: false, // optional
antivirus: false, // optional
transformations: false // optional

View file

@ -13,11 +13,11 @@ Uint8List result = await avatars.getScreenshot(
viewportWidth: 1, // (optional)
viewportHeight: 1, // (optional)
scale: 0.1, // (optional)
theme: .light, // (optional)
theme: Theme.light, // (optional)
userAgent: '<USER_AGENT>', // (optional)
fullpage: false, // (optional)
locale: '<LOCALE>', // (optional)
timezone: .africaAbidjan, // (optional)
timezone: Timezone.africaAbidjan, // (optional)
latitude: -90, // (optional)
longitude: -180, // (optional)
accuracy: 0, // (optional)
@ -27,5 +27,5 @@ Uint8List result = await avatars.getScreenshot(
width: 0, // (optional)
height: 0, // (optional)
quality: -1, // (optional)
output: .jpg, // (optional)
output: Output.jpg, // (optional)
);

View file

@ -10,7 +10,7 @@ Functions functions = Functions(client);
Func result = await functions.create(
functionId: '<FUNCTION_ID>',
name: '<NAME>',
runtime: .node145,
runtime: Runtime.node145,
execute: ["any"], // (optional)
events: [], // (optional)
schedule: '', // (optional)

View file

@ -10,7 +10,7 @@ Functions functions = Functions(client);
Func result = await functions.update(
functionId: '<FUNCTION_ID>',
name: '<NAME>',
runtime: .node145, // (optional)
runtime: Runtime.node145, // (optional)
execute: ["any"], // (optional)
events: [], // (optional)
schedule: '', // (optional)

View file

@ -8,6 +8,6 @@ Client client = Client()
Health health = Health(client);
HealthQueue result = await health.getFailedJobs(
name: .v1Database,
name: Name.v1Database,
threshold: 0, // (optional)
);

View file

@ -10,15 +10,15 @@ Sites sites = Sites(client);
Site result = await sites.create(
siteId: '<SITE_ID>',
name: '<NAME>',
framework: .analog,
buildRuntime: .node145,
framework: Framework.analog,
buildRuntime: BuildRuntime.node145,
enabled: false, // (optional)
logging: false, // (optional)
timeout: 1, // (optional)
installCommand: '<INSTALL_COMMAND>', // (optional)
buildCommand: '<BUILD_COMMAND>', // (optional)
outputDirectory: '<OUTPUT_DIRECTORY>', // (optional)
adapter: .static, // (optional)
adapter: Adapter.static, // (optional)
installationId: '<INSTALLATION_ID>', // (optional)
fallbackFile: '<FALLBACK_FILE>', // (optional)
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional)

View file

@ -10,15 +10,15 @@ Sites sites = Sites(client);
Site result = await sites.update(
siteId: '<SITE_ID>',
name: '<NAME>',
framework: .analog,
framework: Framework.analog,
enabled: false, // (optional)
logging: false, // (optional)
timeout: 1, // (optional)
installCommand: '<INSTALL_COMMAND>', // (optional)
buildCommand: '<BUILD_COMMAND>', // (optional)
outputDirectory: '<OUTPUT_DIRECTORY>', // (optional)
buildRuntime: .node145, // (optional)
adapter: .static, // (optional)
buildRuntime: BuildRuntime.node145, // (optional)
adapter: Adapter.static, // (optional)
fallbackFile: '<FALLBACK_FILE>', // (optional)
installationId: '<INSTALLATION_ID>', // (optional)
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional)

View file

@ -17,7 +17,7 @@ Bucket result = await storage.createBucket(
enabled: false, // (optional)
maximumFileSize: 1, // (optional)
allowedFileExtensions: [], // (optional)
compression: .none, // (optional)
compression: Compression.none, // (optional)
encryption: false, // (optional)
antivirus: false, // (optional)
transformations: false, // (optional)

View file

@ -17,7 +17,7 @@ Bucket result = await storage.updateBucket(
enabled: false, // (optional)
maximumFileSize: 1, // (optional)
allowedFileExtensions: [], // (optional)
compression: .none, // (optional)
compression: Compression.none, // (optional)
encryption: false, // (optional)
antivirus: false, // (optional)
transformations: false, // (optional)

View file

@ -16,11 +16,11 @@ byte[] result = await avatars.GetScreenshot(
viewportWidth: 1, // optional
viewportHeight: 1, // optional
scale: 0.1, // optional
theme: .Light, // optional
theme: Theme.Light, // optional
userAgent: "<USER_AGENT>", // optional
fullpage: false, // optional
locale: "<LOCALE>", // optional
timezone: .AfricaAbidjan, // optional
timezone: Timezone.AfricaAbidjan, // optional
latitude: -90, // optional
longitude: -180, // optional
accuracy: 0, // optional
@ -30,5 +30,5 @@ byte[] result = await avatars.GetScreenshot(
width: 0, // optional
height: 0, // optional
quality: -1, // optional
output: .Jpg // optional
output: Output.Jpg // optional
);

View file

@ -13,7 +13,7 @@ Functions functions = new Functions(client);
Function result = await functions.Create(
functionId: "<FUNCTION_ID>",
name: "<NAME>",
runtime: .Node145,
runtime: Runtime.Node145,
execute: ["any"], // optional
events: new List<string>(), // optional
schedule: "", // optional

View file

@ -13,7 +13,7 @@ Functions functions = new Functions(client);
Function result = await functions.Update(
functionId: "<FUNCTION_ID>",
name: "<NAME>",
runtime: .Node145, // optional
runtime: Runtime.Node145, // optional
execute: ["any"], // optional
events: new List<string>(), // optional
schedule: "", // optional

View file

@ -11,6 +11,6 @@ Client client = new Client()
Health health = new Health(client);
HealthQueue result = await health.GetFailedJobs(
name: .V1Database,
name: Name.V1Database,
threshold: 0 // optional
);

View file

@ -13,15 +13,15 @@ Sites sites = new Sites(client);
Site result = await sites.Create(
siteId: "<SITE_ID>",
name: "<NAME>",
framework: .Analog,
buildRuntime: .Node145,
framework: Framework.Analog,
buildRuntime: BuildRuntime.Node145,
enabled: false, // optional
logging: false, // optional
timeout: 1, // optional
installCommand: "<INSTALL_COMMAND>", // optional
buildCommand: "<BUILD_COMMAND>", // optional
outputDirectory: "<OUTPUT_DIRECTORY>", // optional
adapter: .Static, // optional
adapter: Adapter.Static, // optional
installationId: "<INSTALLATION_ID>", // optional
fallbackFile: "<FALLBACK_FILE>", // optional
providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional

View file

@ -13,15 +13,15 @@ Sites sites = new Sites(client);
Site result = await sites.Update(
siteId: "<SITE_ID>",
name: "<NAME>",
framework: .Analog,
framework: Framework.Analog,
enabled: false, // optional
logging: false, // optional
timeout: 1, // optional
installCommand: "<INSTALL_COMMAND>", // optional
buildCommand: "<BUILD_COMMAND>", // optional
outputDirectory: "<OUTPUT_DIRECTORY>", // optional
buildRuntime: .Node145, // optional
adapter: .Static, // optional
buildRuntime: BuildRuntime.Node145, // optional
adapter: Adapter.Static, // optional
fallbackFile: "<FALLBACK_FILE>", // optional
installationId: "<INSTALLATION_ID>", // optional
providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional

View file

@ -18,7 +18,7 @@ Bucket result = await storage.CreateBucket(
enabled: false, // optional
maximumFileSize: 1, // optional
allowedFileExtensions: new List<string>(), // optional
compression: .None, // optional
compression: Compression.None, // optional
encryption: false, // optional
antivirus: false, // optional
transformations: false // optional

View file

@ -18,7 +18,7 @@ Bucket result = await storage.UpdateBucket(
enabled: false, // optional
maximumFileSize: 1, // optional
allowedFileExtensions: new List<string>(), // optional
compression: .None, // optional
compression: Compression.None, // optional
encryption: false, // optional
antivirus: false, // optional
transformations: false // optional

View file

@ -1,6 +1,9 @@
import io.appwrite.Client;
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;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -15,11 +18,11 @@ avatars.getScreenshot(
1, // viewportWidth (optional)
1, // viewportHeight (optional)
0.1, // scale (optional)
.LIGHT, // theme (optional)
Theme.LIGHT, // theme (optional)
"<USER_AGENT>", // userAgent (optional)
false, // fullpage (optional)
"<LOCALE>", // locale (optional)
.AFRICA_ABIDJAN, // timezone (optional)
Timezone.AFRICA_ABIDJAN, // timezone (optional)
-90, // latitude (optional)
-180, // longitude (optional)
0, // accuracy (optional)
@ -29,7 +32,7 @@ avatars.getScreenshot(
0, // width (optional)
0, // height (optional)
-1, // quality (optional)
.JPG, // output (optional)
Output.JPG, // output (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -2,6 +2,7 @@ import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Databases;
import io.appwrite.enums.RelationshipType;
import io.appwrite.enums.RelationMutate;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Databases;
import io.appwrite.enums.RelationMutate;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
import io.appwrite.enums.ExecutionMethod;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -13,7 +13,7 @@ Functions functions = new Functions(client);
functions.create(
"<FUNCTION_ID>", // functionId
"<NAME>", // name
.NODE_14_5, // runtime
Runtime.NODE_14_5, // runtime
listOf("any"), // execute (optional)
listOf(), // events (optional)
"", // schedule (optional)

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
import io.appwrite.enums.DeploymentDownloadType;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
import io.appwrite.enums.Runtime;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -12,7 +13,7 @@ Functions functions = new Functions(client);
functions.update(
"<FUNCTION_ID>", // functionId
"<NAME>", // name
.NODE_14_5, // runtime (optional)
Runtime.NODE_14_5, // runtime (optional)
listOf("any"), // execute (optional)
listOf(), // events (optional)
"", // schedule (optional)

View file

@ -11,7 +11,7 @@ Client client = new Client()
Health health = new Health(client);
health.getFailedJobs(
.V1_DATABASE, // name
Name.V1_DATABASE, // name
0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Messaging;
import io.appwrite.enums.MessagePriority;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Messaging;
import io.appwrite.enums.SmtpEncryption;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Messaging;
import io.appwrite.enums.MessagePriority;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Messaging;
import io.appwrite.enums.SmtpEncryption;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -3,6 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Sites;
import io.appwrite.enums.Framework;
import io.appwrite.enums.BuildRuntime;
import io.appwrite.enums.Adapter;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -14,15 +15,15 @@ Sites sites = new Sites(client);
sites.create(
"<SITE_ID>", // siteId
"<NAME>", // name
.ANALOG, // framework
.NODE_14_5, // buildRuntime
Framework.ANALOG, // framework
BuildRuntime.NODE_14_5, // buildRuntime
false, // enabled (optional)
false, // logging (optional)
1, // timeout (optional)
"<INSTALL_COMMAND>", // installCommand (optional)
"<BUILD_COMMAND>", // buildCommand (optional)
"<OUTPUT_DIRECTORY>", // outputDirectory (optional)
.STATIC, // adapter (optional)
Adapter.STATIC, // adapter (optional)
"<INSTALLATION_ID>", // installationId (optional)
"<FALLBACK_FILE>", // fallbackFile (optional)
"<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional)

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Sites;
import io.appwrite.enums.DeploymentDownloadType;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -2,6 +2,8 @@ import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Sites;
import io.appwrite.enums.Framework;
import io.appwrite.enums.BuildRuntime;
import io.appwrite.enums.Adapter;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -13,15 +15,15 @@ Sites sites = new Sites(client);
sites.update(
"<SITE_ID>", // siteId
"<NAME>", // name
.ANALOG, // framework
Framework.ANALOG, // framework
false, // enabled (optional)
false, // logging (optional)
1, // timeout (optional)
"<INSTALL_COMMAND>", // installCommand (optional)
"<BUILD_COMMAND>", // buildCommand (optional)
"<OUTPUT_DIRECTORY>", // outputDirectory (optional)
.NODE_14_5, // buildRuntime (optional)
.STATIC, // adapter (optional)
BuildRuntime.NODE_14_5, // buildRuntime (optional)
Adapter.STATIC, // adapter (optional)
"<FALLBACK_FILE>", // fallbackFile (optional)
"<INSTALLATION_ID>", // installationId (optional)
"<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional)

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Storage;
import io.appwrite.enums.Compression;
import io.appwrite.Permission;
import io.appwrite.Role;
@ -19,7 +20,7 @@ storage.createBucket(
false, // enabled (optional)
1, // maximumFileSize (optional)
listOf(), // allowedFileExtensions (optional)
.NONE, // compression (optional)
Compression.NONE, // compression (optional)
false, // encryption (optional)
false, // antivirus (optional)
false, // transformations (optional)

View file

@ -1,6 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Storage;
import io.appwrite.enums.ImageGravity;
import io.appwrite.enums.ImageFormat;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Storage;
import io.appwrite.enums.Compression;
import io.appwrite.Permission;
import io.appwrite.Role;
@ -19,7 +20,7 @@ storage.updateBucket(
false, // enabled (optional)
1, // maximumFileSize (optional)
listOf(), // allowedFileExtensions (optional)
.NONE, // compression (optional)
Compression.NONE, // compression (optional)
false, // encryption (optional)
false, // antivirus (optional)
false, // transformations (optional)

View file

@ -2,6 +2,7 @@ import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;
import io.appwrite.enums.RelationshipType;
import io.appwrite.enums.RelationMutate;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;
import io.appwrite.enums.RelationMutate;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Users;
import io.appwrite.enums.PasswordHash;
Client client = new Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,9 @@
import io.appwrite.Client
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
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -2,6 +2,7 @@ import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Databases
import io.appwrite.enums.RelationshipType
import io.appwrite.enums.RelationMutate
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Databases
import io.appwrite.enums.RelationMutate
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
import io.appwrite.enums.ExecutionMethod
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -13,7 +13,7 @@ val functions = Functions(client)
val response = functions.create(
functionId = "<FUNCTION_ID>",
name = "<NAME>",
runtime = .NODE_14_5,
runtime = Runtime.NODE_14_5,
execute = listOf("any"), // optional
events = listOf(), // optional
schedule = "", // optional

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
import io.appwrite.enums.DeploymentDownloadType
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
import io.appwrite.enums.Runtime
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -11,6 +11,6 @@ val client = Client()
val health = Health(client)
val response = health.getFailedJobs(
name = .V1_DATABASE,
name = Name.V1_DATABASE,
threshold = 0 // optional
)

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Messaging
import io.appwrite.enums.MessagePriority
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Messaging
import io.appwrite.enums.SmtpEncryption
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Messaging
import io.appwrite.enums.MessagePriority
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Messaging
import io.appwrite.enums.SmtpEncryption
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -3,6 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Sites
import io.appwrite.enums.Framework
import io.appwrite.enums.BuildRuntime
import io.appwrite.enums.Adapter
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -14,8 +15,8 @@ val sites = Sites(client)
val response = sites.create(
siteId = "<SITE_ID>",
name = "<NAME>",
framework = .ANALOG,
buildRuntime = .NODE_14_5,
framework = Framework.ANALOG,
buildRuntime = BuildRuntime.NODE_14_5,
enabled = false, // optional
logging = false, // optional
timeout = 1, // optional

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Sites
import io.appwrite.enums.DeploymentDownloadType
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -2,6 +2,8 @@ import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Sites
import io.appwrite.enums.Framework
import io.appwrite.enums.BuildRuntime
import io.appwrite.enums.Adapter
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@ -13,7 +15,7 @@ val sites = Sites(client)
val response = sites.update(
siteId = "<SITE_ID>",
name = "<NAME>",
framework = .ANALOG,
framework = Framework.ANALOG,
enabled = false, // optional
logging = false, // optional
timeout = 1, // optional

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Storage
import io.appwrite.enums.Compression
import io.appwrite.Permission
import io.appwrite.Role

View file

@ -1,6 +1,8 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Storage
import io.appwrite.enums.ImageGravity
import io.appwrite.enums.ImageFormat
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Storage
import io.appwrite.enums.Compression
import io.appwrite.Permission
import io.appwrite.Role

View file

@ -2,6 +2,7 @@ import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.TablesDB
import io.appwrite.enums.RelationshipType
import io.appwrite.enums.RelationMutate
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.TablesDB
import io.appwrite.enums.RelationMutate
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -1,6 +1,7 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Users
import io.appwrite.enums.PasswordHash
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint

View file

@ -13,11 +13,11 @@ const result = await avatars.getScreenshot({
viewportWidth: 1, // optional
viewportHeight: 1, // optional
scale: 0.1, // optional
theme: sdk..Light, // optional
theme: sdk.Theme.Light, // optional
userAgent: '<USER_AGENT>', // optional
fullpage: false, // optional
locale: '<LOCALE>', // optional
timezone: sdk..AfricaAbidjan, // optional
timezone: sdk.Timezone.AfricaAbidjan, // optional
latitude: -90, // optional
longitude: -180, // optional
accuracy: 0, // optional
@ -27,5 +27,5 @@ const result = await avatars.getScreenshot({
width: 0, // optional
height: 0, // optional
quality: -1, // optional
output: sdk..Jpg // optional
output: sdk.Output.Jpg // optional
});

View file

@ -10,7 +10,7 @@ const functions = new sdk.Functions(client);
const result = await functions.create({
functionId: '<FUNCTION_ID>',
name: '<NAME>',
runtime: sdk..Node145,
runtime: sdk.Runtime.Node145,
execute: ["any"], // optional
events: [], // optional
schedule: '', // optional

View file

@ -10,7 +10,7 @@ const functions = new sdk.Functions(client);
const result = await functions.update({
functionId: '<FUNCTION_ID>',
name: '<NAME>',
runtime: sdk..Node145, // optional
runtime: sdk.Runtime.Node145, // optional
execute: ["any"], // optional
events: [], // optional
schedule: '', // optional

View file

@ -8,6 +8,6 @@ const client = new sdk.Client()
const health = new sdk.Health(client);
const result = await health.getFailedJobs({
name: sdk..V1Database,
name: sdk.Name.V1Database,
threshold: null // optional
});

View file

@ -10,15 +10,15 @@ const sites = new sdk.Sites(client);
const result = await sites.create({
siteId: '<SITE_ID>',
name: '<NAME>',
framework: sdk..Analog,
buildRuntime: sdk..Node145,
framework: sdk.Framework.Analog,
buildRuntime: sdk.BuildRuntime.Node145,
enabled: false, // optional
logging: false, // optional
timeout: 1, // optional
installCommand: '<INSTALL_COMMAND>', // optional
buildCommand: '<BUILD_COMMAND>', // optional
outputDirectory: '<OUTPUT_DIRECTORY>', // optional
adapter: sdk..Static, // optional
adapter: sdk.Adapter.Static, // optional
installationId: '<INSTALLATION_ID>', // optional
fallbackFile: '<FALLBACK_FILE>', // optional
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional

View file

@ -10,15 +10,15 @@ const sites = new sdk.Sites(client);
const result = await sites.update({
siteId: '<SITE_ID>',
name: '<NAME>',
framework: sdk..Analog,
framework: sdk.Framework.Analog,
enabled: false, // optional
logging: false, // optional
timeout: 1, // optional
installCommand: '<INSTALL_COMMAND>', // optional
buildCommand: '<BUILD_COMMAND>', // optional
outputDirectory: '<OUTPUT_DIRECTORY>', // optional
buildRuntime: sdk..Node145, // optional
adapter: sdk..Static, // optional
buildRuntime: sdk.BuildRuntime.Node145, // optional
adapter: sdk.Adapter.Static, // optional
fallbackFile: '<FALLBACK_FILE>', // optional
installationId: '<INSTALLATION_ID>', // optional
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional

View file

@ -15,7 +15,7 @@ const result = await storage.createBucket({
enabled: false, // optional
maximumFileSize: 1, // optional
allowedFileExtensions: [], // optional
compression: sdk..None, // optional
compression: sdk.Compression.None, // optional
encryption: false, // optional
antivirus: false, // optional
transformations: false // optional

View file

@ -15,7 +15,7 @@ const result = await storage.updateBucket({
enabled: false, // optional
maximumFileSize: 1, // optional
allowedFileExtensions: [], // optional
compression: sdk..None, // optional
compression: sdk.Compression.None, // optional
encryption: false, // optional
antivirus: false, // optional
transformations: false // optional

View file

@ -1,5 +1,8 @@
from appwrite.client import Client
from appwrite.services.avatars import Avatars
from appwrite.enums import Theme
from appwrite.enums import Timezone
from appwrite.enums import Output
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@ -14,11 +17,11 @@ result = avatars.get_screenshot(
viewport_width = 1, # optional
viewport_height = 1, # optional
scale = 0.1, # optional
theme = .LIGHT, # optional
theme = Theme.LIGHT, # optional
user_agent = '<USER_AGENT>', # optional
fullpage = False, # optional
locale = '<LOCALE>', # optional
timezone = .AFRICA_ABIDJAN, # optional
timezone = Timezone.AFRICA_ABIDJAN, # optional
latitude = -90, # optional
longitude = -180, # optional
accuracy = 0, # optional
@ -28,5 +31,5 @@ result = avatars.get_screenshot(
width = 0, # optional
height = 0, # optional
quality = -1, # optional
output = .JPG # optional
output = Output.JPG # optional
)

View file

@ -1,6 +1,7 @@
from appwrite.client import Client
from appwrite.services.databases import Databases
from appwrite.enums import RelationshipType
from appwrite.enums import RelationMutate
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

View file

@ -1,5 +1,6 @@
from appwrite.client import Client
from appwrite.services.databases import Databases
from appwrite.enums import RelationMutate
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

View file

@ -1,5 +1,6 @@
from appwrite.client import Client
from appwrite.services.functions import Functions
from appwrite.enums import ExecutionMethod
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

View file

@ -1,6 +1,6 @@
from appwrite.client import Client
from appwrite.services.functions import Functions
from appwrite.enums import
from appwrite.enums import Runtime
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@ -12,7 +12,7 @@ functions = Functions(client)
result = functions.create(
function_id = '<FUNCTION_ID>',
name = '<NAME>',
runtime = .NODE_14_5,
runtime = Runtime.NODE_14_5,
execute = ["any"], # optional
events = [], # optional
schedule = '', # optional

View file

@ -1,5 +1,6 @@
from appwrite.client import Client
from appwrite.services.functions import Functions
from appwrite.enums import DeploymentDownloadType
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

View file

@ -1,5 +1,6 @@
from appwrite.client import Client
from appwrite.services.functions import Functions
from appwrite.enums import Runtime
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@ -11,7 +12,7 @@ functions = Functions(client)
result = functions.update(
function_id = '<FUNCTION_ID>',
name = '<NAME>',
runtime = .NODE_14_5, # optional
runtime = Runtime.NODE_14_5, # optional
execute = ["any"], # optional
events = [], # optional
schedule = '', # optional

View file

@ -1,6 +1,6 @@
from appwrite.client import Client
from appwrite.services.health import Health
from appwrite.enums import
from appwrite.enums import Name
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@ -10,6 +10,6 @@ client.set_key('<YOUR_API_KEY>') # Your secret API key
health = Health(client)
result = health.get_failed_jobs(
name = .V1_DATABASE,
name = Name.V1_DATABASE,
threshold = None # optional
)

View file

@ -1,5 +1,6 @@
from appwrite.client import Client
from appwrite.services.messaging import Messaging
from appwrite.enums import MessagePriority
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

View file

@ -1,5 +1,6 @@
from appwrite.client import Client
from appwrite.services.messaging import Messaging
from appwrite.enums import SmtpEncryption
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

View file

@ -1,5 +1,6 @@
from appwrite.client import Client
from appwrite.services.messaging import Messaging
from appwrite.enums import MessagePriority
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

View file

@ -1,5 +1,6 @@
from appwrite.client import Client
from appwrite.services.messaging import Messaging
from appwrite.enums import SmtpEncryption
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

View file

@ -1,7 +1,8 @@
from appwrite.client import Client
from appwrite.services.sites import Sites
from appwrite.enums import
from appwrite.enums import
from appwrite.enums import Framework
from appwrite.enums import BuildRuntime
from appwrite.enums import Adapter
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@ -13,15 +14,15 @@ sites = Sites(client)
result = sites.create(
site_id = '<SITE_ID>',
name = '<NAME>',
framework = .ANALOG,
build_runtime = .NODE_14_5,
framework = Framework.ANALOG,
build_runtime = BuildRuntime.NODE_14_5,
enabled = False, # optional
logging = False, # optional
timeout = 1, # optional
install_command = '<INSTALL_COMMAND>', # optional
build_command = '<BUILD_COMMAND>', # optional
output_directory = '<OUTPUT_DIRECTORY>', # optional
adapter = .STATIC, # optional
adapter = Adapter.STATIC, # optional
installation_id = '<INSTALLATION_ID>', # optional
fallback_file = '<FALLBACK_FILE>', # optional
provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional

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