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 @@ -248,6 +248,7 @@ partial void ProcessCreateApiKeyResponseContent(
global::System.DateTime? expiresAt = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.ApiKeyCreateParams
{
Name = name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ partial void ProcessUpdateApiKeyResponseContent(
global::System.DateTime? expiresAt = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.ApiKeyUpdateParams
{
Name = name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ partial void ProcessCreateConnectorResponseContent(
global::Mixedbread.AnyOf<int?, string, object>? pollingInterval = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.DataSourceConnectorCreateParams
{
StoreId = storeId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ partial void ProcessCreateDataSourceResponseContent(
public async global::System.Threading.Tasks.Task<global::Mixedbread.DataSource> CreateDataSourceAsync(
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.AnyOf<global::Mixedbread.NotionDataSourceCreateOrUpdateParams, global::Mixedbread.LinearDataSourceCreateOrUpdateParams>
{
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ partial void ProcessUpdateConnectorResponseContent(
global::Mixedbread.AnyOf<int?, string, object>? pollingInterval = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.DataSourceConnectorUpdateParams
{
Name = name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ partial void ProcessUpdateDataSourceResponseContent(
global::System.Guid dataSourceId,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.AnyOf<global::Mixedbread.NotionDataSourceCreateOrUpdateParams, global::Mixedbread.LinearDataSourceCreateOrUpdateParams>
{
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ partial void ProcessCreateExtractionJobResponseContent(
object jsonSchema,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.ExtractJobCreateParams
{
FileId = fileId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ partial void ProcessCreateSchemaResponseContent(
string description,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.JsonSchemaCreateParams
{
Description = description,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ partial void ProcessEnhanceSchemaResponseContent(
object jsonSchema,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.JsonSchemaEnhanceParams
{
JsonSchema = jsonSchema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ partial void ProcessExtractContentResponseContent(
string? instructions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.ExtractContentCreateParams
{
Content = content,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ partial void ProcessValidateSchemaResponseContent(
object jsonSchema,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.JsonSchemaValidateParams
{
JsonSchema = jsonSchema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ partial void ProcessCompleteMultipartUploadResponseContent(
global::System.Collections.Generic.IList<global::Mixedbread.MultipartUploadPart> parts,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.CompleteMultipartUploadRequest
{
Parts = parts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ partial void ProcessCreateFileResponseContent(
string filename,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.BodyCreateFile
{
File = file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ partial void ProcessCreateMultipartUploadResponseContent(
int? partCount = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.CreateMultipartUploadRequest
{
Filename = filename,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ partial void ProcessUpdateFileResponseContent(
string filename,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Mixedbread.BodyUpdateFile
{
File = file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T1?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
}
else if (value.IsValue2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,19 +191,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T1?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
}
else if (value.IsValue2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
else if (value.IsValue3)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T3?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,25 +237,25 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T1?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
}
else if (value.IsValue2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
else if (value.IsValue3)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T3?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo);
}
else if (value.IsValue4)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T4?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceOAuth2Params), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.DataSourceOAuth2Params?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.DataSourceOAuth2Params).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
}
else if (value.IsApiKey)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceApiKeyParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.DataSourceApiKeyParams?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.DataSourceApiKeyParams).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.OAuth2CreateOrUpdateParams?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.OAuth2CreateOrUpdateParams).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.OAuth2CreateOrUpdateParams?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.OAuth2CreateOrUpdateParams).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
}
else if (value.IsApiKey)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ApiKeyCreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.ApiKeyCreateOrUpdateParams?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ApiKeyCreateOrUpdateParams).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,25 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
}
else if (value.IsImageUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo);
}
else if (value.IsAudioUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo);
}
else if (value.IsVideoUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,25 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
}
else if (value.IsImageUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo);
}
else if (value.IsAudioUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo);
}
else if (value.IsVideoUrl)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo);
}
}
}
Expand Down
Loading