Visitar URL original
release: 0.2.0 by stainless-app[bot] · Pull Request #2 · unlayer/unlayer-python · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
caea803
chore(internal): make `test_proxy_environment_variables` more resilie…
stainless-app[bot] Feb 25, 2026
39d55bd
codegen metadata
stainless-app[bot] Feb 25, 2026
d58e1b8
chore(internal): codegen related update
stainless-app[bot] Mar 3, 2026
19677f4
refactor(types): use `extra_items` from PEP 728
stainless-app[bot] Mar 6, 2026
3ad7bbb
chore(test): do not count install time for mock server timeout
stainless-app[bot] Mar 6, 2026
907041a
chore(ci): skip uploading artifacts on stainless-internal branches
stainless-app[bot] Mar 7, 2026
d31637b
fix(pydantic): do not pass `by_alias` unless set
stainless-app[bot] Mar 17, 2026
b7baa1e
fix(deps): bump minimum typing-extensions version
stainless-app[bot] Mar 17, 2026
4e152dc
chore(internal): tweak CI branches
stainless-app[bot] Mar 17, 2026
bc0d6b6
fix: sanitize endpoint path params
stainless-app[bot] Mar 20, 2026
d2618bd
refactor(tests): switch from prism to steady
stainless-app[bot] Mar 20, 2026
775fe46
chore(tests): bump steady to v0.19.4
stainless-app[bot] Mar 21, 2026
9ef3615
chore(tests): bump steady to v0.19.5
stainless-app[bot] Mar 21, 2026
5a510e6
chore(internal): update gitignore
stainless-app[bot] Mar 24, 2026
33d721e
chore(tests): bump steady to v0.19.6
stainless-app[bot] Mar 24, 2026
3343492
chore(ci): skip lint on metadata-only changes
stainless-app[bot] Mar 25, 2026
3d09621
chore(tests): bump steady to v0.19.7
stainless-app[bot] Mar 25, 2026
e8555c7
feat(internal): implement indices array format for query and form ser…
stainless-app[bot] Mar 27, 2026
649317d
chore(tests): bump steady to v0.20.1
stainless-app[bot] Apr 1, 2026
2c51cba
chore(tests): bump steady to v0.20.2
stainless-app[bot] Apr 1, 2026
75acb50
fix(client): preserve hardcoded query params when merging with user p…
stainless-app[bot] Apr 8, 2026
16c4a95
fix: ensure file data are only sent as 1 parameter
stainless-app[bot] Apr 11, 2026
9e8bba9
perf(client): optimize file structure copying in multipart requests
stainless-app[bot] Apr 18, 2026
0a6f60a
chore(tests): bump steady to v0.22.1
stainless-app[bot] Apr 18, 2026
d8c02a2
feat(api): api update
stainless-app[bot] Apr 22, 2026
2543d0b
chore(internal): more robust bootstrap script
stainless-app[bot] Apr 23, 2026
c76b368
chore(internal): codegen related update
stainless-app[bot] Apr 28, 2026
c5d7b06
codegen metadata
stainless-app[bot] Apr 30, 2026
59d0d24
chore(internal): codegen related update
stainless-app[bot] May 1, 2026
1dba76d
codegen metadata
stainless-app[bot] May 8, 2026
0e34552
chore(internal): codegen related update
stainless-app[bot] May 9, 2026
65987ba
feat(client): add compatibility aliases for old type names
stainless-app[bot] May 12, 2026
f6dbe33
chore(internal): codegen related update
stainless-app[bot] May 13, 2026
167b11e
feat(api): api update
stainless-app[bot] May 22, 2026
7b6ee51
feat(api): api update
stainless-app[bot] May 26, 2026
808556a
feat(api): api update
stainless-app[bot] Jun 24, 2026
ad5130b
codegen metadata
stainless-app[bot] Jun 24, 2026
d03691f
fix(types): avoid type-checker errors on params with additional prope…
stainless-app[bot] Jun 30, 2026
c85f087
feat(api): api update
stainless-app[bot] Jul 10, 2026
1105634
feat(stlc): configurable CI runner and private-production-repo suppor…
stainless-app[bot] Jul 18, 2026
a19b633
feat(api): api update
stainless-app[bot] Jul 21, 2026
afa74d0
feat(api): api update
stainless-app[bot] Jul 22, 2026
c6b629b
feat(api): api update
stainless-app[bot] Jul 22, 2026
8e7ad05
feat(api): api update
stainless-app[bot] Aug 2, 2026
cd35d3b
feat(api): api update
stainless-app[bot] Aug 3, 2026
c0333b6
feat(api): api update
stainless-app[bot] Aug 10, 2026
56cdce3
feat(api): api update
stainless-app[bot] Aug 14, 2026
98b4695
feat(api): api update
stainless-app[bot] Aug 15, 2026
aad6e6f
feat(api): api update
stainless-app[bot] Aug 15, 2026
29780c7
codegen metadata
stainless-app[bot] Aug 19, 2026
ebe57c2
chore(internal): allow the mock server port to be set with STAINLESS_…
stainless-app[bot] Aug 20, 2026
cc6bd70
feat(api): api update
stainless-app[bot] Aug 26, 2026
f6a073e
release: 0.2.0
stainless-app[bot] Aug 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(api): api update
  • Loading branch information
