
    b\j j                       S SK Jr  S SKJrJrJrJr  S SK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  SS	K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K.J/r/  SSK0J1r1  SSK2J3r3  SS/r4 " S S\5      r5 " S S\5      r6 " S S5      r7 " S S5      r8 " S S5      r9 " S S5      r:g)     )annotations)ListUnionIterableOptional)datetime)chainN   )_legacy_response)BodyOmitQueryHeadersNotGivenomit	not_given)is_given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)dream_list_paramsdream_create_params)AsyncPaginatormake_request_options)	BetaDream)AnthropicBetaParam)BetaDreamStatus)BetaDreamInputParamDreamsAsyncDreamsc                  j   \ 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)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
)DreamsWithRawResponseselfs    U/var/www/website/venv/lib/python3.13/site-packages/anthropic/resources/beta/dreams.pywith_raw_responseDreams.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
)DreamsWithStreamingResponser.   s    r0   with_streaming_responseDreams.with_streaming_response'   s     +400r3   Ninstructionsbetasextra_headersextra_query
extra_bodytimeoutc               6   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UUS.[        R                  5      [        XVXxS9[        S9$ )	  
Create a Dream

Args:
  model: Model identifier and configuration applied to every pipeline stage.

  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
anthropic-beta,c              3  8   #    U  H  n[        U5      v   M     g 7fNstr.0es     r0   	<genexpr> Dreams.create.<locals>.<genexpr>Q        5Lec!ffe   dreaming-2026-04-21/v1/dreams?beta=trueinputsmodelr:   r<   r=   r>   r?   bodyoptionscast_to)r   r   joinr	   r   _postr   r    DreamCreateParamsr"   r#   	r/   rR   rS   r:   r;   r<   r=   r>   r?   s	            r0   createDreams.create0   s    <	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZzz" $"$0
 $55 )+Q[   
 	
r3   r;   r<   r=   r>   r?   c          
     8   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[        X4XVS9[        S	9$ )
Q  
Get a Dream

Args:
  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 `dream_id` but received rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK   "Dreams.retrieve.<locals>.<genexpr>   rM   rN   rO   /v1/dreams/{dream_id}?beta=truedream_idrT   rW   rX   

ValueErrorr   r   rY   r	   r   _getr   r"   r#   r/   rg   r;   r<   r=   r>   r?   s          r0   retrieveDreams.retrievei   s    4 VW_Vbcdd	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZyy;hO(+Q[   
 	
r3   created_at_gtcreated_at_ltinclude_archivedlimitpagestatusesr;   r<   r=   r>   r?   c               X   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U	U
U[        UUUUUUS.[        R                  5      S9[        S9$ )	  
List Dreams

Args:
  created_at_gt: Return dreams with `created_at` strictly after this timestamp (exclusive lower
      bound, RFC 3339). Unset applies no lower bound.

  created_at_lt: Return dreams with `created_at` strictly before this timestamp (exclusive upper
      bound, RFC 3339). Unset applies no upper bound.

  include_archived: Query parameter for include_archived

  limit: Query parameter for limit

  page: Query parameter for page

  statuses: Filter by lifecycle status. Repeat the parameter to match any of multiple
      statuses. Empty applies no status filter.

  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
rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK   Dreams.list.<locals>.<genexpr>   rM   rN   rO   rP   rp   rq   rr   rs   rt   ru   r<   r=   r>   r?   queryrt   rW   rS   )r   r   rY   r	   r   _get_api_listr   r#   r"   r   r   DreamListParamsr/   rp   rq   rr   rs   rt   ru   r;   r<   r=   r>   r?   s               r0   listDreams.list   s    \	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZ!!"	*(+'%%)6)6,<!& $$, &55
" ) " 
 	
r3   c          
     8   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[        X4XVS9[        S	9$ )
U  
Archive a Dream

Args:
  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
rb   rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK   !Dreams.archive.<locals>.<genexpr>  rM   rN   rO   '/v1/dreams/{dream_id}/archive?beta=truerf   rT   rh   
rj   r   r   rY   r	   r   rZ   r   r"   r#   rl   s          r0   archiveDreams.archive   s    4 VW_Vbcdd	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZzzChW(+Q[   
 	
r3   c          
     8   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[        X4XVS9[        S	9$ )
T  
Cancel a Dream

Args:
  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
rb   rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK    Dreams.cancel.<locals>.<genexpr>6  rM   rN   rO   &/v1/dreams/{dream_id}/cancel?beta=truerf   rT   rh   r   rl   s          r0   cancelDreams.cancel  s    4 VW_Vbcdd	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZzzBXV(+Q[   
 	
r3    )returnr-   )r   r6   rR   zIterable[BetaDreamInputParam]rS   zdream_create_params.Modelr:   zOptional[str] | Omitr;   List[AnthropicBetaParam] | Omitr<   Headers | Noner=   Query | Noner>   Body | Noner?   'float | httpx.Timeout | None | NotGivenr   r#   rg   rG   r;   r   r<   r   r=   r   r>   r   r?   r   r   r#   )rp   Union[str, datetime] | Omitrq   r   rr   bool | Omitrs   
int | Omitrt   
str | Omitru   List[BetaDreamStatus] | Omitr;   r   r<   r   r=   r   r>   r   r?   r   r   zSyncPageCursor[BetaDream]__name__
__module____qualname____firstlineno__r   r1   r7   r   r   r]   rm   r   r   r   __static_attributes__r   r3   r0   r'   r'      si   + + 1 1 .215 )-$("&;D7
 .7
 )	7

 +7
 /7
 &7
 "7
  7
 97
 
7
z 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
-
d 6:59(, 1515 )-$("&;DN
 3N
 3	N

 &N
 N
 N
 /N
 /N
 &N
 "N
  N
 9N
  
#!N
h 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
-
f 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
-
 -
r3   c                  j   \ 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)r(   iG  c                    [        U 5      $ r,   )AsyncDreamsWithRawResponser.   s    r0   r1   AsyncDreams.with_raw_responseH  s     *$//r3   c                    [        U 5      $ r5   ) AsyncDreamsWithStreamingResponser.   s    r0   r7   #AsyncDreams.with_streaming_responseR  s     055r3   Nr9   c               f  #    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UUS.[        R                  5      I Sh  vN [        XVXxS9[        S	9I Sh  vN $  N N7f)
rA   rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK   %AsyncDreams.create.<locals>.<genexpr>|  rM   rN   rO   rP   rQ   NrT   rU   )r   r   rY   r	   r   rZ   r   r    r[   r"   r#   r\   s	            r0   r]   AsyncDreams.create[  s     <	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZZZ",$"$0
 $55  )+Q[    
 
 	

s$   BB1B-
B1(B/)B1/B1r_   c          
     T  #    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[        X4XVS9[        S	9I S
h  vN $  N7f)ra   rb   rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK   'AsyncDreams.retrieve.<locals>.<genexpr>  rM   rN   rO   re   rf   rT   rh   Nri   rl   s          r0   rm   AsyncDreams.retrieve  s     4 VW_Vbcdd	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZYY;hO(+Q[   
 
 	
 
   BB(!B&"B(ro   c               X   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U	U
U[        UUUUUUS.[        R                  5      S9[        S9$ )	rw   rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK   #AsyncDreams.list.<locals>.<genexpr>  rM   rN   rO   rP   rz   r{   r}   )r   r   rY   r	   r   r~   r   r#   r"   r   r   r   r   s               r0   r   AsyncDreams.list  s    \	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZ!!" +(+'%%)6)6,<!& $$, &55
" ) " 
 	
r3   c          
     T  #    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[        X4XVS9[        S	9I S
h  vN $  N7f)r   rb   rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK   &AsyncDreams.archive.<locals>.<genexpr>2  rM   rN   rO   r   rf   rT   rh   Nr   rl   s          r0   r   AsyncDreams.archive  s     4 VW_Vbcdd	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZZZChW(+Q[    
 
 	
 
r   c          
     T  #    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[        X4XVS9[        S	9I S
h  vN $  N7f)r   rb   rB   rC   c              3  8   #    U  H  n[        U5      v   M     g 7frE   rF   rH   s     r0   rK   %AsyncDreams.cancel.<locals>.<genexpr>a  rM   rN   rO   r   rf   rT   rh   Nr   rl   s          r0   r   AsyncDreams.cancelB  s     4 VW_Vbcdd	
$ '*hhu5Le5LOdNe/f&g"	
 "	
 *+@Z]EXVXZZZBXV(+Q[    
 
 	
 
r   r   )r   r   )r   r   r   r   )rp   r   rq   r   rr   r   rs   r   rt   r   ru   r   r;   r   r<   r   r=   r   r>   r   r?   r   r   z5AsyncPaginator[BetaDream, AsyncPageCursor[BetaDream]]r   r   r3   r0   r(   r(   G  si   0 0 6 6 .215 )-$("&;D7
 .7
 )	7

 +7
 /7
 &7
 "7
  7
 97
 
7
z 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
-
d 6:59(, 1515 )-$("&;DN
 3N
 3	N

 &N
 N
 N
 /N
 /N
 &N
 "N
  N
 9N
  
?!N
h 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
-
f 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
-
 -
r3   c                      \ rS rSrSS jrSrg)r-   ir  c                   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        [        R                  " UR                  5      U l        g rE   )_dreamsr   to_raw_response_wrapperr]   rm   r   r   r   r/   dreamss     r0   __init__DreamsWithRawResponse.__init__s  s    &>>MM
 )@@OO
 %<<KK
	 (??NN
 '>>MM
r3   r   r   r   r]   r   rm   Nr   r'   r   Noner   r   r   r   r   r   r   r3   r0   r-   r-   r      
r3   r-   c                      \ rS rSrSS jrSrg)r   i  c                   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        [        R                  " UR                  5      U l        g rE   )r   r   async_to_raw_response_wrapperr]   rm   r   r   r   r   s     r0   r   #AsyncDreamsWithRawResponse.__init__  s    &DDMM
 )FFOO
 %BBKK
	 (EENN
 'DDMM
r3   r   Nr   r(   r   r   r   r   r3   r0   r   r     r   r3   r   c                      \ rS rSrSS jrSrg)r6   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 rE   )r   r   r]   rm   r   r   r   r   s     r0   r   $DreamsWithStreamingResponse.__init__  sn    2MM
 5OO
 1KK
	 4NN
 3MM
r3   r   Nr   r   r   r3   r0   r6   r6     r   r3   r6   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 rE   )r   r   r]   rm   r   r   r   r   s     r0   r   )AsyncDreamsWithStreamingResponse.__init__  sn    8MM
 ;OO
 7KK
	 :NN
 9MM
r3   r   Nr   r   r   r3   r0   r   r     r   r3   r   );
__future__r   typingr   r   r   r   r   	itertoolsr	   httpx r   _typesr   r   r   r   r   r   r   _utilsr   r   r   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   
types.betar   r    _base_clientr!   r"   types.beta.beta_dreamr#   types.anthropic_beta_paramr$   types.beta.beta_dream_statusr%   !types.beta.beta_dream_input_paramr&   __all__r'   r(   r-   r   r6   r   r   r3   r0   <module>r      s    # 2 2      K K K f f & : Y 9 @ @ . < ; D]
#h
_ h
V	h
" h
V	
 
*
 
*
 
*
 
r3   