Skip to content

release: 0.1.0-alpha.21 #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
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.1.0-alpha.20"
".": "0.1.0-alpha.21"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 44
openapi_spec_hash: 9d81a4b0eca6d3629ba9d5432a65655c
openapi_spec_hash: 0f1841fad65926e7ddfb22dd7a642b46
config_hash: 659f65b6ccf5612986f920f7f9abbcb5
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## 0.1.0-alpha.21 (2025-06-03)

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

### Features

* **api:** api update ([3a52931](https://github.com/cleanlab/codex-python/commit/3a5293161e7313d7c18ec61be1b8e7ee56bad8c9))
* **api:** api update ([7bbf57a](https://github.com/cleanlab/codex-python/commit/7bbf57ae5327ddd85e6729997a4f85b427758258))
* **api:** api update ([40ae04a](https://github.com/cleanlab/codex-python/commit/40ae04a279ba1e2573d17a17e097f71d1347a3d3))


### Bug Fixes

* **docs/api:** remove references to nonexistent types ([7ba3858](https://github.com/cleanlab/codex-python/commit/7ba3858c1c968c093c676478a1c7e5e13b92c12a))


### Chores

* **api:** mark some methods as deprecated ([57f522f](https://github.com/cleanlab/codex-python/commit/57f522fbd04637849146636a83976fe696160a97))
* **ci:** fix installation instructions ([3aa9884](https://github.com/cleanlab/codex-python/commit/3aa98843e0f042734eb5b74ea86c8dcca8636954))
* **docs:** grammar improvements ([428e500](https://github.com/cleanlab/codex-python/commit/428e5001b6b5576f5383c0f2ffd3ad5fe085128a))
* **internal:** codegen related update ([18f661d](https://github.com/cleanlab/codex-python/commit/18f661d21b849f15cbe85ce5063ef0dea877d89f))

## 0.1.0-alpha.20 (2025-05-15)

Full Changelog: [v0.1.0-alpha.19...v0.1.0-alpha.20](https://github.com/cleanlab/codex-python/compare/v0.1.0-alpha.19...v0.1.0-alpha.20)
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ before making any information public.
## Reporting Non-SDK Related Security Issues

If you encounter security issues that are not directly related to SDKs but pertain to the services
or products provided by Codex please follow the respective company's security reporting guidelines.
or products provided by Codex, please follow the respective company's security reporting guidelines.

### Codex Terms and Policies

Please contact [email protected] for any questions or concerns regarding security of our services.
Please contact [email protected] for any questions or concerns regarding the security of our services.

---

Expand Down
6 changes: 2 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ from codex.types import (
ProjectReturnSchema,
ProjectRetrieveResponse,
ProjectListResponse,
ProjectExportResponse,
ProjectIncrementQueriesResponse,
ProjectRetrieveAnalyticsResponse,
ProjectValidateResponse,
)
Expand All @@ -153,8 +151,8 @@ Methods:
- <code title="put /api/projects/{project_id}">client.projects.<a href="./src/codex/resources/projects/projects.py">update</a>(project_id, \*\*<a href="src/codex/types/project_update_params.py">params</a>) -> <a href="./src/codex/types/project_return_schema.py">ProjectReturnSchema</a></code>
- <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>
- <code title="delete /api/projects/{project_id}">client.projects.<a href="./src/codex/resources/projects/projects.py">delete</a>(project_id) -> None</code>
- <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>
- <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>
- <code title="get /api/projects/{project_id}/export">client.projects.<a href="./src/codex/resources/projects/projects.py">export</a>(project_id) -> object</code>
- <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>) -> object</code>
- <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>
- <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>

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 = "codex-sdk"
version = "0.1.0-alpha.20"
version = "0.1.0-alpha.21"
description = "Internal SDK used within cleanlab-codex package. Refer to https://pypi.org/project/cleanlab-codex/ instead."
dynamic = ["readme"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
echo -e "\033[32mInstallation: npm install 'https://pkg.stainless.com/s/codex-python/$SHA'\033[0m"
echo -e "\033[32mInstallation: pip install --pre 'https://pkg.stainless.com/s/codex-python/$SHA'\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion src/codex/_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__ = "codex"
__version__ = "0.1.0-alpha.20" # x-release-please-version
__version__ = "0.1.0-alpha.21" # x-release-please-version
27 changes: 19 additions & 8 deletions src/codex/resources/projects/entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import typing_extensions
from typing import Iterable, Optional

import httpx
Expand Down Expand Up @@ -312,6 +313,7 @@ def publish_draft_answer(
cast_to=Entry,
)

@typing_extensions.deprecated("deprecated")
def query(
self,
project_id: str,
Expand Down Expand Up @@ -707,6 +709,7 @@ async def publish_draft_answer(
cast_to=Entry,
)

@typing_extensions.deprecated("deprecated")
async def query(
self,
project_id: str,
Expand Down Expand Up @@ -839,8 +842,10 @@ def __init__(self, entries: EntriesResource) -> None:
self.publish_draft_answer = to_raw_response_wrapper(
entries.publish_draft_answer,
)
self.query = to_raw_response_wrapper(
entries.query,
self.query = ( # pyright: ignore[reportDeprecated]
to_raw_response_wrapper(
entries.query # pyright: ignore[reportDeprecated],
)
)
self.unpublish_answer = to_raw_response_wrapper(
entries.unpublish_answer,
Expand Down Expand Up @@ -869,8 +874,10 @@ def __init__(self, entries: AsyncEntriesResource) -> None:
self.publish_draft_answer = async_to_raw_response_wrapper(
entries.publish_draft_answer,
)
self.query = async_to_raw_response_wrapper(
entries.query,
self.query = ( # pyright: ignore[reportDeprecated]
async_to_raw_response_wrapper(
entries.query # pyright: ignore[reportDeprecated],
)
)
self.unpublish_answer = async_to_raw_response_wrapper(
entries.unpublish_answer,
Expand Down Expand Up @@ -899,8 +906,10 @@ def __init__(self, entries: EntriesResource) -> None:
self.publish_draft_answer = to_streamed_response_wrapper(
entries.publish_draft_answer,
)
self.query = to_streamed_response_wrapper(
entries.query,
self.query = ( # pyright: ignore[reportDeprecated]
to_streamed_response_wrapper(
entries.query # pyright: ignore[reportDeprecated],
)
)
self.unpublish_answer = to_streamed_response_wrapper(
entries.unpublish_answer,
Expand Down Expand Up @@ -929,8 +938,10 @@ def __init__(self, entries: AsyncEntriesResource) -> None:
self.publish_draft_answer = async_to_streamed_response_wrapper(
entries.publish_draft_answer,
)
self.query = async_to_streamed_response_wrapper(
entries.query,
self.query = ( # pyright: ignore[reportDeprecated]
async_to_streamed_response_wrapper(
entries.query # pyright: ignore[reportDeprecated],
)
)
self.unpublish_answer = async_to_streamed_response_wrapper(
entries.unpublish_answer,
Expand Down
27 changes: 19 additions & 8 deletions src/codex/resources/projects/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import typing_extensions
from typing import Dict, List, Optional
from typing_extensions import Literal

Expand Down Expand Up @@ -330,6 +331,7 @@ def export(
cast_to=object,
)

@typing_extensions.deprecated("deprecated")
def increment_queries(
self,
project_id: str,
Expand Down Expand Up @@ -872,6 +874,7 @@ async def export(
cast_to=object,
)

@typing_extensions.deprecated("deprecated")
async def increment_queries(
self,
project_id: str,
Expand Down Expand Up @@ -1167,8 +1170,10 @@ def __init__(self, projects: ProjectsResource) -> None:
self.export = to_raw_response_wrapper(
projects.export,
)
self.increment_queries = to_raw_response_wrapper(
projects.increment_queries,
self.increment_queries = ( # pyright: ignore[reportDeprecated]
to_raw_response_wrapper(
projects.increment_queries # pyright: ignore[reportDeprecated],
)
)
self.retrieve_analytics = to_raw_response_wrapper(
projects.retrieve_analytics,
Expand Down Expand Up @@ -1212,8 +1217,10 @@ def __init__(self, projects: AsyncProjectsResource) -> None:
self.export = async_to_raw_response_wrapper(
projects.export,
)
self.increment_queries = async_to_raw_response_wrapper(
projects.increment_queries,
self.increment_queries = ( # pyright: ignore[reportDeprecated]
async_to_raw_response_wrapper(
projects.increment_queries # pyright: ignore[reportDeprecated],
)
)
self.retrieve_analytics = async_to_raw_response_wrapper(
projects.retrieve_analytics,
Expand Down Expand Up @@ -1257,8 +1264,10 @@ def __init__(self, projects: ProjectsResource) -> None:
self.export = to_streamed_response_wrapper(
projects.export,
)
self.increment_queries = to_streamed_response_wrapper(
projects.increment_queries,
self.increment_queries = ( # pyright: ignore[reportDeprecated]
to_streamed_response_wrapper(
projects.increment_queries # pyright: ignore[reportDeprecated],
)
)
self.retrieve_analytics = to_streamed_response_wrapper(
projects.retrieve_analytics,
Expand Down Expand Up @@ -1302,8 +1311,10 @@ def __init__(self, projects: AsyncProjectsResource) -> None:
self.export = async_to_streamed_response_wrapper(
projects.export,
)
self.increment_queries = async_to_streamed_response_wrapper(
projects.increment_queries,
self.increment_queries = ( # pyright: ignore[reportDeprecated]
async_to_streamed_response_wrapper(
projects.increment_queries # pyright: ignore[reportDeprecated],
)
)
self.retrieve_analytics = async_to_streamed_response_wrapper(
projects.retrieve_analytics,
Expand Down
Loading