Skip to content

Commit e7f4e7d

Browse files
chore(internal): rename unreleased connection status type (#253)
1 parent eeb0301 commit e7f4e7d

File tree

9 files changed

+15
-24
lines changed

9 files changed

+15
-24
lines changed

api.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# Shared Types
22

33
```python
4-
from finch.types import (
5-
IntrospectResponseConnectionStatus,
6-
OperationSupport,
7-
OperationSupportMatrix,
8-
Paging,
9-
)
4+
from finch.types import ConnectionStatusType, OperationSupport, OperationSupportMatrix, Paging
105
```
116

127
# Finch

src/finch/resources/sandbox/connections/accounts.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ...._base_client import (
1616
make_request_options,
1717
)
18-
from ....types.shared import IntrospectResponseConnectionStatus
18+
from ....types.shared import ConnectionStatusType
1919
from ....types.sandbox.connections import (
2020
AccountCreateResponse,
2121
AccountUpdateResponse,
@@ -80,7 +80,7 @@ def create(
8080
def update(
8181
self,
8282
*,
83-
connection_status: IntrospectResponseConnectionStatus | NotGiven = NOT_GIVEN,
83+
connection_status: ConnectionStatusType | NotGiven = NOT_GIVEN,
8484
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8585
# The extra values given here take precedence over values defined on the client or passed to this method.
8686
extra_headers: Headers | None = None,
@@ -166,7 +166,7 @@ async def create(
166166
async def update(
167167
self,
168168
*,
169-
connection_status: IntrospectResponseConnectionStatus | NotGiven = NOT_GIVEN,
169+
connection_status: ConnectionStatusType | NotGiven = NOT_GIVEN,
170170
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
171171
# The extra values given here take precedence over values defined on the client or passed to this method.
172172
extra_headers: Headers | None = None,

src/finch/types/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from .shared import (
88
Paging as Paging,
99
OperationSupport as OperationSupport,
10+
ConnectionStatusType as ConnectionStatusType,
1011
OperationSupportMatrix as OperationSupportMatrix,
11-
IntrospectResponseConnectionStatus as IntrospectResponseConnectionStatus,
1212
)
1313
from .location import Location as Location
1414
from .provider import Provider as Provider

src/finch/types/introspection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import List, Optional
44
from typing_extensions import Literal
55

6-
from .shared import IntrospectResponseConnectionStatus
6+
from .shared import ConnectionStatusType
77
from .._models import BaseModel
88

99
__all__ = ["Introspection", "AuthenticationMethods", "AuthenticationMethodsConnectionStatus"]
@@ -12,7 +12,7 @@
1212
class AuthenticationMethodsConnectionStatus(BaseModel):
1313
message: Optional[str] = None
1414

15-
status: Optional[IntrospectResponseConnectionStatus] = None
15+
status: Optional[ConnectionStatusType] = None
1616

1717

1818
class AuthenticationMethods(BaseModel):

src/finch/types/sandbox/connections/account_update_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
from typing_extensions import TypedDict
66

7-
from ...shared import IntrospectResponseConnectionStatus
7+
from ...shared import ConnectionStatusType
88

99
__all__ = ["AccountUpdateParams"]
1010

1111

1212
class AccountUpdateParams(TypedDict, total=False):
13-
connection_status: IntrospectResponseConnectionStatus
13+
connection_status: ConnectionStatusType

src/finch/types/shared/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
from .paging import Paging as Paging
44
from .operation_support import OperationSupport as OperationSupport
5+
from .connection_status_type import ConnectionStatusType as ConnectionStatusType
56
from .operation_support_matrix import OperationSupportMatrix as OperationSupportMatrix
6-
from .introspect_response_connection_status import (
7-
IntrospectResponseConnectionStatus as IntrospectResponseConnectionStatus,
8-
)

src/finch/types/shared/introspect_response_connection_status.py renamed to src/finch/types/shared/connection_status_type.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from typing_extensions import Literal
44

5-
__all__ = ["IntrospectResponseConnectionStatus"]
5+
__all__ = ["ConnectionStatusType"]
66

7-
IntrospectResponseConnectionStatus = Literal[
7+
ConnectionStatusType = Literal[
88
"pending", "processing", "connected", "error_no_account_setup", "error_permissions", "reauth"
99
]
+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# File generated from our OpenAPI spec by Stainless.
22

3-
from .introspect_response_connection_status import (
4-
IntrospectResponseConnectionStatus as IntrospectResponseConnectionStatus,
5-
)
3+
from .connection_status_type import ConnectionStatusType as ConnectionStatusType

src/finch/types/shared_params/introspect_response_connection_status.py renamed to src/finch/types/shared_params/connection_status_type.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from typing_extensions import Literal
66

7-
__all__ = ["IntrospectResponseConnectionStatus"]
7+
__all__ = ["ConnectionStatusType"]
88

9-
IntrospectResponseConnectionStatus = Literal[
9+
ConnectionStatusType = Literal[
1010
"pending", "processing", "connected", "error_no_account_setup", "error_permissions", "reauth"
1111
]

0 commit comments

Comments
 (0)