From b2321637a1b4995c2b198eb96c55574301ae81c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 18:16:23 +0000 Subject: [PATCH 01/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8aedd9c8..10492c2a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml -openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml +openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 config_hash: cdcae65deb496342d19067f314258060 From f5b07bd926b1917a48bdb7922e07fd8576792961 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 20:16:21 +0000 Subject: [PATCH 02/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 10492c2a..958c6fa2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml -openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml +openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae config_hash: cdcae65deb496342d19067f314258060 From c10004afb017a04def2bddd6ce1693c0d6a0941a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 21:16:21 +0000 Subject: [PATCH 03/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 958c6fa2..10492c2a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml -openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml +openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 config_hash: cdcae65deb496342d19067f314258060 From 9487e9b0a03d8ac2d5d0e67a2a108c8a1488c4d0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 22:16:23 +0000 Subject: [PATCH 04/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 10492c2a..1df19898 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml -openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml +openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b config_hash: cdcae65deb496342d19067f314258060 From 4af7578eecf4058056d88ceaf635fc4447ee4e62 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 00:16:18 +0000 Subject: [PATCH 05/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1df19898..958c6fa2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml -openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml +openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae config_hash: cdcae65deb496342d19067f314258060 From d32a0b8a8b277035ce633d5a2a9f76493db021d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 01:16:16 +0000 Subject: [PATCH 06/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 958c6fa2..8aedd9c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml -openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml +openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d config_hash: cdcae65deb496342d19067f314258060 From b916a9ec08c600e2f30c94be18363ae9b3a942fe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 02:16:16 +0000 Subject: [PATCH 07/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8aedd9c8..1df19898 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml -openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml +openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b config_hash: cdcae65deb496342d19067f314258060 From 9b67a8b15e16e704404b228edddd0c381d1fbc4d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 02:40:55 +0000 Subject: [PATCH 08/23] feat(internal/types): support eagerly validating pydantic iterators --- src/albot_api_sdk/_models.py | 80 ++++++++++++++++++++++++++++++++++++ tests/test_models.py | 60 +++++++++++++++++++++++++-- 2 files changed, 137 insertions(+), 3 deletions(-) diff --git a/src/albot_api_sdk/_models.py b/src/albot_api_sdk/_models.py index 29070e05..8c5ab260 100644 --- a/src/albot_api_sdk/_models.py +++ b/src/albot_api_sdk/_models.py @@ -25,7 +25,9 @@ ClassVar, Protocol, Required, + Annotated, ParamSpec, + TypeAlias, TypedDict, TypeGuard, final, @@ -79,7 +81,15 @@ from ._constants import RAW_RESPONSE_HEADER if TYPE_CHECKING: + from pydantic import GetCoreSchemaHandler, ValidatorFunctionWrapHandler + from pydantic_core import CoreSchema, core_schema from pydantic_core.core_schema import ModelField, ModelSchema, LiteralSchema, ModelFieldsSchema +else: + try: + from pydantic_core import CoreSchema, core_schema + except ImportError: + CoreSchema = None + core_schema = None __all__ = ["BaseModel", "GenericModel"] @@ -396,6 +406,76 @@ def model_dump_json( ) +class _EagerIterable(list[_T], Generic[_T]): + """ + Accepts any Iterable[T] input (including generators), consumes it + eagerly, and validates all items upfront. + + Validation preserves the original container type where possible + (e.g. a set[T] stays a set[T]). Serialization (model_dump / JSON) + always emits a list — round-tripping through model_dump() will not + restore the original container type. + """ + + @classmethod + def __get_pydantic_core_schema__( + cls, + source_type: Any, + handler: GetCoreSchemaHandler, + ) -> CoreSchema: + (item_type,) = get_args(source_type) or (Any,) + item_schema: CoreSchema = handler.generate_schema(item_type) + list_of_items_schema: CoreSchema = core_schema.list_schema(item_schema) + + return core_schema.no_info_wrap_validator_function( + cls._validate, + list_of_items_schema, + serialization=core_schema.plain_serializer_function_ser_schema( + cls._serialize, + info_arg=False, + ), + ) + + @staticmethod + def _validate(v: Iterable[_T], handler: "ValidatorFunctionWrapHandler") -> Any: + original_type: type[Any] = type(v) + + # Normalize to list so list_schema can validate each item + if isinstance(v, list): + items: list[_T] = v + else: + try: + items = list(v) + except TypeError as e: + raise TypeError("Value is not iterable") from e + + # Validate items against the inner schema + validated: list[_T] = handler(items) + + # Reconstruct original container type + if original_type is list: + return validated + # str(list) produces the list's repr, not a string built from items, + # so skip reconstruction for str and its subclasses. + if issubclass(original_type, str): + return validated + try: + return original_type(validated) + except (TypeError, ValueError): + # If the type cannot be reconstructed, just return the validated list + return validated + + @staticmethod + def _serialize(v: Iterable[_T]) -> list[_T]: + """Always serialize as a list so Pydantic's JSON encoder is happy.""" + if isinstance(v, list): + return v + return list(v) + + +EagerIterable: TypeAlias = Annotated[Iterable[_T], _EagerIterable] + + def _construct_field(value: object, field: FieldInfo, key: str) -> object: if value is None: return field_get_default(field) diff --git a/tests/test_models.py b/tests/test_models.py index cbc1dbae..ea789786 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -1,7 +1,8 @@ import json -from typing import TYPE_CHECKING, Any, Dict, List, Union, Optional, cast +from typing import TYPE_CHECKING, Any, Dict, List, Union, Iterable, Optional, cast from datetime import datetime, timezone -from typing_extensions import Literal, Annotated, TypeAliasType +from collections import deque +from typing_extensions import Literal, Annotated, TypedDict, TypeAliasType import pytest import pydantic @@ -9,7 +10,7 @@ from albot_api_sdk._utils import PropertyInfo from albot_api_sdk._compat import PYDANTIC_V1, parse_obj, model_dump, model_json -from albot_api_sdk._models import DISCRIMINATOR_CACHE, BaseModel, construct_type +from albot_api_sdk._models import DISCRIMINATOR_CACHE, BaseModel, EagerIterable, construct_type class BasicModel(BaseModel): @@ -961,3 +962,56 @@ def __getattr__(self, attr: str) -> Item: ... assert model.a.prop == 1 assert isinstance(model.a, Item) assert model.other == "foo" + + +# NOTE: Workaround for Pydantic Iterable behavior. +# Iterable fields are replaced with a ValidatorIterator and may be consumed +# during serialization, which can cause subsequent dumps to return empty data. +# See: https://github.com/pydantic/pydantic/issues/9541 +@pytest.mark.parametrize( + "data, expected_validated", + [ + ([1, 2, 3], [1, 2, 3]), + ((1, 2, 3), (1, 2, 3)), + (set([1, 2, 3]), set([1, 2, 3])), + (iter([1, 2, 3]), [1, 2, 3]), + ([], []), + ((x for x in [1, 2, 3]), [1, 2, 3]), + (map(lambda x: x, [1, 2, 3]), [1, 2, 3]), + (frozenset([1, 2, 3]), frozenset([1, 2, 3])), + (deque([1, 2, 3]), deque([1, 2, 3])), + ], + ids=["list", "tuple", "set", "iterator", "empty", "generator", "map", "frozenset", "deque"], +) +@pytest.mark.skipif(PYDANTIC_V1, reason="this is only supported in pydantic v2") +def test_iterable_construction(data: Iterable[int], expected_validated: Iterable[int]) -> None: + class TypeWithIterable(TypedDict): + items: EagerIterable[int] + + class Model(BaseModel): + data: TypeWithIterable + + m = Model.model_validate({"data": {"items": data}}) + assert m.data["items"] == expected_validated + + # Verify repeated dumps don't lose data (the original bug) + assert m.model_dump()["data"]["items"] == list(expected_validated) + assert m.model_dump()["data"]["items"] == list(expected_validated) + + +@pytest.mark.skipif(PYDANTIC_V1, reason="this is only supported in pydantic v2") +def test_iterable_construction_str_falls_back_to_list() -> None: + # str is iterable (over chars), but str(list_of_chars) produces the list's repr + # rather than reconstructing a string from items. We special-case str to fall + # back to list instead of attempting reconstruction. + class TypeWithIterable(TypedDict): + items: EagerIterable[str] + + class Model(BaseModel): + data: TypeWithIterable + + m = Model.model_validate({"data": {"items": "hello"}}) + + # falls back to list of chars rather than calling str(["h", "e", "l", "l", "o"]) + assert m.data["items"] == ["h", "e", "l", "l", "o"] + assert m.model_dump()["data"]["items"] == ["h", "e", "l", "l", "o"] From 4c0d3eebba6de0f6f37ab9eadb5ca00c16720d2d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 03:16:20 +0000 Subject: [PATCH 09/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1df19898..8aedd9c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml -openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml +openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d config_hash: cdcae65deb496342d19067f314258060 From 34b97c20096cdc051bf7d52acc8a669286057d76 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 05:16:21 +0000 Subject: [PATCH 10/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8aedd9c8..958c6fa2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml -openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml +openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae config_hash: cdcae65deb496342d19067f314258060 From 7fba25a6a6b743ce33121a5f253df89d9f65e2e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 06:16:22 +0000 Subject: [PATCH 11/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 958c6fa2..8aedd9c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml -openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml +openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d config_hash: cdcae65deb496342d19067f314258060 From 142af93a5e4ea91321e4b8478e92b28e1c3d93b9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 07:16:21 +0000 Subject: [PATCH 12/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8aedd9c8..958c6fa2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml -openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml +openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae config_hash: cdcae65deb496342d19067f314258060 From 1e69604424f4b34ba7154d9d4f4463ce2cd6dff8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 08:16:22 +0000 Subject: [PATCH 13/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 958c6fa2..1df19898 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml -openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml +openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b config_hash: cdcae65deb496342d19067f314258060 From 390a04a909da3ee34f95eefecc59ccf2aaf92ce8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 09:17:17 +0000 Subject: [PATCH 14/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1df19898..10492c2a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml -openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml +openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 config_hash: cdcae65deb496342d19067f314258060 From 1fd01d9874600419d1585965652a228aa6084f0d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 10:17:09 +0000 Subject: [PATCH 15/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 10492c2a..8aedd9c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml -openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml +openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d config_hash: cdcae65deb496342d19067f314258060 From 7b583c88f8a5e168270af0614d0a569541efcd13 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 12:16:23 +0000 Subject: [PATCH 16/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8aedd9c8..10492c2a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-f7c4af9e973be8bc35fc19b589911f3f2ee63493b6408ddb8b6a9b0153b340cc.yml -openapi_spec_hash: ccffc4ef13530490d438ffa0591fe10d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml +openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 config_hash: cdcae65deb496342d19067f314258060 From 2f69253750b11eb9ef609e2b1ab1a6075faf38e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 13:16:26 +0000 Subject: [PATCH 17/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 10492c2a..958c6fa2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml -openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml +openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae config_hash: cdcae65deb496342d19067f314258060 From 60b4112264db7b5614e2a9cc3a563d3852562f4c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 14:16:27 +0000 Subject: [PATCH 18/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 958c6fa2..1df19898 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-e76c9b82b033ad4efa60cf32bbc3fa98cf85866d9308a69376d93648c5b04572.yml -openapi_spec_hash: c60d514e1cb54ce33fe0f52e0dbf49ae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml +openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b config_hash: cdcae65deb496342d19067f314258060 From e4d925a910fdc198f565a7a00fbd7cfdd8c63cfd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 15:16:25 +0000 Subject: [PATCH 19/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1df19898..10492c2a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml -openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml +openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 config_hash: cdcae65deb496342d19067f314258060 From c7dd047f381776a379bf2d92fa66ee92f285e235 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 17:16:26 +0000 Subject: [PATCH 20/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 10492c2a..1df19898 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml -openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml +openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b config_hash: cdcae65deb496342d19067f314258060 From 172724d6a2b1508f809d94ead968b05004023f3a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 19:18:52 +0000 Subject: [PATCH 21/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1df19898..10492c2a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml -openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml +openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 config_hash: cdcae65deb496342d19067f314258060 From 3a132f0f5e5765a02ef4bc54511a615d5b16236a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 20:16:25 +0000 Subject: [PATCH 22/23] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 10492c2a..1df19898 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 42 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-5b44f6d6ac955d5255e3c148cb97ed46bb604e7bc7264cb36617e4c9029ba4fe.yml -openapi_spec_hash: aa98c313d8cd090408e0dd21f6c26000 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/albot/albot-api-sdk-92a80e06bb318d33dddc42604be781541eae72860cbfee1aa5bed4ebf0b8c308.yml +openapi_spec_hash: 521241404c59eb660d5db4513dcf2a6b config_hash: cdcae65deb496342d19067f314258060 From e8aaa4a0169a001b154e82ee88b189eeb4327bbd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 20:16:51 +0000 Subject: [PATCH 23/23] release: 0.5.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/albot_api_sdk/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3e2bf498..2aca35ae 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.1" + ".": "0.5.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b133d69..9bf82ce1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.5.0 (2026-05-12) + +Full Changelog: [v0.4.1...v0.5.0](https://github.com/ALbot-developers/api-sdk-py/compare/v0.4.1...v0.5.0) + +### Features + +* **internal/types:** support eagerly validating pydantic iterators ([9b67a8b](https://github.com/ALbot-developers/api-sdk-py/commit/9b67a8b15e16e704404b228edddd0c381d1fbc4d)) + ## 0.4.1 (2026-05-11) Full Changelog: [v0.4.0...v0.4.1](https://github.com/ALbot-developers/api-sdk-py/compare/v0.4.0...v0.4.1) diff --git a/pyproject.toml b/pyproject.toml index c594ec3c..b264be11 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "albot_api_sdk" -version = "0.4.1" +version = "0.5.0" description = "The official Python library for the albot-api-sdk API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/albot_api_sdk/_version.py b/src/albot_api_sdk/_version.py index 1a99048e..c21cdbdc 100644 --- a/src/albot_api_sdk/_version.py +++ b/src/albot_api_sdk/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "albot_api_sdk" -__version__ = "0.4.1" # x-release-please-version +__version__ = "0.5.0" # x-release-please-version