
    ̺i|b                       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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K.J/r/  SSK0J1r1  SSK2J3r3  SSK4J5r5  SSK6J7r7  SS/r8 " S S\ 5      r9 " 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)	BodyOmitQueryHeadersNotGiven	FileTypesSequenceNotStromit	not_given)is_givenextract_filesmaybe_transformstrip_not_givendeepcopy_minimal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    g/var/www/piano.thomer.com/venv/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
)VersionsWithStreamingResponser1   s    r3   with_streaming_response Versions.with_streaming_response8   s     -T22r6   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5      n[        [        [        [        [        4   U5      SS//S9n	S	US
'   U R                  SU S3[        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     r3   	<genexpr>"Versions.create.<locals>.<genexpr>j        5Lec!ffe   skills-2025-10-02r=   <array>pathsmultipart/form-dataContent-Type/v1/skills//versions?beta=truer?   r@   rA   rB   bodyr=   optionscast_to)
ValueErrorr   r   joinr   r   r   r   r   r   rK   object_postr   r$   VersionCreateParamsr"   r'   
r2   skill_idr=   r>   r?   r@   rA   rB   r]   extracted_filess
             r3   createVersions.createA   s   H VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX% 01'WS&[-A4(HRY[dQePfg )>n%zz(#67 '<'P'PQ!(+Q[ *  
 	
r6   r>   r?   r@   rA   rB   c          
     b   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U SU S	3[        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
rE   6Expected a non-empty value for `version` but received rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   $Versions.retrieve.<locals>.<genexpr>   rQ   rR   rS   rY   
/versions/
?beta=truer[   r^   r_   	r`   r   r   ra   r   r   _getr"   r)   r2   versionrf   r>   r?   r@   rA   rB   s           r3   retrieveVersions.retrieve   s    F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXyy(:gYjA(+Q[ ,  
 	
r6   limitpager>   r?   r@   rA   rB   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3[        [           [        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
rE   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO    Versions.list.<locals>.<genexpr>   rQ   rR   rS   rY   rZ   rz   r{   r?   r@   rA   rB   queryr{   r^   model)r`   r   r   ra   r   r   _get_api_listr   r&   r"   r   r#   VersionListParams	r2   rf   rz   r{   r>   r?   r@   rA   rB   s	            r3   listVersions.list   s    L VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!(#67 34(+'%%!& $ (99 &! " 
 	
r6   c          
     b   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U SU S	3[        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
rE   rm   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   "Versions.delete.<locals>.<genexpr>,  rQ   rR   rS   rY   rp   rq   r[   rr   	r`   r   r   ra   r   r   _deleter"   r(   ru   s           r3   deleteVersions.delete  s    F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX||(:gYjA(+Q[ *  
 	
r6    )returnr0   )r   r9   rf   rK   r=   z*Optional[SequenceNotStr[FileTypes]] | Omitr>   List[AnthropicBetaParam] | Omitr?   Headers | Noner@   Query | NonerA   Body | NonerB   'float | httpx.Timeout | None | NotGivenr   r'   rv   rK   rf   rK   r>   r   r?   r   r@   r   rA   r   rB   r   r   r)   )rf   rK   rz   Optional[int] | Omitr{   Optional[str] | Omitr>   r   r?   r   r@   r   rA   r   rB   r   r   z#SyncPageCursor[VersionListResponse]rv   rK   rf   rK   r>   r   r?   r   r@   r   rA   r   rB   r   r   r(   __name__
__module____qualname____firstlineno__r   r4   r:   r   r   rh   rw   r   r   __static_attributes__r   r6   r3   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
r6   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+   i=  c                    [        U 5      $ r/   )AsyncVersionsWithRawResponser1   s    r3   r4   AsyncVersions.with_raw_response>  s     ,D11r6   c                    [        U 5      $ r8   )"AsyncVersionsWithStreamingResponser1   s    r3   r:   %AsyncVersions.with_streaming_responseH  s     2$77r6   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5      n[        [        [        [        [        4   U5      SS//S9n	S	US
'   U R                  SU S3[        U[        R                  5      I Sh  vN U	[!        XEXgS9["        S9I Sh  vN $  N N7f)rD   rE   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   'AsyncVersions.create.<locals>.<genexpr>z  rQ   rR   rS   r=   rT   rU   rW   rX   rY   rZ   Nr[   r\   )r`   r   r   ra   r   r   r   r   r   r   rK   rb   rc   r   r$   rd   r"   r'   re   s
             r3   rh   AsyncVersions.createQ  s)    H VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX% 01'WS&[-A4(HRY[dQePfg )>n%ZZ(#67,T3H3\3\]]!(+Q[ *   
 
 	
]
s$   CD C>
!D9D :D Drj   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U SU S	3[        XEXgS
9[        S9I Sh  vN $  N7f)rl   rE   rm   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   )AsyncVersions.retrieve.<locals>.<genexpr>  rQ   rR   rS   rY   rp   rq   r[   rr   Nrs   ru   s           r3   rw   AsyncVersions.retrieve  s     F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXYY(:gYjA(+Q[ ,  
 
 	
 
   B4B=6B;7B=ry   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3[        [           [        UUUU[        UUS.[        R                  5      S	9[        S
9$ )r}   rE   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   %AsyncVersions.list.<locals>.<genexpr>  rQ   rR   rS   rY   rZ   r   r   r   )r`   r   r   ra   r   r   r   r    r&   r"   r   r#   r   r   s	            r3   r   AsyncVersions.list  s    L VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!(#67 !45(+'%%!& $ (99 &! " 
 	
r6   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U SU S	3[        XEXgS
9[        S9I Sh  vN $  N7f)r   rE   rm   rF   rG   c              3  8   #    U  H  n[        U5      v   M     g 7frI   rJ   rL   s     r3   rO   'AsyncVersions.delete.<locals>.<genexpr><  rQ   rR   rS   rY   rp   rq   r[   rr   Nr   ru   s           r3   r   AsyncVersions.delete  s     F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX\\(:gYjA(+Q[ * " 
 
 	
 
r   r   )r   r   )r   r   r   r   )rf   rK   rz   r   r{   r   r>   r   r?   r   r@   r   rA   r   rB   r   r   zIAsyncPaginator[VersionListResponse, AsyncPageCursor[VersionListResponse]]r   r   r   r6   r3   r+   r+   =  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
r6   c                      \ rS rSrSS jrSrg)r0   iM  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 rI   )	_versionsr
   to_raw_response_wrapperrh   rw   r   r   r2   versionss     r3   __init__ VersionsWithRawResponse.__init__N  ss    !&>>OO
 )@@
 %<<MM
	 '>>OO
r6   r   rh   r   r   rw   Nr   r*   r   Noner   r   r   r   r   r   r   r6   r3   r0   r0   M      
r6   r0   c                      \ rS rSrSS jrSrg)r   i_  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 rI   )r   r
   async_to_raw_response_wrapperrh   rw   r   r   r   s     r3   r   %AsyncVersionsWithRawResponse.__init__`  ss    !&DDOO
 )FF
 %BBMM
	 'DDOO
r6   r   Nr   r+   r   r   r   r   r6   r3   r   r   _  r   r6   r   c                      \ rS rSrSS jrSrg)r9   iq  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g rI   )r   r   rh   rw   r   r   r   s     r3   r   &VersionsWithStreamingResponse.__init__r  s[    !2OO
 5
 1MM
	 3OO
r6   r   Nr   r   r   r6   r3   r9   r9   q  r   r6   r9   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 rI   )r   r   rh   rw   r   r   r   s     r3   r   +AsyncVersionsWithStreamingResponse.__init__  s[    !8OO
 ;
 7MM
	 9OO
r6   r   Nr   r   r   r6   r3   r   r     r   r6   r   )?
__future__r   typingr   r   r   r   	itertoolsr   httpx r
   _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+   r0   r   r9   r   r   r6   r3   <module>r      s    # 0 0   !
 
 
  ( ; Z : A L = K O O S
'M
 M
`M
$ M
`
 
$
 
$
 
$
 
r6   