Skip to content

Commit de44e69

Browse files
committed
Bulk add various type definitions used across the project
1 parent 76134c2 commit de44e69

File tree

265 files changed

+6101
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+6101
-0
lines changed

src/neuralaudio/types/__init__.py

Lines changed: 609 additions & 0 deletions
Large diffs are not rendered by default.

src/neuralaudio/types/accent.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
Accent = typing.Union[typing.Literal["british", "american", "african", "australian", "indian"], typing.Any]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.unchecked_base_model import UncheckedBaseModel
4+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
5+
import typing
6+
import pydantic
7+
8+
9+
class AddAgentSecretResponseModel(UncheckedBaseModel):
10+
id: str
11+
name: str
12+
13+
if IS_PYDANTIC_V2:
14+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15+
else:
16+
17+
class Config:
18+
frozen = True
19+
smart_union = True
20+
extra = pydantic.Extra.allow
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.unchecked_base_model import UncheckedBaseModel
4+
from .chapter_with_content_response_model import ChapterWithContentResponseModel
5+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
6+
import typing
7+
import pydantic
8+
9+
10+
class AddChapterResponseModel(UncheckedBaseModel):
11+
chapter: ChapterWithContentResponseModel
12+
13+
if IS_PYDANTIC_V2:
14+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15+
else:
16+
17+
class Config:
18+
frozen = True
19+
smart_union = True
20+
extra = pydantic.Extra.allow
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.unchecked_base_model import UncheckedBaseModel
4+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
5+
import typing
6+
import pydantic
7+
8+
9+
class AddKnowledgeBaseResponseModel(UncheckedBaseModel):
10+
id: str
11+
12+
if IS_PYDANTIC_V2:
13+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14+
else:
15+
16+
class Config:
17+
frozen = True
18+
smart_union = True
19+
extra = pydantic.Extra.allow
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.unchecked_base_model import UncheckedBaseModel
4+
from .project_response import ProjectResponse
5+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
6+
import typing
7+
import pydantic
8+
9+
10+
class AddProjectResponseModel(UncheckedBaseModel):
11+
project: ProjectResponse
12+
13+
if IS_PYDANTIC_V2:
14+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15+
else:
16+
17+
class Config:
18+
frozen = True
19+
smart_union = True
20+
extra = pydantic.Extra.allow
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing
5+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
6+
import pydantic
7+
8+
9+
class AddPronunciationDictionaryResponseModel(UncheckedBaseModel):
10+
id: str
11+
name: str
12+
created_by: str
13+
creation_time_unix: int
14+
version_id: str
15+
description: typing.Optional[str] = None
16+
17+
if IS_PYDANTIC_V2:
18+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
19+
else:
20+
21+
class Config:
22+
frozen = True
23+
smart_union = True
24+
extra = pydantic.Extra.allow
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.unchecked_base_model import UncheckedBaseModel
4+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
5+
import typing
6+
import pydantic
7+
8+
9+
class AddPronunciationDictionaryRulesResponseModel(UncheckedBaseModel):
10+
id: str
11+
version_id: str
12+
13+
if IS_PYDANTIC_V2:
14+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15+
else:
16+
17+
class Config:
18+
frozen = True
19+
smart_union = True
20+
extra = pydantic.Extra.allow
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.unchecked_base_model import UncheckedBaseModel
4+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
5+
import typing
6+
import pydantic
7+
8+
9+
class AddVoiceIvcResponseModel(UncheckedBaseModel):
10+
voice_id: str
11+
requires_verification: bool
12+
13+
if IS_PYDANTIC_V2:
14+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15+
else:
16+
17+
class Config:
18+
frozen = True
19+
smart_union = True
20+
extra = pydantic.Extra.allow
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.unchecked_base_model import UncheckedBaseModel
4+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
5+
import typing
6+
import pydantic
7+
8+
9+
class AddVoiceResponseModel(UncheckedBaseModel):
10+
voice_id: str
11+
12+
if IS_PYDANTIC_V2:
13+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14+
else:
15+
16+
class Config:
17+
frozen = True
18+
smart_union = True
19+
extra = pydantic.Extra.allow

0 commit comments

Comments
 (0)