From cab0a37bef5061f26ed9935ac743014d58aa981c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 20 May 2026 03:51:11 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Mixedbread.AnyOf.6.Json.g.cs | 92 ++ .../Generated/Mixedbread.AnyOf.6.g.cs | 626 +++++++++++ ...IStoresClient.CreateQuestionAnswering.g.cs | 12 +- ...Mixedbread.IStoresClient.EnhanceQuery.g.cs | 73 ++ ...bread.IStoresClient.GetMetadataFacets.g.cs | 27 +- ....IStoresClient.GetStoreEventHistogram.g.cs | 4 + ...edbread.IStoresClient.GrepStoreChunks.g.cs | 136 +++ ...ient.ListStoreFilesWithMetadataFilter.g.cs | 2 +- ...bread.IStoresClient.SearchStoreChunks.g.cs | 12 +- ...rters.AgenticSearchConfigMediaContent.g.cs | 53 + ...enticSearchConfigMediaContentNullable.g.cs | 60 ++ .../Mixedbread.JsonConverters.AnyOf6.g.cs | 381 +++++++ .../Mixedbread.JsonConverters.DataItem2.g.cs | 12 +- .../Mixedbread.JsonConverters.DataItem3.g.cs | 52 +- .../Mixedbread.JsonConverters.DataItem4.g.cs | 102 ++ .../Mixedbread.JsonConverters.ItemsItem.g.cs | 72 ++ ...rters.QueryEnhanceQueryItemFilterMode.g.cs | 53 + ...eryEnhanceQueryItemFilterModeNullable.g.cs | 60 ++ ...ryEnhanceResultsItemDiscriminatorType.g.cs | 53 + ...eResultsItemDiscriminatorTypeNullable.g.cs | 60 ++ ...verters.QueryEnhanceSortItemDirection.g.cs | 53 + ...QueryEnhanceSortItemDirectionNullable.g.cs | 60 ++ ...erters.QueryEnhanceSortItemFilterMode.g.cs | 53 + ...ueryEnhanceSortItemFilterModeNullable.g.cs | 60 ++ ...d.JsonConverters.StoreChunkGrepTarget.g.cs | 53 + ...nverters.StoreChunkGrepTargetNullable.g.cs | 60 ++ ...HistogramParamsEventTypesVariant1Item.g.cs | 53 + ...mParamsEventTypesVariant1ItemNullable.g.cs | 60 ++ ...GrepResponseDataItemDiscriminatorType.g.cs | 53 + ...onseDataItemDiscriminatorTypeNullable.g.cs | 60 ++ ...StoreSearchEventRewriteRankDirection2.g.cs | 53 + ...rchEventRewriteRankDirection2Nullable.g.cs | 60 ++ ...ters.StoreSearchEventRewriteRankMode2.g.cs | 53 + ...reSearchEventRewriteRankMode2Nullable.g.cs | 60 ++ .../Mixedbread.JsonSerializerContext.g.cs | 200 +++- ...Mixedbread.JsonSerializerContextTypes.g.cs | 990 ++++++++++-------- ...Mixedbread.Models.AgenticSearchConfig.g.cs | 46 +- ...odels.AgenticSearchConfigMediaContent.g.cs | 58 + .../Mixedbread.Models.AudioUrlInputChunk.g.cs | 11 + ...Models.AudioUrlInputChunkSummary.Json.g.cs | 92 ++ ...read.Models.AudioUrlInputChunkSummary.g.cs | 19 + .../Mixedbread.Models.DataItem2.g.cs | 4 +- .../Mixedbread.Models.DataItem3.g.cs | 124 +-- .../Mixedbread.Models.DataItem4.Json.g.cs | 92 ++ .../Mixedbread.Models.DataItem4.g.cs | 469 +++++++++ .../Mixedbread.Models.ItemsItem.Json.g.cs | 92 ++ .../Mixedbread.Models.ItemsItem.g.cs | 303 ++++++ ...bread.Models.MetadataCursorPagination.g.cs | 6 +- ...ixedbread.Models.MetadataFacetsParams.g.cs | 73 +- ...rStoresModelsScoredAudioUrlInputChunk.g.cs | 11 + ...sScoredAudioUrlInputChunkSummary.Json.g.cs | 92 ++ ...ModelsScoredAudioUrlInputChunkSummary.g.cs | 19 + ...elsChunkTypesScoredAudioUrlInputChunk.g.cs | 11 + ...sScoredAudioUrlInputChunkSummary.Json.g.cs | 92 ++ ...kTypesScoredAudioUrlInputChunkSummary.g.cs | 19 + ...odels.QueryEnhanceMetadataFilter.Json.g.cs | 92 ++ ...ead.Models.QueryEnhanceMetadataFilter.g.cs | 73 ++ ...dbread.Models.QueryEnhanceParams.Json.g.cs | 92 ++ .../Mixedbread.Models.QueryEnhanceParams.g.cs | 119 +++ ...s.QueryEnhanceParamsInstructions.Json.g.cs | 92 ++ ...Models.QueryEnhanceParamsInstructions.g.cs | 19 + ...ead.Models.QueryEnhanceQueryItem.Json.g.cs | 92 ++ ...xedbread.Models.QueryEnhanceQueryItem.g.cs | 105 ++ ...odels.QueryEnhanceQueryItemFilterMode.g.cs | 52 + ...yEnhanceQueryItemMetadataFilters.Json.g.cs | 92 ++ ....QueryEnhanceQueryItemMetadataFilters.g.cs | 19 + ...bread.Models.QueryEnhanceResults.Json.g.cs | 92 ++ ...Mixedbread.Models.QueryEnhanceResults.g.cs | 47 + ...yEnhanceResultsItemDiscriminator.Json.g.cs | 92 ++ ....QueryEnhanceResultsItemDiscriminator.g.cs | 45 + ...ryEnhanceResultsItemDiscriminatorType.g.cs | 51 + ...read.Models.QueryEnhanceSortItem.Json.g.cs | 92 ++ ...ixedbread.Models.QueryEnhanceSortItem.g.cs | 96 ++ ....Models.QueryEnhanceSortItemDirection.g.cs | 51 + ...Models.QueryEnhanceSortItemFilterMode.g.cs | 52 + ...ryEnhanceSortItemMetadataFilters.Json.g.cs | 92 ++ ...s.QueryEnhanceSortItemMetadataFilters.g.cs | 19 + ...edbread.Models.SearchCursorPagination.g.cs | 6 +- ...dbread.Models.SearchFilterInput.Json.g.cs} | 22 +- ... Mixedbread.Models.SearchFilterInput.g.cs} | 22 +- ...ead.Models.SearchFilterInputAll.Json.g.cs} | 22 +- ...xedbread.Models.SearchFilterInputAll.g.cs} | 2 +- ...ead.Models.SearchFilterInputAny.Json.g.cs} | 22 +- ...xedbread.Models.SearchFilterInputAny.g.cs} | 2 +- ...ead.Models.SearchFilterInputNone.Json.g.cs | 92 ++ ...edbread.Models.SearchFilterInputNone.g.cs} | 2 +- ...bread.Models.SearchFilterOutput.Json.g.cs} | 22 +- .../Mixedbread.Models.SearchFilterOutput.g.cs | 68 ++ ...ead.Models.SearchFilterOutputAll.Json.g.cs | 92 ++ ...xedbread.Models.SearchFilterOutputAll.g.cs | 19 + ...ead.Models.SearchFilterOutputAny.Json.g.cs | 92 ++ ...xedbread.Models.SearchFilterOutputAny.g.cs | 19 + ...ad.Models.SearchFilterOutputNone.Json.g.cs | 92 ++ ...edbread.Models.SearchFilterOutputNone.g.cs | 19 + ...dbread.Models.StoreAgenticSearchEvent.g.cs | 34 + ...reAgenticSearchEventInstructions.Json.g.cs | 92 ++ ...s.StoreAgenticSearchEventInstructions.g.cs | 19 + ...genticSearchEventRankingStrategy.Json.g.cs | 92 ++ ...toreAgenticSearchEventRankingStrategy.g.cs | 19 + ...read.Models.StoreChunkGrepParams.Json.g.cs | 92 ++ ...ixedbread.Models.StoreChunkGrepParams.g.cs | 135 +++ ...ixedbread.Models.StoreChunkGrepTarget.g.cs | 55 + ...edbread.Models.StoreChunkSearchParams.g.cs | 34 +- ...read.Models.StoreEventHistogramParams.g.cs | 13 +- ...reEventHistogramParamsEventTypes.Json.g.cs | 92 ++ ...s.StoreEventHistogramParamsEventTypes.g.cs | 19 + ...HistogramParamsEventTypesVariant1Item.g.cs | 57 + ...edbread.Models.StoreGrepResponse.Json.g.cs | 92 ++ .../Mixedbread.Models.StoreGrepResponse.g.cs | 60 ++ ...repResponseDataItemDiscriminator.Json.g.cs | 92 ++ ...toreGrepResponseDataItemDiscriminator.g.cs | 45 + ...GrepResponseDataItemDiscriminatorType.g.cs | 63 ++ .../Mixedbread.Models.StoreQAParams.g.cs | 32 +- .../Mixedbread.Models.StoreSearchEvent.g.cs | 57 + ...edbread.Models.StoreSearchEventResult.g.cs | 12 + ...ls.StoreSearchEventRewriteRankBy.Json.g.cs | 92 ++ ....Models.StoreSearchEventRewriteRankBy.g.cs | 19 + ...eSearchEventRewriteRankDirection.Json.g.cs | 92 ++ ....StoreSearchEventRewriteRankDirection.g.cs | 19 + ...StoreSearchEventRewriteRankDirection2.g.cs | 51 + ....StoreSearchEventRewriteRankMode.Json.g.cs | 92 ++ ...odels.StoreSearchEventRewriteRankMode.g.cs | 19 + ...dels.StoreSearchEventRewriteRankMode2.g.cs | 51 + ...Mixedbread.Models.StoreSearchResponse.g.cs | 4 +- ...d.Models.VectorStoreChunkSearchParams.g.cs | 6 +- ...dbread.Models.VectorStoreCreateParams.g.cs | 4 +- ...ad.Models.VectorStoreCreateParamsName.g.cs | 2 +- ...Mixedbread.Models.VectorStoreQAParams.g.cs | 6 +- ...read.Models.VectorStoreSearchResponse.g.cs | 4 +- ...dbread.Models.VectorStoreUpdateParams.g.cs | 4 +- ...ad.Models.VectorStoreUpdateParamsName.g.cs | 2 +- ....StoresClient.CreateQuestionAnswering.g.cs | 14 +- .../Mixedbread.StoresClient.EnhanceQuery.g.cs | 560 ++++++++++ ...dbread.StoresClient.GetMetadataFacets.g.cs | 32 +- ...d.StoresClient.GetStoreEventHistogram.g.cs | 5 + ...xedbread.StoresClient.GrepStoreChunks.g.cs | 624 +++++++++++ ...ient.ListStoreFilesWithMetadataFilter.g.cs | 2 +- ...dbread.StoresClient.SearchStoreChunks.g.cs | 14 +- src/libs/Mixedbread/openapi.yaml | 824 +++++++++++++-- 139 files changed, 10691 insertions(+), 804 deletions(-) create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.EnhanceQuery.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GrepStoreChunks.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AgenticSearchConfigMediaContent.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AgenticSearchConfigMediaContentNullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf6.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem4.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ItemsItem.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterMode.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterModeNullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorType.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemDirection.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemDirectionNullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemFilterMode.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemFilterModeNullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreChunkGrepTarget.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreChunkGrepTargetNullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1Item.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1ItemNullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorType.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2Nullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2Nullable.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfigMediaContent.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemFilterMode.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminatorType.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemDirection.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemFilterMode.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.g.cs rename src/libs/Mixedbread/Generated/{Mixedbread.Models.SearchFilter.Json.g.cs => Mixedbread.Models.SearchFilterInput.Json.g.cs} (88%) rename src/libs/Mixedbread/Generated/{Mixedbread.Models.SearchFilter.g.cs => Mixedbread.Models.SearchFilterInput.g.cs} (73%) rename src/libs/Mixedbread/Generated/{Mixedbread.Models.SearchFilterAll.Json.g.cs => Mixedbread.Models.SearchFilterInputAll.Json.g.cs} (87%) rename src/libs/Mixedbread/Generated/{Mixedbread.Models.SearchFilterAll.g.cs => Mixedbread.Models.SearchFilterInputAll.g.cs} (90%) rename src/libs/Mixedbread/Generated/{Mixedbread.Models.SearchFilterAny.Json.g.cs => Mixedbread.Models.SearchFilterInputAny.Json.g.cs} (87%) rename src/libs/Mixedbread/Generated/{Mixedbread.Models.SearchFilterAny.g.cs => Mixedbread.Models.SearchFilterInputAny.g.cs} (90%) create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.Json.g.cs rename src/libs/Mixedbread/Generated/{Mixedbread.Models.SearchFilterNone.g.cs => Mixedbread.Models.SearchFilterInputNone.g.cs} (90%) rename src/libs/Mixedbread/Generated/{Mixedbread.Models.SearchFilterNone.Json.g.cs => Mixedbread.Models.SearchFilterOutput.Json.g.cs} (88%) create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepTarget.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypesVariant1Item.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminatorType.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection2.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.Json.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode2.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.StoresClient.EnhanceQuery.g.cs create mode 100644 src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.Json.g.cs new file mode 100644 index 0000000..cfdac0c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public readonly partial struct AnyOf + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.AnyOf? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.AnyOf), + jsonSerializerContext) as global::Mixedbread.AnyOf?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.AnyOf? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize>( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AnyOf?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.g.cs new file mode 100644 index 0000000..6766bce --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.g.cs @@ -0,0 +1,626 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public readonly partial struct AnyOf : global::System.IEquatable> + { + /// + /// + /// +#if NET6_0_OR_GREATER + public T1? Value1 { get; init; } +#else + public T1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public bool TryPickValue1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T1? value) + { + value = Value1; + return IsValue1; + } + + /// + /// + /// + public T1 PickValue1() => IsValue1 + ? Value1! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T2? Value2 { get; init; } +#else + public T2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public bool TryPickValue2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T2? value) + { + value = Value2; + return IsValue2; + } + + /// + /// + /// + public T2 PickValue2() => IsValue2 + ? Value2! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T3? Value3 { get; init; } +#else + public T3? Value3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] +#endif + public bool IsValue3 => Value3 != null; + + /// + /// + /// + public bool TryPickValue3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T3? value) + { + value = Value3; + return IsValue3; + } + + /// + /// + /// + public T3 PickValue3() => IsValue3 + ? Value3! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T4? Value4 { get; init; } +#else + public T4? Value4 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] +#endif + public bool IsValue4 => Value4 != null; + + /// + /// + /// + public bool TryPickValue4( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T4? value) + { + value = Value4; + return IsValue4; + } + + /// + /// + /// + public T4 PickValue4() => IsValue4 + ? Value4! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T5? Value5 { get; init; } +#else + public T5? Value5 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] +#endif + public bool IsValue5 => Value5 != null; + + /// + /// + /// + public bool TryPickValue5( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T5? value) + { + value = Value5; + return IsValue5; + } + + /// + /// + /// + public T5 PickValue5() => IsValue5 + ? Value5! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T6? Value6 { get; init; } +#else + public T6? Value6 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value6))] +#endif + public bool IsValue6 => Value6 != null; + + /// + /// + /// + public bool TryPickValue6( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T6? value) + { + value = Value6; + return IsValue6; + } + + /// + /// + /// + public T6 PickValue6() => IsValue6 + ? Value6! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); + + /// + /// + /// + public static implicit operator T1?(AnyOf @this) => @this.Value1; + + /// + /// + /// + public AnyOf(T1? value) + { + Value1 = value; + } + + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); + + /// + /// + /// + public static implicit operator T2?(AnyOf @this) => @this.Value2; + + /// + /// + /// + public AnyOf(T2? value) + { + Value2 = value; + } + + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T3 value) => new AnyOf((T3?)value); + + /// + /// + /// + public static implicit operator T3?(AnyOf @this) => @this.Value3; + + /// + /// + /// + public AnyOf(T3? value) + { + Value3 = value; + } + + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T4 value) => new AnyOf((T4?)value); + + /// + /// + /// + public static implicit operator T4?(AnyOf @this) => @this.Value4; + + /// + /// + /// + public AnyOf(T4? value) + { + Value4 = value; + } + + /// + /// + /// + public static AnyOf FromValue4(T4? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T5 value) => new AnyOf((T5?)value); + + /// + /// + /// + public static implicit operator T5?(AnyOf @this) => @this.Value5; + + /// + /// + /// + public AnyOf(T5? value) + { + Value5 = value; + } + + /// + /// + /// + public static AnyOf FromValue5(T5? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T6 value) => new AnyOf((T6?)value); + + /// + /// + /// + public static implicit operator T6?(AnyOf @this) => @this.Value6; + + /// + /// + /// + public AnyOf(T6? value) + { + Value6 = value; + } + + /// + /// + /// + public static AnyOf FromValue6(T6? value) => new AnyOf(value); + + /// + /// + /// + public AnyOf( + T1? value1, + T2? value2, + T3? value3, + T4? value4, + T5? value5, + T6? value6 + ) + { + Value1 = value1; + Value2 = value2; + Value3 = value3; + Value4 = value4; + Value5 = value5; + Value6 = value6; + } + + /// + /// + /// + public object? Object => + Value6 as object ?? + Value5 as object ?? + Value4 as object ?? + Value3 as object ?? + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() ?? + Value3?.ToString() ?? + Value4?.ToString() ?? + Value5?.ToString() ?? + Value6?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5 || IsValue6; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + global::System.Func? value3 = null, + global::System.Func? value4 = null, + global::System.Func? value5 = null, + global::System.Func? value6 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + else if (IsValue3 && value3 != null) + { + return value3(Value3!); + } + else if (IsValue4 && value4 != null) + { + return value4(Value4!); + } + else if (IsValue5 && value5 != null) + { + return value5(Value5!); + } + else if (IsValue6 && value6 != null) + { + return value6(Value6!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + + global::System.Action? value2 = null, + + global::System.Action? value3 = null, + + global::System.Action? value4 = null, + + global::System.Action? value5 = null, + + global::System.Action? value6 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + else if (IsValue4) + { + value4?.Invoke(Value4!); + } + else if (IsValue5) + { + value5?.Invoke(Value5!); + } + else if (IsValue6) + { + value6?.Invoke(Value6!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + global::System.Action? value3 = null, + global::System.Action? value4 = null, + global::System.Action? value5 = null, + global::System.Action? value6 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + else if (IsValue4) + { + value4?.Invoke(Value4!); + } + else if (IsValue5) + { + value5?.Invoke(Value5!); + } + else if (IsValue6) + { + value6?.Invoke(Value6!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(T1), + Value2, + typeof(T2), + Value3, + typeof(T3), + Value4, + typeof(T4), + Value5, + typeof(T5), + Value6, + typeof(T6), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(AnyOf other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value6, other.Value6) + ; + } + + /// + /// + /// + public static bool operator ==(AnyOf obj1, AnyOf obj2) + { + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AnyOf obj1, AnyOf obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AnyOf o && Equals(o); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.CreateQuestionAnswering.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.CreateQuestionAnswering.g.cs index df1e41b..3a2fd4f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.CreateQuestionAnswering.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.CreateQuestionAnswering.g.cs @@ -31,11 +31,8 @@ public partial interface IStoresClient /// /// Question answering /// - /// - /// Question to answer. If not provided, the question will be extracted from the passed messages. - /// /// - /// IDs or names of stores to search + /// IDs or names of stores /// /// /// Number of results to return
@@ -47,6 +44,9 @@ public partial interface IStoresClient /// /// Optional list of file IDs to filter chunks by (inclusion filter) /// + /// + /// Question to answer. If not provided, the question will be extracted from the passed messages. + /// /// /// Search configuration options /// @@ -65,10 +65,10 @@ public partial interface IStoresClient /// global::System.Threading.Tasks.Task CreateQuestionAnsweringAsync( global::System.Collections.Generic.IList> storeIdentifiers, - string? query = default, int? topK = default, - global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>, object>? filters = default, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, + string? query = default, global::Mixedbread.StoreChunkSearchOptions? searchOptions = default, bool? stream = default, string? instructions = default, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.EnhanceQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.EnhanceQuery.g.cs new file mode 100644 index 0000000..8924f80 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.EnhanceQuery.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IStoresClient + { + /// + /// Enhance a search query
+ /// Extract metadata filters and ranking preferences from a search query. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task EnhanceQueryAsync( + + global::Mixedbread.QueryEnhanceParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Enhance a search query
+ /// Extract metadata filters and ranking preferences from a search query. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> EnhanceQueryAsResponseAsync( + + global::Mixedbread.QueryEnhanceParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Enhance a search query
+ /// Extract metadata filters and ranking preferences from a search query. + ///
+ /// + /// IDs or names of stores + /// + /// + /// Number of results to return
+ /// Default Value: 10 + /// + /// + /// Optional filter conditions + /// + /// + /// Optional list of file IDs to filter chunks by (inclusion filter) + /// + /// + /// Search query text + /// + /// + /// Search configuration options + /// + /// + /// Optional guidance for query enhancement. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task EnhanceQueryAsync( + global::System.Collections.Generic.IList> storeIdentifiers, + global::Mixedbread.MultiModalQuery query, + int? topK = default, + global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, + global::Mixedbread.StoreChunkSearchOptions? searchOptions = default, + string? instructions = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetMetadataFacets.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetMetadataFacets.g.cs index f63cfef..15a2980 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetMetadataFacets.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetMetadataFacets.g.cs @@ -31,11 +31,8 @@ public partial interface IStoresClient /// /// Get metadata facets /// - /// - /// Search query text - /// /// - /// IDs or names of stores to search + /// IDs or names of stores /// /// /// Number of results to return
@@ -47,23 +44,41 @@ public partial interface IStoresClient /// /// Optional list of file IDs to filter chunks by (inclusion filter) /// + /// + /// Search query text + /// /// /// Search configuration options /// /// /// Optional list of facets to return. Use dot for nested fields. /// + /// + /// Maximum number of distinct metadata fields (keys) to return.
+ /// Default Value: 64 + /// + /// + /// Maximum number of distinct values returned per field, ranked by count.
+ /// Default Value: 32 + /// + /// + /// Maximum number of store files scanned to compute facets.
+ /// Default Value: 10000 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task GetMetadataFacetsAsync( global::System.Collections.Generic.IList> storeIdentifiers, - string? query = default, int? topK = default, - global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>, object>? filters = default, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, + string? query = default, global::Mixedbread.StoreChunkSearchOptions? searchOptions = default, global::System.Collections.Generic.IList? facets = default, + int? maxFields = default, + int? maxValuesPerField = default, + int? maxFiles = default, global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetStoreEventHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetStoreEventHistogram.g.cs index feda309..effd21d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetStoreEventHistogram.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetStoreEventHistogram.g.cs @@ -70,6 +70,9 @@ public partial interface IStoresClient /// Number of seconds in each bucket
/// Default Value: 7200 /// + /// + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -78,6 +81,7 @@ public partial interface IStoresClient global::System.DateTime? startTime = default, global::System.DateTime? endTime = default, int? bucketSeconds = default, + global::System.Collections.Generic.IList? eventTypes = default, global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GrepStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GrepStoreChunks.g.cs new file mode 100644 index 0000000..e3edcaa --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GrepStoreChunks.g.cs @@ -0,0 +1,136 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IStoresClient + { + /// + /// Match store chunks against a regular expression
+ /// Match store chunks against a regular expression.
+ /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
+ /// semantic similarity, no reranking. Use it to find chunks containing a specific
+ /// token, identifier, error code, or literal phrase.
+ /// grep targets a single store and does not support pagination; raise `top_k` to
+ /// retrieve more matches.
+ /// Args:
+ /// grep_params: Grep configuration including:
+ /// - pattern: RE2 regular expression matched against chunk text
+ /// - targets: chunk content groups to match (`text`, `generated`)
+ /// - case_sensitive: whether the pattern is case-sensitive
+ /// - store_identifiers: the single store to grep
+ /// - file_ids: optional list of file IDs to filter chunks by
+ /// - filters: optional metadata filter conditions
+ /// - top_k: number of matches to return
+ /// Returns:
+ /// StoreGrepResponse containing the list of matching chunks.
+ /// Raises:
+ /// HTTPException (400): If grep parameters are invalid
+ /// HTTPException (404): If the store is not found + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GrepStoreChunksAsync( + + global::Mixedbread.StoreChunkGrepParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Match store chunks against a regular expression
+ /// Match store chunks against a regular expression.
+ /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
+ /// semantic similarity, no reranking. Use it to find chunks containing a specific
+ /// token, identifier, error code, or literal phrase.
+ /// grep targets a single store and does not support pagination; raise `top_k` to
+ /// retrieve more matches.
+ /// Args:
+ /// grep_params: Grep configuration including:
+ /// - pattern: RE2 regular expression matched against chunk text
+ /// - targets: chunk content groups to match (`text`, `generated`)
+ /// - case_sensitive: whether the pattern is case-sensitive
+ /// - store_identifiers: the single store to grep
+ /// - file_ids: optional list of file IDs to filter chunks by
+ /// - filters: optional metadata filter conditions
+ /// - top_k: number of matches to return
+ /// Returns:
+ /// StoreGrepResponse containing the list of matching chunks.
+ /// Raises:
+ /// HTTPException (400): If grep parameters are invalid
+ /// HTTPException (404): If the store is not found + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GrepStoreChunksAsResponseAsync( + + global::Mixedbread.StoreChunkGrepParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Match store chunks against a regular expression
+ /// Match store chunks against a regular expression.
+ /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
+ /// semantic similarity, no reranking. Use it to find chunks containing a specific
+ /// token, identifier, error code, or literal phrase.
+ /// grep targets a single store and does not support pagination; raise `top_k` to
+ /// retrieve more matches.
+ /// Args:
+ /// grep_params: Grep configuration including:
+ /// - pattern: RE2 regular expression matched against chunk text
+ /// - targets: chunk content groups to match (`text`, `generated`)
+ /// - case_sensitive: whether the pattern is case-sensitive
+ /// - store_identifiers: the single store to grep
+ /// - file_ids: optional list of file IDs to filter chunks by
+ /// - filters: optional metadata filter conditions
+ /// - top_k: number of matches to return
+ /// Returns:
+ /// StoreGrepResponse containing the list of matching chunks.
+ /// Raises:
+ /// HTTPException (400): If grep parameters are invalid
+ /// HTTPException (404): If the store is not found + ///
+ /// + /// IDs or names of stores + /// + /// + /// Number of results to return
+ /// Default Value: 10 + /// + /// + /// Optional filter conditions + /// + /// + /// Optional list of file IDs to filter chunks by (inclusion filter) + /// + /// + /// Regular expression (RE2 syntax) matched against chunk text + /// + /// + /// Chunk content groups to match against. `text` matches the original text of text chunks; `generated` matches ingestion-derived fields (transcription, OCR text, summaries). + /// + /// + /// Whether the regular expression is case-sensitive
+ /// Default Value: false + /// + /// + /// Whether to return file metadata
+ /// Default Value: true + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GrepStoreChunksAsync( + global::System.Collections.Generic.IList> storeIdentifiers, + string pattern, + int? topK = default, + global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, + global::System.Collections.Generic.IList? targets = default, + bool? caseSensitive = default, + bool? returnMetadata = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.ListStoreFilesWithMetadataFilter.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.ListStoreFilesWithMetadataFilter.g.cs index bee5770..cda1fdf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.ListStoreFilesWithMetadataFilter.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.ListStoreFilesWithMetadataFilter.g.cs @@ -93,7 +93,7 @@ public partial interface IStoresClient string? before = default, bool? includeTotal = default, global::System.Collections.Generic.IList? statuses = default, - global::Mixedbread.AnyOf>, object>? metadataFilter = default, + global::Mixedbread.AnyOf>, object>? metadataFilter = default, string? q = default, global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.SearchStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.SearchStoreChunks.g.cs index 05ad91d..f79d443 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.SearchStoreChunks.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.SearchStoreChunks.g.cs @@ -100,11 +100,8 @@ public partial interface IStoresClient /// HTTPException (400): If search parameters are invalid
/// HTTPException (404): If no vector stores are found to search /// - /// - /// Search query text - /// /// - /// IDs or names of stores to search + /// IDs or names of stores /// /// /// Number of results to return
@@ -116,6 +113,9 @@ public partial interface IStoresClient /// /// Optional list of file IDs to filter chunks by (inclusion filter) /// + /// + /// Search query text + /// /// /// Search configuration options /// @@ -123,10 +123,10 @@ public partial interface IStoresClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task SearchStoreChunksAsync( - global::Mixedbread.MultiModalQuery query, global::System.Collections.Generic.IList> storeIdentifiers, + global::Mixedbread.MultiModalQuery query, int? topK = default, - global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>, object>? filters = default, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, global::Mixedbread.StoreChunkSearchOptions? searchOptions = default, global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AgenticSearchConfigMediaContent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AgenticSearchConfigMediaContent.g.cs new file mode 100644 index 0000000..b6c3204 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AgenticSearchConfigMediaContent.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class AgenticSearchConfigMediaContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.AgenticSearchConfigMediaContent Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.AgenticSearchConfigMediaContentExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.AgenticSearchConfigMediaContent)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.AgenticSearchConfigMediaContent); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.AgenticSearchConfigMediaContent value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.AgenticSearchConfigMediaContentExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AgenticSearchConfigMediaContentNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AgenticSearchConfigMediaContentNullable.g.cs new file mode 100644 index 0000000..4763f3e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AgenticSearchConfigMediaContentNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class AgenticSearchConfigMediaContentNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.AgenticSearchConfigMediaContent? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.AgenticSearchConfigMediaContentExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.AgenticSearchConfigMediaContent)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.AgenticSearchConfigMediaContent?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.AgenticSearchConfigMediaContent? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.AgenticSearchConfigMediaContentExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf6.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf6.g.cs new file mode 100644 index 0000000..244baf5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf6.g.cs @@ -0,0 +1,381 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + { + /// + public override global::Mixedbread.AnyOf Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score2++; + } + } + } + var __score3 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score3++; + } + } + } + var __score4 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score4++; + } + } + } + var __score5 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T6), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score5++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + + T1? value1 = default; + T2? value2 = default; + T3? value3 = default; + T4? value4 = default; + T5? value5 = default; + T6? value6 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 2) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 3) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 4) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 5) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Mixedbread.AnyOf( + value1, + + value2, + + value3, + + value4, + + value5, + + value6 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.AnyOf value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + 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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + 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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + 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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + } + else if (value.IsValue5) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + } + else if (value.IsValue6) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs index 0e18972..3ac9e7f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs @@ -17,33 +17,33 @@ public class DataItem2JsonConverter : global::System.Text.Json.Serialization.Jso var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreGrepResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreGrepResponseDataItemDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? text = default; - if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.Text) + if (discriminator?.Type == global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType.Text) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk)}"); text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? imageUrl = default; - if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.ImageUrl) + if (discriminator?.Type == global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType.ImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk)}"); imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? audioUrl = default; - if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.AudioUrl) + if (discriminator?.Type == global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType.AudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk)}"); audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? videoUrl = default; - if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.VideoUrl) + if (discriminator?.Type == global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType.VideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk)}"); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs index e21a363..b44436d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs @@ -17,36 +17,36 @@ public class DataItem3JsonConverter : global::System.Text.Json.Serialization.Jso var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? text = default; - if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.Text) + global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? text = default; + if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.Text) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk)}"); text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? imageUrl = default; - if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.ImageUrl) + global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? imageUrl = default; + if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.ImageUrl) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk)}"); imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? audioUrl = default; - if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.AudioUrl) + global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? audioUrl = default; + if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.AudioUrl) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk)}"); audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? videoUrl = default; - if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.VideoUrl) + global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? videoUrl = default; + if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.VideoUrl) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk)}"); videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -75,26 +75,26 @@ public override void Write( if (value.IsText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + 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); } else if (value.IsImageUrl) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + 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); } else if (value.IsAudioUrl) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + 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); } else if (value.IsVideoUrl) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + 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); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem4.g.cs new file mode 100644 index 0000000..88abfc4 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem4.g.cs @@ -0,0 +1,102 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Mixedbread.JsonConverters +{ + /// + public class DataItem4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.DataItem4 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? text = default; + if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.Text) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk)}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? imageUrl = default; + if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.ImageUrl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk)}"); + imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? audioUrl = default; + if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.AudioUrl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk)}"); + audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? videoUrl = default; + if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.VideoUrl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk)}"); + videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Mixedbread.DataItem4( + discriminator?.Type, + text, + + imageUrl, + + audioUrl, + + videoUrl + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.DataItem4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + 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); + } + else if (value.IsImageUrl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + 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); + } + else if (value.IsAudioUrl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + 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); + } + else if (value.IsVideoUrl) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + 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); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ItemsItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ItemsItem.g.cs new file mode 100644 index 0000000..5f2e2f6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ItemsItem.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Mixedbread.JsonConverters +{ + /// + public class ItemsItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.ItemsItem Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryEnhanceResultsItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.QueryEnhanceResultsItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Mixedbread.QueryEnhanceQueryItem? query = default; + if (discriminator?.Type == global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType.Query) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryEnhanceQueryItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.QueryEnhanceQueryItem)}"); + query = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Mixedbread.QueryEnhanceSortItem? sort = default; + if (discriminator?.Type == global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType.Sort) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryEnhanceSortItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.QueryEnhanceSortItem)}"); + sort = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Mixedbread.ItemsItem( + discriminator?.Type, + query, + + sort + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.ItemsItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsQuery) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryEnhanceQueryItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryEnhanceQueryItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + } + else if (value.IsSort) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryEnhanceSortItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryEnhanceSortItem).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sort!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterMode.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterMode.g.cs new file mode 100644 index 0000000..839b2a9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class QueryEnhanceQueryItemFilterModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.QueryEnhanceQueryItemFilterMode Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.QueryEnhanceQueryItemFilterModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.QueryEnhanceQueryItemFilterMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.QueryEnhanceQueryItemFilterMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.QueryEnhanceQueryItemFilterMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.QueryEnhanceQueryItemFilterModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterModeNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterModeNullable.g.cs new file mode 100644 index 0000000..2176d5f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class QueryEnhanceQueryItemFilterModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.QueryEnhanceQueryItemFilterMode? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.QueryEnhanceQueryItemFilterModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.QueryEnhanceQueryItemFilterMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.QueryEnhanceQueryItemFilterMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.QueryEnhanceQueryItemFilterMode? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.QueryEnhanceQueryItemFilterModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorType.g.cs new file mode 100644 index 0000000..bb6831f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class QueryEnhanceResultsItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.QueryEnhanceResultsItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.QueryEnhanceResultsItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorTypeNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..f317ea8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class QueryEnhanceResultsItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.QueryEnhanceResultsItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.QueryEnhanceResultsItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemDirection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemDirection.g.cs new file mode 100644 index 0000000..184b837 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemDirection.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class QueryEnhanceSortItemDirectionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.QueryEnhanceSortItemDirection Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.QueryEnhanceSortItemDirectionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.QueryEnhanceSortItemDirection)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.QueryEnhanceSortItemDirection); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.QueryEnhanceSortItemDirection value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.QueryEnhanceSortItemDirectionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemDirectionNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemDirectionNullable.g.cs new file mode 100644 index 0000000..460d3ea --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemDirectionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class QueryEnhanceSortItemDirectionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.QueryEnhanceSortItemDirection? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.QueryEnhanceSortItemDirectionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.QueryEnhanceSortItemDirection)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.QueryEnhanceSortItemDirection?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.QueryEnhanceSortItemDirection? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.QueryEnhanceSortItemDirectionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemFilterMode.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemFilterMode.g.cs new file mode 100644 index 0000000..0e75fc8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemFilterMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class QueryEnhanceSortItemFilterModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.QueryEnhanceSortItemFilterMode Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.QueryEnhanceSortItemFilterModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.QueryEnhanceSortItemFilterMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.QueryEnhanceSortItemFilterMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.QueryEnhanceSortItemFilterMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.QueryEnhanceSortItemFilterModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemFilterModeNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemFilterModeNullable.g.cs new file mode 100644 index 0000000..47cb55e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.QueryEnhanceSortItemFilterModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class QueryEnhanceSortItemFilterModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.QueryEnhanceSortItemFilterMode? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.QueryEnhanceSortItemFilterModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.QueryEnhanceSortItemFilterMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.QueryEnhanceSortItemFilterMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.QueryEnhanceSortItemFilterMode? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.QueryEnhanceSortItemFilterModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreChunkGrepTarget.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreChunkGrepTarget.g.cs new file mode 100644 index 0000000..08b6e83 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreChunkGrepTarget.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreChunkGrepTargetJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreChunkGrepTarget Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreChunkGrepTargetExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreChunkGrepTarget)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreChunkGrepTarget); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreChunkGrepTarget value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.StoreChunkGrepTargetExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreChunkGrepTargetNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreChunkGrepTargetNullable.g.cs new file mode 100644 index 0000000..1a3fdf3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreChunkGrepTargetNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreChunkGrepTargetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreChunkGrepTarget? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreChunkGrepTargetExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreChunkGrepTarget)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreChunkGrepTarget?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreChunkGrepTarget? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.StoreChunkGrepTargetExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1Item.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1Item.g.cs new file mode 100644 index 0000000..f3709de --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1Item.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreEventHistogramParamsEventTypesVariant1ItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1ItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1ItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1ItemNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1ItemNullable.g.cs new file mode 100644 index 0000000..99a692f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1ItemNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreEventHistogramParamsEventTypesVariant1ItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1ItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1ItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorType.g.cs new file mode 100644 index 0000000..4cc29d9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreGrepResponseDataItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreGrepResponseDataItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.StoreGrepResponseDataItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorTypeNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..1b2e551 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreGrepResponseDataItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreGrepResponseDataItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.StoreGrepResponseDataItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2.g.cs new file mode 100644 index 0000000..f103937 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreSearchEventRewriteRankDirection2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreSearchEventRewriteRankDirection2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreSearchEventRewriteRankDirection2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreSearchEventRewriteRankDirection2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreSearchEventRewriteRankDirection2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreSearchEventRewriteRankDirection2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.StoreSearchEventRewriteRankDirection2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2Nullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2Nullable.g.cs new file mode 100644 index 0000000..143979d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreSearchEventRewriteRankDirection2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreSearchEventRewriteRankDirection2? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreSearchEventRewriteRankDirection2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreSearchEventRewriteRankDirection2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreSearchEventRewriteRankDirection2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreSearchEventRewriteRankDirection2? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.StoreSearchEventRewriteRankDirection2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2.g.cs new file mode 100644 index 0000000..d149d13 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreSearchEventRewriteRankMode2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreSearchEventRewriteRankMode2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreSearchEventRewriteRankMode2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreSearchEventRewriteRankMode2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreSearchEventRewriteRankMode2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreSearchEventRewriteRankMode2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.StoreSearchEventRewriteRankMode2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2Nullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2Nullable.g.cs new file mode 100644 index 0000000..2aa8981 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class StoreSearchEventRewriteRankMode2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.StoreSearchEventRewriteRankMode2? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.StoreSearchEventRewriteRankMode2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.StoreSearchEventRewriteRankMode2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.StoreSearchEventRewriteRankMode2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.StoreSearchEventRewriteRankMode2? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.StoreSearchEventRewriteRankMode2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContext.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContext.g.cs index b310370..d854052 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContext.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContext.g.cs @@ -13,6 +13,10 @@ namespace Mixedbread DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { + typeof(global::Mixedbread.JsonConverters.AgenticSearchConfigMediaContentJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AgenticSearchConfigMediaContentNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.AgenticToolCallToolTypeJsonConverter), typeof(global::Mixedbread.JsonConverters.AgenticToolCallToolTypeNullableJsonConverter), @@ -69,6 +73,22 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.ParsingJobStatusNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterModeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterModeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorTypeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.QueryEnhanceSortItemFilterModeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.QueryEnhanceSortItemFilterModeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.QueryEnhanceSortItemDirectionJsonConverter), + + typeof(global::Mixedbread.JsonConverters.QueryEnhanceSortItemDirectionNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.RegexFlagJsonConverter), typeof(global::Mixedbread.JsonConverters.RegexFlagNullableJsonConverter), @@ -81,10 +101,18 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.ScopeMethodNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreChunkGrepTargetJsonConverter), + + typeof(global::Mixedbread.JsonConverters.StoreChunkGrepTargetNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreEventHistogramBucketTypeJsonConverter), typeof(global::Mixedbread.JsonConverters.StoreEventHistogramBucketTypeNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1ItemJsonConverter), + + typeof(global::Mixedbread.JsonConverters.StoreEventHistogramParamsEventTypesVariant1ItemNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreEventListResponseDataItemDiscriminatorTypeJsonConverter), typeof(global::Mixedbread.JsonConverters.StoreEventListResponseDataItemDiscriminatorTypeNullableJsonConverter), @@ -101,10 +129,22 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.StoreFileStatusNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreQAResultsSourceDiscriminatorTypeJsonConverter), typeof(global::Mixedbread.JsonConverters.StoreQAResultsSourceDiscriminatorTypeNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2JsonConverter), + + typeof(global::Mixedbread.JsonConverters.StoreSearchEventRewriteRankDirection2NullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2JsonConverter), + + typeof(global::Mixedbread.JsonConverters.StoreSearchEventRewriteRankMode2NullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreSearchEventResultFirstStageSource2JsonConverter), typeof(global::Mixedbread.JsonConverters.StoreSearchEventResultFirstStageSource2NullableJsonConverter), @@ -237,13 +277,17 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AuthParamsVariant13JsonConverter), + typeof(global::Mixedbread.JsonConverters.ItemsItemJsonConverter), + typeof(global::Mixedbread.JsonConverters.DataItemJsonConverter), typeof(global::Mixedbread.JsonConverters.ChunksVariant1ItemJsonConverter), + typeof(global::Mixedbread.JsonConverters.DataItem2JsonConverter), + typeof(global::Mixedbread.JsonConverters.SourcesItemJsonConverter), - typeof(global::Mixedbread.JsonConverters.DataItem2JsonConverter), + typeof(global::Mixedbread.JsonConverters.DataItem3JsonConverter), typeof(global::Mixedbread.JsonConverters.GeneratedMetadataVariant13JsonConverter), @@ -251,7 +295,7 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.SourcesItem2JsonConverter), - typeof(global::Mixedbread.JsonConverters.DataItem3JsonConverter), + typeof(global::Mixedbread.JsonConverters.DataItem4JsonConverter), typeof(global::Mixedbread.JsonConverters.GeneratedMetadataVariant14JsonConverter), @@ -309,15 +353,29 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>), @@ -329,15 +387,35 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), @@ -345,9 +423,9 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>), @@ -359,14 +437,22 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), @@ -375,9 +461,9 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>), @@ -387,9 +473,9 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), - typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>), @@ -476,6 +562,8 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AgenticSearchConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AgenticSearchConfigMediaContent), TypeInfoPropertyName = "AgenticSearchConfigMediaContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AgenticSearchTokenUsage))] @@ -490,7 +578,6 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ApiKeyCreateParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ApiKeyCreated))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ApiKeyDeleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ApiKeyListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.PaginationWithTotal))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -629,11 +716,11 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MetadataCursorPagination))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreFileStatus), TypeInfoPropertyName = "StoreFileStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>), TypeInfoPropertyName = "AnyOfSearchFilterSearchFilterConditionIListAnyOfSearchFilterSearchFilterConditionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SearchFilter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>), TypeInfoPropertyName = "AnyOfSearchFilterInputSearchFilterConditionIListAnyOfSearchFilterInputSearchFilterConditionObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SearchFilterInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SearchFilterCondition))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf), TypeInfoPropertyName = "AnyOfSearchFilterSearchFilterCondition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf), TypeInfoPropertyName = "AnyOfSearchFilterInputSearchFilterCondition2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MetadataFacets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MetadataFacetsParams))] @@ -664,6 +751,22 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ParsingJobListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ParsingJobListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceMetadataFilter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>), TypeInfoPropertyName = "AnyOfStringInt32DoubleBooleanIListAnyOfStringInt32DoubleBooleanObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf), TypeInfoPropertyName = "AnyOfStringInt32DoubleBoolean2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceQueryItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceQueryItemFilterMode), TypeInfoPropertyName = "QueryEnhanceQueryItemFilterMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceResults))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ItemsItem), TypeInfoPropertyName = "ItemsItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceSortItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceResultsItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType), TypeInfoPropertyName = "QueryEnhanceResultsItemDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceSortItemFilterMode), TypeInfoPropertyName = "QueryEnhanceSortItemFilterMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryEnhanceSortItemDirection), TypeInfoPropertyName = "QueryEnhanceSortItemDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.QueryRegexSubstitutionRule))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.RegexFlag), TypeInfoPropertyName = "RegexFlag2")] @@ -680,13 +783,20 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ScopeMethod), TypeInfoPropertyName = "ScopeMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf), TypeInfoPropertyName = "AnyOfStringGuidObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SearchCursorPagination))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SearchFilterOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf), TypeInfoPropertyName = "AnyOfSearchFilterOutputSearchFilterCondition2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.Store))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreConfig2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreStatus), TypeInfoPropertyName = "StoreStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreAgenticSearchEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>), TypeInfoPropertyName = "AnyOfSearchFilterOutputSearchFilterConditionIListAnyOfSearchFilterOutputSearchFilterConditionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreSearchEventResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreChunkGrepParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreChunkGrepTarget), TypeInfoPropertyName = "StoreChunkGrepTarget2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf), TypeInfoPropertyName = "AnyOfBooleanRerankConfigObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf), TypeInfoPropertyName = "AnyOfBooleanAgenticSearchConfigObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreChunkSearchParams))] @@ -699,6 +809,8 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreEventHistogramBucket))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreEventHistogramBucketType), TypeInfoPropertyName = "StoreEventHistogramBucketType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreEventHistogramParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item), TypeInfoPropertyName = "StoreEventHistogramParamsEventTypesVariant1Item2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreEventHistogramResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreEventListResponse))] @@ -720,22 +832,29 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreFileListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreFileMetadataUpdateParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreGrepResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataItem2), TypeInfoPropertyName = "DataItem22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreGrepResponseDataItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType), TypeInfoPropertyName = "StoreGrepResponseDataItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreQAParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreQAResults))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SourcesItem), TypeInfoPropertyName = "SourcesItem2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreQAResultsSourceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreQAResultsSourceDiscriminatorType), TypeInfoPropertyName = "StoreQAResultsSourceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreSearchEventRewriteRankDirection2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreSearchEventRewriteRankMode2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreSearchEventResultFirstStageSource2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreSearchResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataItem2), TypeInfoPropertyName = "DataItem22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataItem3), TypeInfoPropertyName = "DataItem32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType), TypeInfoPropertyName = "StoreSearchResponseDataItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreUpdateParams))] @@ -772,8 +891,8 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.VectorStoreQAResultsSourceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.VectorStoreQAResultsSourceDiscriminatorType), TypeInfoPropertyName = "VectorStoreQAResultsSourceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.VectorStoreSearchResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataItem3), TypeInfoPropertyName = "DataItem32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataItem4), TypeInfoPropertyName = "DataItem42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType), TypeInfoPropertyName = "VectorStoreSearchResponseDataItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.VectorStoreUpdateParams))] @@ -890,8 +1009,8 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>>, global::System.Collections.Generic.List, object>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] @@ -899,27 +1018,36 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContextTypes.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContextTypes.g.cs index 91c145e..ff5b034 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContextTypes.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContextTypes.g.cs @@ -36,1519 +36,1651 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public string? Type2 { get; set; } + public bool? Type2 { get; set; } /// /// /// - public object? Type3 { get; set; } + public global::Mixedbread.AgenticSearchConfigMediaContent? Type3 { get; set; } /// /// /// - public global::Mixedbread.AgenticSearchTokenUsage? Type4 { get; set; } + public string? Type4 { get; set; } /// /// /// - public double? Type5 { get; set; } + public object? Type5 { get; set; } /// /// /// - public global::Mixedbread.AgenticToolCall? Type6 { get; set; } + public global::Mixedbread.AgenticSearchTokenUsage? Type6 { get; set; } /// /// /// - public global::Mixedbread.AgenticToolCallToolType? Type7 { get; set; } + public double? Type7 { get; set; } /// /// /// - public global::System.DateTime? Type8 { get; set; } + public global::Mixedbread.AgenticToolCall? Type8 { get; set; } /// /// /// - public global::Mixedbread.ApiKey? Type9 { get; set; } + public global::Mixedbread.AgenticToolCallToolType? Type9 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type10 { get; set; } + public global::System.DateTime? Type10 { get; set; } /// /// /// - public global::Mixedbread.Scope? Type11 { get; set; } + public global::Mixedbread.ApiKey? Type11 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyCreateOrUpdateParams? Type12 { get; set; } + public global::System.Collections.Generic.IList? Type12 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyCreateParams? Type13 { get; set; } + public global::Mixedbread.Scope? Type13 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyCreated? Type14 { get; set; } + public global::Mixedbread.ApiKeyCreateOrUpdateParams? Type14 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyDeleted? Type15 { get; set; } + public global::Mixedbread.ApiKeyCreateParams? Type15 { get; set; } /// /// /// - public bool? Type16 { get; set; } + public global::Mixedbread.ApiKeyCreated? Type16 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyListResponse? Type17 { get; set; } + public global::Mixedbread.ApiKeyDeleted? Type17 { get; set; } /// /// /// - public global::Mixedbread.PaginationWithTotal? Type18 { get; set; } + public global::Mixedbread.ApiKeyListResponse? Type18 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type19 { get; set; } + public global::Mixedbread.PaginationWithTotal? Type19 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyUpdateParams? Type20 { get; set; } + public global::System.Collections.Generic.IList? Type20 { get; set; } /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata? Type21 { get; set; } + public global::Mixedbread.ApiKeyUpdateParams? Type21 { get; set; } /// /// /// - public global::Mixedbread.AudioUrl? Type22 { get; set; } + public global::Mixedbread.AudioChunkGeneratedMetadata? Type22 { get; set; } /// /// /// - public global::Mixedbread.AudioUrlInputChunk? Type23 { get; set; } + public global::Mixedbread.AudioUrl? Type23 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant1? Type24 { get; set; } + public global::Mixedbread.AudioUrlInputChunk? Type24 { get; set; } /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata? Type25 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant1? Type25 { get; set; } /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata? Type26 { get; set; } + public global::Mixedbread.MarkdownChunkGeneratedMetadata? Type26 { get; set; } /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata? Type27 { get; set; } + public global::Mixedbread.TextChunkGeneratedMetadata? Type27 { get; set; } /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata? Type28 { get; set; } + public global::Mixedbread.PDFChunkGeneratedMetadata? Type28 { get; set; } /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata? Type29 { get; set; } + public global::Mixedbread.CodeChunkGeneratedMetadata? Type29 { get; set; } /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata? Type30 { get; set; } + public global::Mixedbread.VideoChunkGeneratedMetadata? Type30 { get; set; } /// /// /// - public global::Mixedbread.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type31 { get; set; } + public global::Mixedbread.ImageChunkGeneratedMetadata? Type31 { get; set; } /// /// /// - public global::Mixedbread.AudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type32 { get; set; } + public global::Mixedbread.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type32 { get; set; } /// /// /// - public global::Mixedbread.BalanceInfo? Type33 { get; set; } + public global::Mixedbread.AudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type33 { get; set; } /// /// /// - public global::Mixedbread.BillingPeriodSummary? Type34 { get; set; } + public global::Mixedbread.BalanceInfo? Type34 { get; set; } /// /// /// - public global::Mixedbread.Period? Type35 { get; set; } + public global::Mixedbread.BillingPeriodSummary? Type35 { get; set; } /// /// /// - public global::Mixedbread.CostInfo? Type36 { get; set; } + public global::Mixedbread.Period? Type36 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type37 { get; set; } + public global::Mixedbread.CostInfo? Type37 { get; set; } /// /// /// - public global::Mixedbread.UsageInfo? Type38 { get; set; } + public global::System.Collections.Generic.Dictionary? Type38 { get; set; } /// /// /// - public global::Mixedbread.BodyCreateFile? Type39 { get; set; } + public global::Mixedbread.UsageInfo? Type39 { get; set; } /// /// /// - public byte[]? Type40 { get; set; } + public global::Mixedbread.BodyCreateFile? Type40 { get; set; } /// /// /// - public global::Mixedbread.BodyUpdateFile? Type41 { get; set; } + public byte[]? Type41 { get; set; } /// /// /// - public global::Mixedbread.BodyUploadStoreFile? Type42 { get; set; } + public global::Mixedbread.BodyUpdateFile? Type42 { get; set; } /// /// /// - public global::Mixedbread.Chunk? Type43 { get; set; } + public global::Mixedbread.BodyUploadStoreFile? Type43 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type44 { get; set; } + public global::Mixedbread.Chunk? Type44 { get; set; } /// /// /// - public global::Mixedbread.ChunkElement? Type45 { get; set; } + public global::System.Collections.Generic.IList? Type45 { get; set; } /// /// /// - public global::Mixedbread.ElementType? Type46 { get; set; } + public global::Mixedbread.ChunkElement? Type46 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type47 { get; set; } + public global::Mixedbread.ElementType? Type47 { get; set; } /// /// /// - public global::Mixedbread.ChunkSearchResultRule? Type48 { get; set; } + public global::System.Collections.Generic.IList? Type48 { get; set; } /// /// /// - public global::Mixedbread.ChunkingStrategy? Type49 { get; set; } + public global::Mixedbread.ChunkSearchResultRule? Type49 { get; set; } /// /// /// - public global::Mixedbread.CompleteMultipartUploadRequest? Type50 { get; set; } + public global::Mixedbread.ChunkingStrategy? Type50 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type51 { get; set; } + public global::Mixedbread.CompleteMultipartUploadRequest? Type51 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadPart? Type52 { get; set; } + public global::System.Collections.Generic.IList? Type52 { get; set; } /// /// /// - public global::Mixedbread.ConditionOperator? Type53 { get; set; } + public global::Mixedbread.MultipartUploadPart? Type53 { get; set; } /// /// /// - public global::Mixedbread.ConnectorListResponse? Type54 { get; set; } + public global::Mixedbread.ConditionOperator? Type54 { get; set; } /// /// /// - public global::Mixedbread.CursorPaginationResponse? Type55 { get; set; } + public global::Mixedbread.ConnectorListResponse? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type56 { get; set; } + public global::Mixedbread.CursorPaginationResponse? Type56 { get; set; } /// /// /// - public global::Mixedbread.DataSourceConnector? Type57 { get; set; } + public global::System.Collections.Generic.IList? Type57 { get; set; } /// /// /// - public global::Mixedbread.ContextualizationConfig? Type58 { get; set; } + public global::Mixedbread.DataSourceConnector? Type58 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type59 { get; set; } + public global::Mixedbread.ContextualizationConfig? Type59 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type60 { get; set; } + public global::Mixedbread.AnyOf>? Type60 { get; set; } /// /// /// - public global::Mixedbread.CostHistogramResponse? Type61 { get; set; } + public global::System.Collections.Generic.IList? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::Mixedbread.CostHistogramResponse? Type62 { get; set; } /// /// /// - public global::Mixedbread.DailyCostBucket? Type63 { get; set; } + public global::System.Collections.Generic.IList? Type63 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type64 { get; set; } + public global::Mixedbread.DailyCostBucket? Type64 { get; set; } /// /// /// - public global::Mixedbread.PhaseCostInfo? Type65 { get; set; } + public global::System.Collections.Generic.IList? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::Mixedbread.PhaseCostInfo? Type66 { get; set; } /// /// /// - public global::Mixedbread.ProductCostInfo? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type67 { get; set; } /// /// /// - public global::Mixedbread.CreateMultipartUploadRequest? Type68 { get; set; } + public global::Mixedbread.ProductCostInfo? Type68 { get; set; } /// /// /// - public long? Type69 { get; set; } + public global::Mixedbread.CreateMultipartUploadRequest? Type69 { get; set; } /// /// /// - public global::Mixedbread.CreateMultipartUploadResponse? Type70 { get; set; } + public long? Type70 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type71 { get; set; } + public global::Mixedbread.CreateMultipartUploadResponse? Type71 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadPartUrl? Type72 { get; set; } + public global::System.Collections.Generic.IList? Type72 { get; set; } /// /// /// - public global::Mixedbread.CreatedJsonSchema? Type73 { get; set; } + public global::Mixedbread.MultipartUploadPartUrl? Type73 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type74 { get; set; } + public global::Mixedbread.CreatedJsonSchema? Type74 { get; set; } /// /// /// - public global::Mixedbread.DataSource? Type75 { get; set; } + public global::System.Collections.Generic.Dictionary? Type75 { get; set; } /// /// /// - public global::Mixedbread.DataSourceType? Type76 { get; set; } + public global::Mixedbread.DataSource? Type76 { get; set; } /// /// /// - public global::Mixedbread.AuthParamsVariant1? Type77 { get; set; } + public global::Mixedbread.DataSourceType? Type77 { get; set; } /// /// /// - public global::Mixedbread.DataSourceOAuth2Params? Type78 { get; set; } + public global::Mixedbread.AuthParamsVariant1? Type78 { get; set; } /// /// /// - public global::Mixedbread.DataSourceApiKeyParams? Type79 { get; set; } + public global::Mixedbread.DataSourceOAuth2Params? Type79 { get; set; } /// /// /// - public global::Mixedbread.DataSourceAuthParamsVariant1Discriminator? Type80 { get; set; } + public global::Mixedbread.DataSourceApiKeyParams? Type80 { get; set; } /// /// /// - public global::Mixedbread.DataSourceAuthParamsVariant1DiscriminatorType? Type81 { get; set; } + public global::Mixedbread.DataSourceAuthParamsVariant1Discriminator? Type81 { get; set; } /// /// /// - public global::Mixedbread.SyncStatus? Type82 { get; set; } + public global::Mixedbread.DataSourceAuthParamsVariant1DiscriminatorType? Type82 { get; set; } /// /// /// - public global::Mixedbread.DataSourceConnectorCreateParams? Type83 { get; set; } + public global::Mixedbread.SyncStatus? Type83 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type84 { get; set; } + public global::Mixedbread.DataSourceConnectorCreateParams? Type84 { get; set; } /// /// /// - public global::Mixedbread.DataSourceConnectorDeleted? Type85 { get; set; } + public global::Mixedbread.AnyOf? Type85 { get; set; } /// /// /// - public global::Mixedbread.DataSourceConnectorUpdateParams? Type86 { get; set; } + public global::Mixedbread.DataSourceConnectorDeleted? Type86 { get; set; } /// /// /// - public global::Mixedbread.DataSourceDeleted? Type87 { get; set; } + public global::Mixedbread.DataSourceConnectorUpdateParams? Type87 { get; set; } /// /// /// - public global::Mixedbread.DataSourceListResponse? Type88 { get; set; } + public global::Mixedbread.DataSourceDeleted? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public global::Mixedbread.DataSourceListResponse? Type89 { get; set; } /// /// /// - public global::Mixedbread.DeprecatedStoreFileUpsertParams? Type90 { get; set; } + public global::System.Collections.Generic.IList? Type90 { get; set; } /// /// /// - public global::Mixedbread.StoreFileConfig2? Type91 { get; set; } + public global::Mixedbread.DeprecatedStoreFileUpsertParams? Type91 { get; set; } /// /// /// - public global::System.Guid? Type92 { get; set; } + public global::Mixedbread.StoreFileConfig2? Type92 { get; set; } /// /// /// - public global::Mixedbread.DocumentParserResult? Type93 { get; set; } + public global::System.Guid? Type93 { get; set; } /// /// /// - public global::Mixedbread.ReturnFormat? Type94 { get; set; } + public global::Mixedbread.DocumentParserResult? Type94 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type95 { get; set; } + public global::Mixedbread.ReturnFormat? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type96 { get; set; } + public global::System.Collections.Generic.IList? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type98 { get; set; } + public global::System.Collections.Generic.IList>? Type98 { get; set; } /// /// /// - public global::Mixedbread.Embedding? Type99 { get; set; } + public global::System.Collections.Generic.IList? Type99 { get; set; } /// /// /// - public global::Mixedbread.EmbeddingItem? Type100 { get; set; } + public global::Mixedbread.Embedding? Type100 { get; set; } /// /// /// - public global::Mixedbread.EmbeddingCreateParams? Type101 { get; set; } + public global::Mixedbread.EmbeddingItem? Type101 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type102 { get; set; } + public global::Mixedbread.EmbeddingCreateParams? Type102 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type103 { get; set; } + public global::Mixedbread.AnyOf>? Type103 { get; set; } /// /// /// - public global::Mixedbread.EncodingFormat3? Type104 { get; set; } + public global::Mixedbread.AnyOf>? Type104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type105 { get; set; } + public global::Mixedbread.EncodingFormat3? Type105 { get; set; } /// /// /// - public global::Mixedbread.EmbeddingCreateResponse? Type106 { get; set; } + public global::System.Collections.Generic.IList? Type106 { get; set; } /// /// /// - public global::Mixedbread.Usage? Type107 { get; set; } + public global::Mixedbread.EmbeddingCreateResponse? Type107 { get; set; } /// /// /// - public global::Mixedbread.AnyOf, global::System.Collections.Generic.IList>? Type108 { get; set; } + public global::Mixedbread.Usage? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::Mixedbread.AnyOf, global::System.Collections.Generic.IList>? Type109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type110 { get; set; } + public global::System.Collections.Generic.IList? Type110 { get; set; } /// /// /// - public global::Mixedbread.MultiEncodingEmbedding? Type111 { get; set; } + public global::System.Collections.Generic.IList? Type111 { get; set; } /// /// /// - public global::Mixedbread.EnhancedJsonSchema? Type112 { get; set; } + public global::Mixedbread.MultiEncodingEmbedding? Type112 { get; set; } /// /// /// - public global::Mixedbread.ErrorResponse? Type113 { get; set; } + public global::Mixedbread.EnhancedJsonSchema? Type113 { get; set; } /// /// /// - public global::Mixedbread.InnerErrorResponse? Type114 { get; set; } + public global::Mixedbread.ErrorResponse? Type114 { get; set; } /// /// /// - public global::Mixedbread.ExpiresAfter? Type115 { get; set; } + public global::Mixedbread.InnerErrorResponse? Type115 { get; set; } /// /// /// - public global::Mixedbread.ExtractContentCreateParams? Type116 { get; set; } + public global::Mixedbread.ExpiresAfter? Type116 { get; set; } /// /// /// - public global::Mixedbread.AnyOf, global::System.Collections.Generic.IList>>? Type117 { get; set; } + public global::Mixedbread.ExtractContentCreateParams? Type117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type118 { get; set; } + public global::Mixedbread.AnyOf, global::System.Collections.Generic.IList>>? Type118 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type119 { get; set; } + public global::System.Collections.Generic.IList>? Type119 { get; set; } /// /// /// - public global::Mixedbread.TextInput? Type120 { get; set; } + public global::Mixedbread.AnyOf? Type120 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInput2? Type121 { get; set; } + public global::Mixedbread.TextInput? Type121 { get; set; } /// /// /// - public global::Mixedbread.ExtractJobCreateParams? Type122 { get; set; } + public global::Mixedbread.ImageUrlInput2? Type122 { get; set; } /// /// /// - public global::Mixedbread.ExtractionJob? Type123 { get; set; } + public global::Mixedbread.ExtractJobCreateParams? Type123 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobStatus? Type124 { get; set; } + public global::Mixedbread.ExtractionJob? Type124 { get; set; } /// /// /// - public global::Mixedbread.ExtractionResult? Type125 { get; set; } + public global::Mixedbread.ParsingJobStatus? Type125 { get; set; } /// /// /// - public global::Mixedbread.FileCounts? Type126 { get; set; } + public global::Mixedbread.ExtractionResult? Type126 { get; set; } /// /// /// - public global::Mixedbread.FileDeleted? Type127 { get; set; } + public global::Mixedbread.FileCounts? Type127 { get; set; } /// /// /// - public global::Mixedbread.FileListResponse? Type128 { get; set; } + public global::Mixedbread.FileDeleted? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::Mixedbread.FileListResponse? Type129 { get; set; } /// /// /// - public global::Mixedbread.FileObject? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::Mixedbread.FileSearchResultRule? Type131 { get; set; } + public global::Mixedbread.FileObject? Type131 { get; set; } /// /// /// - public global::Mixedbread.HTTPValidationError? Type132 { get; set; } + public global::Mixedbread.FileSearchResultRule? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type133 { get; set; } + public global::Mixedbread.HTTPValidationError? Type133 { get; set; } /// /// /// - public global::Mixedbread.ValidationError? Type134 { get; set; } + public global::System.Collections.Generic.IList? Type134 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInput? Type135 { get; set; } + public global::Mixedbread.ValidationError? Type135 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlOutput? Type136 { get; set; } + public global::Mixedbread.ImageUrlInput? Type136 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInputChunk? Type137 { get; set; } + public global::Mixedbread.ImageUrlOutput? Type137 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant12? Type138 { get; set; } + public global::Mixedbread.ImageUrlInputChunk? Type138 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type139 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant12? Type139 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type140 { get; set; } + public global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type140 { get; set; } /// /// /// - public global::Mixedbread.InfoResponse? Type141 { get; set; } + public global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type141 { get; set; } /// /// /// - public global::Mixedbread.JsonSchemaCreateParams? Type142 { get; set; } + public global::Mixedbread.InfoResponse? Type142 { get; set; } /// /// /// - public global::Mixedbread.JsonSchemaEnhanceParams? Type143 { get; set; } + public global::Mixedbread.JsonSchemaCreateParams? Type143 { get; set; } /// /// /// - public global::Mixedbread.JsonSchemaValidateParams? Type144 { get; set; } + public global::Mixedbread.JsonSchemaEnhanceParams? Type144 { get; set; } /// /// /// - public global::Mixedbread.LinearDataSourceCreateOrUpdateParams? Type145 { get; set; } + public global::Mixedbread.JsonSchemaValidateParams? Type145 { get; set; } /// /// /// - public global::Mixedbread.AuthParamsVariant12? Type146 { get; set; } + public global::Mixedbread.LinearDataSourceCreateOrUpdateParams? Type146 { get; set; } /// /// /// - public global::Mixedbread.OAuth2CreateOrUpdateParams? Type147 { get; set; } + public global::Mixedbread.AuthParamsVariant12? Type147 { get; set; } /// /// /// - public global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? Type148 { get; set; } + public global::Mixedbread.OAuth2CreateOrUpdateParams? Type148 { get; set; } /// /// /// - public global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType? Type149 { get; set; } + public global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? Type149 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type150 { get; set; } + public global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType? Type150 { get; set; } /// /// /// - public global::Mixedbread.MarkdownHeading? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// /// /// - public global::Mixedbread.MetadataCursorPagination? Type152 { get; set; } + public global::Mixedbread.MarkdownHeading? Type152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type153 { get; set; } + public global::Mixedbread.MetadataCursorPagination? Type153 { get; set; } /// /// /// - public global::Mixedbread.StoreFileStatus? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? Type155 { get; set; } + public global::Mixedbread.StoreFileStatus? Type155 { get; set; } /// /// /// - public global::Mixedbread.SearchFilter? Type156 { get; set; } + public global::Mixedbread.AnyOf>, object>? Type156 { get; set; } /// /// /// - public global::Mixedbread.SearchFilterCondition? Type157 { get; set; } + public global::Mixedbread.SearchFilterInput? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type158 { get; set; } + public global::Mixedbread.SearchFilterCondition? Type158 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type159 { get; set; } + public global::System.Collections.Generic.IList>? Type159 { get; set; } /// /// /// - public global::Mixedbread.MetadataFacets? Type160 { get; set; } + public global::Mixedbread.AnyOf? Type160 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type161 { get; set; } + public global::Mixedbread.MetadataFacets? Type161 { get; set; } /// /// /// - public global::Mixedbread.MetadataFacetsParams? Type162 { get; set; } + public global::System.Collections.Generic.Dictionary? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type163 { get; set; } + public global::Mixedbread.MetadataFacetsParams? Type163 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type164 { get; set; } + public global::System.Collections.Generic.IList>? Type164 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? Type165 { get; set; } + public global::Mixedbread.AnyOf? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>>? Type166 { get; set; } + public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? Type166 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type167 { get; set; } + public global::System.Collections.Generic.IList>>? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::Mixedbread.AnyOf>? Type168 { get; set; } /// /// /// - public global::Mixedbread.StoreChunkSearchOptions? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Mixedbread.Mode? Type170 { get; set; } + public global::Mixedbread.StoreChunkSearchOptions? Type170 { get; set; } /// /// /// - public global::Mixedbread.MultipleEncodingsEmbeddingItem? Type171 { get; set; } + public global::Mixedbread.Mode? Type171 { get; set; } /// /// /// - public global::Mixedbread.MultiModalQuery? Type172 { get; set; } + public global::Mixedbread.MultipleEncodingsEmbeddingItem? Type172 { get; set; } /// /// /// - public global::Mixedbread.MultiModalQueryVariant2? Type173 { get; set; } + public global::Mixedbread.MultiModalQuery? Type173 { get; set; } /// /// /// - public global::Mixedbread.MultiModalQueryVariant2Discriminator? Type174 { get; set; } + public global::Mixedbread.MultiModalQueryVariant2? Type174 { get; set; } /// /// /// - public global::Mixedbread.MultiModalQueryVariant2DiscriminatorType? Type175 { get; set; } + public global::Mixedbread.MultiModalQueryVariant2Discriminator? Type175 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadDetailResponse? Type176 { get; set; } + public global::Mixedbread.MultiModalQueryVariant2DiscriminatorType? Type176 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadListResponse? Type177 { get; set; } + public global::Mixedbread.MultipartUploadDetailResponse? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::Mixedbread.MultipartUploadListResponse? Type178 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadObject? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::Mixedbread.NotionDataSourceCreateOrUpdateParams? Type180 { get; set; } + public global::Mixedbread.MultipartUploadObject? Type180 { get; set; } /// /// /// - public global::Mixedbread.AuthParamsVariant13? Type181 { get; set; } + public global::Mixedbread.NotionDataSourceCreateOrUpdateParams? Type181 { get; set; } /// /// /// - public global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? Type182 { get; set; } + public global::Mixedbread.AuthParamsVariant13? Type182 { get; set; } /// /// /// - public global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType? Type183 { get; set; } + public global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? Type183 { get; set; } /// /// /// - public global::Mixedbread.ParsingJob? Type184 { get; set; } + public global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType? Type184 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobCreateParams? Type185 { get; set; } + public global::Mixedbread.ParsingJob? Type185 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobDeleted? Type186 { get; set; } + public global::Mixedbread.ParsingJobCreateParams? Type186 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobListItem? Type187 { get; set; } + public global::Mixedbread.ParsingJobDeleted? Type187 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobListResponse? Type188 { get; set; } + public global::Mixedbread.ParsingJobListItem? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type189 { get; set; } + public global::Mixedbread.ParsingJobListResponse? Type189 { get; set; } /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule? Type190 { get; set; } + public global::System.Collections.Generic.IList? Type190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type191 { get; set; } + public global::Mixedbread.QueryEnhanceMetadataFilter? Type191 { get; set; } /// /// /// - public global::Mixedbread.RegexFlag? Type192 { get; set; } + public global::Mixedbread.AnyOf>, object>? Type192 { get; set; } /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule? Type193 { get; set; } + public global::System.Collections.Generic.IList>? Type193 { get; set; } /// /// /// - public global::Mixedbread.QuestionAnsweringOptions? Type194 { get; set; } + public global::Mixedbread.AnyOf? Type194 { get; set; } /// /// /// - public global::Mixedbread.RankedDocument? Type195 { get; set; } + public global::Mixedbread.QueryEnhanceParams? Type195 { get; set; } /// /// /// - public global::Mixedbread.RerankConfig? Type196 { get; set; } + public global::Mixedbread.QueryEnhanceQueryItem? Type196 { get; set; } /// /// /// - public global::Mixedbread.RerankParams? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>>? Type198 { get; set; } + public global::Mixedbread.QueryEnhanceQueryItemFilterMode? Type198 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type199 { get; set; } + public global::Mixedbread.QueryEnhanceResults? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::System.Collections.Generic.IList? Type200 { get; set; } /// /// /// - public global::Mixedbread.RerankResponse? Type201 { get; set; } + public global::Mixedbread.ItemsItem? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::Mixedbread.QueryEnhanceSortItem? Type202 { get; set; } /// /// /// - public global::Mixedbread.ScopeMethod? Type203 { get; set; } + public global::Mixedbread.QueryEnhanceResultsItemDiscriminator? Type203 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type204 { get; set; } + public global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? Type204 { get; set; } /// /// /// - public global::Mixedbread.SearchCursorPagination? Type205 { get; set; } + public global::Mixedbread.QueryEnhanceSortItemFilterMode? Type205 { get; set; } /// /// /// - public global::Mixedbread.Store? Type206 { get; set; } + public global::Mixedbread.QueryEnhanceSortItemDirection? Type206 { get; set; } /// /// /// - public global::Mixedbread.StoreConfig2? Type207 { get; set; } + public global::Mixedbread.QueryRegexSubstitutionRule? Type207 { get; set; } /// /// /// - public global::Mixedbread.StoreStatus? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// /// /// - public global::Mixedbread.StoreAgenticSearchEvent? Type209 { get; set; } + public global::Mixedbread.RegexFlag? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::Mixedbread.QueryStringSubstitutionRule? Type210 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type211 { get; set; } + public global::Mixedbread.QuestionAnsweringOptions? Type211 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchEventResult? Type212 { get; set; } + public global::Mixedbread.RankedDocument? Type212 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type213 { get; set; } + public global::Mixedbread.RerankConfig? Type213 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type214 { get; set; } + public global::Mixedbread.RerankParams? Type214 { get; set; } /// /// /// - public global::Mixedbread.StoreChunkSearchParams? Type215 { get; set; } + public global::System.Collections.Generic.IList>>? Type215 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type216 { get; set; } + public global::Mixedbread.AnyOf>? Type216 { get; set; } /// /// /// - public global::Mixedbread.StoreCostInfo? Type217 { get; set; } + public global::System.Collections.Generic.IList? Type217 { get; set; } /// /// /// - public global::Mixedbread.StoreCostListResponse? Type218 { get; set; } + public global::Mixedbread.RerankResponse? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::Mixedbread.StoreCreateParams? Type220 { get; set; } + public global::Mixedbread.ScopeMethod? Type220 { get; set; } /// /// /// - public global::Mixedbread.StoreDeleted? Type221 { get; set; } + public global::Mixedbread.AnyOf? Type221 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramBucket? Type222 { get; set; } + public global::Mixedbread.SearchCursorPagination? Type222 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramBucketType? Type223 { get; set; } + public global::Mixedbread.SearchFilterOutput? Type223 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramParams? Type224 { get; set; } + public global::System.Collections.Generic.IList>? Type224 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramResponse? Type225 { get; set; } + public global::Mixedbread.AnyOf? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::Mixedbread.Store? Type226 { get; set; } /// /// /// - public global::Mixedbread.StoreEventListResponse? Type227 { get; set; } + public global::Mixedbread.StoreConfig2? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::Mixedbread.StoreStatus? Type228 { get; set; } /// /// /// - public global::Mixedbread.DataItem? Type229 { get; set; } + public global::Mixedbread.StoreAgenticSearchEvent? Type229 { get; set; } /// /// /// - public global::Mixedbread.StoreIngestionEvent? Type230 { get; set; } + public global::Mixedbread.AnyOf>, object>? Type230 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchEvent? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::Mixedbread.StoreEventListResponseDataItemDiscriminator? Type232 { get; set; } + public global::System.Collections.Generic.IList? Type232 { get; set; } /// /// /// - public global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType? Type233 { get; set; } + public global::Mixedbread.StoreSearchEventResult? Type233 { get; set; } /// /// /// - public global::Mixedbread.StoreFile? Type234 { get; set; } + public global::Mixedbread.StoreChunkGrepParams? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::Mixedbread.ChunksVariant1Item? Type236 { get; set; } + public global::Mixedbread.StoreChunkGrepTarget? Type236 { get; set; } /// /// /// - public global::Mixedbread.TextInputChunk? Type237 { get; set; } + public global::Mixedbread.AnyOf? Type237 { get; set; } /// /// /// - public global::Mixedbread.VideoUrlInputChunk? Type238 { get; set; } + public global::Mixedbread.AnyOf? Type238 { get; set; } /// /// /// - public global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator? Type239 { get; set; } + public global::Mixedbread.StoreChunkSearchParams? Type239 { get; set; } /// /// /// - public global::Mixedbread.StoreFileChunksVariant1ItemDiscriminatorType? Type240 { get; set; } + public global::Mixedbread.AnyOf? Type240 { get; set; } /// /// /// - public global::Mixedbread.StoreFileParsingStrategy? Type241 { get; set; } + public global::Mixedbread.StoreCostInfo? Type241 { get; set; } /// /// /// - public global::Mixedbread.StoreFileDeleted? Type242 { get; set; } + public global::Mixedbread.StoreCostListResponse? Type242 { get; set; } /// /// /// - public global::Mixedbread.StoreFileListResponse? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Mixedbread.StoreCreateParams? Type244 { get; set; } /// /// /// - public global::Mixedbread.StoreFileMetadataUpdateParams? Type245 { get; set; } + public global::Mixedbread.StoreDeleted? Type245 { get; set; } /// /// /// - public global::Mixedbread.StoreListResponse? Type246 { get; set; } + public global::Mixedbread.StoreEventHistogramBucket? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::Mixedbread.StoreEventHistogramBucketType? Type247 { get; set; } /// /// /// - public global::Mixedbread.StoreQAParams? Type248 { get; set; } + public global::Mixedbread.StoreEventHistogramParams? Type248 { get; set; } /// /// /// - public global::Mixedbread.StoreQAResults? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type250 { get; set; } + public global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item? Type250 { get; set; } /// /// /// - public global::Mixedbread.SourcesItem? Type251 { get; set; } + public global::Mixedbread.StoreEventHistogramResponse? Type251 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? Type252 { get; set; } + public global::System.Collections.Generic.IList? Type252 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? Type253 { get; set; } + public global::Mixedbread.StoreEventListResponse? Type253 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? Type255 { get; set; } + public global::Mixedbread.DataItem? Type255 { get; set; } /// /// /// - public global::Mixedbread.StoreQAResultsSourceDiscriminator? Type256 { get; set; } + public global::Mixedbread.StoreIngestionEvent? Type256 { get; set; } /// /// /// - public global::Mixedbread.StoreQAResultsSourceDiscriminatorType? Type257 { get; set; } + public global::Mixedbread.StoreSearchEvent? Type257 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchEventResultFirstStageSource2? Type258 { get; set; } + public global::Mixedbread.StoreEventListResponseDataItemDiscriminator? Type258 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchResponse? Type259 { get; set; } + public global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType? Type259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type260 { get; set; } + public global::Mixedbread.StoreFile? Type260 { get; set; } /// /// /// - public global::Mixedbread.DataItem2? Type261 { get; set; } + public global::System.Collections.Generic.IList? Type261 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchResponseDataItemDiscriminator? Type262 { get; set; } + public global::Mixedbread.ChunksVariant1Item? Type262 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType? Type263 { get; set; } + public global::Mixedbread.TextInputChunk? Type263 { get; set; } /// /// /// - public global::Mixedbread.StoreUpdateParams? Type264 { get; set; } + public global::Mixedbread.VideoUrlInputChunk? Type264 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant13? Type265 { get; set; } + public global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator? Type265 { get; set; } /// /// /// - public global::Mixedbread.TextInputChunkGeneratedMetadataVariant1Discriminator? Type266 { get; set; } + public global::Mixedbread.StoreFileChunksVariant1ItemDiscriminatorType? Type266 { get; set; } /// /// /// - public global::Mixedbread.TextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type267 { get; set; } + public global::Mixedbread.StoreFileParsingStrategy? Type267 { get; set; } /// /// /// - public global::Mixedbread.ValidatedJsonSchema? Type268 { get; set; } + public global::Mixedbread.StoreFileDeleted? Type268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type269 { get; set; } + public global::Mixedbread.StoreFileListResponse? Type269 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// /// /// - public global::Mixedbread.VectorStore? Type271 { get; set; } + public global::Mixedbread.StoreFileMetadataUpdateParams? Type271 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreChunkSearchOptions? Type272 { get; set; } + public global::Mixedbread.StoreGrepResponse? Type272 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreChunkSearchParams? Type273 { get; set; } + public global::System.Collections.Generic.IList? Type273 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreCreateParams? Type274 { get; set; } + public global::Mixedbread.DataItem2? Type274 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreDeleted? Type275 { get; set; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? Type275 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFile? Type276 { get; set; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? Type276 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type277 { get; set; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? Type277 { get; set; } /// /// /// - public global::Mixedbread.ChunksVariant1Item2? Type278 { get; set; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? Type278 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator? Type279 { get; set; } + public global::Mixedbread.StoreGrepResponseDataItemDiscriminator? Type279 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminatorType? Type280 { get; set; } + public global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? Type280 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileDeleted? Type281 { get; set; } + public global::Mixedbread.StoreListResponse? Type281 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileListResponse? Type282 { get; set; } + public global::System.Collections.Generic.IList? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::Mixedbread.StoreQAParams? Type283 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileStatus? Type284 { get; set; } + public global::Mixedbread.StoreQAResults? Type284 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreListResponse? Type285 { get; set; } + public global::System.Collections.Generic.IList? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type286 { get; set; } + public global::Mixedbread.SourcesItem? Type286 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreQAParams? Type287 { get; set; } + public global::Mixedbread.StoreQAResultsSourceDiscriminator? Type287 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreQAResults? Type288 { get; set; } + public global::Mixedbread.StoreQAResultsSourceDiscriminatorType? Type288 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type289 { get; set; } + public global::Mixedbread.StoreSearchEventRewriteRankDirection2? Type289 { get; set; } /// /// /// - public global::Mixedbread.SourcesItem2? Type290 { get; set; } + public global::Mixedbread.StoreSearchEventRewriteRankMode2? Type290 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? Type291 { get; set; } + public global::Mixedbread.StoreSearchEventResultFirstStageSource2? Type291 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? Type292 { get; set; } + public global::Mixedbread.StoreSearchResponse? Type292 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? Type293 { get; set; } + public global::System.Collections.Generic.IList? Type293 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? Type294 { get; set; } + public global::Mixedbread.DataItem3? Type294 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreQAResultsSourceDiscriminator? Type295 { get; set; } + public global::Mixedbread.StoreSearchResponseDataItemDiscriminator? Type295 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreQAResultsSourceDiscriminatorType? Type296 { get; set; } + public global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType? Type296 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreSearchResponse? Type297 { get; set; } + public global::Mixedbread.StoreUpdateParams? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type298 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant13? Type298 { get; set; } /// /// /// - public global::Mixedbread.DataItem3? Type299 { get; set; } + public global::Mixedbread.TextInputChunkGeneratedMetadataVariant1Discriminator? Type299 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator? Type300 { get; set; } + public global::Mixedbread.TextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type300 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType? Type301 { get; set; } + public global::Mixedbread.ValidatedJsonSchema? Type301 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreUpdateParams? Type302 { get; set; } + public global::System.Collections.Generic.IList>? Type302 { get; set; } /// /// /// - public global::Mixedbread.VideoUrl? Type303 { get; set; } + public global::Mixedbread.AnyOf? Type303 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant14? Type304 { get; set; } + public global::Mixedbread.VectorStore? Type304 { get; set; } /// /// /// - public global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type305 { get; set; } + public global::Mixedbread.VectorStoreChunkSearchOptions? Type305 { get; set; } /// /// /// - public global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type306 { get; set; } + public global::Mixedbread.VectorStoreChunkSearchParams? Type306 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant15? Type307 { get; set; } + public global::Mixedbread.VectorStoreCreateParams? Type307 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type308 { get; set; } + public global::Mixedbread.VectorStoreDeleted? Type308 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant16? Type309 { get; set; } + public global::Mixedbread.VectorStoreFile? Type309 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type310 { get; set; } + public global::System.Collections.Generic.IList? Type310 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant17? Type311 { get; set; } + public global::Mixedbread.ChunksVariant1Item2? Type311 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator? Type312 { get; set; } + public global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator? Type312 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type313 { get; set; } + public global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminatorType? Type313 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant18? Type314 { get; set; } + public global::Mixedbread.VectorStoreFileDeleted? Type314 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type315 { get; set; } + public global::Mixedbread.VectorStoreFileListResponse? Type315 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type317 { get; set; } + public global::Mixedbread.VectorStoreFileStatus? Type317 { get; set; } /// /// /// - public global::Mixedbread.RulesItem? Type318 { get; set; } + public global::Mixedbread.VectorStoreListResponse? Type318 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator? Type319 { get; set; } + public global::System.Collections.Generic.IList? Type319 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminatorType? Type320 { get; set; } + public global::Mixedbread.VectorStoreQAParams? Type320 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted? Type321 { get; set; } + public global::Mixedbread.VectorStoreQAResults? Type321 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse? Type322 { get; set; } + public global::System.Collections.Generic.IList? Type322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type323 { get; set; } + public global::Mixedbread.SourcesItem2? Type323 { get; set; } /// /// /// - public global::Mixedbread.RulesItem2? Type324 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? Type324 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator? Type325 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? Type325 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminatorType? Type326 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? Type326 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams? Type327 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? Type327 { get; set; } /// /// /// - public global::Mixedbread.Rule? Type328 { get; set; } + public global::Mixedbread.VectorStoreQAResultsSourceDiscriminator? Type328 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? Type329 { get; set; } + public global::Mixedbread.VectorStoreQAResultsSourceDiscriminatorType? Type329 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminatorType? Type330 { get; set; } + public global::Mixedbread.VectorStoreSearchResponse? Type330 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted? Type331 { get; set; } + public global::System.Collections.Generic.IList? Type331 { get; set; } /// /// /// - public global::Mixedbread.DeletedRule? Type332 { get; set; } + public global::Mixedbread.DataItem4? Type332 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? Type333 { get; set; } + public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator? Type333 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType? Type334 { get; set; } + public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType? Type334 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams? Type335 { get; set; } + public global::Mixedbread.VectorStoreUpdateParams? Type335 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type336 { get; set; } + public global::Mixedbread.VideoUrl? Type336 { get; set; } /// /// /// - public global::Mixedbread.RulesVariant1Item? Type337 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant14? Type337 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? Type338 { get; set; } + public global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type338 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminatorType? Type339 { get; set; } + public global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type339 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams? Type340 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant15? Type340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type341 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type341 { get; set; } /// /// /// - public global::Mixedbread.RulesItem3? Type342 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant16? Type342 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator? Type343 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type343 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminatorType? Type344 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant17? Type344 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted? Type345 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator? Type345 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse? Type346 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type346 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type347 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant18? Type347 { get; set; } /// /// /// - public global::Mixedbread.RulesItem4? Type348 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type348 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator? Type349 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams? Type349 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminatorType? Type350 { get; set; } + public global::System.Collections.Generic.IList? Type350 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams? Type351 { get; set; } + public global::Mixedbread.RulesItem? Type351 { get; set; } /// /// /// - public global::Mixedbread.Rule2? Type352 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator? Type352 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? Type353 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminatorType? Type353 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminatorType? Type354 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted? Type354 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted? Type355 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse? Type355 { get; set; } /// /// /// - public global::Mixedbread.DeletedRule2? Type356 { get; set; } + public global::System.Collections.Generic.IList? Type356 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? Type357 { get; set; } + public global::Mixedbread.RulesItem2? Type357 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType? Type358 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator? Type358 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams? Type359 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminatorType? Type359 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type360 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams? Type360 { get; set; } /// /// /// - public global::Mixedbread.RulesVariant1Item2? Type361 { get; set; } + public global::Mixedbread.Rule? Type361 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? Type362 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? Type362 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminatorType? Type363 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminatorType? Type363 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant19? Type364 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted? Type364 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type365 { get; set; } + public global::Mixedbread.DeletedRule? Type365 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type366 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? Type366 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant110? Type367 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType? Type367 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type368 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams? Type368 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type369 { get; set; } + public global::System.Collections.Generic.IList? Type369 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant111? Type370 { get; set; } + public global::Mixedbread.RulesVariant1Item? Type370 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator? Type371 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? Type371 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type372 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminatorType? Type372 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant112? Type373 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams? Type373 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type374 { get; set; } + public global::System.Collections.Generic.IList? Type374 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type375 { get; set; } + public global::Mixedbread.RulesItem3? Type375 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type376 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator? Type376 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type377 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminatorType? Type377 { get; set; } /// /// /// - public global::Mixedbread.ListStoreEventsEventType? Type378 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted? Type378 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type379 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse? Type379 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type380 { get; set; } + public global::System.Collections.Generic.IList? Type380 { get; set; } + /// + /// + /// + public global::Mixedbread.RulesItem4? Type381 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator? Type382 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminatorType? Type383 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams? Type384 { get; set; } + /// + /// + /// + public global::Mixedbread.Rule2? Type385 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? Type386 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminatorType? Type387 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted? Type388 { get; set; } + /// + /// + /// + public global::Mixedbread.DeletedRule2? Type389 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? Type390 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType? Type391 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams? Type392 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type393 { get; set; } + /// + /// + /// + public global::Mixedbread.RulesVariant1Item2? Type394 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? Type395 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminatorType? Type396 { get; set; } + /// + /// + /// + public global::Mixedbread.GeneratedMetadataVariant19? Type397 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type398 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type399 { get; set; } + /// + /// + /// + public global::Mixedbread.GeneratedMetadataVariant110? Type400 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type401 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type402 { get; set; } + /// + /// + /// + public global::Mixedbread.GeneratedMetadataVariant111? Type403 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator? Type404 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type405 { get; set; } + /// + /// + /// + public global::Mixedbread.GeneratedMetadataVariant112? Type406 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type407 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type408 { get; set; } + /// + /// + /// + public global::Mixedbread.AnyOf? Type409 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type410 { get; set; } + /// + /// + /// + public global::Mixedbread.ListStoreEventsEventType? Type411 { get; set; } + /// + /// + /// + public global::Mixedbread.AnyOf>? Type412 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type413 { get; set; } /// /// @@ -1669,11 +1801,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Mixedbread.AnyOf>, object>? ListType29 { get; set; } + public global::Mixedbread.AnyOf>, object>? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType30 { get; set; } + public global::System.Collections.Generic.List>? ListType30 { get; set; } /// /// /// @@ -1705,122 +1837,158 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::Mixedbread.AnyOf>, object>? ListType38 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType39 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType40 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType41 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType42 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>>? ListType43 { get; set; } + /// + /// + /// + public global::Mixedbread.AnyOf>? ListType44 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType45 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType46 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List>>? ListType39 { get; set; } + public global::Mixedbread.AnyOf>, object>? ListType48 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType53 { get; set; } + public global::System.Collections.Generic.List>? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? ListType66 { get; set; } + public global::Mixedbread.AnyOf>? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfig.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfig.g.cs index 5cbaf41..8efd46f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfig.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfig.g.cs @@ -17,17 +17,39 @@ public sealed partial class AgenticSearchConfig /// /// Maximum queries per round
- /// Default Value: 3 + /// Default Value: 4 ///
[global::System.Text.Json.Serialization.JsonPropertyName("queries_per_round")] public int? QueriesPerRound { get; set; } + /// + /// Whether the final retrieved chunk list must provide exactly top_k ranked chunks
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("strict_top_k")] + public bool? StrictTopK { get; set; } + + /// + /// Controls when retrieved image content is provided to the agent. `auto` sends images only when no OCR text or summary is available, `never` disables image content, and `always` sends image content when available.
+ /// Default Value: auto + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("media_content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AgenticSearchConfigMediaContentJsonConverter))] + public global::Mixedbread.AgenticSearchConfigMediaContent? MediaContent { get; set; } + /// /// Additional custom instructions (followed only when not in conflict with existing rules) /// [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] public string? Instructions { get; set; } + /// + /// Internal: when set, the response includes a `trace` field with the full tool-call timeline. Used by the Mixedbread playground; not part of the documented public API.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("verbose")] + public bool? Verbose { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -43,22 +65,40 @@ public sealed partial class AgenticSearchConfig /// /// /// Maximum queries per round
- /// Default Value: 3 + /// Default Value: 4 + /// + /// + /// Whether the final retrieved chunk list must provide exactly top_k ranked chunks
+ /// Default Value: false + /// + /// + /// Controls when retrieved image content is provided to the agent. `auto` sends images only when no OCR text or summary is available, `never` disables image content, and `always` sends image content when available.
+ /// Default Value: auto /// /// /// Additional custom instructions (followed only when not in conflict with existing rules) /// + /// + /// Internal: when set, the response includes a `trace` field with the full tool-call timeline. Used by the Mixedbread playground; not part of the documented public API.
+ /// Default Value: false + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AgenticSearchConfig( int? maxRounds, int? queriesPerRound, - string? instructions) + bool? strictTopK, + global::Mixedbread.AgenticSearchConfigMediaContent? mediaContent, + string? instructions, + bool? verbose) { this.MaxRounds = maxRounds; this.QueriesPerRound = queriesPerRound; + this.StrictTopK = strictTopK; + this.MediaContent = mediaContent; this.Instructions = instructions; + this.Verbose = verbose; } /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfigMediaContent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfigMediaContent.g.cs new file mode 100644 index 0000000..e12c523 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfigMediaContent.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Controls when retrieved image content is provided to the agent. `auto` sends images only when no OCR text or summary is available, `never` disables image content, and `always` sends image content when available.
+ /// Default Value: auto + ///
+ public enum AgenticSearchConfigMediaContent + { + /// + /// + /// + Always, + /// + /// + /// + Auto, + /// + /// + /// + Never, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AgenticSearchConfigMediaContentExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AgenticSearchConfigMediaContent value) + { + return value switch + { + AgenticSearchConfigMediaContent.Always => "always", + AgenticSearchConfigMediaContent.Auto => "auto", + AgenticSearchConfigMediaContent.Never => "never", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AgenticSearchConfigMediaContent? ToEnum(string value) + { + return value switch + { + "always" => AgenticSearchConfigMediaContent.Always, + "auto" => AgenticSearchConfigMediaContent.Auto, + "never" => AgenticSearchConfigMediaContent.Never, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunk.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunk.g.cs index 69bb00e..ca613d7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunk.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunk.g.cs @@ -47,6 +47,12 @@ public sealed partial class AudioUrlInputChunk [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] public string? Transcription { get; set; } + /// + /// summary of the audio + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + public string? Summary { get; set; } + /// /// Audio URL /// @@ -92,6 +98,9 @@ public sealed partial class AudioUrlInputChunk /// /// speech recognition (sr) text of the audio /// + /// + /// summary of the audio + /// /// /// Audio URL /// @@ -106,6 +115,7 @@ public AudioUrlInputChunk( string? model, string? type, string? transcription, + string? summary, global::Mixedbread.AudioUrl? audioUrl) { this.ChunkIndex = chunkIndex; @@ -114,6 +124,7 @@ public AudioUrlInputChunk( this.Model = model; this.Type = type; this.Transcription = transcription; + this.Summary = summary; this.AudioUrl = audioUrl; this.SamplingRate = samplingRate; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.Json.g.cs new file mode 100644 index 0000000..478c9d7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class AudioUrlInputChunkSummary + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrlInputChunkSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.AudioUrlInputChunkSummary), + jsonSerializerContext) as global::Mixedbread.AudioUrlInputChunkSummary; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.AudioUrlInputChunkSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.AudioUrlInputChunkSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrlInputChunkSummary; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.g.cs new file mode 100644 index 0000000..a5f4382 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// summary of the audio + /// + public sealed partial class AudioUrlInputChunkSummary + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.DataItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.g.cs index 921f495..5bdd640 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.g.cs @@ -12,7 +12,7 @@ namespace Mixedbread /// /// /// - public global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType? Type { get; } + public global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? Type { get; } /// /// @@ -257,7 +257,7 @@ public DataItem2(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVide /// /// public DataItem2( - global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType? type, + global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? type, global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? text, global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? imageUrl, global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? audioUrl, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.g.cs index b3f1d60..c7c645c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.g.cs @@ -12,15 +12,15 @@ namespace Mixedbread /// /// /// - public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType? Type { get; } + public global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType? Type { get; } /// - /// Scored text chunk for deprecated API. + /// /// #if NET6_0_OR_GREATER - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? Text { get; init; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? Text { get; init; } #else - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? Text { get; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? Text { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickText( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? value) + out global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? value) { value = Text; return IsText; @@ -47,17 +47,17 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk PickText() => IsText + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => IsText ? Text! : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// - /// Scored image chunk for deprecated API. + /// /// #if NET6_0_OR_GREATER - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? ImageUrl { get; init; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? ImageUrl { get; init; } #else - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? ImageUrl { get; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? ImageUrl { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickImageUrl( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? value) + out global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? value) { value = ImageUrl; return IsImageUrl; @@ -84,17 +84,17 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk PickImageUrl() => IsImageUrl + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => IsImageUrl ? ImageUrl! : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// - /// Scored audio chunk for deprecated API. + /// /// #if NET6_0_OR_GREATER - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? AudioUrl { get; init; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? AudioUrl { get; init; } #else - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? AudioUrl { get; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? AudioUrl { get; } #endif /// @@ -112,7 +112,7 @@ public bool TryPickAudioUrl( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? value) + out global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? value) { value = AudioUrl; return IsAudioUrl; @@ -121,17 +121,17 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl ? AudioUrl! : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// - /// Scored video chunk for deprecated API. + /// /// #if NET6_0_OR_GREATER - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? VideoUrl { get; init; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? VideoUrl { get; init; } #else - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? VideoUrl { get; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? VideoUrl { get; } #endif /// @@ -149,7 +149,7 @@ public bool TryPickVideoUrl( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? value) + out global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? value) { value = VideoUrl; return IsVideoUrl; @@ -158,23 +158,23 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl ? VideoUrl! : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// /// - public static implicit operator DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk value) => new DataItem3((global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk?)value); + public static implicit operator DataItem3(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk value) => new DataItem3((global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk?)value); /// /// /// - public static implicit operator global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk?(DataItem3 @this) => @this.Text; + public static implicit operator global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk?(DataItem3 @this) => @this.Text; /// /// /// - public DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? value) + public DataItem3(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? value) { Text = value; } @@ -182,22 +182,22 @@ public DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresMo /// /// /// - public static DataItem3 FromText(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? value) => new DataItem3(value); + public static DataItem3 FromText(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? value) => new DataItem3(value); /// /// /// - public static implicit operator DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk value) => new DataItem3((global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk?)value); + public static implicit operator DataItem3(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk value) => new DataItem3((global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk?)value); /// /// /// - public static implicit operator global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk?(DataItem3 @this) => @this.ImageUrl; + public static implicit operator global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk?(DataItem3 @this) => @this.ImageUrl; /// /// /// - public DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? value) + public DataItem3(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? value) { ImageUrl = value; } @@ -205,22 +205,22 @@ public DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresMo /// /// /// - public static DataItem3 FromImageUrl(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? value) => new DataItem3(value); + public static DataItem3 FromImageUrl(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? value) => new DataItem3(value); /// /// /// - public static implicit operator DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk value) => new DataItem3((global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk?)value); + public static implicit operator DataItem3(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk value) => new DataItem3((global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk?)value); /// /// /// - public static implicit operator global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk?(DataItem3 @this) => @this.AudioUrl; + public static implicit operator global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk?(DataItem3 @this) => @this.AudioUrl; /// /// /// - public DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? value) + public DataItem3(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? value) { AudioUrl = value; } @@ -228,22 +228,22 @@ public DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresMo /// /// /// - public static DataItem3 FromAudioUrl(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? value) => new DataItem3(value); + public static DataItem3 FromAudioUrl(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? value) => new DataItem3(value); /// /// /// - public static implicit operator DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk value) => new DataItem3((global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk?)value); + public static implicit operator DataItem3(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk value) => new DataItem3((global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk?)value); /// /// /// - public static implicit operator global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk?(DataItem3 @this) => @this.VideoUrl; + public static implicit operator global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk?(DataItem3 @this) => @this.VideoUrl; /// /// /// - public DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? value) + public DataItem3(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? value) { VideoUrl = value; } @@ -251,17 +251,17 @@ public DataItem3(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresMo /// /// /// - public static DataItem3 FromVideoUrl(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? value) => new DataItem3(value); + public static DataItem3 FromVideoUrl(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? value) => new DataItem3(value); /// /// /// public DataItem3( - global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType? type, - global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? text, - global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? imageUrl, - global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? audioUrl, - global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? videoUrl + global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType? type, + global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? text, + global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? imageUrl, + global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? audioUrl, + global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? videoUrl ) { Type = type; @@ -304,10 +304,10 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? text = null, - global::System.Func? imageUrl = null, - global::System.Func? audioUrl = null, - global::System.Func? videoUrl = null, + global::System.Func? text = null, + global::System.Func? imageUrl = null, + global::System.Func? audioUrl = null, + global::System.Func? videoUrl = null, bool validate = true) { if (validate) @@ -339,13 +339,13 @@ public bool Validate() /// /// public void Match( - global::System.Action? text = null, + global::System.Action? text = null, - global::System.Action? imageUrl = null, + global::System.Action? imageUrl = null, - global::System.Action? audioUrl = null, + global::System.Action? audioUrl = null, - global::System.Action? videoUrl = null, + global::System.Action? videoUrl = null, bool validate = true) { if (validate) @@ -375,10 +375,10 @@ public void Match( /// /// public void Switch( - global::System.Action? text = null, - global::System.Action? imageUrl = null, - global::System.Action? audioUrl = null, - global::System.Action? videoUrl = null, + global::System.Action? text = null, + global::System.Action? imageUrl = null, + global::System.Action? audioUrl = null, + global::System.Action? videoUrl = null, bool validate = true) { if (validate) @@ -412,13 +412,13 @@ public override int GetHashCode() var fields = new object?[] { Text, - typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), + typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), ImageUrl, - typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), + typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), AudioUrl, - typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), + typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), VideoUrl, - typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), + typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -435,10 +435,10 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(DataItem3 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AudioUrl, other.AudioUrl) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(VideoUrl, other.VideoUrl) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AudioUrl, other.AudioUrl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(VideoUrl, other.VideoUrl) ; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.Json.g.cs new file mode 100644 index 0000000..99fde7b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public readonly partial struct DataItem4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.DataItem4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.DataItem4), + jsonSerializerContext) as global::Mixedbread.DataItem4?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.DataItem4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.DataItem4), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataItem4?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.g.cs new file mode 100644 index 0000000..e0a8b5b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.g.cs @@ -0,0 +1,469 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public readonly partial struct DataItem4 : global::System.IEquatable + { + /// + /// + /// + public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType? Type { get; } + + /// + /// Scored text chunk for deprecated API. + /// +#if NET6_0_OR_GREATER + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? Text { get; init; } +#else + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? Text { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Text))] +#endif + public bool IsText => Text != null; + + /// + /// + /// + public bool TryPickText( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? value) + { + value = Text; + return IsText; + } + + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk PickText() => IsText + ? Text! + : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); + + /// + /// Scored image chunk for deprecated API. + /// +#if NET6_0_OR_GREATER + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? ImageUrl { get; init; } +#else + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? ImageUrl { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageUrl))] +#endif + public bool IsImageUrl => ImageUrl != null; + + /// + /// + /// + public bool TryPickImageUrl( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? value) + { + value = ImageUrl; + return IsImageUrl; + } + + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk PickImageUrl() => IsImageUrl + ? ImageUrl! + : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); + + /// + /// Scored audio chunk for deprecated API. + /// +#if NET6_0_OR_GREATER + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? AudioUrl { get; init; } +#else + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? AudioUrl { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AudioUrl))] +#endif + public bool IsAudioUrl => AudioUrl != null; + + /// + /// + /// + public bool TryPickAudioUrl( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? value) + { + value = AudioUrl; + return IsAudioUrl; + } + + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl + ? AudioUrl! + : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); + + /// + /// Scored video chunk for deprecated API. + /// +#if NET6_0_OR_GREATER + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? VideoUrl { get; init; } +#else + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? VideoUrl { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(VideoUrl))] +#endif + public bool IsVideoUrl => VideoUrl != null; + + /// + /// + /// + public bool TryPickVideoUrl( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? value) + { + value = VideoUrl; + return IsVideoUrl; + } + + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl + ? VideoUrl! + : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator DataItem4(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk value) => new DataItem4((global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk?(DataItem4 @this) => @this.Text; + + /// + /// + /// + public DataItem4(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? value) + { + Text = value; + } + + /// + /// + /// + public static DataItem4 FromText(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? value) => new DataItem4(value); + + /// + /// + /// + public static implicit operator DataItem4(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk value) => new DataItem4((global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk?(DataItem4 @this) => @this.ImageUrl; + + /// + /// + /// + public DataItem4(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? value) + { + ImageUrl = value; + } + + /// + /// + /// + public static DataItem4 FromImageUrl(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? value) => new DataItem4(value); + + /// + /// + /// + public static implicit operator DataItem4(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk value) => new DataItem4((global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk?(DataItem4 @this) => @this.AudioUrl; + + /// + /// + /// + public DataItem4(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? value) + { + AudioUrl = value; + } + + /// + /// + /// + public static DataItem4 FromAudioUrl(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? value) => new DataItem4(value); + + /// + /// + /// + public static implicit operator DataItem4(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk value) => new DataItem4((global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk?(DataItem4 @this) => @this.VideoUrl; + + /// + /// + /// + public DataItem4(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? value) + { + VideoUrl = value; + } + + /// + /// + /// + public static DataItem4 FromVideoUrl(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? value) => new DataItem4(value); + + /// + /// + /// + public DataItem4( + global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType? type, + global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? text, + global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? imageUrl, + global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? audioUrl, + global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? videoUrl + ) + { + Type = type; + + Text = text; + ImageUrl = imageUrl; + AudioUrl = audioUrl; + VideoUrl = videoUrl; + } + + /// + /// + /// + public object? Object => + VideoUrl as object ?? + AudioUrl as object ?? + ImageUrl as object ?? + Text as object + ; + + /// + /// + /// + public override string? ToString() => + Text?.ToString() ?? + ImageUrl?.ToString() ?? + AudioUrl?.ToString() ?? + VideoUrl?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsText && !IsImageUrl && !IsAudioUrl && !IsVideoUrl || !IsText && IsImageUrl && !IsAudioUrl && !IsVideoUrl || !IsText && !IsImageUrl && IsAudioUrl && !IsVideoUrl || !IsText && !IsImageUrl && !IsAudioUrl && IsVideoUrl; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? text = null, + global::System.Func? imageUrl = null, + global::System.Func? audioUrl = null, + global::System.Func? videoUrl = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsText && text != null) + { + return text(Text!); + } + else if (IsImageUrl && imageUrl != null) + { + return imageUrl(ImageUrl!); + } + else if (IsAudioUrl && audioUrl != null) + { + return audioUrl(AudioUrl!); + } + else if (IsVideoUrl && videoUrl != null) + { + return videoUrl(VideoUrl!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? text = null, + + global::System.Action? imageUrl = null, + + global::System.Action? audioUrl = null, + + global::System.Action? videoUrl = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsText) + { + text?.Invoke(Text!); + } + else if (IsImageUrl) + { + imageUrl?.Invoke(ImageUrl!); + } + else if (IsAudioUrl) + { + audioUrl?.Invoke(AudioUrl!); + } + else if (IsVideoUrl) + { + videoUrl?.Invoke(VideoUrl!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? text = null, + global::System.Action? imageUrl = null, + global::System.Action? audioUrl = null, + global::System.Action? videoUrl = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsText) + { + text?.Invoke(Text!); + } + else if (IsImageUrl) + { + imageUrl?.Invoke(ImageUrl!); + } + else if (IsAudioUrl) + { + audioUrl?.Invoke(AudioUrl!); + } + else if (IsVideoUrl) + { + videoUrl?.Invoke(VideoUrl!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Text, + typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), + ImageUrl, + typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), + AudioUrl, + typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), + VideoUrl, + typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(DataItem4 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AudioUrl, other.AudioUrl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(VideoUrl, other.VideoUrl) + ; + } + + /// + /// + /// + public static bool operator ==(DataItem4 obj1, DataItem4 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(DataItem4 obj1, DataItem4 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is DataItem4 o && Equals(o); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.Json.g.cs new file mode 100644 index 0000000..55a69fc --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public readonly partial struct ItemsItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.ItemsItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.ItemsItem), + jsonSerializerContext) as global::Mixedbread.ItemsItem?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.ItemsItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.ItemsItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ItemsItem?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.g.cs new file mode 100644 index 0000000..f6cd4b2 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.g.cs @@ -0,0 +1,303 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public readonly partial struct ItemsItem : global::System.IEquatable + { + /// + /// + /// + public global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? Type { get; } + + /// + /// Enhanced semantic search query with optional filters. + /// +#if NET6_0_OR_GREATER + public global::Mixedbread.QueryEnhanceQueryItem? Query { get; init; } +#else + public global::Mixedbread.QueryEnhanceQueryItem? Query { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Query))] +#endif + public bool IsQuery => Query != null; + + /// + /// + /// + public bool TryPickQuery( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.QueryEnhanceQueryItem? value) + { + value = Query; + return IsQuery; + } + + /// + /// + /// + public global::Mixedbread.QueryEnhanceQueryItem PickQuery() => IsQuery + ? Query! + : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); + + /// + /// Ranking request based on metadata. + /// +#if NET6_0_OR_GREATER + public global::Mixedbread.QueryEnhanceSortItem? Sort { get; init; } +#else + public global::Mixedbread.QueryEnhanceSortItem? Sort { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Sort))] +#endif + public bool IsSort => Sort != null; + + /// + /// + /// + public bool TryPickSort( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.QueryEnhanceSortItem? value) + { + value = Sort; + return IsSort; + } + + /// + /// + /// + public global::Mixedbread.QueryEnhanceSortItem PickSort() => IsSort + ? Sort! + : throw new global::System.InvalidOperationException($"Expected union variant 'Sort' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ItemsItem(global::Mixedbread.QueryEnhanceQueryItem value) => new ItemsItem((global::Mixedbread.QueryEnhanceQueryItem?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.QueryEnhanceQueryItem?(ItemsItem @this) => @this.Query; + + /// + /// + /// + public ItemsItem(global::Mixedbread.QueryEnhanceQueryItem? value) + { + Query = value; + } + + /// + /// + /// + public static ItemsItem FromQuery(global::Mixedbread.QueryEnhanceQueryItem? value) => new ItemsItem(value); + + /// + /// + /// + public static implicit operator ItemsItem(global::Mixedbread.QueryEnhanceSortItem value) => new ItemsItem((global::Mixedbread.QueryEnhanceSortItem?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.QueryEnhanceSortItem?(ItemsItem @this) => @this.Sort; + + /// + /// + /// + public ItemsItem(global::Mixedbread.QueryEnhanceSortItem? value) + { + Sort = value; + } + + /// + /// + /// + public static ItemsItem FromSort(global::Mixedbread.QueryEnhanceSortItem? value) => new ItemsItem(value); + + /// + /// + /// + public ItemsItem( + global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? type, + global::Mixedbread.QueryEnhanceQueryItem? query, + global::Mixedbread.QueryEnhanceSortItem? sort + ) + { + Type = type; + + Query = query; + Sort = sort; + } + + /// + /// + /// + public object? Object => + Sort as object ?? + Query as object + ; + + /// + /// + /// + public override string? ToString() => + Query?.ToString() ?? + Sort?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsQuery && !IsSort || !IsQuery && IsSort; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? query = null, + global::System.Func? sort = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsQuery && query != null) + { + return query(Query!); + } + else if (IsSort && sort != null) + { + return sort(Sort!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? query = null, + + global::System.Action? sort = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsQuery) + { + query?.Invoke(Query!); + } + else if (IsSort) + { + sort?.Invoke(Sort!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? query = null, + global::System.Action? sort = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsQuery) + { + query?.Invoke(Query!); + } + else if (IsSort) + { + sort?.Invoke(Sort!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Query, + typeof(global::Mixedbread.QueryEnhanceQueryItem), + Sort, + typeof(global::Mixedbread.QueryEnhanceSortItem), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ItemsItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Query, other.Query) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Sort, other.Sort) + ; + } + + /// + /// + /// + public static bool operator ==(ItemsItem obj1, ItemsItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ItemsItem obj1, ItemsItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ItemsItem o && Equals(o); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPagination.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPagination.g.cs index acdd74f..9f15419 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPagination.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPagination.g.cs @@ -44,8 +44,8 @@ public sealed partial class MetadataCursorPagination /// Metadata filter to apply to the query /// [global::System.Text.Json.Serialization.JsonPropertyName("metadata_filter")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] - public global::Mixedbread.AnyOf>, object>? MetadataFilter { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? MetadataFilter { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -85,7 +85,7 @@ public MetadataCursorPagination( string? before, bool? includeTotal, global::System.Collections.Generic.IList? statuses, - global::Mixedbread.AnyOf>, object>? metadataFilter) + global::Mixedbread.AnyOf>, object>? metadataFilter) { this.Limit = limit; this.After = after; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParams.g.cs index 3cac8bf..33662a3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParams.g.cs @@ -9,13 +9,7 @@ namespace Mixedbread public sealed partial class MetadataFacetsParams { /// - /// Search query text - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// IDs or names of stores to search + /// IDs or names of stores /// [global::System.Text.Json.Serialization.JsonPropertyName("store_identifiers")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,8 +26,8 @@ public sealed partial class MetadataFacetsParams /// Optional filter conditions /// [global::System.Text.Json.Serialization.JsonPropertyName("filters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] - public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } /// /// Optional list of file IDs to filter chunks by (inclusion filter) @@ -42,6 +36,12 @@ public sealed partial class MetadataFacetsParams [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>))] public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? FileIds { get; set; } + /// + /// Search query text + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + public string? Query { get; set; } + /// /// Search configuration options /// @@ -54,6 +54,27 @@ public sealed partial class MetadataFacetsParams [global::System.Text.Json.Serialization.JsonPropertyName("facets")] public global::System.Collections.Generic.IList? Facets { get; set; } + /// + /// Maximum number of distinct metadata fields (keys) to return.
+ /// Default Value: 64 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_fields")] + public int? MaxFields { get; set; } + + /// + /// Maximum number of distinct values returned per field, ranked by count.
+ /// Default Value: 32 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_values_per_field")] + public int? MaxValuesPerField { get; set; } + + /// + /// Maximum number of store files scanned to compute facets.
+ /// Default Value: 10000 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_files")] + public int? MaxFiles { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -64,10 +85,7 @@ public sealed partial class MetadataFacetsParams /// Initializes a new instance of the class. ///
/// - /// IDs or names of stores to search - /// - /// - /// Search query text + /// IDs or names of stores /// /// /// Number of results to return
@@ -79,31 +97,52 @@ public sealed partial class MetadataFacetsParams /// /// Optional list of file IDs to filter chunks by (inclusion filter) /// + /// + /// Search query text + /// /// /// Search configuration options /// /// /// Optional list of facets to return. Use dot for nested fields. /// + /// + /// Maximum number of distinct metadata fields (keys) to return.
+ /// Default Value: 64 + /// + /// + /// Maximum number of distinct values returned per field, ranked by count.
+ /// Default Value: 32 + /// + /// + /// Maximum number of store files scanned to compute facets.
+ /// Default Value: 10000 + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MetadataFacetsParams( global::System.Collections.Generic.IList> storeIdentifiers, - string? query, int? topK, - global::Mixedbread.AnyOf>, object>? filters, + global::Mixedbread.AnyOf>, object>? filters, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds, + string? query, global::Mixedbread.StoreChunkSearchOptions? searchOptions, - global::System.Collections.Generic.IList? facets) + global::System.Collections.Generic.IList? facets, + int? maxFields, + int? maxValuesPerField, + int? maxFiles) { - this.Query = query; this.StoreIdentifiers = storeIdentifiers ?? throw new global::System.ArgumentNullException(nameof(storeIdentifiers)); this.TopK = topK; this.Filters = filters; this.FileIds = fileIds; + this.Query = query; this.SearchOptions = searchOptions; this.Facets = facets; + this.MaxFields = maxFields; + this.MaxValuesPerField = maxValuesPerField; + this.MaxFiles = maxFiles; } /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk.g.cs index 32bb30f..6d6e0b8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk.g.cs @@ -81,6 +81,12 @@ public sealed partial class MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScor [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] public string? Transcription { get; set; } + /// + /// summary of the audio + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + public string? Summary { get; set; } + /// /// Audio URL /// @@ -141,6 +147,9 @@ public sealed partial class MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScor /// /// speech recognition (sr) text of the audio /// + /// + /// summary of the audio + /// /// /// Audio URL /// @@ -160,6 +169,7 @@ public MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk( object? metadata, string? type, string? transcription, + string? summary, global::Mixedbread.AudioUrl? audioUrl) { this.ChunkIndex = chunkIndex; @@ -173,6 +183,7 @@ public MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk( this.Metadata = metadata; this.Type = type; this.Transcription = transcription; + this.Summary = summary; this.AudioUrl = audioUrl; this.SamplingRate = samplingRate; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.Json.g.cs new file mode 100644 index 0000000..12288f9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary), + jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.g.cs new file mode 100644 index 0000000..b132585 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// summary of the audio + /// + public sealed partial class MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk.g.cs index 26770d1..f263232 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk.g.cs @@ -87,6 +87,12 @@ public sealed partial class MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInpu [global::System.Text.Json.Serialization.JsonPropertyName("transcription")] public string? Transcription { get; set; } + /// + /// summary of the audio + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + public string? Summary { get; set; } + /// /// Audio URL /// @@ -150,6 +156,9 @@ public sealed partial class MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInpu /// /// speech recognition (sr) text of the audio /// + /// + /// summary of the audio + /// /// /// Audio URL /// @@ -170,6 +179,7 @@ public MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk( object? metadata, string? type, string? transcription, + string? summary, global::Mixedbread.AudioUrl? audioUrl) { this.ChunkIndex = chunkIndex; @@ -184,6 +194,7 @@ public MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk( this.Metadata = metadata; this.Type = type; this.Transcription = transcription; + this.Summary = summary; this.AudioUrl = audioUrl; this.SamplingRate = samplingRate; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.Json.g.cs new file mode 100644 index 0000000..1119b59 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary), + jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.g.cs new file mode 100644 index 0000000..a650039 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// summary of the audio + /// + public sealed partial class MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.Json.g.cs new file mode 100644 index 0000000..925e661 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceMetadataFilter + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceMetadataFilter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceMetadataFilter), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceMetadataFilter; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceMetadataFilter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceMetadataFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceMetadataFilter; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.g.cs new file mode 100644 index 0000000..8b91612 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Metadata filter condition. + /// + public sealed partial class QueryEnhanceMetadataFilter + { + /// + /// Metadata field key + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Key { get; set; } + + /// + /// Comparison operator + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operator")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.ConditionOperatorJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.ConditionOperator Operator { get; set; } + + /// + /// Value to compare against. Use a list for `in`/`not_in`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.AnyOf>, object> Value { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Metadata field key + /// + /// + /// Comparison operator + /// + /// + /// Value to compare against. Use a list for `in`/`not_in`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QueryEnhanceMetadataFilter( + string key, + global::Mixedbread.ConditionOperator @operator, + global::Mixedbread.AnyOf>, object> value) + { + this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key)); + this.Operator = @operator; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public QueryEnhanceMetadataFilter() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.Json.g.cs new file mode 100644 index 0000000..79240a7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceParams), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceParams; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceParams; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.g.cs new file mode 100644 index 0000000..f6c8294 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Parameters for enhancing a search query. + /// + public sealed partial class QueryEnhanceParams + { + /// + /// IDs or names of stores + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_identifiers")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> StoreIdentifiers { get; set; } + + /// + /// Number of results to return
+ /// Default Value: 10 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("top_k")] + public int? TopK { get; set; } + + /// + /// Optional filter conditions + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + + /// + /// Optional list of file IDs to filter chunks by (inclusion filter) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>))] + public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? FileIds { get; set; } + + /// + /// Search query text + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.MultiModalQueryJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.MultiModalQuery Query { get; set; } + + /// + /// Search configuration options + /// + [global::System.Text.Json.Serialization.JsonPropertyName("search_options")] + public global::Mixedbread.StoreChunkSearchOptions? SearchOptions { get; set; } + + /// + /// Optional guidance for query enhancement. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// IDs or names of stores + /// + /// + /// Search query text + /// + /// + /// Number of results to return
+ /// Default Value: 10 + /// + /// + /// Optional filter conditions + /// + /// + /// Optional list of file IDs to filter chunks by (inclusion filter) + /// + /// + /// Search configuration options + /// + /// + /// Optional guidance for query enhancement. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QueryEnhanceParams( + global::System.Collections.Generic.IList> storeIdentifiers, + global::Mixedbread.MultiModalQuery query, + int? topK, + global::Mixedbread.AnyOf>, object>? filters, + global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds, + global::Mixedbread.StoreChunkSearchOptions? searchOptions, + string? instructions) + { + this.StoreIdentifiers = storeIdentifiers ?? throw new global::System.ArgumentNullException(nameof(storeIdentifiers)); + this.TopK = topK; + this.Filters = filters; + this.FileIds = fileIds; + this.Query = query; + this.SearchOptions = searchOptions; + this.Instructions = instructions; + } + + /// + /// Initializes a new instance of the class. + /// + public QueryEnhanceParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.Json.g.cs new file mode 100644 index 0000000..4849562 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceParamsInstructions + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceParamsInstructions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceParamsInstructions), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceParamsInstructions; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceParamsInstructions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceParamsInstructions), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceParamsInstructions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.g.cs new file mode 100644 index 0000000..aef9b57 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Optional guidance for query enhancement. + /// + public sealed partial class QueryEnhanceParamsInstructions + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.Json.g.cs new file mode 100644 index 0000000..77af9a8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceQueryItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceQueryItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceQueryItem), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceQueryItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceQueryItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceQueryItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceQueryItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.g.cs new file mode 100644 index 0000000..c24136d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Enhanced semantic search query with optional filters. + /// + public sealed partial class QueryEnhanceQueryItem + { + /// + /// Default Value: query + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// Search query text + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Query { get; set; } + + /// + /// Metadata filters to apply + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata_filters")] + public global::System.Collections.Generic.IList? MetadataFilters { get; set; } + + /// + /// How to combine filters
+ /// Default Value: all + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("filter_mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.QueryEnhanceQueryItemFilterModeJsonConverter))] + public global::Mixedbread.QueryEnhanceQueryItemFilterMode? FilterMode { get; set; } + + /// + /// Always null for semantic query items. Use a sort item to rank by metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rank_by")] + public object? RankBy { get; set; } + + /// + /// Always null for semantic query items. Use a sort item to set rank direction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("direction")] + public object? Direction { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Search query text + /// + /// + /// Default Value: query + /// + /// + /// Metadata filters to apply + /// + /// + /// How to combine filters
+ /// Default Value: all + /// + /// + /// Always null for semantic query items. Use a sort item to rank by metadata. + /// + /// + /// Always null for semantic query items. Use a sort item to set rank direction. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QueryEnhanceQueryItem( + string query, + string? type, + global::System.Collections.Generic.IList? metadataFilters, + global::Mixedbread.QueryEnhanceQueryItemFilterMode? filterMode, + object? rankBy, + object? direction) + { + this.Type = type; + this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query)); + this.MetadataFilters = metadataFilters; + this.FilterMode = filterMode; + this.RankBy = rankBy; + this.Direction = direction; + } + + /// + /// Initializes a new instance of the class. + /// + public QueryEnhanceQueryItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemFilterMode.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemFilterMode.g.cs new file mode 100644 index 0000000..de9e514 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemFilterMode.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// How to combine filters
+ /// Default Value: all + ///
+ public enum QueryEnhanceQueryItemFilterMode + { + /// + /// + /// + All, + /// + /// + /// + Any, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class QueryEnhanceQueryItemFilterModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this QueryEnhanceQueryItemFilterMode value) + { + return value switch + { + QueryEnhanceQueryItemFilterMode.All => "all", + QueryEnhanceQueryItemFilterMode.Any => "any", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static QueryEnhanceQueryItemFilterMode? ToEnum(string value) + { + return value switch + { + "all" => QueryEnhanceQueryItemFilterMode.All, + "any" => QueryEnhanceQueryItemFilterMode.Any, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.Json.g.cs new file mode 100644 index 0000000..473bdde --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceQueryItemMetadataFilters + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceQueryItemMetadataFilters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceQueryItemMetadataFilters), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceQueryItemMetadataFilters; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceQueryItemMetadataFilters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceQueryItemMetadataFilters), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceQueryItemMetadataFilters; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.g.cs new file mode 100644 index 0000000..cf745a6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Metadata filters to apply + /// + public sealed partial class QueryEnhanceQueryItemMetadataFilters + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.Json.g.cs new file mode 100644 index 0000000..d059cdb --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceResults + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceResults? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceResults), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceResults; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceResults? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceResults), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceResults; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.g.cs new file mode 100644 index 0000000..4df9d0b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Enhanced query response. + /// + public sealed partial class QueryEnhanceResults + { + /// + /// Enhanced query item + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Items { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Enhanced query item + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QueryEnhanceResults( + global::System.Collections.Generic.IList items) + { + this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); + } + + /// + /// Initializes a new instance of the class. + /// + public QueryEnhanceResults() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.Json.g.cs new file mode 100644 index 0000000..533dd68 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceResultsItemDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceResultsItemDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceResultsItemDiscriminator), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceResultsItemDiscriminator; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceResultsItemDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceResultsItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceResultsItemDiscriminator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.g.cs new file mode 100644 index 0000000..2cfcaf8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class QueryEnhanceResultsItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.QueryEnhanceResultsItemDiscriminatorTypeJsonConverter))] + public global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QueryEnhanceResultsItemDiscriminator( + global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public QueryEnhanceResultsItemDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminatorType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminatorType.g.cs new file mode 100644 index 0000000..9c144ed --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum QueryEnhanceResultsItemDiscriminatorType + { + /// + /// + /// + Query, + /// + /// + /// + Sort, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class QueryEnhanceResultsItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this QueryEnhanceResultsItemDiscriminatorType value) + { + return value switch + { + QueryEnhanceResultsItemDiscriminatorType.Query => "query", + QueryEnhanceResultsItemDiscriminatorType.Sort => "sort", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static QueryEnhanceResultsItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "query" => QueryEnhanceResultsItemDiscriminatorType.Query, + "sort" => QueryEnhanceResultsItemDiscriminatorType.Sort, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.Json.g.cs new file mode 100644 index 0000000..877ea16 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceSortItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceSortItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceSortItem), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceSortItem; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceSortItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceSortItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceSortItem; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.g.cs new file mode 100644 index 0000000..30e6e3a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Ranking request based on metadata. + /// + public sealed partial class QueryEnhanceSortItem + { + /// + /// Default Value: sort + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// Metadata filters to apply + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata_filters")] + public global::System.Collections.Generic.IList? MetadataFilters { get; set; } + + /// + /// How to combine filters
+ /// Default Value: all + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("filter_mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.QueryEnhanceSortItemFilterModeJsonConverter))] + public global::Mixedbread.QueryEnhanceSortItemFilterMode? FilterMode { get; set; } + + /// + /// Metadata field to rank results by + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rank_by")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RankBy { get; set; } + + /// + /// Ranking direction + /// + [global::System.Text.Json.Serialization.JsonPropertyName("direction")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.QueryEnhanceSortItemDirectionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.QueryEnhanceSortItemDirection Direction { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Metadata field to rank results by + /// + /// + /// Ranking direction + /// + /// + /// Default Value: sort + /// + /// + /// Metadata filters to apply + /// + /// + /// How to combine filters
+ /// Default Value: all + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public QueryEnhanceSortItem( + string rankBy, + global::Mixedbread.QueryEnhanceSortItemDirection direction, + string? type, + global::System.Collections.Generic.IList? metadataFilters, + global::Mixedbread.QueryEnhanceSortItemFilterMode? filterMode) + { + this.Type = type; + this.MetadataFilters = metadataFilters; + this.FilterMode = filterMode; + this.RankBy = rankBy ?? throw new global::System.ArgumentNullException(nameof(rankBy)); + this.Direction = direction; + } + + /// + /// Initializes a new instance of the class. + /// + public QueryEnhanceSortItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemDirection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemDirection.g.cs new file mode 100644 index 0000000..5df6fdf --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemDirection.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Ranking direction + /// + public enum QueryEnhanceSortItemDirection + { + /// + /// + /// + Asc, + /// + /// + /// + Desc, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class QueryEnhanceSortItemDirectionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this QueryEnhanceSortItemDirection value) + { + return value switch + { + QueryEnhanceSortItemDirection.Asc => "asc", + QueryEnhanceSortItemDirection.Desc => "desc", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static QueryEnhanceSortItemDirection? ToEnum(string value) + { + return value switch + { + "asc" => QueryEnhanceSortItemDirection.Asc, + "desc" => QueryEnhanceSortItemDirection.Desc, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemFilterMode.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemFilterMode.g.cs new file mode 100644 index 0000000..b165442 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemFilterMode.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// How to combine filters
+ /// Default Value: all + ///
+ public enum QueryEnhanceSortItemFilterMode + { + /// + /// + /// + All, + /// + /// + /// + Any, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class QueryEnhanceSortItemFilterModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this QueryEnhanceSortItemFilterMode value) + { + return value switch + { + QueryEnhanceSortItemFilterMode.All => "all", + QueryEnhanceSortItemFilterMode.Any => "any", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static QueryEnhanceSortItemFilterMode? ToEnum(string value) + { + return value switch + { + "all" => QueryEnhanceSortItemFilterMode.All, + "any" => QueryEnhanceSortItemFilterMode.Any, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.Json.g.cs new file mode 100644 index 0000000..b3299d4 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class QueryEnhanceSortItemMetadataFilters + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceSortItemMetadataFilters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.QueryEnhanceSortItemMetadataFilters), + jsonSerializerContext) as global::Mixedbread.QueryEnhanceSortItemMetadataFilters; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.QueryEnhanceSortItemMetadataFilters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.QueryEnhanceSortItemMetadataFilters), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceSortItemMetadataFilters; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.g.cs new file mode 100644 index 0000000..3251be6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Metadata filters to apply + /// + public sealed partial class QueryEnhanceSortItemMetadataFilters + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.SearchCursorPagination.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPagination.g.cs index 9098acb..7df7912 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPagination.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPagination.g.cs @@ -44,8 +44,8 @@ public sealed partial class SearchCursorPagination /// Metadata filter to apply to the query ///
[global::System.Text.Json.Serialization.JsonPropertyName("metadata_filter")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] - public global::Mixedbread.AnyOf>, object>? MetadataFilter { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? MetadataFilter { get; set; } /// /// Search query for fuzzy matching over name and external_id fields @@ -94,7 +94,7 @@ public SearchCursorPagination( string? before, bool? includeTotal, global::System.Collections.Generic.IList? statuses, - global::Mixedbread.AnyOf>, object>? metadataFilter, + global::Mixedbread.AnyOf>, object>? metadataFilter, string? q) { this.Limit = limit; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.Json.g.cs similarity index 88% rename from src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilter.Json.g.cs rename to src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.Json.g.cs index 2aff4e8..5b75486 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.Json.g.cs @@ -2,7 +2,7 @@ namespace Mixedbread { - public sealed partial class SearchFilter + public sealed partial class SearchFilterInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Mixedbread.SearchFilter? FromJson( + public static global::Mixedbread.SearchFilterInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Mixedbread.SearchFilter), - jsonSerializerContext) as global::Mixedbread.SearchFilter; + typeof(global::Mixedbread.SearchFilterInput), + jsonSerializerContext) as global::Mixedbread.SearchFilterInput; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Mixedbread.SearchFilter? FromJson( + public static global::Mixedbread.SearchFilterInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Mixedbread.SearchFilter), - jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilter; + typeof(global::Mixedbread.SearchFilterInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterInput; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilter.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.g.cs similarity index 73% rename from src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilter.g.cs rename to src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.g.cs index 5262132..0685f46 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilter.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.g.cs @@ -6,25 +6,25 @@ namespace Mixedbread /// /// Represents a filter with AND, OR, and NOT conditions. /// - public sealed partial class SearchFilter + public sealed partial class SearchFilterInput { /// /// List of conditions or filters to be ANDed together /// [global::System.Text.Json.Serialization.JsonPropertyName("all")] - public global::System.Collections.Generic.IList>? All { get; set; } + public global::System.Collections.Generic.IList>? All { get; set; } /// /// List of conditions or filters to be ORed together /// [global::System.Text.Json.Serialization.JsonPropertyName("any")] - public global::System.Collections.Generic.IList>? Any { get; set; } + public global::System.Collections.Generic.IList>? Any { get; set; } /// /// List of conditions or filters to be NOTed /// [global::System.Text.Json.Serialization.JsonPropertyName("none")] - public global::System.Collections.Generic.IList>? None { get; set; } + public global::System.Collections.Generic.IList>? None { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -33,7 +33,7 @@ public sealed partial class SearchFilter public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// List of conditions or filters to be ANDed together @@ -47,10 +47,10 @@ public sealed partial class SearchFilter #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public SearchFilter( - global::System.Collections.Generic.IList>? all, - global::System.Collections.Generic.IList>? any, - global::System.Collections.Generic.IList>? none) + public SearchFilterInput( + global::System.Collections.Generic.IList>? all, + global::System.Collections.Generic.IList>? any, + global::System.Collections.Generic.IList>? none) { this.All = all; this.Any = any; @@ -58,9 +58,9 @@ public SearchFilter( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public SearchFilter() + public SearchFilterInput() { } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAll.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.Json.g.cs similarity index 87% rename from src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAll.Json.g.cs rename to src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.Json.g.cs index 43d7874..3b53414 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAll.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.Json.g.cs @@ -2,7 +2,7 @@ namespace Mixedbread { - public sealed partial class SearchFilterAll + public sealed partial class SearchFilterInputAll { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Mixedbread.SearchFilterAll? FromJson( + public static global::Mixedbread.SearchFilterInputAll? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Mixedbread.SearchFilterAll), - jsonSerializerContext) as global::Mixedbread.SearchFilterAll; + typeof(global::Mixedbread.SearchFilterInputAll), + jsonSerializerContext) as global::Mixedbread.SearchFilterInputAll; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Mixedbread.SearchFilterAll? FromJson( + public static global::Mixedbread.SearchFilterInputAll? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Mixedbread.SearchFilterAll), - jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterAll; + typeof(global::Mixedbread.SearchFilterInputAll), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterInputAll; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAll.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.g.cs similarity index 90% rename from src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAll.g.cs rename to src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.g.cs index 81707e4..b8359e3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAll.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.g.cs @@ -6,7 +6,7 @@ namespace Mixedbread /// /// List of conditions or filters to be ANDed together /// - public sealed partial class SearchFilterAll + public sealed partial class SearchFilterInputAll { /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAny.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.Json.g.cs similarity index 87% rename from src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAny.Json.g.cs rename to src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.Json.g.cs index 3622236..5c1a65d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAny.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.Json.g.cs @@ -2,7 +2,7 @@ namespace Mixedbread { - public sealed partial class SearchFilterAny + public sealed partial class SearchFilterInputAny { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Mixedbread.SearchFilterAny? FromJson( + public static global::Mixedbread.SearchFilterInputAny? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Mixedbread.SearchFilterAny), - jsonSerializerContext) as global::Mixedbread.SearchFilterAny; + typeof(global::Mixedbread.SearchFilterInputAny), + jsonSerializerContext) as global::Mixedbread.SearchFilterInputAny; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Mixedbread.SearchFilterAny? FromJson( + public static global::Mixedbread.SearchFilterInputAny? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Mixedbread.SearchFilterAny), - jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterAny; + typeof(global::Mixedbread.SearchFilterInputAny), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterInputAny; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAny.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.g.cs similarity index 90% rename from src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAny.g.cs rename to src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.g.cs index 8685334..f5fe72c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterAny.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.g.cs @@ -6,7 +6,7 @@ namespace Mixedbread /// /// List of conditions or filters to be ORed together /// - public sealed partial class SearchFilterAny + public sealed partial class SearchFilterInputAny { /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.Json.g.cs new file mode 100644 index 0000000..6650ab2 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SearchFilterInputNone + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterInputNone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SearchFilterInputNone), + jsonSerializerContext) as global::Mixedbread.SearchFilterInputNone; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SearchFilterInputNone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SearchFilterInputNone), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterInputNone; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterNone.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.g.cs similarity index 90% rename from src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterNone.g.cs rename to src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.g.cs index 908cdc4..8ec8199 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterNone.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.g.cs @@ -6,7 +6,7 @@ namespace Mixedbread /// /// List of conditions or filters to be NOTed /// - public sealed partial class SearchFilterNone + public sealed partial class SearchFilterInputNone { /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterNone.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.Json.g.cs similarity index 88% rename from src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterNone.Json.g.cs rename to src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.Json.g.cs index 8ee9227..78c34bc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterNone.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.Json.g.cs @@ -2,7 +2,7 @@ namespace Mixedbread { - public sealed partial class SearchFilterNone + public sealed partial class SearchFilterOutput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Mixedbread.SearchFilterNone? FromJson( + public static global::Mixedbread.SearchFilterOutput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Mixedbread.SearchFilterNone), - jsonSerializerContext) as global::Mixedbread.SearchFilterNone; + typeof(global::Mixedbread.SearchFilterOutput), + jsonSerializerContext) as global::Mixedbread.SearchFilterOutput; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Mixedbread.SearchFilterNone? FromJson( + public static global::Mixedbread.SearchFilterOutput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Mixedbread.SearchFilterNone), - jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterNone; + typeof(global::Mixedbread.SearchFilterOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterOutput; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.g.cs new file mode 100644 index 0000000..560961a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Represents a filter with AND, OR, and NOT conditions. + /// + public sealed partial class SearchFilterOutput + { + /// + /// List of conditions or filters to be ANDed together + /// + [global::System.Text.Json.Serialization.JsonPropertyName("all")] + public global::System.Collections.Generic.IList>? All { get; set; } + + /// + /// List of conditions or filters to be ORed together + /// + [global::System.Text.Json.Serialization.JsonPropertyName("any")] + public global::System.Collections.Generic.IList>? Any { get; set; } + + /// + /// List of conditions or filters to be NOTed + /// + [global::System.Text.Json.Serialization.JsonPropertyName("none")] + public global::System.Collections.Generic.IList>? None { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// List of conditions or filters to be ANDed together + /// + /// + /// List of conditions or filters to be ORed together + /// + /// + /// List of conditions or filters to be NOTed + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SearchFilterOutput( + global::System.Collections.Generic.IList>? all, + global::System.Collections.Generic.IList>? any, + global::System.Collections.Generic.IList>? none) + { + this.All = all; + this.Any = any; + this.None = none; + } + + /// + /// Initializes a new instance of the class. + /// + public SearchFilterOutput() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.Json.g.cs new file mode 100644 index 0000000..14606e5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SearchFilterOutputAll + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterOutputAll? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SearchFilterOutputAll), + jsonSerializerContext) as global::Mixedbread.SearchFilterOutputAll; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SearchFilterOutputAll? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SearchFilterOutputAll), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterOutputAll; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.g.cs new file mode 100644 index 0000000..0b98693 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// List of conditions or filters to be ANDed together + /// + public sealed partial class SearchFilterOutputAll + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.Json.g.cs new file mode 100644 index 0000000..d0c3962 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SearchFilterOutputAny + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterOutputAny? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SearchFilterOutputAny), + jsonSerializerContext) as global::Mixedbread.SearchFilterOutputAny; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SearchFilterOutputAny? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SearchFilterOutputAny), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterOutputAny; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.g.cs new file mode 100644 index 0000000..c960dcb --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// List of conditions or filters to be ORed together + /// + public sealed partial class SearchFilterOutputAny + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.Json.g.cs new file mode 100644 index 0000000..792d1cf --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SearchFilterOutputNone + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterOutputNone? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SearchFilterOutputNone), + jsonSerializerContext) as global::Mixedbread.SearchFilterOutputNone; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SearchFilterOutputNone? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SearchFilterOutputNone), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterOutputNone; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.g.cs new file mode 100644 index 0000000..323d388 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// List of conditions or filters to be NOTed + /// + public sealed partial class SearchFilterOutputNone + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.g.cs index 8f95635..30c561f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.g.cs @@ -59,6 +59,18 @@ public sealed partial class StoreAgenticSearchEvent [global::System.Text.Json.Serialization.JsonRequired] public required string Query { get; set; } + /// + /// Custom instructions provided with the agentic search, if any + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// Agent-submitted explanation of how chunks were ranked + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ranking_strategy")] + public string? RankingStrategy { get; set; } + /// /// Number of search rounds the agent executed
/// Default Value: 0 @@ -66,6 +78,13 @@ public sealed partial class StoreAgenticSearchEvent [global::System.Text.Json.Serialization.JsonPropertyName("rounds_executed")] public int? RoundsExecuted { get; set; } + /// + /// Metadata filters submitted with the search request + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + /// /// Token usage and cost for LLM calls during the agentic search /// @@ -115,10 +134,19 @@ public sealed partial class StoreAgenticSearchEvent /// Total wall-clock time of the agent loop
/// Default Value: PT0S /// + /// + /// Custom instructions provided with the agentic search, if any + /// + /// + /// Agent-submitted explanation of how chunks were ranked + /// /// /// Number of search rounds the agent executed
/// Default Value: 0 /// + /// + /// Metadata filters submitted with the search request + /// /// /// Token usage and cost for LLM calls during the agentic search /// @@ -139,7 +167,10 @@ public StoreAgenticSearchEvent( string query, string? type, string? searchTime, + string? instructions, + string? rankingStrategy, int? roundsExecuted, + global::Mixedbread.AnyOf>, object>? filters, global::Mixedbread.AgenticSearchTokenUsage? tokenUsage, global::System.Collections.Generic.IList? toolCalls, global::System.Collections.Generic.IList? results) @@ -151,7 +182,10 @@ public StoreAgenticSearchEvent( this.StartedAt = startedAt; this.SearchTime = searchTime; this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query)); + this.Instructions = instructions; + this.RankingStrategy = rankingStrategy; this.RoundsExecuted = roundsExecuted; + this.Filters = filters; this.TokenUsage = tokenUsage; this.ToolCalls = toolCalls; this.Results = results; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.Json.g.cs new file mode 100644 index 0000000..7d174b6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreAgenticSearchEventInstructions + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreAgenticSearchEventInstructions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreAgenticSearchEventInstructions), + jsonSerializerContext) as global::Mixedbread.StoreAgenticSearchEventInstructions; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreAgenticSearchEventInstructions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreAgenticSearchEventInstructions), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreAgenticSearchEventInstructions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.g.cs new file mode 100644 index 0000000..ad57273 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Custom instructions provided with the agentic search, if any + /// + public sealed partial class StoreAgenticSearchEventInstructions + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.Json.g.cs new file mode 100644 index 0000000..a31b31d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreAgenticSearchEventRankingStrategy + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreAgenticSearchEventRankingStrategy? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreAgenticSearchEventRankingStrategy), + jsonSerializerContext) as global::Mixedbread.StoreAgenticSearchEventRankingStrategy; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreAgenticSearchEventRankingStrategy? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreAgenticSearchEventRankingStrategy), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreAgenticSearchEventRankingStrategy; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.g.cs new file mode 100644 index 0000000..ca65510 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Agent-submitted explanation of how chunks were ranked + /// + public sealed partial class StoreAgenticSearchEventRankingStrategy + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.Json.g.cs new file mode 100644 index 0000000..fd8031b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreChunkGrepParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreChunkGrepParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreChunkGrepParams), + jsonSerializerContext) as global::Mixedbread.StoreChunkGrepParams; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreChunkGrepParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreChunkGrepParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreChunkGrepParams; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.g.cs new file mode 100644 index 0000000..9d5e3dc --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.g.cs @@ -0,0 +1,135 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Parameters for matching store chunks against a regular expression.
+ /// Unlike semantic search, grep performs exact text matching — no embeddings, no
+ /// reranking. It finds chunks whose literal text contains the pattern. + ///
+ public sealed partial class StoreChunkGrepParams + { + /// + /// IDs or names of stores + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_identifiers")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> StoreIdentifiers { get; set; } + + /// + /// Number of results to return
+ /// Default Value: 10 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("top_k")] + public int? TopK { get; set; } + + /// + /// Optional filter conditions + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + + /// + /// Optional list of file IDs to filter chunks by (inclusion filter) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_ids")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>))] + public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? FileIds { get; set; } + + /// + /// Regular expression (RE2 syntax) matched against chunk text + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pattern")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Pattern { get; set; } + + /// + /// Chunk content groups to match against. `text` matches the original text of text chunks; `generated` matches ingestion-derived fields (transcription, OCR text, summaries). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("targets")] + public global::System.Collections.Generic.IList? Targets { get; set; } + + /// + /// Whether the regular expression is case-sensitive
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("case_sensitive")] + public bool? CaseSensitive { get; set; } + + /// + /// Whether to return file metadata
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("return_metadata")] + public bool? ReturnMetadata { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// IDs or names of stores + /// + /// + /// Regular expression (RE2 syntax) matched against chunk text + /// + /// + /// Number of results to return
+ /// Default Value: 10 + /// + /// + /// Optional filter conditions + /// + /// + /// Optional list of file IDs to filter chunks by (inclusion filter) + /// + /// + /// Chunk content groups to match against. `text` matches the original text of text chunks; `generated` matches ingestion-derived fields (transcription, OCR text, summaries). + /// + /// + /// Whether the regular expression is case-sensitive
+ /// Default Value: false + /// + /// + /// Whether to return file metadata
+ /// Default Value: true + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public StoreChunkGrepParams( + global::System.Collections.Generic.IList> storeIdentifiers, + string pattern, + int? topK, + global::Mixedbread.AnyOf>, object>? filters, + global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds, + global::System.Collections.Generic.IList? targets, + bool? caseSensitive, + bool? returnMetadata) + { + this.StoreIdentifiers = storeIdentifiers ?? throw new global::System.ArgumentNullException(nameof(storeIdentifiers)); + this.TopK = topK; + this.Filters = filters; + this.FileIds = fileIds; + this.Pattern = pattern ?? throw new global::System.ArgumentNullException(nameof(pattern)); + this.Targets = targets; + this.CaseSensitive = caseSensitive; + this.ReturnMetadata = returnMetadata; + } + + /// + /// Initializes a new instance of the class. + /// + public StoreChunkGrepParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepTarget.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepTarget.g.cs new file mode 100644 index 0000000..7d3536e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepTarget.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Logical chunk content groups the grep tool can match against.
+ /// These map to one or more underlying chunk fields:
+ /// - ``text`` → text chunks' ``text`` field (original text content).
+ /// - ``generated`` → fields produced during ingestion (``transcription`` for audio/video,
+ /// ``ocr_text`` for images, and ``summary`` across modalities). + ///
+ public enum StoreChunkGrepTarget + { + /// + /// + /// + Generated, + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class StoreChunkGrepTargetExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this StoreChunkGrepTarget value) + { + return value switch + { + StoreChunkGrepTarget.Generated => "generated", + StoreChunkGrepTarget.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static StoreChunkGrepTarget? ToEnum(string value) + { + return value switch + { + "generated" => StoreChunkGrepTarget.Generated, + "text" => StoreChunkGrepTarget.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchParams.g.cs index 6e752ba..c9211de 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchParams.g.cs @@ -9,15 +9,7 @@ namespace Mixedbread public sealed partial class StoreChunkSearchParams { /// - /// Search query text - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.MultiModalQueryJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Mixedbread.MultiModalQuery Query { get; set; } - - /// - /// IDs or names of stores to search + /// IDs or names of stores /// [global::System.Text.Json.Serialization.JsonPropertyName("store_identifiers")] [global::System.Text.Json.Serialization.JsonRequired] @@ -34,8 +26,8 @@ public sealed partial class StoreChunkSearchParams /// Optional filter conditions ///
[global::System.Text.Json.Serialization.JsonPropertyName("filters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] - public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } /// /// Optional list of file IDs to filter chunks by (inclusion filter) @@ -44,6 +36,14 @@ public sealed partial class StoreChunkSearchParams [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>))] public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? FileIds { get; set; } + /// + /// Search query text + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.MultiModalQueryJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.MultiModalQuery Query { get; set; } + /// /// Search configuration options /// @@ -59,12 +59,12 @@ public sealed partial class StoreChunkSearchParams /// /// Initializes a new instance of the class. /// + /// + /// IDs or names of stores + /// /// /// Search query text /// - /// - /// IDs or names of stores to search - /// /// /// Number of results to return
/// Default Value: 10 @@ -82,18 +82,18 @@ public sealed partial class StoreChunkSearchParams [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StoreChunkSearchParams( - global::Mixedbread.MultiModalQuery query, global::System.Collections.Generic.IList> storeIdentifiers, + global::Mixedbread.MultiModalQuery query, int? topK, - global::Mixedbread.AnyOf>, object>? filters, + global::Mixedbread.AnyOf>, object>? filters, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds, global::Mixedbread.StoreChunkSearchOptions? searchOptions) { - this.Query = query; this.StoreIdentifiers = storeIdentifiers ?? throw new global::System.ArgumentNullException(nameof(storeIdentifiers)); this.TopK = topK; this.Filters = filters; this.FileIds = fileIds; + this.Query = query; this.SearchOptions = searchOptions; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.g.cs index e2855b6..b861652 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.g.cs @@ -27,6 +27,12 @@ public sealed partial class StoreEventHistogramParams [global::System.Text.Json.Serialization.JsonPropertyName("bucket_seconds")] public int? BucketSeconds { get; set; } + /// + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_types")] + public global::System.Collections.Generic.IList? EventTypes { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,17 +52,22 @@ public sealed partial class StoreEventHistogramParams /// Number of seconds in each bucket
/// Default Value: 7200 /// + /// + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StoreEventHistogramParams( global::System.DateTime? startTime, global::System.DateTime? endTime, - int? bucketSeconds) + int? bucketSeconds, + global::System.Collections.Generic.IList? eventTypes) { this.StartTime = startTime; this.EndTime = endTime; this.BucketSeconds = bucketSeconds; + this.EventTypes = eventTypes; } /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.Json.g.cs new file mode 100644 index 0000000..45495fc --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreEventHistogramParamsEventTypes + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreEventHistogramParamsEventTypes? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreEventHistogramParamsEventTypes), + jsonSerializerContext) as global::Mixedbread.StoreEventHistogramParamsEventTypes; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreEventHistogramParamsEventTypes? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreEventHistogramParamsEventTypes), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreEventHistogramParamsEventTypes; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.g.cs new file mode 100644 index 0000000..bb0aab9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// + public sealed partial class StoreEventHistogramParamsEventTypes + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypesVariant1Item.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypesVariant1Item.g.cs new file mode 100644 index 0000000..98d175e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypesVariant1Item.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum StoreEventHistogramParamsEventTypesVariant1Item + { + /// + /// + /// + AgenticSearch, + /// + /// + /// + Ingestion, + /// + /// + /// + Search, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class StoreEventHistogramParamsEventTypesVariant1ItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this StoreEventHistogramParamsEventTypesVariant1Item value) + { + return value switch + { + StoreEventHistogramParamsEventTypesVariant1Item.AgenticSearch => "agentic_search", + StoreEventHistogramParamsEventTypesVariant1Item.Ingestion => "ingestion", + StoreEventHistogramParamsEventTypesVariant1Item.Search => "search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static StoreEventHistogramParamsEventTypesVariant1Item? ToEnum(string value) + { + return value switch + { + "agentic_search" => StoreEventHistogramParamsEventTypesVariant1Item.AgenticSearch, + "ingestion" => StoreEventHistogramParamsEventTypesVariant1Item.Ingestion, + "search" => StoreEventHistogramParamsEventTypesVariant1Item.Search, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.Json.g.cs new file mode 100644 index 0000000..8950690 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreGrepResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreGrepResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreGrepResponse), + jsonSerializerContext) as global::Mixedbread.StoreGrepResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreGrepResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreGrepResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreGrepResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.g.cs new file mode 100644 index 0000000..941c133 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.g.cs @@ -0,0 +1,60 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class StoreGrepResponse + { + /// + /// The object type of the response
+ /// Default Value: list + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("object")] + public string? Object { get; set; } + + /// + /// The list of chunks matching the pattern + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The list of chunks matching the pattern + /// + /// + /// The object type of the response
+ /// Default Value: list + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public StoreGrepResponse( + global::System.Collections.Generic.IList data, + string? @object) + { + this.Object = @object; + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public StoreGrepResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.Json.g.cs new file mode 100644 index 0000000..10866d9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreGrepResponseDataItemDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreGrepResponseDataItemDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreGrepResponseDataItemDiscriminator), + jsonSerializerContext) as global::Mixedbread.StoreGrepResponseDataItemDiscriminator; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreGrepResponseDataItemDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreGrepResponseDataItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreGrepResponseDataItemDiscriminator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.g.cs new file mode 100644 index 0000000..ece70a7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class StoreGrepResponseDataItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.StoreGrepResponseDataItemDiscriminatorTypeJsonConverter))] + public global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public StoreGrepResponseDataItemDiscriminator( + global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public StoreGrepResponseDataItemDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminatorType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminatorType.g.cs new file mode 100644 index 0000000..d19d0c1 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminatorType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum StoreGrepResponseDataItemDiscriminatorType + { + /// + /// + /// + AudioUrl, + /// + /// + /// + ImageUrl, + /// + /// + /// + Text, + /// + /// + /// + VideoUrl, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class StoreGrepResponseDataItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this StoreGrepResponseDataItemDiscriminatorType value) + { + return value switch + { + StoreGrepResponseDataItemDiscriminatorType.AudioUrl => "audio_url", + StoreGrepResponseDataItemDiscriminatorType.ImageUrl => "image_url", + StoreGrepResponseDataItemDiscriminatorType.Text => "text", + StoreGrepResponseDataItemDiscriminatorType.VideoUrl => "video_url", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static StoreGrepResponseDataItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "audio_url" => StoreGrepResponseDataItemDiscriminatorType.AudioUrl, + "image_url" => StoreGrepResponseDataItemDiscriminatorType.ImageUrl, + "text" => StoreGrepResponseDataItemDiscriminatorType.Text, + "video_url" => StoreGrepResponseDataItemDiscriminatorType.VideoUrl, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParams.g.cs index e415ebe..9e4b8ca 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParams.g.cs @@ -9,13 +9,7 @@ namespace Mixedbread public sealed partial class StoreQAParams { /// - /// Question to answer. If not provided, the question will be extracted from the passed messages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// IDs or names of stores to search + /// IDs or names of stores /// [global::System.Text.Json.Serialization.JsonPropertyName("store_identifiers")] [global::System.Text.Json.Serialization.JsonRequired] @@ -32,8 +26,8 @@ public sealed partial class StoreQAParams /// Optional filter conditions ///
[global::System.Text.Json.Serialization.JsonPropertyName("filters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] - public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } /// /// Optional list of file IDs to filter chunks by (inclusion filter) @@ -42,6 +36,12 @@ public sealed partial class StoreQAParams [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>>, global::System.Collections.Generic.IList, object>))] public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? FileIds { get; set; } + /// + /// Question to answer. If not provided, the question will be extracted from the passed messages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + public string? Query { get; set; } + /// /// Search configuration options /// @@ -77,10 +77,7 @@ public sealed partial class StoreQAParams /// Initializes a new instance of the class. /// /// - /// IDs or names of stores to search - /// - /// - /// Question to answer. If not provided, the question will be extracted from the passed messages. + /// IDs or names of stores /// /// /// Number of results to return
@@ -92,6 +89,9 @@ public sealed partial class StoreQAParams /// /// Optional list of file IDs to filter chunks by (inclusion filter) /// + /// + /// Question to answer. If not provided, the question will be extracted from the passed messages. + /// /// /// Search configuration options /// @@ -110,20 +110,20 @@ public sealed partial class StoreQAParams #endif public StoreQAParams( global::System.Collections.Generic.IList> storeIdentifiers, - string? query, int? topK, - global::Mixedbread.AnyOf>, object>? filters, + global::Mixedbread.AnyOf>, object>? filters, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds, + string? query, global::Mixedbread.StoreChunkSearchOptions? searchOptions, bool? stream, string? instructions, global::Mixedbread.QuestionAnsweringOptions? qaOptions) { - this.Query = query; this.StoreIdentifiers = storeIdentifiers ?? throw new global::System.ArgumentNullException(nameof(storeIdentifiers)); this.TopK = topK; this.Filters = filters; this.FileIds = fileIds; + this.Query = query; this.SearchOptions = searchOptions; this.Stream = stream; this.Instructions = instructions; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.g.cs index 004ebd9..44e1614 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.g.cs @@ -55,6 +55,31 @@ public sealed partial class StoreSearchEvent [global::System.Text.Json.Serialization.JsonPropertyName("rewritten_query")] public string? RewrittenQuery { get; set; } + /// + /// Filters used after query rewriting + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rewritten_filters")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? RewrittenFilters { get; set; } + + /// + /// Metadata field used for ranking + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rewrite_rank_by")] + public string? RewriteRankBy { get; set; } + + /// + /// Ranking direction + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rewrite_rank_direction")] + public global::Mixedbread.StoreSearchEventRewriteRankDirection2? RewriteRankDirection { get; set; } + + /// + /// Ranking mode + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rewrite_rank_mode")] + public global::Mixedbread.StoreSearchEventRewriteRankMode2? RewriteRankMode { get; set; } + /// /// Whether to rerank the results
/// Default Value: false @@ -62,6 +87,13 @@ public sealed partial class StoreSearchEvent [global::System.Text.Json.Serialization.JsonPropertyName("rerank")] public bool? Rerank { get; set; } + /// + /// Metadata filters submitted with the search request + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + /// /// Chunks returned by the search /// @@ -99,10 +131,25 @@ public sealed partial class StoreSearchEvent /// /// Rewritten query if query rewriting was enabled /// + /// + /// Filters used after query rewriting + /// + /// + /// Metadata field used for ranking + /// + /// + /// Ranking direction + /// + /// + /// Ranking mode + /// /// /// Whether to rerank the results
/// Default Value: false /// + /// + /// Metadata filters submitted with the search request + /// /// /// Chunks returned by the search /// @@ -117,7 +164,12 @@ public StoreSearchEvent( string? type, string? searchTime, string? rewrittenQuery, + global::Mixedbread.AnyOf>, object>? rewrittenFilters, + string? rewriteRankBy, + global::Mixedbread.StoreSearchEventRewriteRankDirection2? rewriteRankDirection, + global::Mixedbread.StoreSearchEventRewriteRankMode2? rewriteRankMode, bool? rerank, + global::Mixedbread.AnyOf>, object>? filters, global::System.Collections.Generic.IList? results) { this.Id = id; @@ -127,7 +179,12 @@ public StoreSearchEvent( this.SearchTime = searchTime; this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query)); this.RewrittenQuery = rewrittenQuery; + this.RewrittenFilters = rewrittenFilters; + this.RewriteRankBy = rewriteRankBy; + this.RewriteRankDirection = rewriteRankDirection; + this.RewriteRankMode = rewriteRankMode; this.Rerank = rerank; + this.Filters = filters; this.Results = results; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.g.cs index a62d865..b12ded8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.g.cs @@ -8,6 +8,13 @@ namespace Mixedbread ///
public sealed partial class StoreSearchEventResult { + /// + /// ID of the store the chunk belongs to + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string StoreId { get; set; } + /// /// ID of the file the chunk belongs to /// @@ -56,6 +63,9 @@ public sealed partial class StoreSearchEventResult /// /// Initializes a new instance of the class. /// + /// + /// ID of the store the chunk belongs to + /// /// /// ID of the file the chunk belongs to /// @@ -78,6 +88,7 @@ public sealed partial class StoreSearchEventResult [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StoreSearchEventResult( + string storeId, string fileId, int chunkIndex, double score, @@ -85,6 +96,7 @@ public StoreSearchEventResult( int? firstStagePosition, global::Mixedbread.StoreSearchEventResultFirstStageSource2? firstStageSource) { + this.StoreId = storeId ?? throw new global::System.ArgumentNullException(nameof(storeId)); this.FileId = fileId ?? throw new global::System.ArgumentNullException(nameof(fileId)); this.Filename = filename; this.ChunkIndex = chunkIndex; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.Json.g.cs new file mode 100644 index 0000000..b508583 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreSearchEventRewriteRankBy + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventRewriteRankBy? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreSearchEventRewriteRankBy), + jsonSerializerContext) as global::Mixedbread.StoreSearchEventRewriteRankBy; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreSearchEventRewriteRankBy? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreSearchEventRewriteRankBy), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventRewriteRankBy; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.g.cs new file mode 100644 index 0000000..ce75fa1 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Metadata field used for ranking + /// + public sealed partial class StoreSearchEventRewriteRankBy + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.Json.g.cs new file mode 100644 index 0000000..f97fdd6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreSearchEventRewriteRankDirection + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventRewriteRankDirection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreSearchEventRewriteRankDirection), + jsonSerializerContext) as global::Mixedbread.StoreSearchEventRewriteRankDirection; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreSearchEventRewriteRankDirection? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreSearchEventRewriteRankDirection), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventRewriteRankDirection; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.g.cs new file mode 100644 index 0000000..2525686 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Ranking direction + /// + public sealed partial class StoreSearchEventRewriteRankDirection + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection2.g.cs new file mode 100644 index 0000000..e692718 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection2.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum StoreSearchEventRewriteRankDirection2 + { + /// + /// + /// + Asc, + /// + /// + /// + Desc, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class StoreSearchEventRewriteRankDirection2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this StoreSearchEventRewriteRankDirection2 value) + { + return value switch + { + StoreSearchEventRewriteRankDirection2.Asc => "asc", + StoreSearchEventRewriteRankDirection2.Desc => "desc", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static StoreSearchEventRewriteRankDirection2? ToEnum(string value) + { + return value switch + { + "asc" => StoreSearchEventRewriteRankDirection2.Asc, + "desc" => StoreSearchEventRewriteRankDirection2.Desc, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.Json.g.cs new file mode 100644 index 0000000..f2eaaf3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreSearchEventRewriteRankMode + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventRewriteRankMode? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreSearchEventRewriteRankMode), + jsonSerializerContext) as global::Mixedbread.StoreSearchEventRewriteRankMode; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreSearchEventRewriteRankMode? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreSearchEventRewriteRankMode), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventRewriteRankMode; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.g.cs new file mode 100644 index 0000000..cc95651 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Ranking mode + /// + public sealed partial class StoreSearchEventRewriteRankMode + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [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/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode2.g.cs new file mode 100644 index 0000000..d29a87a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode2.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum StoreSearchEventRewriteRankMode2 + { + /// + /// + /// + Metadata, + /// + /// + /// + PostSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class StoreSearchEventRewriteRankMode2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this StoreSearchEventRewriteRankMode2 value) + { + return value switch + { + StoreSearchEventRewriteRankMode2.Metadata => "metadata", + StoreSearchEventRewriteRankMode2.PostSearch => "post_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static StoreSearchEventRewriteRankMode2? ToEnum(string value) + { + return value switch + { + "metadata" => StoreSearchEventRewriteRankMode2.Metadata, + "post_search" => StoreSearchEventRewriteRankMode2.PostSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponse.g.cs index 9b81a9f..8ffea17 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponse.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponse.g.cs @@ -20,7 +20,7 @@ public sealed partial class StoreSearchResponse ///
[global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Data { get; set; } + public required global::System.Collections.Generic.IList Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +42,7 @@ public sealed partial class StoreSearchResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StoreSearchResponse( - global::System.Collections.Generic.IList data, + global::System.Collections.Generic.IList data, string? @object) { this.Object = @object; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchParams.g.cs index 8b45517..a5191a5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchParams.g.cs @@ -33,8 +33,8 @@ public sealed partial class VectorStoreChunkSearchParams /// Optional filter conditions /// [global::System.Text.Json.Serialization.JsonPropertyName("filters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] - public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } /// /// Optional list of file IDs to filter chunks by (inclusion filter) @@ -84,7 +84,7 @@ public VectorStoreChunkSearchParams( string query, global::System.Collections.Generic.IList> vectorStoreIdentifiers, int? topK, - global::Mixedbread.AnyOf>, object>? filters, + global::Mixedbread.AnyOf>, object>? filters, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds, global::Mixedbread.VectorStoreChunkSearchOptions? searchOptions) { diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParams.g.cs index c2cfc2b..a3c516e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParams.g.cs @@ -9,7 +9,7 @@ namespace Mixedbread public sealed partial class VectorStoreCreateParams { /// - /// Name for the new vector store + /// Name for the new vector store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-). /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } @@ -55,7 +55,7 @@ public sealed partial class VectorStoreCreateParams /// Initializes a new instance of the class. /// /// - /// Name for the new vector store + /// Name for the new vector store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-). /// /// /// Description of the vector store diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsName.g.cs index 96ae2a9..2e3db30 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsName.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsName.g.cs @@ -4,7 +4,7 @@ namespace Mixedbread { /// - /// Name for the new vector store + /// Name for the new vector store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-). /// public sealed partial class VectorStoreCreateParamsName { diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAParams.g.cs index 7ee3696..a934481 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAParams.g.cs @@ -32,8 +32,8 @@ public sealed partial class VectorStoreQAParams /// Optional filter conditions ///
[global::System.Text.Json.Serialization.JsonPropertyName("filters")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] - public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } /// /// Optional list of file IDs to filter chunks by (inclusion filter) @@ -103,7 +103,7 @@ public VectorStoreQAParams( global::System.Collections.Generic.IList> vectorStoreIdentifiers, string? query, int? topK, - global::Mixedbread.AnyOf>, object>? filters, + global::Mixedbread.AnyOf>, object>? filters, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds, global::Mixedbread.VectorStoreChunkSearchOptions? searchOptions, bool? stream, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponse.g.cs index 94e8140..7dc07e5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponse.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponse.g.cs @@ -20,7 +20,7 @@ public sealed partial class VectorStoreSearchResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Data { get; set; } + public required global::System.Collections.Generic.IList Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +42,7 @@ public sealed partial class VectorStoreSearchResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public VectorStoreSearchResponse( - global::System.Collections.Generic.IList data, + global::System.Collections.Generic.IList data, string? @object) { this.Object = @object; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParams.g.cs index 3e0ed5a..57b38da 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParams.g.cs @@ -9,7 +9,7 @@ namespace Mixedbread public sealed partial class VectorStoreUpdateParams { /// - /// New name for the store + /// New name for the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-). /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } @@ -48,7 +48,7 @@ public sealed partial class VectorStoreUpdateParams /// Initializes a new instance of the class. /// /// - /// New name for the store + /// New name for the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-). /// /// /// New description diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsName.g.cs index de29967..6f3f386 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsName.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsName.g.cs @@ -4,7 +4,7 @@ namespace Mixedbread { /// - /// New name for the store + /// New name for the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-). /// public sealed partial class VectorStoreUpdateParamsName { diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs index 0b66766..6e277d4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs @@ -501,11 +501,8 @@ partial void ProcessCreateQuestionAnsweringResponseContent( /// /// Question answering /// - /// - /// Question to answer. If not provided, the question will be extracted from the passed messages. - /// /// - /// IDs or names of stores to search + /// IDs or names of stores /// /// /// Number of results to return
@@ -517,6 +514,9 @@ partial void ProcessCreateQuestionAnsweringResponseContent( /// /// Optional list of file IDs to filter chunks by (inclusion filter) /// + /// + /// Question to answer. If not provided, the question will be extracted from the passed messages. + /// /// /// Search configuration options /// @@ -535,10 +535,10 @@ partial void ProcessCreateQuestionAnsweringResponseContent( /// public async global::System.Threading.Tasks.Task CreateQuestionAnsweringAsync( global::System.Collections.Generic.IList> storeIdentifiers, - string? query = default, int? topK = default, - global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>, object>? filters = default, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, + string? query = default, global::Mixedbread.StoreChunkSearchOptions? searchOptions = default, bool? stream = default, string? instructions = default, @@ -548,11 +548,11 @@ partial void ProcessCreateQuestionAnsweringResponseContent( { var __request = new global::Mixedbread.StoreQAParams { - Query = query, StoreIdentifiers = storeIdentifiers, TopK = topK, Filters = filters, FileIds = fileIds, + Query = query, SearchOptions = searchOptions, Stream = stream, Instructions = instructions, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.EnhanceQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.EnhanceQuery.g.cs new file mode 100644 index 0000000..a42e84c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.EnhanceQuery.g.cs @@ -0,0 +1,560 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class StoresClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_EnhanceQueryServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_EnhanceQuerySecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_EnhanceQuerySecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_EnhanceQuerySecurityRequirement0, + }; + partial void PrepareEnhanceQueryArguments( + global::System.Net.Http.HttpClient httpClient, + global::Mixedbread.QueryEnhanceParams request); + partial void PrepareEnhanceQueryRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Mixedbread.QueryEnhanceParams request); + partial void ProcessEnhanceQueryResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessEnhanceQueryResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Enhance a search query
+ /// Extract metadata filters and ranking preferences from a search query. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task EnhanceQueryAsync( + + global::Mixedbread.QueryEnhanceParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await EnhanceQueryAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Enhance a search query
+ /// Extract metadata filters and ranking preferences from a search query. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> EnhanceQueryAsResponseAsync( + + global::Mixedbread.QueryEnhanceParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareEnhanceQueryArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_EnhanceQuerySecurityRequirements, + operationName: "EnhanceQueryAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/stores/queries/enhance", + baseUri: ResolveBaseUri( + servers: s_EnhanceQueryServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareEnhanceQueryRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnhanceQuery", + methodName: "EnhanceQueryAsync", + pathTemplate: "\"/v1/stores/queries/enhance\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnhanceQuery", + methodName: "EnhanceQueryAsync", + pathTemplate: "\"/v1/stores/queries/enhance\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnhanceQuery", + methodName: "EnhanceQueryAsync", + pathTemplate: "\"/v1/stores/queries/enhance\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessEnhanceQueryResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnhanceQuery", + methodName: "EnhanceQueryAsync", + pathTemplate: "\"/v1/stores/queries/enhance\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnhanceQuery", + methodName: "EnhanceQueryAsync", + pathTemplate: "\"/v1/stores/queries/enhance\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::Mixedbread.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessEnhanceQueryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.QueryEnhanceResults.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::Mixedbread.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.QueryEnhanceResults.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::Mixedbread.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Enhance a search query
+ /// Extract metadata filters and ranking preferences from a search query. + ///
+ /// + /// IDs or names of stores + /// + /// + /// Number of results to return
+ /// Default Value: 10 + /// + /// + /// Optional filter conditions + /// + /// + /// Optional list of file IDs to filter chunks by (inclusion filter) + /// + /// + /// Search query text + /// + /// + /// Search configuration options + /// + /// + /// Optional guidance for query enhancement. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task EnhanceQueryAsync( + global::System.Collections.Generic.IList> storeIdentifiers, + global::Mixedbread.MultiModalQuery query, + int? topK = default, + global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, + global::Mixedbread.StoreChunkSearchOptions? searchOptions = default, + string? instructions = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.QueryEnhanceParams + { + StoreIdentifiers = storeIdentifiers, + TopK = topK, + Filters = filters, + FileIds = fileIds, + Query = query, + SearchOptions = searchOptions, + Instructions = instructions, + }; + + return await EnhanceQueryAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs index 0c2e8e8..868a08a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs @@ -501,11 +501,8 @@ partial void ProcessGetMetadataFacetsResponseContent( /// /// Get metadata facets /// - /// - /// Search query text - /// /// - /// IDs or names of stores to search + /// IDs or names of stores /// /// /// Number of results to return
@@ -517,35 +514,56 @@ partial void ProcessGetMetadataFacetsResponseContent( /// /// Optional list of file IDs to filter chunks by (inclusion filter) /// + /// + /// Search query text + /// /// /// Search configuration options /// /// /// Optional list of facets to return. Use dot for nested fields. /// + /// + /// Maximum number of distinct metadata fields (keys) to return.
+ /// Default Value: 64 + /// + /// + /// Maximum number of distinct values returned per field, ranked by count.
+ /// Default Value: 32 + /// + /// + /// Maximum number of store files scanned to compute facets.
+ /// Default Value: 10000 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task GetMetadataFacetsAsync( global::System.Collections.Generic.IList> storeIdentifiers, - string? query = default, int? topK = default, - global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>, object>? filters = default, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, + string? query = default, global::Mixedbread.StoreChunkSearchOptions? searchOptions = default, global::System.Collections.Generic.IList? facets = default, + int? maxFields = default, + int? maxValuesPerField = default, + int? maxFiles = default, global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Mixedbread.MetadataFacetsParams { - Query = query, StoreIdentifiers = storeIdentifiers, TopK = topK, Filters = filters, FileIds = fileIds, + Query = query, SearchOptions = searchOptions, Facets = facets, + MaxFields = maxFields, + MaxValuesPerField = maxValuesPerField, + MaxFiles = maxFiles, }; return await GetMetadataFacetsAsync( diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs index c9fa6c3..b913386 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs @@ -545,6 +545,9 @@ partial void ProcessGetStoreEventHistogramResponseContent( /// Number of seconds in each bucket
/// Default Value: 7200 /// + /// + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -553,6 +556,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( global::System.DateTime? startTime = default, global::System.DateTime? endTime = default, int? bucketSeconds = default, + global::System.Collections.Generic.IList? eventTypes = default, global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -561,6 +565,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( StartTime = startTime, EndTime = endTime, BucketSeconds = bucketSeconds, + EventTypes = eventTypes, }; return await GetStoreEventHistogramAsync( diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs new file mode 100644 index 0000000..940d183 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs @@ -0,0 +1,624 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class StoresClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_GrepStoreChunksServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_GrepStoreChunksSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_GrepStoreChunksSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_GrepStoreChunksSecurityRequirement0, + }; + partial void PrepareGrepStoreChunksArguments( + global::System.Net.Http.HttpClient httpClient, + global::Mixedbread.StoreChunkGrepParams request); + partial void PrepareGrepStoreChunksRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Mixedbread.StoreChunkGrepParams request); + partial void ProcessGrepStoreChunksResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGrepStoreChunksResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Match store chunks against a regular expression
+ /// Match store chunks against a regular expression.
+ /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
+ /// semantic similarity, no reranking. Use it to find chunks containing a specific
+ /// token, identifier, error code, or literal phrase.
+ /// grep targets a single store and does not support pagination; raise `top_k` to
+ /// retrieve more matches.
+ /// Args:
+ /// grep_params: Grep configuration including:
+ /// - pattern: RE2 regular expression matched against chunk text
+ /// - targets: chunk content groups to match (`text`, `generated`)
+ /// - case_sensitive: whether the pattern is case-sensitive
+ /// - store_identifiers: the single store to grep
+ /// - file_ids: optional list of file IDs to filter chunks by
+ /// - filters: optional metadata filter conditions
+ /// - top_k: number of matches to return
+ /// Returns:
+ /// StoreGrepResponse containing the list of matching chunks.
+ /// Raises:
+ /// HTTPException (400): If grep parameters are invalid
+ /// HTTPException (404): If the store is not found + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GrepStoreChunksAsync( + + global::Mixedbread.StoreChunkGrepParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GrepStoreChunksAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Match store chunks against a regular expression
+ /// Match store chunks against a regular expression.
+ /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
+ /// semantic similarity, no reranking. Use it to find chunks containing a specific
+ /// token, identifier, error code, or literal phrase.
+ /// grep targets a single store and does not support pagination; raise `top_k` to
+ /// retrieve more matches.
+ /// Args:
+ /// grep_params: Grep configuration including:
+ /// - pattern: RE2 regular expression matched against chunk text
+ /// - targets: chunk content groups to match (`text`, `generated`)
+ /// - case_sensitive: whether the pattern is case-sensitive
+ /// - store_identifiers: the single store to grep
+ /// - file_ids: optional list of file IDs to filter chunks by
+ /// - filters: optional metadata filter conditions
+ /// - top_k: number of matches to return
+ /// Returns:
+ /// StoreGrepResponse containing the list of matching chunks.
+ /// Raises:
+ /// HTTPException (400): If grep parameters are invalid
+ /// HTTPException (404): If the store is not found + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GrepStoreChunksAsResponseAsync( + + global::Mixedbread.StoreChunkGrepParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareGrepStoreChunksArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GrepStoreChunksSecurityRequirements, + operationName: "GrepStoreChunksAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/stores/grep", + baseUri: ResolveBaseUri( + servers: s_GrepStoreChunksServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGrepStoreChunksRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GrepStoreChunks", + methodName: "GrepStoreChunksAsync", + pathTemplate: "\"/v1/stores/grep\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GrepStoreChunks", + methodName: "GrepStoreChunksAsync", + pathTemplate: "\"/v1/stores/grep\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GrepStoreChunks", + methodName: "GrepStoreChunksAsync", + pathTemplate: "\"/v1/stores/grep\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGrepStoreChunksResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GrepStoreChunks", + methodName: "GrepStoreChunksAsync", + pathTemplate: "\"/v1/stores/grep\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GrepStoreChunks", + methodName: "GrepStoreChunksAsync", + pathTemplate: "\"/v1/stores/grep\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::Mixedbread.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGrepStoreChunksResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.StoreGrepResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::Mixedbread.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.StoreGrepResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::Mixedbread.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Match store chunks against a regular expression
+ /// Match store chunks against a regular expression.
+ /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
+ /// semantic similarity, no reranking. Use it to find chunks containing a specific
+ /// token, identifier, error code, or literal phrase.
+ /// grep targets a single store and does not support pagination; raise `top_k` to
+ /// retrieve more matches.
+ /// Args:
+ /// grep_params: Grep configuration including:
+ /// - pattern: RE2 regular expression matched against chunk text
+ /// - targets: chunk content groups to match (`text`, `generated`)
+ /// - case_sensitive: whether the pattern is case-sensitive
+ /// - store_identifiers: the single store to grep
+ /// - file_ids: optional list of file IDs to filter chunks by
+ /// - filters: optional metadata filter conditions
+ /// - top_k: number of matches to return
+ /// Returns:
+ /// StoreGrepResponse containing the list of matching chunks.
+ /// Raises:
+ /// HTTPException (400): If grep parameters are invalid
+ /// HTTPException (404): If the store is not found + ///
+ /// + /// IDs or names of stores + /// + /// + /// Number of results to return
+ /// Default Value: 10 + /// + /// + /// Optional filter conditions + /// + /// + /// Optional list of file IDs to filter chunks by (inclusion filter) + /// + /// + /// Regular expression (RE2 syntax) matched against chunk text + /// + /// + /// Chunk content groups to match against. `text` matches the original text of text chunks; `generated` matches ingestion-derived fields (transcription, OCR text, summaries). + /// + /// + /// Whether the regular expression is case-sensitive
+ /// Default Value: false + /// + /// + /// Whether to return file metadata
+ /// Default Value: true + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GrepStoreChunksAsync( + global::System.Collections.Generic.IList> storeIdentifiers, + string pattern, + int? topK = default, + global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, + global::System.Collections.Generic.IList? targets = default, + bool? caseSensitive = default, + bool? returnMetadata = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.StoreChunkGrepParams + { + StoreIdentifiers = storeIdentifiers, + TopK = topK, + Filters = filters, + FileIds = fileIds, + Pattern = pattern, + Targets = targets, + CaseSensitive = caseSensitive, + ReturnMetadata = returnMetadata, + }; + + return await GrepStoreChunksAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs index 05fcb99..51e2296 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs @@ -568,7 +568,7 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent( string? before = default, bool? includeTotal = default, global::System.Collections.Generic.IList? statuses = default, - global::Mixedbread.AnyOf>, object>? metadataFilter = default, + global::Mixedbread.AnyOf>, object>? metadataFilter = default, string? q = default, global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs index b54fb41..45e1ccc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs @@ -570,11 +570,8 @@ partial void ProcessSearchStoreChunksResponseContent( /// HTTPException (400): If search parameters are invalid
/// HTTPException (404): If no vector stores are found to search ///
- /// - /// Search query text - /// /// - /// IDs or names of stores to search + /// IDs or names of stores /// /// /// Number of results to return
@@ -586,6 +583,9 @@ partial void ProcessSearchStoreChunksResponseContent( /// /// Optional list of file IDs to filter chunks by (inclusion filter) /// + /// + /// Search query text + /// /// /// Search configuration options /// @@ -593,10 +593,10 @@ partial void ProcessSearchStoreChunksResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task SearchStoreChunksAsync( - global::Mixedbread.MultiModalQuery query, global::System.Collections.Generic.IList> storeIdentifiers, + global::Mixedbread.MultiModalQuery query, int? topK = default, - global::Mixedbread.AnyOf>, object>? filters = default, + global::Mixedbread.AnyOf>, object>? filters = default, global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? fileIds = default, global::Mixedbread.StoreChunkSearchOptions? searchOptions = default, global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, @@ -604,11 +604,11 @@ partial void ProcessSearchStoreChunksResponseContent( { var __request = new global::Mixedbread.StoreChunkSearchParams { - Query = query, StoreIdentifiers = storeIdentifiers, TopK = topK, Filters = filters, FileIds = fileIds, + Query = query, SearchOptions = searchOptions, }; diff --git a/src/libs/Mixedbread/openapi.yaml b/src/libs/Mixedbread/openapi.yaml index 73f1bc7..925acf4 100644 --- a/src/libs/Mixedbread/openapi.yaml +++ b/src/libs/Mixedbread/openapi.yaml @@ -116,7 +116,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "string", "minLength": 1, "maxLength": 100 }, { "type": "null" }], + "anyOf": [{ "type": "string", "minLength": 1, "maxLength": 255 }, { "type": "null" }], "description": "Search query for fuzzy matching over name and description fields", "title": "Q" }, @@ -1797,7 +1797,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "string", "minLength": 1, "maxLength": 100 }, { "type": "null" }], + "anyOf": [{ "type": "string", "minLength": 1, "maxLength": 255 }, { "type": "null" }], "description": "Search query for fuzzy matching over name and description fields", "title": "Q" }, @@ -1963,6 +1963,40 @@ "security": [{ "ApiKeyAuth": [] }] } }, + "/v1/stores/grep": { + "post": { + "tags": ["stores"], + "summary": "Match store chunks against a regular expression", + "description": "Match store chunks against a regular expression.\n\nUnlike `/stores/search`, this performs exact text matching — no embeddings, no\nsemantic similarity, no reranking. Use it to find chunks containing a specific\ntoken, identifier, error code, or literal phrase.\n\ngrep targets a single store and does not support pagination; raise `top_k` to\nretrieve more matches.\n\nArgs:\n grep_params: Grep configuration including:\n - pattern: RE2 regular expression matched against chunk text\n - targets: chunk content groups to match (`text`, `generated`)\n - case_sensitive: whether the pattern is case-sensitive\n - store_identifiers: the single store to grep\n - file_ids: optional list of file IDs to filter chunks by\n - filters: optional metadata filter conditions\n - top_k: number of matches to return\n\nReturns:\n StoreGrepResponse containing the list of matching chunks.\n\nRaises:\n HTTPException (400): If grep parameters are invalid\n HTTPException (404): If the store is not found", + "operationId": "grep_store_chunks", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StoreChunkGrepParams", + "description": "Grep parameters including the regular expression pattern, targets and filters" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "List of chunks whose text matches the pattern", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/StoreGrepResponse" } } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, "/v1/stores/question-answering": { "post": { "tags": ["stores"], @@ -1994,6 +2028,40 @@ "security": [{ "ApiKeyAuth": [] }] } }, + "/v1/stores/queries/enhance": { + "post": { + "tags": ["stores"], + "summary": "Enhance a search query", + "description": "Extract metadata filters and ranking preferences from a search query.", + "operationId": "enhance_query", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryEnhanceParams", + "description": "Search query and enhancement options" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "A single enhanced query item", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/QueryEnhanceResults" } } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, "/v1/stores/metadata-facets": { "post": { "tags": ["stores"], @@ -2707,7 +2775,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "string", "minLength": 1, "maxLength": 100 }, { "type": "null" }], + "anyOf": [{ "type": "string", "minLength": 1, "maxLength": 255 }, { "type": "null" }], "description": "Search query for fuzzy matching over name and description fields", "title": "Q" }, @@ -3023,7 +3091,7 @@ "in": "query", "required": false, "schema": { - "anyOf": [{ "type": "string", "minLength": 1, "maxLength": 100 }, { "type": "null" }], + "anyOf": [{ "type": "string", "minLength": 1, "maxLength": 255 }, { "type": "null" }], "description": "Search query to filter by", "title": "Q" }, @@ -4052,16 +4120,35 @@ }, "queries_per_round": { "type": "integer", - "maximum": 5, + "maximum": 10, "minimum": 1, "title": "Queries Per Round", "description": "Maximum queries per round", - "default": 3 + "default": 4 + }, + "strict_top_k": { + "type": "boolean", + "title": "Strict Top K", + "description": "Whether the final retrieved chunk list must provide exactly top_k ranked chunks", + "default": false + }, + "media_content": { + "type": "string", + "enum": ["auto", "never", "always"], + "title": "Media Content", + "description": "Controls when retrieved image content is provided to the agent. `auto` sends images only when no OCR text or summary is available, `never` disables image content, and `always` sends image content when available.", + "default": "auto" }, "instructions": { - "anyOf": [{ "type": "string", "maxLength": 2000, "minLength": 1 }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 5000, "minLength": 1 }, { "type": "null" }], "title": "Instructions", "description": "Additional custom instructions (followed only when not in conflict with existing rules)" + }, + "verbose": { + "type": "boolean", + "title": "Verbose", + "description": "Internal: when set, the response includes a `trace` field with the full tool-call timeline. Used by the Mixedbread playground; not part of the documented public API.", + "default": false } }, "type": "object", @@ -4458,6 +4545,12 @@ "description": "speech recognition (sr) text of the audio", "examples": ["The year 2025 reports for .."] }, + "summary": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Summary", + "description": "summary of the audio", + "examples": ["A financial report audio for 2025"] + }, "audio_url": { "anyOf": [{ "$ref": "#/components/schemas/AudioUrl" }, { "type": "null" }], "description": "Audio URL" @@ -5293,7 +5386,7 @@ "description": "Configuration for adding the file" }, "external_id": { - "anyOf": [{ "type": "string" }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], "title": "External Id", "description": "External identifier for this file in the store" }, @@ -6252,12 +6345,12 @@ }, "metadata_filter": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -6292,19 +6385,13 @@ }, "MetadataFacetsParams": { "properties": { - "query": { - "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }], - "title": "Query", - "description": "Search query text", - "examples": ["how to configure SSL"] - }, "store_identifiers": { "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, "type": "array", - "maxItems": 100, + "maxItems": 16, "minItems": 1, "title": "Store Identifiers", - "description": "IDs or names of stores to search" + "description": "IDs or names of stores" }, "top_k": { "type": "integer", @@ -6315,12 +6402,12 @@ }, "filters": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -6353,6 +6440,12 @@ ["not_in", ["123e4567-e89b-12d3-a456-426614174000"]] ] }, + "query": { + "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }], + "title": "Query", + "description": "Search query text", + "examples": ["how to configure SSL"] + }, "search_options": { "$ref": "#/components/schemas/StoreChunkSearchOptions", "description": "Search configuration options" @@ -6362,6 +6455,30 @@ "title": "Facets", "description": "Optional list of facets to return. Use dot for nested fields.", "examples": ["author", "year", "author.name"] + }, + "max_fields": { + "type": "integer", + "maximum": 256, + "minimum": 1, + "title": "Max Fields", + "description": "Maximum number of distinct metadata fields (keys) to return.", + "default": 64 + }, + "max_values_per_field": { + "type": "integer", + "maximum": 256, + "minimum": 1, + "title": "Max Values Per Field", + "description": "Maximum number of distinct values returned per field, ranked by count.", + "default": 32 + }, + "max_files": { + "type": "integer", + "maximum": 100000, + "minimum": 1, + "title": "Max Files", + "description": "Maximum number of store files scanned to compute facets.", + "default": 10000 } }, "type": "object", @@ -6904,6 +7021,218 @@ "title": "ProductCostInfo", "description": "Cost information for a product." }, + "QueryEnhanceMetadataFilter": { + "properties": { + "key": { "type": "string", "minLength": 1, "title": "Key", "description": "Metadata field key" }, + "operator": { + "$ref": "#/components/schemas/ConditionOperator", + "description": "Comparison operator" + }, + "value": { + "anyOf": [ + { "type": "string" }, + { "type": "integer" }, + { "type": "number" }, + { "type": "boolean" }, + { + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "integer" }, + { "type": "number" }, + { "type": "boolean" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Value", + "description": "Value to compare against. Use a list for `in`/`not_in`." + } + }, + "additionalProperties": false, + "type": "object", + "required": ["key", "operator", "value"], + "title": "QueryEnhanceMetadataFilter", + "description": "Metadata filter condition." + }, + "QueryEnhanceParams": { + "properties": { + "store_identifiers": { + "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, + "type": "array", + "maxItems": 16, + "minItems": 1, + "title": "Store Identifiers", + "description": "IDs or names of stores" + }, + "top_k": { + "type": "integer", + "minimum": 1, + "title": "Top K", + "description": "Number of results to return", + "default": 10 + }, + "filters": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Filters", + "description": "Optional filter conditions" + }, + "file_ids": { + "anyOf": [ + { + "prefixItems": [ + { "$ref": "#/components/schemas/ConditionOperator" }, + { "items": { "type": "string", "format": "uuid" }, "type": "array" } + ], + "type": "array", + "maxItems": 2, + "minItems": 2 + }, + { "items": { "type": "string", "format": "uuid" }, "type": "array" }, + { "type": "null" } + ], + "title": "File Ids", + "description": "Optional list of file IDs to filter chunks by (inclusion filter)", + "examples": [ + ["123e4567-e89b-12d3-a456-426614174000", "123e4567-e89b-12d3-a456-426614174001"], + ["in", ["123e4567-e89b-12d3-a456-426614174000"]], + ["not_in", ["123e4567-e89b-12d3-a456-426614174000"]] + ] + }, + "query": { + "$ref": "#/components/schemas/MultiModalQuery", + "description": "Search query text", + "examples": ["how to configure SSL"] + }, + "search_options": { + "$ref": "#/components/schemas/StoreChunkSearchOptions", + "description": "Search configuration options" + }, + "instructions": { + "anyOf": [{ "type": "string", "maxLength": 2000 }, { "type": "null" }], + "title": "Instructions", + "description": "Optional guidance for query enhancement." + } + }, + "type": "object", + "required": ["store_identifiers", "query"], + "title": "QueryEnhanceParams", + "description": "Parameters for enhancing a search query." + }, + "QueryEnhanceQueryItem": { + "properties": { + "type": { "type": "string", "const": "query", "title": "Type", "default": "query" }, + "query": { "type": "string", "minLength": 1, "title": "Query", "description": "Search query text" }, + "metadata_filters": { + "anyOf": [ + { "items": { "$ref": "#/components/schemas/QueryEnhanceMetadataFilter" }, "type": "array" }, + { "type": "null" } + ], + "title": "Metadata Filters", + "description": "Metadata filters to apply" + }, + "filter_mode": { + "type": "string", + "enum": ["all", "any"], + "title": "Filter Mode", + "description": "How to combine filters", + "default": "all" + }, + "rank_by": { + "type": "null", + "title": "Rank By", + "description": "Always null for semantic query items. Use a sort item to rank by metadata." + }, + "direction": { + "type": "null", + "title": "Direction", + "description": "Always null for semantic query items. Use a sort item to set rank direction." + } + }, + "type": "object", + "required": ["query"], + "title": "QueryEnhanceQueryItem", + "description": "Enhanced semantic search query with optional filters." + }, + "QueryEnhanceResults": { + "properties": { + "items": { + "items": { + "oneOf": [ + { "$ref": "#/components/schemas/QueryEnhanceQueryItem" }, + { "$ref": "#/components/schemas/QueryEnhanceSortItem" } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "query": "#/components/schemas/QueryEnhanceQueryItem", + "sort": "#/components/schemas/QueryEnhanceSortItem" + } + } + }, + "type": "array", + "maxItems": 1, + "minItems": 1, + "title": "Items", + "description": "Enhanced query item" + } + }, + "type": "object", + "required": ["items"], + "title": "QueryEnhanceResults", + "description": "Enhanced query response." + }, + "QueryEnhanceSortItem": { + "properties": { + "type": { "type": "string", "const": "sort", "title": "Type", "default": "sort" }, + "metadata_filters": { + "anyOf": [ + { "items": { "$ref": "#/components/schemas/QueryEnhanceMetadataFilter" }, "type": "array" }, + { "type": "null" } + ], + "title": "Metadata Filters", + "description": "Metadata filters to apply" + }, + "filter_mode": { + "type": "string", + "enum": ["all", "any"], + "title": "Filter Mode", + "description": "How to combine filters", + "default": "all" + }, + "rank_by": { + "type": "string", + "minLength": 1, + "title": "Rank By", + "description": "Metadata field to rank results by" + }, + "direction": { + "type": "string", + "enum": ["asc", "desc"], + "title": "Direction", + "description": "Ranking direction" + } + }, + "type": "object", + "required": ["rank_by", "direction"], + "title": "QueryEnhanceSortItem", + "description": "Ranking request based on metadata." + }, "QueryRegexSubstitutionRule": { "properties": { "query": { "type": "string", "title": "Query", "description": "The query to trigger the rule" }, @@ -7242,12 +7571,12 @@ }, "metadata_filter": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -7259,7 +7588,7 @@ "description": "Metadata filter to apply to the query" }, "q": { - "anyOf": [{ "type": "string", "maxLength": 100, "minLength": 1 }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 255, "minLength": 1 }, { "type": "null" }], "title": "Q", "description": "Search query for fuzzy matching over name and external_id fields" } @@ -7268,14 +7597,14 @@ "title": "SearchCursorPagination", "description": "Cursor pagination with status, metadata, and a search query." }, - "SearchFilter": { + "SearchFilter-Input": { "properties": { "all": { "anyOf": [ { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -7298,7 +7627,7 @@ { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -7321,7 +7650,7 @@ { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -7337,28 +7666,103 @@ { "key": "color", "operator": "eq", "value": "red" } ], null - ], - "x-stainless-naming": { "python": { "type_name": "none_type" } } + ] } }, "type": "object", "title": "SearchFilter", "description": "Represents a filter with AND, OR, and NOT conditions." }, - "SearchFilterCondition": { + "SearchFilter-Output": { "properties": { - "key": { - "type": "string", - "title": "Key", - "description": "The field to apply the condition on", - "examples": ["price", "color"] - }, - "value": { - "title": "Value", - "description": "The value to compare against", - "examples": ["100", "red"] + "all": { + "anyOf": [ + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "All", + "description": "List of conditions or filters to be ANDed together", + "examples": [ + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null + ] }, - "operator": { + "any": { + "anyOf": [ + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Any", + "description": "List of conditions or filters to be ORed together", + "examples": [ + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null + ] + }, + "none": { + "anyOf": [ + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "None", + "description": "List of conditions or filters to be NOTed", + "examples": [ + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null + ] + } + }, + "type": "object", + "title": "SearchFilter", + "description": "Represents a filter with AND, OR, and NOT conditions." + }, + "SearchFilterCondition": { + "properties": { + "key": { + "type": "string", + "title": "Key", + "description": "The field to apply the condition on", + "examples": ["price", "color"] + }, + "value": { + "title": "Value", + "description": "The value to compare against", + "examples": ["100", "red"] + }, + "operator": { "$ref": "#/components/schemas/ConditionOperator", "description": "The operator for the condition", "examples": ["eq", "gt"] @@ -7379,14 +7783,14 @@ }, "name": { "type": "string", - "maxLength": 100, + "maxLength": 128, "minLength": 1, "title": "Name", "description": "Name of the store", - "examples": ["Customer Support KB", "Product Documentation"] + "examples": ["customer-support-kb", "product-documentation"] }, "description": { - "anyOf": [{ "type": "string" }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], "title": "Description", "description": "Detailed description of the store's purpose and contents", "examples": ["Contains customer support articles and FAQs"] @@ -7522,12 +7926,40 @@ "title": "Query", "description": "Original query submitted by the user" }, + "instructions": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Instructions", + "description": "Custom instructions provided with the agentic search, if any" + }, + "ranking_strategy": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Ranking Strategy", + "description": "Agent-submitted explanation of how chunks were ranked" + }, "rounds_executed": { "type": "integer", "title": "Rounds Executed", "description": "Number of search rounds the agent executed", "default": 0 }, + "filters": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Filters", + "description": "Metadata filters submitted with the search request" + }, "token_usage": { "$ref": "#/components/schemas/AgenticSearchTokenUsage", "description": "Token usage and cost for LLM calls during the agentic search" @@ -7550,6 +7982,102 @@ "title": "StoreAgenticSearchEvent", "description": "Represents an agentic search trace in a vector store.\n\nUnlike StoreSearchEvent, this captures the full sequence of tool calls the\nagent issued (name, arguments, result) so developers can inspect what the\nagent did, along with the token usage and cost." }, + "StoreChunkGrepParams": { + "properties": { + "store_identifiers": { + "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, + "type": "array", + "maxItems": 16, + "minItems": 1, + "title": "Store Identifiers", + "description": "IDs or names of stores" + }, + "top_k": { + "type": "integer", + "minimum": 1, + "title": "Top K", + "description": "Number of results to return", + "default": 10 + }, + "filters": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Filters", + "description": "Optional filter conditions" + }, + "file_ids": { + "anyOf": [ + { + "prefixItems": [ + { "$ref": "#/components/schemas/ConditionOperator" }, + { "items": { "type": "string", "format": "uuid" }, "type": "array" } + ], + "type": "array", + "maxItems": 2, + "minItems": 2 + }, + { "items": { "type": "string", "format": "uuid" }, "type": "array" }, + { "type": "null" } + ], + "title": "File Ids", + "description": "Optional list of file IDs to filter chunks by (inclusion filter)", + "examples": [ + ["123e4567-e89b-12d3-a456-426614174000", "123e4567-e89b-12d3-a456-426614174001"], + ["in", ["123e4567-e89b-12d3-a456-426614174000"]], + ["not_in", ["123e4567-e89b-12d3-a456-426614174000"]] + ] + }, + "pattern": { + "type": "string", + "maxLength": 1024, + "minLength": 1, + "title": "Pattern", + "description": "Regular expression (RE2 syntax) matched against chunk text", + "examples": ["ERR-\\d{4}", "invoice|receipt"] + }, + "targets": { + "items": { "$ref": "#/components/schemas/StoreChunkGrepTarget" }, + "type": "array", + "minItems": 1, + "title": "Targets", + "description": "Chunk content groups to match against. `text` matches the original text of text chunks; `generated` matches ingestion-derived fields (transcription, OCR text, summaries)." + }, + "case_sensitive": { + "type": "boolean", + "title": "Case Sensitive", + "description": "Whether the regular expression is case-sensitive", + "default": false + }, + "return_metadata": { + "type": "boolean", + "title": "Return Metadata", + "description": "Whether to return file metadata", + "default": true + } + }, + "type": "object", + "required": ["store_identifiers", "pattern"], + "title": "StoreChunkGrepParams", + "description": "Parameters for matching store chunks against a regular expression.\n\nUnlike semantic search, grep performs exact text matching — no embeddings, no\nreranking. It finds chunks whose literal text contains the pattern." + }, + "StoreChunkGrepTarget": { + "type": "string", + "enum": ["text", "generated"], + "title": "StoreChunkGrepTarget", + "description": "Logical chunk content groups the grep tool can match against.\n\nThese map to one or more underlying chunk fields:\n\n- ``text`` → text chunks' ``text`` field (original text content).\n- ``generated`` → fields produced during ingestion (``transcription`` for audio/video,\n ``ocr_text`` for images, and ``summary`` across modalities)." + }, "StoreChunkSearchOptions": { "properties": { "score_threshold": { @@ -7603,18 +8131,13 @@ }, "StoreChunkSearchParams": { "properties": { - "query": { - "$ref": "#/components/schemas/MultiModalQuery", - "description": "Search query text", - "examples": ["how to configure SSL"] - }, "store_identifiers": { "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, "type": "array", - "maxItems": 100, + "maxItems": 16, "minItems": 1, "title": "Store Identifiers", - "description": "IDs or names of stores to search" + "description": "IDs or names of stores" }, "top_k": { "type": "integer", @@ -7625,12 +8148,12 @@ }, "filters": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -7663,13 +8186,18 @@ ["not_in", ["123e4567-e89b-12d3-a456-426614174000"]] ] }, + "query": { + "$ref": "#/components/schemas/MultiModalQuery", + "description": "Search query text", + "examples": ["how to configure SSL"] + }, "search_options": { "$ref": "#/components/schemas/StoreChunkSearchOptions", "description": "Search configuration options" } }, "type": "object", - "required": ["query", "store_identifiers"], + "required": ["store_identifiers", "query"], "title": "StoreChunkSearchParams", "description": "Query parameters for searching store chunks." }, @@ -7736,13 +8264,13 @@ "StoreCreateParams": { "properties": { "name": { - "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 128, "minLength": 1 }, { "type": "null" }], "title": "Name", "description": "Name for the new store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-).", "examples": ["technical-documentation"] }, "description": { - "anyOf": [{ "type": "string" }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], "title": "Description", "description": "Description of the store", "examples": ["Contains technical specifications and guides"] @@ -7904,6 +8432,17 @@ "title": "Bucket Seconds", "description": "Number of seconds in each bucket", "default": 7200 + }, + "event_types": { + "anyOf": [ + { + "items": { "type": "string", "enum": ["ingestion", "search", "agentic_search"] }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Event Types", + "description": "Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events." } }, "type": "object", @@ -8141,6 +8680,50 @@ "enum": ["pending", "in_progress", "cancelled", "completed", "failed"], "title": "StoreFileStatus" }, + "StoreGrepResponse": { + "properties": { + "object": { + "type": "string", + "const": "list", + "title": "Object", + "description": "The object type of the response", + "default": "list" + }, + "data": { + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/mxbai_omni__core__store__models__chunk_types__ScoredTextInputChunk" + }, + { + "$ref": "#/components/schemas/mxbai_omni__core__store__models__chunk_types__ScoredImageUrlInputChunk" + }, + { + "$ref": "#/components/schemas/mxbai_omni__core__store__models__chunk_types__ScoredAudioUrlInputChunk" + }, + { + "$ref": "#/components/schemas/mxbai_omni__core__store__models__chunk_types__ScoredVideoUrlInputChunk" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "audio_url": "#/components/schemas/mxbai_omni__core__store__models__chunk_types__ScoredAudioUrlInputChunk", + "image_url": "#/components/schemas/mxbai_omni__core__store__models__chunk_types__ScoredImageUrlInputChunk", + "text": "#/components/schemas/mxbai_omni__core__store__models__chunk_types__ScoredTextInputChunk", + "video_url": "#/components/schemas/mxbai_omni__core__store__models__chunk_types__ScoredVideoUrlInputChunk" + } + } + }, + "type": "array", + "title": "Data", + "description": "The list of chunks matching the pattern" + } + }, + "type": "object", + "required": ["data"], + "title": "StoreGrepResponse" + }, "StoreIngestionEvent": { "properties": { "id": { @@ -8244,19 +8827,13 @@ }, "StoreQAParams": { "properties": { - "query": { - "type": "string", - "minLength": 1, - "title": "Query", - "description": "Question to answer. If not provided, the question will be extracted from the passed messages." - }, "store_identifiers": { "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, "type": "array", - "maxItems": 100, + "maxItems": 16, "minItems": 1, "title": "Store Identifiers", - "description": "IDs or names of stores to search" + "description": "IDs or names of stores" }, "top_k": { "type": "integer", @@ -8267,12 +8844,12 @@ }, "filters": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -8305,6 +8882,12 @@ ["not_in", ["123e4567-e89b-12d3-a456-426614174000"]] ] }, + "query": { + "type": "string", + "minLength": 1, + "title": "Query", + "description": "Question to answer. If not provided, the question will be extracted from the passed messages." + }, "search_options": { "$ref": "#/components/schemas/StoreChunkSearchOptions", "description": "Search configuration options" @@ -8316,7 +8899,7 @@ "default": false }, "instructions": { - "anyOf": [{ "type": "string", "maxLength": 2000, "minLength": 1 }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 8000, "minLength": 1 }, { "type": "null" }], "title": "Instructions", "description": "Additional custom instructions (followed only when not in conflict with existing rules)" }, @@ -8407,12 +8990,63 @@ "title": "Rewritten Query", "description": "Rewritten query if query rewriting was enabled" }, + "rewritten_filters": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Rewritten Filters", + "description": "Filters used after query rewriting" + }, + "rewrite_rank_by": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Rewrite Rank By", + "description": "Metadata field used for ranking" + }, + "rewrite_rank_direction": { + "anyOf": [{ "type": "string", "enum": ["asc", "desc"] }, { "type": "null" }], + "title": "Rewrite Rank Direction", + "description": "Ranking direction" + }, + "rewrite_rank_mode": { + "anyOf": [{ "type": "string", "enum": ["post_search", "metadata"] }, { "type": "null" }], + "title": "Rewrite Rank Mode", + "description": "Ranking mode" + }, "rerank": { "type": "boolean", "title": "Rerank", "description": "Whether to rerank the results", "default": false }, + "filters": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Filters", + "description": "Metadata filters submitted with the search request" + }, "results": { "items": { "$ref": "#/components/schemas/StoreSearchEventResult" }, "type": "array", @@ -8427,6 +9061,11 @@ }, "StoreSearchEventResult": { "properties": { + "store_id": { + "type": "string", + "title": "Store Id", + "description": "ID of the store the chunk belongs to" + }, "file_id": { "type": "string", "title": "File Id", @@ -8455,7 +9094,7 @@ } }, "type": "object", - "required": ["file_id", "chunk_index", "score"], + "required": ["store_id", "file_id", "chunk_index", "score"], "title": "StoreSearchEventResult", "description": "A single result captured on a search event." }, @@ -8499,6 +9138,7 @@ "description": "The list of scored store file chunks" } }, + "additionalProperties": true, "type": "object", "required": ["data"], "title": "StoreSearchResponse" @@ -8512,12 +9152,12 @@ "StoreUpdateParams": { "properties": { "name": { - "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 128, "minLength": 1 }, { "type": "null" }], "title": "Name", "description": "New name for the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-)." }, "description": { - "anyOf": [{ "type": "string" }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], "title": "Description", "description": "New description" }, @@ -8783,14 +9423,14 @@ }, "name": { "type": "string", - "maxLength": 100, + "maxLength": 128, "minLength": 1, "title": "Name", "description": "Name of the vector store", - "examples": ["Customer Support KB", "Product Documentation"] + "examples": ["customer-support-kb", "product-documentation"] }, "description": { - "anyOf": [{ "type": "string" }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], "title": "Description", "description": "Detailed description of the vector store's purpose and contents", "examples": ["Contains customer support articles and FAQs"] @@ -8929,7 +9569,7 @@ "vector_store_identifiers": { "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, "type": "array", - "maxItems": 100, + "maxItems": 16, "minItems": 1, "title": "Vector Store Identifiers", "description": "IDs or names of vector stores to search" @@ -8943,12 +9583,12 @@ }, "filters": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -8994,13 +9634,13 @@ "VectorStoreCreateParams": { "properties": { "name": { - "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 128, "minLength": 1 }, { "type": "null" }], "title": "Name", - "description": "Name for the new vector store", - "examples": ["Technical Documentation"] + "description": "Name for the new vector store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-).", + "examples": ["technical-documentation"] }, "description": { - "anyOf": [{ "type": "string" }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], "title": "Description", "description": "Description of the vector store", "examples": ["Contains technical specifications and guides"] @@ -9222,7 +9862,7 @@ "vector_store_identifiers": { "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, "type": "array", - "maxItems": 100, + "maxItems": 16, "minItems": 1, "title": "Vector Store Identifiers", "description": "IDs or names of vector stores to search" @@ -9236,12 +9876,12 @@ }, "filters": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter" }, + { "$ref": "#/components/schemas/SearchFilter-Input" }, { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, @@ -9380,12 +10020,12 @@ "VectorStoreUpdateParams": { "properties": { "name": { - "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 128, "minLength": 1 }, { "type": "null" }], "title": "Name", - "description": "New name for the store" + "description": "New name for the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-)." }, "description": { - "anyOf": [{ "type": "string" }, { "type": "null" }], + "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], "title": "Description", "description": "New description" }, @@ -9633,6 +10273,12 @@ "description": "speech recognition (sr) text of the audio", "examples": ["The year 2025 reports for .."] }, + "summary": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Summary", + "description": "summary of the audio", + "examples": ["A financial report audio for 2025"] + }, "audio_url": { "anyOf": [{ "$ref": "#/components/schemas/AudioUrl" }, { "type": "null" }], "description": "Audio URL" @@ -10546,6 +11192,12 @@ "description": "speech recognition (sr) text of the audio", "examples": ["The year 2025 reports for .."] }, + "summary": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Summary", + "description": "summary of the audio", + "examples": ["A financial report audio for 2025"] + }, "audio_url": { "anyOf": [{ "$ref": "#/components/schemas/AudioUrl" }, { "type": "null" }], "description": "Audio URL"