
    ]jaS                         d dl Zd dlZddlmZmZ ddlmZ ddlm	Z	 ddl
mZmZ  ej                  ej                  d      Z G d	 d
      Z G d d      Zy)    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions)AnnotationReview   )AsyncRawAnnotationReviewsClientRawAnnotationReviewsClient.c                      e Zd ZdefdZedefd       Zddddddej                  e
   dej                  e
   d	ej                  e   d
ej                  e   dej                  e   f
dZdeeeeeeddde
dej                  e   dej                  e   dej                  e   dej                  e
   dej                  e   dej                  ej$                     dej                  ej(                     d
ej                  e   defdZddde
d
ej                  e   defdZddde
d
ej                  e   ddfdZeeeeeeeddde
dej                  e   dej                  e
   dej                  e   dej                  e
   dej                  e   dej                  ej$                     dej                  ej(                     d
ej                  e   defdZy)AnnotationReviewsClientclient_wrapperc                &    t        |      | _        y N)r   )r
   _raw_clientselfr   s     T/root/env/lib/python3.12/site-packages/label_studio_sdk/annotation_reviews/client.py__init__z AnnotationReviewsClient.__init__   s    5^T    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawAnnotationReviewsClient
        r   r   s    r   with_raw_responsez)AnnotationReviewsClient.with_raw_response        r   N
annotationannotation_task_projectorderingrequest_optionsr   r   r   r    c                X    | j                   j                  ||||      }|j                  S )a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        List all reviews for a specific annotation ID. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        annotation : typing.Optional[int]

        annotation_task_project : typing.Optional[int]

        ordering : typing.Optional[str]
            Which field to use when ordering the results.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        typing.List[AnnotationReview]


        Examples
        --------
        from label_studio_sdk import LabelStudio

        client = LabelStudio(
            api_key="YOUR_API_KEY",
        )
        client.annotation_reviews.list()
        r   r   listdatar   r   r   r   r    	_responses         r   r#   zAnnotationReviewsClient.list   s8    V $$))!$;+	 * 
	 ~~r   async_postprocessacceptedcommentlast_annotation_historyremove_from_queueresult
started_atr    r(   r)   r*   r+   r,   r-   r.   c       	         b    | j                   j                  |||||||||		      }
|
j                  S )a1  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Create a review for a specific annotation ID. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        annotation : int
            Corresponding annotation

        async_postprocess : typing.Optional[bool]
            Whether to postprocess the review asynchronously.

        accepted : typing.Optional[bool]
            Accepted or rejected (if false) flag

        comment : typing.Optional[str]

        last_annotation_history : typing.Optional[int]

        remove_from_queue : typing.Optional[bool]

        result : typing.Optional[typing.Any]

        started_at : typing.Optional[dt.datetime]

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AnnotationReview


        Examples
        --------
        from label_studio_sdk import LabelStudio

        client = LabelStudio(
            api_key="YOUR_API_KEY",
        )
        client.annotation_reviews.create(
            annotation=1,
        )
        	r   r(   r)   r*   r+   r,   r-   r.   r    r   creater$   r   r   r(   r)   r*   r+   r,   r-   r.   r    r&   s              r   r2   zAnnotationReviewsClient.createQ   sG    | $$++!/$;/!+ , 

	 ~~r   r    idc                T    | j                   j                  ||      }|j                  S )a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Retrieve a specific review by ID for an annotation. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        id : int
            A unique integer value identifying this annotation review.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AnnotationReview


        Examples
        --------
        from label_studio_sdk import LabelStudio

        client = LabelStudio(
            api_key="YOUR_API_KEY",
        )
        client.annotation_reviews.get(
            id=1,
        )
        r4   r   getr$   r   r5   r    r&   s       r   r8   zAnnotationReviewsClient.get   s*    D $$((_(M	~~r   c                T    | j                   j                  ||      }|j                  S )a_  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Delete a review by ID. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        id : int
            A unique integer value identifying this annotation review.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        None

        Examples
        --------
        from label_studio_sdk import LabelStudio

        client = LabelStudio(
            api_key="YOUR_API_KEY",
        )
        client.annotation_reviews.delete(
            id=1,
        )
        r4   r   deleter$   r9   s       r   r<   zAnnotationReviewsClient.delete   s*    B $$++B+P	~~r   r)   r   r*   r+   r,   r-   r.   r    c                b    | j                   j                  |||||||||		      }
