
    b\jz                       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&J'r'J(r(J)r)J*r*J+r+J,r,J-r-J.r.  SSK/J0r0J1r1  SSK2J3r3J4r4  SSK5J6r6J7r7  SSK8J9r9  SSK:J;r;  SSK<J=r=  SSK>J?r?  SSK@JArA  SS/rB " S S\"5      rC " S S\#5      rD " S S5      rE " S S5      rF " S S5      rG " S S 5      rHg)!    )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)
BinaryAPIResponseAsyncBinaryAPIResponseStreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponseto_streamed_response_wrapperto_custom_raw_response_wrapper"async_to_streamed_response_wrapper#to_custom_streamed_response_wrapper$async_to_custom_raw_response_wrapper)async_to_custom_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SS\S.               SS jjrSrg)r3   2   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    ^/var/www/website/venv/lib/python3.13/site-packages/anthropic/resources/beta/skills/versions.pywith_raw_responseVersions.with_raw_response3   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
)VersionsWithStreamingResponser:   s    r<   with_streaming_response Versions.with_streaming_response=   s     -T22r?   N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     r<   	<genexpr>"Versions.create.<locals>.<genexpr>o        5Lec!ffe   skills-2025-10-02files<array>pathsmultipart/form-dataContent-Type(/v1/skills/{skill_id}/versions?beta=trueskill_idrG   rH   rI   rJ   bodyr\   optionscast_to)
ValueErrorr   r   joinr   r   r   r   r   r   rS   object_postr   r   r-   VersionCreateParamsr+   r0   
r;   rd   r\   rF   rG   rH   rI   rJ   rg   extracted_filess
             r<   createVersions.createF   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[ *  
 	
r?   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
rM   6Expected a non-empty value for `version` but received rN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW   $Versions.retrieve.<locals>.<genexpr>   rY   rZ   r[   2/v1/skills/{skill_id}/versions/{version}?beta=truerd   versionre   rh   ri   
rj   r   r   rk   r   r   _getr   r+   r2   r;   rz   rd   rF   rG   rH   rI   rJ   s           r<   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[ ,  
 	
r?   limitpagerF   rG   rH   rI   rJ   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
rM   rN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW    Versions.list.<locals>.<genexpr>   rY   rZ   r[   rb   rc   r   r   rG   rH   rI   rJ   queryr   rh   model)rj   r   r   rk   r   r   _get_api_listr   r(   r/   r+   r   r,   VersionListParams	r;   rd   r   r   rF   rG   rH   rI   rJ   s	            r<   listVersions.list   s    L VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!DxX 34(+'%%!& $ (99 &! " 
 	
r?   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
rM   ru   rN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW   "Versions.delete.<locals>.<genexpr>1  rY   rZ   r[   rx   ry   re   r{   
rj   r   r   rk   r   r   _deleter   r+   r1   r~   s           r<   deleteVersions.delete  s    F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX||NYas(+Q[ *  
 	
r?   c          
        U(       d  [        SU< 35      eU(       d  [        SU< 35      eSS0U=(       d    0 En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  
Download a skill version's content as a zip archive.

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
rM   ru   Acceptapplication/binaryrN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW   $Versions.download.<locals>.<genexpr>l  rY   rZ   r[   :/v1/skills/{skill_id}/versions/{version}/content?beta=truery   re   r{   )
rj   r   r   rk   r   r   r}   r   r+   r   r~   s           r<   downloadVersions.downloadA  s    F VW_VbcddUV]U`abb!#7QM<ORQ	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXyyLW_ )+Q[ &  
 	
r?    )returnr9   )r   rB   rd   rS   r\   zSequenceNotStr[FileTypes]rF   List[AnthropicBetaParam] | OmitrG   Headers | NonerH   Query | NonerI   Body | NonerJ   'float | httpx.Timeout | None | NotGivenr   r0   rz   rS   rd   rS   rF   r   rG   r   rH   r   rI   r   rJ   r   r   r2   )rd   rS   r   Optional[int] | Omitr   Optional[str] | OmitrF   r   rG   r   rH   r   rI   r   rJ   r   r   z#SyncPageCursor[VersionListResponse]rz   rS   rd   rS   rF   r   rG   r   rH   r   rI   r   rJ   r   r   r1   )rz   rS   rd   rS   rF   r   rG   r   rH   r   rI   r   rJ   r   r   r   __name__
__module____qualname____firstlineno__r   r=   rC   r   r   rq   r   r   r   r   __static_attributes__r   r?   r<   r3   r3   2   sI   - - 3 3 26 )-$("&;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
~ 26 )-$("&;D;
;
 	;

 /;
 &;
 ";
  ;
 9;
 
;
 ;
r?   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SS\S.               SS jjrSrg)r4   i  c                    [        U 5      $ r8   )AsyncVersionsWithRawResponser:   s    r<   r=   AsyncVersions.with_raw_response  s     ,D11r?   c                    [        U 5      $ rA   )"AsyncVersionsWithStreamingResponser:   s    r<   rC   %AsyncVersions.with_streaming_response  s     2$77r?   NrE   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)rL   rM   rN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW   'AsyncVersions.create.<locals>.<genexpr>  rY   rZ   r[   r\   r]   r^   r`   ra   rb   rc   Nre   rf   )rj   r   r   rk   r   r   r   r   r   r   rS   rl   rm   r   r   r-   rn   r+   r0   ro   s
             r<   rq   AsyncVersions.create  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
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)rt   rM   ru   rN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW   )AsyncVersions.retrieve.<locals>.<genexpr>  rY   rZ   r[   rx   ry   re   r{   Nr|   r~   s           r<   r   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>r   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   rM   rN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW   %AsyncVersions.list.<locals>.<genexpr>9  rY   rZ   r[   rb   rc   r   r   r   )rj   r   r   rk   r   r   r   r   r)   r/   r+   r   r,   r   r   s	            r<   r   AsyncVersions.list  s    L VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!DxX !45(+'%%!& $ (99 &! " 
 	
r?   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   rM   ru   rN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW   'AsyncVersions.delete.<locals>.<genexpr>~  rY   rZ   r[   rx   ry   re   r{   Nr   r~   s           r<   r   AsyncVersions.deleteT  s     F VW_VbcddUV]U`abb	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX\\NYas(+Q[ * " 
 
 	
 
r   c          
       #    U(       d  [        SU< 35      eU(       d  [        SU< 35      eSS0U=(       d    0 En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   rM   ru   r   r   rN   rO   c              3  8   #    U  H  n[        U5      v   M     g 7frQ   rR   rT   s     r<   rW   )AsyncVersions.download.<locals>.<genexpr>  rY   rZ   r[   r   ry   re   r{   N)
rj   r   r   rk   r   r   r}   r   r+   r   r~   s           r<   r   AsyncVersions.download  s     F VW_VbcddUV]U`abb!#7QM<ORQ	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXYYLW_ )+Q[ +  
 
 	
 
s   CCCCr   )r   r   )r   r   r   r   )rd   rS   r   r   r   r   rF   r   rG   r   rH   r   rI   r   rJ   r   r   zIAsyncPaginator[VersionListResponse, AsyncPageCursor[VersionListResponse]]r   )rz   rS   rd   rS   rF   r   rG   r   rH   r   rI   r   rJ   r   r   r   r   r   r?   r<   r4   r4     sJ   2 2 8 8 26 )-$("&;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
~ 26 )-$("&;D;
;
 	;

 /;
 &;
 ";
  ;
 9;
 
 ;
 ;
r?   c                      \ rS rSrSS jrSrg)r9   i  c                v   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        [        UR                  [        5      U l        g rQ   )
	_versionsr
   to_raw_response_wrapperrq   r   r   r   r#   r   r   r;   versionss     r<   __init__ VersionsWithRawResponse.__init__  s    !&>>OO
 )@@
 %<<MM
	 '>>OO
 7
r?   r   rq   r   r   r   r   Nr   r3   r   Noner   r   r   r   r   r   r   r?   r<   r9   r9         
r?   r9   c                      \ rS rSrSS jrSrg)r   i  c                v   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        [        UR                  [        5      U l        g rQ   )
r   r
   async_to_raw_response_wrapperrq   r   r   r   r&   r   r   r   s     r<   r   %AsyncVersionsWithRawResponse.__init__  s    !&DDOO
 )FF
 %BBMM
	 'DDOO
 ="
r?   r   Nr   r4   r   r   r   r   r?   r<   r   r     r   r?   r   c                      \ rS rSrSS jrSrg)rB   i  c                   Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  [        5      U l        g rQ   )	r   r"   rq   r   r   r   r%   r   r    r   s     r<   r   &VersionsWithStreamingResponse.__init__  su    !2OO
 5
 1MM
	 3OO
 <%
r?   r   Nr   r   r   r?   r<   rB   rB     r   r?   rB   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        [        UR                  [        5      U l        g rQ   )	r   r$   rq   r   r   r   r'   r   r!   r   s     r<   r   +AsyncVersionsWithStreamingResponse.__init__  sv    !8OO
 ;
 7MM
	 9OO
 B*
r?   r   Nr   r   r   r?   r<   r   r     r   r?   r   )I
__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   r    r!   r"   r#   r$   r%   r&   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_responser0   )types.beta.skills.version_delete_responser1   +types.beta.skills.version_retrieve_responser2   __all__r3   r4   r9   r   rB   r   r   r?   r<   <module>r      s    # 0 0   ! *
 
 
 w v ' ;   ; A L = K O O S
'J
 J
Z
J
$ J
Z

 
,
 
,
 
,
 
r?   