syncsdk 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {syncsdk-0.2.4 → syncsdk-0.2.5}/PKG-INFO +1 -1
- {syncsdk-0.2.4 → syncsdk-0.2.5}/pyproject.toml +1 -1
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/generation.py +6 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/generation_segment.py +5 -3
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/segment_audio_input.py +6 -2
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/client_wrapper.py +2 -2
- {syncsdk-0.2.4 → syncsdk-0.2.5}/README.md +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/batch/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/batch/client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/batch/raw_client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/errors/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/errors/bad_request_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/errors/internal_server_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/errors/not_found_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/errors/payment_required_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/errors/too_many_requests_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/errors/unauthorized_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/active_speaker.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/audio.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/batch_id.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/batch_metrics.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/batch_response.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/batch_status.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/create_batch_response.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/create_generation_dto.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/eleven_labs.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/estimated_generation_cost.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/generation_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/generation_error_message.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/generation_id.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/generation_options.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/generation_status.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/input.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/model.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/segment_frames.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/segment_secs.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/sync_mode.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/tts.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/tts_provider_config.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/validation_response.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/common/types/video.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/api_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/datetime_utils.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/file.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/http_client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/http_response.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/jsonable_encoder.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/pydantic_utilities.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/query_encoder.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/remove_none_from_dict.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/request_options.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/serialization.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/core/unchecked_base_model.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/environment.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/generations/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/generations/client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/generations/raw_client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/py.typed +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/version.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/webhooks/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/webhooks/types/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/webhooks/types/generation_notification.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.5}/src/sync/webhooks/types/webhook_status.py +0 -0
|
@@ -10,6 +10,7 @@ from .generation_id import GenerationId
|
|
|
10
10
|
from .input import Input
|
|
11
11
|
from .model import Model
|
|
12
12
|
from .generation_options import GenerationOptions
|
|
13
|
+
from .generation_segment import GenerationSegment
|
|
13
14
|
from .generation_status import GenerationStatus
|
|
14
15
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
15
16
|
|
|
@@ -60,6 +61,11 @@ class Generation(UncheckedBaseModel):
|
|
|
60
61
|
The URL of the output media.
|
|
61
62
|
"""
|
|
62
63
|
|
|
64
|
+
segments: typing.Optional[typing.List[GenerationSegment]] = pydantic.Field(default=None)
|
|
65
|
+
"""
|
|
66
|
+
The segments of the generation.
|
|
67
|
+
"""
|
|
68
|
+
|
|
63
69
|
segment_output_url: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="segmentOutputUrl")] = (
|
|
64
70
|
pydantic.Field(default=None)
|
|
65
71
|
)
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing_extensions
|
|
5
|
+
from ...core.serialization import FieldMetadata
|
|
4
6
|
import pydantic
|
|
5
7
|
from .segment_audio_input import SegmentAudioInput
|
|
6
8
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
@@ -12,17 +14,17 @@ class GenerationSegment(UncheckedBaseModel):
|
|
|
12
14
|
Defines a video segment with its corresponding audio input. Used for multi-segment lipsync generations where different audio tracks can be applied to different video segments.
|
|
13
15
|
"""
|
|
14
16
|
|
|
15
|
-
start_time: float = pydantic.Field()
|
|
17
|
+
start_time: typing_extensions.Annotated[float, FieldMetadata(alias="startTime")] = pydantic.Field()
|
|
16
18
|
"""
|
|
17
19
|
Segment start time in seconds
|
|
18
20
|
"""
|
|
19
21
|
|
|
20
|
-
end_time: float = pydantic.Field()
|
|
22
|
+
end_time: typing_extensions.Annotated[float, FieldMetadata(alias="endTime")] = pydantic.Field()
|
|
21
23
|
"""
|
|
22
24
|
Segment end time in seconds
|
|
23
25
|
"""
|
|
24
26
|
|
|
25
|
-
audio_input: SegmentAudioInput = pydantic.Field()
|
|
27
|
+
audio_input: typing_extensions.Annotated[SegmentAudioInput, FieldMetadata(alias="audioInput")] = pydantic.Field()
|
|
26
28
|
"""
|
|
27
29
|
Audio configuration for this segment
|
|
28
30
|
"""
|
|
@@ -18,12 +18,16 @@ class SegmentAudioInput(UncheckedBaseModel):
|
|
|
18
18
|
Reference ID of the audio/text-to-speech input to use for this segment
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
start_time: typing.Optional[float] = pydantic.Field(
|
|
21
|
+
start_time: typing_extensions.Annotated[typing.Optional[float], FieldMetadata(alias="startTime")] = pydantic.Field(
|
|
22
|
+
default=None
|
|
23
|
+
)
|
|
22
24
|
"""
|
|
23
25
|
Optional start time (in seconds) to crop the referenced audio. When specified, end_time must also be provided.
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
|
-
end_time: typing.Optional[float] = pydantic.Field(
|
|
28
|
+
end_time: typing_extensions.Annotated[typing.Optional[float], FieldMetadata(alias="endTime")] = pydantic.Field(
|
|
29
|
+
default=None
|
|
30
|
+
)
|
|
27
31
|
"""
|
|
28
32
|
Optional end time (in seconds) to crop the referenced audio. When specified, start_time must also be provided.
|
|
29
33
|
"""
|
|
@@ -14,10 +14,10 @@ class BaseClientWrapper:
|
|
|
14
14
|
|
|
15
15
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
|
-
"User-Agent": "syncsdk/0.2.
|
|
17
|
+
"User-Agent": "syncsdk/0.2.5",
|
|
18
18
|
"X-Fern-Language": "Python",
|
|
19
19
|
"X-Fern-SDK-Name": "syncsdk",
|
|
20
|
-
"X-Fern-SDK-Version": "0.2.
|
|
20
|
+
"X-Fern-SDK-Version": "0.2.5",
|
|
21
21
|
}
|
|
22
22
|
headers["x-api-key"] = self.api_key
|
|
23
23
|
return headers
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|