Skip to content

Commit 8fbbf26

Browse files
magic-hour-sdk-bot[bot]sdk-github-actions[bot]
andauthored
feat: update POST /v1/ai-face-editor params to be optional (#75)
Co-authored-by: sdk-github-actions[bot] <sdk-github-actions[bot]@users.noreply.github.com>
1 parent c970fdb commit 8fbbf26

File tree

142 files changed

+556
-664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+556
-664
lines changed

.sdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"id": "e46230bf-0f68-4dda-b1b4-41cc0c4c19af"
2+
"id": "8b7ebc5c-92b7-4768-8aab-ee50afb67f74"
33
}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "magic_hour"
3-
version = "0.33.1"
3+
version = "0.34.0"
44
edition = "2021"
55
description = "Magic Hour Rust SDK"
66
license = "MIT"

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Client {
3737
);
3838
self
3939
}
40-
pub fn v1(&mut self) -> crate::resources::v1::resource_client::V1Client {
40+
pub fn v1(&mut self) -> crate::resources::v1::resource_client::V1Client<'_> {
4141
crate::resources::v1::resource_client::V1Client::_new(&mut self.base_client)
4242
}
4343
}

src/environment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ impl Display for Environment {
1010
match self {
1111
Environment::Environment => write!(f, "https://api.magichour.ai"),
1212
Environment::MockServer => {
13-
write!(f, "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.33.1")
13+
write!(f, "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.34.0")
1414
}
1515
}
1616
}

src/models/mod.rs

Lines changed: 0 additions & 330 deletions
Large diffs are not rendered by default.

src/models/v1_ai_clothes_changer_create_body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
pub struct V1AiClothesChangerCreateBody {
44
/// Provide the assets for clothes changer
55
pub assets: crate::models::V1AiClothesChangerCreateBodyAssets,
6-
/// The name of image
6+
/// The name of image. This value is mainly used for your own identification of the image.
77
#[serde(skip_serializing_if = "Option::is_none")]
88
pub name: Option<String>,
99
}
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
/// Provide the assets for clothes changer
22
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
33
pub struct V1AiClothesChangerCreateBodyAssets {
4-
/// The image of the outfit. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file..
4+
/// The image of the outfit. This value is either
5+
/// - a direct URL to the video file
6+
/// - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
7+
///
8+
/// Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
9+
///
510
pub garment_file_path: String,
11+
/// The type of the outfit.
612
pub garment_type: crate::models::V1AiClothesChangerCreateBodyAssetsGarmentTypeEnum,
7-
/// The image with the person. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file..
13+
/// The image with the person. This value is either
14+
/// - a direct URL to the video file
15+
/// - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
16+
///
17+
/// Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
18+
///
819
pub person_file_path: String,
920
}

src/models/v1_ai_clothes_changer_create_body_assets_garment_type_enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// V1AiClothesChangerCreateBodyAssetsGarmentTypeEnum
1+
/// The type of the outfit.
22
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
33
pub enum V1AiClothesChangerCreateBodyAssetsGarmentTypeEnum {
44
#[default]

src/models/v1_ai_face_editor_create_body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
pub struct V1AiFaceEditorCreateBody {
44
/// Provide the assets for face editor
55
pub assets: crate::models::V1AiFaceEditorCreateBodyAssets,
6-
/// The name of image
6+
/// The name of image. This value is mainly used for your own identification of the image.
77
#[serde(skip_serializing_if = "Option::is_none")]
88
pub name: Option<String>,
99
/// Face editing parameters

0 commit comments

Comments
 (0)