diff --git a/CHANGELOG.md b/CHANGELOG.md index a5929a3..7a98b6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.1 + +- Bumped `ApifyClientVersion.ApiSpecVersion` to the Apify OpenAPI spec `v2-2026-07-07T132551Z` and the + project version to `0.1.1`. +- Corrected a wrong `LastRunOptions` doc comment: `Origin` and `Status` are spec-declared query + parameters on the last-run endpoints (the comment had claimed `Origin` was not); `waitForFinish` is + intentionally omitted for parity with the reference client's `lastRun`. Behaviour unchanged. + ## 0.1.0 - Initial .NET client for the Apify API (spec `v2-2026-07-02T131926Z`). diff --git a/docs/README.md b/docs/README.md index 30f6e4b..19d1219 100644 --- a/docs/README.md +++ b/docs/README.md @@ -69,10 +69,10 @@ the `using` directives for whichever ones a file references: | Namespace | What lives here | |---|---| -| `Apify.Client` | The entry point (`ApifyClient`), `ApifyClientOptions`, and `ApifyClientVersion`. | -| `Apify.Client.Resources` | Every resource client the entry point returns — `ActorClient`, `RunClient`, `BuildClient`, `DatasetClient`, `KeyValueStoreClient`, `RequestQueueClient`, `TaskClient`, `ScheduleClient`, `LogClient`, `UserClient`, the `…CollectionClient` types, etc. | +| `Apify.Client` | The entry point (`ApifyClient`), `ApifyClientOptions`, `ApifyClientVersion`, and the log-redirection helper `StreamedLog`. | +| `Apify.Client.Resources` | Every resource client the entry point returns — `ActorClient`, `RunClient`, `BuildClient`, `DatasetClient`, `KeyValueStoreClient`, `RequestQueueClient`, `TaskClient`, `ScheduleClient`, `LogClient`, `UserClient`, the `…CollectionClient` types (including `NestedWebhookCollectionClient` and `WebhookDispatchCollectionClient`), etc. | | `Apify.Client.Models` | Data models returned by the clients — `Actor`, `ActorRun`, `Build`, `Dataset`, `RequestQueueRequest`, `ActorEnvVar`, `PaginationList`, and so on. | -| `Apify.Client.Options` | The option/request objects passed into methods — `ActorStartOptions`, `DatasetListItemsOptions`, `ListOptions`, `SetRecordOptions`, `StorageListOptions`, etc. | +| `Apify.Client.Options` | The option/request objects passed into methods — `ActorStartOptions`, `DatasetListItemsOptions`, `DownloadItemsFormat`, `ListOptions`, `SetRecordOptions`, `StorageListOptions`, etc. | | `Apify.Client.Exceptions` | `ApifyApiException` and `ApifyTransportException`. | | `Apify.Client.Http` | The replaceable transport: `IHttpTransport` and the default `HttpClientTransport`. | diff --git a/docs/runs.md b/docs/runs.md index deea171..70b5958 100644 --- a/docs/runs.md +++ b/docs/runs.md @@ -23,7 +23,7 @@ collections). - `MetamorphAsync(string targetActorId, object? input = null, MetamorphOptions? options = null)` → `ActorRun`. - `RebootAsync()` → `ActorRun`. - `ResurrectAsync(RunResurrectOptions? options = null)` → `ActorRun`. -- `ChargeAsync(RunChargeOptions options)` — record pay-per-event charges (idempotent). +- `ChargeAsync(RunChargeOptions options)` → `Task` — record pay-per-event charges (idempotent). - `WaitForFinishAsync(int? waitSecs = null)` → `ActorRun`. - `Dataset()`, `KeyValueStore()`, `RequestQueue()` — the run's default storages. - `Log()` → `LogClient`; `GetStreamedLogAsync()` → `Stream` (live raw log). diff --git a/src/Apify.Client/Apify.Client.csproj b/src/Apify.Client/Apify.Client.csproj index 9c2987c..0fc2184 100644 --- a/src/Apify.Client/Apify.Client.csproj +++ b/src/Apify.Client/Apify.Client.csproj @@ -6,7 +6,7 @@ Apify.Client - 0.1.0 + 0.1.1 Apify Apify Apify API client for .NET diff --git a/src/Apify.Client/ApifyClientVersion.cs b/src/Apify.Client/ApifyClientVersion.cs index 7d5e43f..bb519dd 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.1.0"; + public const string ClientVersion = "0.1.1"; /// /// 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-07-02T131926Z"; + public const string ApiSpecVersion = "v2-2026-07-07T132551Z"; } diff --git a/src/Apify.Client/Options/LastRunOptions.cs b/src/Apify.Client/Options/LastRunOptions.cs index cfb5a61..fd32f95 100644 --- a/src/Apify.Client/Options/LastRunOptions.cs +++ b/src/Apify.Client/Options/LastRunOptions.cs @@ -5,9 +5,11 @@ namespace Apify.Client.Options; /// filter unset. /// /// -/// Origin is an Apify-platform convenience exposed by the reference client but not documented as a -/// query parameter in the OpenAPI spec; it is included for parity, threaded to the same runs/last -/// endpoint. +/// Status and Origin are both spec-declared query parameters on the last-run endpoints +/// (GET /v2/actors/{actorId}/runs/last and GET /v2/actor-tasks/{actorTaskId}/runs/last), +/// matching the reference client's lastRun({ status, origin }). The spec also declares +/// waitForFinish on those endpoints, but the reference client does not expose it on lastRun, +/// so it is intentionally omitted here for parity. /// public sealed class LastRunOptions {