Skip to content

Commit 253a392

Browse files
Merge pull request #93 from appwrite/dev
feat: SDK update for version 13.0.0
2 parents ceba210 + 6ddd758 commit 253a392

15 files changed

Lines changed: 300 additions & 265 deletions

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

1919
- name: Use Node.js
20-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@v6
2121
with:
2222
node-version: '24.14.1'
2323
registry-url: 'https://registry.npmjs.org'

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## 13.0.0
4+
5+
* Breaking: Renamed `updateCanonicalEmails` to `updateDenyCanonicalEmailPolicy` on `Project` service
6+
* Breaking: Renamed `updateDisposableEmails` to `updateDenyDisposableEmailPolicy` on `Project` service
7+
* Breaking: Renamed `updateFreeEmails` to `updateDenyFreeEmailPolicy` on `Project` service
8+
* Added: `prompt` parameter on `updateOAuth2Google` for Google OAuth2 prompt configuration
9+
* Added: `Prompt` and `OAuth2GooglePrompt` enums
10+
* Added: `prompt` field on `OAuth2Google` model
11+
312
## 12.2.0
413

514
* Added: Introduced `bigint` create/update APIs for legacy Databases attributes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
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.io/console@12.2.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@13.0.0"></script>
3737
```
3838

3939

docs/examples/project/update-disposable-emails.md renamed to docs/examples/project/update-deny-canonical-email-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const client = new Client()
77

88
const project = new Project(client);
99

10-
const result = await project.updateDisposableEmails({
10+
const result = await project.updateDenyCanonicalEmailPolicy({
1111
enabled: false
1212
});
1313

docs/examples/project/update-free-emails.md renamed to docs/examples/project/update-deny-disposable-email-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const client = new Client()
77

88
const project = new Project(client);
99

10-
const result = await project.updateFreeEmails({
10+
const result = await project.updateDenyDisposableEmailPolicy({
1111
enabled: false
1212
});
1313

docs/examples/project/update-canonical-emails.md renamed to docs/examples/project/update-deny-free-email-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const client = new Client()
77

88
const project = new Project(client);
99

10-
const result = await project.updateCanonicalEmails({
10+
const result = await project.updateDenyFreeEmailPolicy({
1111
enabled: false
1212
});
1313

docs/examples/project/update-o-auth-2-google.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
```javascript
2-
import { Client, Project } from "@appwrite.io/console";
2+
import { Client, Project, Prompt } from "@appwrite.io/console";
33

44
const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -10,6 +10,7 @@ const project = new Project(client);
1010
const result = await project.updateOAuth2Google({
1111
clientId: '<CLIENT_ID>', // optional
1212
clientSecret: '<CLIENT_SECRET>', // optional
13+
prompt: [Prompt.None], // optional
1314
enabled: false // optional
1415
});
1516

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@appwrite.io/console",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5-
"version": "12.2.0",
5+
"version": "13.0.0",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class Client {
390390
'x-sdk-name': 'Console',
391391
'x-sdk-platform': 'console',
392392
'x-sdk-language': 'web',
393-
'x-sdk-version': '12.2.0',
393+
'x-sdk-version': '13.0.0',
394394
'X-Appwrite-Response-Format': '1.9.4',
395395
};
396396

0 commit comments

Comments
 (0)