Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 9 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
# Change Log

## 22.0.0
## 22.0.1

* Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`).
* Breaking change: `Output` enum has been removed; use `ImageFormat` instead.
* Add `getQueueAudits` support to `Health` service.
* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services.

## 21.1.0

* Added ability to create columns and indexes synchronously while creating a table

## 21.0.0

* Rename `VCSDeploymentType` enum to `VCSReferenceType`
* Change `createTemplateDeployment` method signature: replace `version` parameter with `type` (TemplateReferenceType) and `reference` parameters
* Add `getScreenshot` method to `Avatars` service
* Add `Theme`, `Timezone` and `Output` enums
* Update SDK as per latest server specs, these include -
* Introduces Backups module for managing Database backups
* Introduces Organization module
* Introduce Account level keys, Backup Service & Models

## 20.3.0

Expand Down Expand Up @@ -61,7 +50,8 @@
## 16.0.0

* Fix: remove content-type from GET requests
* Update (breaking): min and max params are now optional in `updateFloatAttribute` and `updateIntegerAttribute` methods (changes their positioning in method definition)
* Update (breaking): min and max params are now optional in `updateFloatAttribute` and `updateIntegerAttribute`
methods (changes their positioning in method definition)

## 15.0.1

Expand Down Expand Up @@ -103,4 +93,5 @@
* Rename `templateBranch` to `templateVersion` in `createFunction()`.
* Rename `downloadDeployment()` to `getDeploymentDownload()`

> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
> You can find the new syntax for breaking changes in
> the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
2 changes: 2 additions & 0 deletions docs/examples/account/create-anonymous-session.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.createAnonymousSession();
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-email-password-session.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -11,3 +12,4 @@ const result = await account.createEmailPasswordSession({
email: 'email@example.com',
password: 'password'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-email-token.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -12,3 +13,4 @@ const result = await account.createEmailToken({
email: 'email@example.com',
phrase: false // optional
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-email-verification.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.createEmailVerification({
url: 'https://example.com'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-jwt.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.createJWT({
duration: 0 // optional
});
```
16 changes: 16 additions & 0 deletions docs/examples/account/create-key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```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
.setSession(''); // The user session to authenticate with

const account = new sdk.Account(client);

const result = await account.createKey({
name: '<NAME>',
scopes: [sdk.Scopes.Account],
expire: '' // optional
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-magic-url-token.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -13,3 +14,4 @@ const result = await account.createMagicURLToken({
url: 'https://example.com', // optional
phrase: false // optional
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-mfa-authenticator.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.createMFAAuthenticator({
type: sdk.AuthenticatorType.Totp
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-mfa-challenge.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.createMFAChallenge({
factor: sdk.AuthenticationFactor.Email
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.createMFARecoveryCodes();
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-o-auth-2-token.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -13,3 +14,4 @@ const result = await account.createOAuth2Token({
failure: 'https://example.com', // optional
scopes: [] // optional
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-phone-token.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -11,3 +12,4 @@ const result = await account.createPhoneToken({
userId: '<USER_ID>',
phone: '+12065550100'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-phone-verification.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.createPhoneVerification();
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-recovery.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -11,3 +12,4 @@ const result = await account.createRecovery({
email: 'email@example.com',
url: 'https://example.com'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-session.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -11,3 +12,4 @@ const result = await account.createSession({
userId: '<USER_ID>',
secret: '<SECRET>'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create-verification.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.createVerification({
url: 'https://example.com'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/create.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -13,3 +14,4 @@ const result = await account.create({
password: '',
name: '<NAME>' // optional
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/delete-identity.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.deleteIdentity({
identityId: '<IDENTITY_ID>'
});
```
14 changes: 14 additions & 0 deletions docs/examples/account/delete-key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```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
.setSession(''); // The user session to authenticate with

const account = new sdk.Account(client);

const result = await account.deleteKey({
keyId: '<KEY_ID>'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/delete-mfa-authenticator.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.deleteMFAAuthenticator({
type: sdk.AuthenticatorType.Totp
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/delete-session.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.deleteSession({
sessionId: '<SESSION_ID>'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/delete-sessions.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.deleteSessions();
```
14 changes: 14 additions & 0 deletions docs/examples/account/get-key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```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
.setSession(''); // The user session to authenticate with

const account = new sdk.Account(client);

const result = await account.getKey({
keyId: '<KEY_ID>'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/get-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.getMFARecoveryCodes();
```
2 changes: 2 additions & 0 deletions docs/examples/account/get-prefs.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.getPrefs();
```
2 changes: 2 additions & 0 deletions docs/examples/account/get-session.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -10,3 +11,4 @@ const account = new sdk.Account(client);
const result = await account.getSession({
sessionId: '<SESSION_ID>'
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/get.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.get();
```
2 changes: 2 additions & 0 deletions docs/examples/account/list-identities.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -11,3 +12,4 @@ const result = await account.listIdentities({
queries: [], // optional
total: false // optional
});
```
14 changes: 14 additions & 0 deletions docs/examples/account/list-keys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```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
.setSession(''); // The user session to authenticate with

const account = new sdk.Account(client);

const result = await account.listKeys({
total: false // optional
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/list-logs.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -11,3 +12,4 @@ const result = await account.listLogs({
queries: [], // optional
total: false // optional
});
```
2 changes: 2 additions & 0 deletions docs/examples/account/list-mfa-factors.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.listMFAFactors();
```
2 changes: 2 additions & 0 deletions docs/examples/account/list-sessions.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -8,3 +9,4 @@ const client = new sdk.Client()
const account = new sdk.Account(client);

const result = await account.listSessions();
```
2 changes: 2 additions & 0 deletions docs/examples/account/update-email-verification.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```javascript
const sdk = require('node-appwrite');

const client = new sdk.Client()
Expand All @@ -11,3 +12,4 @@ const result = await account.updateEmailVerification({
userId: '<USER_ID>',
secret: '<SECRET>'
});
```
Loading