magic_hour 0.9.5__py3-none-any.whl → 0.11.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 (95) 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 +20 -10
  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/animation/client.py +10 -10
  9. magic_hour/resources/v1/face_swap/client.py +8 -8
  10. magic_hour/resources/v1/face_swap_photo/client.py +8 -8
  11. magic_hour/resources/v1/files/upload_urls/README.md +4 -4
  12. magic_hour/resources/v1/files/upload_urls/client.py +14 -12
  13. magic_hour/resources/v1/image_background_remover/client.py +8 -8
  14. magic_hour/resources/v1/image_projects/client.py +4 -4
  15. magic_hour/resources/v1/image_to_video/client.py +12 -12
  16. magic_hour/resources/v1/lip_sync/client.py +8 -8
  17. magic_hour/resources/v1/text_to_video/client.py +10 -10
  18. magic_hour/resources/v1/video_projects/client.py +4 -4
  19. magic_hour/resources/v1/video_to_video/client.py +12 -12
  20. magic_hour/types/models/__init__.py +51 -51
  21. magic_hour/types/models/{post_v1_ai_clothes_changer_response.py → v1_ai_clothes_changer_create_response.py} +1 -1
  22. magic_hour/types/models/v1_ai_headshot_generator_create_response.py +25 -0
  23. magic_hour/types/models/{post_v1_ai_photo_editor_response.py → v1_ai_image_generator_create_response.py} +1 -1
  24. magic_hour/types/models/{post_v1_ai_image_generator_response.py → v1_ai_image_upscaler_create_response.py} +1 -1
  25. magic_hour/types/models/{post_v1_face_swap_photo_response.py → v1_ai_photo_editor_create_response.py} +1 -1
  26. magic_hour/types/models/{post_v1_ai_headshot_generator_response.py → v1_ai_qr_code_generator_create_response.py} +1 -1
  27. magic_hour/types/models/{post_v1_text_to_video_response.py → v1_animation_create_response.py} +1 -1
  28. magic_hour/types/models/{post_v1_face_swap_response.py → v1_face_swap_create_response.py} +1 -1
  29. magic_hour/types/models/{post_v1_ai_image_upscaler_response.py → v1_face_swap_photo_create_response.py} +1 -1
  30. magic_hour/types/models/v1_files_upload_urls_create_response.py +21 -0
  31. magic_hour/types/models/{post_v1_files_upload_urls_response_items_item.py → v1_files_upload_urls_create_response_items_item.py} +2 -2
  32. magic_hour/types/models/v1_image_background_remover_create_response.py +25 -0
  33. magic_hour/types/models/{get_v1_image_projects_id_response.py → v1_image_projects_get_response.py} +7 -7
  34. magic_hour/types/models/{get_v1_image_projects_id_response_downloads_item.py → v1_image_projects_get_response_downloads_item.py} +1 -1
  35. magic_hour/types/models/{get_v1_video_projects_id_response_error.py → v1_image_projects_get_response_error.py} +2 -2
  36. magic_hour/types/models/{post_v1_lip_sync_response.py → v1_image_to_video_create_response.py} +1 -1
  37. magic_hour/types/models/{post_v1_animation_response.py → v1_lip_sync_create_response.py} +1 -1
  38. magic_hour/types/models/{post_v1_image_to_video_response.py → v1_text_to_video_create_response.py} +1 -1
  39. magic_hour/types/models/{get_v1_video_projects_id_response.py → v1_video_projects_get_response.py} +10 -11
  40. magic_hour/types/models/{get_v1_video_projects_id_response_download.py → v1_video_projects_get_response_download.py} +1 -1
  41. magic_hour/types/models/{get_v1_video_projects_id_response_downloads_item.py → v1_video_projects_get_response_downloads_item.py} +1 -1
  42. magic_hour/types/models/{get_v1_image_projects_id_response_error.py → v1_video_projects_get_response_error.py} +2 -2
  43. magic_hour/types/models/v1_video_to_video_create_response.py +25 -0
  44. magic_hour/types/params/__init__.py +188 -176
  45. magic_hour/types/params/v1_ai_clothes_changer_create_body.py +40 -0
  46. magic_hour/types/params/{post_v1_ai_clothes_changer_body_assets.py → v1_ai_clothes_changer_create_body_assets.py} +3 -3
  47. magic_hour/types/params/v1_ai_headshot_generator_create_body.py +49 -0
  48. magic_hour/types/params/{post_v1_ai_headshot_generator_body_assets.py → v1_ai_headshot_generator_create_body_assets.py} +3 -3
  49. magic_hour/types/params/v1_ai_headshot_generator_create_body_style.py +27 -0
  50. magic_hour/types/params/{post_v1_ai_image_generator_body.py → v1_ai_image_generator_create_body.py} +9 -9
  51. magic_hour/types/params/{post_v1_ai_image_generator_body_style.py → v1_ai_image_generator_create_body_style.py} +4 -4
  52. magic_hour/types/params/v1_ai_image_upscaler_create_body.py +57 -0
  53. magic_hour/types/params/{post_v1_ai_image_upscaler_body_assets.py → v1_ai_image_upscaler_create_body_assets.py} +3 -3
  54. magic_hour/types/params/{post_v1_ai_image_upscaler_body_style.py → v1_ai_image_upscaler_create_body_style.py} +4 -4
  55. magic_hour/types/params/{post_v1_ai_photo_editor_body.py → v1_ai_photo_editor_create_body.py} +14 -14
  56. magic_hour/types/params/{post_v1_ai_photo_editor_body_assets.py → v1_ai_photo_editor_create_body_assets.py} +3 -3
  57. magic_hour/types/params/{post_v1_ai_photo_editor_body_style.py → v1_ai_photo_editor_create_body_style.py} +4 -4
  58. magic_hour/types/params/{post_v1_ai_qr_code_generator_body.py → v1_ai_qr_code_generator_create_body.py} +9 -9
  59. magic_hour/types/params/{post_v1_ai_qr_code_generator_body_style.py → v1_ai_qr_code_generator_create_body_style.py} +4 -4
  60. magic_hour/types/params/{post_v1_animation_body.py → v1_animation_create_body.py} +14 -14
  61. magic_hour/types/params/{post_v1_animation_body_assets.py → v1_animation_create_body_assets.py} +3 -3
  62. magic_hour/types/params/{post_v1_animation_body_style.py → v1_animation_create_body_style.py} +3 -3
  63. magic_hour/types/params/{post_v1_face_swap_body.py → v1_face_swap_create_body.py} +9 -9
  64. magic_hour/types/params/{post_v1_face_swap_body_assets.py → v1_face_swap_create_body_assets.py} +3 -3
  65. magic_hour/types/params/v1_face_swap_photo_create_body.py +40 -0
  66. magic_hour/types/params/{post_v1_face_swap_photo_body_assets.py → v1_face_swap_photo_create_body_assets.py} +3 -3
  67. magic_hour/types/params/v1_files_upload_urls_create_body.py +33 -0
  68. magic_hour/types/params/{post_v1_files_upload_urls_body_items_item.py → v1_files_upload_urls_create_body_items_item.py} +6 -6
  69. magic_hour/types/params/v1_image_background_remover_create_body.py +40 -0
  70. magic_hour/types/params/{post_v1_image_background_remover_body_assets.py → v1_image_background_remover_create_body_assets.py} +3 -3
  71. magic_hour/types/params/{post_v1_image_to_video_body.py → v1_image_to_video_create_body.py} +14 -14
  72. magic_hour/types/params/{post_v1_image_to_video_body_assets.py → v1_image_to_video_create_body_assets.py} +3 -3
  73. magic_hour/types/params/{post_v1_image_to_video_body_style.py → v1_image_to_video_create_body_style.py} +4 -4
  74. magic_hour/types/params/{post_v1_lip_sync_body.py → v1_lip_sync_create_body.py} +9 -9
  75. magic_hour/types/params/{post_v1_lip_sync_body_assets.py → v1_lip_sync_create_body_assets.py} +3 -3
  76. magic_hour/types/params/{post_v1_text_to_video_body.py → v1_text_to_video_create_body.py} +9 -9
  77. magic_hour/types/params/{post_v1_text_to_video_body_style.py → v1_text_to_video_create_body_style.py} +4 -4
  78. magic_hour/types/params/{post_v1_video_to_video_body.py → v1_video_to_video_create_body.py} +14 -14
  79. magic_hour/types/params/{post_v1_video_to_video_body_assets.py → v1_video_to_video_create_body_assets.py} +3 -3
  80. magic_hour/types/params/{post_v1_video_to_video_body_style.py → v1_video_to_video_create_body_style.py} +4 -4
  81. {magic_hour-0.9.5.dist-info → magic_hour-0.11.0.dist-info}/METADATA +1 -1
  82. magic_hour-0.11.0.dist-info/RECORD +133 -0
  83. magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -25
  84. magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -21
  85. magic_hour/types/models/post_v1_image_background_remover_response.py +0 -25
  86. magic_hour/types/models/post_v1_video_to_video_response.py +0 -25
  87. magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -40
  88. magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -40
  89. magic_hour/types/params/post_v1_ai_image_upscaler_body.py +0 -57
  90. magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -40
  91. magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -31
  92. magic_hour/types/params/post_v1_image_background_remover_body.py +0 -40
  93. magic_hour-0.9.5.dist-info/RECORD +0 -132
  94. {magic_hour-0.9.5.dist-info → magic_hour-0.11.0.dist-info}/LICENSE +0 -0
  95. {magic_hour-0.9.5.dist-info → magic_hour-0.11.0.dist-info}/WHEEL +0 -0
