Skip to content

Commit d922a18

Browse files
authored
Merge pull request #9 from apideck-libraries/speakeasy-sdk-regen-1745366706
chore: 🐝 Update SDK - Generate 0.13.0
2 parents dca5b2a + 5901506 commit d922a18

File tree

8 files changed

+65
-43
lines changed

8 files changed

+65
-43
lines changed

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
speakeasyVersion: 1.537.0
1+
speakeasyVersion: 1.540.0
22
sources:
33
accounting:
44
sourceNamespace: apideck-accounting-only-oas
5-
sourceRevisionDigest: sha256:75c224edb00d73aa60f62a0075d908560d8db919cd55ab8ca3ec3ce84ef2ed94
6-
sourceBlobDigest: sha256:e0356494399782addc098dfb7e231ab8409a591907b88c09520d2d0bfe295d57
5+
sourceRevisionDigest: sha256:62cd3514b7f1eecee5a043328375376993b44b2bebc566ec93fa4daaabf1cb5e
6+
sourceBlobDigest: sha256:dbce46b310986e91b32c65d6be4c20406323fd47dcc9a35b32cc739ccff76902
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1744382822
10-
- 10.16.2
9+
- speakeasy-sdk-regen-1745366706
10+
- 10.16.4
1111
lending:
1212
sourceNamespace: lending
1313
sourceRevisionDigest: sha256:178885971cf1c04155e742359cad4b10d0eba3a8d7de8e7a64d2e33a0678995d
@@ -19,10 +19,10 @@ targets:
1919
accounting-py:
2020
source: accounting
2121
sourceNamespace: apideck-accounting-only-oas
22-
sourceRevisionDigest: sha256:75c224edb00d73aa60f62a0075d908560d8db919cd55ab8ca3ec3ce84ef2ed94
23-
sourceBlobDigest: sha256:e0356494399782addc098dfb7e231ab8409a591907b88c09520d2d0bfe295d57
22+
sourceRevisionDigest: sha256:62cd3514b7f1eecee5a043328375376993b44b2bebc566ec93fa4daaabf1cb5e
23+
sourceBlobDigest: sha256:dbce46b310986e91b32c65d6be4c20406323fd47dcc9a35b32cc739ccff76902
2424
codeSamplesNamespace: apideck-accounting-only-oas-python-code-samples
25-
codeSamplesRevisionDigest: sha256:234ec945e5c7bb06743ead0efedef87416e277c0fbf77172fa15a632d60008e5
25+
codeSamplesRevisionDigest: sha256:d58457e14a5429a9b039b0866d3d8263f2af120b1aec709709ecb467dcddf08b
2626
accounting-ts:
2727
source: accounting
2828
sourceNamespace: accounting

accounting/.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 7d6df67c-ae69-48d7-917a-ebe77fda919e
33
management:
4-
docChecksum: 90b4d8415092405c1368c99280fb95a4
5-
docVersion: 10.16.2
6-
speakeasyVersion: 1.537.0
7-
generationVersion: 2.588.0
8-
releaseVersion: 0.12.0
9-
configChecksum: 3138a5b43d45f93be400b3c549638684
4+
docChecksum: 7499094ae39df8d912f45783a4863364
5+
docVersion: 10.16.4
6+
speakeasyVersion: 1.540.0
7+
generationVersion: 2.593.3
8+
releaseVersion: 0.13.0
9+
configChecksum: 4a957e981477e882df3b728a3c27882d
1010
repoURL: https://github.com/apideck-libraries/sdk-python-pack.git
1111
repoSubDirectory: accounting
1212
installationURL: https://github.com/apideck-libraries/sdk-python-pack.git#subdirectory=accounting
@@ -16,7 +16,7 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.15.0
19+
core: 5.16.0
2020
defaultEnabledRetries: 0.2.0
2121
deprecations: 3.0.2
2222
downloadStreams: 1.0.1

accounting/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generation:
1818
oAuth2ClientCredentialsEnabled: true
1919
oAuth2PasswordEnabled: true
2020
python:
21-
version: 0.12.0
21+
version: 0.13.0
2222
additionalDependencies:
2323
dev: {}
2424
main: {}

