Skip to content

Commit 16b3d0e

Browse files
authored
feat: Console SDK update for version 15.0.0 (#100)
* chore: update Console SDK to 15.0.0 * chore: update Console SDK to 15.0.0 * chore: update Console SDK to 15.0.0
1 parent 64d763f commit 16b3d0e

90 files changed

Lines changed: 2268 additions & 808 deletions

File tree

Some content is hidden

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

CHANGELOG.md

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

3+
## 15.0.0
4+
5+
* Breaking: `listEvents` and `listGauges` on `Usage` now require `metric` and use dimension/interval aggregation instead of `queries`/`total`
6+
* Breaking: Removed `UsageEvent` and `UsageGauge` models; `UsageEventList` and `UsageGaugeList` now expose `metric`, `interval`, and `groups`
7+
* Added: New `Oauth2` service with `authorize`, `approve`, `reject`, `createGrant`, `getGrant`, `revoke`, `logout`, `createDeviceAuthorization`, and `createToken`
8+
* Added: OAuth2 models `Oauth2Authorize`, `Oauth2Approve`, `Oauth2Reject`, `Oauth2Grant`, `Oauth2DeviceAuthorization`, and `Oauth2Token`
9+
* Added: `setCredentials` on `Client` to control whether fetch sends cookies
10+
* Added: `tagline`, `tags`, `images`, `supportUrl`, and `dataDeletionUrl` consent params on `Apps` `create` and `update`
11+
* Added: `postLogoutRedirectUris` on `Apps` `create` and `update` for OpenID Connect RP-Initiated Logout
12+
* Added: `updateDenyCorporateEmailPolicy` on `Project` and `PolicyDenyCorporateEmail` model
13+
* Added: `supportsCorporateEmailValidation` field on plan model
14+
* Added: `oauth2` service ID and `disputes` query suggestion resource enum values
15+
* Updated: `storageClass` now documents `ssd` as the only allowed value on `Compute`
16+
317
## 14.0.0
418

519
* Breaking: Removed `getDatabaseMetrics`, `getDatabaseInsights`, `getDatabaseSchema`, and `createDatabaseSchemaPreview` from `Compute` service

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@14.0.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@15.0.0"></script>
3737
```
3838

3939

docs/examples/apps/create.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ const result = await apps.create({
1717
privacyPolicyUrl: 'https://example.com', // optional
1818
termsUrl: 'https://example.com', // optional
1919
contacts: [], // optional
20+
tagline: '<TAGLINE>', // optional
21+
tags: [], // optional
22+
images: [], // optional
23+
supportUrl: 'https://example.com', // optional
24+
dataDeletionUrl: 'https://example.com', // optional
25+
postLogoutRedirectUris: [], // optional
2026
enabled: false, // optional
2127
type: 'public', // optional
2228
deviceFlow: false, // optional

docs/examples/apps/update.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ const result = await apps.update({
1616
privacyPolicyUrl: 'https://example.com', // optional
1717
termsUrl: 'https://example.com', // optional
1818
contacts: [], // optional
19+
tagline: '<TAGLINE>', // optional
20+
tags: [], // optional
21+
images: [], // optional
22+
supportUrl: 'https://example.com', // optional
23+
dataDeletionUrl: 'https://example.com', // optional
1924
enabled: false, // optional
2025
redirectUris: [], // optional
26+
postLogoutRedirectUris: [], // optional
2127
type: 'public', // optional
2228
deviceFlow: false // optional
2329
});

docs/examples/avatars/get-browser.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Client, Avatars, Browser } from "@appwrite.io/console";
33

44
const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7-
.setImpersonateUserId(''); // Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
87

98
const avatars = new Avatars(client);
109

docs/examples/avatars/get-credit-card.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Client, Avatars, CreditCard } from "@appwrite.io/console";
33

44
const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7-
.setImpersonateUserId(''); // Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
87

98
const avatars = new Avatars(client);
109

docs/examples/avatars/get-favicon.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Client, Avatars } from "@appwrite.io/console";
33

44
const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7-
.setImpersonateUserId(''); // Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
87

98
const avatars = new Avatars(client);
109

docs/examples/avatars/get-flag.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Client, Avatars, Flag } from "@appwrite.io/console";
33

44
const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7-
.setImpersonateUserId(''); // Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
87

98
const avatars = new Avatars(client);
109

docs/examples/avatars/get-image.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Client, Avatars } from "@appwrite.io/console";
33

44
const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7-
.setImpersonateUserId(''); // Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
87

98
const avatars = new Avatars(client);
109

docs/examples/avatars/get-initials.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Client, Avatars } from "@appwrite.io/console";
33

44
const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7-
.setImpersonateUserId(''); // Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
87

98
const avatars = new Avatars(client);
109

0 commit comments

Comments
 (0)