Skip to content

Commit 7f8119b

Browse files
authored
chore: sync PHP client with Apify OpenAPI spec v2-2026-09-02T154542Z (#12)
1 parent 1374e72 commit 7f8119b

5 files changed

Lines changed: 22 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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 human-readable description
7+
(matching the reference JS client's `Task.description`).
8+
39
## 0.5.3
410

511
- 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 of the task. |
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. |

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 of the task. */
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/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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,13 @@ public function testTaskCrudFlow(): void
106106
self::assertNotNull($tc->get());
107107
$tc->updateInput(['message' => 'updated']);
108108
self::assertNotNull($tc->getInput());
109-
$tc->update(['name' => self::uniqueName('task-renamed')]);
109+
$updated = $tc->update([
110+
'name' => self::uniqueName('task-renamed'),
111+
'title' => 'Updated Title',
112+
'description' => 'Updated description',
113+
]);
114+
self::assertSame('Updated Title', $updated->getTitle());
115+
self::assertSame('Updated description', $updated->getDescription());
110116
$tc->runs()->list(new ListOptions(), new RunListOptions());
111117
} finally {
112118
$client->task((string) $task->getId())->delete();

0 commit comments

Comments
 (0)