Skip to content

Commit 0f03f2e

Browse files
committed
chore: update PHP SDK to 23.0.0
1 parent a51784c commit 0f03f2e

12 files changed

Lines changed: 1 addition & 1024 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Added `x` OAuth provider to `OAuthProvider` enum
99
* Added `userType` field to `Log` model
1010
* Added `purge` parameter to `updateCollection` and `updateTable` for cache invalidation
11-
* Added Project service: platform CRUD, key CRUD, label/email/protocol/service management
11+
* Added Project service: platform CRUD, key CRUD, protocol/service status management
1212
* Added new models: `Key`, `KeyList`, `PlatformAndroid`, `PlatformApple`, `PlatformLinux`, `PlatformList`, and others
1313
* Added new enums: `PlatformType`, `ProtocolId`, `ServiceId`
1414
* Updated `BuildRuntime`, `Runtime`, `Scopes` enums with new values

docs/examples/project/update-canonical-emails.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/examples/project/update-disposable-emails.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/examples/project/update-free-emails.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/examples/project/update-labels.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/examples/users/update-labels.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/project.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,6 @@
11
# Project Service
22

33

4-
```http request
5-
PATCH https://cloud.appwrite.io/v1/project/auth/canonical-emails
6-
```
7-
8-
** Configure if canonical emails (alias subaddresses and emails with suffixes) are allowed during new users sign-ups in this project. **
9-
10-
### Parameters
11-
12-
| Field Name | Type | Description | Default |
13-
| --- | --- | --- | --- |
14-
| enabled | boolean | Set whether or not to require canonical email addresses during signup and email updates. | |
15-
16-
17-
```http request
18-
PATCH https://cloud.appwrite.io/v1/project/auth/disposable-emails
19-
```
20-
21-
** Configure if disposable emails (emails of known temporary domains) are allowed during new users sign-ups in this project. **
22-
23-
### Parameters
24-
25-
| Field Name | Type | Description | Default |
26-
| --- | --- | --- | --- |
27-
| enabled | boolean | Set whether or not to block disposable email addresses during signup and email updates. | |
28-
29-
30-
```http request
31-
PATCH https://cloud.appwrite.io/v1/project/auth/free-emails
32-
```
33-
34-
** Configure if free emails (non-commercial and not a custom domain) are allowed during new users sign-ups in this project. **
35-
36-
### Parameters
37-
38-
| Field Name | Type | Description | Default |
39-
| --- | --- | --- | --- |
40-
| enabled | boolean | Set whether or not to block free email addresses during signup and email updates. | |
41-
42-
434
```http request
445
GET https://cloud.appwrite.io/v1/project/keys
456
```
@@ -112,19 +73,6 @@ DELETE https://cloud.appwrite.io/v1/project/keys/{keyId}
11273
| keyId | string | **Required** Key ID. | |
11374

11475

115-
```http request
116-
PUT https://cloud.appwrite.io/v1/project/labels
117-
```
118-
119-
** Update the project labels. Labels can be used to easily filter projects in an organization. **
120-
121-
### Parameters
122-
123-
| Field Name | Type | Description | Default |
124-
| --- | --- | --- | --- |
125-
| labels | array | Array of project labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long. | |
126-
127-
12876
```http request
12977
GET https://cloud.appwrite.io/v1/project/platforms
13078
```

docs/users.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,22 +252,6 @@ POST https://cloud.appwrite.io/v1/users/{userId}/jwts
252252
| duration | integer | Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds. | 900 |
253253

254254

255-
```http request
256-
PUT https://cloud.appwrite.io/v1/users/{userId}/labels
257-
```
258-
259-
** Update the user labels by its unique ID.
260-
261-
Labels can be used to grant access to resources. While teams are a way for user's to share access to a resource, labels can be defined by the developer to grant access without an invitation. See the [Permissions docs](https://appwrite.io/docs/permissions) for more info. **
262-
263-
### Parameters
264-
265-
| Field Name | Type | Description | Default |
266-
| --- | --- | --- | --- |
267-
| userId | string | **Required** User ID. | |
268-
| labels | array | Array of user labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long. | |
269-
270-
271255
```http request
272256
GET https://cloud.appwrite.io/v1/users/{userId}/logs
273257
```

src/Appwrite/Services/Project.php

Lines changed: 0 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -17,114 +17,6 @@ public function __construct(Client $client)
1717
parent::__construct($client);
1818
}
1919

