Skip to content

chore(internal): rename unreleased connection status type #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2024
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
7 changes: 1 addition & 6 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# Shared Types

```python
from finch.types import (
IntrospectResponseConnectionStatus,
OperationSupport,
OperationSupportMatrix,
Paging,
)
from finch.types import ConnectionStatusType, OperationSupport, OperationSupportMatrix, Paging
```

# Finch
Expand Down
6 changes: 3 additions & 3 deletions src/finch/resources/sandbox/connections/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from ...._base_client import (
make_request_options,
)
from ....types.shared import IntrospectResponseConnectionStatus
from ....types.shared import ConnectionStatusType
from ....types.sandbox.connections import (
AccountCreateResponse,
AccountUpdateResponse,
Expand Down Expand Up @@ -80,7 +80,7 @@ def create(
def update(
self,
*,
connection_status: IntrospectResponseConnectionStatus | NotGiven = NOT_GIVEN,
connection_status: ConnectionStatusType | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -166,7 +166,7 @@ async def create(
async def update(
self,
*,
connection_status: IntrospectResponseConnectionStatus | NotGiven = NOT_GIVEN,
connection_status: ConnectionStatusType | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down
2 changes: 1 addition & 1 deletion src/finch/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from .shared import (
Paging as Paging,
OperationSupport as OperationSupport,
ConnectionStatusType as ConnectionStatusType,
OperationSupportMatrix as OperationSupportMatrix,
IntrospectResponseConnectionStatus as IntrospectResponseConnectionStatus,
)
from .location import Location as Location
from .provider import Provider as Provider
Expand Down
4 changes: 2 additions & 2 deletions src/finch/types/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import List, Optional
from typing_extensions import Literal

from .shared import IntrospectResponseConnectionStatus
from .shared import ConnectionStatusType
from .._models import BaseModel

__all__ = ["Introspection", "AuthenticationMethods", "AuthenticationMethodsConnectionStatus"]
Expand All @@ -12,7 +12,7 @@
class AuthenticationMethodsConnectionStatus(BaseModel):
message: Optional[str] = None

status: Optional[IntrospectResponseConnectionStatus] = None
status: Optional[ConnectionStatusType] = None


class AuthenticationMethods(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

from typing_extensions import TypedDict

from ...shared import IntrospectResponseConnectionStatus
from ...shared import ConnectionStatusType

__all__ = ["AccountUpdateParams"]


class AccountUpdateParams(TypedDict, total=False):
connection_status: IntrospectResponseConnectionStatus
connection_status: ConnectionStatusType
4 changes: 1 addition & 3 deletions src/finch/types/shared/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@

from .paging import Paging as Paging
from .operation_support import OperationSupport as OperationSupport
from .connection_status_type import ConnectionStatusType as ConnectionStatusType
from .operation_support_matrix import OperationSupportMatrix as OperationSupportMatrix
from .introspect_response_connection_status import (
IntrospectResponseConnectionStatus as IntrospectResponseConnectionStatus,
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from typing_extensions import Literal

__all__ = ["IntrospectResponseConnectionStatus"]
__all__ = ["ConnectionStatusType"]

IntrospectResponseConnectionStatus = Literal[
ConnectionStatusType = Literal[
"pending", "processing", "connected", "error_no_account_setup", "error_permissions", "reauth"
]
4 changes: 1 addition & 3 deletions src/finch/types/shared_params/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# File generated from our OpenAPI spec by Stainless.

from .introspect_response_connection_status import (
IntrospectResponseConnectionStatus as IntrospectResponseConnectionStatus,
)
from .connection_status_type import ConnectionStatusType as ConnectionStatusType
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from typing_extensions import Literal

__all__ = ["IntrospectResponseConnectionStatus"]
__all__ = ["ConnectionStatusType"]

IntrospectResponseConnectionStatus = Literal[
ConnectionStatusType = Literal[
"pending", "processing", "connected", "error_no_account_setup", "error_permissions", "reauth"
]