Skip to content

Commit 3457d79

Browse files
1.6.x (#102)
* feat: 1.6.x preview * chore: bump version * chore: release rc * chore: update RC version * chore: update SDKs to new RC version * chore: updates for next rc release * chore: update SDKs for appwrite 1.6.0 * chore: update for appwrite 1.6.x * chore: update Appwrite version * chore: updates for appwrite 1.6.x --------- Co-authored-by: Torsten Dittmann <[email protected]>
1 parent 36b0f6d commit 3457d79

File tree

113 files changed

+2200
-1606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2200
-1606
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite Web SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-web.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.5.7-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.6.0-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.5.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-web/releases).**
9+
**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-web/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Web SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

@@ -33,7 +33,7 @@ import { Client, Account } from "appwrite";
3333
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:
3434

3535
```html
36-
<script src="https://cdn.jsdelivr.net/npm/appwrite@15.0.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/appwrite@16.0.0"></script>
3737
```
3838

3939

docs/examples/account/create-anonymous-session.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.createAnonymousSession();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/create-email-password-session.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

@@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession(
1111
'password' // password
1212
);
1313

14-
console.log(response);
14+
console.log(result);

docs/examples/account/create-email-token.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

@@ -12,4 +12,4 @@ const result = await account.createEmailToken(
1212
false // phrase (optional)
1313
);
1414

15-
console.log(response);
15+
console.log(result);

docs/examples/account/create-j-w-t.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.createJWT();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/create-magic-u-r-l-token.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

@@ -13,4 +13,4 @@ const result = await account.createMagicURLToken(
1313
false // phrase (optional)
1414
);
1515

16-
console.log(response);
16+
console.log(result);

docs/examples/account/create-mfa-authenticator.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account, AuthenticatorType } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.createMfaAuthenticator(
1010
AuthenticatorType.Totp // type
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/create-mfa-challenge.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account, AuthenticationFactor } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.createMfaChallenge(
1010
AuthenticationFactor.Email // factor
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/create-mfa-recovery-codes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.createMfaRecoveryCodes();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/create-o-auth2session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

docs/examples/account/create-o-auth2token.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

docs/examples/account/create-phone-token.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

@@ -11,4 +11,4 @@ const result = await account.createPhoneToken(
1111
'+12065550100' // phone
1212
);
1313

14-
console.log(response);
14+
console.log(result);

docs/examples/account/create-phone-verification.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.createPhoneVerification();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/create-push-target.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

@@ -12,4 +12,4 @@ const result = await account.createPushTarget(
1212
'<PROVIDER_ID>' // providerId (optional)
1313
);
1414

15-
console.log(response);
15+
console.log(result);

docs/examples/account/create-recovery.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

@@ -11,4 +11,4 @@ const result = await account.createRecovery(
1111
'https://example.com' // url
1212
);
1313

14-
console.log(response);
14+
console.log(result);

docs/examples/account/create-session.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

@@ -11,4 +11,4 @@ const result = await account.createSession(
1111
'<SECRET>' // secret
1212
);
1313

14-
console.log(response);
14+
console.log(result);

docs/examples/account/create-verification.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.createVerification(
1010
'https://example.com' // url
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/create.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

@@ -13,4 +13,4 @@ const result = await account.create(
1313
'<NAME>' // name (optional)
1414
);
1515

16-
console.log(response);
16+
console.log(result);

docs/examples/account/delete-identity.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.deleteIdentity(
1010
'<IDENTITY_ID>' // identityId
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/delete-mfa-authenticator.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.deleteMfaAuthenticator(
10-
AuthenticatorType.Totp, // type
11-
'<OTP>' // otp
10+
AuthenticatorType.Totp // type
1211
);
1312

14-
console.log(response);
13+
console.log(result);

docs/examples/account/delete-push-target.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.deletePushTarget(
1010
'<TARGET_ID>' // targetId
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/delete-session.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.deleteSession(
1010
'<SESSION_ID>' // sessionId
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/delete-sessions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.deleteSessions();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/get-mfa-recovery-codes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.getMfaRecoveryCodes();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/get-prefs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.getPrefs();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/get-session.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.getSession(
1010
'<SESSION_ID>' // sessionId
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/get.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('5df5acd0d48c2'); // Your project ID
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
66

77
const account = new Account(client);
88

99
const result = await account.get();
1010

11-
console.log(response);
11+
console.log(result);

0 commit comments

Comments
 (0)