Skip to content

Commit fd2c2d8

Browse files
authored
Merge pull request #80 from openintegrations/release-please--branches--main--changes--next
release: 2.9.0
2 parents 1eb357b + ad06e88 commit fd2c2d8

26 files changed

+1012
-210
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: ./scripts/lint
3737

3838
build:
39-
if: github.repository == 'stainless-sdks/openint-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
39+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4040
timeout-minutes: 10
4141
name: build
4242
permissions:
@@ -61,12 +61,14 @@ jobs:
6161
run: rye build
6262

6363
- name: Get GitHub OIDC Token
64+
if: github.repository == 'stainless-sdks/openint-python'
6465
id: github-oidc
6566
uses: actions/github-script@v6
6667
with:
6768
script: core.setOutput('github_token', await core.getIDToken());
6869

6970
- name: Upload tarball
71+
if: github.repository == 'stainless-sdks/openint-python'
7072
env:
7173
URL: https://pkg.stainless.com/s
7274
AUTH: ${{ steps.github-oidc.outputs.github_token }}

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.8.0"
2+
".": "2.9.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 16
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-a7212b4566ed125aa08bf8c11ec8e06cb155893a70fea4237e6c8524f9dfe2e9.yml
3-
openapi_spec_hash: 962403d111f029b8911c5ec6acd6f215
4-
config_hash: 4f1d196a8f57efed93da0f033aec310e
1+
configured_endpoints: 20
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-b0f1cc110198f358326983457f50440f062a5cc7531eb0c5ed854e8bcc2eb78a.yml
3+
openapi_spec_hash: 69a97c17db26ec2cc6da820a63baeb4f
4+
config_hash: bc2ed32362cf85854a332d7ee8bdd35a

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## 2.9.0 (2025-08-26)
4+
5+
Full Changelog: [v2.8.0...v2.9.0](https://github.com/openintegrations/python-sdk/compare/v2.8.0...v2.9.0)
6+
7+
### Features
8+
9+
* **api-v2:** api v2 spec ([48aff10](https://github.com/openintegrations/python-sdk/commit/48aff10bbe28bb6f428f07c97ea5d005c35cb759))
10+
* **api!:** manual updates ([4ce79dc](https://github.com/openintegrations/python-sdk/commit/4ce79dc74d3212e2ef4e3b0ec2c7d3efe25b2a6d))
11+
* **api:** new parameters ([5a7dc00](https://github.com/openintegrations/python-sdk/commit/5a7dc00e9cf23c605ccdea421817a9c61825f1c3))
12+
* **api:** org apis ([ec5d611](https://github.com/openintegrations/python-sdk/commit/ec5d611b5fa1068f0d7fbd5611f290cc4af75aac))
13+
* **docs:** updating documented docs for stainless ([444bab6](https://github.com/openintegrations/python-sdk/commit/444bab6f2527e7d21fc33b840cbdeec21fdddd8c))
14+
* **docs:** updating documented docs for stainless ([316e546](https://github.com/openintegrations/python-sdk/commit/316e546bdb14eabb87ff0878545a21c1d7cef4a8))
15+
16+
17+
### Chores
18+
19+
* update github action ([cd673e1](https://github.com/openintegrations/python-sdk/commit/cd673e1e7fff34115e2c735e458d53804c2f0628))
20+
321
## 2.8.0 (2025-08-13)
422

523
Full Changelog: [v2.7.0...v2.8.0](https://github.com/openintegrations/python-sdk/compare/v2.7.0...v2.8.0)

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ client = Openint(
3232
token=os.environ.get("OPENINT_API_KEY"), # This is the default and can be omitted
3333
)
3434

35-
page = client.list_connections()
35+
page = client.list_connectors()
3636
print(page.items)
3737
```
3838

@@ -56,7 +56,7 @@ client = AsyncOpenint(
5656

5757

5858
async def main() -> None:
59-
page = await client.list_connections()
59+
page = await client.list_connectors()
6060
print(page.items)
6161

6262

@@ -89,7 +89,7 @@ async def main() -> None:
8989
token="My Token",
9090
http_client=DefaultAioHttpClient(),
9191
) as client:
92-
page = await client.list_connections()
92+
page = await client.list_connectors()
9393
print(page.items)
9494

9595

@@ -137,7 +137,7 @@ from openint import Openint
137137
client = Openint()
138138

139139
try:
140-
client.list_connections()
140+
client.list_connectors()
141141
except openint.APIConnectionError as e:
142142
print("The server could not be reached")
143143
print(e.__cause__) # an underlying Exception, likely raised within httpx.
@@ -180,7 +180,7 @@ client = Openint(
180180
)
181181

182182
# Or, configure per-request:
183-
client.with_options(max_retries=5).list_connections()
183+
client.with_options(max_retries=5).list_connectors()
184184
```
185185

186186
### Timeouts
@@ -203,7 +203,7 @@ client = Openint(
203203
)
204204

205205
# Override per-request:
206-
client.with_options(timeout=5.0).list_connections()
206+
client.with_options(timeout=5.0).list_connectors()
207207
```
208208

209209
On timeout, an `APITimeoutError` is thrown.
@@ -244,10 +244,10 @@ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to
244244
from openint import Openint
245245

246246
client = Openint()
247-
response = client.with_raw_response.list_connections()
247+
response = client.with_raw_response.list_connectors()
248248
print(response.headers.get('X-My-Header'))
249249

250-
client = response.parse() # get the object that `list_connections()` would have returned
250+
client = response.parse() # get the object that `list_connectors()` would have returned
251251
print(client)
252252
```
253253

@@ -262,7 +262,7 @@ The above interface eagerly reads the full response body when you make the reque
262262
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
263263

264264
```python
265-
with client.with_streaming_response.list_connections() as response:
265+
with client.with_streaming_response.list_connectors() as response:
266266
print(response.headers.get("X-My-Header"))
267267

268268
for line in response.iter_lines():

api.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ Types:
66
from openint.types import (
77
Connector,
88
Integration,
9+
AssignConnectionResponse,
910
CheckConnectionResponse,
1011
CreateConnectionResponse,
1112
CreateConnnectorConfigResponse,
1213
CreateTokenResponse,
14+
DeleteAssignmentResponse,
1315
DeleteConnectionResponse,
16+
DeleteConnectorConfigResponse,
1417
GetConectorConfigResponse,
1518
GetConnectionResponse,
1619
GetCurrentUserResponse,
17-
GetMessageTemplateResponse,
20+
ListAssignmentsResponse,
1821
ListConnectionConfigsResponse,
1922
ListConnectionsResponse,
2023
ListConnectorsResponse,
@@ -23,25 +26,30 @@ from openint.types import (
2326
ListEventsResponse,
2427
UpsertConnnectorConfigResponse,
2528
UpsertCustomerResponse,
29+
UpsertOrganizationResponse,
2630
)
2731
```
2832

2933
Methods:
3034

31-
- <code title="post /connection/{id}/check">client.<a href="./src/openint/_client.py">check_connection</a>(id) -> <a href="./src/openint/types/check_connection_response.py">CheckConnectionResponse</a></code>
32-
- <code title="post /connection">client.<a href="./src/openint/_client.py">create_connection</a>(\*\*<a href="src/openint/types/client_create_connection_params.py">params</a>) -> <a href="./src/openint/types/create_connection_response.py">CreateConnectionResponse</a></code>
33-
- <code title="post /connector-config">client.<a href="./src/openint/_client.py">create_connnector_config</a>(\*\*<a href="src/openint/types/client_create_connnector_config_params.py">params</a>) -> <a href="./src/openint/types/create_connnector_config_response.py">CreateConnnectorConfigResponse</a></code>
34-
- <code title="post /customer/{customer_id}/token">client.<a href="./src/openint/_client.py">create_token</a>(customer_id, \*\*<a href="src/openint/types/client_create_token_params.py">params</a>) -> <a href="./src/openint/types/create_token_response.py">CreateTokenResponse</a></code>
35-
- <code title="delete /connection/{id}">client.<a href="./src/openint/_client.py">delete_connection</a>(id) -> <a href="./src/openint/types/delete_connection_response.py">DeleteConnectionResponse</a></code>
36-
- <code title="get /connector-config/{id}">client.<a href="./src/openint/_client.py">get_conector_config</a>(id, \*\*<a href="src/openint/types/client_get_conector_config_params.py">params</a>) -> <a href="./src/openint/types/get_conector_config_response.py">GetConectorConfigResponse</a></code>
37-
- <code title="get /connection/{id}">client.<a href="./src/openint/_client.py">get_connection</a>(id, \*\*<a href="src/openint/types/client_get_connection_params.py">params</a>) -> <a href="./src/openint/types/get_connection_response.py">GetConnectionResponse</a></code>
38-
- <code title="get /viewer">client.<a href="./src/openint/_client.py">get_current_user</a>() -> <a href="./src/openint/types/get_current_user_response.py">GetCurrentUserResponse</a></code>
39-
- <code title="get /ai/message_template">client.<a href="./src/openint/_client.py">get_message_template</a>(\*\*<a href="src/openint/types/client_get_message_template_params.py">params</a>) -> <a href="./src/openint/types/get_message_template_response.py">GetMessageTemplateResponse</a></code>
40-
- <code title="get /connector-config">client.<a href="./src/openint/_client.py">list_connection_configs</a>(\*\*<a href="src/openint/types/client_list_connection_configs_params.py">params</a>) -> <a href="./src/openint/types/list_connection_configs_response.py">SyncOffsetPagination[ListConnectionConfigsResponse]</a></code>
41-
- <code title="get /connection">client.<a href="./src/openint/_client.py">list_connections</a>(\*\*<a href="src/openint/types/client_list_connections_params.py">params</a>) -> <a href="./src/openint/types/list_connections_response.py">SyncOffsetPagination[ListConnectionsResponse]</a></code>
42-
- <code title="get /connector">client.<a href="./src/openint/_client.py">list_connectors</a>(\*\*<a href="src/openint/types/client_list_connectors_params.py">params</a>) -> <a href="./src/openint/types/list_connectors_response.py">SyncOffsetPagination[ListConnectorsResponse]</a></code>
43-
- <code title="get /connector-config">client.<a href="./src/openint/_client.py">list_connnector_configs</a>(\*\*<a href="src/openint/types/client_list_connnector_configs_params.py">params</a>) -> <a href="./src/openint/types/list_connnector_configs_response.py">SyncOffsetPagination[ListConnnectorConfigsResponse]</a></code>
44-
- <code title="get /customer">client.<a href="./src/openint/_client.py">list_customers</a>(\*\*<a href="src/openint/types/client_list_customers_params.py">params</a>) -> <a href="./src/openint/types/list_customers_response.py">SyncOffsetPagination[ListCustomersResponse]</a></code>
45-
- <code title="get /event">client.<a href="./src/openint/_client.py">list_events</a>(\*\*<a href="src/openint/types/client_list_events_params.py">params</a>) -> <a href="./src/openint/types/list_events_response.py">SyncOffsetPagination[ListEventsResponse]</a></code>
46-
- <code title="put /connector-config/{id}">client.<a href="./src/openint/_client.py">upsert_connnector_config</a>(id, \*\*<a href="src/openint/types/client_upsert_connnector_config_params.py">params</a>) -> <a href="./src/openint/types/upsert_connnector_config_response.py">UpsertConnnectorConfigResponse</a></code>
47-
- <code title="put /customer">client.<a href="./src/openint/_client.py">upsert_customer</a>(\*\*<a href="src/openint/types/client_upsert_customer_params.py">params</a>) -> <a href="./src/openint/types/upsert_customer_response.py">UpsertCustomerResponse</a></code>
35+
- <code title="put /v2/connection/{id}/assignment/{replId}">client.<a href="./src/openint/_client.py">assign_connection</a>(repl_id, \*, id) -> <a href="./src/openint/types/assign_connection_response.py">AssignConnectionResponse</a></code>
36+
- <code title="post /v1/connection/{id}/check">client.<a href="./src/openint/_client.py">check_connection</a>(id) -> <a href="./src/openint/types/check_connection_response.py">CheckConnectionResponse</a></code>
37+
- <code title="post /v2/connection">client.<a href="./src/openint/_client.py">create_connection</a>(\*\*<a href="src/openint/types/client_create_connection_params.py">params</a>) -> <a href="./src/openint/types/create_connection_response.py">CreateConnectionResponse</a></code>
38+
- <code title="post /v2/connector-config">client.<a href="./src/openint/_client.py">create_connnector_config</a>(\*\*<a href="src/openint/types/client_create_connnector_config_params.py">params</a>) -> <a href="./src/openint/types/create_connnector_config_response.py">CreateConnnectorConfigResponse</a></code>
39+
- <code title="post /v1/customer/{customer_id}/token">client.<a href="./src/openint/_client.py">create_token</a>(customer_id, \*\*<a href="src/openint/types/client_create_token_params.py">params</a>) -> <a href="./src/openint/types/create_token_response.py">CreateTokenResponse</a></code>
40+
- <code title="delete /v2/connection/{id}/assignment/{replId}">client.<a href="./src/openint/_client.py">delete_assignment</a>(repl_id, \*, id) -> <a href="./src/openint/types/delete_assignment_response.py">DeleteAssignmentResponse</a></code>
41+
- <code title="delete /v2/connection/{id}">client.<a href="./src/openint/_client.py">delete_connection</a>(id) -> <a href="./src/openint/types/delete_connection_response.py">DeleteConnectionResponse</a></code>
42+
- <code title="delete /v2/connector-config/{id}">client.<a href="./src/openint/_client.py">delete_connector_config</a>(id) -> <a href="./src/openint/types/delete_connector_config_response.py">DeleteConnectorConfigResponse</a></code>
43+
- <code title="get /v2/connector-config/{id}">client.<a href="./src/openint/_client.py">get_conector_config</a>(id, \*\*<a href="src/openint/types/client_get_conector_config_params.py">params</a>) -> <a href="./src/openint/types/get_conector_config_response.py">GetConectorConfigResponse</a></code>
44+
- <code title="get /v2/connection/{id}">client.<a href="./src/openint/_client.py">get_connection</a>(id, \*\*<a href="src/openint/types/client_get_connection_params.py">params</a>) -> <a href="./src/openint/types/get_connection_response.py">GetConnectionResponse</a></code>
45+
- <code title="get /v1/viewer">client.<a href="./src/openint/_client.py">get_current_user</a>() -> <a href="./src/openint/types/get_current_user_response.py">GetCurrentUserResponse</a></code>
46+
- <code title="get /v2/connection/{id}/assignment">client.<a href="./src/openint/_client.py">list_assignments</a>(id) -> <a href="./src/openint/types/list_assignments_response.py">ListAssignmentsResponse</a></code>
47+
- <code title="get /v2/connector-config">client.<a href="./src/openint/_client.py">list_connection_configs</a>(\*\*<a href="src/openint/types/client_list_connection_configs_params.py">params</a>) -> <a href="./src/openint/types/list_connection_configs_response.py">SyncOffsetPagination[ListConnectionConfigsResponse]</a></code>
48+
- <code title="get /v2/connection">client.<a href="./src/openint/_client.py">list_connections</a>(\*\*<a href="src/openint/types/client_list_connections_params.py">params</a>) -> <a href="./src/openint/types/list_connections_response.py">SyncOffsetPagination[ListConnectionsResponse]</a></code>
49+
- <code title="get /v2/connector">client.<a href="./src/openint/_client.py">list_connectors</a>(\*\*<a href="src/openint/types/client_list_connectors_params.py">params</a>) -> <a href="./src/openint/types/list_connectors_response.py">SyncOffsetPagination[ListConnectorsResponse]</a></code>
50+
- <code title="get /v2/connector-config">client.<a href="./src/openint/_client.py">list_connnector_configs</a>(\*\*<a href="src/openint/types/client_list_connnector_configs_params.py">params</a>) -> <a href="./src/openint/types/list_connnector_configs_response.py">SyncOffsetPagination[ListConnnectorConfigsResponse]</a></code>
51+
- <code title="get /v1/customer">client.<a href="./src/openint/_client.py">list_customers</a>(\*\*<a href="src/openint/types/client_list_customers_params.py">params</a>) -> <a href="./src/openint/types/list_customers_response.py">SyncOffsetPagination[ListCustomersResponse]</a></code>
52+
- <code title="get /v1/event">client.<a href="./src/openint/_client.py">list_events</a>(\*\*<a href="src/openint/types/client_list_events_params.py">params</a>) -> <a href="./src/openint/types/list_events_response.py">SyncOffsetPagination[ListEventsResponse]</a></code>
53+
- <code title="put /v2/connector-config/{id}">client.<a href="./src/openint/_client.py">upsert_connnector_config</a>(id, \*\*<a href="src/openint/types/client_upsert_connnector_config_params.py">params</a>) -> <a href="./src/openint/types/upsert_connnector_config_response.py">UpsertConnnectorConfigResponse</a></code>
54+
- <code title="put /v1/customer">client.<a href="./src/openint/_client.py">upsert_customer</a>(\*\*<a href="src/openint/types/client_upsert_customer_params.py">params</a>) -> <a href="./src/openint/types/upsert_customer_response.py">UpsertCustomerResponse</a></code>
55+
- <code title="put /v2/organization/{orgId}">client.<a href="./src/openint/_client.py">upsert_organization</a>(org_id) -> <a href="./src/openint/types/upsert_organization_response.py">UpsertOrganizationResponse</a></code>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openint"
3-
version = "2.8.0"
3+
version = "2.9.0"
44
description = "The official Python library for the Openint API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)