
    _jz                       S SK Jr  S SK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(J)r)  SSK*J+r+J,r,  SSK-J.r.  SSK/J0r0  SSK1J2r2  SS/r3 " S S\5      r4 " S S\5      r5 " S S5      r6 " S S5      r7 " S S5      r8 " S S5      r9g)    )annotations)DictListOptional)chain)LiteralN   )_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)user_profile_list_paramsuser_profile_create_paramsuser_profile_update_params)AsyncPaginatormake_request_options)AnthropicBetaParam)BetaUserProfile)BetaUserProfileEnrollmentURLUserProfilesAsyncUserProfilesc            
      z   \ 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
)UserProfilesWithRawResponseselfs    [/home/rurouni/.local/lib/python3.13/site-packages/anthropic/resources/beta/user_profiles.pywith_raw_responseUserProfiles.with_raw_response   s     +400    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
)!UserProfilesWithStreamingResponser-   s    r/   with_streaming_response$UserProfiles.with_streaming_response&   s     166r2   N	external_idmetadatanamerelationshipbetasextra_headersextra_query
extra_bodytimeoutc       	        8   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S.[        R                  5      [        XgXS9[        S9$ )	K  
Create User Profile

Args:
  external_id: Platform's own identifier for this user. Not enforced unique. Maximum 255
      characters.

  metadata: Free-form key-value data to attach to this user profile. Maximum 16 keys, with
      keys up to 64 characters and values up to 512 characters. Values must be
      non-empty strings.

  name: Display name of the entity this profile represents. Required when relationship
      is `resold` (the resold-to company's name); optional otherwise. Maximum 255
      characters.

  relationship: How the entity behind a user profile relates to the platform that owns the API
      key. `external`: an individual end-user of the platform. `resold`: a company the
      platform resells Claude access to. `internal`: the platform's own usage.

  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     r/   	<genexpr>&UserProfiles.create.<locals>.<genexpr>^        5Lec!ffe   user-profiles-2026-03-24/v1/user_profiles?beta=truer9   r:   r;   r<   r>   r?   r@   rA   bodyoptionscast_to)r   r   joinr   r   _postr   r   UserProfileCreateParamsr"   r$   
r.   r9   r:   r;   r<   r=   r>   r?   r@   rA   s
             r/   createUserProfiles.create/   s    X	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_zz) #. ( $0	 +BB )+Q[ $  
 	
r2   r=   r>   r?   r@   rA   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$ )
V  
Get User Profile

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
>Expected a non-empty value for `user_profile_id` but received rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   (UserProfiles.retrieve.<locals>.<genexpr>   rO   rP   rQ   -/v1/user_profiles/{user_profile_id}?beta=trueuser_profile_idrT   rW   rX   

ValueErrorr   r   rY   r   r   _getr   r"   r$   r.   rg   r=   r>   r?   r@   rA   s          r/   retrieveUserProfiles.retrievew   s    4 ]^m]pqrr	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_yyI[jk(+Q[ $  
 	
r2   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[        UUUUS.[        R                  5      [        XxXS	9[        S
9$ )]  
Update User Profile

Args:
  external_id: If present, replaces the stored external_id. Omit to leave unchanged. Maximum
      255 characters.

  metadata: Key-value pairs to merge into the stored metadata. Keys provided overwrite
      existing values. To remove a key, set its value to an empty string. Keys not
      provided are left unchanged. Maximum 16 keys, with keys up to 64 characters and
      values up to 512 characters.

  name: If present, replaces the stored name. Omit to leave unchanged. Maximum 255
      characters.

  relationship: How the entity behind a user profile relates to the platform that owns the API
      key. `external`: an individual end-user of the platform. `resold`: a company the
      platform resells Claude access to. `internal`: the platform's own usage.

  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   rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   &UserProfiles.update.<locals>.<genexpr>   rO   rP   rQ   re   rf   rS   rT   rU   )rj   r   r   rY   r   r   rZ   r   r   r    UserProfileUpdateParamsr"   r$   r.   rg   r9   r:   r;   r<   r=   r>   r?   r@   rA   s              r/   updateUserProfiles.update   s    Z ]^m]pqrr	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_zzI[jk #. ( $0	 +BB )+Q[ $  
 	
r2   limitorderpager=   r>   r?   r@   rA   c               R   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S.[        R                  5      S9[        S9$ )	  
List User Profiles

Args:
  limit: Query parameter for limit

  order: Query parameter for order

  page: Query parameter for page

  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
rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   $UserProfiles.list.<locals>.<genexpr>  rO   rP   rQ   rR   rx   ry   rz   r>   r?   r@   rA   queryrz   rW   model)r   r   rY   r   r   _get_api_listr   r$   r"   r   r   UserProfileListParams	r.   rx   ry   rz   r=   r>   r?   r@   rA   s	            r/   listUserProfiles.list   s    D	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_!!)0(+'%%!&!& $
 -BB "# " 
 	
r2   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$ )
[  
Create Enrollment URL

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   rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   5UserProfiles.create_enrollment_url.<locals>.<genexpr>Q  rO   rP   rQ   </v1/user_profiles/{user_profile_id}/enrollment_url?beta=truerf   rT   rh   
rj   r   r   rY   r   r   rZ   r   r"   r%   rl   s          r/   create_enrollment_url"UserProfiles.create_enrollment_url2  s    4 ]^m]pqrr	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_zzN`o )+Q[ 1  
 	
r2    )returnr,   )r   r5   r9   Optional[str] | Omitr:   Dict[str, str] | Omitr;   r   r<   z0Literal['external', 'resold', 'internal'] | Omitr=   List[AnthropicBetaParam] | Omitr>   Headers | Noner?   Query | Noner@   Body | NonerA   'float | httpx.Timeout | None | NotGivenr   r$   rg   rI   r=   r   r>   r   r?   r   r@   r   rA   r   r   r$   rg   rI   r9   r   r:   r   r;   r   r<   z:Optional[Literal['external', 'resold', 'internal']] | Omitr=   r   r>   r   r?   r   r@   r   rA   r   r   r$   )rx   
int | Omitry   Literal['asc', 'desc'] | Omitrz   
str | Omitr=   r   r>   r   r?   r   r@   r   rA   r   r   zSyncPageCursor[BetaUserProfile]rg   rI   r=   r   r>   r   r?   r   r@   r   rA   r   r   r%   __name__
__module____qualname____firstlineno__r   r0   r6   r   r   r]   rm   ru   r   r   __static_attributes__r   r2   r/   r&   r&      s   1 1 7 7 -1*.%)IM15 )-$("&;DF
 *F
 (	F

 #F
 GF
 /F
 &F
 "F
  F
 9F
 
F
X 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
-
f -1*.%)SW15 )-$("&;DI
I
 *	I

 (I
 #I
 QI
 /I
 &I
 "I
  I
 9I
 
I
\ !/315 )-$("&;D?
 ?
 -	?

 ?
 /?
 &?
 "?
  ?
 9?
 
)?
J 26 )-$("&;D/
/
 /	/
 &/
 "/
  /
 9/
 
&/
 /
r2   c            
      z   \ 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'   id  c                    [        U 5      $ r+   ) AsyncUserProfilesWithRawResponser-   s    r/   r0   #AsyncUserProfiles.with_raw_responsee  s     055r2   c                    [        U 5      $ r4   )&AsyncUserProfilesWithStreamingResponser-   s    r/   r6   )AsyncUserProfiles.with_streaming_responseo  s     6d;;r2   Nr8   c       	        h  #    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S.[        R                  5      I Sh  vN [        XgXS9[        S	9I Sh  vN $  N N7f)
rC   rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   +AsyncUserProfiles.create.<locals>.<genexpr>  rO   rP   rQ   rR   rS   NrT   rU   )r   r   rY   r   r   rZ   r   r   r[   r"   r$   r\   s
             r/   r]   AsyncUserProfiles.createx  s     X	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_ZZ),#. ( $0	 +BB  )+Q[ $   
 
 	

s$   BB2B.
B2)B0*B20B2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   rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   -AsyncUserProfiles.retrieve.<locals>.<genexpr>  rO   rP   rQ   re   rf   rT   rh   Nri   rl   s          r/   rm   AsyncUserProfiles.retrieve  s     4 ]^m]pqrr	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_YYI[jk(+Q[ $  
 
 	
 
   BB(!B&"B(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S.[        R                  5      I S	h  vN [        XxXS
9[        S9I S	h  vN $  N N7f)rp   rb   rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   +AsyncUserProfiles.update.<locals>.<genexpr>!  rO   rP   rQ   re   rf   rS   NrT   rU   )rj   r   r   rY   r   r   rZ   r   r   r    rs   r"   r$   rt   s              r/   ru   AsyncUserProfiles.update  s     Z ]^m]pqrr	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_ZZI[jk,#. ( $0	 +BB  )+Q[ $   
 
 	

s$   B-C/C
0CCCCrw   c               R   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S.[        R                  5      S9[        S9$ )	r|   rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   )AsyncUserProfiles.list.<locals>.<genexpr>_  rO   rP   rQ   rR   r   r   r   )r   r   rY   r   r   r   r   r$   r"   r   r   r   r   s	            r/   r   AsyncUserProfiles.list:  s    D	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_!!) 1(+'%%!&!& $
 -BB "# " 
 	
r2   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   rD   rE   c              3  8   #    U  H  n[        U5      v   M     g 7frG   rH   rJ   s     r/   rM   :AsyncUserProfiles.create_enrollment_url.<locals>.<genexpr>  rO   rP   rQ   r   rf   rT   rh   Nr   rl   s          r/   r   'AsyncUserProfiles.create_enrollment_url{  s     4 ]^m]pqrr	
$ '*hhu5Le5LOiNj/k&l"	
 "	
 *+E_-J][]_ZZN`o )+Q[ 1   
 
 	
 
r   r   )r   r   )r   r   r   r   r   )rx   r   ry   r   rz   r   r=   r   r>   r   r?   r   r@   r   rA   r   r   zAAsyncPaginator[BetaUserProfile, AsyncPageCursor[BetaUserProfile]]r   r   r   r2   r/   r'   r'   d  s   6 6 < < -1*.%)IM15 )-$("&;DF
 *F
 (	F

 #F
 GF
 /F
 &F
 "F
  F
 9F
 
F
X 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
-
f -1*.%)SW15 )-$("&;DI
I
 *	I

 (I
 #I
 QI
 /I
 &I
 "I
  I
 9I
 
I
\ !/315 )-$("&;D?
 ?
 -	?

 ?
 /?
 &?
 "?
  ?
 9?
 
K?
J 26 )-$("&;D/
/
 /	/
 &/
 "/
  /
 9/
 
&/
 /
r2   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 rG   )_user_profilesr
   to_raw_response_wrapperr]   rm   ru   r   r   r.   user_profiless     r/   __init__$UserProfilesWithRawResponse.__init__  s    +&>>  
 )@@""
 '>>  
 %<<
	 &6%M%M//&
