Skip to content

Commit 6fefc8f

Browse files
authored
Merge pull request #70 from openintegrations/release-please--branches--main--changes--next
release: 2.0.0
2 parents edfad25 + f3aef26 commit 6fefc8f

14 files changed

+69
-164
lines changed

.release-please-manifest.json

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

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-21dd873c4f72eb1599c52a65f085d6ba34b6aa35632111ae1ac1f39b133e642d.yml
3-
openapi_spec_hash: 43cbfe71f732c90beb90f8d33bd285ec
4-
config_hash: 68f87c7c6066f017748605b799b1c902
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-fc7527fabd8beebd9c639bd6ac66f10ac26805db119cb625c67840c51f622dd9.yml
3+
openapi_spec_hash: 394209b9c4d294c6509002851a5448c8
4+
config_hash: 9e645fd6bff74d3299e2924f99ec4034

CHANGELOG.md

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

3+
## 2.0.0 (2025-05-19)
4+
5+
Full Changelog: [v1.6.1...v2.0.0](https://github.com/openintegrations/python-sdk/compare/v1.6.1...v2.0.0)
6+
7+
### ⚠ BREAKING CHANGES
8+
9+
* **api:** Updating sdk auth schem
10+
11+
### Features
12+
13+
* **api:** Updating sdk auth schem ([1097f03](https://github.com/openintegrations/python-sdk/commit/1097f03ca967070956a0211dcbf2e1f948fa17c1))
14+
315
## 1.6.1 (2025-05-16)
416

517
Full Changelog: [v1.6.0...v1.6.1](https://github.com/openintegrations/python-sdk/compare/v1.6.0...v1.6.1)

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,28 @@ pip install openint
2424
The full API of this library can be found in [api.md](api.md).
2525

2626
```python
27-
import os
2827
from openint import Openint
2928

30-
client = Openint(
31-
token=os.environ.get(
32-
"OPENINT_API_KEY_OR_CUSTOMER_TOKEN"
33-
), # This is the default and can be omitted
34-
)
29+
client = Openint()
3530

3631
page = client.list_connections()
3732
print(page.items)
3833
```
3934

4035
While you can provide a `token` keyword argument,
4136
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
42-
to add `OPENINT_API_KEY_OR_CUSTOMER_TOKEN="My Token"` to your `.env` file
37+
to add `OPENINT_API_KEY_OR_CUSTOMER_TOKEN_OR_CUSTOMER_API_KEY="My Token"` to your `.env` file
4338
so that your Token is not stored in source control.
4439

4540
## Async usage
4641

4742
Simply import `AsyncOpenint` instead of `Openint` and use `await` with each API call:
4843

4944
```python
50-
import os
5145
import asyncio
5246
from openint import AsyncOpenint
5347

54-
client = AsyncOpenint(
55-
token=os.environ.get(
56-
"OPENINT_API_KEY_OR_CUSTOMER_TOKEN"
57-
), # This is the default and can be omitted
58-
)
48+
client = AsyncOpenint()
5949

6050

6151
async def main() -> None:

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 = "1.6.1"
3+
version = "2.0.0"
44
description = "The official Python library for the Openint API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/openint/_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def __init__(
100100
) -> None:
101101
"""Construct a new synchronous Openint client instance.
102102
103-
This automatically infers the `token` argument from the `OPENINT_API_KEY_OR_CUSTOMER_TOKEN` environment variable if it is not provided.
103+
This automatically infers the `token` argument from the `OPENINT_API_KEY_OR_CUSTOMER_TOKEN_OR_CUSTOMER_API_KEY` environment variable if it is not provided.
104104
"""
105105
if token is None:
106-
token = os.environ.get("OPENINT_API_KEY_OR_CUSTOMER_TOKEN")
106+
token = os.environ.get("OPENINT_API_KEY_OR_CUSTOMER_TOKEN_OR_CUSTOMER_API_KEY")
107107
self.token = token
108108

109109
if base_url is None:
@@ -868,10 +868,10 @@ def __init__(
868868
) -> None:
869869
"""Construct a new async AsyncOpenint client instance.
870870
871-
This automatically infers the `token` argument from the `OPENINT_API_KEY_OR_CUSTOMER_TOKEN` environment variable if it is not provided.
871+
This automatically infers the `token` argument from the `OPENINT_API_KEY_OR_CUSTOMER_TOKEN_OR_CUSTOMER_API_KEY` environment variable if it is not provided.
872872
"""
873873
if token is None:
874-
token = os.environ.get("OPENINT_API_KEY_OR_CUSTOMER_TOKEN")
874+
token = os.environ.get("OPENINT_API_KEY_OR_CUSTOMER_TOKEN_OR_CUSTOMER_API_KEY")
875875
self.token = token
876876

877877
if base_url is None:

src/openint/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "openint"
4-
__version__ = "1.6.1" # x-release-please-version
4+
__version__ = "2.0.0" # x-release-please-version

src/openint/types/client_create_connection_params.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,9 +1180,6 @@ class DataConnectorQuickbooksDiscriminatedConnectionSettingsSettingsOAuth(TypedD
11801180
class DataConnectorQuickbooksDiscriminatedConnectionSettingsSettings(TypedDict, total=False):
11811181
oauth: Required[DataConnectorQuickbooksDiscriminatedConnectionSettingsSettingsOAuth]
11821182

1183-
realm_id: Required[Annotated[str, PropertyInfo(alias="realmId")]]
1184-
"""The realmId of your quickbooks company (e.g., 9341453474484455)"""
1185-
11861183

11871184
class DataConnectorQuickbooksDiscriminatedConnectionSettings(TypedDict, total=False):
11881185
connector_name: Required[Literal["quickbooks"]]

src/openint/types/create_connection_response.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,9 +1754,6 @@ class ConnectorQuickbooksDiscriminatedConnectionSettingsSettingsOAuth(BaseModel)
17541754
class ConnectorQuickbooksDiscriminatedConnectionSettingsSettings(BaseModel):
17551755
oauth: ConnectorQuickbooksDiscriminatedConnectionSettingsSettingsOAuth
17561756

1757-
realm_id: str = FieldInfo(alias="realmId")
1758-
"""The realmId of your quickbooks company (e.g., 9341453474484455)"""
1759-
17601757

17611758
class ConnectorQuickbooksDiscriminatedConnectionSettings(BaseModel):
17621759
connector_name: Literal["quickbooks"]

src/openint/types/get_connection_response.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5106,9 +5106,6 @@ class ConnectorQuickbooksDiscriminatedConnectionSettingsSettingsOAuth(BaseModel)
51065106
class ConnectorQuickbooksDiscriminatedConnectionSettingsSettings(BaseModel):
51075107
oauth: ConnectorQuickbooksDiscriminatedConnectionSettingsSettingsOAuth
51085108

5109-
realm_id: str = FieldInfo(alias="realmId")
5110-
"""The realmId of your quickbooks company (e.g., 9341453474484455)"""
5111-
51125109

51135110
class ConnectorQuickbooksDiscriminatedConnectionSettings(BaseModel):
51145111
connector_name: Literal["quickbooks"]

0 commit comments

Comments
 (0)