diff --git a/CHANGELOG.md b/CHANGELOG.md index 99fce03..78ebc50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/docs/models.md b/docs/models.md index e08a598..016208a 100644 --- a/docs/models.md +++ b/docs/models.md @@ -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. | diff --git a/src/Model/Task.php b/src/Model/Task.php index 693af48..c4e784b 100644 --- a/src/Model/Task.php +++ b/src/Model/Task.php @@ -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 { diff --git a/src/Version.php b/src/Version.php index a8350da..102349f 100644 --- a/src/Version.php +++ b/src/Version.php @@ -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() { diff --git a/tests/Integration/TaskIntegrationTest.php b/tests/Integration/TaskIntegrationTest.php index 29bbade..6f6c330 100644 --- a/tests/Integration/TaskIntegrationTest.php +++ b/tests/Integration/TaskIntegrationTest.php @@ -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();