Skip to content

Commit a3c4b8e

Browse files
authored
Merge pull request #97 from hyperspell/release-please--branches--main--changes--next
release: 0.22.1
2 parents 62fc6d0 + 9ff00c2 commit a3c4b8e

11 files changed

Lines changed: 89 additions & 19 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.22.0"
2+
".": "0.22.1"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-ec1420af27ac837f49a977cb95726af45a5ee5b5cd367e54b8a611de47ee3c84.yml
3-
openapi_spec_hash: 0fc5dd84801ee8f46a9b5d0941bdefda
4-
config_hash: 985dd1bd217ba3c5c5b614da08d43e5f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-b98d78d20b4c4d2c702e39d073c7b46218c6a4faf8b2f7293034aa37cd55140e.yml
3+
openapi_spec_hash: c280139f8355b085bd2c417c67fffada
4+
config_hash: 595375b8ab62a4d175e28264da481aa3

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 0.22.1 (2025-08-13)
4+
5+
Full Changelog: [v0.22.0...v0.22.1](https://github.com/hyperspell/python-sdk/compare/v0.22.0...v0.22.1)
6+
7+
### Features
8+
9+
* **api:** api update ([d2c231b](https://github.com/hyperspell/python-sdk/commit/d2c231b07652d05a03e545078b17da80d425a072))
10+
* **api:** api update ([ac37961](https://github.com/hyperspell/python-sdk/commit/ac3796155df478f984b59d18b81e0ab8a0b20a36))
11+
12+
13+
### Chores
14+
15+
* **internal:** update comment in script ([3f74f9d](https://github.com/hyperspell/python-sdk/commit/3f74f9ded72572e20d6839d14c34713d75c83d4c))
16+
* update @stainless-api/prism-cli to v5.15.0 ([37e8a3f](https://github.com/hyperspell/python-sdk/commit/37e8a3f52aff75d78adc6ba7a0a51107cc9e0fe1))
17+
318
## 0.22.0 (2025-08-06)
419

520
Full Changelog: [v0.21.0...v0.22.0](https://github.com/hyperspell/python-sdk/compare/v0.21.0...v0.22.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hyperspell"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
description = "The official Python library for the hyperspell API"
55
dynamic = ["readme"]
66
license = "MIT"

scripts/mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
2121

2222
# Run prism mock on the given spec
2323
if [ "$1" == "--daemon" ]; then
24-
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
24+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
2525

2626
# Wait for server to come online
2727
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
3737

3838
echo
3939
else
40-
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
40+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
4141
fi

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ elif ! prism_is_running ; then
4343
echo -e "To run the server, pass in the path or url of your OpenAPI"
4444
echo -e "spec to the prism command:"
4545
echo
46-
echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
46+
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
4747
echo
4848

4949
exit 1

src/hyperspell/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "hyperspell"
4-
__version__ = "0.22.0" # x-release-please-version
4+
__version__ = "0.22.1" # x-release-please-version

src/hyperspell/resources/integrations/web_crawler.py

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def index(
4545
self,
4646
*,
4747
url: str,
48+
limit: int | NotGiven = NOT_GIVEN,
49+
max_depth: int | NotGiven = NOT_GIVEN,
4850
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
4951
# The extra values given here take precedence over values defined on the client or passed to this method.
5052
extra_headers: Headers | None = None,
@@ -56,6 +58,12 @@ def index(
5658
Recursively crawl a website to make it available for indexed search.
5759
5860
Args:
61+
url: The base URL of the website to crawl
62+
63+
limit: Maximum number of pages to crawl in total
64+
65+
max_depth: Maximum depth of links to follow during crawling
66+
5967
extra_headers: Send extra headers
6068
6169
extra_query: Add additional query parameters to the request
@@ -71,7 +79,14 @@ def index(
7179
extra_query=extra_query,
7280
extra_body=extra_body,
7381
timeout=timeout,
74-
query=maybe_transform({"url": url}, web_crawler_index_params.WebCrawlerIndexParams),
82+
query=maybe_transform(
83+
{
84+
"url": url,
85+
"limit": limit,
86+
"max_depth": max_depth,
87+
},
88+
web_crawler_index_params.WebCrawlerIndexParams,
89+
),
7590
),
7691
cast_to=WebCrawlerIndexResponse,
7792
)
@@ -101,6 +116,8 @@ async def index(
101116
self,
102117
*,
103118
url: str,
119+
limit: int | NotGiven = NOT_GIVEN,
120+
max_depth: int | NotGiven = NOT_GIVEN,
104121
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
105122
# The extra values given here take precedence over values defined on the client or passed to this method.
106123
extra_headers: Headers | None = None,
@@ -112,6 +129,12 @@ async def index(
112129
Recursively crawl a website to make it available for indexed search.
113130
114131
Args:
132+
url: The base URL of the website to crawl
133+
134+
limit: Maximum number of pages to crawl in total
135+
136+
max_depth: Maximum depth of links to follow during crawling
137+
115138
extra_headers: Send extra headers
116139
117140
extra_query: Add additional query parameters to the request
@@ -127,7 +150,14 @@ async def index(
127150
extra_query=extra_query,
128151
extra_body=extra_body,
129152
timeout=timeout,
130-
query=await async_maybe_transform({"url": url}, web_crawler_index_params.WebCrawlerIndexParams),
153+
query=await async_maybe_transform(
154+
{
155+
"url": url,
156+
"limit": limit,
157+
"max_depth": max_depth,
158+
},
159+
web_crawler_index_params.WebCrawlerIndexParams,
160+
),
131161
),
132162
cast_to=WebCrawlerIndexResponse,
133163
)

src/hyperspell/resources/memories.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,12 @@ def upload(
534534
extra_body: Body | None = None,
535535
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
536536
) -> MemoryStatus:
537-
"""This endpoint will upload a file to the index and return a document ID.
537+
"""This endpoint will upload a file to the index and return a resource_id.
538538
539539
The file
540-
will be processed in the background and the document will be available for
541-
querying once the processing is complete. You can use the `document_id` to query
542-
the document later, and check the status of the document.
540+
will be processed in the background and the memory will be available for
541+
querying once the processing is complete. You can use the `resource_id` to query
542+
the memory later, and check the status of the memory.
543543
544544
Args:
545545
file: The file to ingest.
@@ -1080,12 +1080,12 @@ async def upload(
10801080
extra_body: Body | None = None,
10811081
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
10821082
) -> MemoryStatus:
1083-
"""This endpoint will upload a file to the index and return a document ID.
1083+
"""This endpoint will upload a file to the index and return a resource_id.
10841084
10851085
The file
1086-
will be processed in the background and the document will be available for
1087-
querying once the processing is complete. You can use the `document_id` to query
1088-
the document later, and check the status of the document.
1086+
will be processed in the background and the memory will be available for
1087+
querying once the processing is complete. You can use the `resource_id` to query
1088+
the memory later, and check the status of the memory.
10891089
10901090
Args:
10911091
file: The file to ingest.

src/hyperspell/types/integrations/web_crawler_index_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@
99

1010
class WebCrawlerIndexParams(TypedDict, total=False):
1111
url: Required[str]
12+
"""The base URL of the website to crawl"""
13+
14+
limit: int
15+
"""Maximum number of pages to crawl in total"""
16+
17+
max_depth: int
18+
"""Maximum depth of links to follow during crawling"""

0 commit comments

Comments
 (0)