magic_hour/environment.py CHANGED
@@ -5,4 +5,4 @@ class Environment(enum.Enum):
5
5
  """Pre-defined base URLs for the API"""
6
6
 
7
7
  ENVIRONMENT = "https://api.magichour.ai"
8
- MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.9.5"
8
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.11.0"
@@ -18,12 +18,12 @@ class AiClothesChangerClient:
18
18
  def create(
19
19
  self,
20
20
  *,
21
- assets: params.PostV1AiClothesChangerBodyAssets,
21
+ assets: params.V1AiClothesChangerCreateBodyAssets,
22
22
  name: typing.Union[
23
23
  typing.Optional[str], type_utils.NotGiven
24
24
  ] = type_utils.NOT_GIVEN,
25
25
  request_options: typing.Optional[RequestOptions] = None,
26
- ) -> models.PostV1AiClothesChangerResponse:
26
+ ) -> models.V1AiClothesChangerCreateResponse:
27
27
  """
28
28
  AI Clothes Changer
29
29
 
@@ -57,14 +57,14 @@ class AiClothesChangerClient:
57
57
  """
58
58
  _json = to_encodable(
59
59
  item={"name": name, "assets": assets},
60
- dump_with=params._SerializerPostV1AiClothesChangerBody,
60
+ dump_with=params._SerializerV1AiClothesChangerCreateBody,
61
61
  )
