Skip to content
Closed
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 24.0.1

* Fixed: `Project.billingLimits` now hydrates as `?BillingLimits` (nullable) — server emits `billingLimits: {}` for projects with no usage limits crossed, which previously threw `InvalidArgumentException: Missing required field "bandwidth"` on every `Project` response parse
* Fixed: All 8 `BillingLimits` inner fields (`bandwidth`, `storage`, `users`, `executions`, `GBHours`, `imageTransformations`, `authPhone`, `budgetLimit`) now hydrate as `?int` — match the runtime "sparse map of limits crossed" semantics
* Fixed: `Project.consoleAccessedAt` no longer null at runtime — server now emits empty string for never-accessed projects, matching the OSS `pingedAt` convention

## 24.0.0

* Breaking: Renamed `AuthMethod` enum to `ProjectAuthMethodId`
Expand Down
16 changes: 0 additions & 16 deletions docs/examples/presences/delete.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/examples/presences/get.md

This file was deleted.

18 changes: 0 additions & 18 deletions docs/examples/presences/list.md

This file was deleted.

24 changes: 0 additions & 24 deletions docs/examples/presences/update-presence.md

This file was deleted.

23 changes: 0 additions & 23 deletions docs/examples/presences/upsert.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/examples/project/update-deny-canonical-email-policy.md

This file was deleted.

85 changes: 0 additions & 85 deletions docs/presences.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ PATCH https://cloud.appwrite.io/v1/project/oauth2/google
| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| clientId | string | 'Client ID' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com | |
| clientSecret | string | 'Client Secret' of Google OAuth2 app. For example: example-google-client-secret | |
| clientSecret | string | 'Client Secret' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj | |
| prompt | array | Array of Google OAuth2 prompt values. If "none" is included, it must be the only element. "none" means: don't display any authentication or consent screens. Must not be specified with other values. "consent" means: prompt the user for consent. "select_account" means: prompt the user to select an account. | |
| enabled | boolean | OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. | |

Expand Down Expand Up @@ -549,7 +549,7 @@ PATCH https://cloud.appwrite.io/v1/project/oauth2/linkedin
| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| clientId | string | 'Client ID' of Linkedin OAuth2 app. For example: 770000000000dv | |
| primaryClientSecret | string | 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example: example-linkedin-client-secret | |
| primaryClientSecret | string | 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example: WPL_AP1.2Bf0000000000000./HtlYw== | |
| enabled | boolean | OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. | |


Expand Down
4 changes: 2 additions & 2 deletions src/Appwrite/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class Client
*/
protected array $headers = [
'content-type' => '',
'user-agent' => 'AppwritePHPSDK/24.0.0 ()',
'user-agent' => 'AppwritePHPSDK/24.0.1 ()',
'x-sdk-name'=> 'PHP',
'x-sdk-platform'=> 'server',
'x-sdk-language'=> 'php',
'x-sdk-version'=> '24.0.0',
'x-sdk-version'=> '24.0.1',
];

/**
Expand Down
18 changes: 0 additions & 18 deletions src/Appwrite/Enums/ProjectKeyScopes.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ class ProjectKeyScopes implements JsonSerializable
private static ProjectKeyScopes $INSIGHTSWRITE;
private static ProjectKeyScopes $REPORTSREAD;
private static ProjectKeyScopes $REPORTSWRITE;
private static ProjectKeyScopes $PRESENCESREAD;
private static ProjectKeyScopes $PRESENCESWRITE;
private static ProjectKeyScopes $BACKUPSPOLICIESREAD;
private static ProjectKeyScopes $BACKUPSPOLICIESWRITE;
private static ProjectKeyScopes $ARCHIVESREAD;
Expand Down Expand Up @@ -692,20 +690,6 @@ public static function REPORTSWRITE(): ProjectKeyScopes
}
return self::$REPORTSWRITE;
}
public static function PRESENCESREAD(): ProjectKeyScopes
{
if (!isset(self::$PRESENCESREAD)) {
self::$PRESENCESREAD = new ProjectKeyScopes('presences.read');
}
return self::$PRESENCESREAD;
}
public static function PRESENCESWRITE(): ProjectKeyScopes
{
if (!isset(self::$PRESENCESWRITE)) {
self::$PRESENCESWRITE = new ProjectKeyScopes('presences.write');
}
return self::$PRESENCESWRITE;
}
public static function BACKUPSPOLICIESREAD(): ProjectKeyScopes
{
if (!isset(self::$BACKUPSPOLICIESREAD)) {
Expand Down Expand Up @@ -862,8 +846,6 @@ public static function from(string $value): self
'insights.write' => self::INSIGHTSWRITE(),
'reports.read' => self::REPORTSREAD(),
'reports.write' => self::REPORTSWRITE(),
'presences.read' => self::PRESENCESREAD(),
'presences.write' => self::PRESENCESWRITE(),
'backups.policies.read' => self::BACKUPSPOLICIESREAD(),
'backups.policies.write' => self::BACKUPSPOLICIESWRITE(),
'archives.read' => self::ARCHIVESREAD(),
Expand Down
61 changes: 0 additions & 61 deletions src/Appwrite/Enums/Prompt.php

This file was deleted.

18 changes: 0 additions & 18 deletions src/Appwrite/Enums/Scopes.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ class Scopes implements JsonSerializable
private static Scopes $INSIGHTSWRITE;
private static Scopes $REPORTSREAD;
private static Scopes $REPORTSWRITE;
private static Scopes $PRESENCESREAD;
private static Scopes $PRESENCESWRITE;
private static Scopes $BACKUPSPOLICIESREAD;
private static Scopes $BACKUPSPOLICIESWRITE;
private static Scopes $ARCHIVESREAD;
Expand Down Expand Up @@ -692,20 +690,6 @@ public static function REPORTSWRITE(): Scopes
}
return self::$REPORTSWRITE;
}
public static function PRESENCESREAD(): Scopes
{
if (!isset(self::$PRESENCESREAD)) {
self::$PRESENCESREAD = new Scopes('presences.read');
}
return self::$PRESENCESREAD;
}
public static function PRESENCESWRITE(): Scopes
{
if (!isset(self::$PRESENCESWRITE)) {
self::$PRESENCESWRITE = new Scopes('presences.write');
}
return self::$PRESENCESWRITE;
}
public static function BACKUPSPOLICIESREAD(): Scopes
{
if (!isset(self::$BACKUPSPOLICIESREAD)) {
Expand Down Expand Up @@ -862,8 +846,6 @@ public static function from(string $value): self
'insights.write' => self::INSIGHTSWRITE(),
'reports.read' => self::REPORTSREAD(),
'reports.write' => self::REPORTSWRITE(),
'presences.read' => self::PRESENCESREAD(),
'presences.write' => self::PRESENCESWRITE(),
'backups.policies.read' => self::BACKUPSPOLICIESREAD(),
'backups.policies.write' => self::BACKUPSPOLICIESWRITE(),
'archives.read' => self::ARCHIVESREAD(),
Expand Down
Loading