Skip to content

Commit 0689f69

Browse files
release: 0.1.0-alpha.19 (#116)
* feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * codegen metadata * feat(api): add validate endpoint * release: 0.1.0-alpha.19 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 5bfda00 commit 0689f69

20 files changed

+1130
-214
lines changed

.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.1.0-alpha.18"
2+
".": "0.1.0-alpha.19"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
configured_endpoints: 43
2-
openapi_spec_hash: b7beefbd38b4fcdd191cdb81a18a023b
3-
config_hash: 5e459b33c53ffa6e554087a779bdb790
1+
configured_endpoints: 44
2+
openapi_spec_hash: 97719fe7ae4c641a5a020dd21f2978dd
3+
config_hash: 659f65b6ccf5612986f920f7f9abbcb5

CHANGELOG.md

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

3+
## 0.1.0-alpha.19 (2025-05-07)
4+
5+
Full Changelog: [v0.1.0-alpha.18...v0.1.0-alpha.19](https://github.com/cleanlab/codex-python/compare/v0.1.0-alpha.18...v0.1.0-alpha.19)
6+
7+
### Features
8+
9+
* **api:** add validate endpoint ([099ac1b](https://github.com/cleanlab/codex-python/commit/099ac1b68ffc0cbfc5ce4bd23fd5f9899e0b64f9))
10+
* **api:** api update ([8e01ccd](https://github.com/cleanlab/codex-python/commit/8e01ccdc8e341d010e8989f30f4fd887effa1871))
11+
* **api:** api update ([61fdb7a](https://github.com/cleanlab/codex-python/commit/61fdb7aaaa6c2533ebcfdfe3c0aff31474e75d51))
12+
* **api:** api update ([a52c74a](https://github.com/cleanlab/codex-python/commit/a52c74a22fb720f10265021d057f34874f73846b))
13+
* **api:** api update ([6947764](https://github.com/cleanlab/codex-python/commit/69477646d7c8eff2bae01199949e4037771ba460))
14+
315
## 0.1.0-alpha.18 (2025-04-24)
416

517
Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/cleanlab/codex-python/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)

api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ from codex.types import (
142142
ProjectExportResponse,
143143
ProjectIncrementQueriesResponse,
144144
ProjectRetrieveAnalyticsResponse,
145+
ProjectValidateResponse,
145146
)
146147
```
147148

@@ -153,8 +154,9 @@ Methods:
153154
- <code title="get /api/projects/">client.projects.<a href="./src/codex/resources/projects/projects.py">list</a>(\*\*<a href="src/codex/types/project_list_params.py">params</a>) -> <a href="./src/codex/types/project_list_response.py">ProjectListResponse</a></code>
154155
- <code title="delete /api/projects/{project_id}">client.projects.<a href="./src/codex/resources/projects/projects.py">delete</a>(project_id) -> None</code>
155156
- <code title="get /api/projects/{project_id}/export">client.projects.<a href="./src/codex/resources/projects/projects.py">export</a>(project_id) -> <a href="./src/codex/types/project_export_response.py">object</a></code>
156-
- <code title="post /api/projects/{project_id}/increment_queries">client.projects.<a href="./src/codex/resources/projects/projects.py">increment_queries</a>(project_id) -> <a href="./src/codex/types/project_increment_queries_response.py">object</a></code>
157+
- <code title="post /api/projects/{project_id}/increment_queries">client.projects.<a href="./src/codex/resources/projects/projects.py">increment_queries</a>(project_id, \*\*<a href="src/codex/types/project_increment_queries_params.py">params</a>) -> <a href="./src/codex/types/project_increment_queries_response.py">object</a></code>
157158
- <code title="get /api/projects/{project_id}/analytics/">client.projects.<a href="./src/codex/resources/projects/projects.py">retrieve_analytics</a>(project_id, \*\*<a href="src/codex/types/project_retrieve_analytics_params.py">params</a>) -> <a href="./src/codex/types/project_retrieve_analytics_response.py">ProjectRetrieveAnalyticsResponse</a></code>
159+
- <code title="post /api/projects/{project_id}/validate">client.projects.<a href="./src/codex/resources/projects/projects.py">validate</a>(project_id, \*\*<a href="src/codex/types/project_validate_params.py">params</a>) -> <a href="./src/codex/types/project_validate_response.py">ProjectValidateResponse</a></code>
158160

159161
## AccessKeys
160162

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "codex-sdk"
3-
version = "0.1.0-alpha.18"
3+
version = "0.1.0-alpha.19"
44
description = "Internal SDK used within cleanlab-codex package. Refer to https://pypi.org/project/cleanlab-codex/ instead."
55
dynamic = ["readme"]
66
license = "MIT"

src/codex/_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__ = "codex"
4-
__version__ = "0.1.0-alpha.18" # x-release-please-version
4+
__version__ = "0.1.0-alpha.19" # x-release-please-version

src/codex/resources/projects/entries.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ def query(
319319
question: str,
320320
use_llm_matching: bool | NotGiven = NOT_GIVEN,
321321
client_metadata: Optional[object] | NotGiven = NOT_GIVEN,
322+
query_metadata: Optional[entry_query_params.QueryMetadata] | NotGiven = NOT_GIVEN,
322323
x_client_library_version: str | NotGiven = NOT_GIVEN,
323324
x_integration_type: str | NotGiven = NOT_GIVEN,
324325
x_source: str | NotGiven = NOT_GIVEN,
@@ -334,6 +335,10 @@ def query(
334335
Query Entries Route
335336
336337
Args:
338+
client_metadata: Deprecated: Use query_metadata instead
339+
340+
query_metadata: Optional logging data that can be provided by the client.
341+
337342
extra_headers: Send extra headers
338343
339344
extra_query: Add additional query parameters to the request
@@ -361,6 +366,7 @@ def query(
361366
{
362367
"question": question,
363368
"client_metadata": client_metadata,
369+
"query_metadata": query_metadata,
364370
},
365371
entry_query_params.EntryQueryParams,
366372
),
@@ -708,6 +714,7 @@ async def query(
708714
question: str,
709715
use_llm_matching: bool | NotGiven = NOT_GIVEN,
710716
client_metadata: Optional[object] | NotGiven = NOT_GIVEN,
717+
query_metadata: Optional[entry_query_params.QueryMetadata] | NotGiven = NOT_GIVEN,
711718
x_client_library_version: str | NotGiven = NOT_GIVEN,
712719
x_integration_type: str | NotGiven = NOT_GIVEN,
713720
x_source: str | NotGiven = NOT_GIVEN,
@@ -723,6 +730,10 @@ async def query(
723730
Query Entries Route
724731
725732
Args:
733+
client_metadata: Deprecated: Use query_metadata instead
734+
735+
query_metadata: Optional logging data that can be provided by the client.
736+
726737
extra_headers: Send extra headers
727738
728739
extra_query: Add additional query parameters to the request
@@ -750,6 +761,7 @@ async def query(
750761
{
751762
"question": question,
752763
"client_metadata": client_metadata,
764+
"query_metadata": query_metadata,
753765
},
754766
entry_query_params.EntryQueryParams,
755767
),

0 commit comments

Comments
 (0)