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
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Use Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '24.14.1'
registry-url: 'https://registry.npmjs.org'
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 13.0.0

* Breaking: Renamed `updateCanonicalEmails` to `updateDenyCanonicalEmailPolicy` on `Project` service
* Breaking: Renamed `updateDisposableEmails` to `updateDenyDisposableEmailPolicy` on `Project` service
* Breaking: Renamed `updateFreeEmails` to `updateDenyFreeEmailPolicy` on `Project` service
* Added: `prompt` parameter on `updateOAuth2Google` for Google OAuth2 prompt configuration
* Added: `Prompt` and `OAuth2GooglePrompt` enums
* Added: `prompt` field on `OAuth2Google` model

## 12.2.0

* Added: Introduced `bigint` create/update APIs for legacy Databases attributes
Expand Down
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.io/console";
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.io/console@12.2.0"></script>
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@13.0.0"></script>
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const client = new Client()

const project = new Project(client);

const result = await project.updateDisposableEmails({
const result = await project.updateDenyCanonicalEmailPolicy({
enabled: false
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const client = new Client()

const project = new Project(client);

const result = await project.updateFreeEmails({
const result = await project.updateDenyDisposableEmailPolicy({
enabled: false
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const client = new Client()

const project = new Project(client);

const result = await project.updateCanonicalEmails({
const result = await project.updateDenyFreeEmailPolicy({
enabled: false
});

Expand Down
3 changes: 2 additions & 1 deletion docs/examples/project/update-o-auth-2-google.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```javascript
import { Client, Project } from "@appwrite.io/console";
import { Client, Project, Prompt } from "@appwrite.io/console";

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

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.io/console",
"homepage": "https://appwrite.io/support",
"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",
"version": "12.2.0",
"version": "13.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 @@ -390,7 +390,7 @@ class Client {
'x-sdk-name': 'Console',
'x-sdk-platform': 'console',
'x-sdk-language': 'web',
'x-sdk-version': '12.2.0',
'x-sdk-version': '13.0.0',
'X-Appwrite-Response-Format': '1.9.4',
};

Expand Down
5 changes: 5 additions & 0 deletions src/enums/o-auth-2-google-prompt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum OAuth2GooglePrompt {
None = 'none',
Consent = 'consent',
SelectAccount = 'select_account',
}
Comment on lines +1 to +5
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Missing newline at end of file. Most editors and linters expect a trailing newline, and its absence can cause noisy diffs.

Suggested change
export enum OAuth2GooglePrompt {
None = 'none',
Consent = 'consent',
SelectAccount = 'select_account',
}
export enum OAuth2GooglePrompt {
None = 'none',
Consent = 'consent',
SelectAccount = 'select_account',
}

5 changes: 5 additions & 0 deletions src/enums/prompt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum Prompt {
None = 'none',
Consent = 'consent',
SelectAccount = 'select_account',
}
Comment on lines +1 to +5
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Missing newline at end of file, same as o-auth-2-google-prompt.ts.

Suggested change
export enum Prompt {
None = 'none',
Consent = 'consent',
SelectAccount = 'select_account',
}
export enum Prompt {
None = 'none',
Consent = 'consent',
SelectAccount = 'select_account',
}

2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export { NHostMigrationResource } from './enums/n-host-migration-resource';
export { SupabaseMigrationResource } from './enums/supabase-migration-resource';
export { Addon } from './enums/addon';
export { AuthMethod } from './enums/auth-method';
export { Prompt } from './enums/prompt';
export { ProjectPolicy } from './enums/project-policy';
export { ProtocolId } from './enums/protocol-id';
export { ServiceId } from './enums/service-id';
Expand Down Expand Up @@ -117,6 +118,7 @@ export { DetectionRuntimeType } from './enums/detection-runtime-type';
export { DeploymentStatus } from './enums/deployment-status';
export { ExecutionTrigger } from './enums/execution-trigger';
export { ExecutionStatus } from './enums/execution-status';
export { OAuth2GooglePrompt } from './enums/o-auth-2-google-prompt';
export { PlatformType } from './enums/platform-type';
export { HealthAntivirusStatus } from './enums/health-antivirus-status';
export { HealthCheckStatus } from './enums/health-check-status';
Expand Down
5 changes: 5 additions & 0 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { DetectionRuntimeType } from "./enums/detection-runtime-type"
import { DeploymentStatus } from "./enums/deployment-status"
import { ExecutionTrigger } from "./enums/execution-trigger"
import { ExecutionStatus } from "./enums/execution-status"
import { OAuth2GooglePrompt } from "./enums/o-auth-2-google-prompt"
import { PlatformType } from "./enums/platform-type"
import { HealthAntivirusStatus } from "./enums/health-antivirus-status"
import { HealthCheckStatus } from "./enums/health-check-status"
Expand Down Expand Up @@ -5785,6 +5786,10 @@ export namespace Models {
* Google OAuth2 client secret.
*/
clientSecret: string;
/**
* Google OAuth2 prompt values.
*/
prompt: OAuth2GooglePrompt[];
}

/**
Expand Down
Loading
Loading