Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions src/libs/WorldLabs/Generated/WorldLabs.AutoSDKHttpResponse.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@

#nullable enable

namespace WorldLabs
{
/// <summary>
/// Represents a successful HTTP response with status code and headers.
/// </summary>
public partial class AutoSDKHttpResponse
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers)
: this(
statusCode: statusCode,
headers: headers,
requestUri: null)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
global::System.Uri? requestUri)
{
StatusCode = statusCode;
Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers));
RequestUri = requestUri;
}

/// <summary>
/// Gets the HTTP status code.
/// </summary>
public global::System.Net.HttpStatusCode StatusCode { get; }
/// <summary>
/// Gets the response headers.
/// </summary>
public global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> Headers { get; }
/// <summary>
/// Gets the final request URI associated with the response.
/// </summary>
public global::System.Uri? RequestUri { get; }

internal static global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> CreateHeaders(
global::System.Net.Http.HttpResponseMessage response)
{
response = response ?? throw new global::System.ArgumentNullException(nameof(response));

var headers = global::System.Linq.Enumerable.ToDictionary(
response.Headers,
static header => header.Key,
static header => (global::System.Collections.Generic.IEnumerable<string>)global::System.Linq.Enumerable.ToArray(header.Value),
global::System.StringComparer.OrdinalIgnoreCase);

if (response.Content?.Headers == null)
{
return headers;
}

foreach (var header in response.Content.Headers)
{
if (headers.TryGetValue(header.Key, out var existingValues))
{
headers[header.Key] = global::System.Linq.Enumerable.ToArray(
global::System.Linq.Enumerable.Concat(existingValues, header.Value));
}
else
{
headers[header.Key] = global::System.Linq.Enumerable.ToArray(header.Value);
}
}

return headers;
}
}

/// <summary>
/// Represents a successful HTTP response with status code, headers, and body.
/// </summary>
public partial class AutoSDKHttpResponse<T> : AutoSDKHttpResponse
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse{T}"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
T body)
: this(
statusCode: statusCode,
headers: headers,
requestUri: null,
body: body)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse{T}"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
global::System.Uri? requestUri,
T body)
: base(statusCode, headers, requestUri)
{
Body = body;
}

