ó
    ±"³jÁ`  ã                  óh  • S SK Jr  S SKJrJr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  SSKJr  SS	KJrJr  SS
KJrJr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K)J*r*  SS/r+ " S S\5      r, " S S\5      r- " S S5      r. " S S5      r/ " S S5      r0 " S S5      r1g)é    )Úannotations)ÚMappingÚOptionalÚcastNé   )Údeepcopy_with_paths)	ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚ	FileTypesÚSequenceNotStrÚomitÚ	not_given)Úextract_filesÚpath_templateÚstrip_not_given)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_raw_response_wrapperÚto_streamed_response_wrapperÚasync_to_raw_response_wrapperÚ"async_to_streamed_response_wrapper)ÚSyncPageCursorÚAsyncPageCursor)ÚAsyncPaginatorÚmake_request_options)ÚSkillVersion)ÚDeletedSkillVersionÚ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/mande/repo/quber/.venv/lib/python3.13/site-packages/anthropic/resources/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
)ÚVersionsWithStreamingResponser)   s    r+   Úwith_streaming_responseÚ Versions.with_streaming_response/   s   € ô -¨TÓ2Ð2r.   N©Úworkspace_idÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc               ó@  • U(       d  [        SU< 35      e0 [        SU05      EU=(       d    0 En[        SU0SS//5      n[        [	        [
        [        [        4   U5      SS//S9n	SS0U=(       d    0 EnU R                  [        SUS	9UU	[        XEXgS
9[        S9$ )á}  
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.

  workspace_id: Optional header to select the Workspace for this request. The value is a
      Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

      Only needed for credentials that can act on more than one Workspace. A
      credential that belongs to a specific Workspace may omit it; if sent, it must
      match that Workspace.

  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-workspace-idÚfilesú<array>©ÚpathsúContent-Typeúmultipart/form-dataú/v1/skills/{skill_id}/versions©Úskill_id©r6   r7   r8   r9   ©Úbodyr>   ÚoptionsÚcast_to©Ú
ValueErrorr   r   r   r   r   ÚstrÚobjectÚ_postr   r   r    ©
r*   rF   r>   r5   r6   r7   r8   r9   rI   Úextracted_filess
             r+   ÚcreateÚVersions.create8   sÏ   € öR ÜÐVÐW_ÑVbÐcÓdÐdØnœ?Ð,DÀlÐ+SÓTÐnÐYf×YlÐjlÐnˆÜ" G¨UÐ#3°wÀ	Ð6JÐ5KÓLˆÜ'¬¬W´S¼&°[Ñ-AÀ4Ó(HÐRYÐ[dÐQeÐPfÑgˆð (Ð)>ÐXÀ=×CVÐTVÐXˆØ�z‰zÜÐ:ÀXÑNØØ!Ü(Ø+ÐQ[ñô !ð ð 
ð 	
r.   c          
     óØ   • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        SU05      EU=(       d    0 EnU R                  [        SX!S9[	        XEXgS9[
        S9$ )áã  
Get Skill Version

Args:
  skill_id: Unique identifier for the skill.

      The format and length of IDs may change over time.

  version: Identifies the skill version: a version ID, or the literal `latest` for the
      skill's most recent version.

      Requests carrying the `skills-2025-10-02` beta header address versions by their
      Unix epoch timestamp instead (e.g., "1759178010641129").

  workspace_id: Optional header to select the Workspace for this request. The value is a
      Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

      Only needed for credentials that can act on more than one Workspace. A
      credential that belongs to a specific Workspace may omit it; if sent, it must
      match that Workspace.

  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
r<   ú6Expected a non-empty value for `version` but received r=   ú(/v1/skills/{skill_id}/versions/{version}©rF   ÚversionrG   ©rJ   rK   ©rM   r   Ú_getr   r   r    ©r*   rZ   rF   r5   r6   r7   r8   r9   s           r+   ÚretrieveÚVersions.retrievet   sŠ   € öT ÜÐVÐW_ÑVbÐcÓdÐdÞÜÐUÐV]ÑU`ÐaÓbÐbØnœ?Ð,DÀlÐ+SÓTÐnÐYf×YlÐjlÐnˆØ�y‰yÜÐDÈxÑiÜ(Ø+ÐQ[ñô !ð ð 
ð 	
r.   ©ÚlimitÚpager5   r6   r7   r8   r9   c               óÐ   • U(       d  [        SU< 35      e0 [        SU05      EU=(       d    0 EnU R                  [        SUS9[        [
           [        UUUUUUS.S9[
        S9$ ©a…  
List Skill Versions

Args:
  skill_id: Unique identifier for the skill.

      The format and length of IDs may change over time.

  limit: Number of results to return per page.

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

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

  workspace_id: Optional header to select the Workspace for this request. The value is a
      Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

      Only needed for credentials that can act on more than one Workspace. A
      credential that belongs to a specific Workspace may omit it; if sent, it must
      match that Workspace.

  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
r<   r=   rD   rE   )rb   rc   )r6   r7   r8   r9   Úquery)rc   rJ   Úmodel)rM   r   Ú_get_api_listr   r   r    r   ©	r*   rF   rb   rc   r5   r6   r7   r8   r9   s	            r+   ÚlistÚVersions.list«   s�   € öV ÜÐVÐW_ÑVbÐcÓdÐdØnœ?Ð,DÀlÐ+SÓTÐnÐYf×YlÐjlÐnˆØ×!Ñ!ÜÐ:ÀXÑNÜ¤Ñ-Ü(Ø+Ø'Ø%Øà"Ø ññ	ô ð "ð 
ð 	
r.   c          
     óØ   • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        SU05      EU=(       d    0 EnU R                  [        SX!S9[	        XEXgS9[
        S9$ )á§  
Delete Skill Version

Args:
  skill_id: Unique identifier for the skill.

      The format and length of IDs may change over time.

  version: Identifies the skill version by its version ID.

      Requests carrying the `skills-2025-10-02` beta header address versions by their
      Unix epoch timestamp instead (e.g., "1759178010641129").

  workspace_id: Optional header to select the Workspace for this request. The value is a
      Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

      Only needed for credentials that can act on more than one Workspace. A
      credential that belongs to a specific Workspace may omit it; if sent, it must
      match that Workspace.

  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
r<   rW   r=   rX   rY   rG   r[   ©rM   r   Ú_deleter   r   r!   r^   s           r+   ÚdeleteÚVersions.deleteé   sŠ   € öR ÜÐVÐW_ÑVbÐcÓdÐdÞÜÐUÐV]ÑU`ÐaÓbÐbØnœ?Ð,DÀlÐ+SÓTÐnÐYf×YlÐjlÐnˆØ�|‰|ÜÐDÈxÑiÜ(Ø+ÐQ[ñô (ð ð 
ð 	
r.   © )Úreturnr(   )rs   r1   ©rF   rN   r>   zSequenceNotStr[FileTypes]r5   ú
str | Omitr6   úHeaders | Noner7   úQuery | Noner8   úBody | Noner9   ú(float | httpx2.Timeout | None | NotGivenrs   r    ©rZ   rN   rF   rN   r5   ru   r6   rv   r7   rw   r8   rx   r9   ry   rs   r    )rF   rN   rb   úOptional[int] | Omitrc   úOptional[str] | Omitr5   ru   r6   rv   r7   rw   r8   rx   r9   ry   rs   zSyncPageCursor[SkillVersion]©rZ   rN   rF   rN   r5   ru   r6   rv   r7   rw   r8   rx   r9   ry   rs   r!   ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r,   r2   r   r   rS   r_   rj   rp   Ú__static_attributes__rr   r.   r+   r"   r"   $   sØ  † Øó-ó ð-ð ó3ó ð3ð $(ð )-Ø$(Ø"&Ø<Eñ:
àð:
ð )ð	:
ð
 !ð:
ð &ð:
ð "ð:
ð  ð:
ð :ð:
ð 
õ:
ðB $(ð )-Ø$(Ø"&Ø<Eñ5
àð5
ð ð	5
ð
 !ð5
ð &ð5
ð "ð5
ð  ð5
ð :ð5
ð 
õ5
ðv '+Ø%)Ø#'ð )-Ø$(Ø"&Ø<Eñ<
àð<
ð $ð	<
ð
 #ð<
ð !ð<
ð &ð<
ð "ð<
ð  ð<
ð :ð<
ð 
&õ<
ðF $(ð )-Ø$(Ø"&Ø<Eñ4
àð4
ð ð	4
ð
 !ð4
ð &ð4
ð "ð4
ð  ð4
ð :ð4
ð 
÷4
ð 4
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rg)r#   i   c                ó   • [        U 5      $ r'   )ÚAsyncVersionsWithRawResponser)   s    r+   r,   ÚAsyncVersions.with_raw_response!  s   € ô ,¨DÓ1Ð1r.   c                ó   • [        U 5      $ r0   )Ú"AsyncVersionsWithStreamingResponser)   s    r+   r2   Ú%AsyncVersions.with_streaming_response+  s   € ô 2°$Ó7Ð7r.   Nr4   c             ƒ  ó\  #   • U(       d  [        SU< 35      e0 [        SU05      EU=(       d    0 En[        SU0SS//5      n[        [	        [
        [        [        4   U5      SS//S9n	SS0U=(       d    0 EnU R                  [        SUS	9UU	[        XEXgS
9[        S9I Sh  v•N $  N7f)r;   r<   r=   r>   r?   r@   rB   rC   rD   rE   rG   rH   NrL   rQ   s
             r+   rS   ÚAsyncVersions.create4  sÜ   é € öR ÜÐVÐW_ÑVbÐcÓdÐdØnœ?Ð,DÀlÐ+SÓTÐnÐYf×YlÐjlÐnˆÜ" G¨UÐ#3°wÀ	Ð6JÐ5KÓLˆÜ'¬¬W´S¼&°[Ñ-AÀ4Ó(HÐRYÐ[dÐQeÐPfÑgˆð (Ð)>ÐXÀ=×CVÐTVÐXˆØ—Z‘ZÜÐ:ÀXÑNØØ!Ü(Ø+ÐQ[ñô !ð  ð 
÷ 
ð 	
ñ 
ùs   ‚B#B,Â%B*Â&B,c          
   ƒ  óô   #   • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        SU05      EU=(       d    0 EnU R                  [        SX!S9[	        XEXgS9[
        S9I Sh  v•N $  N7f)	rV   r<   rW   r=   rX   rY   rG   r[   Nr\   r^   s           r+   r_   ÚAsyncVersions.retrievep  s—   é € öT ÜÐVÐW_ÑVbÐcÓdÐdÞÜÐUÐV]ÑU`ÐaÓbÐbØnœ?Ð,DÀlÐ+SÓTÐnÐYf×YlÐjlÐnˆØ—Y‘YÜÐDÈxÑiÜ(Ø+ÐQ[ñô !ð ð 
÷ 
ð 	
ñ 
ùó   ‚A/A8Á1A6Á2A8ra   c               óÐ   • U(       d  [        SU< 35      e0 [        SU05      EU=(       d    0 EnU R                  [        SUS9[        [
           [        UUUUUUS.S9[
        S9$ re   )rM   r   rh   r   r   r    r   ri   s	            r+   rj   ÚAsyncVersions.list§  s�   € öV ÜÐVÐW_ÑVbÐcÓdÐdØnœ?Ð,DÀlÐ+SÓTÐnÐYf×YlÐjlÐnˆØ×!Ñ!ÜÐ:ÀXÑNÜ ¤Ñ.Ü(Ø+Ø'Ø%Øà"Ø ññ	ô ð "ð 
ð 	
r.   c          
   ƒ  óô   #   • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        SU05      EU=(       d    0 EnU R                  [        SX!S9[	        XEXgS9[
        S9I Sh  v•N $  N7f)	rm   r<   rW   r=   rX   rY   rG   r[   Nrn   r^   s           r+   rp   ÚAsyncVersions.deleteå  s—   é € öR ÜÐVÐW_ÑVbÐcÓdÐdÞÜÐUÐV]ÑU`ÐaÓbÐbØnœ?Ð,DÀlÐ+SÓTÐnÐYf×YlÐjlÐnˆØ—\‘\ÜÐDÈxÑiÜ(Ø+ÐQ[ñô (ð "ð 
÷ 
ð 	
ñ 
ùr�   rr   )rs   r†   )rs   r‰   rt   rz   )rF   rN   rb   r{   rc   r|   r5   ru   r6   rv   r7   rw   r8   rx   r9   ry   rs   z;AsyncPaginator[SkillVersion, AsyncPageCursor[SkillVersion]]r}   r~   rr   r.   r+   r#   r#      sÙ  † Øó2ó ð2ð ó8ó ð8ð $(ð )-Ø$(Ø"&Ø<Eñ:
àð:
ð )ð	:
ð
 !ð:
ð &ð:
ð "ð:
ð  ð:
ð :ð:
ð 
õ:
ðB $(ð )-Ø$(Ø"&Ø<Eñ5
àð5
ð ð	5
ð
 !ð5
ð &ð5
ð "ð5
ð  ð5
ð :ð5
ð 
õ5
ðv '+Ø%)Ø#'ð )-Ø$(Ø"&Ø<Eñ<
àð<
ð $ð	<
ð
 #ð<
ð !ð<
ð &ð<
ð "ð<
ð  ð<
ð :ð<
ð 
Eõ<
ðF $(ð )-Ø$(Ø"&Ø<Eñ4
àð4
ð ð	4
ð
 !ð4
ð &ð4
ð "ð4
ð  ð4
ð :ð4
ð 
÷4
ð 4
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 ©N)Ú	_versionsr   rS   r_   rj   rp   ©r*   Úversionss     r+   Ú__init__Ú VersionsWithRawResponse.__init__  s[   € Ø!Œä-Ø�O‰Oó
ˆŒô 0Ø×Ñó
ˆŒô ,Ø�M‰Mó
ˆŒ	ô .Ø�O‰Oó
ˆ�r.   ©r—   rS   rp   rj   r_   N©r™   r"   rs   ÚNone©r   r€   r�   r‚   rš   rƒ   rr   r.   r+   r(   r(     ó   † ÷
r.   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 r–   )r—   r   rS   r_   rj   rp   r˜   s     r+   rš   Ú%AsyncVersionsWithRawResponse.__init__/  s[   € Ø!Œä3Ø�O‰Oó
ˆŒô 6Ø×Ñó
ˆŒô 2Ø�M‰Mó
ˆŒ	ô 4Ø�O‰Oó
ˆ�r.   rœ   N©r™   r#   rs   rž   rŸ   rr   r.   r+   r†   r†   .  r    r.   r†   c                  ó   • \ rS rSrSS jrSrg)r1   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 r–   )r—   r   rS   r_   rj   rp   r˜   s     r+   rš   Ú&VersionsWithStreamingResponse.__init__A  s[   € Ø!Œä2Ø�O‰Oó
ˆŒô 5Ø×Ñó
ˆŒô 1Ø�M‰Mó
ˆŒ	ô 3Ø�O‰Oó
ˆ�r.   rœ   Nr�   rŸ   rr   r.   r+   r1   r1   @  r    r.   r1   c                  ó   • \ rS rSrSS jrSrg)r‰   iR  c                óà   • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g r–   )r—   r   rS   r_   rj   rp   r˜   s     r+   rš   Ú+AsyncVersionsWithStreamingResponse.__init__S  s[   € Ø!Œä8Ø�O‰Oó
ˆŒô ;Ø×Ñó
ˆŒô 7Ø�M‰Mó
ˆŒ	ô 9Ø�O‰Oó
ˆ�r.   rœ   Nr¤   rŸ   rr   r.   r+   r‰   r‰   R  r    r.   r‰   )2Ú
__future__r   Útypingr   r   r   Úhttpx2Ú_filesr   Ú_typesr	   r
   r   r   r   r   r   r   r   Ú_utilsr   r   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   r   r   Ú
paginationr   r   Ú_base_clientr   r   Útypes.skills.skill_versionr    Ú"types.skills.deleted_skill_versionr!   Ú__all__r"   r#   r(   r†   r1   r‰   rr   r.   r+   Ú<module>r¹      s›   ðÝ "ç *Ñ *ã å )÷
÷ 
õ 
÷ DÑ CÝ &ß :÷ó ÷ :ß @Ý 6Ý Eà�Ð
'€ôy
ˆô y
ôxy
Ð$ô y
÷x
ñ 
÷$
ñ 
÷$
ñ 
÷$
ò 
r.   