62
62
  return self._base_client.request(
63
63
  method="POST",
64
64
  path="/v1/ai-clothes-changer",
65
65
  auth_names=["bearerAuth"],
66
66
  json=_json,
67
- cast_to=models.PostV1AiClothesChangerResponse,
67
+ cast_to=models.V1AiClothesChangerCreateResponse,
68
68
  request_options=request_options or default_request_options(),
69
69
  )
70
70
 
@@ -76,12 +76,12 @@ class AsyncAiClothesChangerClient:
76
76
  async def create(
77
77
  self,
78
78
  *,
79
- assets: params.PostV1AiClothesChangerBodyAssets,
79
+ assets: params.V1AiClothesChangerCreateBodyAssets,
80
80
  name: typing.Union[
81
81
  typing.Optional[str], type_utils.NotGiven
82
82
  ] = type_utils.NOT_GIVEN,
83
83
  request_options: typing.Optional[RequestOptions] = None,
84
- ) -> models.PostV1AiClothesChangerResponse:
84
+ ) -> models.V1AiClothesChangerCreateResponse:
85
85
  """
86
86
  AI Clothes Changer
87
87
 
@@ -115,13 +115,13 @@ class AsyncAiClothesChangerClient:
115
115
  """
116
116
  _json = to_encodable(
117
117
  item={"name": name, "assets": assets},
118
- dump_with=params._SerializerPostV1AiClothesChangerBody,
118
+ dump_with=params._SerializerV1AiClothesChangerCreateBody,
119
119
  )
120
120
  return await self._base_client.request(
121
121
  method="POST",
122
122
  path="/v1/ai-clothes-changer",
123
123
  auth_names=["bearerAuth"],
124
124
  json=_json,
125
- cast_to=models.PostV1AiClothesChangerResponse,
125
+ cast_to=models.V1AiClothesChangerCreateResponse,
126
126
  request_options=request_options or default_request_options(),
127
127
  )
@@ -18,12 +18,16 @@ class AiHeadshotGeneratorClient:
18
18
  def create(
19
19
  self,
20
20
  *,
21
- assets: params.PostV1AiHeadshotGeneratorBodyAssets,
21
+ assets: params.V1AiHeadshotGeneratorCreateBodyAssets,
22
22
  name: typing.Union[
23
23
  typing.Optional[str], type_utils.NotGiven
24
24
  ] = type_utils.NOT_GIVEN,
25
+ style: typing.Union[
26
+ typing.Optional[params.V1AiHeadshotGeneratorCreateBodyStyle],
27
+ type_utils.NotGiven,
28
+ ] = type_utils.NOT_GIVEN,
25
29
  request_options: typing.Optional[RequestOptions] = None,
26
- ) -> models.PostV1AiHeadshotGeneratorResponse:
30
+ ) -> models.V1AiHeadshotGeneratorCreateResponse:
27
31
  """
28
32
  AI Headshots
29
33
 
@@ -33,6 +37,7 @@ class AiHeadshotGeneratorClient:
33
37
 
34
38
  Args:
35
39
  name: The name of image
40
+ style: V1AiHeadshotGeneratorCreateBodyStyle
36
41
  assets: Provide the assets for headshot photo
37
42
  request_options: Additional options to customize the HTTP request
38
43
 
@@ -52,15 +57,15 @@ class AiHeadshotGeneratorClient:
52
57
  ```
53
58
  """
54
59
  _json = to_encodable(
55
- item={"name": name, "assets": assets},
56
- dump_with=params._SerializerPostV1AiHeadshotGeneratorBody,
60
+ item={"name": name, "style": style, "assets": assets},
61
+ dump_with=params._SerializerV1AiHeadshotGeneratorCreateBody,
57
62
  )
58
63
  return self._base_client.request(
59
64
  method="POST",
60
65
  path="/v1/ai-headshot-generator",
61
66
  auth_names=["bearerAuth"],
62
67
  json=_json,
63
- cast_to=models.PostV1AiHeadshotGeneratorResponse,
68
+ cast_to=models.V1AiHeadshotGeneratorCreateResponse,
64
69
  request_options=request_options or default_request_options(),
65
70
  )
66
71
 
