Skip to content

Commit 74e46e9

Browse files
feat(api): api update
1 parent bccb2cc commit 74e46e9

File tree

9 files changed

+380
-24
lines changed

9 files changed

+380
-24
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: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-3798b2043988c1dba908d62df73c76dc771f2cda8a401ca34960c3303cfceaa2.yml
3-
openapi_spec_hash: 1b2e464ea074f544ccd927283c992cef
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-287b83fd66b657b044f4ab280ab0e72a2ed72c0da50e4a7d09ce98123982262f.yml
3+
openapi_spec_hash: fcef51b5cf5e602a2d8025546e27e24a
44
config_hash: a39dfe90372d06d735dfb3d27b30409f

src/hyperspell/resources/collections.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def list(
5656
extra_body: Body | None = None,
5757
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5858
) -> SyncCursorPage[CollectionListResponse]:
59-
"""This endpoint allows you to paginate through all documents in the index.
60-
61-
You can
62-
filter the documents by title, date, metadata, etc.
59+
"""
60+
This endpoint lists all collections, and how many documents are in each
61+
collection. All documents that do not have a collection assigned are in the
62+
`null` collection.
6363
6464
Args:
6565
extra_headers: Send extra headers
@@ -122,10 +122,10 @@ def list(
122122
extra_body: Body | None = None,
123123
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
124124
) -> AsyncPaginator[CollectionListResponse, AsyncCursorPage[CollectionListResponse]]:
125-
"""This endpoint allows you to paginate through all documents in the index.
126-
127-
You can
128-
filter the documents by title, date, metadata, etc.
125+
"""
126+
This endpoint lists all collections, and how many documents are in each
127+
collection. All documents that do not have a collection assigned are in the
128+
`null` collection.
129129
130130
Args:
131131
extra_headers: Send extra headers

