Skip to content

Commit c647d0c

Browse files
SDK regeneration
Unable to analyze changes with AI, incrementing PATCH version.
1 parent 40975b2 commit c647d0c

1,735 files changed

Lines changed: 45236 additions & 172019 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/metadata.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"cliVersion": "3.31.1",
3+
"generatorName": "fernapi/fern-python-sdk",
4+
"generatorVersion": "4.38.4",
5+
"generatorConfig": {
6+
"client_class_name": "Merge",
7+
"inline_request_params": false,
8+
"improved_imports": false,
9+
"pydantic_config": {
10+
"skip_validation": true,
11+
"enum_type": "python_enums",
12+
"use_pydantic_field_aliases": true
13+
}
14+
}
15+
}

.fernignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ LICENSE.md
1010
src/merge/resources/accounting/types/currency_enum.py
1111

1212
tests/integration/test_filestorage.py
13-
tests/integration/test_knowledgebase.py
13+
tests/integration/test_knowledgebase.py
14+
changelog.md

README.md

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ client = Merge(
5151
api_key="YOUR_API_KEY",
5252
)
5353
client.ats.activities.create(
54-
is_debug_mode=True,
55-
run_async=True,
5654
model=ActivityRequest(),
5755
remote_user_id="remote_user_id",
5856
)
@@ -83,7 +81,7 @@ client.hris. # APIs specific to the HRIS Category
8381

8482
## Async Client
8583

86-
The SDK also exports an `async` client so that you can make non-blocking calls to our API.
84+
The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
8785

8886
```python
8987
import asyncio
@@ -99,8 +97,6 @@ client = AsyncMerge(
9997

10098
async def main() -> None:
10199
await client.ats.activities.create(
102-
is_debug_mode=True,
103-
run_async=True,
104100
model=ActivityRequest(),
105101
remote_user_id="remote_user_id",
106102
)
@@ -140,6 +136,14 @@ client = Merge(
140136
response = client.ats.activities.with_raw_response.create(...)
141137
print(response.headers) # access the response headers
142138
print(response.data) # access the underlying object
139+
pager = client.ats.activities.list(...)
140+
print(pager.response) # access the typed response for the first page
141+
for item in pager:
142+
print(item) # access the underlying object(s)
143+
for page in pager.iter_pages():
144+
print(page.response) # access the typed response for each page
145+
for item in page:
146+
print(item) # access the underlying object(s)
143147
```
144148

145149
### Retries
@@ -233,32 +237,31 @@ with open(local_filename, "wb") as f:
233237

234238
## Pagination
235239

236-
The SDK may return paginated results. Endpoints that return paginated results will
237-
include a `next` and `prev` property on the response. To get the next page, you can
238-
pass in the value of `next` to the cursor property on the request. Similarly, to
239-
get the previous page, you can pass in the value of `prev` to the cursor property on
240-
the request.
240+
Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object.
241241

242-
Below is an example of iterating over all pages:
243242
```python
243+
from merge import Merge
244244

245-
# response contains the first page
246-
response = merge_client.hris.employees.list(created_after="2030-01-01")
247-
248-
# if there is a next page, load it by passing `next` to the cursor argument
249-
while response.next is not None:
250-
response = hris_client.employees.list(
251-
cursor=response.next,
252-
created_after="2030-01-01")
245+
client = Merge(
246+
account_token="YOUR_ACCOUNT_TOKEN",
247+
api_key="YOUR_API_KEY",
248+
)
249+
response = client.ats.activities.list(
250+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
251+
)
252+
for item in response:
253+
yield item
254+
# alternatively, you can paginate page-by-page
255+
for page in response.iter_pages():
256+
yield page
253257
```
254258

255-
256-
257-
258-
259-
260-
261-
262-
263-
259+
```python
260+
# You can also iterate through pages and access the typed response per page
261+
pager = client.ats.activities.list(...)
262+
for page in pager.iter_pages():
263+
print(page.response) # access the typed response for each page
264+
for item in page:
265+
print(item)
266+
```
264267

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 2.6.2 - 2026-01-15
2+
* SDK regeneration
3+
* Unable to analyze changes with AI, incrementing PATCH version.
4+

poetry.lock

Lines changed: 35 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "MergePythonClient"
33

44
[tool.poetry]
55
name = "MergePythonClient"
6-
version = "2.6.1"
6+
version = "2.6.2"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -30,7 +30,7 @@ packages = [
3030
{ include = "merge", from = "src"}
3131
]
3232

33-
[project.urls]
33+
[tool.poetry.urls]
3434
Repository = 'https://github.com/merge-api/merge-python-client'
3535

3636
[tool.poetry.dependencies]
@@ -44,6 +44,7 @@ typing_extensions = ">= 4.0.0"
4444
mypy = "==1.13.0"
4545
pytest = "^7.4.0"
4646
pytest-asyncio = "^0.23.5"
47+
pytest-xdist = "^3.6.1"
4748
python-dateutil = "^2.9.0"
4849
types-python-dateutil = "^2.9.0.20240316"
4950
ruff = "==0.11.5"

0 commit comments

Comments
 (0)