magic_hour 0.10.0__py3-none-any.whl → 0.12.0__py3-none-any.whl

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.

Potentially problematic release.


This version of magic_hour might be problematic. Click here for more details.

Files changed (102) hide show
  1. magic_hour/environment.py +1 -1
  2. magic_hour/resources/v1/ai_clothes_changer/client.py +8 -8
  3. magic_hour/resources/v1/ai_headshot_generator/client.py +12 -12
  4. magic_hour/resources/v1/ai_image_generator/client.py +10 -10
  5. magic_hour/resources/v1/ai_image_upscaler/client.py +12 -12
  6. magic_hour/resources/v1/ai_photo_editor/client.py +12 -12
  7. magic_hour/resources/v1/ai_qr_code_generator/client.py +10 -10
  8. magic_hour/resources/v1/ai_talking_photo/README.md +43 -0
  9. magic_hour/resources/v1/ai_talking_photo/__init__.py +4 -0
  10. magic_hour/resources/v1/ai_talking_photo/client.py +147 -0
  11. magic_hour/resources/v1/animation/client.py +10 -10
  12. magic_hour/resources/v1/client.py +6 -0
  13. magic_hour/resources/v1/face_swap/client.py +8 -8
  14. magic_hour/resources/v1/face_swap_photo/client.py +8 -8
  15. magic_hour/resources/v1/files/upload_urls/README.md +4 -4
  16. magic_hour/resources/v1/files/upload_urls/client.py +14 -12
  17. magic_hour/resources/v1/image_background_remover/client.py +8 -8
  18. magic_hour/resources/v1/image_projects/client.py +4 -4
  19. magic_hour/resources/v1/image_to_video/client.py +12 -12
  20. magic_hour/resources/v1/lip_sync/client.py +8 -8
  21. magic_hour/resources/v1/text_to_video/client.py +10 -10
  22. magic_hour/resources/v1/video_projects/client.py +4 -4
  23. magic_hour/resources/v1/video_to_video/client.py +12 -12
  24. magic_hour/types/models/__init__.py +53 -51
  25. magic_hour/types/models/{post_v1_ai_clothes_changer_response.py → v1_ai_clothes_changer_create_response.py} +1 -1
  26. magic_hour/types/models/v1_ai_headshot_generator_create_response.py +25 -0
  27. magic_hour/types/models/{post_v1_ai_photo_editor_response.py → v1_ai_image_generator_create_response.py} +1 -1
  28. magic_hour/types/models/{post_v1_ai_image_generator_response.py → v1_ai_image_upscaler_create_response.py} +1 -1
  29. magic_hour/types/models/{post_v1_face_swap_photo_response.py → v1_ai_photo_editor_create_response.py} +1 -1
  30. magic_hour/types/models/{post_v1_ai_headshot_generator_response.py → v1_ai_qr_code_generator_create_response.py} +1 -1
  31. magic_hour/types/models/v1_ai_talking_photo_create_response.py +25 -0
  32. magic_hour/types/models/{post_v1_text_to_video_response.py → v1_animation_create_response.py} +1 -1
  33. magic_hour/types/models/{post_v1_face_swap_response.py → v1_face_swap_create_response.py} +1 -1
  34. magic_hour/types/models/{post_v1_ai_image_upscaler_response.py → v1_face_swap_photo_create_response.py} +1 -1
  35. magic_hour/types/models/v1_files_upload_urls_create_response.py +21 -0
  36. magic_hour/types/models/{post_v1_files_upload_urls_response_items_item.py → v1_files_upload_urls_create_response_items_item.py} +2 -2
  37. magic_hour/types/models/v1_image_background_remover_create_response.py +25 -0
  38. magic_hour/types/models/{get_v1_image_projects_id_response.py → v1_image_projects_get_response.py} +7 -7
  39. magic_hour/types/models/{get_v1_image_projects_id_response_downloads_item.py → v1_image_projects_get_response_downloads_item.py} +1 -1
  40. magic_hour/types/models/{get_v1_video_projects_id_response_error.py → v1_image_projects_get_response_error.py} +2 -2
  41. magic_hour/types/models/{post_v1_lip_sync_response.py → v1_image_to_video_create_response.py} +1 -1
  42. magic_hour/types/models/{post_v1_animation_response.py → v1_lip_sync_create_response.py} +1 -1
  43. magic_hour/types/models/{post_v1_image_to_video_response.py → v1_text_to_video_create_response.py} +1 -1
  44. magic_hour/types/models/{get_v1_video_projects_id_response.py → v1_video_projects_get_response.py} +10 -11
  45. magic_hour/types/models/{get_v1_video_projects_id_response_download.py → v1_video_projects_get_response_download.py} +1 -1
  46. magic_hour/types/models/{get_v1_video_projects_id_response_downloads_item.py → v1_video_projects_get_response_downloads_item.py} +1 -1
  47. magic_hour/types/models/{get_v1_image_projects_id_response_error.py → v1_video_projects_get_response_error.py} +2 -2
  48. magic_hour/types/models/v1_video_to_video_create_response.py +25 -0
  49. magic_hour/types/params/__init__.py +200 -182
  50. magic_hour/types/params/v1_ai_clothes_changer_create_body.py +40 -0
  51. magic_hour/types/params/{post_v1_ai_clothes_changer_body_assets.py → v1_ai_clothes_changer_create_body_assets.py} +3 -3
  52. magic_hour/types/params/v1_ai_headshot_generator_create_body.py +49 -0
  53. magic_hour/types/params/{post_v1_ai_headshot_generator_body_assets.py → v1_ai_headshot_generator_create_body_assets.py} +3 -3
  54. magic_hour/types/params/{post_v1_ai_headshot_generator_body_style.py → v1_ai_headshot_generator_create_body_style.py} +4 -4
  55. magic_hour/types/params/{post_v1_ai_image_generator_body.py → v1_ai_image_generator_create_body.py} +9 -9
  56. magic_hour/types/params/{post_v1_ai_image_generator_body_style.py → v1_ai_image_generator_create_body_style.py} +4 -4
  57. magic_hour/types/params/v1_ai_image_upscaler_create_body.py +57 -0
  58. magic_hour/types/params/{post_v1_ai_image_upscaler_body_assets.py → v1_ai_image_upscaler_create_body_assets.py} +3 -3
  59. magic_hour/types/params/{post_v1_ai_image_upscaler_body_style.py → v1_ai_image_upscaler_create_body_style.py} +4 -4
  60. magic_hour/types/params/{post_v1_ai_photo_editor_body.py → v1_ai_photo_editor_create_body.py} +14 -14
  61. magic_hour/types/params/{post_v1_ai_photo_editor_body_assets.py → v1_ai_photo_editor_create_body_assets.py} +3 -3
  62. magic_hour/types/params/{post_v1_ai_photo_editor_body_style.py → v1_ai_photo_editor_create_body_style.py} +4 -4
  63. magic_hour/types/params/{post_v1_ai_qr_code_generator_body.py → v1_ai_qr_code_generator_create_body.py} +9 -9
  64. magic_hour/types/params/{post_v1_ai_qr_code_generator_body_style.py → v1_ai_qr_code_generator_create_body_style.py} +4 -4
  65. magic_hour/types/params/v1_ai_talking_photo_create_body.py +56 -0
  66. magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py +36 -0
  67. magic_hour/types/params/{post_v1_animation_body.py → v1_animation_create_body.py} +14 -14
  68. magic_hour/types/params/{post_v1_animation_body_assets.py → v1_animation_create_body_assets.py} +3 -3
  69. magic_hour/types/params/{post_v1_animation_body_style.py → v1_animation_create_body_style.py} +3 -3
  70. magic_hour/types/params/{post_v1_face_swap_body.py → v1_face_swap_create_body.py} +9 -9
  71. magic_hour/types/params/{post_v1_face_swap_body_assets.py → v1_face_swap_create_body_assets.py} +3 -3
  72. magic_hour/types/params/v1_face_swap_photo_create_body.py +40 -0
  73. magic_hour/types/params/{post_v1_face_swap_photo_body_assets.py → v1_face_swap_photo_create_body_assets.py} +3 -3
  74. magic_hour/types/params/v1_files_upload_urls_create_body.py +33 -0
  75. magic_hour/types/params/{post_v1_files_upload_urls_body_items_item.py → v1_files_upload_urls_create_body_items_item.py} +6 -6
  76. magic_hour/types/params/v1_image_background_remover_create_body.py +40 -0
  77. magic_hour/types/params/{post_v1_image_background_remover_body_assets.py → v1_image_background_remover_create_body_assets.py} +3 -3
  78. magic_hour/types/params/{post_v1_image_to_video_body.py → v1_image_to_video_create_body.py} +14 -14
  79. magic_hour/types/params/{post_v1_image_to_video_body_assets.py → v1_image_to_video_create_body_assets.py} +3 -3
  80. magic_hour/types/params/{post_v1_image_to_video_body_style.py → v1_image_to_video_create_body_style.py} +4 -4
  81. magic_hour/types/params/{post_v1_lip_sync_body.py → v1_lip_sync_create_body.py} +9 -9
  82. magic_hour/types/params/{post_v1_lip_sync_body_assets.py → v1_lip_sync_create_body_assets.py} +3 -3
  83. magic_hour/types/params/{post_v1_text_to_video_body.py → v1_text_to_video_create_body.py} +9 -9
  84. magic_hour/types/params/{post_v1_text_to_video_body_style.py → v1_text_to_video_create_body_style.py} +4 -4
  85. magic_hour/types/params/{post_v1_video_to_video_body.py → v1_video_to_video_create_body.py} +14 -14
  86. magic_hour/types/params/{post_v1_video_to_video_body_assets.py → v1_video_to_video_create_body_assets.py} +3 -3
  87. magic_hour/types/params/{post_v1_video_to_video_body_style.py → v1_video_to_video_create_body_style.py} +14 -4
  88. {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/METADATA +5 -1
  89. magic_hour-0.12.0.dist-info/RECORD +139 -0
  90. magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -25
  91. magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -21
  92. magic_hour/types/models/post_v1_image_background_remover_response.py +0 -25
  93. magic_hour/types/models/post_v1_video_to_video_response.py +0 -25
  94. magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -40
  95. magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -49
  96. magic_hour/types/params/post_v1_ai_image_upscaler_body.py +0 -57
  97. magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -40
  98. magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -31
  99. magic_hour/types/params/post_v1_image_background_remover_body.py +0 -40
  100. magic_hour-0.10.0.dist-info/RECORD +0 -133
  101. {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/LICENSE +0 -0
  102. {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/WHEEL +0 -0
@@ -2,18 +2,18 @@ import pydantic
2
2
  import typing
3
3
  import typing_extensions
4
4
 
5
- from .post_v1_face_swap_body_assets import (
6
- PostV1FaceSwapBodyAssets,
7
- _SerializerPostV1FaceSwapBodyAssets,
5
+ from .v1_face_swap_create_body_assets import (
6
+ V1FaceSwapCreateBodyAssets,
7
+ _SerializerV1FaceSwapCreateBodyAssets,
8
8
  )
9
9
 
10
10
 
11
- class PostV1FaceSwapBody(typing_extensions.TypedDict):
11
+ class V1FaceSwapCreateBody(typing_extensions.TypedDict):
12
12
  """
13
- PostV1FaceSwapBody
13
+ V1FaceSwapCreateBody
14
14
  """
15
15
 
16
- assets: typing_extensions.Required[PostV1FaceSwapBodyAssets]
16
+ assets: typing_extensions.Required[V1FaceSwapCreateBodyAssets]
17
17
  """
18
18
  Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
19
19
  """
@@ -44,9 +44,9 @@ class PostV1FaceSwapBody(typing_extensions.TypedDict):
44
44
  """
45
45
 
46
46
 
47
- class _SerializerPostV1FaceSwapBody(pydantic.BaseModel):
47
+ class _SerializerV1FaceSwapCreateBody(pydantic.BaseModel):
48
48
  """
49
- Serializer for PostV1FaceSwapBody handling case conversions
49
+ Serializer for V1FaceSwapCreateBody handling case conversions
50
50
  and file omissions as dictated by the API
51
51
  """
52
52
 
@@ -54,7 +54,7 @@ class _SerializerPostV1FaceSwapBody(pydantic.BaseModel):
54
54
  populate_by_name=True,
55
55
  )
56
56
 
57
- assets: _SerializerPostV1FaceSwapBodyAssets = pydantic.Field(
57
+ assets: _SerializerV1FaceSwapCreateBodyAssets = pydantic.Field(
58
58
  alias="assets",
59
59
  )
60
60
  end_seconds: float = pydantic.Field(
@@ -3,7 +3,7 @@ import typing
3
3
  import typing_extensions
4
4
 
5
5
 
6
- class PostV1FaceSwapBodyAssets(typing_extensions.TypedDict):
6
+ class V1FaceSwapCreateBodyAssets(typing_extensions.TypedDict):
7
7
  """
8
8
  Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
9
9
  """
@@ -28,9 +28,9 @@ class PostV1FaceSwapBodyAssets(typing_extensions.TypedDict):
28
28
  """
29
29
 
30
30
 
31
- class _SerializerPostV1FaceSwapBodyAssets(pydantic.BaseModel):
31
+ class _SerializerV1FaceSwapCreateBodyAssets(pydantic.BaseModel):
32
32
  """
33
- Serializer for PostV1FaceSwapBodyAssets handling case conversions
33
+ Serializer for V1FaceSwapCreateBodyAssets handling case conversions
34
34
  and file omissions as dictated by the API
35
35
  """
36
36
 
@@ -0,0 +1,40 @@
1
+ import pydantic
2
+ import typing
3
+ import typing_extensions
4
+
5
+ from .v1_face_swap_photo_create_body_assets import (
6
+ V1FaceSwapPhotoCreateBodyAssets,
7
+ _SerializerV1FaceSwapPhotoCreateBodyAssets,
8
+ )
9
+
10
+
11
+ class V1FaceSwapPhotoCreateBody(typing_extensions.TypedDict):
12
+ """
13
+ V1FaceSwapPhotoCreateBody
14
+ """
15
+
16
+ assets: typing_extensions.Required[V1FaceSwapPhotoCreateBodyAssets]
17
+ """
18
+ Provide the assets for face swap photo
19
+ """
20
+
21
+ name: typing_extensions.NotRequired[str]
22
+ """
23
+ The name of image
24
+ """
25
+
26
+
27
+ class _SerializerV1FaceSwapPhotoCreateBody(pydantic.BaseModel):
28
+ """
29
+ Serializer for V1FaceSwapPhotoCreateBody handling case conversions
30
+ and file omissions as dictated by the API
31
+ """
32
+
33
+ model_config = pydantic.ConfigDict(
34
+ populate_by_name=True,
35
+ )
36
+
37
+ assets: _SerializerV1FaceSwapPhotoCreateBodyAssets = pydantic.Field(
38
+ alias="assets",
39
+ )
40
+ name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
@@ -2,7 +2,7 @@ import pydantic
2
2
  import typing_extensions
3
3
 
4
4
 
5
- class PostV1FaceSwapPhotoBodyAssets(typing_extensions.TypedDict):
5
+ class V1FaceSwapPhotoCreateBodyAssets(typing_extensions.TypedDict):
6
6
  """
7
7
  Provide the assets for face swap photo
8
8
  """
@@ -18,9 +18,9 @@ class PostV1FaceSwapPhotoBodyAssets(typing_extensions.TypedDict):
18
18
  """
19
19
 
20
20
 
21
- class _SerializerPostV1FaceSwapPhotoBodyAssets(pydantic.BaseModel):
21
+ class _SerializerV1FaceSwapPhotoCreateBodyAssets(pydantic.BaseModel):
22
22
  """
23
- Serializer for PostV1FaceSwapPhotoBodyAssets handling case conversions
23
+ Serializer for V1FaceSwapPhotoCreateBodyAssets handling case conversions
24
24
  and file omissions as dictated by the API
25
25
  """
26
26
 
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+ import typing
3
+ import typing_extensions
4
+
5
+ from .v1_files_upload_urls_create_body_items_item import (
6
+ V1FilesUploadUrlsCreateBodyItemsItem,
7
+ _SerializerV1FilesUploadUrlsCreateBodyItemsItem,
8
+ )
9
+
10
+
11
+ class V1FilesUploadUrlsCreateBody(typing_extensions.TypedDict):
12
+ """
13
+ V1FilesUploadUrlsCreateBody
14
+ """
15
+
16
+ items: typing_extensions.Required[typing.List[V1FilesUploadUrlsCreateBodyItemsItem]]
17
+
18
+
19
+ class _SerializerV1FilesUploadUrlsCreateBody(pydantic.BaseModel):
20
+ """
21
+ Serializer for V1FilesUploadUrlsCreateBody handling case conversions
22
+ and file omissions as dictated by the API
23
+ """
24
+
25
+ model_config = pydantic.ConfigDict(
26
+ populate_by_name=True,
27
+ )
28
+
29
+ items: typing.List[_SerializerV1FilesUploadUrlsCreateBodyItemsItem] = (
30
+ pydantic.Field(
31
+ alias="items",
32
+ )
33
+ )
@@ -2,9 +2,9 @@ import pydantic
2
2
  import typing_extensions
3
3
 
4
4
 
5
- class PostV1FilesUploadUrlsBodyItemsItem(typing_extensions.TypedDict):
5
+ class V1FilesUploadUrlsCreateBodyItemsItem(typing_extensions.TypedDict):
6
6
  """
7
- PostV1FilesUploadUrlsBodyItemsItem
7
+ V1FilesUploadUrlsCreateBodyItemsItem
8
8
  """
9
9
 
10
10
  extension: typing_extensions.Required[str]
@@ -12,7 +12,7 @@ class PostV1FilesUploadUrlsBodyItemsItem(typing_extensions.TypedDict):
12
12
  the extension of the file to upload. Do not include the dot (.) before the extension.
13
13
  """
14
14
 
15
- type_field: typing_extensions.Required[
15
+ type_: typing_extensions.Required[
16
16
  typing_extensions.Literal["audio", "image", "video"]
17
17
  ]
18
18
  """
@@ -20,9 +20,9 @@ class PostV1FilesUploadUrlsBodyItemsItem(typing_extensions.TypedDict):
20
20
  """
21
21
 
22
22
 
23
- class _SerializerPostV1FilesUploadUrlsBodyItemsItem(pydantic.BaseModel):
23
+ class _SerializerV1FilesUploadUrlsCreateBodyItemsItem(pydantic.BaseModel):
24
24
  """
25
- Serializer for PostV1FilesUploadUrlsBodyItemsItem handling case conversions
25
+ Serializer for V1FilesUploadUrlsCreateBodyItemsItem handling case conversions
26
26
  and file omissions as dictated by the API
27
27
  """
28
28
 
@@ -33,6 +33,6 @@ class _SerializerPostV1FilesUploadUrlsBodyItemsItem(pydantic.BaseModel):
33
33
  extension: str = pydantic.Field(
34
34
  alias="extension",
35
35
  )
36
- type_field: typing_extensions.Literal["audio", "image", "video"] = pydantic.Field(
36
+ type_: typing_extensions.Literal["audio", "image", "video"] = pydantic.Field(
37
37
  alias="type",
38
38
  )
@@ -0,0 +1,40 @@
1
+ import pydantic
2
+ import typing
3
+ import typing_extensions
4
+
5
+ from .v1_image_background_remover_create_body_assets import (
6
+ V1ImageBackgroundRemoverCreateBodyAssets,
7
+ _SerializerV1ImageBackgroundRemoverCreateBodyAssets,
8
+ )
9
+
10
+
11
+ class V1ImageBackgroundRemoverCreateBody(typing_extensions.TypedDict):
12
+ """
13
+ V1ImageBackgroundRemoverCreateBody
14
+ """
15
+
16
+ assets: typing_extensions.Required[V1ImageBackgroundRemoverCreateBodyAssets]
17
+ """
18
+ Provide the assets for background removal
19
+ """
20
+
21
+ name: typing_extensions.NotRequired[str]
22
+ """
23
+ The name of image
24
+ """
25
+
26
+
27
+ class _SerializerV1ImageBackgroundRemoverCreateBody(pydantic.BaseModel):
28
+ """
29
+ Serializer for V1ImageBackgroundRemoverCreateBody handling case conversions
30
+ and file omissions as dictated by the API
31
+ """
32
+
33
+ model_config = pydantic.ConfigDict(
34
+ populate_by_name=True,
35
+ )
36
+
37
+ assets: _SerializerV1ImageBackgroundRemoverCreateBodyAssets = pydantic.Field(
38
+ alias="assets",
39
+ )
40
+ name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
@@ -2,7 +2,7 @@ import pydantic
2
2
  import typing_extensions
3
3
 
4
4
 
5
- class PostV1ImageBackgroundRemoverBodyAssets(typing_extensions.TypedDict):
5
+ class V1ImageBackgroundRemoverCreateBodyAssets(typing_extensions.TypedDict):
6
6
  """
7
7
  Provide the assets for background removal
8
8
  """
@@ -13,9 +13,9 @@ class PostV1ImageBackgroundRemoverBodyAssets(typing_extensions.TypedDict):
13
13
  """
14
14
 
15
15
 
16
- class _SerializerPostV1ImageBackgroundRemoverBodyAssets(pydantic.BaseModel):
16
+ class _SerializerV1ImageBackgroundRemoverCreateBodyAssets(pydantic.BaseModel):
17
17
  """
18
- Serializer for PostV1ImageBackgroundRemoverBodyAssets handling case conversions
18
+ Serializer for V1ImageBackgroundRemoverCreateBodyAssets handling case conversions
19
19
  and file omissions as dictated by the API
20
20
  """
21
21
 
@@ -2,22 +2,22 @@ import pydantic
2
2
  import typing
3
3
  import typing_extensions
4
4
 
5
- from .post_v1_image_to_video_body_assets import (
6
- PostV1ImageToVideoBodyAssets,
7
- _SerializerPostV1ImageToVideoBodyAssets,
5
+ from .v1_image_to_video_create_body_assets import (
6
+ V1ImageToVideoCreateBodyAssets,
7
+ _SerializerV1ImageToVideoCreateBodyAssets,
8
8
  )
9
- from .post_v1_image_to_video_body_style import (
10
- PostV1ImageToVideoBodyStyle,
11
- _SerializerPostV1ImageToVideoBodyStyle,
9
+ from .v1_image_to_video_create_body_style import (
10
+ V1ImageToVideoCreateBodyStyle,
11
+ _SerializerV1ImageToVideoCreateBodyStyle,
12
12
  )
13
13
 
14
14
 
15
- class PostV1ImageToVideoBody(typing_extensions.TypedDict):
15
+ class V1ImageToVideoCreateBody(typing_extensions.TypedDict):
16
16
  """
17
- PostV1ImageToVideoBody
17
+ V1ImageToVideoCreateBody
18
18
  """
19
19
 
20
- assets: typing_extensions.Required[PostV1ImageToVideoBodyAssets]
20
+ assets: typing_extensions.Required[V1ImageToVideoCreateBodyAssets]
21
21
  """
22
22
  Provide the assets for image-to-video.
23
23
  """
@@ -37,7 +37,7 @@ class PostV1ImageToVideoBody(typing_extensions.TypedDict):
37
37
  The name of video
38
38
  """
39
39
 
40
- style: typing_extensions.Required[PostV1ImageToVideoBodyStyle]
40
+ style: typing_extensions.Required[V1ImageToVideoCreateBodyStyle]
41
41
 
42
42
  width: typing_extensions.Required[int]
43
43
  """
@@ -45,9 +45,9 @@ class PostV1ImageToVideoBody(typing_extensions.TypedDict):
45
45
  """
46
46
 
47
47
 
48
- class _SerializerPostV1ImageToVideoBody(pydantic.BaseModel):
48
+ class _SerializerV1ImageToVideoCreateBody(pydantic.BaseModel):
49
49
  """
50
- Serializer for PostV1ImageToVideoBody handling case conversions
50
+ Serializer for V1ImageToVideoCreateBody handling case conversions
51
51
  and file omissions as dictated by the API
52
52
  """
53
53
 
@@ -55,7 +55,7 @@ class _SerializerPostV1ImageToVideoBody(pydantic.BaseModel):
55
55
  populate_by_name=True,
56
56
  )
57
57
 
58
- assets: _SerializerPostV1ImageToVideoBodyAssets = pydantic.Field(
58
+ assets: _SerializerV1ImageToVideoCreateBodyAssets = pydantic.Field(
59
59
  alias="assets",
60
60
  )
61
61
  end_seconds: float = pydantic.Field(
@@ -65,7 +65,7 @@ class _SerializerPostV1ImageToVideoBody(pydantic.BaseModel):
65
65
  alias="height",
66
66
  )
67
67
  name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
68
- style: _SerializerPostV1ImageToVideoBodyStyle = pydantic.Field(
68
+ style: _SerializerV1ImageToVideoCreateBodyStyle = pydantic.Field(
69
69
  alias="style",
70
70
  )
71
71
  width: int = pydantic.Field(
@@ -2,7 +2,7 @@ import pydantic
2
2
  import typing_extensions
3
3
 
4
4
 
5
- class PostV1ImageToVideoBodyAssets(typing_extensions.TypedDict):
5
+ class V1ImageToVideoCreateBodyAssets(typing_extensions.TypedDict):
6
6
  """
7
7
  Provide the assets for image-to-video.
8
8
  """
@@ -13,9 +13,9 @@ class PostV1ImageToVideoBodyAssets(typing_extensions.TypedDict):
13
13
  """
14
14
 
15
15
 
16
- class _SerializerPostV1ImageToVideoBodyAssets(pydantic.BaseModel):
16
+ class _SerializerV1ImageToVideoCreateBodyAssets(pydantic.BaseModel):
17
17
  """
18
- Serializer for PostV1ImageToVideoBodyAssets handling case conversions
18
+ Serializer for V1ImageToVideoCreateBodyAssets handling case conversions
19
19
  and file omissions as dictated by the API
20
20
  """
21
21
 
@@ -3,9 +3,9 @@ import typing
3
3
  import typing_extensions
4
4
 
5
5
 
6
- class PostV1ImageToVideoBodyStyle(typing_extensions.TypedDict):
6
+ class V1ImageToVideoCreateBodyStyle(typing_extensions.TypedDict):
7
7
  """
8
- PostV1ImageToVideoBodyStyle
8
+ V1ImageToVideoCreateBodyStyle
9
9
  """
10
10
 
11
11
  high_quality: typing_extensions.NotRequired[bool]
@@ -19,9 +19,9 @@ class PostV1ImageToVideoBodyStyle(typing_extensions.TypedDict):
19
19
  """
20
20
 
21
21
 
22
- class _SerializerPostV1ImageToVideoBodyStyle(pydantic.BaseModel):
22
+ class _SerializerV1ImageToVideoCreateBodyStyle(pydantic.BaseModel):
23
23
  """
24
- Serializer for PostV1ImageToVideoBodyStyle handling case conversions
24
+ Serializer for V1ImageToVideoCreateBodyStyle handling case conversions
25
25
  and file omissions as dictated by the API
26
26
  """
27
27
 
@@ -2,18 +2,18 @@ import pydantic
2
2
  import typing
3
3
  import typing_extensions
4
4
 
5
- from .post_v1_lip_sync_body_assets import (
6
- PostV1LipSyncBodyAssets,
7
- _SerializerPostV1LipSyncBodyAssets,
5
+ from .v1_lip_sync_create_body_assets import (
6
+ V1LipSyncCreateBodyAssets,
7
+ _SerializerV1LipSyncCreateBodyAssets,
8
8
  )
9
9
 
10
10
 
11
- class PostV1LipSyncBody(typing_extensions.TypedDict):
11
+ class V1LipSyncCreateBody(typing_extensions.TypedDict):
12
12
  """
13
- PostV1LipSyncBody
13
+ V1LipSyncCreateBody
14
14
  """
15
15
 
16
- assets: typing_extensions.Required[PostV1LipSyncBodyAssets]
16
+ assets: typing_extensions.Required[V1LipSyncCreateBodyAssets]
17
17
  """
18
18
  Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
19
19
  """
@@ -49,9 +49,9 @@ class PostV1LipSyncBody(typing_extensions.TypedDict):
49
49
  """
50
50
 
51
51
 
52
- class _SerializerPostV1LipSyncBody(pydantic.BaseModel):
52
+ class _SerializerV1LipSyncCreateBody(pydantic.BaseModel):
53
53
  """
54
- Serializer for PostV1LipSyncBody handling case conversions
54
+ Serializer for V1LipSyncCreateBody handling case conversions
55
55
  and file omissions as dictated by the API
56
56
  """
57
57
 
@@ -59,7 +59,7 @@ class _SerializerPostV1LipSyncBody(pydantic.BaseModel):
59
59
  populate_by_name=True,
60
60
  )
61
61
 
62
- assets: _SerializerPostV1LipSyncBodyAssets = pydantic.Field(
62
+ assets: _SerializerV1LipSyncCreateBodyAssets = pydantic.Field(
63
63
  alias="assets",
64
64
  )
65
65
  end_seconds: float = pydantic.Field(
@@ -3,7 +3,7 @@ import typing
3
3
  import typing_extensions
4
4
 
5
5
 
6
- class PostV1LipSyncBodyAssets(typing_extensions.TypedDict):
6
+ class V1LipSyncCreateBodyAssets(typing_extensions.TypedDict):
7
7
  """
8
8
  Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
9
9
  """
@@ -28,9 +28,9 @@ class PostV1LipSyncBodyAssets(typing_extensions.TypedDict):
28
28
  """
29
29
 
30
30
 
31
- class _SerializerPostV1LipSyncBodyAssets(pydantic.BaseModel):
31
+ class _SerializerV1LipSyncCreateBodyAssets(pydantic.BaseModel):
32
32
  """
33
- Serializer for PostV1LipSyncBodyAssets handling case conversions
33
+ Serializer for V1LipSyncCreateBodyAssets handling case conversions
34
34
  and file omissions as dictated by the API
35
35
  """
36
36
 
@@ -2,15 +2,15 @@ import pydantic
2
2
  import typing
3
3
  import typing_extensions
4
4
 
5
- from .post_v1_text_to_video_body_style import (
6
- PostV1TextToVideoBodyStyle,
7
- _SerializerPostV1TextToVideoBodyStyle,
5
+ from .v1_text_to_video_create_body_style import (
6
+ V1TextToVideoCreateBodyStyle,
7
+ _SerializerV1TextToVideoCreateBodyStyle,
8
8
  )
9
9
 
10
10
 
11
- class PostV1TextToVideoBody(typing_extensions.TypedDict):
11
+ class V1TextToVideoCreateBody(typing_extensions.TypedDict):
12
12
  """
13
- PostV1TextToVideoBody
13
+ V1TextToVideoCreateBody
14
14
  """
15
15
 
16
16
  end_seconds: typing_extensions.Required[float]
@@ -30,12 +30,12 @@ class PostV1TextToVideoBody(typing_extensions.TypedDict):
30
30
  Determines the orientation of the output video
31
31
  """
32
32
 
33
- style: typing_extensions.Required[PostV1TextToVideoBodyStyle]
33
+ style: typing_extensions.Required[V1TextToVideoCreateBodyStyle]
34
34
 
35
35
 
36
- class _SerializerPostV1TextToVideoBody(pydantic.BaseModel):
36
+ class _SerializerV1TextToVideoCreateBody(pydantic.BaseModel):
37
37
  """
38
- Serializer for PostV1TextToVideoBody handling case conversions
38
+ Serializer for V1TextToVideoCreateBody handling case conversions
39
39
  and file omissions as dictated by the API
40
40
  """
41
41
 
@@ -52,6 +52,6 @@ class _SerializerPostV1TextToVideoBody(pydantic.BaseModel):
52
52
  alias="orientation",
53
53
  )
54
54
  )
55
- style: _SerializerPostV1TextToVideoBodyStyle = pydantic.Field(
55
+ style: _SerializerV1TextToVideoCreateBodyStyle = pydantic.Field(
56
56
  alias="style",
57
57
  )
@@ -2,9 +2,9 @@ import pydantic
2
2
  import typing_extensions
3
3
 
4
4
 
5
- class PostV1TextToVideoBodyStyle(typing_extensions.TypedDict):
5
+ class V1TextToVideoCreateBodyStyle(typing_extensions.TypedDict):
6
6
  """
7
- PostV1TextToVideoBodyStyle
7
+ V1TextToVideoCreateBodyStyle
8
8
  """
9
9
 
10
10
  prompt: typing_extensions.Required[str]
@@ -13,9 +13,9 @@ class PostV1TextToVideoBodyStyle(typing_extensions.TypedDict):
13
13
  """
14
14
 
15
15
 
16
- class _SerializerPostV1TextToVideoBodyStyle(pydantic.BaseModel):
16
+ class _SerializerV1TextToVideoCreateBodyStyle(pydantic.BaseModel):
17
17
  """
18
- Serializer for PostV1TextToVideoBodyStyle handling case conversions
18
+ Serializer for V1TextToVideoCreateBodyStyle handling case conversions
19
19
  and file omissions as dictated by the API
20
20
  """
21
21
 
@@ -2,22 +2,22 @@ import pydantic
2
2
  import typing
3
3
  import typing_extensions
4
4
 
5
- from .post_v1_video_to_video_body_assets import (
6
- PostV1VideoToVideoBodyAssets,
7
- _SerializerPostV1VideoToVideoBodyAssets,
5
+ from .v1_video_to_video_create_body_assets import (
6
+ V1VideoToVideoCreateBodyAssets,
7
+ _SerializerV1VideoToVideoCreateBodyAssets,
8
8
  )
9
- from .post_v1_video_to_video_body_style import (
10
- PostV1VideoToVideoBodyStyle,
11
- _SerializerPostV1VideoToVideoBodyStyle,
9
+ from .v1_video_to_video_create_body_style import (
10
+ V1VideoToVideoCreateBodyStyle,
11
+ _SerializerV1VideoToVideoCreateBodyStyle,
12
12
  )
13
13
 
14
14
 
15
- class PostV1VideoToVideoBody(typing_extensions.TypedDict):
15
+ class V1VideoToVideoCreateBody(typing_extensions.TypedDict):
16
16
  """
17
- PostV1VideoToVideoBody
17
+ V1VideoToVideoCreateBody
18
18
  """
19
19
 
20
- assets: typing_extensions.Required[PostV1VideoToVideoBodyAssets]
20
+ assets: typing_extensions.Required[V1VideoToVideoCreateBodyAssets]
21
21
  """
22
22
  Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
23
23
  """
@@ -51,7 +51,7 @@ class PostV1VideoToVideoBody(typing_extensions.TypedDict):
51
51
  The start time of the input video in seconds
52
52
  """
53
53
 
54
- style: typing_extensions.Required[PostV1VideoToVideoBodyStyle]
54
+ style: typing_extensions.Required[V1VideoToVideoCreateBodyStyle]
55
55
 
56
56
  width: typing_extensions.Required[int]
57
57
  """
@@ -59,9 +59,9 @@ class PostV1VideoToVideoBody(typing_extensions.TypedDict):
59
59
  """
60
60
 
61
61
 
62
- class _SerializerPostV1VideoToVideoBody(pydantic.BaseModel):
62
+ class _SerializerV1VideoToVideoCreateBody(pydantic.BaseModel):
63
63
  """
64
- Serializer for PostV1VideoToVideoBody handling case conversions
64
+ Serializer for V1VideoToVideoCreateBody handling case conversions
65
65
  and file omissions as dictated by the API
66
66
  """
67
67
 
@@ -69,7 +69,7 @@ class _SerializerPostV1VideoToVideoBody(pydantic.BaseModel):
69
69
  populate_by_name=True,
70
70
  )
71
71
 
72
- assets: _SerializerPostV1VideoToVideoBodyAssets = pydantic.Field(
72
+ assets: _SerializerV1VideoToVideoCreateBodyAssets = pydantic.Field(
73
73
  alias="assets",
74
74
  )
75
75
  end_seconds: float = pydantic.Field(
@@ -85,7 +85,7 @@ class _SerializerPostV1VideoToVideoBody(pydantic.BaseModel):
85
85
  start_seconds: float = pydantic.Field(
86
86
  alias="start_seconds",
87
87
  )
88
- style: _SerializerPostV1VideoToVideoBodyStyle = pydantic.Field(
88
+ style: _SerializerV1VideoToVideoCreateBodyStyle = pydantic.Field(
89
89
  alias="style",
90
90
  )
91
91
  width: int = pydantic.Field(
@@ -3,7 +3,7 @@ import typing
3
3
  import typing_extensions
4
4
 
5
5
 
6
- class PostV1VideoToVideoBodyAssets(typing_extensions.TypedDict):
6
+ class V1VideoToVideoCreateBodyAssets(typing_extensions.TypedDict):
7
7
  """
8
8
  Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
9
9
  """
@@ -23,9 +23,9 @@ class PostV1VideoToVideoBodyAssets(typing_extensions.TypedDict):
23
23
  """
24
24
 
25
25
 
26
- class _SerializerPostV1VideoToVideoBodyAssets(pydantic.BaseModel):
26
+ class _SerializerV1VideoToVideoCreateBodyAssets(pydantic.BaseModel):
27
27
  """
28
- Serializer for PostV1VideoToVideoBodyAssets handling case conversions
28
+ Serializer for V1VideoToVideoCreateBodyAssets handling case conversions
29
29
  and file omissions as dictated by the API
30
30
  """
31
31