|
j                  S )a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Update a specific review by ID. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        id : int
            A unique integer value identifying this annotation review.

        accepted : typing.Optional[bool]
            Accepted or rejected (if false) flag

        annotation : typing.Optional[int]
            Corresponding annotation

        comment : typing.Optional[str]

        last_annotation_history : typing.Optional[int]

        remove_from_queue : typing.Optional[bool]

        result : typing.Optional[typing.Any]

        started_at : typing.Optional[dt.datetime]

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AnnotationReview


        Examples
        --------
        from label_studio_sdk import LabelStudio

        client = LabelStudio(
            api_key="YOUR_API_KEY",
        )
        client.annotation_reviews.update(
            id=1,
        )
        r=   r   updater$   r   r5   r)   r   r*   r+   r,   r-   r.   r    r&   s              r   r@   zAnnotationReviewsClient.update   sG    | $$++!$;/!+ , 

	 ~~r   )__name__
__module____qualname__r   r   propertyr
   r   typingOptionalintstrr   Listr   r#   OMITboolAnydtdatetimer2   r8   r<   r@    r   r   r   r      s   U*; U  #=     ,08<)-;?1 OOC(1 "(!5	1
 //#&1  81 
%	&1n 48*.(,8<37.237;?I I "??40	I
 //$'I %I "(!5I "??40I 

+I OOBKK0I  8I 
IV RV #c #v~/N #Zj #J UY " "&//.2Q "]a "P +/+/(,8<37.237;?II //$'	I
 OOC(I %I "(!5I "??40I 

+I OOBKK0I  8I 
Ir   r   c                      e Zd ZdefdZedefd       Zddddddej                  e
   dej                  e
   d	ej                  e   d
ej                  e   dej                  e   f
dZdeeeeeeddde
dej                  e   dej                  e   dej                  e   dej                  e
   dej                  e   dej                  ej$                     dej                  ej(                     d
ej                  e   defdZddde
d
ej                  e   defdZddde
d
ej                  e   ddfdZeeeeeeeddde
dej                  e   dej                  e
   dej                  e   dej                  e
   dej                  e   dej                  ej$                     dej                  ej(                     d
ej                  e   defdZy)AsyncAnnotationReviewsClientr   c                &    t        |      | _        y r   )r	   r   r   s     r   r   z%AsyncAnnotationReviewsClient.__init__2  s    :.Yr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawAnnotationReviewsClient
        r   r   s    r   r   z.AsyncAnnotationReviewsClient.with_raw_response5  r   r   Nr   r   r   r   r    c                t   K   | j                   j                  ||||       d{   }|j                  S 7 w)aO  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        List all reviews for a specific annotation ID. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        annotation : typing.Optional[int]

        annotation_task_project : typing.Optional[int]

        ordering : typing.Optional[str]
            Which field to use when ordering the results.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        typing.List[AnnotationReview]


        Examples
        --------
        import asyncio

        from label_studio_sdk import AsyncLabelStudio

        client = AsyncLabelStudio(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.annotation_reviews.list()


        asyncio.run(main())
        r   Nr"   r%   s         r   r#   z!AsyncAnnotationReviewsClient.list@  sF     f **//!$;+	 0 
 
	 ~~
s   #868r'   r(   r)   r*   r+   r,   r-   r.   c       	         ~   K   | j                   j                  |||||||||		       d{   }
|
j                  S 7 w)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Create a review for a specific annotation ID. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        annotation : int
            Corresponding annotation

        async_postprocess : typing.Optional[bool]
            Whether to postprocess the review asynchronously.

        accepted : typing.Optional[bool]
            Accepted or rejected (if false) flag

        comment : typing.Optional[str]

        last_annotation_history : typing.Optional[int]

        remove_from_queue : typing.Optional[bool]

        result : typing.Optional[typing.Any]

        started_at : typing.Optional[dt.datetime]

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AnnotationReview


        Examples
        --------
        import asyncio

        from label_studio_sdk import AsyncLabelStudio

        client = AsyncLabelStudio(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.annotation_reviews.create(
                annotation=1,
            )


        asyncio.run(main())
        r0   Nr1   r3   s              r   r2   z#AsyncAnnotationReviewsClient.create{  sU     L **11!/$;/!+ 2 

 

	 ~~

   (=;=r4   r5   c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Retrieve a specific review by ID for an annotation. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        id : int
            A unique integer value identifying this annotation review.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AnnotationReview


        Examples
        --------
        import asyncio

        from label_studio_sdk import AsyncLabelStudio

        client = AsyncLabelStudio(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.annotation_reviews.get(
                id=1,
            )


        asyncio.run(main())
        r4   Nr7   r9   s       r   r8   z AsyncAnnotationReviewsClient.get  s7     T **..r?.SS	~~ T   !646c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Delete a review by ID. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        id : int
            A unique integer value identifying this annotation review.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        None

        Examples
        --------
        import asyncio

        from label_studio_sdk import AsyncLabelStudio

        client = AsyncLabelStudio(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.annotation_reviews.delete(
                id=1,
            )


        asyncio.run(main())
        r4   Nr;   r9   s       r   r<   z#AsyncAnnotationReviewsClient.delete  s7     R **11"o1VV	~~ WrY   r=   c                ~   K   | j                   j                  |||||||||		       d{   }
|
j                  S 7 w)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Update a specific review by ID. Only allowed for organizations with reviewing features enabled.

        Parameters
        ----------
        id : int
            A unique integer value identifying this annotation review.

        accepted : typing.Optional[bool]
            Accepted or rejected (if false) flag

        annotation : typing.Optional[int]
            Corresponding annotation

        comment : typing.Optional[str]

        last_annotation_history : typing.Optional[int]

        remove_from_queue : typing.Optional[bool]

        result : typing.Optional[typing.Any]

        started_at : typing.Optional[dt.datetime]

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AnnotationReview


        Examples
        --------
        import asyncio

        from label_studio_sdk import AsyncLabelStudio

        client = AsyncLabelStudio(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.annotation_reviews.update(
                id=1,
            )


        asyncio.run(main())
        r=   Nr?   rA   s              r   r@   z#AsyncAnnotationReviewsClient.update'  sU     L **11!$;/!+ 2 

 

	 ~~

rW   )rB   rC   rD   r   r   rE   r	   r   rF   rG   rH   rI   r   rJ   r   r#   rK   rL   rM   rN   rO   r2   r8   r<   r@   rP   r   r   rR   rR   1  s   Z*< Z  #B     ,08<)-;?9 OOC(9 "(!5	9
 //#&9  89 
%	&9~ 48*.(,8<37.237;?Q Q "??40	Q
 //$'Q %Q "(!5Q "??40Q 

+Q OOBKK0Q  8Q 
Qf X\ +C +V__^5T +`p +Z [_ *s *8W *cg *` +/+/(,8<37.237;?QQ //$'	Q
 OOC(Q %Q "(!5Q "??40Q 

+Q OOBKK0Q  8Q 
Qr   rR   )rO   rN   rF   core.client_wrapperr   r   core.request_optionsr   types.annotation_reviewr   
raw_clientr	   r
   castrM   rK   r   rR   rP   r   r   <module>ra      sJ      G 1 6 S v{{6::s#_ _D	G Gr   