stainless-app[bot] committed Aug 15, 2026
commit aad6e6f818bbd3451e9b0a933c747055d404b5ad
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 51
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/unlayer/unlayer-a96fca229b9908a56f32846b8ac997932655bc35644c267004c3bada5ed3d9fe.yml
openapi_spec_hash: e3c4bccf1cf35f4ba5ec3d8ba207c689
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/unlayer/unlayer-231dfb6902a557101992c19fd91a3cf6d4d187b06c9d6b20f2b70d7df77e664a.yml
openapi_spec_hash: 487c5e8289dd85c5d412f6635c2bc3fc
config_hash: 31bbe4c50af7bd9aea5582d9a2ab786d
20 changes: 19 additions & 1 deletion src/unlayer/types/templates/generate_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
"MessageMetadataAction",
"Output",
"Context",
"ContextAvailableFont",
"ContextBrand",
"ContextBrandColors",
"ContextBrandFonts",
"ContextBrandLogos",
"ContextCustomTool",
"ContextSelection",
]
Expand Down Expand Up @@ -116,6 +118,12 @@ class Output(TypedDict, total=False):
schema_version: Annotated[int, PropertyInfo(alias="schemaVersion")]


class ContextAvailableFont(TypedDict, total=False):
label: Required[str]

value: Required[str]


class ContextBrandColors(TypedDict, total=False):
accent: str

Expand All @@ -130,6 +138,12 @@ class ContextBrandFonts(TypedDict, total=False):
heading: str


class ContextBrandLogos(TypedDict, total=False):
primary: str

secondary: str


class ContextBrand(TypedDict, total=False):
colors: ContextBrandColors

Expand All @@ -139,6 +153,8 @@ class ContextBrand(TypedDict, total=False):

guidelines: str

logos: ContextBrandLogos

product_description: Annotated[str, PropertyInfo(alias="productDescription")]

target_audience: Annotated[str, PropertyInfo(alias="targetAudience")]
Expand Down Expand Up @@ -173,9 +189,11 @@ class Context( # type: ignore[call-arg]
total=False,
extra_items=object, # pyright: ignore[reportGeneralTypeIssues]
):
available_fonts: Annotated[Iterable[ContextAvailableFont], PropertyInfo(alias="availableFonts")]

available_tools: Annotated[SequenceNotStr[str], PropertyInfo(alias="availableTools")]

brand: ContextBrand
brand: Optional[ContextBrand]

custom_tools: Annotated[Iterable[ContextCustomTool], PropertyInfo(alias="customTools")]

Expand Down
20 changes: 20 additions & 0 deletions tests/api_resources/templates/test_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ def test_method_create_with_all_params(self, client: Unlayer) -> None:
},
project_id="projectId",
context={
"available_fonts": [
{
"label": "x",
"value": "x",
}
],
"available_tools": ["string"],
"brand": {
"colors": {
Expand All @@ -73,6 +79,10 @@ def test_method_create_with_all_params(self, client: Unlayer) -> None:
"heading": "heading",
},
"guidelines": "guidelines",
"logos": {
"primary": "https://example.com",
"secondary": "https://example.com",
},
"product_description": "productDescription",
"target_audience": "targetAudience",
"voice": "voice",
Expand Down Expand Up @@ -213,6 +223,12 @@ async def test_method_create_with_all_params(self, async_client: AsyncUnlayer) -
},
project_id="projectId",
context={
"available_fonts": [
{
"label": "x",
"value": "x",
}
],
"available_tools": ["string"],
"brand": {
"colors": {
Expand All @@ -226,6 +242,10 @@ async def test_method_create_with_all_params(self, async_client: AsyncUnlayer) -
"heading": "heading",
},
"guidelines": "guidelines",
"logos": {
"primary": "https://example.com",
"secondary": "https://example.com",
},
"product_description": "productDescription",
"target_audience": "targetAudience",
"voice": "voice",
Expand Down