Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.3"
".": "0.1.0-alpha.4"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-38b7ae8d4722f24e508deec5139a4286714e5d2c2784e5778817a034dfdf79ee.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-85e463a784985efe485f181495ac68fac5ddb13b72662257c84250db8e75455d.yml
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.1.0-alpha.4 (2025-03-14)

Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/openintegrations/python-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)

### Features

* **docs:** updating documented docs for stainless ([#26](https://github.com/openintegrations/python-sdk/issues/26)) ([ee7e8f9](https://github.com/openintegrations/python-sdk/commit/ee7e8f91e5ba13b06e959d9f5745ec691aa5987a))
* **docs:** updating documented docs for stainless ([#29](https://github.com/openintegrations/python-sdk/issues/29)) ([749df66](https://github.com/openintegrations/python-sdk/commit/749df664aaaacda0de8b781fdcd4d7e379e2ae5d))


### Chores

* **internal:** remove extra empty newlines ([#30](https://github.com/openintegrations/python-sdk/issues/30)) ([5d7bfbb](https://github.com/openintegrations/python-sdk/commit/5d7bfbb11557c7e1ca3e1e45fe105f565f6a041b))

## 0.1.0-alpha.3 (2025-03-08)

Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/openintegrations/python-sdk/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openint"
version = "0.1.0-alpha.3"
version = "0.1.0-alpha.4"
description = "The official Python library for the Openint API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -38,7 +38,6 @@ Homepage = "https://github.com/openintegrations/python-sdk"
Repository = "https://github.com/openintegrations/python-sdk"



[tool.rye]
managed = true
# version pins are in requirements-dev.lock
Expand Down Expand Up @@ -152,7 +151,6 @@ reportImplicitOverride = true
reportImportCycles = false
reportPrivateUsage = false


[tool.ruff]
line-length = 120
output-format = "grouped"
Expand Down
2 changes: 2 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ else
echo
fi

export DEFER_PYDANTIC_BUILD=false

echo "==> Running tests"
rye run pytest "$@"

Expand Down
24 changes: 14 additions & 10 deletions src/openint/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def get_connection(
self,
id: str,
*,
expand: List[Literal["connector"]] | NotGiven = NOT_GIVEN,
expand: List[Literal["connector", "enabled_integrations"]] | NotGiven = NOT_GIVEN,
include_secrets: Literal["none", "basic", "all"] | NotGiven = NOT_GIVEN,
refresh_policy: Literal["none", "force", "auto"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -552,7 +552,7 @@ def list_connection_configs(
"googledrive",
]
| NotGiven = NOT_GIVEN,
expand: List[Literal["connector"]] | NotGiven = NOT_GIVEN,
expand: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
offset: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -563,7 +563,7 @@ def list_connection_configs(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> SyncOffsetPagination[ListConnectionConfigsResponse]:
"""
List all connector configurations with optional filtering
List all connector configurations

Args:
connector_name: The name of the connector
Expand Down Expand Up @@ -598,7 +598,9 @@ def list_connection_configs(
client_list_connection_configs_params.ClientListConnectionConfigsParams,
),
),
model=ListConnectionConfigsResponse,
model=cast(
Any, ListConnectionConfigsResponse
), # Union types cannot be passed in as arguments in the type system
)

def list_connections(
Expand Down Expand Up @@ -655,7 +657,7 @@ def list_connections(
]
| NotGiven = NOT_GIVEN,
customer_id: str | NotGiven = NOT_GIVEN,
expand: List[Literal["connector"]] | NotGiven = NOT_GIVEN,
expand: List[Literal["connector", "enabled_integrations"]] | NotGiven = NOT_GIVEN,
include_secrets: Literal["none", "basic", "all"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
offset: int | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1112,7 +1114,7 @@ async def get_connection(
self,
id: str,
*,
expand: List[Literal["connector"]] | NotGiven = NOT_GIVEN,
expand: List[Literal["connector", "enabled_integrations"]] | NotGiven = NOT_GIVEN,
include_secrets: Literal["none", "basic", "all"] | NotGiven = NOT_GIVEN,
refresh_policy: Literal["none", "force", "auto"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -1238,7 +1240,7 @@ def list_connection_configs(
"googledrive",
]
| NotGiven = NOT_GIVEN,
expand: List[Literal["connector"]] | NotGiven = NOT_GIVEN,
expand: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
offset: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -1249,7 +1251,7 @@ def list_connection_configs(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> AsyncPaginator[ListConnectionConfigsResponse, AsyncOffsetPagination[ListConnectionConfigsResponse]]:
"""
List all connector configurations with optional filtering
List all connector configurations

Args:
connector_name: The name of the connector
Expand Down Expand Up @@ -1284,7 +1286,9 @@ def list_connection_configs(
client_list_connection_configs_params.ClientListConnectionConfigsParams,
),
),
model=ListConnectionConfigsResponse,
model=cast(
Any, ListConnectionConfigsResponse
), # Union types cannot be passed in as arguments in the type system
)

def list_connections(
Expand Down Expand Up @@ -1341,7 +1345,7 @@ def list_connections(
]
| NotGiven = NOT_GIVEN,
customer_id: str | NotGiven = NOT_GIVEN,
expand: List[Literal["connector"]] | NotGiven = NOT_GIVEN,
expand: List[Literal["connector", "enabled_integrations"]] | NotGiven = NOT_GIVEN,
include_secrets: Literal["none", "basic", "all"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
offset: int | NotGiven = NOT_GIVEN,
Expand Down
2 changes: 1 addition & 1 deletion src/openint/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "openint"
__version__ = "0.1.0-alpha.3" # x-release-please-version
__version__ = "0.1.0-alpha.4" # x-release-please-version
2 changes: 1 addition & 1 deletion src/openint/types/client_get_connection_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class ClientGetConnectionParams(TypedDict, total=False):
expand: List[Literal["connector"]]
expand: List[Literal["connector", "enabled_integrations"]]

include_secrets: Literal["none", "basic", "all"]
"""Controls secret inclusion: none (default), basic (auth only), or all secrets"""
Expand Down
3 changes: 1 addition & 2 deletions src/openint/types/client_list_connection_configs_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

from typing import List
from typing_extensions import Literal, TypedDict

__all__ = ["ClientListConnectionConfigsParams"]
Expand Down Expand Up @@ -59,7 +58,7 @@ class ClientListConnectionConfigsParams(TypedDict, total=False):
]
"""The name of the connector"""

expand: List[Literal["connector"]]
expand: str

limit: int
"""Limit the number of items returned"""
Expand Down
2 changes: 1 addition & 1 deletion src/openint/types/client_list_connections_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ClientListConnectionsParams(TypedDict, total=False):
Ensure it is unique for that customer.
"""

expand: List[Literal["connector"]]
expand: List[Literal["connector", "enabled_integrations"]]

include_secrets: Literal["none", "basic", "all"]
"""Controls secret inclusion: none (default), basic (auth only), or all secrets"""
Expand Down
Loading