Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.38.0"
".": "0.39.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 62
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-b091721a627d75feb8567f628f99405d5778b0b88e9cc09fc664dd8e97c6d720.yml
openapi_spec_hash: a23a2aecdcff5fa1d6c8cdc0df0bdfb7
config_hash: c56a6c9375e7640ce70ff00420e8605a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-c53a9b02bf4bd345435a03b4178aed1b7c8ac04a2508f370b5361bf305a3f803.yml
openapi_spec_hash: f05a6df876280efad08ed2f0ab78d5fc
config_hash: 6fa04d08d4e1a3a45f562e37fab0ea71
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.39.0 (2025-11-07)

Full Changelog: [v0.38.0...v0.39.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.38.0...v0.39.0)

### Features

* **api:** api update ([ece68dd](https://github.com/mixedbread-ai/mixedbread-python/commit/ece68dd6350b58e8dac815213c918ad879c89ddd))
* **api:** api update ([6ed00c6](https://github.com/mixedbread-ai/mixedbread-python/commit/6ed00c65da6477ba7bf453aae4a7e9f9cded6841))
* **api:** update via SDK Studio ([2ca5086](https://github.com/mixedbread-ai/mixedbread-python/commit/2ca508619c2308981e7c1171f9f15637c35b77d4))

## 0.38.0 (2025-11-04)

Full Changelog: [v0.37.0...v0.38.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.37.0...v0.38.0)
Expand Down
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Methods:
- <code title="post /v1/stores/{store_identifier}/files">client.stores.files.<a href="./src/mixedbread/resources/stores/files.py">create</a>(store_identifier, \*\*<a href="src/mixedbread/types/stores/file_create_params.py">params</a>) -> <a href="./src/mixedbread/types/stores/store_file.py">StoreFile</a></code>
- <code title="get /v1/stores/{store_identifier}/files/{file_identifier}">client.stores.files.<a href="./src/mixedbread/resources/stores/files.py">retrieve</a>(file_identifier, \*, store_identifier, \*\*<a href="src/mixedbread/types/stores/file_retrieve_params.py">params</a>) -> <a href="./src/mixedbread/types/stores/store_file.py">StoreFile</a></code>
- <code title="post /v1/stores/{store_identifier}/files/list">client.stores.files.<a href="./src/mixedbread/resources/stores/files.py">list</a>(store_identifier, \*\*<a href="src/mixedbread/types/stores/file_list_params.py">params</a>) -> <a href="./src/mixedbread/types/stores/file_list_response.py">FileListResponse</a></code>
- <code title="delete /v1/stores/{store_identifier}/files/{file_id}">client.stores.files.<a href="./src/mixedbread/resources/stores/files.py">delete</a>(file_id, \*, store_identifier) -> <a href="./src/mixedbread/types/stores/file_delete_response.py">FileDeleteResponse</a></code>
- <code title="delete /v1/stores/{store_identifier}/files/{file_identifier}">client.stores.files.<a href="./src/mixedbread/resources/stores/files.py">delete</a>(file_identifier, \*, store_identifier) -> <a href="./src/mixedbread/types/stores/file_delete_response.py">FileDeleteResponse</a></code>
- <code title="post /v1/stores/files/search">client.stores.files.<a href="./src/mixedbread/resources/stores/files.py">search</a>(\*\*<a href="src/mixedbread/types/stores/file_search_params.py">params</a>) -> <a href="./src/mixedbread/types/stores/file_search_response.py">FileSearchResponse</a></code>

# Parsing
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mixedbread"
version = "0.38.0"
version = "0.39.0"
description = "The official Python library for the Mixedbread API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/mixedbread/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "mixedbread"
__version__ = "0.38.0" # x-release-please-version
__version__ = "0.39.0" # x-release-please-version
20 changes: 10 additions & 10 deletions src/mixedbread/resources/stores/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def list(

def delete(
self,
file_id: str,
file_identifier: str,
*,
store_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -267,7 +267,7 @@ def delete(
Args:
store_identifier: The ID or name of the store

file_id: The ID or name of the file to delete
file_identifier: The ID or name of the file to delete

extra_headers: Send extra headers

Expand All @@ -279,10 +279,10 @@ def delete(
"""
if not store_identifier:
raise ValueError(f"Expected a non-empty value for `store_identifier` but received {store_identifier!r}")
if not file_id:
raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}")
if not file_identifier:
raise ValueError(f"Expected a non-empty value for `file_identifier` but received {file_identifier!r}")
return self._delete(
f"/v1/stores/{store_identifier}/files/{file_id}",
f"/v1/stores/{store_identifier}/files/{file_identifier}",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down Expand Up @@ -730,7 +730,7 @@ async def list(

async def delete(
self,
file_id: str,
file_identifier: str,
*,
store_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -752,7 +752,7 @@ async def delete(
Args:
store_identifier: The ID or name of the store

file_id: The ID or name of the file to delete
file_identifier: The ID or name of the file to delete

extra_headers: Send extra headers

Expand All @@ -764,10 +764,10 @@ async def delete(
"""
if not store_identifier:
raise ValueError(f"Expected a non-empty value for `store_identifier` but received {store_identifier!r}")
if not file_id:
raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}")
if not file_identifier:
raise ValueError(f"Expected a non-empty value for `file_identifier` but received {file_identifier!r}")
return await self._delete(
f"/v1/stores/{store_identifier}/files/{file_id}",
f"/v1/stores/{store_identifier}/files/{file_identifier}",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down
2 changes: 1 addition & 1 deletion src/mixedbread/types/shared/search_filter_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ class SearchFilterCondition(BaseModel):
value: object
"""The value to compare against"""

operator: Literal["eq", "not_eq", "gt", "gte", "lt", "lte", "in", "not_in", "like", "not_like"]
operator: Literal["eq", "not_eq", "gt", "gte", "lt", "lte", "in", "not_in", "like", "starts_with", "not_like"]
"""The operator for the condition"""
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ class SearchFilterCondition(TypedDict, total=False):
value: Required[object]
"""The value to compare against"""

operator: Required[Literal["eq", "not_eq", "gt", "gte", "lt", "lte", "in", "not_in", "like", "not_like"]]
operator: Required[
Literal["eq", "not_eq", "gt", "gte", "lt", "lte", "in", "not_in", "like", "starts_with", "not_like"]
]
"""The operator for the condition"""
24 changes: 12 additions & 12 deletions tests/api_resources/stores/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ def test_path_params_list(self, client: Mixedbread) -> None:
@parametrize
def test_method_delete(self, client: Mixedbread) -> None:
file = client.stores.files.delete(
file_id="file_id",
file_identifier="file_identifier",
store_identifier="store_identifier",
)
assert_matches_type(FileDeleteResponse, file, path=["response"])

@parametrize
def test_raw_response_delete(self, client: Mixedbread) -> None:
response = client.stores.files.with_raw_response.delete(
file_id="file_id",
file_identifier="file_identifier",
store_identifier="store_identifier",
)

Expand All @@ -245,7 +245,7 @@ def test_raw_response_delete(self, client: Mixedbread) -> None:
@parametrize
def test_streaming_response_delete(self, client: Mixedbread) -> None:
with client.stores.files.with_streaming_response.delete(
file_id="file_id",
file_identifier="file_identifier",
store_identifier="store_identifier",
) as response:
assert not response.is_closed
Expand All @@ -260,13 +260,13 @@ def test_streaming_response_delete(self, client: Mixedbread) -> None:
def test_path_params_delete(self, client: Mixedbread) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `store_identifier` but received ''"):
client.stores.files.with_raw_response.delete(
file_id="file_id",
file_identifier="file_identifier",
store_identifier="",
)

with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_identifier` but received ''"):
client.stores.files.with_raw_response.delete(
file_id="",
file_identifier="",
store_identifier="store_identifier",
)

Expand Down Expand Up @@ -570,15 +570,15 @@ async def test_path_params_list(self, async_client: AsyncMixedbread) -> None:
@parametrize
async def test_method_delete(self, async_client: AsyncMixedbread) -> None:
file = await async_client.stores.files.delete(
file_id="file_id",
file_identifier="file_identifier",
store_identifier="store_identifier",
)
assert_matches_type(FileDeleteResponse, file, path=["response"])

@parametrize
async def test_raw_response_delete(self, async_client: AsyncMixedbread) -> None:
response = await async_client.stores.files.with_raw_response.delete(
file_id="file_id",
file_identifier="file_identifier",
store_identifier="store_identifier",
)

Expand All @@ -590,7 +590,7 @@ async def test_raw_response_delete(self, async_client: AsyncMixedbread) -> None:
@parametrize
async def test_streaming_response_delete(self, async_client: AsyncMixedbread) -> None:
async with async_client.stores.files.with_streaming_response.delete(
file_id="file_id",
file_identifier="file_identifier",
store_identifier="store_identifier",
) as response:
assert not response.is_closed
Expand All @@ -605,13 +605,13 @@ async def test_streaming_response_delete(self, async_client: AsyncMixedbread) ->
async def test_path_params_delete(self, async_client: AsyncMixedbread) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `store_identifier` but received ''"):
await async_client.stores.files.with_raw_response.delete(
file_id="file_id",
file_identifier="file_identifier",
store_identifier="",
)

with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_identifier` but received ''"):
await async_client.stores.files.with_raw_response.delete(
file_id="",
file_identifier="",
store_identifier="store_identifier",
)

Expand Down
Loading