Skip to content

Commit 476c23d

Browse files
feat(api): api update
1 parent 210e641 commit 476c23d

File tree

2 files changed

+64
-3
lines changed

2 files changed

+64
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-59cfdc939d8d499a2054081f5852f2ac4243ba5525173678fac0dae2605e13a0.yml
3-
openapi_spec_hash: 29b0495f6c6650a8b6e650c756ea66c5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-02e7812c1884f52abc262b661200ba5f97e497d5c981db3e0fdcd45f3df9f1a7.yml
3+
openapi_spec_hash: 7c4d4f673badcf00e63a2bf17fbc149f
44
config_hash: bd953556a1d60f48307815fdaf9ba88b

src/hyperspell/types/auth_me_response.py

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from .._models import BaseModel
88

9-
__all__ = ["AuthMeResponse", "App"]
9+
__all__ = ["AuthMeResponse", "App", "Connection"]
1010

1111

1212
class App(BaseModel):
@@ -23,6 +23,64 @@ class App(BaseModel):
2323
"""The app's redirect URL"""
2424

2525

26+
class Connection(BaseModel):
27+
id: str
28+
"""The connection's id"""
29+
30+
label: Optional[str] = None
31+
"""The connection's label"""
32+
33+
provider: Literal[
34+
"collections",
35+
"vault",
36+
"web_crawler",
37+
"notion",
38+
"slack",
39+
"google_calendar",
40+
"reddit",
41+
"box",
42+
"google_drive",
43+
"airtable",
44+
"algolia",
45+
"amplitude",
46+
"asana",
47+
"ashby",
48+
"bamboohr",
49+
"basecamp",
50+
"bubbles",
51+
"calendly",
52+
"confluence",
53+
"clickup",
54+
"datadog",
55+
"deel",
56+
"discord",
57+
"dropbox",
58+
"exa",
59+
"facebook",
60+
"front",
61+
"github",
62+
"gitlab",
63+
"google_docs",
64+
"google_mail",
65+
"google_sheet",
66+
"hubspot",
67+
"jira",
68+
"linear",
69+
"microsoft_teams",
70+
"mixpanel",
71+
"monday",
72+
"outlook",
73+
"perplexity",
74+
"rippling",
75+
"salesforce",
76+
"segment",
77+
"todoist",
78+
"twitter",
79+
"zoom",
80+
]
81+
"""The connection's provider"""
82+
83+
2684
class AuthMeResponse(BaseModel):
2785
id: str
2886
"""The user's id"""
@@ -82,6 +140,9 @@ class AuthMeResponse(BaseModel):
82140
]
83141
"""All integrations available for the app"""
84142

143+
connections: List[Connection]
144+
"""Established connections for the user"""
145+
85146
installed_integrations: List[
86147
Literal[
87148
"collections",

0 commit comments

Comments
 (0)