@@ -72,12 +77,16 @@ class AsyncAiHeadshotGeneratorClient:
72
77
  async def create(
73
78
  self,
74
79
  *,
75
- assets: params.PostV1AiHeadshotGeneratorBodyAssets,
80
+ assets: params.V1AiHeadshotGeneratorCreateBodyAssets,
76
81
  name: typing.Union[
77
82
  typing.Optional[str], type_utils.NotGiven
78
83
  ] = type_utils.NOT_GIVEN,
84
+ style: typing.Union[
85
+ typing.Optional[params.V1AiHeadshotGeneratorCreateBodyStyle],
86
+ type_utils.NotGiven,
87
+ ] = type_utils.NOT_GIVEN,
79
88
  request_options: typing.Optional[RequestOptions] = None,
80
- ) -> models.PostV1AiHeadshotGeneratorResponse:
89
+ ) -> models.V1AiHeadshotGeneratorCreateResponse:
81
90
  """
82
91
  AI Headshots
83
92
 
@@ -87,6 +96,7 @@ class AsyncAiHeadshotGeneratorClient:
87
96
 
88
97
  Args:
89
98
  name: The name of image
99
+ style: V1AiHeadshotGeneratorCreateBodyStyle
90
100
  assets: Provide the assets for headshot photo
91
101
  request_options: Additional options to customize the HTTP request
92
102
 
@@ -106,14 +116,14 @@ class AsyncAiHeadshotGeneratorClient:
106
116
  ```
107
117
  """
108
118
  _json = to_encodable(
109
- item={"name": name, "assets": assets},
110
- dump_with=params._SerializerPostV1AiHeadshotGeneratorBody,
119
+ item={"name": name, "style": style, "assets": assets},
120
+ dump_with=params._SerializerV1AiHeadshotGeneratorCreateBody,
111
121
  )
112
122
  return await self._base_client.request(
113
123
  method="POST",
114
124
  path="/v1/ai-headshot-generator",
115
125
  auth_names=["bearerAuth"],
116
126
  json=_json,
117
- cast_to=models.PostV1AiHeadshotGeneratorResponse,
127
+ cast_to=models.V1AiHeadshotGeneratorCreateResponse,
118
128
  request_options=request_options or default_request_options(),
119
129
  )
@@ -21,12 +21,12 @@ class AiImageGeneratorClient:
21
21
  *,
22
22
  image_count: int,
23
23
  orientation: typing_extensions.Literal["landscape", "portrait", "square"],
24
- style: params.PostV1AiImageGeneratorBodyStyle,
24
+ style: params.V1AiImageGeneratorCreateBodyStyle,
25
25
  name: typing.Union[
26
26
  typing.Optional[str], type_utils.NotGiven
27
27
  ] = type_utils.NOT_GIVEN,
28
28
  request_options: typing.Optional[RequestOptions] = None,
29
- ) -> models.PostV1AiImageGeneratorResponse:
29
+ ) -> models.V1AiImageGeneratorCreateResponse:
30
30
  """
31
31
  AI Images
32
32
 
@@ -38,7 +38,7 @@ class AiImageGeneratorClient:
38
38
  name: The name of image
39
39
  image_count: number to images to generate
40
40
  orientation: typing_extensions.Literal["landscape", "portrait", "square"]
41
- style: PostV1AiImageGeneratorBodyStyle
41
+ style: V1AiImageGeneratorCreateBodyStyle
42
42
  request_options: Additional options to customize the HTTP request
43
43
 
44
44
  Returns:
@@ -65,14 +65,14 @@ class AiImageGeneratorClient:
65
65
  "orientation": orientation,
66
66
  "style": style,
67
67
  },
68
- dump_with=params._SerializerPostV1AiImageGeneratorBody,
68
+ dump_with=params._SerializerV1AiImageGeneratorCreateBody,
69
69
  )
70
70
  return self._base_client.request(
71
71
  method="POST",
72
72
  path="/v1/ai-image-generator",
73
73
  auth_names=["bearerAuth"],
74
74
  json=_json,
75
- cast_to=models.PostV1AiImageGeneratorResponse,
75
+ cast_to=models.V1AiImageGeneratorCreateResponse,
76
76
  request_options=request_options or default_request_options(),
77
77
  )
78
78
 
@@ -86,12 +86,12 @@ class AsyncAiImageGeneratorClient:
86
86
  *,
87
87
  image_count: int,
88
88
  orientation: typing_extensions.Literal["landscape", "portrait", "square"],
89
- style: params.PostV1AiImageGeneratorBodyStyle,
89
+ style: params.V1AiImageGeneratorCreateBodyStyle,
90
90
  name: typing.Union[
91
91
  typing.Optional[str], type_utils.NotGiven
92
92
  ] = type_utils.NOT_GIVEN,
93
93
  request_options: typing.Optional[RequestOptions] = None,
94
- ) -> models.PostV1AiImageGeneratorResponse:
94
+ ) -> models.V1AiImageGeneratorCreateResponse:
95
95
  """
96
96
  AI Images
97
97
 
@@ -103,7 +103,7 @@ class AsyncAiImageGeneratorClient:
103
103
  name: The name of image
104
104
  image_count: number to images to generate
