From 74e91fb4e38e1696c3242cc82f500ce053e54fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Proch=C3=A1zka?= Date: Fri, 4 Sep 2026 21:33:29 +0000 Subject: [PATCH] chore: sync .NET client with Apify OpenAPI spec v2-2026-09-02T154542Z Adds ActorTask.Description for the task resource's new description field; the rest of the spec delta (nullability tweaks to fields this client does not expose, e.g. generalAccess) requires no code change. --- CHANGELOG.md | 6 ++++++ docs/models.md | 1 + src/Apify.Client/Apify.Client.csproj | 2 +- src/Apify.Client/ApifyClientVersion.cs | 4 ++-- src/Apify.Client/Models/ActorTask.cs | 3 +++ .../Apify.Client.Tests/Integration/TaskIntegrationTests.cs | 3 +++ 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9dba42..e5a87b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.3.3 + +- Bumped `ApifyClientVersion.ApiSpecVersion` to the Apify OpenAPI spec `v2-2026-09-02T154542Z` and + the project version to `0.3.3`. +- Added `ActorTask.Description`, matching the task's new `description` field in the OpenAPI spec. + ## 0.3.2 - Bumped `ApifyClientVersion.ApiSpecVersion` to the Apify OpenAPI spec `v2-2026-08-27T071624Z` and diff --git a/docs/models.md b/docs/models.md index ef26a51..9b15e35 100644 --- a/docs/models.md +++ b/docs/models.md @@ -112,6 +112,7 @@ An entry returned when browsing the Apify Store. | `UserId` | `string?` | ID of the user who owns the task. | | `Name` | `string?` | The task's technical name. | | `Title` | `string?` | Human-readable title. | +| `Description` | `string?` | Human-readable description, shown on the task's public landing page. | | `CreatedAt` | `string?` | ISO 8601 creation timestamp. | | `ModifiedAt` | `string?` | ISO 8601 last-modification timestamp. | | `IsPublic` | `bool?` | Whether the task is published on its public landing page. Set via `TaskClient.PublishAsync()`/`UnpublishAsync()`, not directly. | diff --git a/src/Apify.Client/Apify.Client.csproj b/src/Apify.Client/Apify.Client.csproj index c4cab88..17c6e17 100644 --- a/src/Apify.Client/Apify.Client.csproj +++ b/src/Apify.Client/Apify.Client.csproj @@ -6,7 +6,7 @@ Apify.Client - 0.3.2 + 0.3.3 Apify Apify Apify API client for .NET diff --git a/src/Apify.Client/ApifyClientVersion.cs b/src/Apify.Client/ApifyClientVersion.cs index 09bb5c1..93809ff 100644 --- a/src/Apify.Client/ApifyClientVersion.cs +++ b/src/Apify.Client/ApifyClientVersion.cs @@ -14,11 +14,11 @@ public static class ApifyClientVersion /// 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 string ClientVersion = "0.3.2"; + public const string ClientVersion = "0.3.3"; /// /// The version of the Apify OpenAPI specification this client was generated and verified against. /// Corresponds to the info.version field of the Apify OpenAPI document. /// - public const string ApiSpecVersion = "v2-2026-08-27T071624Z"; + public const string ApiSpecVersion = "v2-2026-09-02T154542Z"; } diff --git a/src/Apify.Client/Models/ActorTask.cs b/src/Apify.Client/Models/ActorTask.cs index 0493ca4..8d4da9b 100644 --- a/src/Apify.Client/Models/ActorTask.cs +++ b/src/Apify.Client/Models/ActorTask.cs @@ -33,6 +33,9 @@ public ActorTask(JsonObject data) /// The human-readable title shown in the UI. public string? Title => GetString("title"); + /// The human-readable description shown in the UI and on the task's public landing page. + public string? Description => GetString("description"); + /// When the task was created (ISO-8601 string). public string? CreatedAt => GetString("createdAt"); diff --git a/tests/Apify.Client.Tests/Integration/TaskIntegrationTests.cs b/tests/Apify.Client.Tests/Integration/TaskIntegrationTests.cs index bbbb86c..756275b 100644 --- a/tests/Apify.Client.Tests/Integration/TaskIntegrationTests.cs +++ b/tests/Apify.Client.Tests/Integration/TaskIntegrationTests.cs @@ -55,6 +55,9 @@ public async Task TaskCrudFlow() await tc.UpdateInputAsync(new { message = "updated" }); Assert.NotNull(await tc.GetInputAsync()); await tc.UpdateAsync(new { name = UniqueName("task-renamed") }); + var described = await tc.UpdateAsync(new { title = "My task", description = "A test task." }); + Assert.Equal("My task", described.Title); + Assert.Equal("A test task.", described.Description); await tc.Runs().ListAsync(new ListOptions(), new RunListOptions()); } finally