Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c1653c4
chore: update Node.js SDK to 23.1.0
ChiragAgg5k Mar 31, 2026
b2ba29f
chore: update Node.js SDK to 23.1.0
ChiragAgg5k Mar 31, 2026
b8ae31d
chore: update Node.js SDK to 23.2.0
ChiragAgg5k Apr 15, 2026
8843fd5
chore: update Node.js SDK to 24.0.0
ChiragAgg5k Apr 15, 2026
3bbb4d3
fix: resolve merge conflicts for v24.0.0
ChiragAgg5k Apr 15, 2026
519515a
chore: update Node.js SDK to 24.0.0
ChiragAgg5k Apr 15, 2026
4e71edb
chore: update Node.js SDK to 24.0.0
ChiragAgg5k Apr 15, 2026
2c307d9
chore: update Node.js SDK to 24.0.0
ChiragAgg5k Apr 16, 2026
3214b35
feat: Node.js SDK update for version 24.1.0
ArnabChatterjee20k May 7, 2026
a9d969c
feat: Node.js SDK update for version 24.1.0
ArnabChatterjee20k May 7, 2026
8a00b4b
chore: resolve merge conflicts with main
ArnabChatterjee20k May 7, 2026
4eb1e49
chore: refresh sdk for latest spec (sanitized oauth examples)
ArnabChatterjee20k May 7, 2026
bb56aeb
chore: refresh sdk for latest spec (sanitized oauth examples)
ArnabChatterjee20k May 7, 2026
e48e22a
feat: Node.js SDK update for version 24.1.0
ArnabChatterjee20k May 8, 2026
3f90b21
feat: Node.js SDK update for version 24.1.0
ArnabChatterjee20k May 8, 2026
9af4b89
chore: remove presences API artifacts
ArnabChatterjee20k May 8, 2026
f684cd3
test
TeamAppwrite May 8, 2026
1f7ee72
chore: remove accidental test artifact
TeamAppwrite May 8, 2026
a11935c
chore: update Node.js SDK to 24.1.0
ArnabChatterjee20k May 8, 2026
e0bb476
chore: update Node.js SDK to 24.1.0
ArnabChatterjee20k May 8, 2026
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
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
# Change Log

## 24.1.0

* Added: Introduced `bigint` create/update APIs for legacy Databases attributes
* Added: Introduced `bigint` create/update APIs for `TablesDB` columns
* Updated: Extended key-list query filters with `key`, `resourceType`, `resourceId`, and `secret`

## 24.0.0

* [BREAKING] Renamed Webhook model fields: `security` → `tls`, `httpUser` → `authUsername`, `httpPass` → `authPassword`, `signatureKey` → `secret`
* [BREAKING] Renamed Webhook service parameters to match: `security` → `tls`, `httpUser` → `authUsername`, `httpPass` → `authPassword`
* [BREAKING] Renamed `Webhooks.updateSignature()` to `Webhooks.updateSecret()` with new optional `secret` parameter
* Added `Client.getHeaders()` method to retrieve request headers
* Added `secret` parameter to Webhook create and update methods
* Added `x` OAuth provider to `OAuthProvider` enum
* Added `userType` field to `Log` model
* Added `purge` parameter to `updateCollection` and `updateTable` for cache invalidation
* Added Project service: platform CRUD, key CRUD, protocol/service status management
* Added new models: `Key`, `KeyList`, `PlatformAndroid`, `PlatformApple`, `PlatformLinux`, `PlatformList`, and others
* Added new models: `Key`, `KeyList`, `Project`, `DevKey`, `MockNumber`, `AuthProvider`, `PlatformAndroid`, `PlatformApple`, `PlatformLinux`, `PlatformList`, `PlatformWeb`, `PlatformWindows`, `BillingLimits`, `Block`
* Added new enums: `PlatformType`, `ProtocolId`, `ServiceId`
* Updated `BuildRuntime`, `Runtime`, `Scopes` enums with new values
* Updated `BuildRuntime`, `Runtime` enums with `dart-3.11` and `flutter-3.41`
* Updated `Scopes` enum with `keysRead`, `keysWrite`, `platformsRead`, `platformsWrite`
* Updated `X-Appwrite-Response-Format` header to `1.9.1`
* Updated TTL description for list caching in Databases and TablesDB

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Appwrite Node.js SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.9.1-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.9.4-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Expand Down
21 changes: 21 additions & 0 deletions docs/examples/databases/create-big-int-attribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key

const databases = new sdk.Databases(client);