20-
/**
21-
* Configure if canonical emails (alias subaddresses and emails with suffixes)
22-
* are allowed during new users sign-ups in this project.
23-
*
24-
* @param bool $enabled
25-
* @throws AppwriteException
26-
* @return \Appwrite\Models\Project
27-
*/
28-
public function updateCanonicalEmails(bool $enabled): \Appwrite\Models\Project
29-
{
30-
$apiPath = str_replace(
31-
[],
32-
[],
33-
'/project/auth/canonical-emails'
34-
);
35-
36-
$apiParams = [];
37-
$apiParams['enabled'] = $enabled;
38-
39-
$apiHeaders = [];
40-
$apiHeaders['content-type'] = 'application/json';
41-
42-
$response = $this->client->call(
43-
Client::METHOD_PATCH,
44-
$apiPath,
45-
$apiHeaders,
46-
$apiParams
47-
);
48-
49-
return $this->parseResponse(
50-
$response,
51-
[\Appwrite\Models\Project::class]
52-
);
53-
54-
}
55-
56-
/**
57-
* Configure if disposable emails (emails of known temporary domains) are
58-
* allowed during new users sign-ups in this project.
59-
*
60-
* @param bool $enabled
61-
* @throws AppwriteException
62-
* @return \Appwrite\Models\Project
63-
*/
64-
public function updateDisposableEmails(bool $enabled): \Appwrite\Models\Project
65-
{
66-
$apiPath = str_replace(
67-
[],
68-
[],
69-
'/project/auth/disposable-emails'
70-
);
71-
72-
$apiParams = [];
73-
$apiParams['enabled'] = $enabled;
74-
75-
$apiHeaders = [];
76-
$apiHeaders['content-type'] = 'application/json';
77-
78-
$response = $this->client->call(
79-
Client::METHOD_PATCH,
80-
$apiPath,
81-
$apiHeaders,
82-
$apiParams
83-
);
84-
85-
return $this->parseResponse(
86-
$response,
87-
[\Appwrite\Models\Project::class]
88-
);
89-
90-
}
91-
92-
/**
93-
* Configure if free emails (non-commercial and not a custom domain) are
94-
* allowed during new users sign-ups in this project.
95-
*
96-
* @param bool $enabled
97-
* @throws AppwriteException
98-
* @return \Appwrite\Models\Project
99-
*/
100-
public function updateFreeEmails(bool $enabled): \Appwrite\Models\Project
101-
{
102-
$apiPath = str_replace(
103-
[],
104-
[],
105-
'/project/auth/free-emails'
106-
);
107-
108-
$apiParams = [];
109-
$apiParams['enabled'] = $enabled;
110-
111-
$apiHeaders = [];
112-
$apiHeaders['content-type'] = 'application/json';
113-
114-
$response = $this->client->call(
115-
Client::METHOD_PATCH,
116-
$apiPath,
117-
$apiHeaders,
118-
$apiParams
119-
);
120-
121-
return $this->parseResponse(
122-
$response,
123-
[\Appwrite\Models\Project::class]
124-
);
125-
126-
}
127-
12820
/**
12921
* Get a list of all API keys from the current project.
13022
*
@@ -318,42 +210,6 @@ public function deleteKey(string $keyId): string
318210

319211
}
320212

321-
/**
322-
* Update the project labels. Labels can be used to easily filter projects in
323-
* an organization.
324-
*
325-
* @param array $labels
326-
* @throws AppwriteException
327-
* @return \Appwrite\Models\Project
328-
*/
329-
public function updateLabels(array $labels): \Appwrite\Models\Project
330-
{
331-
$apiPath = str_replace(
332-
[],
333-
[],
334-
'/project/labels'
335-
);
336-
337-
$apiParams = [];
338-
$apiParams['labels'] = $labels;
339-
340-
$apiHeaders = [];
341-
$apiHeaders['content-type'] = 'application/json';
342-
343-
$response = $this->client->call(
344-
Client::METHOD_PUT,
345-
$apiPath,
346-
$apiHeaders,
347-
$apiParams
348-
);
349-
350-
return $this->parseResponse(
351-
$response,
352-
[\Appwrite\Models\Project::class]
353-
);
354-
355-
}
356-
357213
/**
358214
* Get a list of all platforms in the project. This endpoint returns an array
359215
* of all platforms and their configurations.

src/Appwrite/Services/Users.php

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -741,48 +741,6 @@ public function createJWT(string $userId, ?string $sessionId = null, ?int $durat
741741

742742
}
743743

744-
/**
745-
* Update the user labels by its unique ID.
746-
*
747-
* Labels can be used to grant access to resources. While teams are a way for
748-
* user's to share access to a resource, labels can be defined by the
749-
* developer to grant access without an invitation. See the [Permissions
750-
* docs](https://appwrite.io/docs/permissions) for more info.
751-
*
752-
* @param string $userId
753-
* @param array $labels
754-
* @throws AppwriteException
755-
* @return \Appwrite\Models\User
756-
*/
757-
public function updateLabels(string $userId, array $labels): \Appwrite\Models\User
758-
{
759-
$apiPath = str_replace(
760-
['{userId}'],
761-
[$userId],
762-
'/users/{userId}/labels'
763-
);
764-
765-
$apiParams = [];
766-
$apiParams['userId'] = $userId;
767-
$apiParams['labels'] = $labels;
768-
769-
$apiHeaders = [];
770-
$apiHeaders['content-type'] = 'application/json';
771-
772-
$response = $this->client->call(
773-
Client::METHOD_PUT,
774-
$apiPath,
775-
$apiHeaders,
776-
$apiParams
777-
);
778-
779-
return $this->parseResponse(
780-
$response,
781-
[\Appwrite\Models\User::class]
782-
);
783-
784-
}
785-
786744
/**
787745
* Get the user activity logs list by its unique ID.
788746
*

0 commit comments

Comments
 (0)