Skip to content
Open
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 @@
# Changelog

## 0.6.0

- Synced to Apify OpenAPI spec `v2-2026-09-02T154542Z`.
- Added `Task::getDescription()` getter, exposing the task's human-readable description
(matching the reference JS client's `Task.description`).

## 0.5.3

- Bumped `Version::API_SPEC_VERSION` to the Apify OpenAPI spec `v2-2026-08-27T071624Z`.
Expand Down
1 change: 1 addition & 0 deletions docs/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ model is also used as an input object and therefore additionally exposes setters
| `getUserId(): ?string` | ID of the task owner. |
| `getName(): ?string` | The task's technical name. |
| `getTitle(): ?string` | Human-readable title. |
| `getDescription(): ?string` | Human-readable description of the task. |
| `getCreatedAt(): ?string` | ISO-8601 creation timestamp. |
| `getModifiedAt(): ?string` | ISO-8601 last-modification timestamp. |
| `isPublic(): ?bool` | Whether the task is published on its public landing page. |
Expand Down
6 changes: 6 additions & 0 deletions src/Model/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ public function getTitle(): ?string
return $this->getString('title');
}

/** The human-readable description of the task. */
public function getDescription(): ?string
{
return $this->getString('description');
}

/** When the task was created (ISO-8601 string). */
public function getCreatedAt(): ?string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ final class Version
* The semantic version of this client library (see https://semver.org/).
* Changes to the public interface other than additive ones are considered breaking changes.
*/
public const CLIENT_VERSION = '0.5.3';
public const CLIENT_VERSION = '0.6.0';

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

private function __construct()
{
Expand Down
8 changes: 7 additions & 1 deletion tests/Integration/TaskIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ public function testTaskCrudFlow(): void
self::assertNotNull($tc->get());
$tc->updateInput(['message' => 'updated']);
self::assertNotNull($tc->getInput());
$tc->update(['name' => self::uniqueName('task-renamed')]);
$updated = $tc->update([
'name' => self::uniqueName('task-renamed'),
'title' => 'Updated Title',
'description' => 'Updated description',
]);
self::assertSame('Updated Title', $updated->getTitle());
self::assertSame('Updated description', $updated->getDescription());
$tc->runs()->list(new ListOptions(), new RunListOptions());
} finally {
$client->task((string) $task->getId())->delete();
Expand Down
Loading