105
105
  orientation: typing_extensions.Literal["landscape", "portrait", "square"]
106
- style: PostV1AiImageGeneratorBodyStyle
106
+ style: V1AiImageGeneratorCreateBodyStyle
107
107
  request_options: Additional options to customize the HTTP request
108
108
 
109
109
  Returns:
@@ -130,13 +130,13 @@ class AsyncAiImageGeneratorClient:
130
130
  "orientation": orientation,
131
131
  "style": style,
132
132
  },
133
- dump_with=params._SerializerPostV1AiImageGeneratorBody,
133
+ dump_with=params._SerializerV1AiImageGeneratorCreateBody,
134
134
  )
135
135
  return await self._base_client.request(
136
136
  method="POST",
137
137
  path="/v1/ai-image-generator",
138
138
  auth_names=["bearerAuth"],
139
139
  json=_json,
140
- cast_to=models.PostV1AiImageGeneratorResponse,
140
+ cast_to=models.V1AiImageGeneratorCreateResponse,
141
141
  request_options=request_options or default_request_options(),
142
142
  )
@@ -18,14 +18,14 @@ class AiImageUpscalerClient:
18
18
  def create(
19
19
  self,
20
20
  *,
21
- assets: params.PostV1AiImageUpscalerBodyAssets,
21
+ assets: params.V1AiImageUpscalerCreateBodyAssets,
22
22
  scale_factor: float,
23
- style: params.PostV1AiImageUpscalerBodyStyle,
23
+ style: params.V1AiImageUpscalerCreateBodyStyle,
24
24
  name: typing.Union[
25
25
  typing.Optional[str], type_utils.NotGiven
26
26
  ] = type_utils.NOT_GIVEN,
27
27
  request_options: typing.Optional[RequestOptions] = None,
28
- ) -> models.PostV1AiImageUpscalerResponse:
28
+ ) -> models.V1AiImageUpscalerCreateResponse:
29
29
  """
30
30
  AI Image Upscaler
31
31
 
@@ -37,7 +37,7 @@ class AiImageUpscalerClient:
37
37
  name: The name of image
38
38
  assets: Provide the assets for upscaling
39
39
  scale_factor: How much to scale the image. Must be either 2 or 4
40
- style: PostV1AiImageUpscalerBodyStyle
40
+ style: V1AiImageUpscalerCreateBodyStyle
41
41
  request_options: Additional options to customize the HTTP request
42
42
 
43
43
  Returns:
@@ -64,14 +64,14 @@ class AiImageUpscalerClient:
64
64
  "scale_factor": scale_factor,
65
65
  "style": style,
66
66
  },
67
- dump_with=params._SerializerPostV1AiImageUpscalerBody,
67
+ dump_with=params._SerializerV1AiImageUpscalerCreateBody,
68
68
  )
69
69
  return self._base_client.request(
70
70
  method="POST",
71
71
  path="/v1/ai-image-upscaler",
72
72
  auth_names=["bearerAuth"],
73
73
  json=_json,
74
- cast_to=models.PostV1AiImageUpscalerResponse,
74
+ cast_to=models.V1AiImageUpscalerCreateResponse,
75
75
  request_options=request_options or default_request_options(),
76
76
  )
77
77
 
@@ -83,14 +83,14 @@ class AsyncAiImageUpscalerClient:
83
83
  async def create(
84
84
  self,
85
85
  *,
86
- assets: params.PostV1AiImageUpscalerBodyAssets,
86
+ assets: params.V1AiImageUpscalerCreateBodyAssets,
87
87
  scale_factor: float,
88
- style: params.PostV1AiImageUpscalerBodyStyle,
88
+ style: params.V1AiImageUpscalerCreateBodyStyle,
89
89
  name: typing.Union[
90
90
  typing.Optional[str], type_utils.NotGiven
91
91
  ] = type_utils.NOT_GIVEN,
92
92
  request_options: typing.Optional[RequestOptions] = None,
93
- ) -> models.PostV1AiImageUpscalerResponse:
93
+ ) -> models.V1AiImageUpscalerCreateResponse:
94
94
  """
95
95
  AI Image Upscaler
96
96
 
@@ -102,7 +102,7 @@ class AsyncAiImageUpscalerClient:
102
102
  name: The name of image
103
103
  assets: Provide the assets for upscaling
104
104
  scale_factor: How much to scale the image. Must be either 2 or 4
105
- style: PostV1AiImageUpscalerBodyStyle
105
+ style: V1AiImageUpscalerCreateBodyStyle
106
106
  request_options: Additional options to customize the HTTP request
107
107
 
108
108
  Returns:
@@ -129,13 +129,13 @@ class AsyncAiImageUpscalerClient:
129
129
  "scale_factor": scale_factor,
130
130
  "style": style,
131
131
  },
132
- dump_with=params._SerializerPostV1AiImageUpscalerBody,
132
+ dump_with=params._SerializerV1AiImageUpscalerCreateBody,
133
133
  )
134
134
  return await self._base_client.request(
135
135
  method="POST",
136
136
  path="/v1/ai-image-upscaler",
137
137
  auth_names=["bearerAuth"],
138
138
  json=_json,
139
- cast_to=models.PostV1AiImageUpscalerResponse,
139
+ cast_to=models.V1AiImageUpscalerCreateResponse,
140
140
  request_options=request_options or default_request_options(),
141
141
  )
