
    _j	d                       S SK Jr  S SKJrJrJrJr  S SKJr  S SK	r	SSK
Jr  SSKJr  SSKJrJrJrJrJrJrJrJrJr  SS	KJrJrJrJrJrJr  SS
KJ r   SSK!J"r"J#r#  SSK$J%r%J&r&  SSK'J(r(J)r)  SSK*J+r+J,r,  SSK-J.r.J/r/  SSK0J1r1  SSK2J3r3  SSK4J5r5  SSK6J7r7  SSK8J9r9  SS/r: " S S\"5      r; " S S\#5      r< " S S5      r= " S S5      r> " S S5      r? " S S 5      r@g)!    )annotations)ListMappingOptionalcast)chainN   )_legacy_response)deepcopy_with_paths)	BodyOmitQueryHeadersNotGiven	FileTypesSequenceNotStromit	not_given)is_givenextract_filespath_templatemaybe_transformstrip_not_givenasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncPageCursorAsyncPageCursor)AsyncPaginatormake_request_options)version_list_paramsversion_create_params)AnthropicBetaParam)VersionListResponse)VersionCreateResponse)VersionDeleteResponse)VersionRetrieveResponseVersionsAsyncVersionsc                  &   \ rS rSr\SS j5       r\SS j5       r\\SSS\S.               SS jjr	\SSS\S.               SS jjr
\\\SSS\S	.                 SS
 jjr\SSS\S.               SS jjrSrg)r+   '   c                    [        U 5      $ z
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
)VersionsWithRawResponseselfs    ]/home/rurouni/.local/lib/python3.13/site-packages/anthropic/resources/beta/skills/versions.pywith_raw_responseVersions.with_raw_response(   s     't,,    c                    [        U 5      $ z
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/anthropics/anthropic-sdk-python#with_streaming_response
)VersionsWithStreamingResponser2   s    r4   with_streaming_response Versions.with_streaming_response2   s     -T22r7   Nfilesbetasextra_headersextra_query
extra_bodytimeoutc                  U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 En[        SU0SS//5      n[        [        [        [        [        4   U5      SS//S9n	S	US
'   U R                  [        SUS9[        U[        R                   5      U	[#        XEXgS9[$        S9$ )j  
Create Skill Version

Args:
  skill_id: Unique identifier for the skill.

      The format and length of IDs may change over time.

  files: Files to upload for the skill.

      All files must be in the same top-level directory and must include a SKILL.md
      file at the root of that directory.

  betas: Optional header to specify the beta version(s) you want to use.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
7Expected a non-empty value for `skill_id` but received anthropic-beta,c              3  8   #    U  H  n[        U5      v   M     g 7fNstr.0es     r4   	<genexpr>"Versions.create.<locals>.<genexpr>d        5Lec!ffe   skills-2025-10-02r>   <array>pathsmultipart/form-dataContent-Type(/v1/skills/{skill_id}/versions?beta=trueskill_idr@   rA   rB   rC   bodyr>   optionscast_to)
ValueErrorr   r   joinr   r   r   r   r   r   rL   object_postr   r   r%   VersionCreateParamsr#   r(   
r3   r\   r>   r?   r@   rA   rB   rC   r_   extracted_filess
             r4   createVersions.create;   s   H VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX"GU#3w	6J5KL'WS&[-A4(HRY[dQePfg )>n%zzDxX '<'P'PQ!(+Q[ *  
 	
r7   r?   r@   rA   rB   rC   c          
     d   U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SX!S9[        XEXgS	9[        S
9$ )E  
Get Skill Version

Args:
  skill_id: Unique identifier for the skill.

      The format and length of IDs may change over time.

  version: Version identifier for the skill.

      Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").

  betas: Optional header to specify the beta version(s) you want to use.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rF   6Expected a non-empty value for `version` but received rG   rH   c              3  8   #    U  H  n[        U5      v   M     g 7frJ   rK   rM   s     r4   rP   $Versions.retrieve.<locals>.<genexpr>   rR   rS   rT   2/v1/skills/{skill_id}/versions/{version}?beta=truer\   versionr]   r`   ra   
rb   r   r   rc   r   r   _getr   r#   r*   r3   rs   r\   r?   r@   rA   rB   rC   s           r4   retrieveVersions.retrieve|   s    F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXyyNYas(+Q[ ,  
 	
r7   limitpager?   r@   rA   rB   rC   c                  U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        [           [        UUUU[        UUS.[        R                  5      S	9[        S
9$ )p  
List Skill Versions

Args:
  skill_id: Unique identifier for the skill.

      The format and length of IDs may change over time.

  limit: Number of items to return per page.

      Defaults to `20`. Ranges from `1` to `1000`.

  page: Optionally set to the `next_page` token from the previous response.

  betas: Optional header to specify the beta version(s) you want to use.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rF   rG   rH   c              3  8   #    U  H  n[        U5      v   M     g 7frJ   rK   rM   s     r4   rP    Versions.list.<locals>.<genexpr>   rR   rS   rT   rZ   r[   r{   r|   r@   rA   rB   rC   queryr|   r`   model)rb   r   r   rc   r   r   _get_api_listr   r    r'   r#   r   r$   VersionListParams	r3   r\   r{   r|   r?   r@   rA   rB   rC   s	            r4   listVersions.list   s    L VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!DxX 34(+'%%!& $ (99 &! " 
 	
r7   c          
     d   U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SX!S9[        XEXgS	9[        S
9$ )H  
Delete Skill Version

Args:
  skill_id: Unique identifier for the skill.

      The format and length of IDs may change over time.

  version: Version identifier for the skill.

      Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").

  betas: Optional header to specify the beta version(s) you want to use.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rF   rn   rG   rH   c              3  8   #    U  H  n[        U5      v   M     g 7frJ   rK   rM   s     r4   rP   "Versions.delete.<locals>.<genexpr>&  rR   rS   rT   rq   rr   r]   rt   
rb   r   r   rc   r   r   _deleter   r#   r)   rw   s           r4   deleteVersions.delete   s    F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX||NYas(+Q[ *  
 	
r7    )returnr1   )r   r:   r\   rL   r>   z*Optional[SequenceNotStr[FileTypes]] | Omitr?   List[AnthropicBetaParam] | Omitr@   Headers | NonerA   Query | NonerB   Body | NonerC   'float | httpx.Timeout | None | NotGivenr   r(   rs   rL   r\   rL   r?   r   r@   r   rA   r   rB   r   rC   r   r   r*   )r\   rL   r{   Optional[int] | Omitr|   Optional[str] | Omitr?   r   r@   r   rA   r   rB   r   rC   r   r   z#SyncPageCursor[VersionListResponse]rs   rL   r\   rL   r?   r   r@   r   rA   r   rB   r   rC   r   r   r)   __name__
__module____qualname____firstlineno__r   r5   r;   r   r   ri   rx   r   r   __static_attributes__r   r7   r4   r+   r+   '   s   - - 3 3 =A15 )-$("&;D?
?
 :	?

 /?
 &?
 "?
  ?
 9?
 
?
L 26 )-$("&;D8
8
 	8

 /8
 &8
 "8
  8
 98
 
!8
| '+%)15 )-$("&;DD
D
 $	D

 #D
 /D
 &D
 "D
  D
 9D
 
-D
V 26 )-$("&;D8
8
 	8

 /8
 &8
 "8
  8
 98
 
8
 8
r7   c                  &   \ rS rSr\SS j5       r\SS j5       r\\SSS\S.               SS jjr	\SSS\S.               SS jjr
\\\SSS\S	.                 SS
 jjr\SSS\S.               SS jjrSrg)r,   i7  c                    [        U 5      $ r0   )AsyncVersionsWithRawResponser2   s    r4   r5   AsyncVersions.with_raw_response8  s     ,D11r7   c                    [        U 5      $ r9   )"AsyncVersionsWithStreamingResponser2   s    r4   r;   %AsyncVersions.with_streaming_responseB  s     2$77r7   Nr=   c                 #    U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 En[        SU0SS//5      n[        [        [        [        [        4   U5      SS//S9n	S	US
'   U R                  [        SUS9[        U[        R                   5      I Sh  vN U	[#        XEXgS9[$        S9I Sh  vN $  N N7f)rE   rF   rG   rH   c              3  8   #    U  H  n[        U5      v   M     g 7frJ   rK   rM   s     r4   rP   'AsyncVersions.create.<locals>.<genexpr>t  rR   rS   rT   r>   rU   rV   rX   rY   rZ   r[   Nr]   r^   )rb   r   r   rc   r   r   r   r   r   r   rL   rd   re   r   r   r%   rf   r#   r(   rg   s
             r4   ri   AsyncVersions.createK  s1    H VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX"GU#3w	6J5KL'WS&[-A4(HRY[dQePfg )>n%ZZDxX,T3H3\3\]]!(+Q[ *   
 
 	
]
s$   C&D
(D
)D
DD
D
rk   c          
       #    U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SX!S9[        XEXgS	9[        S
9I Sh  vN $  N7f)rm   rF   rn   rG   rH   c              3  8   #    U  H  n[        U5      v   M     g 7frJ   rK   rM   s     r4   rP   )AsyncVersions.retrieve.<locals>.<genexpr>  rR   rS   rT   rq   rr   r]   rt   Nru   rw   s           r4   rx   AsyncVersions.retrieve  s     F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXYYNYas(+Q[ ,  
 
 	
 
   B5B>7B<8B>rz   c                  U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        [           [        UUUU[        UUS.[        R                  5      S	9[        S
9$ )r~   rF   rG   rH   c              3  8   #    U  H  n[        U5      v   M     g 7frJ   rK   rM   s     r4   rP   %AsyncVersions.list.<locals>.<genexpr>  rR   rS   rT   rZ   r[   r   r   r   )rb   r   r   rc   r   r   r   r   r!   r'   r#   r   r$   r   r   s	            r4   r   AsyncVersions.list  s    L VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!DxX !45(+'%%!& $ (99 &! " 
 	
r7   c          
       #    U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SX!S9[        XEXgS	9[        S
9I Sh  vN $  N7f)r   rF   rn   rG   rH   c              3  8   #    U  H  n[        U5      v   M     g 7frJ   rK   rM   s     r4   rP   'AsyncVersions.delete.<locals>.<genexpr>6  rR   rS   rT   rq   rr   r]   rt   Nr   rw   s           r4   r   AsyncVersions.delete  s     F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX\\NYas(+Q[ * " 
 
 	
 
r   r   )r   r   )r   r   r   r   )r\   rL   r{   r   r|   r   r?   r   r@   r   rA   r   rB   r   rC   r   r   zIAsyncPaginator[VersionListResponse, AsyncPageCursor[VersionListResponse]]r   r   r   r7   r4   r,   r,   7  s   2 2 8 8 =A15 )-$("&;D?
?
 :	?

 /?
 &?
 "?
  ?
 9?
 
?
L 26 )-$("&;D8
8
 	8

 /8
 &8
 "8
  8
 98
 
!8
| '+%)15 )-$("&;DD
D
 $	D

 #D
 /D
 &D
 "D
  D
 9D
 
SD
V 26 )-$("&;D8
8
 	8

 /8
 &8
 "8
  8
 98
 
8
 8
r7   c                      \ rS rSrSS jrSrg)r1   iG  c                8   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        g rJ   )	_versionsr
   to_raw_response_wrapperri   rx   r   r   r3   versionss     r4   __init__ VersionsWithRawResponse.__init__H  ss    !&>>OO
 )@@
 %<<MM
	 '>>OO
