Skip to content

Commit 7286307

Browse files
committed
Complete projects module types with quality preset and source details
1 parent ccee94e commit 7286307

3 files changed

+65
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset = typing.Union[
6+
typing.Literal["standard", "high", "highest", "ultra", "ultra_lossless"], typing.Any
7+
]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
from ...types.podcast_text_source import PodcastTextSource
5+
from ...types.podcast_url_source import PodcastUrlSource
6+
from .body_create_podcast_v_1_projects_podcast_create_post_source_item import (
7+
BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem,
8+
)
9+
10+
BodyCreatePodcastV1ProjectsPodcastCreatePostSource = typing.Union[
11+
PodcastTextSource, PodcastUrlSource, typing.List[BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem]
12+
]
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from __future__ import annotations
4+
from ...core.unchecked_base_model import UncheckedBaseModel
5+
import typing
6+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
7+
import pydantic
8+
import typing_extensions
9+
from ...core.unchecked_base_model import UnionMetadata
10+
11+
12+
class BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem_Text(UncheckedBaseModel):
13+
type: typing.Literal["text"] = "text"
14+
text: str
15+
16+
if IS_PYDANTIC_V2:
17+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
18+
else:
19+
20+
class Config:
21+
frozen = True
22+
smart_union = True
23+
extra = pydantic.Extra.allow
24+
25+
26+
class BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem_Url(UncheckedBaseModel):
27+
type: typing.Literal["url"] = "url"
28+
url: str
29+
30+
if IS_PYDANTIC_V2:
31+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
32+
else:
33+
34+
class Config:
35+
frozen = True
36+
smart_union = True
37+
extra = pydantic.Extra.allow
38+
39+
40+
BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem = typing_extensions.Annotated[
41+
typing.Union[
42+
BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem_Text,
43+
BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem_Url,
44+
],
45+
UnionMetadata(discriminant="type"),
46+
]

0 commit comments

Comments
 (0)