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
2 changes: 1 addition & 1 deletion src/libs/Lakera/Generated/Lakera.ILakeraClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public partial interface ILakeraClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class ContentPartTypeJsonConverter : global::System.Text.Json.Seri
{
return global::Lakera.ContentPartTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class ContentPartTypeNullableJsonConverter : global::System.Text.J
{
return global::Lakera.ContentPartTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class GuardMessageRoleJsonConverter : global::System.Text.Json.Ser
{
return global::Lakera.GuardMessageRoleExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class GuardMessageRoleNullableJsonConverter : global::System.Text.
{
return global::Lakera.GuardMessageRoleExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class ModeratedContentDetectorConfigCategorieJsonConverter : globa
{
return global::Lakera.ModeratedContentDetectorConfigCategorieExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class ModeratedContentDetectorConfigCategorieNullableJsonConverter
{
return global::Lakera.ModeratedContentDetectorConfigCategorieExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization
{
return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp);
}

return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp);
}
if (reader.TryGetInt32(out int unixTimestampInt))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Lakera
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Expand Down
94 changes: 47 additions & 47 deletions src/libs/Lakera/Generated/Lakera.JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,196 +6,196 @@
namespace Lakera
{
/// <summary>
///
///
/// </summary>
public sealed partial class JsonSerializerContextTypes
{
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, string>? StringStringDictionary { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, object>? StringObjectDictionary { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.JsonElement? JsonElement { get; set; }

/// <summary>
///
///
/// </summary>
public global::Lakera.GuardRequest? Type0 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Lakera.GuardMessage>? Type1 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.GuardMessage? Type2 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.Policy? Type3 { get; set; }
/// <summary>
///
///
/// </summary>
public bool? Type4 { get; set; }
/// <summary>
///
///
/// </summary>
public object? Type5 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.GuardMessageRole? Type6 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.OneOf<string, global::System.Collections.Generic.IList<global::Lakera.ContentPart>>? Type7 { get; set; }
/// <summary>
///
///
/// </summary>
public string? Type8 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Lakera.ContentPart>? Type9 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.ContentPart? Type10 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.ContentPartType? Type11 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.ImageUrl? Type12 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.DetectorConfig? Type13 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.PiiDetectorConfig? Type14 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.LanguageDetectorConfig? Type15 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.ModeratedContentDetectorConfig? Type16 { get; set; }
/// <summary>
///
///
/// </summary>
public double? Type17 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<string>? Type18 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Lakera.ModeratedContentDetectorConfigCategorie>? Type19 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.ModeratedContentDetectorConfigCategorie? Type20 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.GuardResponse? Type21 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.Categories? Type22 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Lakera.MessageBreakdown>? Type23 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.MessageBreakdown? Type24 { get; set; }
/// <summary>
///
///
/// </summary>
public int? Type25 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.GuardResultsResponse? Type26 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Lakera.DetectorResult>? Type27 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.DetectorResult? Type28 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Lakera.DetailedMessageBreakdown>? Type29 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.DetailedMessageBreakdown? Type30 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Lakera.DetectorMatch>? Type31 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.DetectorMatch? Type32 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.ErrorResponse? Type33 { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Lakera.GuardMessage>? ListType0 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Lakera.OneOf<string, global::System.Collections.Generic.List<global::Lakera.ContentPart>>? ListType1 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Lakera.ContentPart>? ListType2 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<string>? ListType3 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Lakera.ModeratedContentDetectorConfigCategorie>? ListType4 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Lakera.MessageBreakdown>? ListType5 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Lakera.DetectorResult>? ListType6 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Lakera.DetailedMessageBreakdown>? ListType7 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Lakera.DetectorMatch>? ListType8 { get; set; }
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Lakera/Generated/Lakera.LakeraClient.Guard.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ partial void ProcessGuardResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ partial void ProcessGuardResultsResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Lakera/Generated/Lakera.LakeraClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public sealed partial class LakeraClient : global::Lakera.ILakeraClient, global:
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Lakera.SourceGenerationContext.Default);

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Lakera/Generated/Lakera.Models.ContentPart.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Lakera
{
/// <summary>
///
///
/// </summary>
public sealed partial class ContentPart
{
Expand All @@ -23,7 +23,7 @@ public sealed partial class ContentPart
public string? Text { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image_url")]
public global::Lakera.ImageUrl? ImageUrl { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Lakera/Generated/Lakera.Models.ContentPartType.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace Lakera
public enum ContentPartType
{
/// <summary>
///
///
/// </summary>
ImageUrl,
/// <summary>
///
///
/// </summary>
Text,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Lakera
{
/// <summary>
///
///
/// </summary>
public sealed partial class DetailedMessageBreakdown
{
Expand Down
Loading