chore: sync .NET client with Apify OpenAPI spec v2-2026-08-05T133145Z - #8
Merged
Conversation
Adds TaskClient.PublishAsync()/UnpublishAsync() and Task.IsPublic/PublicConfig (TaskPublicConfig), mirroring apify-client-js#989. Deduplicates the AI-disclaimer paragraph to the top-level README only, per the client requirements.
…trengthen its test
UnpublishAsync's doc claimed it needs write permission to the task only,
contradicting apify-client-js's task.ts doc ("both the task and its Actor").
Align with the reference (the sole authority, since the spec doesn't model
isPublic/publicConfig at all), and replace the trivial IsPublic-only
assertion in TaskPublishUnpublish with a response-identity check too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spec sync
Bumps
ApifyClientVersion.ApiSpecVersiontov2-2026-08-05T133145Z(fromv2-2026-07-13T092445Z). The spec delta is nullable/description/tag/operationIdcosmetics plus newly documented error codes already covered by the client's generic error handling - no functional code change is required beyond the version constant.Reference client parity
Adds
TaskClient.PublishAsync()/TaskClient.UnpublishAsync()plusActorTask.IsPublic/ActorTask.PublicConfigand the newTaskPublicConfigmodel, mirroring the reference JavaScript client's task publish/unpublish support (apify-client-js#989) that setsisPublicthrough the existing update endpoint.Documentation cleanup
Removes the duplicated AI-disclaimer paragraph from
docs/README.mdand theApifyClientXML doc comment; it now appears once, in the top-levelREADME.md, per the updated client requirements (apify-client-orchestration#41).Changes
src/Apify.Client/Resources/TaskClient.cs:PublishAsync()/UnpublishAsync().src/Apify.Client/Models/ActorTask.cs:IsPublic/PublicConfig.src/Apify.Client/Models/TaskPublicConfig.cs: new model.src/Apify.Client/ApifyClientVersion.cs/Apify.Client.csproj:ApiSpecVersionbump;ClientVersion/ packageVersion->0.2.0(minor: additive only).docs/tasks.md,docs/models.md: document the new surface.tests/Apify.Client.Tests/Integration/TaskIntegrationTests.cs,tests/Apify.Client.Tests/Unit/RequestShapeTests.cs: newTaskPublishUnpublishintegration test and publish/unpublish request-shape unit tests.src/Apify.Client/ApifyClient.cs,docs/README.md: AI-disclaimer de-duplication.CHANGELOG.md: new0.2.0entry.