Skip to content

Commit 0a636fa

Browse files
feat(api): api update
1 parent 8489bc7 commit 0a636fa

File tree

8 files changed

+23
-1
lines changed

8 files changed

+23
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 44
2-
openapi_spec_hash: ded11525d5fce121fac9be1f434c42af
2+
openapi_spec_hash: b342ef2514a2e44178169d241aff9273
33
config_hash: 659f65b6ccf5612986f920f7f9abbcb5

src/codex/resources/projects/projects.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def create(
9898
config: project_create_params.Config,
9999
name: str,
100100
organization_id: str,
101+
auto_clustering_enabled: bool | NotGiven = NOT_GIVEN,
101102
description: Optional[str] | NotGiven = NOT_GIVEN,
102103
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
103104
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -125,6 +126,7 @@ def create(
125126
"config": config,
126127
"name": name,
127128
"organization_id": organization_id,
129+
"auto_clustering_enabled": auto_clustering_enabled,
128130
"description": description,
129131
},
130132
project_create_params.ProjectCreateParams,
@@ -174,6 +176,7 @@ def update(
174176
*,
175177
config: project_update_params.Config,
176178
name: str,
179+
auto_clustering_enabled: bool | NotGiven = NOT_GIVEN,
177180
description: Optional[str] | NotGiven = NOT_GIVEN,
178181
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
179182
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -202,6 +205,7 @@ def update(
202205
{
203206
"config": config,
204207
"name": name,
208+
"auto_clustering_enabled": auto_clustering_enabled,
205209
"description": description,
206210
},
207211
project_update_params.ProjectUpdateParams,
@@ -641,6 +645,7 @@ async def create(
641645
config: project_create_params.Config,
642646
name: str,
643647
organization_id: str,
648+
auto_clustering_enabled: bool | NotGiven = NOT_GIVEN,
644649
description: Optional[str] | NotGiven = NOT_GIVEN,
645650
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
646651
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -668,6 +673,7 @@ async def create(
668673
"config": config,
669674
"name": name,
670675
"organization_id": organization_id,
676+
"auto_clustering_enabled": auto_clustering_enabled,
671677
"description": description,
672678
},
673679
project_create_params.ProjectCreateParams,
@@ -717,6 +723,7 @@ async def update(
717723
*,
718724
config: project_update_params.Config,
719725
name: str,
726+
auto_clustering_enabled: bool | NotGiven = NOT_GIVEN,
720727
description: Optional[str] | NotGiven = NOT_GIVEN,
721728
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
722729
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -745,6 +752,7 @@ async def update(
745752
{
746753
"config": config,
747754
"name": name,
755+
"auto_clustering_enabled": auto_clustering_enabled,
748756
"description": description,
749757
},
750758
project_update_params.ProjectUpdateParams,

src/codex/types/project_create_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class ProjectCreateParams(TypedDict, total=False):
2727

2828
organization_id: Required[str]
2929

30+
auto_clustering_enabled: bool
31+
3032
description: Optional[str]
3133

3234

src/codex/types/project_list_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ class Project(BaseModel):
323323

324324
updated_at: datetime
325325

326+
auto_clustering_enabled: Optional[bool] = None
327+
326328
description: Optional[str] = None
327329

328330
unanswered_entries_count: Optional[int] = None

src/codex/types/project_retrieve_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ class ProjectRetrieveResponse(BaseModel):
322322

323323
updated_at: datetime
324324

325+
auto_clustering_enabled: Optional[bool] = None
326+
325327
custom_rank_enabled: Optional[bool] = None
326328

327329
description: Optional[str] = None

src/codex/types/project_return_schema.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,6 @@ class ProjectReturnSchema(BaseModel):
322322

323323
updated_at: datetime
324324

325+
auto_clustering_enabled: Optional[bool] = None
326+
325327
description: Optional[str] = None

src/codex/types/project_update_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class ProjectUpdateParams(TypedDict, total=False):
2525

2626
name: Required[str]
2727

28+
auto_clustering_enabled: bool
29+
2830
description: Optional[str]
2931

3032

tests/api_resources/test_projects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def test_method_create_with_all_params(self, client: Codex) -> None:
117117
},
118118
name="name",
119119
organization_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
120+
auto_clustering_enabled=True,
120121
description="description",
121122
)
122123
assert_matches_type(ProjectReturnSchema, project, path=["response"])
@@ -285,6 +286,7 @@ def test_method_update_with_all_params(self, client: Codex) -> None:
285286
"upper_llm_match_distance_threshold": 0,
286287
},
287288
name="name",
289+
auto_clustering_enabled=True,
288290
description="description",
289291
)
290292
assert_matches_type(ProjectReturnSchema, project, path=["response"])
@@ -753,6 +755,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCodex) ->
753755
},
754756
name="name",
755757
organization_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
758+
auto_clustering_enabled=True,
756759
description="description",
757760
)
758761
assert_matches_type(ProjectReturnSchema, project, path=["response"])
@@ -921,6 +924,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCodex) ->
921924
"upper_llm_match_distance_threshold": 0,
922925
},
923926
name="name",
927+
auto_clustering_enabled=True,
924928
description="description",
925929
)
926930
assert_matches_type(ProjectReturnSchema, project, path=["response"])

0 commit comments

Comments
 (0)