Skip to content

Commit b7c547e

Browse files
feat(api): api update (#102)
1 parent 6dc925a commit b7c547e

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 36
2-
openapi_spec_hash: 6a5cfa54c19b354978b1654c152b0431
2+
openapi_spec_hash: 1850a850b7e27992c6e47190db9add88
33
config_hash: adbedb6317fca6f566f54564cc341846

src/codex/resources/projects/clusters.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List
5+
from typing import List, Optional
66
from typing_extensions import Literal
77

88
import httpx
@@ -53,7 +53,7 @@ def list(
5353
limit: int | NotGiven = NOT_GIVEN,
5454
offset: int | NotGiven = NOT_GIVEN,
5555
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
56-
sort: Literal["created_at", "answered_at", "cluster_frequency_count"] | NotGiven = NOT_GIVEN,
56+
sort: Optional[Literal["created_at", "answered_at", "cluster_frequency_count"]] | NotGiven = NOT_GIVEN,
5757
states: List[Literal["unanswered", "draft", "published", "published_with_draft"]] | NotGiven = NOT_GIVEN,
5858
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5959
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -164,7 +164,7 @@ def list(
164164
limit: int | NotGiven = NOT_GIVEN,
165165
offset: int | NotGiven = NOT_GIVEN,
166166
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
167-
sort: Literal["created_at", "answered_at", "cluster_frequency_count"] | NotGiven = NOT_GIVEN,
167+
sort: Optional[Literal["created_at", "answered_at", "cluster_frequency_count"]] | NotGiven = NOT_GIVEN,
168168
states: List[Literal["unanswered", "draft", "published", "published_with_draft"]] | NotGiven = NOT_GIVEN,
169169
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
170170
# The extra values given here take precedence over values defined on the client or passed to this method.

src/codex/types/projects/cluster_list_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List
5+
from typing import List, Optional
66
from typing_extensions import Literal, TypedDict
77

88
__all__ = ["ClusterListParams"]
@@ -15,6 +15,6 @@ class ClusterListParams(TypedDict, total=False):
1515

1616
order: Literal["asc", "desc"]
1717

18-
sort: Literal["created_at", "answered_at", "cluster_frequency_count"]
18+
sort: Optional[Literal["created_at", "answered_at", "cluster_frequency_count"]]
1919

2020
states: List[Literal["unanswered", "draft", "published", "published_with_draft"]]

src/codex/types/projects/entry.py

+3
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ class Entry(BaseModel):
2929
draft_answer: Optional[str] = None
3030

3131
draft_answer_last_edited: Optional[datetime] = None
32+
33+
frequency_count: Optional[int] = None
34+
"""number of times the entry matched for a /query request"""

0 commit comments

Comments
 (0)