@@ -18,9 +18,9 @@ class AiPhotoEditorClient:
18
18
  def create(
19
19
  self,
20
20
  *,
21
- assets: params.PostV1AiPhotoEditorBodyAssets,
21
+ assets: params.V1AiPhotoEditorCreateBodyAssets,
22
22
  resolution: int,
23
- style: params.PostV1AiPhotoEditorBodyStyle,
23
+ style: params.V1AiPhotoEditorCreateBodyStyle,
24
24
  name: typing.Union[
25
25
  typing.Optional[str], type_utils.NotGiven
26
26
  ] = type_utils.NOT_GIVEN,
@@ -28,7 +28,7 @@ class AiPhotoEditorClient:
28
28
  typing.Optional[int], type_utils.NotGiven
29
29
  ] = type_utils.NOT_GIVEN,
30
30
  request_options: typing.Optional[RequestOptions] = None,
31
- ) -> models.PostV1AiPhotoEditorResponse:
31
+ ) -> models.V1AiPhotoEditorCreateResponse:
32
32
  """
33
33
  AI Photo Editor
34
34
 
@@ -43,7 +43,7 @@ class AiPhotoEditorClient:
43
43
  steps: Deprecated: Please use `.style.steps` instead. Number of iterations used to generate the output. Higher values improve quality and increase the strength of the prompt but increase processing time.
44
44
  assets: Provide the assets for photo editor
45
45
  resolution: The resolution of the final output image. The allowed value is based on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
46
- style: PostV1AiPhotoEditorBodyStyle
46
+ style: V1AiPhotoEditorCreateBodyStyle
47
47
  request_options: Additional options to customize the HTTP request
48
48
 
49
49
  Returns:
@@ -76,14 +76,14 @@ class AiPhotoEditorClient:
76
76
  "resolution": resolution,
77
77
  "style": style,
78
78
  },
79
- dump_with=params._SerializerPostV1AiPhotoEditorBody,
79
+ dump_with=params._SerializerV1AiPhotoEditorCreateBody,
80
80
  )
81
81
  return self._base_client.request(
82
82
  method="POST",
83
83
  path="/v1/ai-photo-editor",
84
84
  auth_names=["bearerAuth"],
85
85
  json=_json,
86
- cast_to=models.PostV1AiPhotoEditorResponse,
86
+ cast_to=models.V1AiPhotoEditorCreateResponse,
87
87
  request_options=request_options or default_request_options(),
88
88
  )
89
89
 
@@ -95,9 +95,9 @@ class AsyncAiPhotoEditorClient:
95
95
  async def create(
96
96
  self,
97
97
  *,
98
- assets: params.PostV1AiPhotoEditorBodyAssets,
98
+ assets: params.V1AiPhotoEditorCreateBodyAssets,
99
99
  resolution: int,
100
- style: params.PostV1AiPhotoEditorBodyStyle,
100
+ style: params.V1AiPhotoEditorCreateBodyStyle,
101
101
  name: typing.Union[
102
102
  typing.Optional[str], type_utils.NotGiven
103
103
  ] = type_utils.NOT_GIVEN,
@@ -105,7 +105,7 @@ class AsyncAiPhotoEditorClient:
105
105
  typing.Optional[int], type_utils.NotGiven
106
106
  ] = type_utils.NOT_GIVEN,
107
107
  request_options: typing.Optional[RequestOptions] = None,
108
- ) -> models.PostV1AiPhotoEditorResponse:
108
+ ) -> models.V1AiPhotoEditorCreateResponse:
109
109
  """
110
110
  AI Photo Editor
111
111
 
@@ -120,7 +120,7 @@ class AsyncAiPhotoEditorClient:
120
120
  steps: Deprecated: Please use `.style.steps` instead. Number of iterations used to generate the output. Higher values improve quality and increase the strength of the prompt but increase processing time.
121
121
  assets: Provide the assets for photo editor
122
122
  resolution: The resolution of the final output image. The allowed value is based on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
123
- style: PostV1AiPhotoEditorBodyStyle
123
+ style: V1AiPhotoEditorCreateBodyStyle
124
124
  request_options: Additional options to customize the HTTP request
125
125
 
126
126
  Returns:
@@ -153,13 +153,13 @@ class AsyncAiPhotoEditorClient:
153
153
  "resolution": resolution,
154
154
  "style": style,
155
155
  },
156
- dump_with=params._SerializerPostV1AiPhotoEditorBody,
156
+ dump_with=params._SerializerV1AiPhotoEditorCreateBody,
157
157
  )
158
158
  return await self._base_client.request(
159
159
  method="POST",
160
160
  path="/v1/ai-photo-editor",
161
161
  auth_names=["bearerAuth"],
162
162
  json=_json,
163
- cast_to=models.PostV1AiPhotoEditorResponse,
163
+ cast_to=models.V1AiPhotoEditorCreateResponse,
164
164
  request_options=request_options or default_request_options(),
165
165
  )
