Skip to content

Commit ce98298

Browse files
feat: SDK update for version 12.0.0 (#88)
* Update SDK to 11.0.1 * feat: SDK update for version 12.0.0 * fix: blacklist BillingPlan enum, reword changelog entries --------- Co-authored-by: Appwrite Team <team@appwrite.io>
1 parent 4c5a26a commit ce98298

93 files changed

Lines changed: 6916 additions & 729 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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Change Log
22

3+
## 12.0.0
4+
5+
* Breaking: Renamed `AuthMethod` enum to `MethodId`
6+
* Breaking: Replaced `Projects.updateAuthStatus` with `Project.updateAuthMethod`
7+
* Breaking: Replaced `Projects.updateOAuth2` with per-provider methods on `Project` service (e.g. `updateOAuth2Google`, `updateOAuth2GitHub`)
8+
* Breaking: Replaced `Projects.updateMockNumbers` with `listMockPhones`, `createMockPhone`, `getMockPhone`, `updateMockPhone`, `deleteMockPhone` on `Project` service
9+
* Breaking: Replaced `Projects.createJWT` with `Project.createEphemeralKey`
10+
* Breaking: Moved `delete` from `Projects` to `Project` service
11+
* Breaking: Renamed `execution.read`/`execution.write` scopes to `executions.read`/`executions.write`
12+
* Breaking: Renamed `domainId` parameter to `invoiceId` in `domains.updatePurchase` and `domains.updateTransferIn`
13+
* Added: `Manager` service with `createBlock`, `deleteBlock`, `listBlocks` methods
14+
* Added: `listEmailTemplates`, `listOAuth2Providers`, `getOAuth2Provider`, `listPolicies`, `getPolicy` methods on `Project` service
15+
* Added: `createPlanEstimation` method on `Organizations` service
16+
* Added: `listOAuth2Providers` and `listProjectScopes` methods on `Console` service
17+
* Added: `fusionauth`, `keycloak`, `kick` to `OAuthProvider` enum
18+
* Added: `MethodId`, `PolicyId` enums
19+
* Added: `mocks.read`, `mocks.write`, `sessions.read` scopes
20+
* Added: `rust-1.83` runtime
21+
* Added: `backup-policy` to `AppwriteMigrationResource` enum
22+
* Added: Plural `ResourceType` values (`projects`, `functions`, `sites`, `databases`, `buckets`, `providers`, `topics`, `subscribers`, `messages`)
23+
* Added: Models for ephemeral keys, mock numbers, email templates, policies, and per-provider OAuth2 settings
24+
* Updated: `X-Appwrite-Response-Format` header to `1.9.3`
25+
326
## 11.0.0
427

528
* Breaking: Moved SMTP, email template, and all policy methods from `Projects` to `Project` service

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite Console SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-console.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.9.2-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.9.3-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)
@@ -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@11.0.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@12.0.0"></script>
3737
```
3838

3939

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
```javascript
2+
import { Client, Console } from "@appwrite.io/console";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const console = new Console(client);
9+
10+
const result = await console.listOAuth2Providers();
11+
12+
console.log(result);
13+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
```javascript
2+
import { Client, Console } from "@appwrite.io/console";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const console = new Console(client);
9+
10+
const result = await console.listProjectScopes();
11+
12+
console.log(result);
13+
```

docs/examples/domains/update-purchase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Client()
88
const domains = new Domains(client);
99

1010
const result = await domains.updatePurchase({
11-
domainId: '<DOMAIN_ID>',
11+
invoiceId: '<INVOICE_ID>',
1212
organizationId: '<ORGANIZATION_ID>'
1313
});
1414

docs/examples/domains/update-transfer-in.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Client()
88
const domains = new Domains(client);
99

1010
const result = await domains.updateTransferIn({
11-
domainId: '<DOMAIN_ID>',
11+
invoiceId: '<INVOICE_ID>',
1212
organizationId: '<ORGANIZATION_ID>'
1313
});
1414

docs/examples/functions/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const result = await functions.create({
1919
logging: false, // optional
2020
entrypoint: '<ENTRYPOINT>', // optional
2121
commands: '<COMMANDS>', // optional
22-
scopes: [Scopes.SessionsWrite], // optional
22+
scopes: [Scopes.ProjectRead], // optional
2323
installationId: '<INSTALLATION_ID>', // optional
2424
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional
2525
providerBranch: '<PROVIDER_BRANCH>', // optional

docs/examples/functions/update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const result = await functions.update({
1919
logging: false, // optional
2020
entrypoint: '<ENTRYPOINT>', // optional
2121
commands: '<COMMANDS>', // optional
22-
scopes: [Scopes.SessionsWrite], // optional
22+
scopes: [Scopes.ProjectRead], // optional
2323
installationId: '<INSTALLATION_ID>', // optional
2424
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional
2525
providerBranch: '<PROVIDER_BRANCH>', // optional
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
```javascript
2+
import { Client, Manager, ResourceType } from "@appwrite.io/console";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
7+
const manager = new Manager(client);
8+
9+
const result = await manager.createBlock({
10+
projectId: '<PROJECT_ID>',
11+
resourceType: ResourceType.Projects,
12+
resourceId: '<RESOURCE_ID>', // optional
13+
reason: '<REASON>', // optional
14+
expiredAt: '2020-10-15T06:38:00.000+00:00' // optional
15+
});
16+
17+
console.log(result);
18+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```javascript
2+
import { Client, Manager, ResourceType } from "@appwrite.io/console";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
7+
const manager = new Manager(client);
8+
9+
const result = await manager.deleteBlock({
10+
projectId: '<PROJECT_ID>',
11+
resourceType: ResourceType.Projects,
12+
resourceId: '<RESOURCE_ID>' // optional
13+
});
14+
15+
console.log(result);
16+
```

0 commit comments

Comments
 (0)