syncsdk 0.1.0__tar.gz → 0.1.2__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.
Files changed (54) hide show
  1. {syncsdk-0.1.0 → syncsdk-0.1.2}/PKG-INFO +5 -1
  2. {syncsdk-0.1.0 → syncsdk-0.1.2}/README.md +4 -0
  3. {syncsdk-0.1.0 → syncsdk-0.1.2}/pyproject.toml +1 -1
  4. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/__init__.py +2 -0
  5. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/__init__.py +2 -0
  6. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/__init__.py +2 -0
  7. syncsdk-0.1.0/src/sync/common/types/tts_provider_config.py → syncsdk-0.1.2/src/sync/common/types/eleven_labs.py +6 -10
  8. syncsdk-0.1.2/src/sync/common/types/generation_status.py +5 -0
  9. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/segment_frames.py +1 -1
  10. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/segment_secs.py +1 -1
  11. syncsdk-0.1.2/src/sync/common/types/tts_provider_config.py +6 -0
  12. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/client_wrapper.py +2 -2
  13. syncsdk-0.1.0/src/sync/common/types/generation_status.py +0 -7
  14. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/client.py +0 -0
  15. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/errors/__init__.py +0 -0
  16. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/errors/bad_request_error.py +0 -0
  17. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/errors/internal_server_error.py +0 -0
  18. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/errors/not_found_error.py +0 -0
  19. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/errors/unauthorized_error.py +0 -0
  20. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/audio.py +0 -0
  21. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/create_generation_dto.py +0 -0
  22. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/estimated_generation_cost.py +0 -0
  23. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/generation.py +0 -0
  24. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/generation_error.py +0 -0
  25. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/generation_error_message.py +0 -0
  26. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/generation_id.py +0 -0
  27. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/generation_options.py +0 -0
  28. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/input.py +0 -0
  29. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/model.py +0 -0
  30. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/sync_mode.py +0 -0
  31. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/tts.py +0 -0
  32. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/common/types/video.py +0 -0
  33. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/__init__.py +0 -0
  34. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/api_error.py +0 -0
  35. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/datetime_utils.py +0 -0
  36. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/file.py +0 -0
  37. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/http_client.py +0 -0
  38. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/http_response.py +0 -0
  39. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/jsonable_encoder.py +0 -0
  40. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/pydantic_utilities.py +0 -0
  41. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/query_encoder.py +0 -0
  42. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/remove_none_from_dict.py +0 -0
  43. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/request_options.py +0 -0
  44. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/core/serialization.py +0 -0
  45. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/environment.py +0 -0
  46. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/generate/__init__.py +0 -0
  47. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/generate/client.py +0 -0
  48. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/generate/raw_client.py +0 -0
  49. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/py.typed +0 -0
  50. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/version.py +0 -0
  51. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/webhooks/__init__.py +0 -0
  52. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/webhooks/types/__init__.py +0 -0
  53. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/webhooks/types/generation_notification.py +0 -0
  54. {syncsdk-0.1.0 → syncsdk-0.1.2}/src/sync/webhooks/types/webhook_status.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: syncsdk
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -31,6 +31,10 @@ Description-Content-Type: text/markdown
31
31
 
32
32
  The Sync Python library provides convenient access to the Sync API from Python.
33
33
 
