From 42e3eb6739f1d88a6ad124bf2c506f87e5fe05d1 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 10 Dec 2025 01:57:23 -0500 Subject: [PATCH] wip --- ...bject_image.rs => begin_object_image_attachment.rs} | 10 +++++----- .../world_labs_client/src/api/requests/objects/mod.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename crates/api_clients/world_labs_client/src/api/requests/objects/{post_object_image.rs => begin_object_image_attachment.rs} (92%) 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