Skip to content

Commit 66fc913

Browse files
committed
chore: sync PHP client with Apify OpenAPI spec v2-2026-09-02T154542Z
- Add Task::getDescription() getter for the new Task.description field. - Correct the published-tasks limit in TaskClient::publish() and docs/tasks.md from 50 to 10, matching the apify-docs publish-task requirements.
1 parent 1374e72 commit 66fc913

7 files changed

Lines changed: 22 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.6.0
4+
5+
- Synced to Apify OpenAPI spec `v2-2026-09-02T154542Z`.
6+
- Added `Task::getDescription()` getter, exposing the task's public-landing-page description
7+
(matching the reference JS client's `Task.description`).
8+
- Corrected the published-tasks limit in `TaskClient::publish()`'s docblock and `docs/tasks.md`:
9+
the requirement is fewer than 10 already-published tasks on the Actor, not 50.
10+
311
## 0.5.3
412

513
- Bumped `Version::API_SPEC_VERSION` to the Apify OpenAPI spec `v2-2026-08-27T071624Z`.

docs/models.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ model is also used as an input object and therefore additionally exposes setters
7070
| `getUserId(): ?string` | ID of the task owner. |
7171
| `getName(): ?string` | The task's technical name. |
7272
| `getTitle(): ?string` | Human-readable title. |
73+
| `getDescription(): ?string` | Human-readable description shown on the task's public landing page. |
7374
| `getCreatedAt(): ?string` | ISO-8601 creation timestamp. |
7475
| `getModifiedAt(): ?string` | ISO-8601 last-modification timestamp. |
7576
| `isPublic(): ?bool` | Whether the task is published on its public landing page. |

docs/tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ foreach ($client->tasks()->iterate(new ListOptions(), 50) as $t) {
2626
- `get(): ?Task`, `update(mixed $newFields): Task`, `delete(): void`
2727
- `publish(): Task`, `unpublish(): Task` — publish/unpublish the task's public landing page, by
2828
setting `isPublic` through `update()`. Both require write permission to the task's Actor;
29-
publishing additionally requires the Actor to be public, to have fewer than 50 already-published
29+
publishing additionally requires the Actor to be public, to have fewer than 10 already-published
3030
tasks, and the task's `publicConfig.inputSchemaFields`/`publicConfig.datasetView` to be set.
3131
- `start(mixed $input = null, ?TaskStartOptions $options = null): ActorRun`
3232
- `call(mixed $input = null, ?TaskStartOptions $options = null, ?int $waitSecs = null): ActorRun`

src/Model/Task.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ public function getTitle(): ?string
3737
return $this->getString('title');
3838
}
3939

40+
/** The human-readable description shown on the task's public landing page. */
41+
public function getDescription(): ?string
42+
{
43+
return $this->getString('description');
44+
}
45+
4046
/** When the task was created (ISO-8601 string). */
4147
public function getCreatedAt(): ?string
4248
{

src/Resource/TaskClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function delete(): void
6262
* {@see update()}. Requires write permission to the task's Actor.
6363
*
6464
* To publish, the task's Actor must be public, its {@code publicConfig.inputSchemaFields} and
65-
* {@code publicConfig.datasetView} must be set, and the Actor must have fewer than 50
65+
* {@code publicConfig.datasetView} must be set, and the Actor must have fewer than 10
6666
* published tasks; if any of these are not met, the request fails and nothing is changed.
6767
* Publishing an already published task does nothing.
6868
*/

src/Version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ final class Version
1717
* The semantic version of this client library (see https://semver.org/).
1818
* Changes to the public interface other than additive ones are considered breaking changes.
1919
*/
20-
public const CLIENT_VERSION = '0.5.3';
20+
public const CLIENT_VERSION = '0.6.0';
2121

2222
/**
2323
* The version of the Apify OpenAPI specification this client was generated and verified
2424
* against. Corresponds to the {@code info.version} field of the Apify OpenAPI document.
2525
*/
26-
public const API_SPEC_VERSION = 'v2-2026-08-27T071624Z';
26+
public const API_SPEC_VERSION = 'v2-2026-09-02T154542Z';
2727

2828
private function __construct()
2929
{

tests/Integration/TaskIntegrationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ public function testTaskCrudFlow(): void
107107
$tc->updateInput(['message' => 'updated']);
108108
self::assertNotNull($tc->getInput());
109109
$tc->update(['name' => self::uniqueName('task-renamed')]);
110+
$updated = $tc->update(['title' => 'Updated Title', 'description' => 'Updated description']);
111+
self::assertSame('Updated Title', $updated->getTitle());
112+
self::assertSame('Updated description', $updated->getDescription());
110113
$tc->runs()->list(new ListOptions(), new RunListOptions());
111114
} finally {
112115
$client->task((string) $task->getId())->delete();

0 commit comments

Comments
 (0)