Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKey.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ public sealed partial class ApiKey
/// <param name="redactedValue">
/// The redacted value of the API key
/// </param>
/// <param name="expiresAt">
/// The expiration datetime of the API key
/// </param>
/// <param name="createdAt">
/// The creation datetime of the API key
/// </param>
/// <param name="updatedAt">
/// The last update datetime of the API key
/// </param>
/// <param name="expiresAt">
/// The expiration datetime of the API key
/// </param>
/// <param name="lastActiveAt">
/// The last active datetime of the API key
/// </param>
Expand Down Expand Up @@ -122,9 +122,9 @@ public ApiKey(
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.RedactedValue = redactedValue ?? throw new global::System.ArgumentNullException(nameof(redactedValue));
this.ExpiresAt = expiresAt;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.ExpiresAt = expiresAt;
this.LastActiveAt = lastActiveAt;
this.Object = @object;
this.Scope = scope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ public sealed partial class ApiKeyCreateOrUpdateParams
/// <summary>
/// Initializes a new instance of the <see cref="ApiKeyCreateOrUpdateParams" /> class.
/// </summary>
/// <param name="type">
/// Default Value: api_key
/// </param>
/// <param name="apiKey">
/// The API key
/// </param>
/// <param name="type">
/// Default Value: api_key
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ApiKeyCreateOrUpdateParams(
string apiKey,
string? type)
{
this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
this.Type = type;
this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,18 @@ public sealed partial class ApiKeyCreated
/// <param name="redactedValue">
/// The redacted value of the API key
/// </param>
/// <param name="expiresAt">
/// The expiration datetime of the API key
/// </param>
/// <param name="createdAt">
/// The creation datetime of the API key
/// </param>
/// <param name="updatedAt">
/// The last update datetime of the API key
/// </param>
/// <param name="value">
/// The value of the API key
/// </param>
/// <param name="expiresAt">
/// The expiration datetime of the API key
/// </param>
/// <param name="lastActiveAt">
/// The last active datetime of the API key
/// </param>
Expand All @@ -112,9 +115,6 @@ public sealed partial class ApiKeyCreated
/// <param name="scope">
/// The scope of the API key
/// </param>
/// <param name="value">
/// The value of the API key
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -133,13 +133,13 @@ public ApiKeyCreated(
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.RedactedValue = redactedValue ?? throw new global::System.ArgumentNullException(nameof(redactedValue));
this.ExpiresAt = expiresAt;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value));
this.ExpiresAt = expiresAt;
this.LastActiveAt = lastActiveAt;
this.Object = @object;
this.Scope = scope;
this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public sealed partial class ApiKeyListResponse
/// <param name="pagination">
/// Pagination model that includes total count of items.
/// </param>
/// <param name="data">
/// The list of API keys
/// </param>
/// <param name="object">
/// The object type of the response<br/>
/// Default Value: list
/// </param>
/// <param name="data">
/// The list of API keys
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -57,8 +57,8 @@ public ApiKeyListResponse(
string? @object)
{
this.Pagination = pagination ?? throw new global::System.ArgumentNullException(nameof(pagination));
this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data));
this.Object = @object;
this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public sealed partial class AudioUrlInputChunk
/// <param name="chunkIndex">
/// position of the chunk in a file
/// </param>
/// <param name="samplingRate">
/// The sampling rate of the audio.
/// </param>
/// <param name="mimeType">
/// mime type of the chunk<br/>
/// Default Value: audio/mpeg
Expand All @@ -101,9 +104,6 @@ public sealed partial class AudioUrlInputChunk
/// <param name="audioUrl">
/// Audio URL
/// </param>
/// <param name="samplingRate">
/// The sampling rate of the audio.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -119,14 +119,14 @@ public AudioUrlInputChunk(
global::Mixedbread.AudioUrl? audioUrl)
{
this.ChunkIndex = chunkIndex;
this.SamplingRate = samplingRate;
this.MimeType = mimeType;
this.GeneratedMetadata = generatedMetadata;
this.Model = model;
this.Type = type;
this.Transcription = transcription;
this.Summary = summary;
this.AudioUrl = audioUrl;
this.SamplingRate = samplingRate;
}

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Mixedbread/Generated/Mixedbread.Models.Chunk.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ public sealed partial class Chunk
/// <summary>
/// Initializes a new instance of the <see cref="Chunk" /> class.
/// </summary>
/// <param name="content">
/// The full content of the chunk
/// </param>
/// <param name="contentToEmbed">
/// The content of the chunk to embed
/// </param>
/// <param name="elements">
/// List of elements contained in this chunk
/// </param>
/// <param name="content">
/// The full content of the chunk
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -54,9 +54,9 @@ public Chunk(
global::System.Collections.Generic.IList<global::Mixedbread.ChunkElement> elements,
string? content)
{
this.Content = content;
this.ContentToEmbed = contentToEmbed ?? throw new global::System.ArgumentNullException(nameof(contentToEmbed));
this.Elements = elements ?? throw new global::System.ArgumentNullException(nameof(elements));
this.Content = content;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ public sealed partial class ChunkSearchResultRule
/// <param name="storeId">
/// The store identifier to apply the rule to
/// </param>
/// <param name="type">
/// The type of substitution
/// </param>
/// <param name="fileId">
/// The file ID of the chunk to substitute
/// </param>
Expand All @@ -77,6 +74,9 @@ public sealed partial class ChunkSearchResultRule
/// <param name="resultIndex">
/// The index where the result will be inserted
/// </param>
/// <param name="type">
/// The type of substitution
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -90,10 +90,10 @@ public ChunkSearchResultRule(
{
this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query));
this.StoreId = storeId ?? throw new global::System.ArgumentNullException(nameof(storeId));
this.Type = type;
this.FileId = fileId ?? throw new global::System.ArgumentNullException(nameof(fileId));
this.ChunkIndex = chunkIndex;
this.ResultIndex = resultIndex;
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public sealed partial class CodeChunkGeneratedMetadata
/// <summary>
/// Initializes a new instance of the <see cref="CodeChunkGeneratedMetadata" /> class.
/// </summary>
/// <param name="fileType"></param>
/// <param name="type">
/// Default Value: code
/// </param>
/// <param name="fileType"></param>
/// <param name="language"></param>
/// <param name="wordCount"></param>
/// <param name="fileSize"></param>
Expand All @@ -93,8 +93,8 @@ public CodeChunkGeneratedMetadata(
int? numLines,
string? fileExtension)
{
this.FileType = fileType ?? throw new global::System.ArgumentNullException(nameof(fileType));
this.Type = type;
this.FileType = fileType ?? throw new global::System.ArgumentNullException(nameof(fileType));
this.Language = language;
this.WordCount = wordCount;
this.FileSize = fileSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ public sealed partial class DataSourceApiKeyParams
/// <summary>
/// Initializes a new instance of the <see cref="DataSourceApiKeyParams" /> class.
/// </summary>
/// <param name="type">
/// Default Value: api_key
/// </param>
/// <param name="apiKey">
/// The API key
/// </param>
/// <param name="type">
/// Default Value: api_key
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DataSourceApiKeyParams(
string apiKey,
string? type)
{
this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
this.Type = type;
this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,19 @@ public sealed partial class DataSourceConnector
/// <param name="dataSourceId">
/// The ID of the data source
/// </param>
/// <param name="pollingInterval">
/// The polling interval of the connector
/// </param>
/// <param name="status">
/// The sync status of the connector
/// </param>
/// <param name="name">
/// The name of the connector<br/>
/// Default Value: New Connector
/// </param>
/// <param name="metadata">
/// The metadata of the connector
/// </param>
/// <param name="pollingInterval">
/// The polling interval of the connector
/// </param>
/// <param name="startedAt">
/// The start time of the connector
/// </param>
Expand All @@ -145,9 +148,6 @@ public sealed partial class DataSourceConnector
/// <param name="lastSyncedAt">
/// The last sync time of the connector
/// </param>
/// <param name="status">
/// The sync status of the connector
/// </param>
/// <param name="error">
/// The sync error of the connector
/// </param>
Expand Down Expand Up @@ -179,13 +179,13 @@ public DataSourceConnector(
this.UpdatedAt = updatedAt;
this.StoreId = storeId ?? throw new global::System.ArgumentNullException(nameof(storeId));
this.DataSourceId = dataSourceId ?? throw new global::System.ArgumentNullException(nameof(dataSourceId));
this.PollingInterval = pollingInterval ?? throw new global::System.ArgumentNullException(nameof(pollingInterval));
this.Status = status;
this.Name = name;
this.Metadata = metadata;
this.PollingInterval = pollingInterval ?? throw new global::System.ArgumentNullException(nameof(pollingInterval));
this.StartedAt = startedAt;
this.FinishedAt = finishedAt;
this.LastSyncedAt = lastSyncedAt;
this.Status = status;
this.Error = error;
this.Object = @object;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public sealed partial class DeprecatedStoreFileUpsertParams
/// <summary>
/// Initializes a new instance of the <see cref="DeprecatedStoreFileUpsertParams" /> class.
/// </summary>
/// <param name="fileId">
/// ID of the file to add
/// </param>
/// <param name="metadata">
/// Optional metadata for the file
/// </param>
Expand All @@ -71,9 +74,6 @@ public sealed partial class DeprecatedStoreFileUpsertParams
/// If true, overwrite an existing file with the same external_id<br/>
/// Default Value: true
/// </param>
/// <param name="fileId">
/// ID of the file to add
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -84,11 +84,11 @@ public DeprecatedStoreFileUpsertParams(
string? externalId,
bool? overwrite)
{
this.FileId = fileId;
this.Metadata = metadata;
this.Config = config;
this.ExternalId = externalId;
this.Overwrite = overwrite;
this.FileId = fileId;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ public sealed partial class DocumentParserResult
/// <summary>
/// Initializes a new instance of the <see cref="DocumentParserResult" /> class.
/// </summary>
/// <param name="chunkingStrategy">
/// The strategy used for chunking the document
/// </param>
/// <param name="returnFormat">
/// The format of the returned content
/// </param>
Expand All @@ -64,6 +61,9 @@ public sealed partial class DocumentParserResult
/// <param name="chunks">
/// List of extracted chunks from the document
/// </param>
/// <param name="chunkingStrategy">
/// The strategy used for chunking the document
/// </param>
/// <param name="pageSizes">
/// List of (width, height) tuples for each page
/// </param>
Expand All @@ -77,10 +77,10 @@ public DocumentParserResult(
global::Mixedbread.ChunkingStrategy chunkingStrategy,
global::System.Collections.Generic.IList<byte[]>? pageSizes)
{
this.ChunkingStrategy = chunkingStrategy;
this.ReturnFormat = returnFormat;
this.ElementTypes = elementTypes ?? throw new global::System.ArgumentNullException(nameof(elementTypes));
this.Chunks = chunks ?? throw new global::System.ArgumentNullException(nameof(chunks));
this.ChunkingStrategy = chunkingStrategy;
this.PageSizes = pageSizes;
}

Expand Down
Loading