"r2   r   r]   r   r   rm   ru   Nr   r&   r   Noner   r   r   r   r   r   r   r2   r/   r,   r,         
r2   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 rG   )r   r
   async_to_raw_response_wrapperr]   rm   ru   r   r   r   s     r/   r   )AsyncUserProfilesWithRawResponse.__init__  s    +&DD  
 )FF""
 'DD  
 %BB
	 &6%S%S//&
"r2   r   Nr   r'   r   r   r   r   r2   r/   r   r     r   r2   r   c                      \ rS rSrSS jrSrg)r5   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 rG   )r   r   r]   rm   ru   r   r   r   s     r/   r   *UserProfilesWithStreamingResponse.__init__  s{    +2  
 5""
 3  
 1
	 &B//&
"r2   r   Nr   r   r   r2   r/   r5   r5     r   r2   r5   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 rG   )r   r   r]   rm   ru   r   r   r   s     r/   r   /AsyncUserProfilesWithStreamingResponse.__init__  s{    +8  
 ;""
 9  
 7
	 &H//&
"r2   r   Nr   r   r   r2   r/   r   r     r   r2   r   ):
__future__r   typingr   r   r   	itertoolsr   typing_extensionsr   httpx r
   _typesr   r   r   r   r   r   r   _utilsr   r   r   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   
types.betar   r   r    _base_clientr!   r"   types.anthropic_beta_paramr#   types.beta.beta_user_profiler$   +types.beta.beta_user_profile_enrollment_urlr%   __all__r&   r'   r,   r   r5   r   r   r2   r/   <module>r      s    # ' '  %    K K K f f & : Y 9 j j @ < ; W.
/F
? F
R
F
( F
R

 
*
 
*
 
*
 
r2   