mirror of
https://github.com/FlipsideCrypto/sdk.git
synced 2026-02-06 10:46:43 +00:00
22 lines
569 B
Python
22 lines
569 B
Python
from typing import Optional, Union
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from .api_response import ApiResponse
|
|
|
|
|
|
class CreateQueryJson(BaseModel):
|
|
token: str = Field(
|
|
None, description="The server-side token of the query being executed."
|
|
)
|
|
errors: Union[Optional[str], None] = Field(
|
|
False, description="Error that occured when creating the query."
|
|
)
|
|
cached: Optional[bool] = Field(
|
|
False, description="Whether the query is cached or not."
|
|
)
|
|
|
|
|
|
class CreateQueryResp(ApiResponse):
|
|
data: Union[CreateQueryJson, None]
|