Source code for reminix.client.resources.project

"""Auto-generated operation classes.

This file is auto-generated by the operators generator.
Do not edit this file manually.
"""

from typing import TYPE_CHECKING, Any, Dict, List, Optional

from reminix.client.types import (
    Project as ProjectModel
)
from reminix.client.utils.pagination import PaginatedResponse

if TYPE_CHECKING:
    from reminix.client.client import Client


[docs] class Project: """Operations for project."""
[docs] def __init__(self, client: "Client") -> None: """Initialize Project operations. Args: client: The Reminix client instance """ self._client = client
[docs] async def get( self ) -> ProjectModel: """Get current project. Returns the project associated with the API key used for authentication. The project contains metadata about your organization's configuration, including: - Project ID and organization ID - Project name and slug - Creation and update timestamps This endpoint is useful for verifying your API key is valid and retrieving project details. Returns: Project: Project found Example:: result = await client.project.get() print(result) Raises: AuthenticationError: Unauthorized - Invalid or missing API key APIError: Project not found NetworkError: If a network error occurs""" response = await self._client.request("GET", "/project") return ProjectModel(**response)