accounting/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,14 @@ Based on:
4848
### Generated
4949
- [python v0.12.0] accounting
5050
### Releases
51-
- [PyPI v0.12.0] https://pypi.org/project/apideck-accounting-unify/0.12.0 - accounting
51+
- [PyPI v0.12.0] https://pypi.org/project/apideck-accounting-unify/0.12.0 - accounting
52+
53+
## 2025-04-28 00:05:20
54+
### Changes
55+
Based on:
56+
- OpenAPI Doc
57+
- Speakeasy CLI 1.540.0 (2.593.3) https://github.com/speakeasy-api/speakeasy
58+
### Generated
59+
- [python v0.13.0] accounting
60+
### Releases
61+
- [PyPI v0.13.0] https://pypi.org/project/apideck-accounting-unify/0.13.0 - accounting

accounting/poetry.lock

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

accounting/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
[project]
22
name = "apideck-accounting-unify"
3-
version = "0.12.0"
3+
version = "0.13.0"
44
description = "Python Client SDK Generated by Speakeasy."
55
authors = [{ name = "Speakeasy" },]
66
readme = "README-PYPI.md"
77
requires-python = ">=3.9"
88
dependencies = [
9-
"eval-type-backport >=0.2.0",
109
"httpx >=0.28.1",
1110
"jsonpath-python >=1.0.6",
1211
"pydantic >=2.11.2",
13-
"typing-inspection >=0.4.0",
1412
]
1513

1614
[tool.poetry]

accounting/src/apideck_accounting_unify/_version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import importlib.metadata
44

55
__title__: str = "apideck-accounting-unify"
6-
__version__: str = "0.12.0"
7-
__openapi_doc_version__: str = "10.16.2"
8-
__gen_version__: str = "2.588.0"
6+
__version__: str = "0.13.0"
7+
__openapi_doc_version__: str = "10.16.4"
8+
__gen_version__: str = "2.593.3"
99
__user_agent__: str = (
10-
"speakeasy-sdk/python 0.12.0 2.588.0 10.16.2 apideck-accounting-unify"
10+
"speakeasy-sdk/python 0.13.0 2.593.3 10.16.4 apideck-accounting-unify"
1111
)
1212

1313
try:

accounting/src/apideck_accounting_unify/utils/serializers.py

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
22

33
from decimal import Decimal
4+
import functools
45
import json
5-
from typing import Any, Dict, List, Union, get_args
6-
import httpx
6+
import typing
7+
from typing import Any, Dict, List, Tuple, Union, get_args
8+
import typing_extensions
79
from typing_extensions import get_origin
10+
11+
import httpx
812
from pydantic import ConfigDict, create_model
913
from pydantic_core import from_json
10-
from typing_inspection.typing_objects import is_union
1114

1215
from ..types.basemodel import BaseModel, Nullable, OptionalNullable, Unset
1316

@@ -185,6 +188,13 @@ def is_nullable(field):
185188
return False
186189

187190

191+
def is_union(obj: object) -> bool:
192+
"""
193+
Returns True if the given object is a typing.Union or typing_extensions.Union.
194+
"""
195+
return any(obj is typing_obj for typing_obj in _get_typing_objects_by_name_of("Union"))
196+
197+
188198
def stream_to_text(stream: httpx.Response) -> str:
189199
return "".join(stream.iter_text())
190200

@@ -217,3 +227,22 @@ def _contains_pydantic_model(data: Any) -> bool:
217227
return any(_contains_pydantic_model(value) for value in data.values())
218228

219229
return False
230+
231+
232+
@functools.cache
233+
def _get_typing_objects_by_name_of(name: str) -> Tuple[Any, ...]:
234+
"""
235+
Get typing objects by name from typing and typing_extensions.
236+
Reference: https://typing-extensions.readthedocs.io/en/latest/#runtime-use-of-types
237+
"""
238+
result = tuple(
239+
getattr(module, name)
240+
for module in (typing, typing_extensions)
241+
if hasattr(module, name)
242+
)
243+
if not result:
244+
raise ValueError(
245+
f"Neither typing nor typing_extensions has an object called {name!r}"
246+
)
247+
return result
248+

0 commit comments

Comments
 (0)