From 85510c1be47365c5e8a9510300ac5786066e2b9f Mon Sep 17 00:00:00 2001 From: "Joseph T. French" Date: Mon, 10 Aug 2026 00:59:29 -0500 Subject: [PATCH] Regenerate for purged report ids on the block result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Blocking a source graph with `purge` now reports which reports it removed, not only how many. `BlockSourceGraphResult` gains an optional `purged_report_ids`, so a caller can reconcile what left their graph instead of inferring it from a count. Additive and optional — generated tier, nothing in the facades or the integration template's emit path moves. Regenerated against RoboFinSystems/robosystems#1126; the GraphQL SDL is unchanged, so the typed GraphQL models are untouched. --- .../models/block_source_graph_result.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/robosystems_client/models/block_source_graph_result.py b/robosystems_client/models/block_source_graph_result.py index 15d128b..6b015ae 100644 --- a/robosystems_client/models/block_source_graph_result.py +++ b/robosystems_client/models/block_source_graph_result.py @@ -1,7 +1,7 @@ from __future__ import annotations from collections.abc import Mapping -from typing import TYPE_CHECKING, Any, TypeVar +from typing import TYPE_CHECKING, Any, TypeVar, cast from attrs import define as _attrs_define from attrs import field as _attrs_field @@ -25,11 +25,14 @@ class BlockSourceGraphResult: any purge. Default: False. purged_report_count (int | Unset): Number of previously-shared reports deleted from this graph. Zero unless `purge` was set. Default: 0. + purged_report_ids (list[str] | Unset): Ids of the previously-shared reports deleted from this graph. Empty + unless `purge` was set. """ block: BlockedSourceGraphResponse already_blocked: bool | Unset = False purged_report_count: int | Unset = 0 + purged_report_ids: list[str] | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: @@ -39,6 +42,10 @@ def to_dict(self) -> dict[str, Any]: purged_report_count = self.purged_report_count + purged_report_ids: list[str] | Unset = UNSET + if not isinstance(self.purged_report_ids, Unset): + purged_report_ids = self.purged_report_ids + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update( @@ -50,6 +57,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["already_blocked"] = already_blocked if purged_report_count is not UNSET: field_dict["purged_report_count"] = purged_report_count + if purged_report_ids is not UNSET: + field_dict["purged_report_ids"] = purged_report_ids return field_dict @@ -64,10 +73,13 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: purged_report_count = d.pop("purged_report_count", UNSET) + purged_report_ids = cast(list[str], d.pop("purged_report_ids", UNSET)) + block_source_graph_result = cls( block=block, already_blocked=already_blocked, purged_report_count=purged_report_count, + purged_report_ids=purged_report_ids, ) block_source_graph_result.additional_properties = d