r7   r   ri   r   r   rx   Nr   r+   r   Noner   r   r   r   r   r   r   r7   r4   r1   r1   G      
r7   r1   c                      \ rS rSrSS jrSrg)r   iY  c                8   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        g rJ   )r   r
   async_to_raw_response_wrapperri   rx   r   r   r   s     r4   r   %AsyncVersionsWithRawResponse.__init__Z  ss    !&DDOO
 )FF
 %BBMM
	 'DDOO
r7   r   Nr   r,   r   r   r   r   r7   r4   r   r   Y  r   r7   r   c                      \ rS rSrSS jrSrg)r:   ik  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g rJ   )r   r   ri   rx   r   r   r   s     r4   r   &VersionsWithStreamingResponse.__init__l  s[    !2OO
 5
 1MM
	 3OO
r7   r   Nr   r   r   r7   r4   r:   r:   k  r   r7   r:   c                      \ rS rSrSS jrSrg)r   i}  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g rJ   )r   r   ri   rx   r   r   r   s     r4   r   +AsyncVersionsWithStreamingResponse.__init__~  s[    !8OO
 ;
 7MM
	 9OO
r7   r   Nr   r   r   r7   r4   r   r   }  r   r7   r   )A
__future__r   typingr   r   r   r   	itertoolsr   httpx r
   _filesr   _typesr   r   r   r   r   r   r   r   r   _utilsr   r   r   r   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr    r!   _base_clientr"   r#   types.beta.skillsr$   r%   types.anthropic_beta_paramr&   'types.beta.skills.version_list_responser'   )types.beta.skills.version_create_responser(   )types.beta.skills.version_delete_responser)   +types.beta.skills.version_retrieve_responser*   __all__r+   r,   r1   r   r:   r   r   r7   r4   <module>r      s    # 0 0   ! *
 
 
 w v ' ; Z : A L = K O O S
'M
 M
`M
$ M
`
 
$
 
$
 
$
 
r7   