Skip to content

Commit 9f99841

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#508)
1 parent 4b4f7c4 commit 9f99841

File tree

6 files changed

+32
-8
lines changed

6 files changed

+32
-8
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 39
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-ea62ee98f625bf64ae053b9d966dfd8a62d7dca686f86e3825b117c53e10ad16.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-6a3981b3fb38fe3ebae980af27e09f31d22db3659699afdd61f336594209ce42.yml

src/finch/resources/connect/sessions.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def new(
6969
Create a new connect session for an employer
7070
7171
Args:
72-
minutes_to_expire: The number of minutes until the session expires (defaults to 10,080, which is 7
72+
minutes_to_expire: The number of minutes until the session expires (defaults to 20,160, which is 14
7373
days)
7474
7575
extra_headers: Send extra headers
@@ -129,7 +129,7 @@ def reauthenticate(
129129
Args:
130130
connection_id: The ID of the existing connection to reauthenticate
131131
132-
minutes_to_expire: The number of minutes until the session expires (defaults to 10,080, which is 7
132+
minutes_to_expire: The number of minutes until the session expires (defaults to 20,160, which is 14
133133
days)
134134
135135
products: The products to request access to (optional for reauthentication)
@@ -207,7 +207,7 @@ async def new(
207207
Create a new connect session for an employer
208208
209209
Args:
210-
minutes_to_expire: The number of minutes until the session expires (defaults to 10,080, which is 7
210+
minutes_to_expire: The number of minutes until the session expires (defaults to 20,160, which is 14
211211
days)
212212
213213
extra_headers: Send extra headers
@@ -267,7 +267,7 @@ async def reauthenticate(
267267
Args:
268268
connection_id: The ID of the existing connection to reauthenticate
269269
270-
minutes_to_expire: The number of minutes until the session expires (defaults to 10,080, which is 7
270+
minutes_to_expire: The number of minutes until the session expires (defaults to 20,160, which is 14
271271
days)
272272
273273
products: The products to request access to (optional for reauthentication)

src/finch/types/connect/session_new_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SessionNewParams(TypedDict, total=False):
2525

2626
minutes_to_expire: Optional[float]
2727
"""
28-
The number of minutes until the session expires (defaults to 10,080, which is 7
28+
The number of minutes until the session expires (defaults to 20,160, which is 14
2929
days)
3030
"""
3131

src/finch/types/connect/session_reauthenticate_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SessionReauthenticateParams(TypedDict, total=False):
1414

1515
minutes_to_expire: Optional[int]
1616
"""
17-
The number of minutes until the session expires (defaults to 10,080, which is 7
17+
The number of minutes until the session expires (defaults to 20,160, which is 14
1818
days)
1919
"""
2020

src/finch/types/create_access_token_response.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
3+
from typing import List, Optional
44
from typing_extensions import Literal
55

66
from .._models import BaseModel
@@ -42,3 +42,9 @@ class CreateAccessTokenResponse(BaseModel):
4242

4343
provider_id: str
4444
"""The ID of the provider associated with the `access_token`."""
45+
46+
customer_id: Optional[str] = None
47+
"""
48+
The ID of your customer you provided to Finch when a connect session was created
49+
for this connection.
50+
"""

src/finch/types/introspection.py

+18
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,24 @@ class Introspection(BaseModel):
6464
- `finch` - finch-generated data.
6565
"""
6666

67+
customer_email: Optional[str] = None
68+
"""
69+
The email of your customer you provided to Finch when a connect session was
70+
created for this connection.
71+
"""
72+
73+
customer_id: Optional[str] = None
74+
"""
75+
The ID of your customer you provided to Finch when a connect session was created
76+
for this connection.
77+
"""
78+
79+
customer_name: Optional[str] = None
80+
"""
81+
The name of your customer you provided to Finch when a connect session was
82+
created for this connection.
83+
"""
84+
6785
manual: bool
6886
"""
6987
Whether the connection associated with the `access_token` uses the Assisted

0 commit comments

Comments
 (0)