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.
- magic_hour/environment.py +1 -1
- magic_hour/resources/v1/ai_clothes_changer/client.py +8 -8
- magic_hour/resources/v1/ai_headshot_generator/client.py +20 -10
- magic_hour/resources/v1/ai_image_generator/client.py +10 -10
- magic_hour/resources/v1/ai_image_upscaler/client.py +12 -12
- magic_hour/resources/v1/ai_photo_editor/client.py +12 -12
- magic_hour/resources/v1/ai_qr_code_generator/client.py +10 -10
- magic_hour/resources/v1/animation/client.py +10 -10
- magic_hour/resources/v1/face_swap/client.py +8 -8
- magic_hour/resources/v1/face_swap_photo/client.py +8 -8
- magic_hour/resources/v1/files/upload_urls/README.md +4 -4
- magic_hour/resources/v1/files/upload_urls/client.py +14 -12
- magic_hour/resources/v1/image_background_remover/client.py +8 -8
- magic_hour/resources/v1/image_projects/client.py +4 -4
- magic_hour/resources/v1/image_to_video/client.py +12 -12
- magic_hour/resources/v1/lip_sync/client.py +8 -8
- magic_hour/resources/v1/text_to_video/client.py +10 -10
- magic_hour/resources/v1/video_projects/client.py +4 -4
- magic_hour/resources/v1/video_to_video/client.py +12 -12
- magic_hour/types/models/__init__.py +51 -51
- magic_hour/types/models/{post_v1_ai_clothes_changer_response.py → v1_ai_clothes_changer_create_response.py} +1 -1
- magic_hour/types/models/v1_ai_headshot_generator_create_response.py +25 -0
- magic_hour/types/models/{post_v1_ai_photo_editor_response.py → v1_ai_image_generator_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_ai_image_generator_response.py → v1_ai_image_upscaler_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_face_swap_photo_response.py → v1_ai_photo_editor_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_ai_headshot_generator_response.py → v1_ai_qr_code_generator_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_text_to_video_response.py → v1_animation_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_face_swap_response.py → v1_face_swap_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_ai_image_upscaler_response.py → v1_face_swap_photo_create_response.py} +1 -1
- magic_hour/types/models/v1_files_upload_urls_create_response.py +21 -0
- magic_hour/types/models/{post_v1_files_upload_urls_response_items_item.py → v1_files_upload_urls_create_response_items_item.py} +2 -2
- magic_hour/types/models/v1_image_background_remover_create_response.py +25 -0
- magic_hour/types/models/{get_v1_image_projects_id_response.py → v1_image_projects_get_response.py} +7 -7
- magic_hour/types/models/{get_v1_image_projects_id_response_downloads_item.py → v1_image_projects_get_response_downloads_item.py} +1 -1
- magic_hour/types/models/{get_v1_video_projects_id_response_error.py → v1_image_projects_get_response_error.py} +2 -2
- magic_hour/types/models/{post_v1_lip_sync_response.py → v1_image_to_video_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_animation_response.py → v1_lip_sync_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_image_to_video_response.py → v1_text_to_video_create_response.py} +1 -1
- magic_hour/types/models/{get_v1_video_projects_id_response.py → v1_video_projects_get_response.py} +10 -11
- magic_hour/types/models/{get_v1_video_projects_id_response_download.py → v1_video_projects_get_response_download.py} +1 -1
- magic_hour/types/models/{get_v1_video_projects_id_response_downloads_item.py → v1_video_projects_get_response_downloads_item.py} +1 -1
- magic_hour/types/models/{get_v1_image_projects_id_response_error.py → v1_video_projects_get_response_error.py} +2 -2
- magic_hour/types/models/v1_video_to_video_create_response.py +25 -0
- magic_hour/types/params/__init__.py +188 -176
- magic_hour/types/params/v1_ai_clothes_changer_create_body.py +40 -0
- magic_hour/types/params/{post_v1_ai_clothes_changer_body_assets.py → v1_ai_clothes_changer_create_body_assets.py} +3 -3
- magic_hour/types/params/v1_ai_headshot_generator_create_body.py +49 -0
- magic_hour/types/params/{post_v1_ai_headshot_generator_body_assets.py → v1_ai_headshot_generator_create_body_assets.py} +3 -3
- magic_hour/types/params/v1_ai_headshot_generator_create_body_style.py +27 -0
- magic_hour/types/params/{post_v1_ai_image_generator_body.py → v1_ai_image_generator_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_ai_image_generator_body_style.py → v1_ai_image_generator_create_body_style.py} +4 -4
- magic_hour/types/params/v1_ai_image_upscaler_create_body.py +57 -0
- magic_hour/types/params/{post_v1_ai_image_upscaler_body_assets.py → v1_ai_image_upscaler_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_ai_image_upscaler_body_style.py → v1_ai_image_upscaler_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_ai_photo_editor_body.py → v1_ai_photo_editor_create_body.py} +14 -14
- magic_hour/types/params/{post_v1_ai_photo_editor_body_assets.py → v1_ai_photo_editor_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_ai_photo_editor_body_style.py → v1_ai_photo_editor_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_ai_qr_code_generator_body.py → v1_ai_qr_code_generator_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_ai_qr_code_generator_body_style.py → v1_ai_qr_code_generator_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_animation_body.py → v1_animation_create_body.py} +14 -14
- magic_hour/types/params/{post_v1_animation_body_assets.py → v1_animation_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_animation_body_style.py → v1_animation_create_body_style.py} +3 -3
- magic_hour/types/params/{post_v1_face_swap_body.py → v1_face_swap_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_face_swap_body_assets.py → v1_face_swap_create_body_assets.py} +3 -3
- magic_hour/types/params/v1_face_swap_photo_create_body.py +40 -0
- magic_hour/types/params/{post_v1_face_swap_photo_body_assets.py → v1_face_swap_photo_create_body_assets.py} +3 -3
- magic_hour/types/params/v1_files_upload_urls_create_body.py +33 -0
- magic_hour/types/params/{post_v1_files_upload_urls_body_items_item.py → v1_files_upload_urls_create_body_items_item.py} +6 -6
- magic_hour/types/params/v1_image_background_remover_create_body.py +40 -0
- magic_hour/types/params/{post_v1_image_background_remover_body_assets.py → v1_image_background_remover_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_image_to_video_body.py → v1_image_to_video_create_body.py} +14 -14
- magic_hour/types/params/{post_v1_image_to_video_body_assets.py → v1_image_to_video_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_image_to_video_body_style.py → v1_image_to_video_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_lip_sync_body.py → v1_lip_sync_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_lip_sync_body_assets.py → v1_lip_sync_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_text_to_video_body.py → v1_text_to_video_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_text_to_video_body_style.py → v1_text_to_video_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_video_to_video_body.py → v1_video_to_video_create_body.py} +14 -14
- magic_hour/types/params/{post_v1_video_to_video_body_assets.py → v1_video_to_video_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_video_to_video_body_style.py → v1_video_to_video_create_body_style.py} +4 -4
- {magic_hour-0.9.5.dist-info → magic_hour-0.11.0.dist-info}/METADATA +1 -1
- magic_hour-0.11.0.dist-info/RECORD +133 -0
- magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -25
- magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -21
- magic_hour/types/models/post_v1_image_background_remover_response.py +0 -25
- magic_hour/types/models/post_v1_video_to_video_response.py +0 -25
- magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -40
- magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -40
- magic_hour/types/params/post_v1_ai_image_upscaler_body.py +0 -57
- magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -40
- magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -31
- magic_hour/types/params/post_v1_image_background_remover_body.py +0 -40
- magic_hour-0.9.5.dist-info/RECORD +0 -132
- {magic_hour-0.9.5.dist-info → magic_hour-0.11.0.dist-info}/LICENSE +0 -0
- {magic_hour-0.9.5.dist-info → magic_hour-0.11.0.dist-info}/WHEEL +0 -0
|
@@ -1,205 +1,217 @@
|
|
|
1
|
-
from .
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
)
|
|
5
|
-
from .post_v1_ai_clothes_changer_body_assets import (
|
|
6
|
-
PostV1AiClothesChangerBodyAssets,
|
|
7
|
-
_SerializerPostV1AiClothesChangerBodyAssets,
|
|
8
|
-
)
|
|
9
|
-
from .post_v1_ai_headshot_generator_body import (
|
|
10
|
-
PostV1AiHeadshotGeneratorBody,
|
|
11
|
-
_SerializerPostV1AiHeadshotGeneratorBody,
|
|
12
|
-
)
|
|
13
|
-
from .post_v1_ai_headshot_generator_body_assets import (
|
|
14
|
-
PostV1AiHeadshotGeneratorBodyAssets,
|
|
15
|
-
_SerializerPostV1AiHeadshotGeneratorBodyAssets,
|
|
16
|
-
)
|
|
17
|
-
from .post_v1_ai_image_generator_body import (
|
|
18
|
-
PostV1AiImageGeneratorBody,
|
|
19
|
-
_SerializerPostV1AiImageGeneratorBody,
|
|
20
|
-
)
|
|
21
|
-
from .post_v1_ai_image_generator_body_style import (
|
|
22
|
-
PostV1AiImageGeneratorBodyStyle,
|
|
23
|
-
_SerializerPostV1AiImageGeneratorBodyStyle,
|
|
24
|
-
)
|
|
25
|
-
from .post_v1_ai_image_upscaler_body import (
|
|
26
|
-
PostV1AiImageUpscalerBody,
|
|
27
|
-
_SerializerPostV1AiImageUpscalerBody,
|
|
28
|
-
)
|
|
29
|
-
from .post_v1_ai_image_upscaler_body_assets import (
|
|
30
|
-
PostV1AiImageUpscalerBodyAssets,
|
|
31
|
-
_SerializerPostV1AiImageUpscalerBodyAssets,
|
|
1
|
+
from .v1_ai_clothes_changer_create_body import (
|
|
2
|
+
V1AiClothesChangerCreateBody,
|
|
3
|
+
_SerializerV1AiClothesChangerCreateBody,
|
|
32
4
|
)
|
|
33
|
-
from .
|
|
34
|
-
|
|
35
|
-
|
|
5
|
+
from .v1_ai_clothes_changer_create_body_assets import (
|
|
6
|
+
V1AiClothesChangerCreateBodyAssets,
|
|
7
|
+
_SerializerV1AiClothesChangerCreateBodyAssets,
|
|
36
8
|
)
|
|
37
|
-
from .
|
|
38
|
-
|
|
39
|
-
|
|
9
|
+
from .v1_ai_headshot_generator_create_body import (
|
|
10
|
+
V1AiHeadshotGeneratorCreateBody,
|
|
11
|
+
_SerializerV1AiHeadshotGeneratorCreateBody,
|
|
40
12
|
)
|
|
41
|
-
from .
|
|
42
|
-
|
|
43
|
-
|
|
13
|
+
from .v1_ai_headshot_generator_create_body_assets import (
|
|
14
|
+
V1AiHeadshotGeneratorCreateBodyAssets,
|
|
15
|
+
_SerializerV1AiHeadshotGeneratorCreateBodyAssets,
|
|
44
16
|
)
|
|
45
|
-
from .
|
|
46
|
-
|
|
47
|
-
|
|
17
|
+
from .v1_ai_headshot_generator_create_body_style import (
|
|
18
|
+
V1AiHeadshotGeneratorCreateBodyStyle,
|
|
19
|
+
_SerializerV1AiHeadshotGeneratorCreateBodyStyle,
|
|
20
|
+
)
|
|
21
|
+
from .v1_ai_image_generator_create_body import (
|
|
22
|
+
V1AiImageGeneratorCreateBody,
|
|
23
|
+
_SerializerV1AiImageGeneratorCreateBody,
|
|
24
|
+
)
|
|
25
|
+
from .v1_ai_image_generator_create_body_style import (
|
|
26
|
+
V1AiImageGeneratorCreateBodyStyle,
|
|
27
|
+
_SerializerV1AiImageGeneratorCreateBodyStyle,
|
|
28
|
+
)
|
|
29
|
+
from .v1_ai_image_upscaler_create_body import (
|
|
30
|
+
V1AiImageUpscalerCreateBody,
|
|
31
|
+
_SerializerV1AiImageUpscalerCreateBody,
|
|
32
|
+
)
|
|
33
|
+
from .v1_ai_image_upscaler_create_body_assets import (
|
|
34
|
+
V1AiImageUpscalerCreateBodyAssets,
|
|
35
|
+
_SerializerV1AiImageUpscalerCreateBodyAssets,
|
|
36
|
+
)
|
|
37
|
+
from .v1_ai_image_upscaler_create_body_style import (
|
|
38
|
+
V1AiImageUpscalerCreateBodyStyle,
|
|
39
|
+
_SerializerV1AiImageUpscalerCreateBodyStyle,
|
|
40
|
+
)
|
|
41
|
+
from .v1_ai_photo_editor_create_body import (
|
|
42
|
+
V1AiPhotoEditorCreateBody,
|
|
43
|
+
_SerializerV1AiPhotoEditorCreateBody,
|
|
48
44
|
)
|
|
49
|
-
from .
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
from .v1_ai_photo_editor_create_body_assets import (
|
|
46
|
+
V1AiPhotoEditorCreateBodyAssets,
|
|
47
|
+
_SerializerV1AiPhotoEditorCreateBodyAssets,
|
|
52
48
|
)
|
|
53
|
-
from .
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
from .v1_ai_photo_editor_create_body_style import (
|
|
50
|
+
V1AiPhotoEditorCreateBodyStyle,
|
|
51
|
+
_SerializerV1AiPhotoEditorCreateBodyStyle,
|
|
56
52
|
)
|
|
57
|
-
from .
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_SerializerPostV1AnimationBodyAssets,
|
|
53
|
+
from .v1_ai_qr_code_generator_create_body import (
|
|
54
|
+
V1AiQrCodeGeneratorCreateBody,
|
|
55
|
+
_SerializerV1AiQrCodeGeneratorCreateBody,
|
|
61
56
|
)
|
|
62
|
-
from .
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
from .v1_ai_qr_code_generator_create_body_style import (
|
|
58
|
+
V1AiQrCodeGeneratorCreateBodyStyle,
|
|
59
|
+
_SerializerV1AiQrCodeGeneratorCreateBodyStyle,
|
|
65
60
|
)
|
|
66
|
-
from .
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
_SerializerPostV1FaceSwapBodyAssets,
|
|
61
|
+
from .v1_animation_create_body import (
|
|
62
|
+
V1AnimationCreateBody,
|
|
63
|
+
_SerializerV1AnimationCreateBody,
|
|
70
64
|
)
|
|
71
|
-
from .
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
from .v1_animation_create_body_assets import (
|
|
66
|
+
V1AnimationCreateBodyAssets,
|
|
67
|
+
_SerializerV1AnimationCreateBodyAssets,
|
|
74
68
|
)
|
|
75
|
-
from .
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
from .v1_animation_create_body_style import (
|
|
70
|
+
V1AnimationCreateBodyStyle,
|
|
71
|
+
_SerializerV1AnimationCreateBodyStyle,
|
|
78
72
|
)
|
|
79
|
-
from .
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
from .v1_face_swap_create_body import (
|
|
74
|
+
V1FaceSwapCreateBody,
|
|
75
|
+
_SerializerV1FaceSwapCreateBody,
|
|
82
76
|
)
|
|
83
|
-
from .
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
from .v1_face_swap_create_body_assets import (
|
|
78
|
+
V1FaceSwapCreateBodyAssets,
|
|
79
|
+
_SerializerV1FaceSwapCreateBodyAssets,
|
|
86
80
|
)
|
|
87
|
-
from .
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
from .v1_face_swap_photo_create_body import (
|
|
82
|
+
V1FaceSwapPhotoCreateBody,
|
|
83
|
+
_SerializerV1FaceSwapPhotoCreateBody,
|
|
90
84
|
)
|
|
91
|
-
from .
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
from .v1_face_swap_photo_create_body_assets import (
|
|
86
|
+
V1FaceSwapPhotoCreateBodyAssets,
|
|
87
|
+
_SerializerV1FaceSwapPhotoCreateBodyAssets,
|
|
94
88
|
)
|
|
95
|
-
from .
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
from .v1_files_upload_urls_create_body import (
|
|
90
|
+
V1FilesUploadUrlsCreateBody,
|
|
91
|
+
_SerializerV1FilesUploadUrlsCreateBody,
|
|
98
92
|
)
|
|
99
|
-
from .
|
|
100
|
-
|
|
101
|
-
|
|
93
|
+
from .v1_files_upload_urls_create_body_items_item import (
|
|
94
|
+
V1FilesUploadUrlsCreateBodyItemsItem,
|
|
95
|
+
_SerializerV1FilesUploadUrlsCreateBodyItemsItem,
|
|
102
96
|
)
|
|
103
|
-
from .
|
|
104
|
-
|
|
105
|
-
|
|
97
|
+
from .v1_image_background_remover_create_body import (
|
|
98
|
+
V1ImageBackgroundRemoverCreateBody,
|
|
99
|
+
_SerializerV1ImageBackgroundRemoverCreateBody,
|
|
106
100
|
)
|
|
107
|
-
from .
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
_SerializerPostV1LipSyncBodyAssets,
|
|
101
|
+
from .v1_image_background_remover_create_body_assets import (
|
|
102
|
+
V1ImageBackgroundRemoverCreateBodyAssets,
|
|
103
|
+
_SerializerV1ImageBackgroundRemoverCreateBodyAssets,
|
|
111
104
|
)
|
|
112
|
-
from .
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
from .v1_image_to_video_create_body import (
|
|
106
|
+
V1ImageToVideoCreateBody,
|
|
107
|
+
_SerializerV1ImageToVideoCreateBody,
|
|
115
108
|
)
|
|
116
|
-
from .
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
from .v1_image_to_video_create_body_assets import (
|
|
110
|
+
V1ImageToVideoCreateBodyAssets,
|
|
111
|
+
_SerializerV1ImageToVideoCreateBodyAssets,
|
|
119
112
|
)
|
|
120
|
-
from .
|
|
121
|
-
|
|
122
|
-
|
|
113
|
+
from .v1_image_to_video_create_body_style import (
|
|
114
|
+
V1ImageToVideoCreateBodyStyle,
|
|
115
|
+
_SerializerV1ImageToVideoCreateBodyStyle,
|
|
123
116
|
)
|
|
124
|
-
from .
|
|
125
|
-
|
|
126
|
-
|
|
117
|
+
from .v1_lip_sync_create_body import V1LipSyncCreateBody, _SerializerV1LipSyncCreateBody
|
|
118
|
+
from .v1_lip_sync_create_body_assets import (
|
|
119
|
+
V1LipSyncCreateBodyAssets,
|
|
120
|
+
_SerializerV1LipSyncCreateBodyAssets,
|
|
127
121
|
)
|
|
128
|
-
from .
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
from .v1_text_to_video_create_body import (
|
|
123
|
+
V1TextToVideoCreateBody,
|
|
124
|
+
_SerializerV1TextToVideoCreateBody,
|
|
125
|
+
)
|
|
126
|
+
from .v1_text_to_video_create_body_style import (
|
|
127
|
+
V1TextToVideoCreateBodyStyle,
|
|
128
|
+
_SerializerV1TextToVideoCreateBodyStyle,
|
|
129
|
+
)
|
|
130
|
+
from .v1_video_to_video_create_body import (
|
|
131
|
+
V1VideoToVideoCreateBody,
|
|
132
|
+
_SerializerV1VideoToVideoCreateBody,
|
|
133
|
+
)
|
|
134
|
+
from .v1_video_to_video_create_body_assets import (
|
|
135
|
+
V1VideoToVideoCreateBodyAssets,
|
|
136
|
+
_SerializerV1VideoToVideoCreateBodyAssets,
|
|
137
|
+
)
|
|
138
|
+
from .v1_video_to_video_create_body_style import (
|
|
139
|
+
V1VideoToVideoCreateBodyStyle,
|
|
140
|
+
_SerializerV1VideoToVideoCreateBodyStyle,
|
|
131
141
|
)
|
|
132
142
|
|
|
133
143
|
|
|
134
144
|
__all__ = [
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
145
|
+
"V1AiClothesChangerCreateBody",
|
|
146
|
+
"V1AiClothesChangerCreateBodyAssets",
|
|
147
|
+
"V1AiHeadshotGeneratorCreateBody",
|
|
148
|
+
"V1AiHeadshotGeneratorCreateBodyAssets",
|
|
149
|
+
"V1AiHeadshotGeneratorCreateBodyStyle",
|
|
150
|
+
"V1AiImageGeneratorCreateBody",
|
|
151
|
+
"V1AiImageGeneratorCreateBodyStyle",
|
|
152
|
+
"V1AiImageUpscalerCreateBody",
|
|
153
|
+
"V1AiImageUpscalerCreateBodyAssets",
|
|
154
|
+
"V1AiImageUpscalerCreateBodyStyle",
|
|
155
|
+
"V1AiPhotoEditorCreateBody",
|
|
156
|
+
"V1AiPhotoEditorCreateBodyAssets",
|
|
157
|
+
"V1AiPhotoEditorCreateBodyStyle",
|
|
158
|
+
"V1AiQrCodeGeneratorCreateBody",
|
|
159
|
+
"V1AiQrCodeGeneratorCreateBodyStyle",
|
|
160
|
+
"V1AnimationCreateBody",
|
|
161
|
+
"V1AnimationCreateBodyAssets",
|
|
162
|
+
"V1AnimationCreateBodyStyle",
|
|
163
|
+
"V1FaceSwapCreateBody",
|
|
164
|
+
"V1FaceSwapCreateBodyAssets",
|
|
165
|
+
"V1FaceSwapPhotoCreateBody",
|
|
166
|
+
"V1FaceSwapPhotoCreateBodyAssets",
|
|
167
|
+
"V1FilesUploadUrlsCreateBody",
|
|
168
|
+
"V1FilesUploadUrlsCreateBodyItemsItem",
|
|
169
|
+
"V1ImageBackgroundRemoverCreateBody",
|
|
170
|
+
"V1ImageBackgroundRemoverCreateBodyAssets",
|
|
171
|
+
"V1ImageToVideoCreateBody",
|
|
172
|
+
"V1ImageToVideoCreateBodyAssets",
|
|
173
|
+
"V1ImageToVideoCreateBodyStyle",
|
|
174
|
+
"V1LipSyncCreateBody",
|
|
175
|
+
"V1LipSyncCreateBodyAssets",
|
|
176
|
+
"V1TextToVideoCreateBody",
|
|
177
|
+
"V1TextToVideoCreateBodyStyle",
|
|
178
|
+
"V1VideoToVideoCreateBody",
|
|
179
|
+
"V1VideoToVideoCreateBodyAssets",
|
|
180
|
+
"V1VideoToVideoCreateBodyStyle",
|
|
181
|
+
"_SerializerV1AiClothesChangerCreateBody",
|
|
182
|
+
"_SerializerV1AiClothesChangerCreateBodyAssets",
|
|
183
|
+
"_SerializerV1AiHeadshotGeneratorCreateBody",
|
|
184
|
+
"_SerializerV1AiHeadshotGeneratorCreateBodyAssets",
|
|
185
|
+
"_SerializerV1AiHeadshotGeneratorCreateBodyStyle",
|
|
186
|
+
"_SerializerV1AiImageGeneratorCreateBody",
|
|
187
|
+
"_SerializerV1AiImageGeneratorCreateBodyStyle",
|
|
188
|
+
"_SerializerV1AiImageUpscalerCreateBody",
|
|
189
|
+
"_SerializerV1AiImageUpscalerCreateBodyAssets",
|
|
190
|
+
"_SerializerV1AiImageUpscalerCreateBodyStyle",
|
|
191
|
+
"_SerializerV1AiPhotoEditorCreateBody",
|
|
192
|
+
"_SerializerV1AiPhotoEditorCreateBodyAssets",
|
|
193
|
+
"_SerializerV1AiPhotoEditorCreateBodyStyle",
|
|
194
|
+
"_SerializerV1AiQrCodeGeneratorCreateBody",
|
|
195
|
+
"_SerializerV1AiQrCodeGeneratorCreateBodyStyle",
|
|
196
|
+
"_SerializerV1AnimationCreateBody",
|
|
197
|
+
"_SerializerV1AnimationCreateBodyAssets",
|
|
198
|
+
"_SerializerV1AnimationCreateBodyStyle",
|
|
199
|
+
"_SerializerV1FaceSwapCreateBody",
|
|
200
|
+
"_SerializerV1FaceSwapCreateBodyAssets",
|
|
201
|
+
"_SerializerV1FaceSwapPhotoCreateBody",
|
|
202
|
+
"_SerializerV1FaceSwapPhotoCreateBodyAssets",
|
|
203
|
+
"_SerializerV1FilesUploadUrlsCreateBody",
|
|
204
|
+
"_SerializerV1FilesUploadUrlsCreateBodyItemsItem",
|
|
205
|
+
"_SerializerV1ImageBackgroundRemoverCreateBody",
|
|
206
|
+
"_SerializerV1ImageBackgroundRemoverCreateBodyAssets",
|
|
207
|
+
"_SerializerV1ImageToVideoCreateBody",
|
|
208
|
+
"_SerializerV1ImageToVideoCreateBodyAssets",
|
|
209
|
+
"_SerializerV1ImageToVideoCreateBodyStyle",
|
|
210
|
+
"_SerializerV1LipSyncCreateBody",
|
|
211
|
+
"_SerializerV1LipSyncCreateBodyAssets",
|
|
212
|
+
"_SerializerV1TextToVideoCreateBody",
|
|
213
|
+
"_SerializerV1TextToVideoCreateBodyStyle",
|
|
214
|
+
"_SerializerV1VideoToVideoCreateBody",
|
|
215
|
+
"_SerializerV1VideoToVideoCreateBodyAssets",
|
|
216
|
+
"_SerializerV1VideoToVideoCreateBodyStyle",
|
|
205
217
|
]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import pydantic
|
|
2
|
+
import typing
|
|
3
|
+
import typing_extensions
|
|
4
|
+
|
|
5
|
+
from .v1_ai_clothes_changer_create_body_assets import (
|
|
6
|
+
V1AiClothesChangerCreateBodyAssets,
|
|
7
|
+
_SerializerV1AiClothesChangerCreateBodyAssets,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class V1AiClothesChangerCreateBody(typing_extensions.TypedDict):
|
|
12
|
+
"""
|
|
13
|
+
V1AiClothesChangerCreateBody
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
assets: typing_extensions.Required[V1AiClothesChangerCreateBodyAssets]
|
|
17
|
+
"""
|
|
18
|
+
Provide the assets for clothes changer
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
name: typing_extensions.NotRequired[str]
|
|
22
|
+
"""
|
|
23
|
+
The name of image
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class _SerializerV1AiClothesChangerCreateBody(pydantic.BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
Serializer for V1AiClothesChangerCreateBody 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: _SerializerV1AiClothesChangerCreateBodyAssets = 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
|
|
5
|
+
class V1AiClothesChangerCreateBodyAssets(typing_extensions.TypedDict):
|
|
6
6
|
"""
|
|
7
7
|
Provide the assets for clothes changer
|
|
8
8
|
"""
|
|
@@ -22,9 +22,9 @@ class PostV1AiClothesChangerBodyAssets(typing_extensions.TypedDict):
|
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class _SerializerV1AiClothesChangerCreateBodyAssets(pydantic.BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
Serializer for
|
|
27
|
+
Serializer for V1AiClothesChangerCreateBodyAssets handling case conversions
|
|
28
28
|
and file omissions as dictated by the API
|
|
29
29
|
"""
|
|
30
30
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import pydantic
|
|
2
|
+
import typing
|
|
3
|
+
import typing_extensions
|
|
4
|
+
|
|
5
|
+
from .v1_ai_headshot_generator_create_body_assets import (
|
|
6
|
+
V1AiHeadshotGeneratorCreateBodyAssets,
|
|
7
|
+
_SerializerV1AiHeadshotGeneratorCreateBodyAssets,
|
|
8
|
+
)
|
|
9
|
+
from .v1_ai_headshot_generator_create_body_style import (
|
|
10
|
+
V1AiHeadshotGeneratorCreateBodyStyle,
|
|
11
|
+
_SerializerV1AiHeadshotGeneratorCreateBodyStyle,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class V1AiHeadshotGeneratorCreateBody(typing_extensions.TypedDict):
|
|
16
|
+
"""
|
|
17
|
+
V1AiHeadshotGeneratorCreateBody
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
assets: typing_extensions.Required[V1AiHeadshotGeneratorCreateBodyAssets]
|
|
21
|
+
"""
|
|
22
|
+
Provide the assets for headshot photo
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
name: typing_extensions.NotRequired[str]
|
|
26
|
+
"""
|
|
27
|
+
The name of image
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
style: typing_extensions.NotRequired[V1AiHeadshotGeneratorCreateBodyStyle]
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class _SerializerV1AiHeadshotGeneratorCreateBody(pydantic.BaseModel):
|
|
34
|
+
"""
|
|
35
|
+
Serializer for V1AiHeadshotGeneratorCreateBody handling case conversions
|
|
36
|
+
and file omissions as dictated by the API
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
model_config = pydantic.ConfigDict(
|
|
40
|
+
populate_by_name=True,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
assets: _SerializerV1AiHeadshotGeneratorCreateBodyAssets = pydantic.Field(
|
|
44
|
+
alias="assets",
|
|
45
|
+
)
|
|
46
|
+
name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
|
|
47
|
+
style: typing.Optional[_SerializerV1AiHeadshotGeneratorCreateBodyStyle] = (
|
|
48
|
+
pydantic.Field(alias="style", default=None)
|
|
49
|
+
)
|
|
@@ -2,7 +2,7 @@ import pydantic
|
|
|
2
2
|
import typing_extensions
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class
|
|
5
|
+
class V1AiHeadshotGeneratorCreateBodyAssets(typing_extensions.TypedDict):
|
|
6
6
|
"""
|
|
7
7
|
Provide the assets for headshot photo
|
|
8
8
|
"""
|
|
@@ -13,9 +13,9 @@ class PostV1AiHeadshotGeneratorBodyAssets(typing_extensions.TypedDict):
|
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class _SerializerV1AiHeadshotGeneratorCreateBodyAssets(pydantic.BaseModel):
|
|
17
17
|
"""
|
|
18
|
-
Serializer for
|
|
18
|
+
Serializer for V1AiHeadshotGeneratorCreateBodyAssets handling case conversions
|
|
19
19
|
and file omissions as dictated by the API
|
|
20
20
|
"""
|
|
21
21
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import pydantic
|
|
2
|
+
import typing
|
|
3
|
+
import typing_extensions
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class V1AiHeadshotGeneratorCreateBodyStyle(typing_extensions.TypedDict):
|
|
7
|
+
"""
|
|
8
|
+
V1AiHeadshotGeneratorCreateBodyStyle
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
prompt: typing_extensions.NotRequired[str]
|
|
12
|
+
"""
|
|
13
|
+
A prompt to guide the final image.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class _SerializerV1AiHeadshotGeneratorCreateBodyStyle(pydantic.BaseModel):
|
|
18
|
+
"""
|
|
19
|
+
Serializer for V1AiHeadshotGeneratorCreateBodyStyle handling case conversions
|
|
20
|
+
and file omissions as dictated by the API
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
model_config = pydantic.ConfigDict(
|
|
24
|
+
populate_by_name=True,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
prompt: typing.Optional[str] = pydantic.Field(alias="prompt", default=None)
|
magic_hour/types/params/{post_v1_ai_image_generator_body.py → v1_ai_image_generator_create_body.py}
RENAMED
|
@@ -2,15 +2,15 @@ import pydantic
|
|
|
2
2
|
import typing
|
|
3
3
|
import typing_extensions
|
|
4
4
|
|
|
5
|
-
from .
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
from .v1_ai_image_generator_create_body_style import (
|
|
6
|
+
V1AiImageGeneratorCreateBodyStyle,
|
|
7
|
+
_SerializerV1AiImageGeneratorCreateBodyStyle,
|
|
8
8
|
)
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class V1AiImageGeneratorCreateBody(typing_extensions.TypedDict):
|
|
12
12
|
"""
|
|
13
|
-
|
|
13
|
+
V1AiImageGeneratorCreateBody
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
image_count: typing_extensions.Required[int]
|
|
@@ -27,12 +27,12 @@ class PostV1AiImageGeneratorBody(typing_extensions.TypedDict):
|
|
|
27
27
|
typing_extensions.Literal["landscape", "portrait", "square"]
|
|
28
28
|
]
|
|
29
29
|
|
|
30
|
-
style: typing_extensions.Required[
|
|
30
|
+
style: typing_extensions.Required[V1AiImageGeneratorCreateBodyStyle]
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class _SerializerV1AiImageGeneratorCreateBody(pydantic.BaseModel):
|
|
34
34
|
"""
|
|
35
|
-
Serializer for
|
|
35
|
+
Serializer for V1AiImageGeneratorCreateBody handling case conversions
|
|
36
36
|
and file omissions as dictated by the API
|
|
37
37
|
"""
|
|
38
38
|
|
|
@@ -49,6 +49,6 @@ class _SerializerPostV1AiImageGeneratorBody(pydantic.BaseModel):
|
|
|
49
49
|
alias="orientation",
|
|
50
50
|
)
|
|
51
51
|
)
|
|
52
|
-
style:
|
|
52
|
+
style: _SerializerV1AiImageGeneratorCreateBodyStyle = pydantic.Field(
|
|
53
53
|
alias="style",
|
|
54
54
|
)
|
|
@@ -2,9 +2,9 @@ import pydantic
|
|
|
2
2
|
import typing_extensions
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class
|
|
5
|
+
class V1AiImageGeneratorCreateBodyStyle(typing_extensions.TypedDict):
|
|
6
6
|
"""
|
|
7
|
-
|
|
7
|
+
V1AiImageGeneratorCreateBodyStyle
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
10
|
prompt: typing_extensions.Required[str]
|
|
@@ -13,9 +13,9 @@ class PostV1AiImageGeneratorBodyStyle(typing_extensions.TypedDict):
|
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class _SerializerV1AiImageGeneratorCreateBodyStyle(pydantic.BaseModel):
|
|
17
17
|
"""
|
|
18
|
-
Serializer for
|
|
18
|
+
Serializer for V1AiImageGeneratorCreateBodyStyle handling case conversions
|
|
19
19
|
and file omissions as dictated by the API
|
|
20
20
|
"""
|
|
21
21
|
|