/// <summary>
/// Gets the response body.
/// </summary>
public T Body { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,27 @@ public partial interface IWorldLabsClient
string worldId,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete World<br/>
/// Delete a world by ID.<br/>
/// Permanently deletes a world and its associated assets.<br/>
/// Only the world owner can delete a world.<br/>
/// Args:<br/>
/// world_id: The unique identifier of the world to delete.<br/>
/// Returns:<br/>
/// DeleteWorldResponse confirming the deletion.<br/>
/// Raises:<br/>
/// HTTPException: 403 if user is not the world owner<br/>
/// HTTPException: 404 if world not found<br/>
/// HTTPException: 500 if deletion fails
/// </summary>
/// <param name="worldId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::WorldLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::WorldLabs.AutoSDKHttpResponse<global::WorldLabs.DeleteWorldResponse>> DeleteWorldMarbleV1WorldsWorldIdDeleteAsResponseAsync(
string worldId,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,32 @@ public partial interface IWorldLabsClient
/// HTTPException: 402 if insufficient credits<br/>
/// HTTPException: 500 if generation could not be started
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::WorldLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::WorldLabs.AutoSDKHttpResponse<global::WorldLabs.GenerateWorldResponse>> GenerateWorldMarbleV1WorldsGeneratePostAsResponseAsync(

global::WorldLabs.WorldsGenerateRequest request,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate World<br/>
/// Start world generation.<br/>
/// Creates a new world generation job and returns a long-running operation.<br/>
/// Poll the /operations/{operation_id} endpoint to check generation status<br/>
/// and retrieve the generated world when complete.<br/>
/// Args:<br/>
/// request: The world generation request containing world_prompt, display_name,<br/>
/// tags, model, seed, and permission settings.<br/>
/// Returns:<br/>
/// GenerateWorldResponse with operation_id and timestamps. Use the operation_id<br/>
/// to poll for completion.<br/>
/// Raises:<br/>
/// HTTPException: 400 if invalid request or content violates policies<br/>
/// HTTPException: 402 if insufficient credits<br/>
/// HTTPException: 500 if generation could not be started
/// </summary>
/// <param name="displayName">
/// Optional display name (max 64 characters)
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,25 @@ public partial interface IWorldLabsClient
string mediaAssetId,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get Media Asset<br/>
/// Get a media asset by ID.<br/>
/// Retrieves metadata for a previously created media asset.<br/>
/// Args:<br/>
/// media_asset_id: The media asset identifier.<br/>
/// Returns:<br/>
/// MediaAsset object with media_asset_id, file_name, extension, kind,<br/>
/// metadata, created_at, and updated_at.<br/>
/// Raises:<br/>
/// HTTPException: 404 if not found
/// </summary>
/// <param name="mediaAssetId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::WorldLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::WorldLabs.AutoSDKHttpResponse<global::WorldLabs.MediaAsset>> GetMediaAssetMarbleV1MediaAssetsMediaAssetIdGetAsResponseAsync(
string mediaAssetId,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,35 @@ public partial interface IWorldLabsClient
string operationId,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get Operation<br/>
/// Get an operation by ID.<br/>
/// Poll this endpoint to check the status of a long-running operation.<br/>
/// When done=true, the response field contains the generated world.<br/>
/// Args:<br/>
/// operation_id: The operation identifier from /worlds:generate.<br/>
/// Returns:<br/>
/// GetOperationResponse[World] with:<br/>
/// - operation_id: Operation identifier<br/>
/// - created_at: Creation timestamp<br/>
/// - updated_at: Last update timestamp<br/>
/// - expires_at: Expiration timestamp<br/>
/// - done: true when complete, false while in progress<br/>
/// - error: Error details if failed, null otherwise<br/>
/// - metadata: Progress information and world_id<br/>
/// - response: Generated World if done=true, null otherwise<br/>
/// Raises:<br/>
/// HTTPException: 401 if unauthorized<br/>
/// HTTPException: 404 if operation not found<br/>
/// HTTPException: 500 if request fails
/// </summary>
/// <param name="operationId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::WorldLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::WorldLabs.AutoSDKHttpResponse<global::WorldLabs.GetOperationResponseUnionWorldPanoDepthToRgbResult>> GetOperationMarbleV1OperationsOperationIdGetAsResponseAsync(
string operationId,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,26 @@ public partial interface IWorldLabsClient
string worldId,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get World<br/>
/// Get a world by ID.<br/>
/// Retrieves a world's details including generated assets if available.<br/>
/// Only the world owner or users with access to public worlds can retrieve them.<br/>
/// Args:<br/>
/// world_id: The unique identifier of the world.<br/>
/// Returns:<br/>
/// World object with world_id, display_name, tags, assets, created_at,<br/>
/// updated_at, permission, model, world_prompt, and world_marble_url.<br/>
/// Raises:<br/>
/// HTTPException: 404 if world not found or access denied
/// </summary>
/// <param name="worldId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::WorldLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::WorldLabs.AutoSDKHttpResponse<global::WorldLabs.World>> GetWorldMarbleV1WorldsWorldIdGetAsResponseAsync(
string worldId,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@ public partial interface IWorldLabsClient
global::System.Threading.Tasks.Task<string> HealthzHealthzGetAsync(
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Healthz<br/>
/// Health check endpoint for Kubernetes probes.
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::WorldLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::WorldLabs.AutoSDKHttpResponse<string>> HealthzHealthzGetAsResponseAsync(
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,36 @@ public partial interface IWorldLabsClient
/// HTTPException: 400 if invalid parameters<br/>
/// HTTPException: 500 if request fails
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::WorldLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::WorldLabs.AutoSDKHttpResponse<global::WorldLabs.ListWorldsResponse>> ListWorldsMarbleV1WorldsListPostAsResponseAsync(

global::WorldLabs.ListWorldsRequest request,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List Worlds<br/>
/// List worlds with optional filters.<br/>
/// Returns worlds created through the API with optional filtering and pagination.<br/>
/// Args:<br/>
/// request: List request with optional filters:<br/>
/// - page_size: Number of results per page (default: 10)<br/>
/// - page_token: Pagination token from previous response<br/>
/// - status: Filter by status (e.g., "COMPLETED")<br/>
/// - model: Filter by model name (e.g., "marble-1.0-plus")<br/>
/// - tags: Filter by tags (matches worlds with any tag)<br/>
/// - is_public: Filter by visibility (true=public, false=private, null=all)<br/>
/// - created_after: Filter by creation time (after timestamp)<br/>
/// - created_before: Filter by creation time (before timestamp)<br/>
/// - sort_by: Sort order ("created_at" or "updated_at")<br/>
/// Returns:<br/>
/// ListWorldsResponse with worlds list and next_page_token for pagination.<br/>
/// Raises:<br/>
/// HTTPException: 400 if invalid parameters<br/>
/// HTTPException: 500 if request fails
/// </summary>
/// <param name="createdAfter">
/// Filter worlds created after this timestamp (inclusive)
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,40 @@ public partial interface IWorldLabsClient
/// HTTPException: 402 if insufficient credits<br/>
/// HTTPException: 500 if generation could not start
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::WorldLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::WorldLabs.AutoSDKHttpResponse<global::WorldLabs.OperationPanoDepthToRgbResult>> PanoDepthToRgbMarbleV1PanoDepthToRgbPostAsResponseAsync(

global::WorldLabs.PanoDepthToRgbRequest request,
global::WorldLabs.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Pano Depth To Rgb<br/>
/// Generate an RGB panorama from a depth panorama.<br/>
/// Provide a depth panorama and a text prompt<br/>
/// describing the desired appearance. The depth map<br/>
/// supplies the scene geometry; the model synthesizes<br/>
/// textures that match that geometry and returns a<br/>
/// panoramic RGB image.<br/>
/// Accepted depth inputs:<br/>
/// * **EXR**: float depth values. Omit<br/>
/// ``z_min`` and ``z_max``.<br/>
/// * **PNG**: depth values normalized to [0, 1].<br/>
/// Provide both ``z_min`` and ``z_max`` so the<br/>
/// service can decode the PNG correctly.<br/>
/// For a complete PNG-based workflow, see the<br/>
/// [web-chisel-depth-png example](https://github.com/worldlabsai/worldlabs-api-examples/tree/main/web-chisel-depth-png).<br/>
/// Returns a long-running ``Operation``. Poll<br/>
/// ``GET /operations/{operation_id}`` until<br/>
/// ``done`` is ``true``, then read the generated<br/>
/// panorama URL from ``response.pano_url``.<br/>
/// Raises:<br/>
/// HTTPException: 400 if invalid request<br/>
/// HTTPException: 402 if insufficient credits<br/>
/// HTTPException: 500 if generation could not start
/// </summary>
/// <param name="depthPanoImage">
/// Depth panorama image (EXR or PNG). Provide via URI, media_asset, or base64 (max 100 MB).
/// </param>
Expand Down
Loading