diff --git a/crates/api_clients/world_labs_client/src/api/requests/objects/post_object_image.rs b/crates/api_clients/world_labs_client/src/api/requests/objects/begin_object_image_attachment.rs similarity index 92% rename from crates/api_clients/world_labs_client/src/api/requests/objects/post_object_image.rs rename to crates/api_clients/world_labs_client/src/api/requests/objects/begin_object_image_attachment.rs index 46c3cbde27..5b753cefba 100644 --- a/crates/api_clients/world_labs_client/src/api/requests/objects/post_object_image.rs +++ b/crates/api_clients/world_labs_client/src/api/requests/objects/begin_object_image_attachment.rs @@ -27,21 +27,21 @@ use wreq_util::Emulation; const URL : &str = "https://marble2-kgw-prod-iac1.wlt-ai.art/api/v1/objects"; -pub struct PostObjectImageArgs<'a> { +pub struct BeginObjectImageAttachmentArgs<'a> { pub cookies: &'a WorldLabsCookies, pub bearer_token: &'a WorldLabsBearerToken, pub upload_mime_type: UploadMimeType, pub request_timeout: Option, } -pub struct PostObjectImageResponse { +pub struct BeginObjectImageAttachmentResponse { pub id: UploadId, } /// Marble Image-to-World /// This request follows object initialization and prepares for image upload. /// Request #2 (of ~10) -pub async fn post_object_image(args: PostObjectImageArgs<'_>) -> Result { +pub async fn begin_object_image_attachment(args: BeginObjectImageAttachmentArgs<'_>) -> Result { let client = Client::builder() .emulation(Emulation::Firefox143) .build() @@ -103,7 +103,7 @@ pub async fn post_object_image(args: PostObjectImageArgs<'_>) -> Result