Repository navigation
Commit 6a218f8
authored
fix: accept task input lists, omitted run and private user fields, and datetime usage dates (#1041)
Regenerates the models from the [published OpenAPI
specification](https://docs.apify.com/api/openapi.json)
(`v2-2026-08-27T071624Z` -> `v2-2026-08-30T172245Z`), which now
describes the API's actual behavior after apify/apify-docs#2932.
User-facing changes:
- `Task.input`, `CreateTaskRequest.input`, and `UpdateTaskRequest.input`
also accept a list of objects, which the API stores and returns.
- `DailyServiceUsages.date` is a timezone-aware `datetime` instead of
`str`.
- `Run.general_access` is optional - the API omits it for a run that
follows the owner's account setting.
- `UserPrivateInfo.plan`, `effective_platform_features`, and `is_paying`
are optional - `GET /v2/users/{userId}` responses don't carry them.
Previously, responses with any of these shapes failed model validation.
Closes #1040 (a manual test run of the same regeneration against a
pre-merge bundle of the spec).
> Generated by the [Regenerate
models](https://github.com/apify/apify-client-python/actions/workflows/on_schedule_regenerate_models.yaml)
workflow.1 parent 50950de commit 6a218f8
2 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | | - | |
| 873 | + | |
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
| 944 | + | |
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| |||
2925 | 2925 | | |
2926 | 2926 | | |
2927 | 2927 | | |
2928 | | - | |
| 2928 | + | |
2929 | 2929 | | |
2930 | 2930 | | |
2931 | 2931 | | |
| |||
3503 | 3503 | | |
3504 | 3504 | | |
3505 | 3505 | | |
3506 | | - | |
| 3506 | + | |
3507 | 3507 | | |
3508 | 3508 | | |
3509 | 3509 | | |
| |||
3867 | 3867 | | |
3868 | 3868 | | |
3869 | 3869 | | |
3870 | | - | |
| 3870 | + | |
3871 | 3871 | | |
3872 | 3872 | | |
3873 | 3873 | | |
| |||
3925 | 3925 | | |
3926 | 3926 | | |
3927 | 3927 | | |
3928 | | - | |
3929 | | - | |
| 3928 | + | |
| 3929 | + | |
3930 | 3930 | | |
3931 | | - | |
| 3931 | + | |
3932 | 3932 | | |
3933 | 3933 | | |
3934 | 3934 | | |
| |||
0 commit comments