Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { Client, Account } from "appwrite";
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:

```html
<script src="https://cdn.jsdelivr.net/npm/appwrite@19.0.0"></script>
<script src="https://cdn.jsdelivr.net/npm/appwrite@20.0.0"></script>
```


Expand Down
6 changes: 5 additions & 1 deletion docs/examples/account/update-prefs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ const client = new Client()
const account = new Account(client);

const result = await account.updatePrefs({
prefs: {}
prefs: {
"language": "en",
"timezone": "UTC",
"darkTheme": true
}
});

console.log(result);
8 changes: 7 additions & 1 deletion docs/examples/databases/create-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ const result = await databases.createDocument({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
documentId: '<DOCUMENT_ID>',
data: {},
data: {
"username": "walter.obrien",
"email": "[email protected]",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
permissions: ["read("any")"] // optional
});

Expand Down
8 changes: 7 additions & 1 deletion docs/examples/tablesdb/create-row.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
data: {},
data: {
"username": "walter.obrien",
"email": "[email protected]",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
permissions: ["read("any")"] // optional
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "appwrite",
"homepage": "https://appwrite.io/support",
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
"version": "19.0.0",
"version": "20.0.0",
"license": "BSD-3-Clause",
"main": "dist/cjs/sdk.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class Client {
'x-sdk-name': 'Web',
'x-sdk-platform': 'client',
'x-sdk-language': 'web',
'x-sdk-version': '19.0.0',
'x-sdk-version': '20.0.0',
'X-Appwrite-Response-Format': '1.8.0',
};

Expand Down
2 changes: 1 addition & 1 deletion src/enums/credit-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export enum CreditCard {
Mastercard = 'mastercard',
Naranja = 'naranja',
TarjetaShopping = 'targeta-shopping',
UnionChinaPay = 'union-china-pay',
UnionPay = 'unionpay',
Visa = 'visa',
MIR = 'mir',
Maestro = 'maestro',
Expand Down
1 change: 1 addition & 0 deletions src/enums/execution-method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export enum ExecutionMethod {
PATCH = 'PATCH',
DELETE = 'DELETE',
OPTIONS = 'OPTIONS',
HEAD = 'HEAD',
}
164 changes: 156 additions & 8 deletions src/query.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type QueryTypesSingle = string | number | boolean;
export type QueryTypesList = string[] | number[] | boolean[] | Query[];
export type QueryTypesList = string[] | number[] | boolean[] | Query[] | any[];
export type QueryTypes = QueryTypesSingle | QueryTypesList;
type AttributesTypes = string | string[];

Expand Down Expand Up @@ -52,20 +52,20 @@ export class Query {
* Filter resources where attribute is equal to value.
*
* @param {string} attribute
* @param {QueryTypes} value
* @param {QueryTypes | any[]} value
* @returns {string}
*/
static equal = (attribute: string, value: QueryTypes): string =>
static equal = (attribute: string, value: QueryTypes | any[]): string =>
new Query("equal", attribute, value).toString();
Comment on lines +55 to 59
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

equal shouldn’t accept any[]; QueryTypes already covers arrays.

This widens the surface and hides mistakes. Keep the stricter type.

- static equal = (attribute: string, value: QueryTypes | any[]): string =>
+ static equal = (attribute: string, value: QueryTypes): string =>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* @param {QueryTypes | any[]} value
* @returns {string}
*/
static equal = (attribute: string, value: QueryTypes): string =>
static equal = (attribute: string, value: QueryTypes | any[]): string =>
new Query("equal", attribute, value).toString();
* @param {QueryTypes | any[]} value
* @returns {string}
*/
static equal = (attribute: string, value: QueryTypes): string =>
new Query("equal", attribute, value).toString();
🤖 Prompt for AI Agents
In src/query.ts around lines 55 to 59, the static equal method’s signature
widens the type by using QueryTypes | any[]; remove the union and use only
QueryTypes for the value parameter to keep the stricter type; update the method
signature to accept value: QueryTypes and ensure any related usages/overloads
conform to QueryTypes (adjust tests/call sites if they were passing plain
any[]).


/**
* Filter resources where attribute is not equal to value.
*
* @param {string} attribute
* @param {QueryTypes} value
* @param {QueryTypes | any[]} value
* @returns {string}
*/
static notEqual = (attribute: string, value: QueryTypes): string =>
static notEqual = (attribute: string, value: QueryTypes | any[]): string =>
new Query("notEqual", attribute, value).toString();
Comment on lines +65 to 69
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Same here for notEqual: avoid any[].

- static notEqual = (attribute: string, value: QueryTypes | any[]): string =>
+ static notEqual = (attribute: string, value: QueryTypes): string =>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* @param {QueryTypes | any[]} value
* @returns {string}
*/
static notEqual = (attribute: string, value: QueryTypes): string =>
static notEqual = (attribute: string, value: QueryTypes | any[]): string =>
new Query("notEqual", attribute, value).toString();
* @param {QueryTypes | any[]} value
* @returns {string}
*/
static notEqual = (attribute: string, value: QueryTypes): string =>
new Query("notEqual", attribute, value).toString();
🤖 Prompt for AI Agents
In src/query.ts around lines 65 to 69, the static notEqual method currently uses
the unsafe any[] type for the value parameter; change its type to a safer
alternative (e.g., QueryTypes[] or unknown[]) so the signature reads QueryTypes
| QueryTypes[] (or QueryTypes | unknown[]) and update any related
references/overloads to match; re-run typecheck and adjust call sites if needed
to ensure no implicit any usage remains.


/**
Expand Down Expand Up @@ -238,17 +238,17 @@ export class Query {
* @param {string | string[]} value
* @returns {string}
*/
static contains = (attribute: string, value: string | string[]): string =>
static contains = (attribute: string, value: string | any[]): string =>
new Query("contains", attribute, value).toString();

Comment on lines +241 to 243
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

contains should remain string-focused unless the server supports non-strings.

Switching to any[] is likely incorrect for a text containment operator. Please confirm server semantics; otherwise keep string | string[].

- static contains = (attribute: string, value: string | any[]): string =>
+ static contains = (attribute: string, value: string | string[]): string =>

🏁 Script executed:

#!/bin/bash
file=$(find . -type f -name "query.ts" | head -n1)
echo "Inspecting $file"
grep -R "class Query" -n "$file"
grep -R "static contains" -n "$file"
sed -n '230,260p' "$file"

Length of output: 1100


Change contains value type to string | string[]
Align the method signature with its JSDoc and expected server semantics.

- static contains = (attribute: string, value: string | any[]): string =>
+ static contains = (attribute: string, value: string | string[]): string =>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
static contains = (attribute: string, value: string | any[]): string =>
new Query("contains", attribute, value).toString();
static contains = (attribute: string, value: string | string[]): string =>
new Query("contains", attribute, value).toString();
🤖 Prompt for AI Agents
In src/query.ts around lines 241 to 243, the static contains method currently
types its value parameter as string | any[] which conflicts with the JSDoc and
server semantics; change the type to string | string[] (and update the JSDoc if
present) so only strings or arrays of strings are accepted, run type-checks and
update any call sites that pass non-string arrays to conform to string[].

/**
* Filter resources where attribute does not contain the specified value.
*
* @param {string} attribute
* @param {string | string[]} value
* @param {string | any[]} value
* @returns {string}
*/
static notContains = (attribute: string, value: string | string[]): string =>
static notContains = (attribute: string, value: string | any[]): string =>
new Query("notContains", attribute, value).toString();
Comment on lines +248 to 252
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

❓ Verification inconclusive

notContains: same concern as contains.

- static notContains = (attribute: string, value: string | any[]): string =>
+ static notContains = (attribute: string, value: string | string[]): string =>

narrow value to string | string[] in src/query.ts
Replace both the JSDoc and the TS signature:

- * @param {string | any[]} value
+ * @param {string | string[]} value

- static notContains = (attribute: string, value: string | any[]): string =>
+ static notContains = (attribute: string, value: string | string[]): string =>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* @param {string | any[]} value
* @returns {string}
*/
static notContains = (attribute: string, value: string | string[]): string =>
static notContains = (attribute: string, value: string | any[]): string =>
new Query("notContains", attribute, value).toString();
* @param {string | string[]} value
* @returns {string}
*/
static notContains = (attribute: string, value: string | string[]): string =>
new Query("notContains", attribute, value).toString();
🤖 Prompt for AI Agents
In src/query.ts around lines 248 to 252, the parameter type for value is too
broad (string | any[]) in both the JSDoc and the TypeScript signature; narrow it
to string | string[] by updating the JSDoc @param type and changing the static
notContains signature to accept value: string | string[] so callers get correct
typing and IDE hints.


/**
Expand Down Expand Up @@ -311,6 +311,16 @@ export class Query {
static createdAfter = (value: string): string =>
new Query("createdAfter", undefined, value).toString();

/**
* Filter resources where document was created between dates.
*
* @param {string} start
* @param {string} end
* @returns {string}
*/
static createdBetween = (start: string, end: string): string =>
new Query("createdBetween", undefined, [start, end] as QueryTypesList).toString();

/**
* Filter resources where document was updated before date.
*
Expand All @@ -329,6 +339,16 @@ export class Query {
static updatedAfter = (value: string): string =>
new Query("updatedAfter", undefined, value).toString();

/**
* Filter resources where document was updated between dates.
*
* @param {string} start
* @param {string} end
* @returns {string}
*/
static updatedBetween = (start: string, end: string): string =>
new Query("updatedBetween", undefined, [start, end] as QueryTypesList).toString();

/**
* Combine multiple queries using logical OR operator.
*
Expand All @@ -346,4 +366,132 @@ export class Query {
*/
static and = (queries: string[]) =>
new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();

/**
* Filter resources where attribute is at a specific distance from the given coordinates.
*
* @param {string} attribute
* @param {any[]} values
* @param {number} distance
* @param {boolean} meters
* @returns {string}
*/
static distanceEqual = (attribute: string, values: any[], distance: number, meters: boolean = true): string =>
new Query("distanceEqual", attribute, [[values, distance, meters]] as QueryTypesList).toString();

/**
* Filter resources where attribute is not at a specific distance from the given coordinates.
*
* @param {string} attribute
* @param {any[]} values
* @param {number} distance
* @param {boolean} meters
* @returns {string}
*/
static distanceNotEqual = (attribute: string, values: any[], distance: number, meters: boolean = true): string =>
new Query("distanceNotEqual", attribute, [[values, distance, meters]] as QueryTypesList).toString();

/**
* Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
*
* @param {string} attribute
* @param {any[]} values
* @param {number} distance
* @param {boolean} meters
* @returns {string}
*/
static distanceGreaterThan = (attribute: string, values: any[], distance: number, meters: boolean = true): string =>
new Query("distanceGreaterThan", attribute, [[values, distance, meters]] as QueryTypesList).toString();

/**
* Filter resources where attribute is at a distance less than the specified value from the given coordinates.
*
* @param {string} attribute
* @param {any[]} values
* @param {number} distance
* @param {boolean} meters
* @returns {string}
*/
static distanceLessThan = (attribute: string, values: any[], distance: number, meters: boolean = true): string =>
new Query("distanceLessThan", attribute, [[values, distance, meters]] as QueryTypesList).toString();

/**
* Filter resources where attribute intersects with the given geometry.
*
* @param {string} attribute
* @param {any[]} values
* @returns {string}
*/
static intersects = (attribute: string, values: any[]): string =>
new Query("intersects", attribute, [values]).toString();

Comment on lines +425 to +427
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Bug: unnecessary wrapping causes nested arrays in geometry predicates.

Passing [values] turns an input array/object into an extra-nested array. Send the geometry directly; also rename param for clarity.

- static intersects = (attribute: string, values: any[]): string =>
-   new Query("intersects", attribute, [values]).toString();
+ static intersects = (attribute: string, geometry: any[]): string =>
+   new Query("intersects", attribute, geometry).toString();

- static notIntersects = (attribute: string, values: any[]): string =>
-   new Query("notIntersects", attribute, [values]).toString();
+ static notIntersects = (attribute: string, geometry: any[]): string =>
+   new Query("notIntersects", attribute, geometry).toString();

- static crosses = (attribute: string, values: any[]): string =>
-   new Query("crosses", attribute, [values]).toString();
+ static crosses = (attribute: string, geometry: any[]): string =>
+   new Query("crosses", attribute, geometry).toString();

- static notCrosses = (attribute: string, values: any[]): string =>
-   new Query("notCrosses", attribute, [values]).toString();
+ static notCrosses = (attribute: string, geometry: any[]): string =>
+   new Query("notCrosses", attribute, geometry).toString();

- static overlaps = (attribute: string, values: any[]): string =>
-   new Query("overlaps", attribute, [values]).toString();
+ static overlaps = (attribute: string, geometry: any[]): string =>
+   new Query("overlaps", attribute, geometry).toString();

- static notOverlaps = (attribute: string, values: any[]): string =>
-   new Query("notOverlaps", attribute, [values]).toString();
+ static notOverlaps = (attribute: string, geometry: any[]): string =>
+   new Query("notOverlaps", attribute, geometry).toString();

- static touches = (attribute: string, values: any[]): string =>
-   new Query("touches", attribute, [values]).toString();
+ static touches = (attribute: string, geometry: any[]): string =>
+   new Query("touches", attribute, geometry).toString();

- static notTouches = (attribute: string, values: any[]): string =>
-   new Query("notTouches", attribute, [values]).toString();
+ static notTouches = (attribute: string, geometry: any[]): string =>
+   new Query("notTouches", attribute, geometry).toString();

Optional: define a minimal GeoJSON type union and use it instead of any[].

Also applies to: 435-437, 445-447, 455-457, 465-467, 475-477, 485-487, 495-497

🤖 Prompt for AI Agents
In src/query.ts around lines 425-427 (and similarly at 435-437, 445-447,
455-457, 465-467, 475-477, 485-487, 495-497) the geometry helper functions wrap
the incoming array/object with an extra array ([values]) causing nested arrays
in geometry predicates; rename the parameter from values to geometry (or geo)
and pass it directly (no extra [ ] wrapper) to the Query constructor, and
optionally replace the any[] parameter type with a minimal GeoJSON union type
(e.g., Point|Polygon|Feature|etc.) to reflect geometry inputs.

/**
* Filter resources where attribute does not intersect with the given geometry.
*
* @param {string} attribute
* @param {any[]} values
* @returns {string}
*/
static notIntersects = (attribute: string, values: any[]): string =>
new Query("notIntersects", attribute, [values]).toString();

/**
* Filter resources where attribute crosses the given geometry.
*
* @param {string} attribute
* @param {any[]} values
* @returns {string}
*/
static crosses = (attribute: string, values: any[]): string =>
new Query("crosses", attribute, [values]).toString();

/**
* Filter resources where attribute does not cross the given geometry.
*
* @param {string} attribute
* @param {any[]} values
* @returns {string}
*/
static notCrosses = (attribute: string, values: any[]): string =>
new Query("notCrosses", attribute, [values]).toString();

/**
* Filter resources where attribute overlaps with the given geometry.
*
* @param {string} attribute
* @param {any[]} values
* @returns {string}
*/
static overlaps = (attribute: string, values: any[]): string =>
new Query("overlaps", attribute, [values]).toString();

/**
* Filter resources where attribute does not overlap with the given geometry.
*
* @param {string} attribute
* @param {any[]} values
* @returns {string}
*/
static notOverlaps = (attribute: string, values: any[]): string =>
new Query("notOverlaps", attribute, [values]).toString();

/**
* Filter resources where attribute touches the given geometry.
*
* @param {string} attribute
* @param {any[]} values
* @returns {string}
*/
static touches = (attribute: string, values: any[]): string =>
new Query("touches", attribute, [values]).toString();

/**
* Filter resources where attribute does not touch the given geometry.
*
* @param {string} attribute
* @param {any[]} values
* @returns {string}
*/
static notTouches = (attribute: string, values: any[]): string =>
new Query("notTouches", attribute, [values]).toString();
}
4 changes: 2 additions & 2 deletions src/services/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ export class Account {
* @param {string} params.secret - Valid verification token.
* @throws {AppwriteException}
* @returns {Promise<Models.Session>}
* @deprecated This API has been deprecated.
* @deprecated This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.
*/
updateMagicURLSession(params: { userId: string, secret: string }): Promise<Models.Session>;
/**
Expand Down Expand Up @@ -1907,7 +1907,7 @@ export class Account {
* @param {string} params.secret - Valid verification token.
* @throws {AppwriteException}
* @returns {Promise<Models.Session>}
* @deprecated This API has been deprecated.
* @deprecated This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.
*/
updatePhoneSession(params: { userId: string, secret: string }): Promise<Models.Session>;
/**
Expand Down
4 changes: 2 additions & 2 deletions src/services/avatars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class Avatars {
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
*
*
* @param {CreditCard} params.code - Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.
* @param {CreditCard} params.code - Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.
* @param {number} params.width - Image width. Pass an integer between 0 to 2000. Defaults to 100.
* @param {number} params.height - Image height. Pass an integer between 0 to 2000. Defaults to 100.
* @param {number} params.quality - Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.
Expand All @@ -111,7 +111,7 @@ export class Avatars {
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
*
*
* @param {CreditCard} code - Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.
* @param {CreditCard} code - Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.
* @param {number} width - Image width. Pass an integer between 0 to 2000. Defaults to 100.
* @param {number} height - Image height. Pass an integer between 0 to 2000. Defaults to 100.
* @param {number} quality - Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.
Expand Down
9 changes: 0 additions & 9 deletions src/services/databases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ export class Databases {
if (typeof data === 'undefined') {
throw new AppwriteException('Missing required parameter: "data"');
}
delete data?.$sequence;
delete data?.$collectionId;
delete data?.$databaseId;

const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
const payload: Payload = {};
Expand Down Expand Up @@ -304,9 +301,6 @@ export class Databases {
if (typeof data === 'undefined') {
throw new AppwriteException('Missing required parameter: "data"');
}
delete data?.$sequence;
delete data?.$collectionId;
delete data?.$databaseId;

const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
const payload: Payload = {};
Expand Down Expand Up @@ -389,9 +383,6 @@ export class Databases {
if (typeof documentId === 'undefined') {
throw new AppwriteException('Missing required parameter: "documentId"');
}
delete data?.$sequence;
delete data?.$collectionId;
delete data?.$databaseId;

const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
const payload: Payload = {};
Expand Down
4 changes: 2 additions & 2 deletions src/services/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class Functions {
* @param {string} params.body - HTTP body of execution. Default value is empty string.
* @param {boolean} params.async - Execute code in the background. Default value is false.
* @param {string} params.xpath - HTTP path of execution. Path can include query params. Default value is /
* @param {ExecutionMethod} params.method - HTTP method of execution. Default value is GET.
* @param {ExecutionMethod} params.method - HTTP method of execution. Default value is POST.
* @param {object} params.headers - HTTP headers of execution. Defaults to empty.
* @param {string} params.scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
* @throws {AppwriteException}
Expand All @@ -91,7 +91,7 @@ export class Functions {
* @param {string} body - HTTP body of execution. Default value is empty string.
* @param {boolean} async - Execute code in the background. Default value is false.
* @param {string} xpath - HTTP path of execution. Path can include query params. Default value is /
* @param {ExecutionMethod} method - HTTP method of execution. Default value is GET.
* @param {ExecutionMethod} method - HTTP method of execution. Default value is POST.
* @param {object} headers - HTTP headers of execution. Defaults to empty.
* @param {string} scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
* @throws {AppwriteException}
Expand Down