@@ -19,12 +19,12 @@ class AiQrCodeGeneratorClient:
19
19
  self,
20
20
  *,
21
21
  content: str,
22
- style: params.PostV1AiQrCodeGeneratorBodyStyle,
22
+ style: params.V1AiQrCodeGeneratorCreateBodyStyle,
23
23
  name: typing.Union[
24
24
  typing.Optional[str], type_utils.NotGiven
25
25
  ] = type_utils.NOT_GIVEN,
26
26
  request_options: typing.Optional[RequestOptions] = None,
27
- ) -> models.PostV1AiQrCodeGeneratorResponse:
27
+ ) -> models.V1AiQrCodeGeneratorCreateResponse:
28
28
  """
29
29
  AI QR Code
30
30
 
@@ -35,7 +35,7 @@ class AiQrCodeGeneratorClient:
35
35
  Args:
36
36
  name: The name of image
37
37
  content: The content of the QR code.
38
- style: PostV1AiQrCodeGeneratorBodyStyle
38
+ style: V1AiQrCodeGeneratorCreateBodyStyle
39
39
  request_options: Additional options to customize the HTTP request
40
40
 
41
41
  Returns:
@@ -56,14 +56,14 @@ class AiQrCodeGeneratorClient:
56
56
  """
57
57
  _json = to_encodable(
58
58
  item={"name": name, "content": content, "style": style},
59
- dump_with=params._SerializerPostV1AiQrCodeGeneratorBody,
59
+ dump_with=params._SerializerV1AiQrCodeGeneratorCreateBody,
60
60
  )
61
61
  return self._base_client.request(
62
62
  method="POST",
63
63
  path="/v1/ai-qr-code-generator",
64
64
  auth_names=["bearerAuth"],
65
65
  json=_json,
66
- cast_to=models.PostV1AiQrCodeGeneratorResponse,
66
+ cast_to=models.V1AiQrCodeGeneratorCreateResponse,
67
67
  request_options=request_options or default_request_options(),
68
68
  )
69
69
 
@@ -76,12 +76,12 @@ class AsyncAiQrCodeGeneratorClient:
76
76
  self,
77
77
  *,
78
78
  content: str,
79
- style: params.PostV1AiQrCodeGeneratorBodyStyle,
79
+ style: params.V1AiQrCodeGeneratorCreateBodyStyle,
80
80
  name: typing.Union[
81
81
  typing.Optional[str], type_utils.NotGiven
82
82
  ] = type_utils.NOT_GIVEN,
83
83
  request_options: typing.Optional[RequestOptions] = None,
84
- ) -> models.PostV1AiQrCodeGeneratorResponse:
84
+ ) -> models.V1AiQrCodeGeneratorCreateResponse:
85
85
  """
86
86
  AI QR Code
87
87
 
@@ -92,7 +92,7 @@ class AsyncAiQrCodeGeneratorClient:
92
92
  Args:
93
93
  name: The name of image
94
94
  content: The content of the QR code.
95
- style: PostV1AiQrCodeGeneratorBodyStyle
95
+ style: V1AiQrCodeGeneratorCreateBodyStyle
96
96
  request_options: Additional options to customize the HTTP request
97
97
 
98
98
  Returns:
@@ -113,13 +113,13 @@ class AsyncAiQrCodeGeneratorClient:
113
113
  """
114
114
  _json = to_encodable(
115
115
  item={"name": name, "content": content, "style": style},
116
- dump_with=params._SerializerPostV1AiQrCodeGeneratorBody,
116
+ dump_with=params._SerializerV1AiQrCodeGeneratorCreateBody,
117
117
  )
118
118
  return await self._base_client.request(
119
119
  method="POST",
120
120
  path="/v1/ai-qr-code-generator",
121
121
  auth_names=["bearerAuth"],
122
122
  json=_json,
123
- cast_to=models.PostV1AiQrCodeGeneratorResponse,
123
+ cast_to=models.V1AiQrCodeGeneratorCreateResponse,
124
124
  request_options=request_options or default_request_options(),
125
125
  )
