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
1 change: 1 addition & 0 deletions src/libs/RevAI/Generated/RevAI.Models.Account.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public Account(
public Account()
{
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class ValidationErrorResponseParameters
/// </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>();

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

/// <summary>
Expand Down