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
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## 25.1.0

* Added: `createSesProvider` and `updateSesProvider` to `messaging`
* Added: `updateOAuth2Server` to `project` for OAuth2 server settings
* Added: `updatePasswordStrengthPolicy` and `PolicyPasswordStrength` to `project`
* Added: `getAuditsDB` health check to `health`
* Added: `password-strength` to `ProjectPolicyId`
* Added: `apps.read` and `apps.write` to `ProjectKeyScopes`


## 25.0.0

* Breaking: Removed `githubImagine` and `googleImagine` from `ProjectOAuthProviderId`
Expand All @@ -8,7 +18,7 @@
* Added: `Organization` service for managing projects and API keys
* Added: `PolicyDenyAliasedEmail`, `PolicyDenyDisposableEmail`, and `PolicyDenyFreeEmail` policy models
* Added: `deny-aliased-email`, `deny-disposable-email`, and `deny-free-email` to `ProjectPolicyId`
* Added: `BrowserTheme`, `HealthQueueName`, `OrganizationKeyScopes`, and `Region` enums
* Replaced: `BrowserTheme`, `HealthQueueName`, `OrganizationKeyScopes`, and `Region` enums
* Added: `dart-3.12` and `flutter-3.44` runtimes
* Added: `ProjectList` model and new attributes on `Function`, `Site`, and `UsageGauge`
* Updated: `functions`, `sites`, `usage`, `health`, and `avatars` services
Expand Down
2 changes: 1 addition & 1 deletion docs/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ PATCH https://cloud.appwrite.io/v1/account/password
| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| password | string | New user password. Must be at least 8 chars. | |
| oldPassword | string | Current user password. Must be at least 8 chars. | |
| oldPassword | string | Current user password. Max length: 256 chars. | |


```http request
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/account/update-password.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ $account = new Account($client);

$result = $account->updatePassword(
password: '',
oldPassword: 'password' // optional
oldPassword: '<OLD_PASSWORD>' // optional
);```
15 changes: 15 additions & 0 deletions docs/examples/health/get-audits-db.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```php
<?php

use Appwrite\Client;
use Appwrite\Services\Health;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setKey('<YOUR_API_KEY>'); // Your secret API key

$health = new Health($client);

$result = $health->getAuditsDB();
```
25 changes: 25 additions & 0 deletions docs/examples/messaging/create-ses-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
```php
<?php

use Appwrite\Client;
use Appwrite\Services\Messaging;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setKey('<YOUR_API_KEY>'); // Your secret API key

$messaging = new Messaging($client);

$result = $messaging->createSesProvider(
providerId: '<PROVIDER_ID>',
name: '<NAME>',
accessKey: '<ACCESS_KEY>', // optional
secretKey: '<SECRET_KEY>', // optional
region: '<REGION>', // optional
fromName: '<FROM_NAME>', // optional
fromEmail: 'email@example.com', // optional
replyToName: '<REPLY_TO_NAME>', // optional
replyToEmail: 'email@example.com', // optional
enabled: false // optional
);```
25 changes: 25 additions & 0 deletions docs/examples/messaging/update-ses-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
```php
<?php

use Appwrite\Client;
use Appwrite\Services\Messaging;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setKey('<YOUR_API_KEY>'); // Your secret API key

$messaging = new Messaging($client);

$result = $messaging->updateSesProvider(
providerId: '<PROVIDER_ID>',
name: '<NAME>', // optional
enabled: false, // optional
accessKey: '<ACCESS_KEY>', // optional
secretKey: '<SECRET_KEY>', // optional
region: '<REGION>', // optional
fromName: '<FROM_NAME>', // optional
fromEmail: 'email@example.com', // optional
replyToName: '<REPLY_TO_NAME>', // optional
replyToEmail: '<REPLY_TO_EMAIL>' // optional
);```
23 changes: 23 additions & 0 deletions docs/examples/project/update-o-auth-2-server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
```php
<?php

use Appwrite\Client;
use Appwrite\Services\Project;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setKey('<YOUR_API_KEY>'); // Your secret API key

$project = new Project($client);

$result = $project->updateOAuth2Server(
enabled: false,
authorizationUrl: 'https://example.com',
scopes: [], // optional
accessTokenDuration: 60, // optional
refreshTokenDuration: 60, // optional
publicAccessTokenDuration: 60, // optional
publicRefreshTokenDuration: 60, // optional
confidentialPkce: false // optional
);```
20 changes: 20 additions & 0 deletions docs/examples/project/update-password-strength-policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
```php
<?php

use Appwrite\Client;
use Appwrite\Services\Project;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setKey('<YOUR_API_KEY>'); // Your secret API key

$project = new Project($client);

$result = $project->updatePasswordStrengthPolicy(
min: 8, // optional
uppercase: false, // optional
lowercase: false, // optional
number: false, // optional
symbols: false // optional
);```
8 changes: 8 additions & 0 deletions docs/health.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ GET https://cloud.appwrite.io/v1/health/anti-virus
** Check the Appwrite Antivirus server is up and connection is successful. **


```http request
GET https://cloud.appwrite.io/v1/health/audits-db
```

** Check the database that backs the audit and activity store. When the connection is reachable the endpoint returns a passing status with its response time.
**


```http request
GET https://cloud.appwrite.io/v1/health/cache
```
Expand Down
44 changes: 44 additions & 0 deletions docs/messaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,50 @@ PATCH https://cloud.appwrite.io/v1/messaging/providers/sendgrid/{providerId}
| replyToEmail | string | Email set in the Reply To field for the mail. Default value is Sender Email. | |


```http request
POST https://cloud.appwrite.io/v1/messaging/providers/ses
```

** Create a new Amazon SES provider. **

### Parameters

| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| providerId | string | Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
| name | string | Provider name. | |
| accessKey | string | AWS access key ID. | |
| secretKey | string | AWS secret access key. | |
| region | string | AWS region, for example us-east-1. | |
| fromName | string | Sender Name. | |
| fromEmail | string | Sender email address. | |
| replyToName | string | Name set in the reply to field for the mail. Default value is sender name. | |
| replyToEmail | string | Email set in the reply to field for the mail. Default value is sender email. | |
| enabled | boolean | Set as enabled. | |


```http request
PATCH https://cloud.appwrite.io/v1/messaging/providers/ses/{providerId}
```

** Update an Amazon SES provider by its unique ID. **

### Parameters

| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| providerId | string | **Required** Provider ID. | |
| name | string | Provider name. | |
| enabled | boolean | Set as enabled. | |
| accessKey | string | AWS access key ID. | |
| secretKey | string | AWS secret access key. | |
| region | string | AWS region, for example us-east-1. | |
| fromName | string | Sender Name. | |
| fromEmail | string | Sender email address. | |
| replyToName | string | Name set in the Reply To field for the mail. Default value is Sender Name. | |
| replyToEmail | string | Email set in the Reply To field for the mail. Default value is Sender Email. | |


```http request
POST https://cloud.appwrite.io/v1/messaging/providers/smtp
```
Expand Down
2 changes: 1 addition & 1 deletion docs/organization.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ POST https://cloud.appwrite.io/v1/organization/projects
| --- | --- | --- | --- |
| projectId | string | Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, and hyphen. Can't start with a special char. Max length is 36 chars. | |
| name | string | Project name. Max length: 128 chars. | |
| region | string | Project Region. | fra |
| region | string | Project Region. | |


```http request
Expand Down
Loading
Loading