src/hyperspell/resources/query.py

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,50 @@ def search(
5555
sources: List[
5656
Literal[
5757
"collections",
58+
"web_crawler",
5859
"notion",
5960
"slack",
60-
"hubspot",
6161
"google_calendar",
6262
"reddit",
63-
"web_crawler",
6463
"box",
6564
"google_drive",
65+
"airtable",
66+
"algolia",
67+
"amplitude",
68+
"asana",
69+
"ashby",
70+
"bamboohr",
71+
"basecamp",
72+
"bubbles",
73+
"calendly",
74+
"confluence",
75+
"clickup",
76+
"datadog",
77+
"deel",
78+
"discord",
79+
"dropbox",
80+
"exa",
81+
"facebook",
82+
"front",
83+
"github",
84+
"gitlab",
85+
"google_docs",
86+
"google_mail",
87+
"google_sheet",
88+
"hubspot",
89+
"jira",
90+
"linear",
91+
"microsoft_teams",
92+
"mixpanel",
93+
"monday",
94+
"outlook",
95+
"perplexity",
96+
"rippling",
97+
"salesforce",
98+
"segment",
99+
"todoist",
100+
"twitter",
101+
"zoom",
66102
]
67103
]
68104
| NotGiven = NOT_GIVEN,
@@ -148,14 +184,50 @@ async def search(
148184
sources: List[
149185
Literal[
150186
"collections",
187+
"web_crawler",
151188
"notion",
152189
"slack",
153-
"hubspot",
154190
"google_calendar",
155191
"reddit",
156-
"web_crawler",
157192
"box",
158193
"google_drive",
194+
"airtable",
195+
"algolia",
196+
"amplitude",
197+
"asana",
198+
"ashby",
199+
"bamboohr",
200+
"basecamp",
201+
"bubbles",
202+
"calendly",
203+
"confluence",
204+
"clickup",
205+
"datadog",
206+
"deel",
207+
"discord",
208+
"dropbox",
209+
"exa",
210+
"facebook",
211+
"front",
212+
"github",
213+
"gitlab",
214+
"google_docs",
215+
"google_mail",
216+
"google_sheet",
217+
"hubspot",
218+
"jira",
219+
"linear",
220+
"microsoft_teams",
221+
"mixpanel",
222+
"monday",
223+
"outlook",
224+
"perplexity",
225+
"rippling",
226+
"salesforce",
227+
"segment",
228+
"todoist",
229+
"twitter",
230+
"zoom",
159231
]
160232
]
161233
| NotGiven = NOT_GIVEN,

src/hyperspell/types/auth_me_response.py

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,101 @@ class AuthMeResponse(BaseModel):
1919
available_integrations: List[
2020
Literal[
2121
"collections",
22+
"web_crawler",
2223
"notion",
2324
"slack",
24-
"hubspot",
2525
"google_calendar",
2626
"reddit",
27-
"web_crawler",
2827
"box",
2928
"google_drive",
29+
"airtable",
30+
"algolia",
31+
"amplitude",
32+
"asana",
33+
"ashby",
34+
"bamboohr",
35+
"basecamp",
36+
"bubbles",
37+
"calendly",
38+
"confluence",
39+
"clickup",
40+
"datadog",
41+
"deel",
42+
"discord",
43+
"dropbox",
44+
"exa",
45+
"facebook",
46+
"front",
47+
"github",
48+
"gitlab",
49+
"google_docs",
50+
"google_mail",
51+
"google_sheet",
52+
"hubspot",
53+
"jira",
54+
"linear",
55+
"microsoft_teams",
56+
"mixpanel",
57+
"monday",
58+
"outlook",
59+
"perplexity",
60+
"rippling",
61+
"salesforce",
62+
"segment",
63+
"todoist",
64+
"twitter",
65+
"zoom",
3066
]
3167
]
3268
"""All integrations available for the app"""
3369

3470
installed_integrations: List[
3571
Literal[
3672
"collections",
73+
"web_crawler",
3774
"notion",
3875
"slack",
39-
"hubspot",
4076
"google_calendar",
4177
"reddit",
42-
"web_crawler",
4378
"box",
4479
"google_drive",
80+
"airtable",
81+
"algolia",
82+
"amplitude",
83+
"asana",
84+
"ashby",
85+
"bamboohr",
86+
"basecamp",
87+
"bubbles",
88+
"calendly",
89+
"confluence",
90+
"clickup",
91+
"datadog",
92+
"deel",
93+
"discord",
94+
"dropbox",
95+
"exa",
96+
"facebook",
97+
"front",
98+
"github",
99+
"gitlab",
100+
"google_docs",
101+
"google_mail",
102+
"google_sheet",
103+
"hubspot",
104+
"jira",
105+
"linear",
106+
"microsoft_teams",
107+
"mixpanel",
108+
"monday",
109+
"outlook",
110+
"perplexity",
111+
"rippling",
112+
"salesforce",
113+
"segment",
114+
"todoist",
115+
"twitter",
116+
"zoom",
45117
]
46118
]
47119
"""All integrations installed for the user"""

src/hyperspell/types/document_list_response.py

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,51 @@ class DocumentListResponse(BaseModel):
2727
resource_id: str
2828

2929
source: Literal[
30-
"collections", "notion", "slack", "hubspot", "google_calendar", "reddit", "web_crawler", "box", "google_drive"
30+
"collections",
31+
"web_crawler",
32+
"notion",
33+
"slack",
34+
"google_calendar",
35+
"reddit",
36+
"box",
37+
"google_drive",
38+
"airtable",
39+
"algolia",
40+
"amplitude",
41+
"asana",
42+
"ashby",
43+
"bamboohr",
44+
"basecamp",
45+
"bubbles",
46+
"calendly",
47+
"confluence",
48+
"clickup",
49+
"datadog",
50+
"deel",
51+
"discord",
52+
"dropbox",
53+
"exa",
54+
"facebook",
55+
"front",
56+
"github",
57+
"gitlab",
58+
"google_docs",
59+
"google_mail",
60+
"google_sheet",
61+
"hubspot",
62+
"jira",
63+
"linear",
64+
"microsoft_teams",
65+
"mixpanel",
66+
"monday",
67+
"outlook",
68+
"perplexity",
69+
"rippling",
70+
"salesforce",
71+
"segment",
72+
"todoist",
73+
"twitter",
74+
"zoom",
3175
]
3276

3377
metadata: Optional[Metadata] = None

src/hyperspell/types/document_status.py

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,51 @@ class DocumentStatus(BaseModel):
1414
resource_id: str
1515

1616
source: Literal[
17-
"collections", "notion", "slack", "hubspot", "google_calendar", "reddit", "web_crawler", "box", "google_drive"
17+
"collections",
18+
"web_crawler",
19+
"notion",
20+
"slack",
21+
"google_calendar",
22+
"reddit",
23+
"box",
24+
"google_drive",
25+
"airtable",
26+
"algolia",
27+
"amplitude",
28+
"asana",
29+
"ashby",
30+
"bamboohr",
31+
"basecamp",
32+
"bubbles",
33+
"calendly",
34+
"confluence",
35+
"clickup",
36+
"datadog",
37+
"deel",
38+
"discord",
39+
"dropbox",
40+
"exa",
41+
"facebook",
42+
"front",
43+
"github",
44+
"gitlab",
45+
"google_docs",
46+
"google_mail",
47+
"google_sheet",
48+
"hubspot",
49+
"jira",
50+
"linear",
51+
"microsoft_teams",
52+
"mixpanel",
53+
"monday",
54+
"outlook",
55+
"perplexity",
56+
"rippling",
57+
"salesforce",
58+
"segment",
59+
"todoist",
60+
"twitter",
61+
"zoom",
1862
]
1963

2064
status: Literal["pending", "processing", "completed", "failed"]

0 commit comments

Comments
 (0)