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 @@ -45,5 +45,6 @@ public ComposeTrackPrompt(
public ComposeTrackPrompt()
{
}

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

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

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

}
}
1 change: 1 addition & 0 deletions src/libs/Beatoven/Generated/Beatoven.Models.TaskMeta.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,6 @@ public TaskMeta(
public TaskMeta()
{
}

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

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

}
}
27 changes: 26 additions & 1 deletion src/libs/Beatoven/Generated/Beatoven.OptionsSupport.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,24 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Beatoven.AutoSDKH
{
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::Beatoven.AutoSDKAuthorizationValue>? Authorizations { get; set; }
}

/// <summary>
Expand Down