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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/// <summary>
Expand Down