34
+ ## Documentation
35
+
36
+ API reference documentation is available [here](https://docs.sync.so/api-reference).
37
+
34
38
  ## Installation
35
39
 
36
40
  ```sh
@@ -5,6 +5,10 @@
5
5
 
6
6
  The Sync Python library provides convenient access to the Sync API from Python.
7
7
 
8
+ ## Documentation
9
+
10
+ API reference documentation is available [here](https://docs.sync.so/api-reference).
11
+
8
12
  ## Installation
9
13
 
10
14
  ```sh
@@ -3,7 +3,7 @@ name = "syncsdk"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "syncsdk"
6
- version = "0.1.0"
6
+ version = "0.1.2"
7
7
  description = ""
8
8
  readme = "README.md"
9
9
  authors = []
@@ -6,6 +6,7 @@ from .common import (
6
6
  Audio,
7
7
  BadRequestError,
8
8
  CreateGenerationDto,
9
+ ElevenLabs,
9
10
  EstimatedGenerationCost,
10
11
  Generation,
11
12
  GenerationError,
@@ -34,6 +35,7 @@ __all__ = [
34
35
  "Audio",
35
36
  "BadRequestError",
36
37
  "CreateGenerationDto",
38
+ "ElevenLabs",
37
39
  "EstimatedGenerationCost",
38
40
  "Generation",
39
41
  "GenerationError",
@@ -3,6 +3,7 @@
3
3
  from .types import (
4
4
  Audio,
5
5
  CreateGenerationDto,
6
+ ElevenLabs,
6
7
  EstimatedGenerationCost,
7
8
  Generation,
8
9
  GenerationError,
@@ -25,6 +26,7 @@ __all__ = [
25
26
  "Audio",
26
27
  "BadRequestError",
27
28
  "CreateGenerationDto",
29
+ "ElevenLabs",
28
30
  "EstimatedGenerationCost",
29
31
  "Generation",
30
32
  "GenerationError",
@@ -2,6 +2,7 @@
2
2
 
3
3
  from .audio import Audio
4
4
  from .create_generation_dto import CreateGenerationDto
5
+ from .eleven_labs import ElevenLabs
5
6
  from .estimated_generation_cost import EstimatedGenerationCost
6
7
  from .generation import Generation
7
8
  from .generation_error import GenerationError
@@ -21,6 +22,7 @@ from .video import Video
21
22
  __all__ = [
22
23
  "Audio",
23
24
  "CreateGenerationDto",
25
+ "ElevenLabs",
24
26
  "EstimatedGenerationCost",
25
27
  "Generation",
26
28
  "GenerationError",
@@ -1,17 +1,18 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from ...core.pydantic_utilities import UniversalBaseModel
4
- import pydantic
4
+ import typing
5
5
  import typing_extensions
6
6
  from ...core.serialization import FieldMetadata
7
+ import pydantic
7
8
  from ...core.pydantic_utilities import IS_PYDANTIC_V2
8
- import typing
9
9
 
10
10
 
11
- class TtsProviderConfig(UniversalBaseModel):
12
- name: str = pydantic.Field()
11
+ class ElevenLabs(UniversalBaseModel):
12
+ name: typing.Literal["elevenlabs"] = "elevenlabs"
13
+ voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId")] = pydantic.Field()
13
14
  """
14
- name of the provider
15
+ id of the voice to be used for generation
15
16
  """
16
17
 
17
18
  script: str = pydantic.Field()
@@ -19,11 +20,6 @@ class TtsProviderConfig(UniversalBaseModel):
19
20
  script to be used for generation
20
21
  """
21
22
 
22
- voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId")] = pydantic.Field()
23
- """
24
- id of the voice to be used for generation
25
- """
26
-
27
23
  if IS_PYDANTIC_V2:
28
24
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
29
25
  else:
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ GenerationStatus = typing.Union[typing.Literal["PENDING", "PROCESSING", "COMPLETED", "FAILED"], typing.Any]
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- SegmentFrames = typing.List[int]
5
+ SegmentFrames = typing.List[typing.List[int]]
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- SegmentSecs = typing.List[float]
5
+ SegmentSecs = typing.List[typing.List[float]]
@@ -0,0 +1,6 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .eleven_labs import ElevenLabs
5
+
6
+ TtsProviderConfig = typing.Union[ElevenLabs]
@@ -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.1.0",
17
+ "User-Agent": "syncsdk/0.1.2",
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "syncsdk",
20
- "X-Fern-SDK-Version": "0.1.0",
20
+ "X-Fern-SDK-Version": "0.1.2",
21
21
  }
22
22
  headers["x-api-key"] = self.api_key
23
23
  return headers
@@ -1,7 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- GenerationStatus = typing.Union[
6
- typing.Literal["PENDING", "PROCESSING", "COMPLETED", "FAILED", "REJECTED", "CANCELED"], typing.Any
7
- ]
File without changes
File without changes
File without changes
File without changes
File without changes