@@ -18,17 +18,17 @@ class AnimationClient:
18
18
  def create(
19
19
  self,
20
20
  *,
21
- assets: params.PostV1AnimationBodyAssets,
21
+ assets: params.V1AnimationCreateBodyAssets,
22
22
  end_seconds: float,
23
23
  fps: float,
24
24
  height: int,
25
- style: params.PostV1AnimationBodyStyle,
25
+ style: params.V1AnimationCreateBodyStyle,
26
26
  width: int,
27
27
  name: typing.Union[
28
28
  typing.Optional[str], type_utils.NotGiven
29
29
  ] = type_utils.NOT_GIVEN,
30
30
  request_options: typing.Optional[RequestOptions] = None,
31
- ) -> models.PostV1AnimationResponse:
31
+ ) -> models.V1AnimationCreateResponse:
32
32
  """
33
33
  Animation
34
34
 
@@ -82,14 +82,14 @@ class AnimationClient:
82
82
  "style": style,
83
83
  "width": width,
84
84
  },
85
- dump_with=params._SerializerPostV1AnimationBody,
85
+ dump_with=params._SerializerV1AnimationCreateBody,
86
86
  )
87
87
  return self._base_client.request(
88
88
  method="POST",
89
89
  path="/v1/animation",
90
90
  auth_names=["bearerAuth"],
91
91
  json=_json,
92
- cast_to=models.PostV1AnimationResponse,
92
+ cast_to=models.V1AnimationCreateResponse,
93
93
  request_options=request_options or default_request_options(),
94
94
  )
95
95
 
@@ -101,17 +101,17 @@ class AsyncAnimationClient:
101
101
  async def create(
102
102
  self,
103
103
  *,
104
- assets: params.PostV1AnimationBodyAssets,
104
+ assets: params.V1AnimationCreateBodyAssets,
105
105
  end_seconds: float,
106
106
  fps: float,
107
107
  height: int,
108
- style: params.PostV1AnimationBodyStyle,
108
+ style: params.V1AnimationCreateBodyStyle,
109
109
  width: int,
110
110
  name: typing.Union[
111
111
  typing.Optional[str], type_utils.NotGiven
112
112
  ] = type_utils.NOT_GIVEN,
113
113
  request_options: typing.Optional[RequestOptions] = None,
114
- ) -> models.PostV1AnimationResponse:
114
+ ) -> models.V1AnimationCreateResponse:
115
115
  """
116
116
  Animation
117
117
 
@@ -165,13 +165,13 @@ class AsyncAnimationClient:
165
165
  "style": style,
166
166
  "width": width,
167
167
  },
168
- dump_with=params._SerializerPostV1AnimationBody,
168
+ dump_with=params._SerializerV1AnimationCreateBody,
169
169
  )
170
170
  return await self._base_client.request(
171
171
  method="POST",
172
172
  path="/v1/animation",
173
173
  auth_names=["bearerAuth"],
174
174
  json=_json,
175
- cast_to=models.PostV1AnimationResponse,
175
+ cast_to=models.V1AnimationCreateResponse,
176
176
  request_options=request_options or default_request_options(),
177
177
  )
@@ -18,7 +18,7 @@ class FaceSwapClient:
18
18
  def create(
19
19
  self,
20
20
  *,
21
- assets: params.PostV1FaceSwapBodyAssets,
21
+ assets: params.V1FaceSwapCreateBodyAssets,
22
22
  end_seconds: float,
23
23
  height: int,
24
24
  start_seconds: float,
@@ -27,7 +27,7 @@ class FaceSwapClient:
27
27
  typing.Optional[str], type_utils.NotGiven
28
28
  ] = type_utils.NOT_GIVEN,
29
29
  request_options: typing.Optional[RequestOptions] = None,
30
- ) -> models.PostV1FaceSwapResponse:
30
+ ) -> models.V1FaceSwapCreateResponse:
31
31
  """
32
32
  Face Swap video
33
33
 
@@ -75,14 +75,14 @@ class FaceSwapClient:
75
75
  "start_seconds": start_seconds,
76
76
  "width": width,
77
77
  },
78
- dump_with=params._SerializerPostV1FaceSwapBody,
78
+ dump_with=params._SerializerV1FaceSwapCreateBody,
79
79
  )
80
80
  return self._base_client.request(
81
81
  method="POST",
82
82
  path="/v1/face-swap",
83
83
  auth_names=["bearerAuth"],
84
84
  json=_json,
85
- cast_to=models.PostV1FaceSwapResponse,
85
+ cast_to=models.V1FaceSwapCreateResponse,
86
86
  request_options=request_options or default_request_options(),
87
87
  )
88
88
 
@@ -94,7 +94,7 @@ class AsyncFaceSwapClient:
94
94
  async def create(
95
95
  self,
96
96
  *,
97
- assets: params.PostV1FaceSwapBodyAssets,
97
+ assets: params.V1FaceSwapCreateBodyAssets,
98
98
  end_seconds: float,
99
99
  height: int,
100
100
  start_seconds: float,
@@ -103,7 +103,7 @@ class AsyncFaceSwapClient:
103
103
  typing.Optional[str], type_utils.NotGiven
104
104
  ] = type_utils.NOT_GIVEN,
105
105
  request_options: typing.Optional[RequestOptions] = None,
106
- ) -> models.PostV1FaceSwapResponse:
106
+ ) -> models.V1FaceSwapCreateResponse:
107
107
  """
108
108
  Face Swap video
109
109
 
@@ -151,13 +151,13 @@ class AsyncFaceSwapClient:
151
151
  "start_seconds": start_seconds,
152
152
  "width": width,
153
153
  },
154
- dump_with=params._SerializerPostV1FaceSwapBody,
154
+ dump_with=params._SerializerV1FaceSwapCreateBody,
155
155
  )
156
156
  return await self._base_client.request(
157
157
  method="POST",
158
158
  path="/v1/face-swap",
159
159
  auth_names=["bearerAuth"],
160
160
  json=_json,
161
- cast_to=models.PostV1FaceSwapResponse,
161
+ cast_to=models.V1FaceSwapCreateResponse,
162
162
  request_options=request_options or default_request_options(),
163
163
  )