33from  __future__ import  annotations 
44
55import  os 
6- from  typing  import  Any , Dict , Union ,  Mapping , cast 
6+ from  typing  import  Any , Dict , Mapping , cast 
77from  typing_extensions  import  Self , Literal , override 
88
99import  httpx 
1010
1111from  . import  _exceptions 
1212from  ._qs  import  Querystring 
1313from  ._types  import  (
14-     NOT_GIVEN ,
1514    Omit ,
1615    Headers ,
1716    Timeout ,
1817    NotGiven ,
1918    Transport ,
2019    ProxiesTypes ,
2120    RequestOptions ,
21+     not_given ,
2222)
2323from  ._utils  import  is_given , get_async_library 
2424from  ._version  import  __version__ 
25- from  .resources  import  tlm ,  health 
25+ from  .resources  import  health 
2626from  ._streaming  import  Stream  as  Stream , AsyncStream  as  AsyncStream 
2727from  ._exceptions  import  APIStatusError 
2828from  ._base_client  import  (
@@ -58,7 +58,6 @@ class Codex(SyncAPIClient):
5858    organizations : organizations .OrganizationsResource 
5959    users : users .UsersResource 
6060    projects : projects .ProjectsResource 
61-     tlm : tlm .TlmResource 
6261    with_raw_response : CodexWithRawResponse 
6362    with_streaming_response : CodexWithStreamedResponse 
6463
@@ -75,9 +74,9 @@ def __init__(
7574        auth_token : str  |  None  =  None ,
7675        api_key : str  |  None  =  None ,
7776        access_key : str  |  None  =  None ,
78-         environment : Literal ["production" , "staging" , "local" ] |  NotGiven  =  NOT_GIVEN ,
79-         base_url : str  |  httpx .URL  |  None  |  NotGiven  =  NOT_GIVEN ,
80-         timeout : Union [ float ,  Timeout ,  None ,  NotGiven ]  =  NOT_GIVEN ,
77+         environment : Literal ["production" , "staging" , "local" ] |  NotGiven  =  not_given ,
78+         base_url : str  |  httpx .URL  |  None  |  NotGiven  =  not_given ,
79+         timeout : float   |   Timeout   |   None   |   NotGiven  =  not_given ,
8180        max_retries : int  =  DEFAULT_MAX_RETRIES ,
8281        default_headers : Mapping [str , str ] |  None  =  None ,
8382        default_query : Mapping [str , object ] |  None  =  None ,
@@ -143,7 +142,6 @@ def __init__(
143142        self .organizations  =  organizations .OrganizationsResource (self )
144143        self .users  =  users .UsersResource (self )
145144        self .projects  =  projects .ProjectsResource (self )
146-         self .tlm  =  tlm .TlmResource (self )
147145        self .with_raw_response  =  CodexWithRawResponse (self )
148146        self .with_streaming_response  =  CodexWithStreamedResponse (self )
149147
@@ -216,9 +214,9 @@ def copy(
216214        access_key : str  |  None  =  None ,
217215        environment : Literal ["production" , "staging" , "local" ] |  None  =  None ,
218216        base_url : str  |  httpx .URL  |  None  =  None ,
219-         timeout : float  |  Timeout  |  None  |  NotGiven  =  NOT_GIVEN ,
217+         timeout : float  |  Timeout  |  None  |  NotGiven  =  not_given ,
220218        http_client : httpx .Client  |  None  =  None ,
221-         max_retries : int  |  NotGiven  =  NOT_GIVEN ,
219+         max_retries : int  |  NotGiven  =  not_given ,
222220        default_headers : Mapping [str , str ] |  None  =  None ,
223221        set_default_headers : Mapping [str , str ] |  None  =  None ,
224222        default_query : Mapping [str , object ] |  None  =  None ,
@@ -304,7 +302,6 @@ class AsyncCodex(AsyncAPIClient):
304302    organizations : organizations .AsyncOrganizationsResource 
305303    users : users .AsyncUsersResource 
306304    projects : projects .AsyncProjectsResource 
307-     tlm : tlm .AsyncTlmResource 
308305    with_raw_response : AsyncCodexWithRawResponse 
309306    with_streaming_response : AsyncCodexWithStreamedResponse 
310307
@@ -321,9 +318,9 @@ def __init__(
321318        auth_token : str  |  None  =  None ,
322319        api_key : str  |  None  =  None ,
323320        access_key : str  |  None  =  None ,
324-         environment : Literal ["production" , "staging" , "local" ] |  NotGiven  =  NOT_GIVEN ,
325-         base_url : str  |  httpx .URL  |  None  |  NotGiven  =  NOT_GIVEN ,
326-         timeout : Union [ float ,  Timeout ,  None ,  NotGiven ]  =  NOT_GIVEN ,
321+         environment : Literal ["production" , "staging" , "local" ] |  NotGiven  =  not_given ,
322+         base_url : str  |  httpx .URL  |  None  |  NotGiven  =  not_given ,
323+         timeout : float   |   Timeout   |   None   |   NotGiven  =  not_given ,
327324        max_retries : int  =  DEFAULT_MAX_RETRIES ,
328325        default_headers : Mapping [str , str ] |  None  =  None ,
329326        default_query : Mapping [str , object ] |  None  =  None ,
@@ -389,7 +386,6 @@ def __init__(
389386        self .organizations  =  organizations .AsyncOrganizationsResource (self )
390387        self .users  =  users .AsyncUsersResource (self )
391388        self .projects  =  projects .AsyncProjectsResource (self )
392-         self .tlm  =  tlm .AsyncTlmResource (self )
393389        self .with_raw_response  =  AsyncCodexWithRawResponse (self )
394390        self .with_streaming_response  =  AsyncCodexWithStreamedResponse (self )
395391
@@ -462,9 +458,9 @@ def copy(
462458        access_key : str  |  None  =  None ,
463459        environment : Literal ["production" , "staging" , "local" ] |  None  =  None ,
464460        base_url : str  |  httpx .URL  |  None  =  None ,
465-         timeout : float  |  Timeout  |  None  |  NotGiven  =  NOT_GIVEN ,
461+         timeout : float  |  Timeout  |  None  |  NotGiven  =  not_given ,
466462        http_client : httpx .AsyncClient  |  None  =  None ,
467-         max_retries : int  |  NotGiven  =  NOT_GIVEN ,
463+         max_retries : int  |  NotGiven  =  not_given ,
468464        default_headers : Mapping [str , str ] |  None  =  None ,
469465        set_default_headers : Mapping [str , str ] |  None  =  None ,
470466        default_query : Mapping [str , object ] |  None  =  None ,
@@ -551,7 +547,6 @@ def __init__(self, client: Codex) -> None:
551547        self .organizations  =  organizations .OrganizationsResourceWithRawResponse (client .organizations )
552548        self .users  =  users .UsersResourceWithRawResponse (client .users )
553549        self .projects  =  projects .ProjectsResourceWithRawResponse (client .projects )
554-         self .tlm  =  tlm .TlmResourceWithRawResponse (client .tlm )
555550
556551
557552class  AsyncCodexWithRawResponse :
@@ -560,7 +555,6 @@ def __init__(self, client: AsyncCodex) -> None:
560555        self .organizations  =  organizations .AsyncOrganizationsResourceWithRawResponse (client .organizations )
561556        self .users  =  users .AsyncUsersResourceWithRawResponse (client .users )
562557        self .projects  =  projects .AsyncProjectsResourceWithRawResponse (client .projects )
563-         self .tlm  =  tlm .AsyncTlmResourceWithRawResponse (client .tlm )
564558
565559
566560class  CodexWithStreamedResponse :
@@ -569,7 +563,6 @@ def __init__(self, client: Codex) -> None:
569563        self .organizations  =  organizations .OrganizationsResourceWithStreamingResponse (client .organizations )
570564        self .users  =  users .UsersResourceWithStreamingResponse (client .users )
571565        self .projects  =  projects .ProjectsResourceWithStreamingResponse (client .projects )
572-         self .tlm  =  tlm .TlmResourceWithStreamingResponse (client .tlm )
573566
574567
575568class  AsyncCodexWithStreamedResponse :
@@ -578,7 +571,6 @@ def __init__(self, client: AsyncCodex) -> None:
578571        self .organizations  =  organizations .AsyncOrganizationsResourceWithStreamingResponse (client .organizations )
579572        self .users  =  users .AsyncUsersResourceWithStreamingResponse (client .users )
580573        self .projects  =  projects .AsyncProjectsResourceWithStreamingResponse (client .projects )
581-         self .tlm  =  tlm .AsyncTlmResourceWithStreamingResponse (client .tlm )
582574
583575
584576Client  =  Codex 
0 commit comments