From 89b436da5ea9fff7706b955c6e48e143b20e849e Mon Sep 17 00:00:00 2001 From: Sava Znatnov Date: Sat, 10 Oct 2026 22:22:46 +0700 Subject: [PATCH] fix(datalens): the models follow the specification of 2026-10-10: the favorite flags are deprecated Regenerated from the specification DataLens publishes today. The `includeFavorite` arguments and `isFavorite` fields of nine sections now say they are deprecated, as the specification does, and the output schemas of the tools that return them carry it. The specification also has a new section, Favorites (`checkFavorites`, `listFavorites`). Its models are generated; the two operations are listed as not wrapped, with the reason that wrapping them is not decided. Co-Authored-By: Claude Opus 5.5 --- README.md | 8 +- README.ru.md | 2 +- scripts/api_drift.py | 7 ++ scripts/api_snapshot/datalens.json | 2 + scripts/datalens_schemas.sha256 | 19 ++-- src/ycli/yandex/datalens/schemas/dashboard.py | 14 ++- src/ycli/yandex/datalens/schemas/editor.py | 6 +- src/ycli/yandex/datalens/schemas/favorites.py | 96 +++++++++++++++++++ .../yandex/datalens/schemas/html_pages.py | 12 ++- .../yandex/datalens/schemas/navigation.py | 6 +- src/ycli/yandex/datalens/schemas/ql.py | 3 +- src/ycli/yandex/datalens/schemas/reports.py | 14 ++- .../yandex/datalens/schemas/sql_queries.py | 11 ++- src/ycli/yandex/datalens/schemas/wizard.py | 6 +- src/ycli/yandex/datalens/schemas/workbook.py | 3 +- tests/snapshots/mcp_output_schemas.txt | 22 ++--- 16 files changed, 190 insertions(+), 41 deletions(-) create mode 100644 src/ycli/yandex/datalens/schemas/favorites.py diff --git a/README.md b/README.md index 2474cbd78..c04024742 100644 --- a/README.md +++ b/README.md @@ -382,13 +382,15 @@ Timeouts, retries, limits, logging and the exit codes are in the [configuration | [embeds](https://yandex.cloud/en/docs/datalens/api-ref/Embeds/) | [list](https://yandex.cloud/en/docs/datalens/api-ref/Embeds/rpclistEmbeds-post) · [create](https://yandex.cloud/en/docs/datalens/api-ref/Embeds/rpccreateEmbed-post) · [update](https://yandex.cloud/en/docs/datalens/api-ref/Embeds/rpcupdateEmbed-post) · [delete](https://yandex.cloud/en/docs/datalens/api-ref/Embeds/rpcdeleteEmbed-post) | ✅ | ✅ | | [embeddingsecrets](https://yandex.cloud/en/docs/datalens/api-ref/EmbeddingSecrets/) | [get](https://yandex.cloud/en/docs/datalens/api-ref/EmbeddingSecrets/rpcgetEmbeddingSecret-post) · [list](https://yandex.cloud/en/docs/datalens/api-ref/EmbeddingSecrets/rpclistEmbeddingSecrets-post) · [create](https://yandex.cloud/en/docs/datalens/api-ref/EmbeddingSecrets/rpccreateEmbeddingSecret-post) · [delete](https://yandex.cloud/en/docs/datalens/api-ref/EmbeddingSecrets/rpcdeleteEmbeddingSecret-post) | ✅ | ✅ | -**Not covered** (7) +**Not covered** (9) +- ○ `POST /rpc/checkFavorites`: new section published 2026-10, wrapping not decided - ○ [`POST /rpc/createFolder`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpccreateFolder-post): the old placement model (folders); the organization has none to check it on (#394) - ○ [`POST /rpc/deleteFolder`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcdeleteFolder-post): the old placement model (folders); the organization has none to check it on (#394) - ○ [`POST /rpc/dlsSuggest`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcdlsSuggest-post): the old placement model (folders); the organization has none to check it on (#394) - ○ [`POST /rpc/getPermissions`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcgetPermissions-post): the old placement model (folders); the organization has none to check it on (#394) - ○ [`POST /rpc/listDirectory`](https://yandex.cloud/en/docs/datalens/api-ref/Navigation/rpclistDirectory-post): the old placement model (folders); the organization has none to check it on (#394) +- ○ `POST /rpc/listFavorites`: new section published 2026-10, wrapping not decided - ○ [`POST /rpc/modifyPermissions`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcmodifyPermissions-post): the old placement model (folders); the organization has none to check it on (#394) - ○ [`POST /rpc/moveFolderEntry`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcmoveFolderEntry-post): the old placement model (folders); the organization has none to check it on (#394) @@ -405,7 +407,7 @@ What ycli sends, replayed from its contract tests, compared with what Yandex pub | Tracker | 190 | 188 | 0 (+2 on purpose) | 0 | — | [API reference](https://yandex.ru/support/tracker/en/api/about-api) | | Wiki | 56 | 56 | 0 | 0 | 24 of 24 | [OpenAPI](https://api.wiki.yandex.net/v1/openapi.json) | | Forms | 84 | 84 | 0 | 8 | 26 of 30 | [OpenAPI](https://api.forms.yandex.net/v1/openapi.json) | -| DataLens | 141 | 134 | 0 (+7 on purpose) | 0 | 131 of 131 | [OpenAPI](https://api.datalens.tech/json/) | +| DataLens | 143 | 134 | 0 (+9 on purpose) | 0 | 131 of 131 | [OpenAPI](https://api.datalens.tech/json/) |
Tracker: what differs @@ -456,11 +458,13 @@ What ycli sends, replayed from its contract tests, compared with what Yandex pub | Operation | Why | |---|---| +| `POST /rpc/checkFavorites` | new section published 2026-10, wrapping not decided | | [`POST /rpc/createFolder`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpccreateFolder-post) | the old placement model (folders); the organization has none to check it on (#394) | | [`POST /rpc/deleteFolder`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcdeleteFolder-post) | the old placement model (folders); the organization has none to check it on (#394) | | [`POST /rpc/dlsSuggest`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcdlsSuggest-post) | the old placement model (folders); the organization has none to check it on (#394) | | [`POST /rpc/getPermissions`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcgetPermissions-post) | the old placement model (folders); the organization has none to check it on (#394) | | [`POST /rpc/listDirectory`](https://yandex.cloud/en/docs/datalens/api-ref/Navigation/rpclistDirectory-post) | the old placement model (folders); the organization has none to check it on (#394) | +| `POST /rpc/listFavorites` | new section published 2026-10, wrapping not decided | | [`POST /rpc/modifyPermissions`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcmodifyPermissions-post) | the old placement model (folders); the organization has none to check it on (#394) | | [`POST /rpc/moveFolderEntry`](https://yandex.cloud/en/docs/datalens/api-ref/Folder/rpcmoveFolderEntry-post) | the old placement model (folders); the organization has none to check it on (#394) | diff --git a/README.ru.md b/README.ru.md index 10b692a39..aa41228bb 100644 --- a/README.ru.md +++ b/README.ru.md @@ -135,7 +135,7 @@ YANDEX_ID_ORGANIZATION_ID=... # идентификатор вашей орг Операций API Трекера, Вики, Форм и DataLens: **467** (Трекер — 190, Вики — 58, Формы — 85, DataLens — 134), ресурсов: **88**; все операции доступны из **Python SDK** и **CLI**. MCP-инструментов для агентов: **457**. Таблицы по ресурсам и операциям — в [английском README](README.md#coverage). -Из опубликованных Яндексом операций обёрнуто: Трекер — 188 из 190, Вики — 56 из 56, Формы — 84 из 84, DataLens — 134 из 141. Чего ycli пока не умеет (параметры запросов, поля ответов), перечислено в разделе [Against the published API](README.md#against-the-published-api); сверка повторяется каждую неделю. +Из опубликованных Яндексом операций обёрнуто: Трекер — 188 из 190, Вики — 56 из 56, Формы — 84 из 84, DataLens — 134 из 143. Чего ycli пока не умеет (параметры запросов, поля ответов), перечислено в разделе [Against the published API](README.md#against-the-published-api); сверка повторяется каждую неделю. ## Разработка diff --git a/scripts/api_drift.py b/scripts/api_drift.py index 4d085033f..4fffd5963 100644 --- a/scripts/api_drift.py +++ b/scripts/api_drift.py @@ -90,6 +90,13 @@ *("getPermissions", "modifyPermissions", "dlsSuggest"), ) }, + # Favorites: a new section, published in 2026-10; wrapping it is not decided. + **{ + ("datalens", "POST", f"/rpc/{name}"): ( + "new section published 2026-10, wrapping not decided" + ) + for name in ("checkFavorites", "listFavorites") + }, } # A difference that stays, with its reason: one name of one kind (``GAP_KINDS``), either on one diff --git a/scripts/api_snapshot/datalens.json b/scripts/api_snapshot/datalens.json index 0ee773f11..e91b385e6 100644 --- a/scripts/api_snapshot/datalens.json +++ b/scripts/api_snapshot/datalens.json @@ -4,6 +4,7 @@ {"method": "POST", "path": "/rpc/batchListMembers", "name": "batchListMembers", "group": "Access", "source": "openapi", "page": "Access/rpcbatchListMembers-post", "request": ["filter", "language", "pageSize", "pageToken", "search", "tabId"], "response": ["members", "nextPageToken"]}, {"method": "POST", "path": "/rpc/cancelSparkApplication", "name": "cancelSparkApplication", "group": "SparkApplications", "source": "openapi", "request": ["applicationId", "clusterId"], "response": ["createdAt", "createdBy", "description", "done", "error", "id", "metadata", "modifiedAt", "response"]}, {"method": "POST", "path": "/rpc/cancelWorkbookExport", "name": "cancelWorkbookExport", "group": "WorkbookExport", "source": "openapi", "page": "WorkbookExport/rpccancelWorkbookExport-post", "request": ["exportId"], "response": ["exportId"]}, +{"method": "POST", "path": "/rpc/checkFavorites", "name": "checkFavorites", "group": "Favorites", "source": "openapi", "request": ["entities"], "response": ["displayAlias", "entityId", "entityType", "isFavorite"]}, {"method": "POST", "path": "/rpc/createBucketDownloadUrl", "name": "createBucketDownloadUrl", "group": "CloudEnvironmentStorage", "source": "openapi", "request": ["cloudEnvironmentId", "path"], "response": ["url"]}, {"method": "POST", "path": "/rpc/createBucketUploadUrl", "name": "createBucketUploadUrl", "group": "CloudEnvironmentStorage", "source": "openapi", "request": ["cloudEnvironmentId", "contentMd5", "path", "size"], "response": ["url"]}, {"method": "POST", "path": "/rpc/createCloudEnvironment", "name": "createCloudEnvironment", "group": "CloudEnvironments", "source": "openapi", "request": ["cloudId", "description", "name", "securityGroupIds", "storage", "subnetId"], "response": ["createdAt", "createdBy", "description", "done", "error", "id", "metadata", "modifiedAt", "response"]}, @@ -100,6 +101,7 @@ {"method": "POST", "path": "/rpc/listDirectory", "name": "listDirectory", "group": "Navigation", "source": "openapi", "page": "Navigation/rpclistDirectory-post", "request": ["createdBy", "filters", "includePermissionsInfo", "orderBy", "page", "pageSize", "path", "scope"], "response": ["breadCrumbs", "entries", "hasNextPage"]}, {"method": "POST", "path": "/rpc/listEmbeddingSecrets", "name": "listEmbeddingSecrets", "group": "EmbeddingSecrets", "source": "openapi", "page": "EmbeddingSecrets/rpclistEmbeddingSecrets-post", "request": ["workbookId"], "response": ["createdAt", "createdBy", "embeddingSecretId", "title", "workbookId"]}, {"method": "POST", "path": "/rpc/listEmbeds", "name": "listEmbeds", "group": "Embeds", "source": "openapi", "page": "Embeds/rpclistEmbeds-post", "request": ["entryId"], "response": ["createdAt", "createdBy", "depsIds", "embedId", "embeddingSecretId", "entryId", "privateParams", "publicParamsMode", "settings", "title", "unsignedParams", "updatedAt", "updatedBy"]}, +{"method": "POST", "path": "/rpc/listFavorites", "name": "listFavorites", "group": "Favorites", "source": "openapi", "request": ["entityTypes", "pageSize", "pageToken"], "response": ["entities", "nextPageToken"]}, {"method": "POST", "path": "/rpc/listSharedEntryAccessBindings", "name": "listSharedEntryAccessBindings", "group": "SharedEntry", "source": "openapi", "page": "SharedEntry/rpclistSharedEntryAccessBindings-post", "request": ["entryId", "getInheritedBindings", "pageSize", "pageToken"], "response": ["nextPageToken", "subjectsWithBindings"]}, {"method": "POST", "path": "/rpc/listSparkApplicationLog", "name": "listSparkApplicationLog", "group": "SparkApplications", "source": "openapi", "request": ["applicationId", "clusterId", "pageSize", "pageToken"], "response": ["content", "nextPageToken"]}, {"method": "POST", "path": "/rpc/listSparkApplications", "name": "listSparkApplications", "group": "SparkApplications", "source": "openapi", "request": ["clusterId", "filter", "pageSize", "pageToken"], "response": ["applications", "nextPageToken"]}, diff --git a/scripts/datalens_schemas.sha256 b/scripts/datalens_schemas.sha256 index e2625182e..39737513d 100644 --- a/scripts/datalens_schemas.sha256 +++ b/scripts/datalens_schemas.sha256 @@ -5,31 +5,32 @@ e10c5765c9d57f100994680815c7571cb1b4e025623098d13feac39592a3da5c cloud_environm ef89732c72b852ed0834f28446cada5abbe64c8f8816d132bd1a096ef018bfcf cloud_environments.py 00b2f07711b669204a64e6b993ea86856579ad7dff47bc61d101c592ae0f5cf9 collection.py 65a4c8a13d688f8ec8d826da14b8507d90376e7c19365a031aea4d51d87c45d8 connection.py -dbb1b22b5c16a6c2a64cdbea71ab23894a75182d834a932506a747f57fd5503e dashboard.py +7d8e086b5f1a9160a6267cb1b0565646e172d47fc4c99bb97f6465802a8c638d dashboard.py 8221cb538ba20d8925975e3122d924514b829cbd4069f5c0aee7ed6f245bfb72 data.py f9efb961a99c1207768c0625821389dcd3595a81bf1691118a94d74dd48beb2f dataset.py -7f85de84ab1419f464546acfdb2efe3b430b70825df1f661e1b5336724c0c4ac editor.py +11d59eae9dab5ebed2873ff1ab328bd0229f28ca59fb6d7429f6e5ca5a5c4bd0 editor.py e1e8a0118aa1d3cfcd48dfe33a096714c65a7e87114176541bf099da426f96d8 embedding_secrets.py a5800b847aa019f81329833fe28e3823ce42d9ee607e648b6e99acee1a4bdc10 embeds.py 878dfcfb5d640d231efd8d0993c2064d02b711d1774c7a931d521db99f7fa168 entries.py 6b8f7ec8053181c928c14dc50aeb727e8c82cf8a883a5eae37778150ab304cc6 entry_lock.py +16a8cd8d0de9e26cb20ca8048e57e61a82cad3edbd2cadc3691f8a295674d22c favorites.py 9b9d22497a187f120dd81712c1a6efb8f5936db8fa52ca5b2824e1661ba889fe folder.py -9f439e17740fbf100a8e80a99b77cacd7e40322cf1af8129b987e9ce518adedb html_pages.py +f4558dffe77955f1a0cf4aaebb5fa351ecb8dd696f3d01d8c3c1268061a3f713 html_pages.py a2944d4ad4e3dd23aaeb641801bafb825e1621a38238194226925b4f5a2c99ee lakehouse_operations.py 32679a24c9b1c2bb50d77f6d8903f2a4c4532d84c7b17679ad0f1d86cb109c8d licensing.py -5d1474b1773fa8fb3a063b35f6bf11abd1862926b60920a8189d40b71aa7a27f navigation.py +3f28a3426aecd531abf24774b1762a11ca43860fa759185dd6a2571cbcc903e3 navigation.py 5fb735a13f5958b75052c1f8e486c0987933a424f3f3cc31f9ed9bbfe2a09a46 permissions.py -8053318219e5fd9da7b61e47f5845cbbcc948b778a657cfef0f7b9ef480703ae ql.py -47cb212901608beadccc21ad47c4e204a975fca20318adcc4193b0c1a2aaacd7 reports.py +007e77c5ce13e8a59145112ee40219fcec55973b9f6f095cb48bab7b419b951d ql.py +bf9a01057114a3fda9e1854e9df59f77bf81009b43f49985ed790ebb818637d7 reports.py 660c36e0d9980caaa7ab77b81a7ae91d32b9c9c575be1aa74997edf3f2504c6f rest_catalogs.py 72278dc25dc6ce3a56c0910d8498ed2fa6703bcf1457b8e5622368a953481c20 shared.py 186d90efa73a171d65c47a0f31e63fcd0988801e78f029a17659328106160e10 shared_entry.py c7c5f6dbdb8037594e0526c425d6702026013566cd7d882968a60941bbc30d77 spark_applications.py c007eaa70d4622c8e4c31863c1d80104e73f9145624dd2781236fc109f4a7de0 spark_clusters.py -ff7ebb23c520265c1a93b2b5b923b8dbb1e410d0ae423cad7731bc1ad2b25b02 sql_queries.py +5fe0117796e50b5bd88b4fa2e1310c9ee9c73a650171a1ae9f6870e917fd0d79 sql_queries.py 5e61dbf756b08efc5dee106611379bf15bde50c1fb6c3725a4137f4a77f21bc9 tenants.py a691214c05a4267714d4c646580fa23374370a7e85675fb508a1ceca1fa5dcb2 trino_clusters.py -a211833a4ac21149293d0957e1d26f4a9789a1d86806d447ba736b1fd419c434 wizard.py -b97cafd3d73b8c4c9fdfc7f1161de94b77f0447312d1545051a7e246f8b78e1c workbook.py +b60c79744cf6e230401b5ac593df912ce683d1dc074886944411617e16159d15 wizard.py +37d89fa2d64450e2a49e5f9d8dc06239f55d137c2358c22b8a05919422ed2886 workbook.py b8d351d03d0191744034b9b94c2278600b5513926136b86cd3bdb7ce44df3699 workbook_export.py 5a22a5c3cd2d32cca64c1e5e5e508b822f64120b2a924fbfbdb3b83e45f5d3f8 workbook_import.py diff --git a/src/ycli/yandex/datalens/schemas/dashboard.py b/src/ycli/yandex/datalens/schemas/dashboard.py index 3bb78e2f5..430ace08c 100644 --- a/src/ycli/yandex/datalens/schemas/dashboard.py +++ b/src/ycli/yandex/datalens/schemas/dashboard.py @@ -14,7 +14,12 @@ class GetDashboardV2Args(RequestBody): rev_id: str | None = Field(default=None, alias="revId") include_permissions: bool | None = Field(default=None, alias="includePermissions") include_links: bool | None = Field(default=None, alias="includeLinks") - include_favorite: bool | None = Field(default=None, alias="includeFavorite") + include_favorite: bool | None = Field( + default=None, + alias="includeFavorite", + deprecated=True, + description="Deprecated: the parameter will be removed in a future API version.", + ) branch: shared.EntryBranch | None = None workbook_id: str | None = Field(default=None, alias="workbookId") @@ -1048,7 +1053,12 @@ class DashboardV2(APIModel): class GetDashboardV2Result(APIModel): entry: DashboardV2 | None = None - is_favorite: bool | None = Field(default=None, alias="isFavorite") + is_favorite: bool | None = Field( + default=None, + alias="isFavorite", + deprecated=True, + description="Deprecated: the field will be removed in a future API version.", + ) permissions: shared.EntryPermissions | None = None diff --git a/src/ycli/yandex/datalens/schemas/editor.py b/src/ycli/yandex/datalens/schemas/editor.py index 14eb6b26b..184eb5d7c 100644 --- a/src/ycli/yandex/datalens/schemas/editor.py +++ b/src/ycli/yandex/datalens/schemas/editor.py @@ -36,7 +36,8 @@ class GetEditorChartArgs(RequestBody): include_favorite: bool | None = Field( default=None, alias="includeFavorite", - description="Include favorite status in the response.", + deprecated=True, + description="Include favorite status in the response. Deprecated: the parameter will be removed in a future API version.", ) branch: shared.EntryBranch | None = None @@ -562,7 +563,8 @@ class GetEditorChartResult(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Indicates if the chart is marked as favorite.", + deprecated=True, + description="Indicates if the chart is marked as favorite. Deprecated: the field will be removed in a future API version.", ) permissions: GetEditorChartResultPermissions | None = None diff --git a/src/ycli/yandex/datalens/schemas/favorites.py b/src/ycli/yandex/datalens/schemas/favorites.py new file mode 100644 index 000000000..e344315f3 --- /dev/null +++ b/src/ycli/yandex/datalens/schemas/favorites.py @@ -0,0 +1,96 @@ +# Generated from the DataLens specification by scripts/gen_datalens_models.py; do not edit by hand. + +from typing import Annotated, Literal + +from pydantic import Field, RootModel + +from ycli.yandex.models import APIModel, NoDropNull, RequestBody + + +class CheckedFavorite(APIModel): + entity_id: str | None = Field(default=None, alias="entityId", description="ID of the entity.") + entity_type: Literal["entry", "workbook", "collection"] | str | None = Field( + default=None, alias="entityType", description="Type of the entity." + ) + is_favorite: bool | None = Field( + default=None, + alias="isFavorite", + description="Whether the current user has marked the entity as a favorite.", + ) + display_alias: Annotated[str | None, NoDropNull()] = Field( + default=None, + alias="displayAlias", + description="Custom name the user gave to the favorite, or null if there is none.", + ) + + +class CheckFavoritesResult(RootModel[list[CheckedFavorite]], hide_input_in_errors=True): + """Checked entities in the order of the request. Duplicates are repeated.""" + + root: list[CheckedFavorite] = Field( + ..., + description="Checked entities in the order of the request. Duplicates are repeated.", + ) + + +class FavoriteEntityRef(APIModel): + entity_id: str | None = Field(default=None, alias="entityId", description="ID of the entity.") + entity_type: Literal["entry", "workbook", "collection"] | str | None = Field( + default=None, alias="entityType", description="Type of the entity." + ) + + +class CheckFavoritesArgs(RequestBody): + entities: list[FavoriteEntityRef] = Field(..., description="Entities to check.") + + +class FavoriteMark(APIModel): + entity_id: str | None = Field( + default=None, + alias="entityId", + description="ID of the entity marked as a favorite.", + ) + entity_type: Literal["entry", "workbook", "collection"] | str | None = Field( + default=None, + alias="entityType", + description="Type of the entity marked as a favorite.", + ) + display_alias: Annotated[str | None, NoDropNull()] = Field( + default=None, + alias="displayAlias", + description="Custom name the user gave to the favorite, or null if there is none.", + ) + created_at: str | None = Field( + default=None, + alias="createdAt", + description="Date and time when the entity was marked as a favorite.", + ) + + +class ListFavoritesResult(APIModel): + entities: list[FavoriteMark] | None = Field( + default=None, description="Favorite marks of the current user." + ) + next_page_token: str | None = Field( + default=None, + alias="nextPageToken", + description="Token of the next page. Absent on the last page.", + ) + + +class ListFavoritesArgs(RequestBody): + entity_types: list[Literal["entry", "workbook", "collection"] | str] | None = Field( + default=None, + alias="entityTypes", + description="Entity types to return. All types are returned if the field is omitted.", + ) + page_size: int | None = Field( + default=None, + alias="pageSize", + description="Maximum number of favorites per page. Defaults to 200.", + ) + page_token: str | None = Field( + default=None, + alias="pageToken", + description="Token of the page to return, taken from the previous response.", + ) diff --git a/src/ycli/yandex/datalens/schemas/html_pages.py b/src/ycli/yandex/datalens/schemas/html_pages.py index 40c50aa24..4d79b22eb 100644 --- a/src/ycli/yandex/datalens/schemas/html_pages.py +++ b/src/ycli/yandex/datalens/schemas/html_pages.py @@ -25,7 +25,8 @@ class GetHtmlPageArgs(RequestBody): include_favorite: bool | None = Field( default=None, alias="includeFavorite", - description="Whether to include the favorite status.", + deprecated=True, + description="Whether to include the favorite status. Deprecated: the parameter will be removed in a future API version.", ) @@ -290,7 +291,8 @@ class GetHtmlPageResult(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Whether the HTML page is a favorite.", + deprecated=True, + description="Whether the HTML page is a favorite. Deprecated: the field will be removed in a future API version.", ) permissions: GetHtmlPageResultPermissions | None = None @@ -378,7 +380,8 @@ class CreateHtmlPageResultEntry(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Whether the HTML page is a favorite.", + deprecated=True, + description="Whether the HTML page is a favorite. Deprecated: the field will be removed in a future API version.", ) permissions: CreateHtmlPageResultEntryPermissions | None = None @@ -466,7 +469,8 @@ class UpdateHtmlPageResultEntry(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Whether the HTML page is a favorite.", + deprecated=True, + description="Whether the HTML page is a favorite. Deprecated: the field will be removed in a future API version.", ) permissions: UpdateHtmlPageResultEntryPermissions | None = None diff --git a/src/ycli/yandex/datalens/schemas/navigation.py b/src/ycli/yandex/datalens/schemas/navigation.py index 1dc7f9e7b..5f61de03d 100644 --- a/src/ycli/yandex/datalens/schemas/navigation.py +++ b/src/ycli/yandex/datalens/schemas/navigation.py @@ -224,7 +224,8 @@ class ListDirectoryEntry(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Indicates if the entry is marked as favorite.", + deprecated=True, + description="Indicates if the entry is marked as favorite. Deprecated: the field will be removed in a future API version.", ) is_locked: bool | None = Field( default=None, alias="isLocked", description="Indicates if the entry is locked." @@ -340,7 +341,8 @@ class GetEntriesV2ResultEntriesItem(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Whether the entry is marked as a favorite.", + deprecated=True, + description="Whether the entry is marked as a favorite. Deprecated: the field will be removed in a future API version.", ) permissions: GetEntriesV2ResultEntriesItemPermissions | None = None links: dict[str, Any] | None = Field( diff --git a/src/ycli/yandex/datalens/schemas/ql.py b/src/ycli/yandex/datalens/schemas/ql.py index af85e3a99..ece35981f 100644 --- a/src/ycli/yandex/datalens/schemas/ql.py +++ b/src/ycli/yandex/datalens/schemas/ql.py @@ -38,7 +38,8 @@ class GetQLChartArgs(RequestBody): include_favorite: bool | None = Field( default=None, alias="includeFavorite", - description="Include favorite status in the response.", + deprecated=True, + description="Include favorite status in the response. Deprecated: the parameter will be removed in a future API version.", ) branch: shared.EntryBranch | None = None diff --git a/src/ycli/yandex/datalens/schemas/reports.py b/src/ycli/yandex/datalens/schemas/reports.py index 8bf98b522..abba07a6e 100644 --- a/src/ycli/yandex/datalens/schemas/reports.py +++ b/src/ycli/yandex/datalens/schemas/reports.py @@ -21,7 +21,12 @@ class GetReportV2Args(RequestBody): entry_id: str = Field(..., alias="entryId") rev_id: str | None = Field(default=None, alias="revId") include_permissions: bool | None = Field(default=None, alias="includePermissions") - include_favorite: bool | None = Field(default=None, alias="includeFavorite") + include_favorite: bool | None = Field( + default=None, + alias="includeFavorite", + deprecated=True, + description="Deprecated: the parameter will be removed in a future API version.", + ) class DeleteReportArgs(RequestBody): @@ -693,7 +698,12 @@ class ReportV2(APIModel): class GetReportV2Result(APIModel): entry: ReportV2 | None = None - is_favorite: bool | None = Field(default=None, alias="isFavorite") + is_favorite: bool | None = Field( + default=None, + alias="isFavorite", + deprecated=True, + description="Deprecated: the field will be removed in a future API version.", + ) permissions: shared.EntryPermissions | None = None diff --git a/src/ycli/yandex/datalens/schemas/sql_queries.py b/src/ycli/yandex/datalens/schemas/sql_queries.py index 70d533fcb..f3098bc28 100644 --- a/src/ycli/yandex/datalens/schemas/sql_queries.py +++ b/src/ycli/yandex/datalens/schemas/sql_queries.py @@ -26,7 +26,8 @@ class GetSqlQueryArgs(RequestBody): include_favorite: bool | None = Field( default=None, alias="includeFavorite", - description="Whether to include the favorite status.", + deprecated=True, + description="Whether to include the favorite status. Deprecated: the parameter will be removed in a future API version.", ) @@ -224,6 +225,11 @@ class RunSqlQueryResultResultsItem(APIModel): default=None, description="Rows of the statement result, with values in the order of the columns.", ) + has_more_rows: bool | None = Field( + default=None, + alias="hasMoreRows", + description="Whether the statement returned more rows than included in `rows`.", + ) affected_rows: int | float | None = Field( default=None, alias="affectedRows", @@ -423,7 +429,8 @@ class GetSqlQueryResult(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Whether the SQL query is a favorite.", + deprecated=True, + description="Whether the SQL query is a favorite. Deprecated: the field will be removed in a future API version.", ) permissions: GetSqlQueryResultPermissions | None = None diff --git a/src/ycli/yandex/datalens/schemas/wizard.py b/src/ycli/yandex/datalens/schemas/wizard.py index aca5d6e99..a7ccbd0e0 100644 --- a/src/ycli/yandex/datalens/schemas/wizard.py +++ b/src/ycli/yandex/datalens/schemas/wizard.py @@ -46,7 +46,8 @@ class GetWizardChartV1Args(RequestBody): include_favorite: bool | None = Field( default=None, alias="includeFavorite", - description="Include favorite status in the response.", + deprecated=True, + description="Include favorite status in the response. Deprecated: the parameter will be removed in a future API version.", ) branch: shared.EntryBranch | None = None @@ -10494,7 +10495,8 @@ class GetWizardChartV1Result(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Indicates if the chart is marked as favorite.", + deprecated=True, + description="Indicates if the chart is marked as favorite. Deprecated: the field will be removed in a future API version.", ) permissions: GetWizardChartV1ResultPermissions | None = None diff --git a/src/ycli/yandex/datalens/schemas/workbook.py b/src/ycli/yandex/datalens/schemas/workbook.py index b5f99ed72..995721c2e 100644 --- a/src/ycli/yandex/datalens/schemas/workbook.py +++ b/src/ycli/yandex/datalens/schemas/workbook.py @@ -460,7 +460,8 @@ class GetWorkbookEntriesEntry(APIModel): is_favorite: bool | None = Field( default=None, alias="isFavorite", - description="Indicates if the entry is marked as favorite.", + deprecated=True, + description="Indicates if the entry is marked as favorite. Deprecated: the field will be removed in a future API version.", ) is_locked: bool | None = Field( default=None, alias="isLocked", description="Indicates if the entry is locked." diff --git a/tests/snapshots/mcp_output_schemas.txt b/tests/snapshots/mcp_output_schemas.txt index 9271af876..980aa7a76 100644 --- a/tests/snapshots/mcp_output_schemas.txt +++ b/tests/snapshots/mcp_output_schemas.txt @@ -3,7 +3,7 @@ datalens_audit_entry_permissions_get 48cb56a5f7693f2b datalens_charts_data_get 047419b8b58dd9c5 datalens_charts_editor_create 4506d6e7242a0dac datalens_charts_editor_delete 5037df4f3953d287 -datalens_charts_editor_get d12a0470d8bb3a60 +datalens_charts_editor_get a42a64174ea85a70 datalens_charts_editor_update 4506d6e7242a0dac datalens_charts_ql_create 43c814392bdbccce datalens_charts_ql_delete 5037df4f3953d287 @@ -11,7 +11,7 @@ datalens_charts_ql_get b3a2679d856c64e1 datalens_charts_ql_update 43c814392bdbccce datalens_charts_wizard_create 01239de1495b9d0e datalens_charts_wizard_delete 5037df4f3953d287 -datalens_charts_wizard_get 36f2261daf400c69 +datalens_charts_wizard_get 8e3e11286bafcdeb datalens_charts_wizard_update 01239de1495b9d0e datalens_cloudenvironments_create 06911f550f05c226 datalens_cloudenvironments_delete 06911f550f05c226 @@ -41,7 +41,7 @@ datalens_connections_get 291e616c93203734 datalens_connections_update 5037df4f3953d287 datalens_dashboards_create 5136a90f97b5abb5 datalens_dashboards_delete 5037df4f3953d287 -datalens_dashboards_get 5e9e1f5e46e8ec5f +datalens_dashboards_get 2918551261a5f7fc datalens_dashboards_update 5136a90f97b5abb5 datalens_datasets_create 532a6c24d9cee25a datalens_datasets_data_get 4bd5e0693eb22867 @@ -57,7 +57,7 @@ datalens_embeds_create 3bc50f1b54f563a2 datalens_embeds_delete ccb6c6fd55d6da97 datalens_embeds_list 00e8af2f5d95154c datalens_embeds_update 3bc50f1b54f563a2 -datalens_entries_list 91d5d578d1347c22 +datalens_entries_list 0e69eb95bed26375 datalens_entries_permissions_get 4a9e7513ef7bb5d6 datalens_entries_relations_list 62a2d93e9f9e579e datalens_entries_rename 306b22e33a5861f7 @@ -65,11 +65,11 @@ datalens_entries_revisions_list 6ecb01a9433fa5a5 datalens_entrylocks_create c00e9338a13776a2 datalens_entrylocks_delete 20bca3c3041f4b6b datalens_entrylocks_extend 20bca3c3041f4b6b -datalens_htmlpages_create 3616b3aa48192e31 +datalens_htmlpages_create f733b926f849989a datalens_htmlpages_delete 5037df4f3953d287 -datalens_htmlpages_get d4fa29f56ab40ecc +datalens_htmlpages_get 1c4de6fa2baf11f8 datalens_htmlpages_preview_url_get 9a3690858ff2baf6 -datalens_htmlpages_update ce13e318be9e4203 +datalens_htmlpages_update 96cd102bb09e1605 datalens_lakehouseoperations_get 06911f550f05c226 datalens_licensing_licenses_assign 97664fea4f71cd68 datalens_licensing_licenses_list 9d86918a44a2cffe @@ -79,7 +79,7 @@ datalens_members_list 30b95c80d1898c88 datalens_permissions_get_bulk 8210ad89ab020789 datalens_reports_create 4150e0fcc9b32f66 datalens_reports_delete 5037df4f3953d287 -datalens_reports_get 644952f2aefbcf58 +datalens_reports_get 5acbffb50a07faaf datalens_reports_update 4dfb59e10c2fe5a2 datalens_restcatalogs_create 06911f550f05c226 datalens_restcatalogs_list 0a6fd9b2f3c60926 @@ -100,8 +100,8 @@ datalens_sparkclusters_start 06911f550f05c226 datalens_sparkclusters_stop 06911f550f05c226 datalens_sqlqueries_create bf6e117720108299 datalens_sqlqueries_delete 5037df4f3953d287 -datalens_sqlqueries_get 7348b4c365fe468d -datalens_sqlqueries_run 4a410c877ca8bbe6 +datalens_sqlqueries_get abcbed0bd5c88d9c +datalens_sqlqueries_run 52233e50814e4d67 datalens_sqlqueries_update bf6e117720108299 datalens_tenant_details_get 7cacbce0fd0b5234 datalens_trinoclusters_catalog_create 06911f550f05c226 @@ -125,7 +125,7 @@ datalens_workbooks_access_bindings_update a05d41d99e32d5bd datalens_workbooks_create 4757e55992ae8852 datalens_workbooks_delete 6dafbdef3fd221b1 datalens_workbooks_delete_bulk a85dde78fdd84227 -datalens_workbooks_entries_list ae2ae561ded784a8 +datalens_workbooks_entries_list 8af45be5c1ab48b3 datalens_workbooks_get d0e3e93c81b23242 datalens_workbooks_list e35a9eb7400958a4 datalens_workbooks_list_by_ids 29bc34f05555330a