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
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public ConvertRequest(
public ConvertRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@ public GenerationResult(
public GenerationResult()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class GenerationResultMetadata
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ public GenerationStatusResponse(
public GenerationStatusResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ public GenerationTaskResponse(
public GenerationTaskResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,6 @@ public HunyuanGenerationRequest(
public HunyuanGenerationRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ public Trellis2GenerationRequest(
public Trellis2GenerationRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ public TripoImageInput(
public TripoImageInput()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickSharedGeneration(
return IsSharedGeneration;
}

/// <summary>
///
/// </summary>
public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => IsSharedGeneration
? SharedGeneration!
: throw new global::System.InvalidOperationException($"Expected union variant 'SharedGeneration' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickTripoImageTo3DRequestVariant2(
value = TripoImageTo3DRequestVariant2;
return IsTripoImageTo3DRequestVariant2;
}

/// <summary>
///
/// </summary>
public global::ThreeDAIStudio.TripoImageTo3DRequestVariant2 PickTripoImageTo3DRequestVariant2() => IsTripoImageTo3DRequestVariant2
? TripoImageTo3DRequestVariant2!
: throw new global::System.InvalidOperationException($"Expected union variant 'TripoImageTo3DRequestVariant2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ public TripoImageTo3DRequestVariant2(
public TripoImageTo3DRequestVariant2()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickSharedGeneration(
return IsSharedGeneration;
}

/// <summary>
///
/// </summary>
public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => IsSharedGeneration
? SharedGeneration!
: throw new global::System.InvalidOperationException($"Expected union variant 'SharedGeneration' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickTripoMultiviewTo3DRequestVariant2(
value = TripoMultiviewTo3DRequestVariant2;
return IsTripoMultiviewTo3DRequestVariant2;
}

/// <summary>
///
/// </summary>
public global::ThreeDAIStudio.TripoMultiviewTo3DRequestVariant2 PickTripoMultiviewTo3DRequestVariant2() => IsTripoMultiviewTo3DRequestVariant2
? TripoMultiviewTo3DRequestVariant2!
: throw new global::System.InvalidOperationException($"Expected union variant 'TripoMultiviewTo3DRequestVariant2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ public TripoMultiviewTo3DRequestVariant2(
public TripoMultiviewTo3DRequestVariant2()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,6 @@ public TripoSharedGenerationRequest(
public TripoSharedGenerationRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickSharedGeneration(
return IsSharedGeneration;
}

/// <summary>
///
/// </summary>
public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => IsSharedGeneration
? SharedGeneration!
: throw new global::System.InvalidOperationException($"Expected union variant 'SharedGeneration' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickTripoTextTo3DRequestVariant2(
value = TripoTextTo3DRequestVariant2;
return IsTripoTextTo3DRequestVariant2;
}

/// <summary>
///
/// </summary>
public global::ThreeDAIStudio.TripoTextTo3DRequestVariant2 PickTripoTextTo3DRequestVariant2() => IsTripoTextTo3DRequestVariant2
? TripoTextTo3DRequestVariant2!
: throw new global::System.InvalidOperationException($"Expected union variant 'TripoTextTo3DRequestVariant2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public TripoTextTo3DRequestVariant2(
public TripoTextTo3DRequestVariant2()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ public WalletResponse(
public WalletResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,24 @@ public sealed class AutoSDKAuthorizationProviderHook : global::ThreeDAIStudio.Au
{
context = context ?? throw new global::System.ArgumentNullException(nameof(context));

if (context.Request == null)
{
return;
}

var perRequest = context.RequestOptions?.Authorizations;
if (perRequest != null && perRequest.Count > 0)
{
for (var index = 0; index < perRequest.Count; index++)
{
ApplyAuthorization(context.Request, perRequest[index]);
}

return;
}

var provider = context.ClientOptions?.AuthorizationProvider;
if (provider == null || context.Request == null)
if (provider == null)
{
return;
}
Expand Down Expand Up @@ -237,6 +253,15 @@ public sealed class AutoSDKRequestOptions
/// Overrides response buffering for this request when set.
/// </summary>
public bool? ReadResponseAsString { get; set; }

/// <summary>
/// Optional per-request authorization values. When non-empty, the built-in
/// <see cref="AutoSDKAuthorizationProviderHook"/> applies these instead of consulting
/// <see cref="AutoSDKClientOptions.AuthorizationProvider"/> for this request only.
/// Useful for multi-tenant routing or "act-as" admin tooling that needs a different
/// credential per call without mutating shared client state.
/// </summary>
public global::System.Collections.Generic.IReadOnlyList<global::ThreeDAIStudio.AutoSDKAuthorizationValue>? Authorizations { get; set; }
}

/// <summary>
Expand Down