From 2e8b713745a009572963439a4c4ab62817d4b5ad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 May 2026 21:42:39 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../StepFun.Models.ChatCompletionRequest.g.cs | 1 + ....ChatCompletionRequestReasoningFormat.g.cs | 1 + ...StepFun.Models.ChatCompletionResponse.g.cs | 1 + .../Generated/StepFun.Models.Choice.g.cs | 1 + .../Generated/StepFun.Models.ContentPart.g.cs | 1 + .../StepFun.Models.ContentPartImageUrl.g.cs | 1 + .../StepFun.Models.ContentPartInputAudio.g.cs | 1 + .../StepFun.Models.ContentPartVideoUrl.g.cs | 1 + .../StepFun.Models.FunctionCall.g.cs | 1 + .../StepFun.Models.FunctionDefinition.g.cs | 1 + ...n.Models.FunctionDefinitionParameters.g.cs | 1 + .../Generated/StepFun.Models.Message.g.cs | 1 + .../StepFun.Models.ModelListResponse.g.cs | 1 + .../Generated/StepFun.Models.ModelObject.g.cs | 1 + .../StepFun.Models.ResponseFormat.g.cs | 1 + .../StepFun.Models.SpeechRequest.g.cs | 1 + ...els.SpeechRequestPronunciationMapItem.g.cs | 1 + ...tepFun.Models.SpeechRequestVoiceLabel.g.cs | 1 + .../StepFun.Models.SpeechResponse.g.cs | 1 + .../StepFun.Models.TokenCountRequest.g.cs | 1 + .../StepFun.Models.TokenCountResponse.g.cs | 1 + ...StepFun.Models.TokenCountResponseData.g.cs | 1 + .../Generated/StepFun.Models.Tool.g.cs | 1 + .../Generated/StepFun.Models.ToolCall.g.cs | 1 + .../Generated/StepFun.Models.Usage.g.cs | 1 + .../StepFun/Generated/StepFun.OneOf.2.g.cs | 14 ++++++++++ .../Generated/StepFun.OptionsSupport.g.cs | 27 ++++++++++++++++++- 27 files changed, 65 insertions(+), 1 deletion(-) diff --git a/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionRequest.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionRequest.g.cs index 560b00f..37998e1 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionRequest.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionRequest.g.cs @@ -141,5 +141,6 @@ public ChatCompletionRequest( public ChatCompletionRequest() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionRequestReasoningFormat.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionRequestReasoningFormat.g.cs index 7404194..0613c09 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionRequestReasoningFormat.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionRequestReasoningFormat.g.cs @@ -14,5 +14,6 @@ public sealed partial class ChatCompletionRequestReasoningFormat /// [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionResponse.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionResponse.g.cs index 97b7599..13e3cf3 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionResponse.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ChatCompletionResponse.g.cs @@ -84,5 +84,6 @@ public ChatCompletionResponse( public ChatCompletionResponse() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.Choice.g.cs b/src/libs/StepFun/Generated/StepFun.Models.Choice.g.cs index 3d697b4..2de4010 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.Choice.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.Choice.g.cs @@ -66,5 +66,6 @@ public Choice( public Choice() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ContentPart.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ContentPart.g.cs index 028db4f..b928166 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ContentPart.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ContentPart.g.cs @@ -75,5 +75,6 @@ public ContentPart( public ContentPart() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ContentPartImageUrl.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ContentPartImageUrl.g.cs index cd5e49f..cf6cb67 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ContentPartImageUrl.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ContentPartImageUrl.g.cs @@ -14,5 +14,6 @@ public sealed partial class ContentPartImageUrl /// [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ContentPartInputAudio.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ContentPartInputAudio.g.cs index 4ebd3aa..0ad4284 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ContentPartInputAudio.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ContentPartInputAudio.g.cs @@ -14,5 +14,6 @@ public sealed partial class ContentPartInputAudio /// [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ContentPartVideoUrl.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ContentPartVideoUrl.g.cs index 2e47668..42f1825 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ContentPartVideoUrl.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ContentPartVideoUrl.g.cs @@ -14,5 +14,6 @@ public sealed partial class ContentPartVideoUrl /// [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.FunctionCall.g.cs b/src/libs/StepFun/Generated/StepFun.Models.FunctionCall.g.cs index 973e369..011321c 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.FunctionCall.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.FunctionCall.g.cs @@ -48,5 +48,6 @@ public FunctionCall( public FunctionCall() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.FunctionDefinition.g.cs b/src/libs/StepFun/Generated/StepFun.Models.FunctionDefinition.g.cs index ccc0d6b..47f027a 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.FunctionDefinition.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.FunctionDefinition.g.cs @@ -57,5 +57,6 @@ public FunctionDefinition( public FunctionDefinition() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.FunctionDefinitionParameters.g.cs b/src/libs/StepFun/Generated/StepFun.Models.FunctionDefinitionParameters.g.cs index d13990a..30ef378 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.FunctionDefinitionParameters.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.FunctionDefinitionParameters.g.cs @@ -14,5 +14,6 @@ public sealed partial class FunctionDefinitionParameters /// [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.Message.g.cs b/src/libs/StepFun/Generated/StepFun.Models.Message.g.cs index a73d3e5..9c323a6 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.Message.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.Message.g.cs @@ -68,5 +68,6 @@ public Message( public Message() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ModelListResponse.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ModelListResponse.g.cs index fe47c9e..fd246c0 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ModelListResponse.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ModelListResponse.g.cs @@ -48,5 +48,6 @@ public ModelListResponse( public ModelListResponse() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ModelObject.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ModelObject.g.cs index 4248758..dd98e87 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ModelObject.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ModelObject.g.cs @@ -66,5 +66,6 @@ public ModelObject( public ModelObject() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ResponseFormat.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ResponseFormat.g.cs index 6f14ef2..fba8099 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ResponseFormat.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ResponseFormat.g.cs @@ -39,5 +39,6 @@ public ResponseFormat( public ResponseFormat() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.SpeechRequest.g.cs b/src/libs/StepFun/Generated/StepFun.Models.SpeechRequest.g.cs index e9398a4..5d247d9 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.SpeechRequest.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.SpeechRequest.g.cs @@ -154,5 +154,6 @@ public SpeechRequest( public SpeechRequest() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.SpeechRequestPronunciationMapItem.g.cs b/src/libs/StepFun/Generated/StepFun.Models.SpeechRequestPronunciationMapItem.g.cs index 3444165..fda53b5 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.SpeechRequestPronunciationMapItem.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.SpeechRequestPronunciationMapItem.g.cs @@ -14,5 +14,6 @@ public sealed partial class SpeechRequestPronunciationMapItem /// [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.SpeechRequestVoiceLabel.g.cs b/src/libs/StepFun/Generated/StepFun.Models.SpeechRequestVoiceLabel.g.cs index 6868977..3c8a392 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.SpeechRequestVoiceLabel.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.SpeechRequestVoiceLabel.g.cs @@ -14,5 +14,6 @@ public sealed partial class SpeechRequestVoiceLabel /// [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.SpeechResponse.g.cs b/src/libs/StepFun/Generated/StepFun.Models.SpeechResponse.g.cs index 5350431..39f1f48 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.SpeechResponse.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.SpeechResponse.g.cs @@ -48,5 +48,6 @@ public SpeechResponse( public SpeechResponse() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.TokenCountRequest.g.cs b/src/libs/StepFun/Generated/StepFun.Models.TokenCountRequest.g.cs index 300cb49..c161ce3 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.TokenCountRequest.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.TokenCountRequest.g.cs @@ -50,5 +50,6 @@ public TokenCountRequest( public TokenCountRequest() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.TokenCountResponse.g.cs b/src/libs/StepFun/Generated/StepFun.Models.TokenCountResponse.g.cs index cce989b..9b1e5fa 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.TokenCountResponse.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.TokenCountResponse.g.cs @@ -39,5 +39,6 @@ public TokenCountResponse( public TokenCountResponse() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.TokenCountResponseData.g.cs b/src/libs/StepFun/Generated/StepFun.Models.TokenCountResponseData.g.cs index 99da6d4..9d16099 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.TokenCountResponseData.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.TokenCountResponseData.g.cs @@ -39,5 +39,6 @@ public TokenCountResponseData( public TokenCountResponseData() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.Tool.g.cs b/src/libs/StepFun/Generated/StepFun.Models.Tool.g.cs index a4fdf2d..231a2aa 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.Tool.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.Tool.g.cs @@ -48,5 +48,6 @@ public Tool( public Tool() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.ToolCall.g.cs b/src/libs/StepFun/Generated/StepFun.Models.ToolCall.g.cs index 3440094..33b2791 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.ToolCall.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.ToolCall.g.cs @@ -57,5 +57,6 @@ public ToolCall( public ToolCall() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.Models.Usage.g.cs b/src/libs/StepFun/Generated/StepFun.Models.Usage.g.cs index 3a07aef..cb1ed1f 100644 --- a/src/libs/StepFun/Generated/StepFun.Models.Usage.g.cs +++ b/src/libs/StepFun/Generated/StepFun.Models.Usage.g.cs @@ -57,5 +57,6 @@ public Usage( public Usage() { } + } } \ No newline at end of file diff --git a/src/libs/StepFun/Generated/StepFun.OneOf.2.g.cs b/src/libs/StepFun/Generated/StepFun.OneOf.2.g.cs index 430daa6..ef1435d 100644 --- a/src/libs/StepFun/Generated/StepFun.OneOf.2.g.cs +++ b/src/libs/StepFun/Generated/StepFun.OneOf.2.g.cs @@ -38,6 +38,13 @@ public bool TryPickValue1( return IsValue1; } + /// + /// + /// + public T1 PickValue1() => IsValue1 + ? Value1! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); + /// /// /// @@ -67,6 +74,13 @@ public bool TryPickValue2( value = Value2; return IsValue2; } + + /// + /// + /// + public T2 PickValue2() => IsValue2 + ? Value2! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// /// diff --git a/src/libs/StepFun/Generated/StepFun.OptionsSupport.g.cs b/src/libs/StepFun/Generated/StepFun.OptionsSupport.g.cs index 83c8886..9b2309f 100644 --- a/src/libs/StepFun/Generated/StepFun.OptionsSupport.g.cs +++ b/src/libs/StepFun/Generated/StepFun.OptionsSupport.g.cs @@ -163,8 +163,24 @@ public sealed class AutoSDKAuthorizationProviderHook : global::StepFun.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; } @@ -237,6 +253,15 @@ public sealed class AutoSDKRequestOptions /// Overrides response buffering for this request when set. /// public bool? ReadResponseAsString { get; set; } + + /// + /// Optional per-request authorization values. When non-empty, the built-in + /// applies these instead of consulting + /// 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. + /// + public global::System.Collections.Generic.IReadOnlyList? Authorizations { get; set; } } ///