diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITrackingClient.GetRequestAnalyticsCustomAnalytics.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITrackingClient.GetRequestAnalyticsCustomAnalytics.g.cs new file mode 100644 index 0000000..ef195db --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITrackingClient.GetRequestAnalyticsCustomAnalytics.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITrackingClient + { + /// + /// Request Analytics Custom Analytics + /// + /// + /// 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 GetRequestAnalyticsCustomAnalyticsAsync( + + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Request Analytics Custom Analytics + /// + /// + /// 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> GetRequestAnalyticsCustomAnalyticsAsResponseAsync( + + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Request Analytics Custom Analytics + /// + /// + /// Nested filter group with AND/OR logic. + /// + /// + /// Free-text search query. + /// + /// + /// Accepted for compatibility; does not affect aggregated output. + /// + /// + /// + /// One or more chart definitions to compute. Chart ids must be unique. + /// + /// 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 GetRequestAnalyticsCustomAnalyticsAsync( + global::System.Collections.Generic.IList customCharts, + global::PromptLayer.StructuredFilterGroup? filterGroup = default, + string? q = default, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? sortBy = default, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? sortOrder = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsResultChartType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsResultChartType.g.cs new file mode 100644 index 0000000..367532b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsResultChartType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsResultChartTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsResultChartType 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::PromptLayer.CustomAnalyticsResultChartTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsResultChartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsResultChartType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsResultChartType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CustomAnalyticsResultChartTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeNullable.g.cs new file mode 100644 index 0000000..9d4e483 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsResultChartTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsResultChartType? 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::PromptLayer.CustomAnalyticsResultChartTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsResultChartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsResultChartType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsResultChartType? 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::PromptLayer.CustomAnalyticsResultChartTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnit.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnit.g.cs new file mode 100644 index 0000000..ac9e004 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnit.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSeriesMetaUnitJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSeriesMetaUnit 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::PromptLayer.CustomAnalyticsSeriesMetaUnitExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSeriesMetaUnit)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSeriesMetaUnit); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSeriesMetaUnit value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CustomAnalyticsSeriesMetaUnitExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitNullable.g.cs new file mode 100644 index 0000000..04fe1f4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSeriesMetaUnitNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSeriesMetaUnit? 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::PromptLayer.CustomAnalyticsSeriesMetaUnitExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSeriesMetaUnit)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSeriesMetaUnit?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSeriesMetaUnit? 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::PromptLayer.CustomAnalyticsSeriesMetaUnitExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetric.g.cs new file mode 100644 index 0000000..7915162 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetric.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSeriesSpecMetricJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSeriesSpecMetric 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::PromptLayer.CustomAnalyticsSeriesSpecMetricExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSeriesSpecMetric)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSeriesSpecMetric); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSeriesSpecMetric value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CustomAnalyticsSeriesSpecMetricExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricField.g.cs new file mode 100644 index 0000000..2f6c5e6 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSeriesSpecMetricFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSeriesSpecMetricField 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::PromptLayer.CustomAnalyticsSeriesSpecMetricFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSeriesSpecMetricField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSeriesSpecMetricField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSeriesSpecMetricField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CustomAnalyticsSeriesSpecMetricFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldNullable.g.cs new file mode 100644 index 0000000..5629898 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSeriesSpecMetricFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSeriesSpecMetricField? 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::PromptLayer.CustomAnalyticsSeriesSpecMetricFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSeriesSpecMetricField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSeriesSpecMetricField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSeriesSpecMetricField? 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::PromptLayer.CustomAnalyticsSeriesSpecMetricFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricNullable.g.cs new file mode 100644 index 0000000..73862cd --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSeriesSpecMetricNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSeriesSpecMetric? 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::PromptLayer.CustomAnalyticsSeriesSpecMetricExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSeriesSpecMetric)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSeriesSpecMetric?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSeriesSpecMetric? 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::PromptLayer.CustomAnalyticsSeriesSpecMetricExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecChartType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecChartType.g.cs new file mode 100644 index 0000000..a8ec005 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecChartType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSpecChartTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSpecChartType 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::PromptLayer.CustomAnalyticsSpecChartTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSpecChartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSpecChartType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSpecChartType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CustomAnalyticsSpecChartTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeNullable.g.cs new file mode 100644 index 0000000..81298d8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSpecChartTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSpecChartType? 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::PromptLayer.CustomAnalyticsSpecChartTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSpecChartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSpecChartType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSpecChartType? 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::PromptLayer.CustomAnalyticsSpecChartTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByField.g.cs new file mode 100644 index 0000000..0feb31f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSpecGroupByFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSpecGroupByField 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::PromptLayer.CustomAnalyticsSpecGroupByFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSpecGroupByField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSpecGroupByField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSpecGroupByField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CustomAnalyticsSpecGroupByFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldNullable.g.cs new file mode 100644 index 0000000..a956750 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSpecGroupByFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSpecGroupByField? 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::PromptLayer.CustomAnalyticsSpecGroupByFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSpecGroupByField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSpecGroupByField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSpecGroupByField? 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::PromptLayer.CustomAnalyticsSpecGroupByFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetric.g.cs new file mode 100644 index 0000000..74fbf2a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetric.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSpecMetricJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSpecMetric 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::PromptLayer.CustomAnalyticsSpecMetricExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSpecMetric)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSpecMetric); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSpecMetric value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CustomAnalyticsSpecMetricExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricField.g.cs new file mode 100644 index 0000000..125835f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSpecMetricFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSpecMetricField 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::PromptLayer.CustomAnalyticsSpecMetricFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSpecMetricField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSpecMetricField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSpecMetricField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CustomAnalyticsSpecMetricFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldNullable.g.cs new file mode 100644 index 0000000..b7e1b9a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSpecMetricFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSpecMetricField? 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::PromptLayer.CustomAnalyticsSpecMetricFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSpecMetricField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSpecMetricField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSpecMetricField? 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::PromptLayer.CustomAnalyticsSpecMetricFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricNullable.g.cs new file mode 100644 index 0000000..2de606f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CustomAnalyticsSpecMetricNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CustomAnalyticsSpecMetricNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CustomAnalyticsSpecMetric? 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::PromptLayer.CustomAnalyticsSpecMetricExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CustomAnalyticsSpecMetric)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CustomAnalyticsSpecMetric?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CustomAnalyticsSpecMetric? 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::PromptLayer.CustomAnalyticsSpecMetricExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightResultType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightResultType.g.cs new file mode 100644 index 0000000..b18f3a3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightResultType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class DerivedRatioInsightResultTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.DerivedRatioInsightResultType 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::PromptLayer.DerivedRatioInsightResultTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.DerivedRatioInsightResultType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.DerivedRatioInsightResultType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.DerivedRatioInsightResultType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.DerivedRatioInsightResultTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightResultTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightResultTypeNullable.g.cs new file mode 100644 index 0000000..fda6dca --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightResultTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class DerivedRatioInsightResultTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.DerivedRatioInsightResultType? 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::PromptLayer.DerivedRatioInsightResultTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.DerivedRatioInsightResultType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.DerivedRatioInsightResultType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.DerivedRatioInsightResultType? 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::PromptLayer.DerivedRatioInsightResultTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightSpecType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightSpecType.g.cs new file mode 100644 index 0000000..80400c9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightSpecType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class DerivedRatioInsightSpecTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.DerivedRatioInsightSpecType 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::PromptLayer.DerivedRatioInsightSpecTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.DerivedRatioInsightSpecType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.DerivedRatioInsightSpecType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.DerivedRatioInsightSpecType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.DerivedRatioInsightSpecTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeNullable.g.cs new file mode 100644 index 0000000..1b2c66d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class DerivedRatioInsightSpecTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.DerivedRatioInsightSpecType? 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::PromptLayer.DerivedRatioInsightSpecTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.DerivedRatioInsightSpecType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.DerivedRatioInsightSpecType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.DerivedRatioInsightSpecType? 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::PromptLayer.DerivedRatioInsightSpecTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortBy.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortBy.g.cs new file mode 100644 index 0000000..5c30015 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortBy.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class RequestAnalyticsCustomAnalyticsQuerySortByJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortByExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortByExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByNullable.g.cs new file mode 100644 index 0000000..1fd8860 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class RequestAnalyticsCustomAnalyticsQuerySortByNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortByExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortByExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrder.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrder.g.cs new file mode 100644 index 0000000..8f14cf4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrder.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class RequestAnalyticsCustomAnalyticsQuerySortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullable.g.cs new file mode 100644 index 0000000..e45f968 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class RequestAnalyticsCustomAnalyticsQuerySortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs index 2b07895..129ca9a 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs @@ -417,6 +417,54 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.TableCellStatusNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightResultTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightResultTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter), typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter), @@ -859,6 +907,8 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_a2e389e01f671d8d")] @@ -1345,22 +1395,22 @@ namespace PromptLayer [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreColumnResolvedScoringType), TypeInfoPropertyName = "TableSheetScoreColumnResolvedScoringType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreConfigurationScoreType), TypeInfoPropertyName = "TableSheetScoreConfigurationScoreType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableCellStatus), TypeInfoPropertyName = "TableCellStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreatePromptLabelRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TrackGroupRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TrackScoreRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddReportColumnRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddReportColumnRequestColumnType), TypeInfoPropertyName = "AddReportColumnRequestColumnType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RunReportRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecutionType), TypeInfoPropertyName = "CreateToolRegistryRequestExecutionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecutionLanguage), TypeInfoPropertyName = "CreateToolRegistryRequestExecutionLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf), TypeInfoPropertyName = "OneOfCreateTableSheetRequestSourceFileSourceCreateTableSheetRequestSourceRequestLogsSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceFileSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightSpec))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightSpecType), TypeInfoPropertyName = "DerivedRatioInsightSpecType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightResultType), TypeInfoPropertyName = "DerivedRatioInsightResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpec))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecChartType), TypeInfoPropertyName = "CustomAnalyticsSpecChartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecMetric), TypeInfoPropertyName = "CustomAnalyticsSpecMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecMetricField), TypeInfoPropertyName = "CustomAnalyticsSpecMetricField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesSpec))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecGroupByField), TypeInfoPropertyName = "CustomAnalyticsSpecGroupByField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesSpecMetric), TypeInfoPropertyName = "CustomAnalyticsSeriesSpecMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesSpecMetricField), TypeInfoPropertyName = "CustomAnalyticsSeriesSpecMetricField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesMeta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesMetaUnit), TypeInfoPropertyName = "CustomAnalyticsSeriesMetaUnit2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1776,6 +1826,54 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.TableCellStatusNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightResultTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightResultTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter), typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter), @@ -2218,6 +2316,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_a2e389e01f671d8d")] @@ -2225,6 +2325,32 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>?), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_47a8c666c2b64908")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf?), TypeInfoPropertyName = "GetReportScoreResponseScoreDetailsVariant4_819979ee8daaec57")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_13c51ceff6c2844e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsResultChartType), TypeInfoPropertyName = "CustomAnalyticsResultChartType2")] + [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::PromptLayer.RequestAnalyticsCustomAnalyticsQuery))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy), TypeInfoPropertyName = "RequestAnalyticsCustomAnalyticsQuerySortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder), TypeInfoPropertyName = "RequestAnalyticsCustomAnalyticsQuerySortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreatePromptLabelRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TrackGroupRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TrackScoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddReportColumnRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddReportColumnRequestColumnType), TypeInfoPropertyName = "AddReportColumnRequestColumnType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RunReportRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecutionType), TypeInfoPropertyName = "CreateToolRegistryRequestExecutionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecutionLanguage), TypeInfoPropertyName = "CreateToolRegistryRequestExecutionLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf), TypeInfoPropertyName = "OneOfCreateTableSheetRequestSourceFileSourceCreateTableSheetRequestSourceRequestLogsSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceFileSource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceFileSourceType), TypeInfoPropertyName = "CreateTableSheetRequestSourceFileSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType), TypeInfoPropertyName = "CreateTableSheetRequestSourceRequestLogsSourceType2")] @@ -2480,6 +2606,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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::PromptLayer.AnyOf>))] @@ -2746,6 +2878,30 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.TableCellStatusJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.TableCellStatusNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.DerivedRatioInsightResultTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.DerivedRatioInsightResultTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeJsonConverter()); @@ -2967,6 +3123,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.UnixTimestampJsonConverter()); return options; diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs index e981ae1..363c85f 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs @@ -1940,799 +1940,903 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::PromptLayer.CreatePromptLabelRequest? Type478 { get; set; } + public global::PromptLayer.DerivedRatioInsightSpec? Type478 { get; set; } /// /// /// - public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type479 { get; set; } + public global::PromptLayer.DerivedRatioInsightSpecType? Type479 { get; set; } /// /// /// - public global::PromptLayer.TrackGroupRequest? Type480 { get; set; } + public global::PromptLayer.DerivedRatioInsightResult? Type480 { get; set; } /// /// /// - public global::PromptLayer.TrackScoreRequest? Type481 { get; set; } + public global::PromptLayer.DerivedRatioInsightResultType? Type481 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnRequest? Type482 { get; set; } + public global::PromptLayer.CustomAnalyticsSpec? Type482 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnRequestColumnType? Type483 { get; set; } + public global::PromptLayer.CustomAnalyticsSpecChartType? Type483 { get; set; } /// /// /// - public global::PromptLayer.RunReportRequest? Type484 { get; set; } + public global::PromptLayer.CustomAnalyticsSpecMetric? Type484 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequest? Type485 { get; set; } + public global::PromptLayer.CustomAnalyticsSpecMetricField? Type485 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecution? Type486 { get; set; } + public global::System.Collections.Generic.IList? Type486 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type487 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesSpec? Type487 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type488 { get; set; } + public global::System.Collections.Generic.IList? Type488 { get; set; } /// /// /// - public global::PromptLayer.CreateTableRequest? Type489 { get; set; } + public global::PromptLayer.CustomAnalyticsSpecGroupByField? Type489 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableRequest? Type490 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesSpecMetric? Type490 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequest? Type491 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesSpecMetricField? Type491 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type492 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesMeta? Type492 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceFileSource? Type493 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesMetaUnit? Type493 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceFileSourceType? Type494 { get; set; } + public global::PromptLayer.CustomAnalyticsResult? Type494 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource? Type495 { get; set; } + public global::PromptLayer.CustomAnalyticsResultChartType? Type495 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType? Type496 { get; set; } + public global::System.Collections.Generic.IList? Type496 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetRequest? Type497 { get; set; } + public global::System.Collections.Generic.IList? Type497 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequest? Type498 { get; set; } + public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery? Type498 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequestType? Type499 { get; set; } + public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? Type499 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type500 { get; set; } + public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? Type500 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequestDependencie? Type501 { get; set; } + public global::System.Collections.Generic.IList? Type501 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnRequest? Type502 { get; set; } + public global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse? Type502 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type503 { get; set; } + public global::System.Collections.Generic.IList? Type503 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnRequestDependencie? Type504 { get; set; } + public global::PromptLayer.CreatePromptLabelRequest? Type504 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsRequest? Type505 { get; set; } + public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type505 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellRequest? Type506 { get; set; } + public global::PromptLayer.TrackGroupRequest? Type506 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest? Type507 { get; set; } + public global::PromptLayer.TrackScoreRequest? Type507 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequest? Type508 { get; set; } + public global::PromptLayer.AddReportColumnRequest? Type508 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecution? Type509 { get; set; } + public global::PromptLayer.AddReportColumnRequestColumnType? Type509 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecutionType? Type510 { get; set; } + public global::PromptLayer.RunReportRequest? Type510 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type511 { get; set; } + public global::PromptLayer.CreateToolRegistryRequest? Type511 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequest? Type512 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecution? Type512 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecution? Type513 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type513 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecutionType? Type514 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type514 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type515 { get; set; } + public global::PromptLayer.CreateTableRequest? Type515 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarRequest? Type516 { get; set; } + public global::PromptLayer.UpdateTableRequest? Type516 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarRequest? Type517 { get; set; } + public global::PromptLayer.CreateTableSheetRequest? Type517 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarRequest? Type518 { get; set; } + public global::PromptLayer.OneOf? Type518 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarRequest? Type519 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceFileSource? Type519 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsStatus? Type520 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceFileSourceType? Type520 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsSortBy? Type521 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource? Type521 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsSortOrder? Type522 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType? Type522 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsStatus? Type523 { get; set; } + public global::PromptLayer.UpdateTableSheetRequest? Type523 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsSortBy? Type524 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequest? Type524 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsSortOrder? Type525 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequestType? Type525 { get; set; } /// /// /// - public global::PromptLayer.AnyOf>? Type526 { get; set; } + public global::System.Collections.Generic.IList? Type526 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type527 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequestDependencie? Type527 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type528 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnRequest? Type528 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type529 { get; set; } + public global::System.Collections.Generic.IList? Type529 { get; set; } /// /// /// - public long? Type530 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnRequestDependencie? Type530 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsSortBy? Type531 { get; set; } + public global::PromptLayer.AddTableSheetRowsRequest? Type531 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsSortOrder? Type532 { get; set; } + public global::PromptLayer.UpdateTableSheetCellRequest? Type532 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type533 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest? Type533 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type534 { get; set; } + public global::PromptLayer.CreateToolVersionRequest? Type534 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type535 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecution? Type535 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type536 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecutionType? Type536 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type537 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type537 { get; set; } /// /// /// - public global::PromptLayer.OneOf>? Type538 { get; set; } + public global::PromptLayer.TestExecuteToolRequest? Type538 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesContentType? Type539 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecution? Type539 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesContentEncoding? Type540 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecutionType? Type540 { get; set; } /// /// /// - public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type541 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type541 { get; set; } /// /// /// - public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type542 { get; set; } + public global::PromptLayer.CreateWorkspaceEnvVarRequest? Type542 { get; set; } /// /// /// - public global::PromptLayer.GetSkillCollectionPublicFormat? Type543 { get; set; } + public global::PromptLayer.UpdateWorkspaceEnvVarRequest? Type543 { get; set; } /// /// /// - public global::PromptLayer.GetRequestSearchSuggestionsField? Type544 { get; set; } + public global::PromptLayer.CreateToolEnvVarRequest? Type544 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesSortBy? Type545 { get; set; } + public global::PromptLayer.UpdateToolEnvVarRequest? Type545 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesSortOrder? Type546 { get; set; } + public global::PromptLayer.ListDatasetsStatus? Type546 { get; set; } /// /// /// - public global::PromptLayer.ListTablesOrder? Type547 { get; set; } + public global::PromptLayer.ListDatasetsSortBy? Type547 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetsOrder? Type548 { get; set; } + public global::PromptLayer.ListDatasetsSortOrder? Type548 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsOrder? Type549 { get; set; } + public global::PromptLayer.ListEvaluationsStatus? Type549 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetVersionsSort? Type550 { get; set; } + public global::PromptLayer.ListEvaluationsSortBy? Type550 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetVersionsOrder? Type551 { get; set; } + public global::PromptLayer.ListEvaluationsSortOrder? Type551 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetVersionScoreHistoryRange? Type552 { get; set; } + public global::PromptLayer.AnyOf>? Type552 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? Type553 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type553 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type554 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type554 { get; set; } /// /// /// - public global::PromptLayer.CreatePromptLabelResponse? Type555 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type555 { get; set; } /// /// /// - public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type556 { get; set; } + public long? Type556 { get; set; } /// /// /// - public global::PromptLayer.TrackGroupResponse? Type557 { get; set; } + public global::PromptLayer.ListWorkflowsSortBy? Type557 { get; set; } /// /// /// - public global::PromptLayer.TrackScoreResponse? Type558 { get; set; } + public global::PromptLayer.ListWorkflowsSortOrder? Type558 { get; set; } /// /// /// - public global::PromptLayer.DeleteReportsByNameResponse? Type559 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type559 { get; set; } /// /// /// - public global::PromptLayer.CreateEvaluationPipelineResponse2? Type560 { get; set; } + public global::System.Collections.Generic.IList? Type560 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse? Type561 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type561 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse2? Type562 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type562 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse3? Type563 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type563 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse4? Type564 { get; set; } + public global::PromptLayer.OneOf>? Type564 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse? Type565 { get; set; } + public global::PromptLayer.IngestOtlpTracesContentType? Type565 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse2? Type566 { get; set; } + public global::PromptLayer.IngestOtlpTracesContentEncoding? Type566 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse3? Type567 { get; set; } + public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type567 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse4? Type568 { get; set; } + public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type568 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse5? Type569 { get; set; } + public global::PromptLayer.GetSkillCollectionPublicFormat? Type569 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponse? Type570 { get; set; } + public global::PromptLayer.GetRequestSearchSuggestionsField? Type570 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseReport? Type571 { get; set; } + public global::PromptLayer.ListToolRegistriesSortBy? Type571 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStatus? Type572 { get; set; } + public global::PromptLayer.ListToolRegistriesSortOrder? Type572 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStats? Type573 { get; set; } + public global::PromptLayer.ListTablesOrder? Type573 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStatsStatusCounts? Type574 { get; set; } + public global::PromptLayer.ListTableSheetsOrder? Type574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type575 { get; set; } + public global::PromptLayer.ListTableSheetRowsOrder? Type575 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseReportColumn? Type576 { get; set; } + public global::PromptLayer.ListTableSheetVersionsSort? Type576 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponse? Type577 { get; set; } + public global::PromptLayer.ListTableSheetVersionsOrder? Type577 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScore? Type578 { get; set; } + public global::PromptLayer.GetTableSheetVersionScoreHistoryRange? Type578 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type579 { get; set; } + public global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? Type579 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type580 { get; set; } + public global::PromptLayer.OneOf? Type580 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type581 { get; set; } + public global::PromptLayer.CreatePromptLabelResponse? Type581 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type582 { get; set; } + public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type582 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type583 { get; set; } + public global::PromptLayer.TrackGroupResponse? Type583 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type584 { get; set; } + public global::PromptLayer.TrackScoreResponse? Type584 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type585 { get; set; } + public global::PromptLayer.DeleteReportsByNameResponse? Type585 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsResponse? Type586 { get; set; } + public global::PromptLayer.CreateEvaluationPipelineResponse2? Type586 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type587 { get; set; } + public global::PromptLayer.AddReportColumnResponse? Type587 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsResponse? Type588 { get; set; } + public global::PromptLayer.AddReportColumnResponse2? Type588 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type589 { get; set; } + public global::PromptLayer.AddReportColumnResponse3? Type589 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type590 { get; set; } + public global::PromptLayer.AddReportColumnResponse4? Type590 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type591 { get; set; } + public global::PromptLayer.RunReportResponse? Type591 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type592 { get; set; } + public global::PromptLayer.RunReportResponse2? Type592 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type593 { get; set; } + public global::PromptLayer.RunReportResponse3? Type593 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type594 { get; set; } + public global::PromptLayer.RunReportResponse4? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type595 { get; set; } + public global::PromptLayer.RunReportResponse5? Type595 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type596 { get; set; } + public global::PromptLayer.GetReportResponse? Type596 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse? Type597 { get; set; } + public global::PromptLayer.GetReportResponseReport? Type597 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type598 { get; set; } + public global::PromptLayer.GetReportResponseStatus? Type598 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponseItem? Type599 { get; set; } + public global::PromptLayer.GetReportResponseStats? Type599 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse2? Type600 { get; set; } + public global::PromptLayer.GetReportResponseStatsStatusCounts? Type600 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse3? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponse? Type602 { get; set; } + public global::PromptLayer.GetReportResponseReportColumn? Type602 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type603 { get; set; } + public global::PromptLayer.GetReportScoreResponse? Type603 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseNode? Type604 { get; set; } + public global::PromptLayer.GetReportScoreResponseScore? Type604 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type605 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type605 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseEdge? Type606 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type606 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponse? Type607 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type607 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type608 { get; set; } + public global::System.Collections.Generic.IList? Type608 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type609 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type609 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type610 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type610 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesResponse2? Type611 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type611 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponse? Type612 { get; set; } + public global::PromptLayer.ListDatasetsResponse? Type612 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type613 { get; set; } + public global::System.Collections.Generic.IList? Type613 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type614 { get; set; } + public global::PromptLayer.ListEvaluationsResponse? Type614 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryResponse? Type615 { get; set; } + public global::System.Collections.Generic.IList? Type615 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponse? Type616 { get; set; } + public global::PromptLayer.AnyOf? Type616 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type617 { get; set; } + public global::PromptLayer.OneOf, object>? Type617 { get; set; } /// /// /// - public global::PromptLayer.CreateTableResponse? Type618 { get; set; } + public global::System.Collections.Generic.Dictionary? Type618 { get; set; } /// /// /// - public global::PromptLayer.ListTablesResponse? Type619 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type619 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type620 { get; set; } + public global::PromptLayer.OneOf, object>? Type620 { get; set; } /// /// /// - public global::PromptLayer.GetTableResponse? Type621 { get; set; } + public global::System.Collections.Generic.Dictionary? Type621 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableResponse? Type622 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type622 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetsResponse? Type623 { get; set; } + public global::PromptLayer.ListWorkflowsResponse? Type623 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type624 { get; set; } + public global::System.Collections.Generic.IList? Type624 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetResponse? Type625 { get; set; } + public global::PromptLayer.ListWorkflowsResponseItem? Type625 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetOperationResponse2? Type626 { get; set; } + public global::PromptLayer.ListWorkflowsResponse2? Type626 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetResponse? Type627 { get; set; } + public global::PromptLayer.ListWorkflowsResponse3? Type627 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetResponse? Type628 { get; set; } + public global::PromptLayer.GetWorkflowResponse? Type628 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetColumnsResponse? Type629 { get; set; } + public global::System.Collections.Generic.IList? Type629 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type630 { get; set; } + public global::PromptLayer.GetWorkflowResponseNode? Type630 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnResponse? Type631 { get; set; } + public global::System.Collections.Generic.IList? Type631 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type632 { get; set; } + public global::PromptLayer.GetWorkflowResponseEdge? Type632 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnResponse? Type633 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponse? Type633 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponse? Type634 { get; set; } + public global::System.Collections.Generic.IList? Type634 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type635 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type635 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type636 { get; set; } + public global::PromptLayer.AnyOf? Type636 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type637 { get; set; } + public global::PromptLayer.IngestOtlpTracesResponse2? Type637 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponse? Type638 { get; set; } + public global::PromptLayer.ListToolRegistriesResponse? Type638 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type639 { get; set; } + public global::System.Collections.Generic.IList? Type639 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponseRow? Type640 { get; set; } + public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type640 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetCellResponse? Type641 { get; set; } + public global::PromptLayer.CreateToolRegistryResponse? Type641 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellResponse? Type642 { get; set; } + public global::PromptLayer.GetToolRegistryResponse? Type642 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type643 { get; set; } + public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type643 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type644 { get; set; } + public global::PromptLayer.CreateTableResponse? Type644 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionResponse? Type645 { get; set; } + public global::PromptLayer.ListTablesResponse? Type645 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponse? Type646 { get; set; } + public global::System.Collections.Generic.IList? Type646 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResult? Type647 { get; set; } + public global::PromptLayer.GetTableResponse? Type647 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResultStatus? Type648 { get; set; } + public global::PromptLayer.UpdateTableResponse? Type648 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse? Type649 { get; set; } + public global::PromptLayer.ListTableSheetsResponse? Type649 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosure? Type650 { get; set; } + public global::System.Collections.Generic.IList? Type650 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosureStatus? Type651 { get; set; } + public global::PromptLayer.CreateTableSheetResponse? Type651 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse2? Type652 { get; set; } + public global::PromptLayer.GetTableSheetOperationResponse2? Type652 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type653 { get; set; } + public global::PromptLayer.GetTableSheetResponse? Type653 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type654 { get; set; } + public global::PromptLayer.UpdateTableSheetResponse? Type654 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type655 { get; set; } + public global::PromptLayer.ListTableSheetColumnsResponse? Type655 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type656 { get; set; } + public global::System.Collections.Generic.IList? Type656 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type657 { get; set; } + public global::PromptLayer.CreateTableSheetColumnResponse? Type657 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type658 { get; set; } + public global::System.Collections.Generic.IList? Type658 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type659 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnResponse? Type659 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type660 { get; set; } + public global::PromptLayer.ListTableSheetRowsResponse? Type660 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type661 { get; set; } + public global::System.Collections.Generic.IList? Type661 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type662 { get; set; } + public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type662 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type663 { get; set; } + public global::System.Collections.Generic.Dictionary? Type663 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse? Type664 { get; set; } + public global::PromptLayer.AddTableSheetRowsResponse? Type664 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type665 { get; set; } + public global::System.Collections.Generic.IList? Type665 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type666 { get; set; } + public global::PromptLayer.AddTableSheetRowsResponseRow? Type666 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse2? Type667 { get; set; } + public global::PromptLayer.GetTableSheetCellResponse? Type667 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse? Type668 { get; set; } + public global::PromptLayer.UpdateTableSheetCellResponse? Type668 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type669 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type669 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse2? Type670 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type670 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse3? Type671 { get; set; } + public global::PromptLayer.CreateToolVersionResponse? Type671 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse? Type672 { get; set; } + public global::PromptLayer.TestExecuteToolResponse? Type672 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type673 { get; set; } + public global::PromptLayer.TestExecuteToolResponseResult? Type673 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse2? Type674 { get; set; } + public global::PromptLayer.TestExecuteToolResponseResultStatus? Type674 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse? Type675 { get; set; } + public global::PromptLayer.CloseTraceResponse? Type675 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse2? Type676 { get; set; } + public global::PromptLayer.CloseTraceResponseClosure? Type676 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponseClosureStatus? Type677 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponse2? Type678 { get; set; } + /// + /// + /// + public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type679 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type680 { get; set; } + /// + /// + /// + public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type681 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type682 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type683 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type684 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type685 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type686 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type687 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type688 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type689 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponse? Type690 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type691 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type692 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponse2? Type693 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse? Type694 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type695 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse2? Type696 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse3? Type697 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponse? Type698 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type699 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponse2? Type700 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse? Type701 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse2? Type702 { get; set; } /// /// @@ -3025,90 +3129,114 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType73 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType74 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType75 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType76 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType77 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::PromptLayer.AnyOf>? ListType74 { get; set; } + public global::PromptLayer.AnyOf>? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::PromptLayer.OneOf>? ListType76 { get; set; } + public global::PromptLayer.OneOf>? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } } } \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResult.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResult.Json.g.cs new file mode 100644 index 0000000..53a22f1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResult.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CustomAnalyticsResult + { + /// + /// 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::PromptLayer.CustomAnalyticsResult? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CustomAnalyticsResult), + jsonSerializerContext) as global::PromptLayer.CustomAnalyticsResult; + } + + /// + /// 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::PromptLayer.CustomAnalyticsResult? 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::PromptLayer.CustomAnalyticsResult), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CustomAnalyticsResult; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResult.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResult.g.cs new file mode 100644 index 0000000..5b4fe98 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResult.g.cs @@ -0,0 +1,100 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Computed result for a single custom analytics query. + /// + public sealed partial class CustomAnalyticsResult + { + /// + /// Echoes the chart id from the request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Chart title (echoed from request, or defaults to id). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chartType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CustomAnalyticsResultChartTypeJsonConverter))] + public global::PromptLayer.CustomAnalyticsResultChartType? ChartType { get; set; } + + /// + /// Series descriptors (one entry per series). For single-metric charts the only entry has key `value`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("series")] + public global::System.Collections.Generic.IList? Series { get; set; } + + /// + /// Rows of chart data. Each row has a `label` string and one numeric key per series. Time-series rows also include `bucketKey` (ISO date string). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public global::System.Collections.Generic.IList? Data { get; set; } + + /// + /// Computed ratio insights (multi-series charts only). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("derivedInsights")] + public global::System.Collections.Generic.IList? DerivedInsights { 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. + /// + /// + /// Echoes the chart id from the request. + /// + /// + /// Chart title (echoed from request, or defaults to id). + /// + /// + /// + /// Series descriptors (one entry per series). For single-metric charts the only entry has key `value`. + /// + /// + /// Rows of chart data. Each row has a `label` string and one numeric key per series. Time-series rows also include `bucketKey` (ISO date string). + /// + /// + /// Computed ratio insights (multi-series charts only). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CustomAnalyticsResult( + string? id, + string? title, + global::PromptLayer.CustomAnalyticsResultChartType? chartType, + global::System.Collections.Generic.IList? series, + global::System.Collections.Generic.IList? data, + global::System.Collections.Generic.IList? derivedInsights) + { + this.Id = id; + this.Title = title; + this.ChartType = chartType; + this.Series = series; + this.Data = data; + this.DerivedInsights = derivedInsights; + } + + /// + /// Initializes a new instance of the class. + /// + public CustomAnalyticsResult() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultChartType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultChartType.g.cs new file mode 100644 index 0000000..9abaed9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultChartType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum CustomAnalyticsResultChartType + { + /// + /// + /// + Area, + /// + /// + /// + Bar, + /// + /// + /// + Line, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomAnalyticsResultChartTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomAnalyticsResultChartType value) + { + return value switch + { + CustomAnalyticsResultChartType.Area => "area", + CustomAnalyticsResultChartType.Bar => "bar", + CustomAnalyticsResultChartType.Line => "line", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomAnalyticsResultChartType? ToEnum(string value) + { + return value switch + { + "area" => CustomAnalyticsResultChartType.Area, + "bar" => CustomAnalyticsResultChartType.Bar, + "line" => CustomAnalyticsResultChartType.Line, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultDataItem.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultDataItem.Json.g.cs new file mode 100644 index 0000000..8e705c2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultDataItem.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CustomAnalyticsResultDataItem + { + /// + /// 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::PromptLayer.CustomAnalyticsResultDataItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CustomAnalyticsResultDataItem), + jsonSerializerContext) as global::PromptLayer.CustomAnalyticsResultDataItem; + } + + /// + /// 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::PromptLayer.CustomAnalyticsResultDataItem? 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::PromptLayer.CustomAnalyticsResultDataItem), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CustomAnalyticsResultDataItem; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultDataItem.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultDataItem.g.cs new file mode 100644 index 0000000..d1f6a65 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsResultDataItem.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CustomAnalyticsResultDataItem + { + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMeta.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMeta.Json.g.cs new file mode 100644 index 0000000..3bc5a77 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMeta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CustomAnalyticsSeriesMeta + { + /// + /// 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::PromptLayer.CustomAnalyticsSeriesMeta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CustomAnalyticsSeriesMeta), + jsonSerializerContext) as global::PromptLayer.CustomAnalyticsSeriesMeta; + } + + /// + /// 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::PromptLayer.CustomAnalyticsSeriesMeta? 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::PromptLayer.CustomAnalyticsSeriesMeta), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CustomAnalyticsSeriesMeta; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMeta.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMeta.g.cs new file mode 100644 index 0000000..92e6c2b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMeta.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Metadata describing one series in a custom analytics query response. + /// + public sealed partial class CustomAnalyticsSeriesMeta + { + /// + /// Series key (matches keys in each data row). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public string? Key { get; set; } + + /// + /// Human-readable label. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + public string? Label { get; set; } + + /// + /// Unit hint for rendering axes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unit")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesMetaUnitJsonConverter))] + public global::PromptLayer.CustomAnalyticsSeriesMetaUnit? Unit { 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. + /// + /// + /// Series key (matches keys in each data row). + /// + /// + /// Human-readable label. + /// + /// + /// Unit hint for rendering axes. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CustomAnalyticsSeriesMeta( + string? key, + string? label, + global::PromptLayer.CustomAnalyticsSeriesMetaUnit? unit) + { + this.Key = key; + this.Label = label; + this.Unit = unit; + } + + /// + /// Initializes a new instance of the class. + /// + public CustomAnalyticsSeriesMeta() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMetaUnit.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMetaUnit.g.cs new file mode 100644 index 0000000..eb3a243 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesMetaUnit.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Unit hint for rendering axes. + /// + public enum CustomAnalyticsSeriesMetaUnit + { + /// + /// + /// + Count, + /// + /// + /// + Currency, + /// + /// + /// + DurationSeconds, + /// + /// + /// + Number, + /// + /// + /// + Tokens, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomAnalyticsSeriesMetaUnitExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomAnalyticsSeriesMetaUnit value) + { + return value switch + { + CustomAnalyticsSeriesMetaUnit.Count => "count", + CustomAnalyticsSeriesMetaUnit.Currency => "currency", + CustomAnalyticsSeriesMetaUnit.DurationSeconds => "duration_seconds", + CustomAnalyticsSeriesMetaUnit.Number => "number", + CustomAnalyticsSeriesMetaUnit.Tokens => "tokens", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomAnalyticsSeriesMetaUnit? ToEnum(string value) + { + return value switch + { + "count" => CustomAnalyticsSeriesMetaUnit.Count, + "currency" => CustomAnalyticsSeriesMetaUnit.Currency, + "duration_seconds" => CustomAnalyticsSeriesMetaUnit.DurationSeconds, + "number" => CustomAnalyticsSeriesMetaUnit.Number, + "tokens" => CustomAnalyticsSeriesMetaUnit.Tokens, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpec.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpec.Json.g.cs new file mode 100644 index 0000000..c5d1ae6 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpec.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CustomAnalyticsSeriesSpec + { + /// + /// 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::PromptLayer.CustomAnalyticsSeriesSpec? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CustomAnalyticsSeriesSpec), + jsonSerializerContext) as global::PromptLayer.CustomAnalyticsSeriesSpec; + } + + /// + /// 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::PromptLayer.CustomAnalyticsSeriesSpec? 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::PromptLayer.CustomAnalyticsSeriesSpec), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CustomAnalyticsSeriesSpec; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpec.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpec.g.cs new file mode 100644 index 0000000..904d260 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpec.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// One series in a multi-series custom analytics query. + /// + public sealed partial class CustomAnalyticsSeriesSpec + { + /// + /// Unique identifier for this series within the chart (alphanumeric, hyphens, underscores; max 64 chars). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Key { get; set; } + + /// + /// Human-readable series label shown in chart legends (max 120 chars). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// Aggregation function for this series. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metric")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.CustomAnalyticsSeriesSpecMetric Metric { get; set; } + + /// + /// Numeric field to aggregate. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metricField")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSeriesSpecMetricFieldJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.CustomAnalyticsSeriesSpecMetricField MetricField { get; set; } + + /// + /// Required when metric is `percentile`; omit otherwise. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("percentile")] + public double? Percentile { 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. + /// + /// + /// Unique identifier for this series within the chart (alphanumeric, hyphens, underscores; max 64 chars). + /// + /// + /// Human-readable series label shown in chart legends (max 120 chars). + /// + /// + /// Aggregation function for this series. + /// + /// + /// Numeric field to aggregate. + /// + /// + /// Required when metric is `percentile`; omit otherwise. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CustomAnalyticsSeriesSpec( + string key, + string label, + global::PromptLayer.CustomAnalyticsSeriesSpecMetric metric, + global::PromptLayer.CustomAnalyticsSeriesSpecMetricField metricField, + double? percentile) + { + this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key)); + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.Metric = metric; + this.MetricField = metricField; + this.Percentile = percentile; + } + + /// + /// Initializes a new instance of the class. + /// + public CustomAnalyticsSeriesSpec() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpecMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpecMetric.g.cs new file mode 100644 index 0000000..3ef9bfd --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpecMetric.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Aggregation function for this series. + /// + public enum CustomAnalyticsSeriesSpecMetric + { + /// + /// + /// + Avg, + /// + /// + /// + Max, + /// + /// + /// + Min, + /// + /// + /// + Percentile, + /// + /// + /// + Sum, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomAnalyticsSeriesSpecMetricExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomAnalyticsSeriesSpecMetric value) + { + return value switch + { + CustomAnalyticsSeriesSpecMetric.Avg => "avg", + CustomAnalyticsSeriesSpecMetric.Max => "max", + CustomAnalyticsSeriesSpecMetric.Min => "min", + CustomAnalyticsSeriesSpecMetric.Percentile => "percentile", + CustomAnalyticsSeriesSpecMetric.Sum => "sum", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomAnalyticsSeriesSpecMetric? ToEnum(string value) + { + return value switch + { + "avg" => CustomAnalyticsSeriesSpecMetric.Avg, + "max" => CustomAnalyticsSeriesSpecMetric.Max, + "min" => CustomAnalyticsSeriesSpecMetric.Min, + "percentile" => CustomAnalyticsSeriesSpecMetric.Percentile, + "sum" => CustomAnalyticsSeriesSpecMetric.Sum, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpecMetricField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpecMetricField.g.cs new file mode 100644 index 0000000..814e2ee --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSeriesSpecMetricField.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Numeric field to aggregate. + /// + public enum CustomAnalyticsSeriesSpecMetricField + { + /// + /// + /// + CachedTokens, + /// + /// + /// + Cost, + /// + /// + /// + InputTokens, + /// + /// + /// + LatencyMs, + /// + /// + /// + OutputTokens, + /// + /// + /// + PromptVersionNumber, + /// + /// + /// + ThinkingTokens, + /// + /// + /// + ToolCallCount, + /// + /// + /// + TurnCount, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomAnalyticsSeriesSpecMetricFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomAnalyticsSeriesSpecMetricField value) + { + return value switch + { + CustomAnalyticsSeriesSpecMetricField.CachedTokens => "cached_tokens", + CustomAnalyticsSeriesSpecMetricField.Cost => "cost", + CustomAnalyticsSeriesSpecMetricField.InputTokens => "input_tokens", + CustomAnalyticsSeriesSpecMetricField.LatencyMs => "latency_ms", + CustomAnalyticsSeriesSpecMetricField.OutputTokens => "output_tokens", + CustomAnalyticsSeriesSpecMetricField.PromptVersionNumber => "prompt_version_number", + CustomAnalyticsSeriesSpecMetricField.ThinkingTokens => "thinking_tokens", + CustomAnalyticsSeriesSpecMetricField.ToolCallCount => "tool_call_count", + CustomAnalyticsSeriesSpecMetricField.TurnCount => "turn_count", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomAnalyticsSeriesSpecMetricField? ToEnum(string value) + { + return value switch + { + "cached_tokens" => CustomAnalyticsSeriesSpecMetricField.CachedTokens, + "cost" => CustomAnalyticsSeriesSpecMetricField.Cost, + "input_tokens" => CustomAnalyticsSeriesSpecMetricField.InputTokens, + "latency_ms" => CustomAnalyticsSeriesSpecMetricField.LatencyMs, + "output_tokens" => CustomAnalyticsSeriesSpecMetricField.OutputTokens, + "prompt_version_number" => CustomAnalyticsSeriesSpecMetricField.PromptVersionNumber, + "thinking_tokens" => CustomAnalyticsSeriesSpecMetricField.ThinkingTokens, + "tool_call_count" => CustomAnalyticsSeriesSpecMetricField.ToolCallCount, + "turn_count" => CustomAnalyticsSeriesSpecMetricField.TurnCount, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpec.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpec.Json.g.cs new file mode 100644 index 0000000..2911442 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpec.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CustomAnalyticsSpec + { + /// + /// 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::PromptLayer.CustomAnalyticsSpec? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CustomAnalyticsSpec), + jsonSerializerContext) as global::PromptLayer.CustomAnalyticsSpec; + } + + /// + /// 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::PromptLayer.CustomAnalyticsSpec? 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::PromptLayer.CustomAnalyticsSpec), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CustomAnalyticsSpec; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpec.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpec.g.cs new file mode 100644 index 0000000..e1f736c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpec.g.cs @@ -0,0 +1,177 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Definition for a single custom analytics query. + /// + public sealed partial class CustomAnalyticsSpec + { + /// + /// Stable identifier for this chart in the response (alphanumeric, hyphens, underscores; max 64 chars). Must be unique within the request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Optional display title (max 200 chars). Defaults to id. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Chart visualization type. Overall aggregate charts (no timeSeries, no groupByField) must use `bar`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chartType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecChartTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.CustomAnalyticsSpecChartType ChartType { get; set; } + + /// + /// Aggregation function. Omit when using `series` (multi-series mode). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metric")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricJsonConverter))] + public global::PromptLayer.CustomAnalyticsSpecMetric? Metric { get; set; } + + /// + /// Numeric field to aggregate. Required unless metric is `count` or using multi-series mode. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metricField")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecMetricFieldJsonConverter))] + public global::PromptLayer.CustomAnalyticsSpecMetricField? MetricField { get; set; } + + /// + /// Required when metric is `percentile`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("percentile")] + public double? Percentile { get; set; } + + /// + /// Multi-series mode: define two or more series. Omit metric/metricField/percentile when using this. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("series")] + public global::System.Collections.Generic.IList? Series { get; set; } + + /// + /// Ratio insights computed from series totals. Only valid in multi-series mode. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("derivedInsights")] + public global::System.Collections.Generic.IList? DerivedInsights { get; set; } + + /// + /// Break results down by this request log field. Cannot be combined with groupByMetadataKey. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groupByField")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CustomAnalyticsSpecGroupByFieldJsonConverter))] + public global::PromptLayer.CustomAnalyticsSpecGroupByField? GroupByField { get; set; } + + /// + /// Break results down by the values of this metadata key. Cannot be combined with groupByField. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groupByMetadataKey")] + public string? GroupByMetadataKey { get; set; } + + /// + /// When true, bucket results over time (bucket size chosen automatically from the filter range).
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("timeSeries")] + public bool? TimeSeries { get; set; } + + /// + /// Maximum number of group-by buckets to return.
+ /// Default Value: 25 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { 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. + /// + /// + /// Stable identifier for this chart in the response (alphanumeric, hyphens, underscores; max 64 chars). Must be unique within the request. + /// + /// + /// Chart visualization type. Overall aggregate charts (no timeSeries, no groupByField) must use `bar`. + /// + /// + /// Optional display title (max 200 chars). Defaults to id. + /// + /// + /// Aggregation function. Omit when using `series` (multi-series mode). + /// + /// + /// Numeric field to aggregate. Required unless metric is `count` or using multi-series mode. + /// + /// + /// Required when metric is `percentile`. + /// + /// + /// Multi-series mode: define two or more series. Omit metric/metricField/percentile when using this. + /// + /// + /// Ratio insights computed from series totals. Only valid in multi-series mode. + /// + /// + /// Break results down by this request log field. Cannot be combined with groupByMetadataKey. + /// + /// + /// Break results down by the values of this metadata key. Cannot be combined with groupByField. + /// + /// + /// When true, bucket results over time (bucket size chosen automatically from the filter range).
+ /// Default Value: false + /// + /// + /// Maximum number of group-by buckets to return.
+ /// Default Value: 25 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CustomAnalyticsSpec( + string id, + global::PromptLayer.CustomAnalyticsSpecChartType chartType, + string? title, + global::PromptLayer.CustomAnalyticsSpecMetric? metric, + global::PromptLayer.CustomAnalyticsSpecMetricField? metricField, + double? percentile, + global::System.Collections.Generic.IList? series, + global::System.Collections.Generic.IList? derivedInsights, + global::PromptLayer.CustomAnalyticsSpecGroupByField? groupByField, + string? groupByMetadataKey, + bool? timeSeries, + int? limit) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Title = title; + this.ChartType = chartType; + this.Metric = metric; + this.MetricField = metricField; + this.Percentile = percentile; + this.Series = series; + this.DerivedInsights = derivedInsights; + this.GroupByField = groupByField; + this.GroupByMetadataKey = groupByMetadataKey; + this.TimeSeries = timeSeries; + this.Limit = limit; + } + + /// + /// Initializes a new instance of the class. + /// + public CustomAnalyticsSpec() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecChartType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecChartType.g.cs new file mode 100644 index 0000000..c1244d5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecChartType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Chart visualization type. Overall aggregate charts (no timeSeries, no groupByField) must use `bar`. + /// + public enum CustomAnalyticsSpecChartType + { + /// + /// + /// + Area, + /// + /// + /// + Bar, + /// + /// + /// + Line, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomAnalyticsSpecChartTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomAnalyticsSpecChartType value) + { + return value switch + { + CustomAnalyticsSpecChartType.Area => "area", + CustomAnalyticsSpecChartType.Bar => "bar", + CustomAnalyticsSpecChartType.Line => "line", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomAnalyticsSpecChartType? ToEnum(string value) + { + return value switch + { + "area" => CustomAnalyticsSpecChartType.Area, + "bar" => CustomAnalyticsSpecChartType.Bar, + "line" => CustomAnalyticsSpecChartType.Line, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecGroupByField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecGroupByField.g.cs new file mode 100644 index 0000000..8ff8470 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecGroupByField.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Break results down by this request log field. Cannot be combined with groupByMetadataKey. + /// + public enum CustomAnalyticsSpecGroupByField + { + /// + /// + /// + Engine, + /// + /// + /// + ErrorType, + /// + /// + /// + InputVariableKeys, + /// + /// + /// + MetadataKeys, + /// + /// + /// + OutputKeys, + /// + /// + /// + PromptId, + /// + /// + /// + PromptVersionNumber, + /// + /// + /// + ProviderType, + /// + /// + /// + Status, + /// + /// + /// + Tags, + /// + /// + /// + ToolNames, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomAnalyticsSpecGroupByFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomAnalyticsSpecGroupByField value) + { + return value switch + { + CustomAnalyticsSpecGroupByField.Engine => "engine", + CustomAnalyticsSpecGroupByField.ErrorType => "error_type", + CustomAnalyticsSpecGroupByField.InputVariableKeys => "input_variable_keys", + CustomAnalyticsSpecGroupByField.MetadataKeys => "metadata_keys", + CustomAnalyticsSpecGroupByField.OutputKeys => "output_keys", + CustomAnalyticsSpecGroupByField.PromptId => "prompt_id", + CustomAnalyticsSpecGroupByField.PromptVersionNumber => "prompt_version_number", + CustomAnalyticsSpecGroupByField.ProviderType => "provider_type", + CustomAnalyticsSpecGroupByField.Status => "status", + CustomAnalyticsSpecGroupByField.Tags => "tags", + CustomAnalyticsSpecGroupByField.ToolNames => "tool_names", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomAnalyticsSpecGroupByField? ToEnum(string value) + { + return value switch + { + "engine" => CustomAnalyticsSpecGroupByField.Engine, + "error_type" => CustomAnalyticsSpecGroupByField.ErrorType, + "input_variable_keys" => CustomAnalyticsSpecGroupByField.InputVariableKeys, + "metadata_keys" => CustomAnalyticsSpecGroupByField.MetadataKeys, + "output_keys" => CustomAnalyticsSpecGroupByField.OutputKeys, + "prompt_id" => CustomAnalyticsSpecGroupByField.PromptId, + "prompt_version_number" => CustomAnalyticsSpecGroupByField.PromptVersionNumber, + "provider_type" => CustomAnalyticsSpecGroupByField.ProviderType, + "status" => CustomAnalyticsSpecGroupByField.Status, + "tags" => CustomAnalyticsSpecGroupByField.Tags, + "tool_names" => CustomAnalyticsSpecGroupByField.ToolNames, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecMetric.g.cs new file mode 100644 index 0000000..90fb1db --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecMetric.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Aggregation function. Omit when using `series` (multi-series mode). + /// + public enum CustomAnalyticsSpecMetric + { + /// + /// + /// + Avg, + /// + /// + /// + Count, + /// + /// + /// + Max, + /// + /// + /// + Min, + /// + /// + /// + Percentile, + /// + /// + /// + Sum, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomAnalyticsSpecMetricExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomAnalyticsSpecMetric value) + { + return value switch + { + CustomAnalyticsSpecMetric.Avg => "avg", + CustomAnalyticsSpecMetric.Count => "count", + CustomAnalyticsSpecMetric.Max => "max", + CustomAnalyticsSpecMetric.Min => "min", + CustomAnalyticsSpecMetric.Percentile => "percentile", + CustomAnalyticsSpecMetric.Sum => "sum", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomAnalyticsSpecMetric? ToEnum(string value) + { + return value switch + { + "avg" => CustomAnalyticsSpecMetric.Avg, + "count" => CustomAnalyticsSpecMetric.Count, + "max" => CustomAnalyticsSpecMetric.Max, + "min" => CustomAnalyticsSpecMetric.Min, + "percentile" => CustomAnalyticsSpecMetric.Percentile, + "sum" => CustomAnalyticsSpecMetric.Sum, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecMetricField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecMetricField.g.cs new file mode 100644 index 0000000..4170a50 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CustomAnalyticsSpecMetricField.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Numeric field to aggregate. Required unless metric is `count` or using multi-series mode. + /// + public enum CustomAnalyticsSpecMetricField + { + /// + /// + /// + CachedTokens, + /// + /// + /// + Cost, + /// + /// + /// + InputTokens, + /// + /// + /// + LatencyMs, + /// + /// + /// + OutputTokens, + /// + /// + /// + PromptVersionNumber, + /// + /// + /// + ThinkingTokens, + /// + /// + /// + ToolCallCount, + /// + /// + /// + TurnCount, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomAnalyticsSpecMetricFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomAnalyticsSpecMetricField value) + { + return value switch + { + CustomAnalyticsSpecMetricField.CachedTokens => "cached_tokens", + CustomAnalyticsSpecMetricField.Cost => "cost", + CustomAnalyticsSpecMetricField.InputTokens => "input_tokens", + CustomAnalyticsSpecMetricField.LatencyMs => "latency_ms", + CustomAnalyticsSpecMetricField.OutputTokens => "output_tokens", + CustomAnalyticsSpecMetricField.PromptVersionNumber => "prompt_version_number", + CustomAnalyticsSpecMetricField.ThinkingTokens => "thinking_tokens", + CustomAnalyticsSpecMetricField.ToolCallCount => "tool_call_count", + CustomAnalyticsSpecMetricField.TurnCount => "turn_count", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomAnalyticsSpecMetricField? ToEnum(string value) + { + return value switch + { + "cached_tokens" => CustomAnalyticsSpecMetricField.CachedTokens, + "cost" => CustomAnalyticsSpecMetricField.Cost, + "input_tokens" => CustomAnalyticsSpecMetricField.InputTokens, + "latency_ms" => CustomAnalyticsSpecMetricField.LatencyMs, + "output_tokens" => CustomAnalyticsSpecMetricField.OutputTokens, + "prompt_version_number" => CustomAnalyticsSpecMetricField.PromptVersionNumber, + "thinking_tokens" => CustomAnalyticsSpecMetricField.ThinkingTokens, + "tool_call_count" => CustomAnalyticsSpecMetricField.ToolCallCount, + "turn_count" => CustomAnalyticsSpecMetricField.TurnCount, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResult.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResult.Json.g.cs new file mode 100644 index 0000000..a11df9d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResult.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class DerivedRatioInsightResult + { + /// + /// 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::PromptLayer.DerivedRatioInsightResult? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.DerivedRatioInsightResult), + jsonSerializerContext) as global::PromptLayer.DerivedRatioInsightResult; + } + + /// + /// 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::PromptLayer.DerivedRatioInsightResult? 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::PromptLayer.DerivedRatioInsightResult), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.DerivedRatioInsightResult; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResult.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResult.g.cs new file mode 100644 index 0000000..c6f3fe9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResult.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// A computed ratio insight in the response. + /// + public sealed partial class DerivedRatioInsightResult + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightResultTypeJsonConverter))] + public global::PromptLayer.DerivedRatioInsightResultType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + public string? Label { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numeratorSeriesKey")] + public string? NumeratorSeriesKey { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("denominatorSeriesKey")] + public string? DenominatorSeriesKey { get; set; } + + /// + /// Ratio of numerator total to denominator total. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public double? 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. + /// + /// + /// + /// + /// + /// + /// Ratio of numerator total to denominator total. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DerivedRatioInsightResult( + global::PromptLayer.DerivedRatioInsightResultType? type, + string? label, + string? numeratorSeriesKey, + string? denominatorSeriesKey, + double? value) + { + this.Type = type; + this.Label = label; + this.NumeratorSeriesKey = numeratorSeriesKey; + this.DenominatorSeriesKey = denominatorSeriesKey; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public DerivedRatioInsightResult() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResultType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResultType.g.cs new file mode 100644 index 0000000..fadb068 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightResultType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum DerivedRatioInsightResultType + { + /// + /// + /// + Ratio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DerivedRatioInsightResultTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DerivedRatioInsightResultType value) + { + return value switch + { + DerivedRatioInsightResultType.Ratio => "ratio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DerivedRatioInsightResultType? ToEnum(string value) + { + return value switch + { + "ratio" => DerivedRatioInsightResultType.Ratio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpec.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpec.Json.g.cs new file mode 100644 index 0000000..58fdcb2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpec.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class DerivedRatioInsightSpec + { + /// + /// 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::PromptLayer.DerivedRatioInsightSpec? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.DerivedRatioInsightSpec), + jsonSerializerContext) as global::PromptLayer.DerivedRatioInsightSpec; + } + + /// + /// 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::PromptLayer.DerivedRatioInsightSpec? 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::PromptLayer.DerivedRatioInsightSpec), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.DerivedRatioInsightSpec; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpec.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpec.g.cs new file mode 100644 index 0000000..05d8579 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpec.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// A display-only derived insight computed as a ratio of two series totals. + /// + public sealed partial class DerivedRatioInsightSpec + { + /// + /// Default Value: ratio + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.DerivedRatioInsightSpecTypeJsonConverter))] + public global::PromptLayer.DerivedRatioInsightSpecType? Type { get; set; } + + /// + /// Label shown for this insight (max 200 chars). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// Key of the numerator series (must match a series key in the chart). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numeratorSeriesKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string NumeratorSeriesKey { get; set; } + + /// + /// Key of the denominator series (must match a series key in the chart). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("denominatorSeriesKey")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string DenominatorSeriesKey { 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. + /// + /// + /// Label shown for this insight (max 200 chars). + /// + /// + /// Key of the numerator series (must match a series key in the chart). + /// + /// + /// Key of the denominator series (must match a series key in the chart). + /// + /// + /// Default Value: ratio + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DerivedRatioInsightSpec( + string label, + string numeratorSeriesKey, + string denominatorSeriesKey, + global::PromptLayer.DerivedRatioInsightSpecType? type) + { + this.Type = type; + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.NumeratorSeriesKey = numeratorSeriesKey ?? throw new global::System.ArgumentNullException(nameof(numeratorSeriesKey)); + this.DenominatorSeriesKey = denominatorSeriesKey ?? throw new global::System.ArgumentNullException(nameof(denominatorSeriesKey)); + } + + /// + /// Initializes a new instance of the class. + /// + public DerivedRatioInsightSpec() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpecType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpecType.g.cs new file mode 100644 index 0000000..b4d6aee --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.DerivedRatioInsightSpecType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Default Value: ratio + /// + public enum DerivedRatioInsightSpecType + { + /// + /// + /// + Ratio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DerivedRatioInsightSpecTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DerivedRatioInsightSpecType value) + { + return value switch + { + DerivedRatioInsightSpecType.Ratio => "ratio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DerivedRatioInsightSpecType? ToEnum(string value) + { + return value switch + { + "ratio" => DerivedRatioInsightSpecType.Ratio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuery.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuery.Json.g.cs new file mode 100644 index 0000000..cc0fbfc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuery.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class RequestAnalyticsCustomAnalyticsQuery + { + /// + /// 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuery? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery), + jsonSerializerContext) as global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery; + } + + /// + /// 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuery? 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::PromptLayer.RequestAnalyticsCustomAnalyticsQuery), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuery.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuery.g.cs new file mode 100644 index 0000000..5464247 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuery.g.cs @@ -0,0 +1,92 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Request body for POST /api/public/v2/requests/analytics/custom-analytics. Inherits all filter fields from RequestLogQuery and adds `customCharts`.
+ /// Example: {"filter_group":{"logic":"AND","filters":[{"field":"request_start_time","operator":"between","value":["2025-06-01T00:00:00Z","2025-06-08T00:00:00Z"]}]},"customCharts":[{"id":"cost_by_model","title":"Cost by Model","chartType":"bar","metric":"sum","metricField":"cost","groupByField":"engine"},{"id":"requests_over_time","title":"Requests Over Time","chartType":"line","metric":"count","timeSeries":true}]} + ///
+ public sealed partial class RequestAnalyticsCustomAnalyticsQuery + { + /// + /// Nested filter group with AND/OR logic. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_group")] + public global::PromptLayer.StructuredFilterGroup? FilterGroup { get; set; } + + /// + /// Free-text search query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("q")] + public string? Q { get; set; } + + /// + /// Accepted for compatibility; does not affect aggregated output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_by")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByJsonConverter))] + public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? SortBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderJsonConverter))] + public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? SortOrder { get; set; } + + /// + /// One or more chart definitions to compute. Chart ids must be unique. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("customCharts")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList CustomCharts { 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. + /// + /// + /// One or more chart definitions to compute. Chart ids must be unique. + /// + /// + /// Nested filter group with AND/OR logic. + /// + /// + /// Free-text search query. + /// + /// + /// Accepted for compatibility; does not affect aggregated output. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RequestAnalyticsCustomAnalyticsQuery( + global::System.Collections.Generic.IList customCharts, + global::PromptLayer.StructuredFilterGroup? filterGroup, + string? q, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? sortBy, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? sortOrder) + { + this.FilterGroup = filterGroup; + this.Q = q; + this.SortBy = sortBy; + this.SortOrder = sortOrder; + this.CustomCharts = customCharts ?? throw new global::System.ArgumentNullException(nameof(customCharts)); + } + + /// + /// Initializes a new instance of the class. + /// + public RequestAnalyticsCustomAnalyticsQuery() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuerySortBy.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuerySortBy.g.cs new file mode 100644 index 0000000..6317ad5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuerySortBy.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Accepted for compatibility; does not affect aggregated output. + /// + public enum RequestAnalyticsCustomAnalyticsQuerySortBy + { + /// + /// + /// + Cost, + /// + /// + /// + InputTokens, + /// + /// + /// + LatencyMs, + /// + /// + /// + OutputTokens, + /// + /// + /// + RequestStartTime, + /// + /// + /// + Status, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RequestAnalyticsCustomAnalyticsQuerySortByExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RequestAnalyticsCustomAnalyticsQuerySortBy value) + { + return value switch + { + RequestAnalyticsCustomAnalyticsQuerySortBy.Cost => "cost", + RequestAnalyticsCustomAnalyticsQuerySortBy.InputTokens => "input_tokens", + RequestAnalyticsCustomAnalyticsQuerySortBy.LatencyMs => "latency_ms", + RequestAnalyticsCustomAnalyticsQuerySortBy.OutputTokens => "output_tokens", + RequestAnalyticsCustomAnalyticsQuerySortBy.RequestStartTime => "request_start_time", + RequestAnalyticsCustomAnalyticsQuerySortBy.Status => "status", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RequestAnalyticsCustomAnalyticsQuerySortBy? ToEnum(string value) + { + return value switch + { + "cost" => RequestAnalyticsCustomAnalyticsQuerySortBy.Cost, + "input_tokens" => RequestAnalyticsCustomAnalyticsQuerySortBy.InputTokens, + "latency_ms" => RequestAnalyticsCustomAnalyticsQuerySortBy.LatencyMs, + "output_tokens" => RequestAnalyticsCustomAnalyticsQuerySortBy.OutputTokens, + "request_start_time" => RequestAnalyticsCustomAnalyticsQuerySortBy.RequestStartTime, + "status" => RequestAnalyticsCustomAnalyticsQuerySortBy.Status, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuerySortOrder.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuerySortOrder.g.cs new file mode 100644 index 0000000..05cbad7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsQuerySortOrder.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum RequestAnalyticsCustomAnalyticsQuerySortOrder + { + /// + /// + /// + Asc, + /// + /// + /// + Desc, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RequestAnalyticsCustomAnalyticsQuerySortOrderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RequestAnalyticsCustomAnalyticsQuerySortOrder value) + { + return value switch + { + RequestAnalyticsCustomAnalyticsQuerySortOrder.Asc => "asc", + RequestAnalyticsCustomAnalyticsQuerySortOrder.Desc => "desc", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RequestAnalyticsCustomAnalyticsQuerySortOrder? ToEnum(string value) + { + return value switch + { + "asc" => RequestAnalyticsCustomAnalyticsQuerySortOrder.Asc, + "desc" => RequestAnalyticsCustomAnalyticsQuerySortOrder.Desc, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsResponse.Json.g.cs new file mode 100644 index 0000000..b85d4f8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class RequestAnalyticsCustomAnalyticsResponse + { + /// + /// 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::PromptLayer.RequestAnalyticsCustomAnalyticsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse), + jsonSerializerContext) as global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse; + } + + /// + /// 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::PromptLayer.RequestAnalyticsCustomAnalyticsResponse? 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::PromptLayer.RequestAnalyticsCustomAnalyticsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsResponse.g.cs new file mode 100644 index 0000000..17638d4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RequestAnalyticsCustomAnalyticsResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class RequestAnalyticsCustomAnalyticsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// Results in the same order as the input `customCharts` array. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("customCharts")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList CustomCharts { 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. + /// + /// + /// + /// Results in the same order as the input `customCharts` array. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RequestAnalyticsCustomAnalyticsResponse( + bool success, + global::System.Collections.Generic.IList customCharts) + { + this.Success = success; + this.CustomCharts = customCharts ?? throw new global::System.ArgumentNullException(nameof(customCharts)); + } + + /// + /// Initializes a new instance of the class. + /// + public RequestAnalyticsCustomAnalyticsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TrackingClient.GetRequestAnalyticsCustomAnalytics.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TrackingClient.GetRequestAnalyticsCustomAnalytics.g.cs new file mode 100644 index 0000000..2235a34 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TrackingClient.GetRequestAnalyticsCustomAnalytics.g.cs @@ -0,0 +1,625 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TrackingClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetRequestAnalyticsCustomAnalyticsSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_GetRequestAnalyticsCustomAnalyticsSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetRequestAnalyticsCustomAnalyticsSecurityRequirement0, + }; + partial void PrepareGetRequestAnalyticsCustomAnalyticsArguments( + global::System.Net.Http.HttpClient httpClient, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery request); + partial void PrepareGetRequestAnalyticsCustomAnalyticsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery request); + partial void ProcessGetRequestAnalyticsCustomAnalyticsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetRequestAnalyticsCustomAnalyticsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Request Analytics Custom Analytics + /// + /// + /// 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 GetRequestAnalyticsCustomAnalyticsAsync( + + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetRequestAnalyticsCustomAnalyticsAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Request Analytics Custom Analytics + /// + /// + /// 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> GetRequestAnalyticsCustomAnalyticsAsResponseAsync( + + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareGetRequestAnalyticsCustomAnalyticsArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetRequestAnalyticsCustomAnalyticsSecurityRequirements, + operationName: "GetRequestAnalyticsCustomAnalyticsAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: "/api/public/v2/requests/analytics/custom-analytics", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.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::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetRequestAnalyticsCustomAnalyticsRequest( + 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::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetRequestAnalyticsCustomAnalytics", + methodName: "GetRequestAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/requests/analytics/custom-analytics\"", + 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::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetRequestAnalyticsCustomAnalytics", + methodName: "GetRequestAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/requests/analytics/custom-analytics\"", + 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::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetRequestAnalyticsCustomAnalytics", + methodName: "GetRequestAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/requests/analytics/custom-analytics\"", + 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::PromptLayer.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); + ProcessGetRequestAnalyticsCustomAnalyticsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetRequestAnalyticsCustomAnalytics", + methodName: "GetRequestAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/requests/analytics/custom-analytics\"", + 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::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetRequestAnalyticsCustomAnalytics", + methodName: "GetRequestAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/requests/analytics/custom-analytics\"", + 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); + } + // Invalid chart spec or unsupported filter. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - missing or invalid API key. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::PromptLayer.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - API key does not have access to the requested resource. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::PromptLayer.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::PromptLayer.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::PromptLayer.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Validation error - request parameters or body are invalid. + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::PromptLayer.OneOf? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::PromptLayer.OneOf.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::PromptLayer.OneOf.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::PromptLayer.ApiException?>.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + 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); + ProcessGetRequestAnalyticsCustomAnalyticsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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::PromptLayer.RequestAnalyticsCustomAnalyticsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.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 global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Request Analytics Custom Analytics + /// + /// + /// Nested filter group with AND/OR logic. + /// + /// + /// Free-text search query. + /// + /// + /// Accepted for compatibility; does not affect aggregated output. + /// + /// + /// + /// One or more chart definitions to compute. Chart ids must be unique. + /// + /// 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 GetRequestAnalyticsCustomAnalyticsAsync( + global::System.Collections.Generic.IList customCharts, + global::PromptLayer.StructuredFilterGroup? filterGroup = default, + string? q = default, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? sortBy = default, + global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? sortOrder = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery + { + FilterGroup = filterGroup, + Q = q, + SortBy = sortBy, + SortOrder = sortOrder, + CustomCharts = customCharts, + }; + + return await GetRequestAnalyticsCustomAnalyticsAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/autosdk.generated-examples.json b/src/libs/PromptLayer/Generated/autosdk.generated-examples.json index 13709e8..40cf1fc 100644 --- a/src/libs/PromptLayer/Generated/autosdk.generated-examples.json +++ b/src/libs/PromptLayer/Generated/autosdk.generated-examples.json @@ -288,6 +288,17 @@ }, { "Order": 27, + "Title": "Request Analytics Custom Analytics", + "Slug": "getrequestanalyticscustomanalytics", + "Description": "Generated from OpenAPI examples.", + "Language": "csharp", + "Code": "using var client = PromptLayerClient.CreateFromEnvironment();\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::PromptLayer.RequestAnalyticsCustomAnalyticsQuery\u003E(\n @\u0022{\n \u0022\u0022filter_group\u0022\u0022: {\n \u0022\u0022logic\u0022\u0022: \u0022\u0022AND\u0022\u0022,\n \u0022\u0022filters\u0022\u0022: [\n {\n \u0022\u0022field\u0022\u0022: \u0022\u0022request_start_time\u0022\u0022,\n \u0022\u0022operator\u0022\u0022: \u0022\u0022between\u0022\u0022,\n \u0022\u0022value\u0022\u0022: [\n \u0022\u00222025-06-01T00:00:00Z\u0022\u0022,\n \u0022\u00222025-06-08T00:00:00Z\u0022\u0022\n ]\n }\n ]\n },\n \u0022\u0022customCharts\u0022\u0022: [\n {\n \u0022\u0022id\u0022\u0022: \u0022\u0022cost_by_model\u0022\u0022,\n \u0022\u0022title\u0022\u0022: \u0022\u0022Cost by Model\u0022\u0022,\n \u0022\u0022chartType\u0022\u0022: \u0022\u0022bar\u0022\u0022,\n \u0022\u0022metric\u0022\u0022: \u0022\u0022sum\u0022\u0022,\n \u0022\u0022metricField\u0022\u0022: \u0022\u0022cost\u0022\u0022,\n \u0022\u0022groupByField\u0022\u0022: \u0022\u0022engine\u0022\u0022,\n \u0022\u0022limit\u0022\u0022: 10\n }\n ]\n}\u0022)!;\n\nvar response = await client.Tracking.GetRequestAnalyticsCustomAnalyticsAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022success\u0022: true,\n// \u0022customCharts\u0022: [\n// {\n// \u0022id\u0022: \u0022cost_by_model\u0022,\n// \u0022title\u0022: \u0022Cost by Model\u0022,\n// \u0022chartType\u0022: \u0022bar\u0022,\n// \u0022series\u0022: [\n// {\n// \u0022key\u0022: \u0022value\u0022,\n// \u0022label\u0022: \u0022Cost\u0022,\n// \u0022unit\u0022: \u0022currency\u0022\n// }\n// ],\n// \u0022data\u0022: [\n// {\n// \u0022label\u0022: \u0022gpt-4o\u0022,\n// \u0022value\u0022: 8.42\n// },\n// {\n// \u0022label\u0022: \u0022claude-sonnet-4-6\u0022,\n// \u0022value\u0022: 3.91\n// }\n// ]\n// }\n// ]\n// }", + "Format": "sdk", + "OperationId": "getRequestAnalyticsCustomAnalytics", + "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." + }, + { + "Order": 28, "Title": "Search Request Suggestions", "Slug": "getrequestsearchsuggestions", "Description": "Generated from OpenAPI examples.", @@ -298,7 +309,7 @@ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." }, { - "Order": 28, + "Order": 29, "Title": "Get Trace", "Slug": "gettrace", "Description": "Generated from OpenAPI examples.", @@ -309,7 +320,7 @@ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." }, { - "Order": 29, + "Order": 30, "Title": "Search Request Logs", "Slug": "searchrequestlogs", "Description": "Generated from OpenAPI examples.", @@ -320,7 +331,7 @@ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." }, { - "Order": 30, + "Order": 31, "Title": "Create Workflow", "Slug": "createworkflow", "Description": "Generated from OpenAPI examples.", @@ -331,7 +342,7 @@ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." }, { - "Order": 31, + "Order": 32, "Title": "Get Agent", "Slug": "getworkflow", "Description": "Generated from OpenAPI examples.", @@ -342,7 +353,7 @@ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." }, { - "Order": 32, + "Order": 33, "Title": "Patch Workflow", "Slug": "patchworkflow", "Description": "Generated from OpenAPI examples.", @@ -353,7 +364,7 @@ "Setup": null }, { - "Order": 33, + "Order": 34, "Title": "Run Workflow", "Slug": "runworkflow", "Description": "Generated from OpenAPI examples.", diff --git a/src/libs/PromptLayer/openapi.json b/src/libs/PromptLayer/openapi.json index 41e09d2..63b29eb 100644 --- a/src/libs/PromptLayer/openapi.json +++ b/src/libs/PromptLayer/openapi.json @@ -13921,6 +13921,183 @@ } } } + }, + "/api/public/v2/requests/analytics/custom-analytics": { + "post": { + "summary": "Request Analytics Custom Analytics", + "operationId": "getRequestAnalyticsCustomAnalytics", + "tags": [ + "tracking" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequestAnalyticsCustomAnalyticsQuery" + }, + "examples": { + "cost_by_model": { + "summary": "Cost breakdown by model", + "value": { + "filter_group": { + "logic": "AND", + "filters": [ + { + "field": "request_start_time", + "operator": "between", + "value": [ + "2025-06-01T00:00:00Z", + "2025-06-08T00:00:00Z" + ] + } + ] + }, + "customCharts": [ + { + "id": "cost_by_model", + "title": "Cost by Model", + "chartType": "bar", + "metric": "sum", + "metricField": "cost", + "groupByField": "engine", + "limit": 10 + } + ] + } + }, + "requests_over_time": { + "summary": "Request volume over time", + "value": { + "customCharts": [ + { + "id": "requests_over_time", + "title": "Requests Over Time", + "chartType": "line", + "metric": "count", + "timeSeries": true + } + ] + } + }, + "multi_series": { + "summary": "Input vs output tokens over time", + "value": { + "customCharts": [ + { + "id": "token_breakdown", + "title": "Token Usage", + "chartType": "area", + "timeSeries": true, + "series": [ + { + "key": "input", + "label": "Input Tokens", + "metric": "sum", + "metricField": "input_tokens" + }, + { + "key": "output", + "label": "Output Tokens", + "metric": "sum", + "metricField": "output_tokens" + } + ], + "derivedInsights": [ + { + "label": "Input/Output Ratio", + "numeratorSeriesKey": "input", + "denominatorSeriesKey": "output" + } + ] + } + ] + } + }, + "p95_latency_by_metadata": { + "summary": "p95 latency broken down by a metadata key", + "value": { + "customCharts": [ + { + "id": "latency_by_env", + "title": "p95 Latency by Environment", + "chartType": "bar", + "metric": "percentile", + "percentile": 95, + "metricField": "latency_ms", + "groupByMetadataKey": "environment" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Custom chart results in the order requested.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequestAnalyticsCustomAnalyticsResponse" + }, + "examples": { + "cost_by_model": { + "summary": "Cost by model result", + "value": { + "success": true, + "customCharts": [ + { + "id": "cost_by_model", + "title": "Cost by Model", + "chartType": "bar", + "series": [ + { + "key": "value", + "label": "Cost", + "unit": "currency" + } + ], + "data": [ + { + "label": "gpt-4o", + "value": 8.42 + }, + { + "label": "claude-sonnet-4-6", + "value": 3.91 + } + ] + } + ] + } + } + } + } + } + }, + "400": { + "description": "Invalid chart spec or unsupported filter.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + } } }, "components": { @@ -23929,6 +24106,409 @@ "nullable": true } } + }, + "DerivedRatioInsightSpec": { + "type": "object", + "title": "DerivedRatioInsightSpec", + "description": "A display-only derived insight computed as a ratio of two series totals.", + "required": [ + "label", + "numeratorSeriesKey", + "denominatorSeriesKey" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "ratio" + ], + "default": "ratio" + }, + "label": { + "type": "string", + "description": "Label shown for this insight (max 200 chars)." + }, + "numeratorSeriesKey": { + "type": "string", + "description": "Key of the numerator series (must match a series key in the chart)." + }, + "denominatorSeriesKey": { + "type": "string", + "description": "Key of the denominator series (must match a series key in the chart)." + } + } + }, + "DerivedRatioInsightResult": { + "type": "object", + "title": "DerivedRatioInsightResult", + "description": "A computed ratio insight in the response.", + "properties": { + "type": { + "type": "string", + "enum": [ + "ratio" + ] + }, + "label": { + "type": "string" + }, + "numeratorSeriesKey": { + "type": "string" + }, + "denominatorSeriesKey": { + "type": "string" + }, + "value": { + "type": "number", + "description": "Ratio of numerator total to denominator total." + } + } + }, + "CustomAnalyticsSpec": { + "type": "object", + "title": "CustomAnalyticsSpec", + "description": "Definition for a single custom analytics query.", + "required": [ + "id", + "chartType" + ], + "properties": { + "id": { + "type": "string", + "description": "Stable identifier for this chart in the response (alphanumeric, hyphens, underscores; max 64 chars). Must be unique within the request." + }, + "title": { + "type": "string", + "nullable": true, + "description": "Optional display title (max 200 chars). Defaults to id." + }, + "chartType": { + "type": "string", + "enum": [ + "bar", + "line", + "area" + ], + "description": "Chart visualization type. Overall aggregate charts (no timeSeries, no groupByField) must use `bar`." + }, + "metric": { + "type": "string", + "nullable": true, + "enum": [ + "count", + "sum", + "avg", + "min", + "max", + "percentile" + ], + "description": "Aggregation function. Omit when using `series` (multi-series mode)." + }, + "metricField": { + "type": "string", + "nullable": true, + "enum": [ + "input_tokens", + "output_tokens", + "cost", + "latency_ms", + "prompt_version_number", + "turn_count", + "tool_call_count", + "cached_tokens", + "thinking_tokens" + ], + "description": "Numeric field to aggregate. Required unless metric is `count` or using multi-series mode." + }, + "percentile": { + "type": "number", + "nullable": true, + "minimum": 0, + "maximum": 100, + "description": "Required when metric is `percentile`." + }, + "series": { + "type": "array", + "nullable": true, + "description": "Multi-series mode: define two or more series. Omit metric/metricField/percentile when using this.", + "items": { + "$ref": "#/components/schemas/CustomAnalyticsSeriesSpec" + } + }, + "derivedInsights": { + "type": "array", + "nullable": true, + "description": "Ratio insights computed from series totals. Only valid in multi-series mode.", + "items": { + "$ref": "#/components/schemas/DerivedRatioInsightSpec" + } + }, + "groupByField": { + "type": "string", + "nullable": true, + "enum": [ + "engine", + "provider_type", + "prompt_id", + "prompt_version_number", + "status", + "error_type", + "tags", + "metadata_keys", + "output_keys", + "input_variable_keys", + "tool_names" + ], + "description": "Break results down by this request log field. Cannot be combined with groupByMetadataKey." + }, + "groupByMetadataKey": { + "type": "string", + "nullable": true, + "description": "Break results down by the values of this metadata key. Cannot be combined with groupByField." + }, + "timeSeries": { + "type": "boolean", + "default": false, + "description": "When true, bucket results over time (bucket size chosen automatically from the filter range)." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 25, + "description": "Maximum number of group-by buckets to return." + } + } + }, + "CustomAnalyticsSeriesSpec": { + "type": "object", + "title": "CustomAnalyticsSeriesSpec", + "description": "One series in a multi-series custom analytics query.", + "required": [ + "key", + "label", + "metric", + "metricField" + ], + "properties": { + "key": { + "type": "string", + "description": "Unique identifier for this series within the chart (alphanumeric, hyphens, underscores; max 64 chars)." + }, + "label": { + "type": "string", + "description": "Human-readable series label shown in chart legends (max 120 chars)." + }, + "metric": { + "type": "string", + "enum": [ + "sum", + "avg", + "min", + "max", + "percentile" + ], + "description": "Aggregation function for this series." + }, + "metricField": { + "type": "string", + "enum": [ + "input_tokens", + "output_tokens", + "cost", + "latency_ms", + "prompt_version_number", + "turn_count", + "tool_call_count", + "cached_tokens", + "thinking_tokens" + ], + "description": "Numeric field to aggregate." + }, + "percentile": { + "type": "number", + "nullable": true, + "minimum": 0, + "maximum": 100, + "description": "Required when metric is `percentile`; omit otherwise." + } + } + }, + "CustomAnalyticsSeriesMeta": { + "type": "object", + "title": "CustomAnalyticsSeriesMeta", + "description": "Metadata describing one series in a custom analytics query response.", + "properties": { + "key": { + "type": "string", + "description": "Series key (matches keys in each data row)." + }, + "label": { + "type": "string", + "description": "Human-readable label." + }, + "unit": { + "type": "string", + "enum": [ + "count", + "tokens", + "currency", + "duration_seconds", + "number" + ], + "description": "Unit hint for rendering axes." + } + } + }, + "CustomAnalyticsResult": { + "type": "object", + "title": "CustomAnalyticsResult", + "description": "Computed result for a single custom analytics query.", + "properties": { + "id": { + "type": "string", + "description": "Echoes the chart id from the request." + }, + "title": { + "type": "string", + "description": "Chart title (echoed from request, or defaults to id)." + }, + "chartType": { + "type": "string", + "enum": [ + "bar", + "line", + "area" + ] + }, + "series": { + "type": "array", + "description": "Series descriptors (one entry per series). For single-metric charts the only entry has key `value`.", + "items": { + "$ref": "#/components/schemas/CustomAnalyticsSeriesMeta" + } + }, + "data": { + "type": "array", + "description": "Rows of chart data. Each row has a `label` string and one numeric key per series. Time-series rows also include `bucketKey` (ISO date string).", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "derivedInsights": { + "type": "array", + "nullable": true, + "description": "Computed ratio insights (multi-series charts only).", + "items": { + "$ref": "#/components/schemas/DerivedRatioInsightResult" + } + } + } + }, + "RequestAnalyticsCustomAnalyticsQuery": { + "type": "object", + "title": "RequestAnalyticsCustomAnalyticsQuery", + "description": "Request body for POST /api/public/v2/requests/analytics/custom-analytics. Inherits all filter fields from RequestLogQuery and adds `customCharts`.", + "required": [ + "customCharts" + ], + "properties": { + "filter_group": { + "nullable": true, + "description": "Nested filter group with AND/OR logic.", + "$ref": "#/components/schemas/StructuredFilterGroup" + }, + "q": { + "type": "string", + "nullable": true, + "description": "Free-text search query." + }, + "sort_by": { + "type": "string", + "nullable": true, + "enum": [ + "request_start_time", + "input_tokens", + "output_tokens", + "cost", + "latency_ms", + "status" + ], + "description": "Accepted for compatibility; does not affect aggregated output." + }, + "sort_order": { + "type": "string", + "nullable": true, + "enum": [ + "asc", + "desc" + ] + }, + "customCharts": { + "type": "array", + "minItems": 1, + "description": "One or more chart definitions to compute. Chart ids must be unique.", + "items": { + "$ref": "#/components/schemas/CustomAnalyticsSpec" + } + } + }, + "example": { + "filter_group": { + "logic": "AND", + "filters": [ + { + "field": "request_start_time", + "operator": "between", + "value": [ + "2025-06-01T00:00:00Z", + "2025-06-08T00:00:00Z" + ] + } + ] + }, + "customCharts": [ + { + "id": "cost_by_model", + "title": "Cost by Model", + "chartType": "bar", + "metric": "sum", + "metricField": "cost", + "groupByField": "engine" + }, + { + "id": "requests_over_time", + "title": "Requests Over Time", + "chartType": "line", + "metric": "count", + "timeSeries": true + } + ] + } + }, + "RequestAnalyticsCustomAnalyticsResponse": { + "type": "object", + "title": "RequestAnalyticsCustomAnalyticsResponse", + "required": [ + "success", + "customCharts" + ], + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ] + }, + "customCharts": { + "type": "array", + "description": "Results in the same order as the input `customCharts` array.", + "items": { + "$ref": "#/components/schemas/CustomAnalyticsResult" + } + } + } } }, "responses": {