const result = await databases.createBigIntAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
min: null, // optional
max: null, // optional
xdefault: null, // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-boolean-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.createBooleanAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: false, // optional
xdefault: false, // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-datetime-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.createDatetimeAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '2020-10-15T06:38:00.000+00:00', // optional
xdefault: '2020-10-15T06:38:00.000+00:00', // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-email-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.createEmailAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: 'email@example.com', // optional
xdefault: 'email@example.com', // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-enum-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const result = await databases.createEnumAttribute({
key: '',
elements: [],
required: false,
default: '<DEFAULT>', // optional
xdefault: '<DEFAULT>', // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-float-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const result = await databases.createFloatAttribute({
required: false,
min: null, // optional
max: null, // optional
default: null, // optional
xdefault: null, // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-integer-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const result = await databases.createIntegerAttribute({
required: false,
min: null, // optional
max: null, // optional
default: null, // optional
xdefault: null, // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-ip-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.createIpAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '', // optional
xdefault: '', // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-line-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ const result = await databases.createLineAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: [[1, 2], [3, 4], [5, 6]] // optional
xdefault: [[1, 2], [3, 4], [5, 6]] // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-longtext-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.createLongtextAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
xdefault: '<DEFAULT>', // optional
array: false, // optional
encrypt: false // optional
});
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/databases/create-mediumtext-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.createMediumtextAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
xdefault: '<DEFAULT>', // optional
array: false, // optional
encrypt: false // optional
});
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/databases/create-point-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ const result = await databases.createPointAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: [1, 2] // optional
xdefault: [1, 2] // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-polygon-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ const result = await databases.createPolygonAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional
xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-string-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const result = await databases.createStringAttribute({
key: '',
size: 1,
required: false,
default: '<DEFAULT>', // optional
xdefault: '<DEFAULT>', // optional
array: false, // optional
encrypt: false // optional
});
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/databases/create-text-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.createTextAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>', // optional
xdefault: '<DEFAULT>', // optional
array: false, // optional
encrypt: false // optional
});
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/databases/create-url-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.createUrlAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: 'https://example.com', // optional
xdefault: 'https://example.com', // optional
array: false // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/create-varchar-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const result = await databases.createVarcharAttribute({
key: '',
size: 1,
required: false,
default: '<DEFAULT>', // optional
xdefault: '<DEFAULT>', // optional
array: false, // optional
encrypt: false // optional
});
Expand Down
21 changes: 21 additions & 0 deletions docs/examples/databases/update-big-int-attribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key

const databases = new sdk.Databases(client);

const result = await databases.updateBigIntAttribute({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
xdefault: null,
min: null, // optional
max: null, // optional
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-boolean-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateBooleanAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: false,
xdefault: false,
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-datetime-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateDatetimeAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '2020-10-15T06:38:00.000+00:00',
xdefault: '2020-10-15T06:38:00.000+00:00',
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-email-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateEmailAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: 'email@example.com',
xdefault: 'email@example.com',
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-enum-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const result = await databases.updateEnumAttribute({
key: '',
elements: [],
required: false,
default: '<DEFAULT>',
xdefault: '<DEFAULT>',
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-float-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateFloatAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: null,
xdefault: null,
min: null, // optional
max: null, // optional
newKey: '' // optional
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/databases/update-integer-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateIntegerAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: null,
xdefault: null,
min: null, // optional
max: null, // optional
newKey: '' // optional
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/databases/update-ip-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateIpAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '',
xdefault: '',
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-line-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateLineAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: [[1, 2], [3, 4], [5, 6]], // optional
xdefault: [[1, 2], [3, 4], [5, 6]], // optional
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-longtext-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateLongtextAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
xdefault: '<DEFAULT>',
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-mediumtext-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateMediumtextAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
xdefault: '<DEFAULT>',
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-point-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updatePointAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: [1, 2], // optional
xdefault: [1, 2], // optional
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-polygon-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updatePolygonAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional
xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-string-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateStringAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
xdefault: '<DEFAULT>',
size: 1, // optional
newKey: '' // optional
});
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/databases/update-text-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateTextAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
xdefault: '<DEFAULT>',
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-url-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateUrlAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: 'https://example.com',
xdefault: 'https://example.com',
newKey: '' // optional
});
```
2 changes: 1 addition & 1 deletion docs/examples/databases/update-varchar-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const result = await databases.updateVarcharAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '<DEFAULT>',
xdefault: '<DEFAULT>',
size: 1, // optional
newKey: '' // optional
});
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/functions/create-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const result = await functions.createExecution({
functionId: '<FUNCTION_ID>',
body: '<BODY>', // optional
async: false, // optional
path: '<PATH>', // optional
xpath: '<PATH>', // optional
method: sdk.ExecutionMethod.GET, // optional
headers: {}, // optional
scheduledAt: '<SCHEDULED_AT>' // optional
Expand Down
1 change: 1 addition & 0 deletions docs/examples/functions/create-variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const functions = new sdk.Functions(client);

const result = await functions.createVariable({
functionId: '<FUNCTION_ID>',
variableId: '<VARIABLE_ID>',
key: '<KEY>',
value: '<VALUE>',
secret: false // optional
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/functions/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const result = await functions.create({
logging: false, // optional
entrypoint: '<ENTRYPOINT>', // optional
commands: '<COMMANDS>', // optional
scopes: [sdk.Scopes.SessionsWrite], // optional
scopes: [sdk.Scopes.ProjectRead], // optional
installationId: '<INSTALLATION_ID>', // optional
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional
providerBranch: '<PROVIDER_BRANCH>', // optional
Expand Down
Loading