diff --git a/src/libs/Vectara/Generated/Vectara.IPipelineRunsClient.ListEvents.g.cs b/src/libs/Vectara/Generated/Vectara.IPipelineRunsClient.ListEvents.g.cs
new file mode 100644
index 0000000..2ff2147
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.IPipelineRunsClient.ListEvents.g.cs
@@ -0,0 +1,84 @@
+#nullable enable
+
+namespace Vectara
+{
+ public partial interface IPipelineRunsClient
+ {
+ ///
+ /// List pipeline run events
+ /// List the timeline of events for a pipeline run. Events surface what the run did from a customer-observability perspective (records discovered, records processed, agent sessions created, dead letters, watermark advances, lifecycle transitions) rather than every internal Temporal step. A pipeline run may span multiple underlying Temporal executions; this endpoint stitches them into a single timeline keyed by `run_id`.
+ ///
+ ///
+ ///
+ ///
+ /// The unique key for the pipeline. Can be user-provided or auto-generated.
+ /// Example: sharepoint-legal-ingest
+ ///
+ ///
+ /// The unique identifier for a pipeline run.
+ /// Example: run_pip_abc_manual_550e8400
+ ///
+ ///
+ ///
+ ///
+ /// Sort direction for paginated list endpoints.
+ ///
+ ///
+ /// Default Value: 50
+ ///
+ ///
+ /// 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 ListEventsAsync(
+ string pipelineKey,
+ string runId,
+ int? requestTimeout = default,
+ int? requestTimeoutMillis = default,
+ global::System.Collections.Generic.IList? type = default,
+ string? sourceRecordId = default,
+ global::Vectara.SortOrder? order = default,
+ int? limit = default,
+ string? pageKey = default,
+ global::Vectara.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List pipeline run events
+ /// List the timeline of events for a pipeline run. Events surface what the run did from a customer-observability perspective (records discovered, records processed, agent sessions created, dead letters, watermark advances, lifecycle transitions) rather than every internal Temporal step. A pipeline run may span multiple underlying Temporal executions; this endpoint stitches them into a single timeline keyed by `run_id`.
+ ///
+ ///
+ ///
+ ///
+ /// The unique key for the pipeline. Can be user-provided or auto-generated.
+ /// Example: sharepoint-legal-ingest
+ ///
+ ///
+ /// The unique identifier for a pipeline run.
+ /// Example: run_pip_abc_manual_550e8400
+ ///
+ ///
+ ///
+ ///
+ /// Sort direction for paginated list endpoints.
+ ///
+ ///
+ /// Default Value: 50
+ ///
+ ///
+ /// 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> ListEventsAsResponseAsync(
+ string pipelineKey,
+ string runId,
+ int? requestTimeout = default,
+ int? requestTimeoutMillis = default,
+ global::System.Collections.Generic.IList? type = default,
+ string? sourceRecordId = default,
+ global::Vectara.SortOrder? order = default,
+ int? limit = default,
+ string? pageKey = default,
+ global::Vectara.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEvent.g.cs
new file mode 100644
index 0000000..486d919
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEvent.g.cs
@@ -0,0 +1,102 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class PipelineRunEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.PipelineRunEvent Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+
+ var readerCopy = reader;
+ var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.PipelineRunEventDiscriminator)}");
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+
+ global::Vectara.RunStartedEvent? runStarted = default;
+ if (discriminator?.Type == global::Vectara.PipelineRunEventDiscriminatorType.RunStarted)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunStartedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.RunStartedEvent)}");
+ runStarted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::Vectara.RunCompletedEvent? runCompleted = default;
+ if (discriminator?.Type == global::Vectara.PipelineRunEventDiscriminatorType.RunCompleted)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.RunCompletedEvent)}");
+ runCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::Vectara.RecordProcessingEvent? recordProcessing = default;
+ if (discriminator?.Type == global::Vectara.PipelineRunEventDiscriminatorType.RecordProcessing)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RecordProcessingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.RecordProcessingEvent)}");
+ recordProcessing = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+ global::Vectara.WatermarkAdvancedEvent? watermarkAdvanced = default;
+ if (discriminator?.Type == global::Vectara.PipelineRunEventDiscriminatorType.WatermarkAdvanced)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WatermarkAdvancedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Vectara.WatermarkAdvancedEvent)}");
+ watermarkAdvanced = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ }
+
+ var __value = new global::Vectara.PipelineRunEvent(
+ discriminator?.Type,
+ runStarted,
+
+ runCompleted,
+
+ recordProcessing,
+
+ watermarkAdvanced
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.PipelineRunEvent value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ if (value.IsRunStarted)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunStartedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RunStartedEvent).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStarted!.Value, typeInfo);
+ }
+ else if (value.IsRunCompleted)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RunCompletedEvent).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunCompleted!.Value, typeInfo);
+ }
+ else if (value.IsRecordProcessing)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RecordProcessingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RecordProcessingEvent).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.RecordProcessing!.Value, typeInfo);
+ }
+ else if (value.IsWatermarkAdvanced)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WatermarkAdvancedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.WatermarkAdvancedEvent).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.WatermarkAdvanced!.Value, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventDiscriminatorType.g.cs
new file mode 100644
index 0000000..3030806
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventDiscriminatorType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class PipelineRunEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.PipelineRunEventDiscriminatorType 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::Vectara.PipelineRunEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.PipelineRunEventDiscriminatorType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.PipelineRunEventDiscriminatorType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.PipelineRunEventDiscriminatorType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Vectara.PipelineRunEventDiscriminatorTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeNullable.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeNullable.g.cs
new file mode 100644
index 0000000..d6ffba7
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class PipelineRunEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.PipelineRunEventDiscriminatorType? 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::Vectara.PipelineRunEventDiscriminatorTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.PipelineRunEventDiscriminatorType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.PipelineRunEventDiscriminatorType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.PipelineRunEventDiscriminatorType? 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::Vectara.PipelineRunEventDiscriminatorTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventType.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventType.g.cs
new file mode 100644
index 0000000..20119db
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class PipelineRunEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.PipelineRunEventType 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::Vectara.PipelineRunEventTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.PipelineRunEventType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.PipelineRunEventType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.PipelineRunEventType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Vectara.PipelineRunEventTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventTypeNullable.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventTypeNullable.g.cs
new file mode 100644
index 0000000..c13be0f
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.PipelineRunEventTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class PipelineRunEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.PipelineRunEventType? 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::Vectara.PipelineRunEventTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.PipelineRunEventType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.PipelineRunEventType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.PipelineRunEventType? 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::Vectara.PipelineRunEventTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEvent.g.cs
new file mode 100644
index 0000000..0cd0988
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEvent.g.cs
@@ -0,0 +1,148 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class RecordProcessingEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.RecordProcessingEvent Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
+ var __rawJson = __jsonDocument.RootElement.GetRawText();
+ var __jsonProps = new global::System.Collections.Generic.HashSet();
+ if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name);
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("id")) __score0++;
+ if (__jsonProps.Contains("timestamp")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("dead_lettered")) __score1++;
+ if (__jsonProps.Contains("error")) __score1++;
+ if (__jsonProps.Contains("session_key")) __score1++;
+ if (__jsonProps.Contains("skipped")) __score1++;
+ if (__jsonProps.Contains("source_record_id")) __score1++;
+ if (__jsonProps.Contains("status")) __score1++;
+ if (__jsonProps.Contains("type")) __score1++;
+ var __bestScore = 0;
+ var __bestIndex = -1;
+ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
+ if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
+
+ global::Vectara.PipelineRunEventBase? pipelineRunBase = default;
+ global::Vectara.RecordProcessingEventVariant2? recordProcessingEventVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ pipelineRunBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ else if (__bestIndex == 1)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RecordProcessingEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RecordProcessingEventVariant2).Name}");
+ recordProcessingEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (pipelineRunBase == null && recordProcessingEventVariant2 == null)
+ {
+ try
+ {
+
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ pipelineRunBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ if (pipelineRunBase == null && recordProcessingEventVariant2 == null)
+ {
+ try
+ {
+
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RecordProcessingEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RecordProcessingEventVariant2).Name}");
+ recordProcessingEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.RecordProcessingEvent(
+ pipelineRunBase,
+
+ recordProcessingEventVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.RecordProcessingEvent value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ if (value.IsPipelineRunBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PipelineRunBase!, typeInfo);
+ }
+ else if (value.IsRecordProcessingEventVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RecordProcessingEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RecordProcessingEventVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.RecordProcessingEventVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEventStatus.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEventStatus.g.cs
new file mode 100644
index 0000000..c66bb6b
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEventStatus.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class RecordProcessingEventStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.RecordProcessingEventStatus 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::Vectara.RecordProcessingEventStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.RecordProcessingEventStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.RecordProcessingEventStatus);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.RecordProcessingEventStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Vectara.RecordProcessingEventStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEventStatusNullable.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEventStatusNullable.g.cs
new file mode 100644
index 0000000..129cb81
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.RecordProcessingEventStatusNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class RecordProcessingEventStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.RecordProcessingEventStatus? 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::Vectara.RecordProcessingEventStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.RecordProcessingEventStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.RecordProcessingEventStatus?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.RecordProcessingEventStatus? 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::Vectara.RecordProcessingEventStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEvent.g.cs
new file mode 100644
index 0000000..d6daaf9
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEvent.g.cs
@@ -0,0 +1,147 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class RunCompletedEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.RunCompletedEvent Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
+ var __rawJson = __jsonDocument.RootElement.GetRawText();
+ var __jsonProps = new global::System.Collections.Generic.HashSet();
+ if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name);
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("id")) __score0++;
+ if (__jsonProps.Contains("timestamp")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("error")) __score1++;
+ if (__jsonProps.Contains("records_failed")) __score1++;
+ if (__jsonProps.Contains("records_fetched")) __score1++;
+ if (__jsonProps.Contains("records_processed")) __score1++;
+ if (__jsonProps.Contains("status")) __score1++;
+ if (__jsonProps.Contains("type")) __score1++;
+ var __bestScore = 0;
+ var __bestIndex = -1;
+ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
+ if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
+
+ global::Vectara.PipelineRunEventBase? pipelineBase = default;
+ global::Vectara.RunCompletedEventVariant2? runCompletedEventVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ pipelineBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ else if (__bestIndex == 1)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunCompletedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RunCompletedEventVariant2).Name}");
+ runCompletedEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (pipelineBase == null && runCompletedEventVariant2 == null)
+ {
+ try
+ {
+
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ pipelineBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ if (pipelineBase == null && runCompletedEventVariant2 == null)
+ {
+ try
+ {
+
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunCompletedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RunCompletedEventVariant2).Name}");
+ runCompletedEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.RunCompletedEvent(
+ pipelineBase,
+
+ runCompletedEventVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.RunCompletedEvent value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ if (value.IsPipelineBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PipelineBase!, typeInfo);
+ }
+ else if (value.IsRunCompletedEventVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunCompletedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RunCompletedEventVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunCompletedEventVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEventStatus.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEventStatus.g.cs
new file mode 100644
index 0000000..c5513b8
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEventStatus.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class RunCompletedEventStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.RunCompletedEventStatus 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::Vectara.RunCompletedEventStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.RunCompletedEventStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.RunCompletedEventStatus);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.RunCompletedEventStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Vectara.RunCompletedEventStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEventStatusNullable.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEventStatusNullable.g.cs
new file mode 100644
index 0000000..c04078c
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.RunCompletedEventStatusNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class RunCompletedEventStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.RunCompletedEventStatus? 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::Vectara.RunCompletedEventStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.RunCompletedEventStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.RunCompletedEventStatus?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.RunCompletedEventStatus? 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::Vectara.RunCompletedEventStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.RunStartedEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.RunStartedEvent.g.cs
new file mode 100644
index 0000000..4ba37dc
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.RunStartedEvent.g.cs
@@ -0,0 +1,147 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class RunStartedEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.RunStartedEvent Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
+ var __rawJson = __jsonDocument.RootElement.GetRawText();
+ var __jsonProps = new global::System.Collections.Generic.HashSet();
+ if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name);
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("id")) __score0++;
+ if (__jsonProps.Contains("timestamp")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("agent_key")) __score1++;
+ if (__jsonProps.Contains("end_watermark")) __score1++;
+ if (__jsonProps.Contains("start_watermark")) __score1++;
+ if (__jsonProps.Contains("sync_mode")) __score1++;
+ if (__jsonProps.Contains("trigger_type")) __score1++;
+ if (__jsonProps.Contains("type")) __score1++;
+ var __bestScore = 0;
+ var __bestIndex = -1;
+ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
+ if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
+
+ global::Vectara.PipelineRunEventBase? pipelineBase = default;
+ global::Vectara.RunStartedEventVariant2? runStartedEventVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ pipelineBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ else if (__bestIndex == 1)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunStartedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RunStartedEventVariant2).Name}");
+ runStartedEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (pipelineBase == null && runStartedEventVariant2 == null)
+ {
+ try
+ {
+
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ pipelineBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ if (pipelineBase == null && runStartedEventVariant2 == null)
+ {
+ try
+ {
+
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunStartedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RunStartedEventVariant2).Name}");
+ runStartedEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.RunStartedEvent(
+ pipelineBase,
+
+ runStartedEventVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.RunStartedEvent value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ if (value.IsPipelineBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PipelineBase!, typeInfo);
+ }
+ else if (value.IsRunStartedEventVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.RunStartedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.RunStartedEventVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStartedEventVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.SortOrder.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.SortOrder.g.cs
new file mode 100644
index 0000000..18a8c2c
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.SortOrder.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class SortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.SortOrder 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::Vectara.SortOrderExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.SortOrder)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.SortOrder);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.SortOrder value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Vectara.SortOrderExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.SortOrderNullable.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.SortOrderNullable.g.cs
new file mode 100644
index 0000000..ceae850
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.SortOrderNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public sealed class SortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.SortOrder? 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::Vectara.SortOrderExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Vectara.SortOrder)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Vectara.SortOrder?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.SortOrder? 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::Vectara.SortOrderExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.JsonConverters.WatermarkAdvancedEvent.g.cs b/src/libs/Vectara/Generated/Vectara.JsonConverters.WatermarkAdvancedEvent.g.cs
new file mode 100644
index 0000000..39255ee
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.JsonConverters.WatermarkAdvancedEvent.g.cs
@@ -0,0 +1,143 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace Vectara.JsonConverters
+{
+ ///
+ public class WatermarkAdvancedEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Vectara.WatermarkAdvancedEvent Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
+ var __rawJson = __jsonDocument.RootElement.GetRawText();
+ var __jsonProps = new global::System.Collections.Generic.HashSet();
+ if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name);
+
+ }
+ }
+
+ var __score0 = 0;
+ if (__jsonProps.Contains("id")) __score0++;
+ if (__jsonProps.Contains("timestamp")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("type")) __score1++;
+ if (__jsonProps.Contains("watermark")) __score1++;
+ var __bestScore = 0;
+ var __bestIndex = -1;
+ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
+ if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
+
+ global::Vectara.PipelineRunEventBase? pipelineRunBase = default;
+ global::Vectara.WatermarkAdvancedEventVariant2? watermarkAdvancedEventVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ pipelineRunBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ else if (__bestIndex == 1)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WatermarkAdvancedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.WatermarkAdvancedEventVariant2).Name}");
+ watermarkAdvancedEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (pipelineRunBase == null && watermarkAdvancedEventVariant2 == null)
+ {
+ try
+ {
+
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ pipelineRunBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ if (pipelineRunBase == null && watermarkAdvancedEventVariant2 == null)
+ {
+ try
+ {
+
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WatermarkAdvancedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.WatermarkAdvancedEventVariant2).Name}");
+ watermarkAdvancedEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::Vectara.WatermarkAdvancedEvent(
+ pipelineRunBase,
+
+ watermarkAdvancedEventVariant2
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Vectara.WatermarkAdvancedEvent value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ if (value.IsPipelineRunBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.PipelineRunEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.PipelineRunEventBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PipelineRunBase!, typeInfo);
+ }
+ else if (value.IsWatermarkAdvancedEventVariant2)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.WatermarkAdvancedEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.WatermarkAdvancedEventVariant2).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.WatermarkAdvancedEventVariant2!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs
index a15f31b..00a5e4a 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContext.g.cs
@@ -377,6 +377,26 @@ namespace Vectara
typeof(global::Vectara.JsonConverters.DeadLetterOriginNullableJsonConverter),
+ typeof(global::Vectara.JsonConverters.PipelineRunEventTypeJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.PipelineRunEventTypeNullableJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.SortOrderJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.SortOrderNullableJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RunCompletedEventStatusJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RunCompletedEventStatusNullableJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RecordProcessingEventStatusJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RecordProcessingEventStatusNullableJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeNullableJsonConverter),
+
typeof(global::Vectara.JsonConverters.AgentTraceStatusJsonConverter),
typeof(global::Vectara.JsonConverters.AgentTraceStatusNullableJsonConverter),
@@ -639,6 +659,16 @@ namespace Vectara
typeof(global::Vectara.JsonConverters.UpdatePipelineSourceJsonConverter),
+ typeof(global::Vectara.JsonConverters.RunStartedEventJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RunCompletedEventJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RecordProcessingEventJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.WatermarkAdvancedEventJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.PipelineRunEventJsonConverter),
+
typeof(global::Vectara.JsonConverters.InvokeAgentTraceSpanJsonConverter),
typeof(global::Vectara.JsonConverters.ChatTraceSpanJsonConverter),
@@ -1562,6 +1592,26 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
typeof(global::Vectara.JsonConverters.DeadLetterOriginNullableJsonConverter),
+ typeof(global::Vectara.JsonConverters.PipelineRunEventTypeJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.PipelineRunEventTypeNullableJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.SortOrderJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.SortOrderNullableJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RunCompletedEventStatusJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RunCompletedEventStatusNullableJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RecordProcessingEventStatusJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RecordProcessingEventStatusNullableJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeNullableJsonConverter),
+
typeof(global::Vectara.JsonConverters.AgentTraceStatusJsonConverter),
typeof(global::Vectara.JsonConverters.AgentTraceStatusNullableJsonConverter),
@@ -1824,6 +1874,16 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
typeof(global::Vectara.JsonConverters.UpdatePipelineSourceJsonConverter),
+ typeof(global::Vectara.JsonConverters.RunStartedEventJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RunCompletedEventJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.RecordProcessingEventJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.WatermarkAdvancedEventJsonConverter),
+
+ typeof(global::Vectara.JsonConverters.PipelineRunEventJsonConverter),
+
typeof(global::Vectara.JsonConverters.InvokeAgentTraceSpanJsonConverter),
typeof(global::Vectara.JsonConverters.ChatTraceSpanJsonConverter),
@@ -2033,6 +2093,24 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ProcessPipelineDeadLetterEntriesRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListPipelineRunsResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineRunEventType), TypeInfoPropertyName = "PipelineRunEventType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.SortOrder), TypeInfoPropertyName = "SortOrder2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineRunEventBase))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.RunStartedEvent), TypeInfoPropertyName = "RunStartedEvent2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.RunStartedEventVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.RunCompletedEventStatus), TypeInfoPropertyName = "RunCompletedEventStatus2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.RunCompletedEvent), TypeInfoPropertyName = "RunCompletedEvent2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.RunCompletedEventVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.RecordProcessingEventStatus), TypeInfoPropertyName = "RecordProcessingEventStatus2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.RecordProcessingEvent), TypeInfoPropertyName = "RecordProcessingEvent2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.RecordProcessingEventVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WatermarkAdvancedEvent), TypeInfoPropertyName = "WatermarkAdvancedEvent2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.WatermarkAdvancedEventVariant2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineRunEvent), TypeInfoPropertyName = "PipelineRunEvent2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineRunEventDiscriminator))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.PipelineRunEventDiscriminatorType), TypeInfoPropertyName = "PipelineRunEventDiscriminatorType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListPipelineRunEventsResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentTrace))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.AgentTraceStatus), TypeInfoPropertyName = "AgentTraceStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListAgentTracesResponse))]
@@ -2097,6 +2175,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListSessionArtifactsOrderBy), TypeInfoPropertyName = "ListSessionArtifactsOrderBy2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListAgentConnectorsType), TypeInfoPropertyName = "ListAgentConnectorsType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListPipelinesSourceType), TypeInfoPropertyName = "ListPipelinesSourceType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListTracesStatus), TypeInfoPropertyName = "ListTracesStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListTracesErrorType), TypeInfoPropertyName = "ListTracesErrorType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vectara.ListTracesOperation), TypeInfoPropertyName = "ListTracesOperation2")]
@@ -2174,12 +2253,14 @@ 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))]
internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
@@ -2404,6 +2485,16 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o
options.Converters.Add(new global::Vectara.JsonConverters.DeadLetterStatusNullableJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.DeadLetterOriginJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.DeadLetterOriginNullableJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.PipelineRunEventTypeJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.PipelineRunEventTypeNullableJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.SortOrderJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.SortOrderNullableJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.RunCompletedEventStatusJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.RunCompletedEventStatusNullableJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.RecordProcessingEventStatusJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.RecordProcessingEventStatusNullableJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeNullableJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.AgentTraceStatusJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.AgentTraceStatusNullableJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.AgentTraceSpanStatusJsonConverter());
@@ -2535,6 +2626,11 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o
options.Converters.Add(new global::Vectara.JsonConverters.UpdateS3SourceConfigurationJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.UpdateWebSourceConfigurationJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.UpdatePipelineSourceJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.RunStartedEventJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.RunCompletedEventJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.RecordProcessingEventJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.WatermarkAdvancedEventJsonConverter());
+ options.Converters.Add(new global::Vectara.JsonConverters.PipelineRunEventJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.InvokeAgentTraceSpanJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.ChatTraceSpanJsonConverter());
options.Converters.Add(new global::Vectara.JsonConverters.ExecuteToolTraceSpanJsonConverter());
diff --git a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs
index 0a2ea8e..24d5827 100644
--- a/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Vectara/Generated/Vectara.JsonSerializerContextTypes.g.cs
@@ -2660,295 +2660,371 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Vectara.AgentTrace? Type658 { get; set; }
+ public global::Vectara.PipelineRunEventType? Type658 { get; set; }
///
///
///
- public global::Vectara.AgentTraceStatus? Type659 { get; set; }
+ public global::Vectara.SortOrder? Type659 { get; set; }
///
///
///
- public global::Vectara.ListAgentTracesResponse? Type660 { get; set; }
+ public global::Vectara.PipelineRunEventBase? Type660 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type661 { get; set; }
+ public global::Vectara.RunStartedEvent? Type661 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpanStatus? Type662 { get; set; }
+ public global::Vectara.RunStartedEventVariant2? Type662 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpanBase? Type663 { get; set; }
+ public global::Vectara.RunCompletedEventStatus? Type663 { get; set; }
///
///
///
- public global::Vectara.AgentTraceInputFile? Type664 { get; set; }
+ public global::Vectara.RunCompletedEvent? Type664 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentSpanAttributes? Type665 { get; set; }
+ public global::Vectara.RunCompletedEventVariant2? Type665 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentSpanAttributesOutputType? Type666 { get; set; }
+ public global::Vectara.RecordProcessingEventStatus? Type666 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type667 { get; set; }
+ public global::Vectara.RecordProcessingEvent? Type667 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentSpanContent? Type668 { get; set; }
+ public global::Vectara.RecordProcessingEventVariant2? Type668 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentTraceSpan? Type669 { get; set; }
+ public global::Vectara.WatermarkAdvancedEvent? Type669 { get; set; }
///
///
///
- public global::Vectara.InvokeAgentTraceSpanVariant2? Type670 { get; set; }
+ public global::Vectara.WatermarkAdvancedEventVariant2? Type670 { get; set; }
///
///
///
- public global::Vectara.ChatSpanAttributes? Type671 { get; set; }
+ public global::Vectara.PipelineRunEvent? Type671 { get; set; }
///
///
///
- public global::Vectara.ChatTraceSpan? Type672 { get; set; }
+ public global::Vectara.PipelineRunEventDiscriminator? Type672 { get; set; }
///
///
///
- public global::Vectara.ChatTraceSpanVariant2? Type673 { get; set; }
+ public global::Vectara.PipelineRunEventDiscriminatorType? Type673 { get; set; }
///
///
///
- public global::Vectara.ExecuteToolSpanAttributes? Type674 { get; set; }
+ public global::Vectara.ListPipelineRunEventsResponse? Type674 { get; set; }
///
///
///
- public global::Vectara.ExecuteToolSpanContent? Type675 { get; set; }
+ public global::System.Collections.Generic.IList? Type675 { get; set; }
///
///
///
- public global::Vectara.ExecuteToolTraceSpan? Type676 { get; set; }
+ public global::Vectara.AgentTrace? Type676 { get; set; }
///
///
///
- public global::Vectara.ExecuteToolTraceSpanVariant2? Type677 { get; set; }
+ public global::Vectara.AgentTraceStatus? Type677 { get; set; }
///
///
///
- public global::Vectara.ThinkingSpanContent? Type678 { get; set; }
+ public global::Vectara.ListAgentTracesResponse? Type678 { get; set; }
///
///
///
- public global::Vectara.ThinkingTraceSpan? Type679 { get; set; }
+ public global::System.Collections.Generic.IList? Type679 { get; set; }
///
///
///
- public global::Vectara.ThinkingTraceSpanVariant2? Type680 { get; set; }
+ public global::Vectara.AgentTraceSpanStatus? Type680 { get; set; }
///
///
///
- public global::Vectara.OutputSpanContent? Type681 { get; set; }
+ public global::Vectara.AgentTraceSpanBase? Type681 { get; set; }
///
///
///
- public global::Vectara.OutputTraceSpan? Type682 { get; set; }
+ public global::Vectara.AgentTraceInputFile? Type682 { get; set; }
///
///
///
- public global::Vectara.OutputTraceSpanVariant2? Type683 { get; set; }
+ public global::Vectara.InvokeAgentSpanAttributes? Type683 { get; set; }
///
///
///
- public global::Vectara.GuardrailSpanAttributes? Type684 { get; set; }
+ public global::Vectara.InvokeAgentSpanAttributesOutputType? Type684 { get; set; }
///
///
///
- public global::Vectara.GuardrailSpanContent? Type685 { get; set; }
+ public global::System.Collections.Generic.IList? Type685 { get; set; }
///
///
///
- public global::Vectara.GuardrailTraceSpan? Type686 { get; set; }
+ public global::Vectara.InvokeAgentSpanContent? Type686 { get; set; }
///
///
///
- public global::Vectara.GuardrailTraceSpanVariant2? Type687 { get; set; }
+ public global::Vectara.InvokeAgentTraceSpan? Type687 { get; set; }
///
///
///
- public global::Vectara.StepTransitionSpanAttributes? Type688 { get; set; }
+ public global::Vectara.InvokeAgentTraceSpanVariant2? Type688 { get; set; }
///
///
///
- public global::Vectara.StepTransitionTraceSpan? Type689 { get; set; }
+ public global::Vectara.ChatSpanAttributes? Type689 { get; set; }
///
///
///
- public global::Vectara.StepTransitionTraceSpanVariant2? Type690 { get; set; }
+ public global::Vectara.ChatTraceSpan? Type690 { get; set; }
///
///
///
- public global::Vectara.ImageReadSpanAttributes? Type691 { get; set; }
+ public global::Vectara.ChatTraceSpanVariant2? Type691 { get; set; }
///
///
///
- public global::Vectara.ImageReadTraceSpan? Type692 { get; set; }
+ public global::Vectara.ExecuteToolSpanAttributes? Type692 { get; set; }
///
///
///
- public global::Vectara.ImageReadTraceSpanVariant2? Type693 { get; set; }
+ public global::Vectara.ExecuteToolSpanContent? Type693 { get; set; }
///
///
///
- public global::Vectara.CompactionSpanAttributes? Type694 { get; set; }
+ public global::Vectara.ExecuteToolTraceSpan? Type694 { get; set; }
///
///
///
- public global::Vectara.CompactionTraceSpan? Type695 { get; set; }
+ public global::Vectara.ExecuteToolTraceSpanVariant2? Type695 { get; set; }
///
///
///
- public global::Vectara.CompactionTraceSpanVariant2? Type696 { get; set; }
+ public global::Vectara.ThinkingSpanContent? Type696 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpan? Type697 { get; set; }
+ public global::Vectara.ThinkingTraceSpan? Type697 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpanDiscriminator? Type698 { get; set; }
+ public global::Vectara.ThinkingTraceSpanVariant2? Type698 { get; set; }
///
///
///
- public global::Vectara.AgentTraceSpanDiscriminatorOperation? Type699 { get; set; }
+ public global::Vectara.OutputSpanContent? Type699 { get; set; }
///
///
///
- public global::Vectara.ListAgentTraceSpansResponse? Type700 { get; set; }
+ public global::Vectara.OutputTraceSpan? Type700 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type701 { get; set; }
+ public global::Vectara.OutputTraceSpanVariant2? Type701 { get; set; }
///
///
///
- public global::Vectara.Glossary? Type702 { get; set; }
+ public global::Vectara.GuardrailSpanAttributes? Type702 { get; set; }
///
///
///
- public global::Vectara.ListGlossariesResponse? Type703 { get; set; }
+ public global::Vectara.GuardrailSpanContent? Type703 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type704 { get; set; }
+ public global::Vectara.GuardrailTraceSpan? Type704 { get; set; }
///
///
///
- public global::Vectara.CreateGlossaryRequest? Type705 { get; set; }
+ public global::Vectara.GuardrailTraceSpanVariant2? Type705 { get; set; }
///
///
///
- public global::Vectara.UpdateGlossaryRequest? Type706 { get; set; }
+ public global::Vectara.StepTransitionSpanAttributes? Type706 { get; set; }
///
///
///
- public global::Vectara.GlossaryEntry? Type707 { get; set; }
+ public global::Vectara.StepTransitionTraceSpan? Type707 { get; set; }
///
///
///
- public global::Vectara.GlossaryEntriesResponse? Type708 { get; set; }
+ public global::Vectara.StepTransitionTraceSpanVariant2? Type708 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type709 { get; set; }
+ public global::Vectara.ImageReadSpanAttributes? Type709 { get; set; }
///
///
///
- public global::Vectara.UpsertGlossaryEntriesRequest? Type710 { get; set; }
+ public global::Vectara.ImageReadTraceSpan? Type710 { get; set; }
///
///
///
- public global::Vectara.DeleteGlossaryEntriesRequest? Type711 { get; set; }
+ public global::Vectara.ImageReadTraceSpanVariant2? Type711 { get; set; }
///
///
///
- public global::Vectara.GetOAuthTokenRequest? Type712 { get; set; }
+ public global::Vectara.CompactionSpanAttributes? Type712 { get; set; }
///
///
///
- public global::Vectara.CreateCorpusDocumentWaitFor? Type713 { get; set; }
+ public global::Vectara.CompactionTraceSpan? Type713 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type714 { get; set; }
+ public global::Vectara.CompactionTraceSpanVariant2? Type714 { get; set; }
///
///
///
- public global::Vectara.ListToolServersType? Type715 { get; set; }
+ public global::Vectara.AgentTraceSpan? Type715 { get; set; }
///
///
///
- public global::Vectara.ListToolsType? Type716 { get; set; }
+ public global::Vectara.AgentTraceSpanDiscriminator? Type716 { get; set; }
///
///
///
- public global::Vectara.ListInstructionsType? Type717 { get; set; }
+ public global::Vectara.AgentTraceSpanDiscriminatorOperation? Type717 { get; set; }
///
///
///
- public global::Vectara.ListSessionArtifactsSortBy? Type718 { get; set; }
+ public global::Vectara.ListAgentTraceSpansResponse? Type718 { get; set; }
///
///
///
- public global::Vectara.ListSessionArtifactsOrderBy? Type719 { get; set; }
+ public global::System.Collections.Generic.IList? Type719 { get; set; }
///
///
///
- public global::Vectara.ListAgentConnectorsType? Type720 { get; set; }
+ public global::Vectara.Glossary? Type720 { get; set; }
///
///
///
- public global::Vectara.ListPipelinesSourceType? Type721 { get; set; }
+ public global::Vectara.ListGlossariesResponse? Type721 { get; set; }
///
///
///
- public global::Vectara.ListTracesStatus? Type722 { get; set; }
+ public global::System.Collections.Generic.IList? Type722 { get; set; }
///
///
///
- public global::Vectara.ListTracesErrorType? Type723 { get; set; }
+ public global::Vectara.CreateGlossaryRequest? Type723 { get; set; }
///
///
///
- public global::Vectara.ListTracesOperation? Type724 { get; set; }
+ public global::Vectara.UpdateGlossaryRequest? Type724 { get; set; }
///
///
///
- public global::Vectara.ListTracesToolErrorType? Type725 { get; set; }
+ public global::Vectara.GlossaryEntry? Type725 { get; set; }
///
///
///
- public global::Vectara.ListTraceSpansOperation? Type726 { get; set; }
+ public global::Vectara.GlossaryEntriesResponse? Type726 { get; set; }
///
///
///
- public global::Vectara.AllOf? Type727 { get; set; }
+ public global::System.Collections.Generic.IList? Type727 { get; set; }
///
///
///
- public global::Vectara.CreateUserResponse2? Type728 { get; set; }
+ public global::Vectara.UpsertGlossaryEntriesRequest? Type728 { get; set; }
///
///
///
- public global::Vectara.ResetUserPasswordResponse? Type729 { get; set; }
+ public global::Vectara.DeleteGlossaryEntriesRequest? Type729 { get; set; }
///
///
///
- public global::Vectara.GetTokenResponse? Type730 { get; set; }
+ public global::Vectara.GetOAuthTokenRequest? Type730 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.CreateCorpusDocumentWaitFor? Type731 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type732 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListToolServersType? Type733 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListToolsType? Type734 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListInstructionsType? Type735 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListSessionArtifactsSortBy? Type736 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListSessionArtifactsOrderBy? Type737 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListAgentConnectorsType? Type738 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListPipelinesSourceType? Type739 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type740 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTracesStatus? Type741 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTracesErrorType? Type742 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTracesOperation? Type743 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTracesToolErrorType? Type744 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ListTraceSpansOperation? Type745 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.AllOf? Type746 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.CreateUserResponse2? Type747 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.ResetUserPasswordResponse? Type748 { get; set; }
+ ///
+ ///
+ ///
+ public global::Vectara.GetTokenResponse? Type749 { get; set; }
///
///
@@ -3225,26 +3301,34 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::System.Collections.Generic.List? ListType68 { get; set; }
+ public global::System.Collections.Generic.List? ListType68 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.List? ListType69 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.List? ListType70 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType69 { get; set; }
+ public global::System.Collections.Generic.List? ListType71 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType70 { get; set; }
+ public global::System.Collections.Generic.List? ListType72 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType71 { get; set; }
+ public global::System.Collections.Generic.List? ListType73 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType72 { get; set; }
+ public global::System.Collections.Generic.List? ListType74 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType73 { get; set; }
+ public global::System.Collections.Generic.List? ListType75 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.ListPipelineRunEventsResponse.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ListPipelineRunEventsResponse.Json.g.cs
new file mode 100644
index 0000000..c7e06b0
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.ListPipelineRunEventsResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class ListPipelineRunEventsResponse
+ {
+ ///
+ /// 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::Vectara.ListPipelineRunEventsResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.ListPipelineRunEventsResponse),
+ jsonSerializerContext) as global::Vectara.ListPipelineRunEventsResponse;
+ }
+
+ ///
+ /// 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::Vectara.ListPipelineRunEventsResponse? 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::Vectara.ListPipelineRunEventsResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.ListPipelineRunEventsResponse;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.ListPipelineRunEventsResponse.g.cs b/src/libs/Vectara/Generated/Vectara.Models.ListPipelineRunEventsResponse.g.cs
new file mode 100644
index 0000000..f8b239c
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.ListPipelineRunEventsResponse.g.cs
@@ -0,0 +1,60 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// Response containing a list of pipeline run events.
+ ///
+ public sealed partial class ListPipelineRunEventsResponse
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("events")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Events { get; set; }
+
+ ///
+ /// The standard metadata in the response of a list operation.
+ /// Example: {"page_key":"eyJvZmZzZXQiOjF9"}
+ ///
+ /// {"page_key":"eyJvZmZzZXQiOjF9"}
+ [global::System.Text.Json.Serialization.JsonPropertyName("metadata")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Vectara.ListMetadata Metadata { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ ///
+ /// The standard metadata in the response of a list operation.
+ /// Example: {"page_key":"eyJvZmZzZXQiOjF9"}
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public ListPipelineRunEventsResponse(
+ global::System.Collections.Generic.IList events,
+ global::Vectara.ListMetadata metadata)
+ {
+ this.Events = events ?? throw new global::System.ArgumentNullException(nameof(events));
+ this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public ListPipelineRunEventsResponse()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEvent.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEvent.Json.g.cs
new file mode 100644
index 0000000..bccaab5
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEvent.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public readonly partial struct PipelineRunEvent
+ {
+ ///
+ /// 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::Vectara.PipelineRunEvent? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.PipelineRunEvent),
+ jsonSerializerContext) as global::Vectara.PipelineRunEvent?;
+ }
+
+ ///
+ /// 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::Vectara.PipelineRunEvent? 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::Vectara.PipelineRunEvent),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.PipelineRunEvent?;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.PipelineRunEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEvent.g.cs
new file mode 100644
index 0000000..e0c0cb0
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEvent.g.cs
@@ -0,0 +1,474 @@
+#pragma warning disable CS0618 // Type or member is obsolete
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// A single event in a pipeline run's timeline. The shape of the event is
+ /// determined by `type`.
+ ///
+ public readonly partial struct PipelineRunEvent : global::System.IEquatable
+ {
+ ///
+ ///
+ ///
+ public global::Vectara.PipelineRunEventDiscriminatorType? Type { get; }
+
+ ///
+ /// The pipeline run started executing.
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.RunStartedEvent? RunStarted { get; init; }
+#else
+ public global::Vectara.RunStartedEvent? RunStarted { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStarted))]
+#endif
+ public bool IsRunStarted => RunStarted != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickRunStarted(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.RunStartedEvent? value)
+ {
+ value = RunStarted;
+ return IsRunStarted;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.RunStartedEvent PickRunStarted() => IsRunStarted
+ ? RunStarted!.Value
+ : throw new global::System.InvalidOperationException($"Expected union variant 'RunStarted' but the value was {ToString()}.");
+
+ ///
+ /// The pipeline run reached a terminal state. `status` distinguishes a successful completion
+ /// from a failure, cancellation, or timeout.
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.RunCompletedEvent? RunCompleted { get; init; }
+#else
+ public global::Vectara.RunCompletedEvent? RunCompleted { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunCompleted))]
+#endif
+ public bool IsRunCompleted => RunCompleted != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickRunCompleted(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.RunCompletedEvent? value)
+ {
+ value = RunCompleted;
+ return IsRunCompleted;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.RunCompletedEvent PickRunCompleted() => IsRunCompleted
+ ? RunCompleted!.Value
+ : throw new global::System.InvalidOperationException($"Expected union variant 'RunCompleted' but the value was {ToString()}.");
+
+ ///
+ /// A single source record progressed through a processing lifecycle stage. `status` is `started`
+ /// when processing begins, `completed` when the record was successfully processed (or skipped),
+ /// and `failed` when processing failed. In a normal run, a `failed` record is also written to the
+ /// dead letter queue; in a retry run, the existing dead letter is marked still-failing.
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.RecordProcessingEvent? RecordProcessing { get; init; }
+#else
+ public global::Vectara.RecordProcessingEvent? RecordProcessing { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RecordProcessing))]
+#endif
+ public bool IsRecordProcessing => RecordProcessing != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickRecordProcessing(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.RecordProcessingEvent? value)
+ {
+ value = RecordProcessing;
+ return IsRecordProcessing;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.RecordProcessingEvent PickRecordProcessing() => IsRecordProcessing
+ ? RecordProcessing!.Value
+ : throw new global::System.InvalidOperationException($"Expected union variant 'RecordProcessing' but the value was {ToString()}.");
+
+ ///
+ /// The pipeline's persisted watermark moved forward at the end of the run.
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.WatermarkAdvancedEvent? WatermarkAdvanced { get; init; }
+#else
+ public global::Vectara.WatermarkAdvancedEvent? WatermarkAdvanced { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WatermarkAdvanced))]
+#endif
+ public bool IsWatermarkAdvanced => WatermarkAdvanced != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickWatermarkAdvanced(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.WatermarkAdvancedEvent? value)
+ {
+ value = WatermarkAdvanced;
+ return IsWatermarkAdvanced;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.WatermarkAdvancedEvent PickWatermarkAdvanced() => IsWatermarkAdvanced
+ ? WatermarkAdvanced!.Value
+ : throw new global::System.InvalidOperationException($"Expected union variant 'WatermarkAdvanced' but the value was {ToString()}.");
+ ///
+ ///
+ ///
+ public static implicit operator PipelineRunEvent(global::Vectara.RunStartedEvent value) => new PipelineRunEvent((global::Vectara.RunStartedEvent?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.RunStartedEvent?(PipelineRunEvent @this) => @this.RunStarted;
+
+ ///
+ ///
+ ///
+ public PipelineRunEvent(global::Vectara.RunStartedEvent? value)
+ {
+ RunStarted = value;
+ }
+
+ ///
+ ///
+ ///
+ public static PipelineRunEvent FromRunStarted(global::Vectara.RunStartedEvent? value) => new PipelineRunEvent(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator PipelineRunEvent(global::Vectara.RunCompletedEvent value) => new PipelineRunEvent((global::Vectara.RunCompletedEvent?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.RunCompletedEvent?(PipelineRunEvent @this) => @this.RunCompleted;
+
+ ///
+ ///
+ ///
+ public PipelineRunEvent(global::Vectara.RunCompletedEvent? value)
+ {
+ RunCompleted = value;
+ }
+
+ ///
+ ///
+ ///
+ public static PipelineRunEvent FromRunCompleted(global::Vectara.RunCompletedEvent? value) => new PipelineRunEvent(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator PipelineRunEvent(global::Vectara.RecordProcessingEvent value) => new PipelineRunEvent((global::Vectara.RecordProcessingEvent?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.RecordProcessingEvent?(PipelineRunEvent @this) => @this.RecordProcessing;
+
+ ///
+ ///
+ ///
+ public PipelineRunEvent(global::Vectara.RecordProcessingEvent? value)
+ {
+ RecordProcessing = value;
+ }
+
+ ///
+ ///
+ ///
+ public static PipelineRunEvent FromRecordProcessing(global::Vectara.RecordProcessingEvent? value) => new PipelineRunEvent(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator PipelineRunEvent(global::Vectara.WatermarkAdvancedEvent value) => new PipelineRunEvent((global::Vectara.WatermarkAdvancedEvent?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.WatermarkAdvancedEvent?(PipelineRunEvent @this) => @this.WatermarkAdvanced;
+
+ ///
+ ///
+ ///
+ public PipelineRunEvent(global::Vectara.WatermarkAdvancedEvent? value)
+ {
+ WatermarkAdvanced = value;
+ }
+
+ ///
+ ///
+ ///
+ public static PipelineRunEvent FromWatermarkAdvanced(global::Vectara.WatermarkAdvancedEvent? value) => new PipelineRunEvent(value);
+
+ ///
+ ///
+ ///
+ public PipelineRunEvent(
+ global::Vectara.PipelineRunEventDiscriminatorType? type,
+ global::Vectara.RunStartedEvent? runStarted,
+ global::Vectara.RunCompletedEvent? runCompleted,
+ global::Vectara.RecordProcessingEvent? recordProcessing,
+ global::Vectara.WatermarkAdvancedEvent? watermarkAdvanced
+ )
+ {
+ Type = type;
+
+ RunStarted = runStarted;
+ RunCompleted = runCompleted;
+ RecordProcessing = recordProcessing;
+ WatermarkAdvanced = watermarkAdvanced;
+ }
+
+ ///
+ ///
+ ///
+ public object? Object =>
+ WatermarkAdvanced as object ??
+ RecordProcessing as object ??
+ RunCompleted as object ??
+ RunStarted as object
+ ;
+
+ ///
+ ///
+ ///
+ public override string? ToString() =>
+ RunStarted?.ToString() ??
+ RunCompleted?.ToString() ??
+ RecordProcessing?.ToString() ??
+ WatermarkAdvanced?.ToString()
+ ;
+
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ return IsRunStarted && !IsRunCompleted && !IsRecordProcessing && !IsWatermarkAdvanced || !IsRunStarted && IsRunCompleted && !IsRecordProcessing && !IsWatermarkAdvanced || !IsRunStarted && !IsRunCompleted && IsRecordProcessing && !IsWatermarkAdvanced || !IsRunStarted && !IsRunCompleted && !IsRecordProcessing && IsWatermarkAdvanced;
+ }
+
+ ///
+ ///
+ ///
+ public TResult? Match(
+ global::System.Func? runStarted = null,
+ global::System.Func? runCompleted = null,
+ global::System.Func? recordProcessing = null,
+ global::System.Func? watermarkAdvanced = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsRunStarted && runStarted != null)
+ {
+ return runStarted(RunStarted!);
+ }
+ else if (IsRunCompleted && runCompleted != null)
+ {
+ return runCompleted(RunCompleted!);
+ }
+ else if (IsRecordProcessing && recordProcessing != null)
+ {
+ return recordProcessing(RecordProcessing!);
+ }
+ else if (IsWatermarkAdvanced && watermarkAdvanced != null)
+ {
+ return watermarkAdvanced(WatermarkAdvanced!);
+ }
+
+ return default(TResult);
+ }
+
+ ///
+ ///
+ ///
+ public void Match(
+ global::System.Action? runStarted = null,
+
+ global::System.Action? runCompleted = null,
+
+ global::System.Action? recordProcessing = null,
+
+ global::System.Action? watermarkAdvanced = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsRunStarted)
+ {
+ runStarted?.Invoke(RunStarted!);
+ }
+ else if (IsRunCompleted)
+ {
+ runCompleted?.Invoke(RunCompleted!);
+ }
+ else if (IsRecordProcessing)
+ {
+ recordProcessing?.Invoke(RecordProcessing!);
+ }
+ else if (IsWatermarkAdvanced)
+ {
+ watermarkAdvanced?.Invoke(WatermarkAdvanced!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? runStarted = null,
+ global::System.Action? runCompleted = null,
+ global::System.Action? recordProcessing = null,
+ global::System.Action? watermarkAdvanced = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsRunStarted)
+ {
+ runStarted?.Invoke(RunStarted!);
+ }
+ else if (IsRunCompleted)
+ {
+ runCompleted?.Invoke(RunCompleted!);
+ }
+ else if (IsRecordProcessing)
+ {
+ recordProcessing?.Invoke(RecordProcessing!);
+ }
+ else if (IsWatermarkAdvanced)
+ {
+ watermarkAdvanced?.Invoke(WatermarkAdvanced!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ var fields = new object?[]
+ {
+ RunStarted,
+ typeof(global::Vectara.RunStartedEvent),
+ RunCompleted,
+ typeof(global::Vectara.RunCompletedEvent),
+ RecordProcessing,
+ typeof(global::Vectara.RecordProcessingEvent),
+ WatermarkAdvanced,
+ typeof(global::Vectara.WatermarkAdvancedEvent),
+ };
+ const int offset = unchecked((int)2166136261);
+ const int prime = 16777619;
+ static int HashCodeAggregator(int hashCode, object? value) => value == null
+ ? (hashCode ^ 0) * prime
+ : (hashCode ^ value.GetHashCode()) * prime;
+
+ return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator);
+ }
+
+ ///
+ ///
+ ///
+ public bool Equals(PipelineRunEvent other)
+ {
+ return
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStarted, other.RunStarted) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(RunCompleted, other.RunCompleted) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(RecordProcessing, other.RecordProcessing) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(WatermarkAdvanced, other.WatermarkAdvanced)
+ ;
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator ==(PipelineRunEvent obj1, PipelineRunEvent obj2)
+ {
+ return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2);
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator !=(PipelineRunEvent obj1, PipelineRunEvent obj2)
+ {
+ return !(obj1 == obj2);
+ }
+
+ ///
+ ///
+ ///
+ public override bool Equals(object? obj)
+ {
+ return obj is PipelineRunEvent o && Equals(o);
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventBase.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventBase.Json.g.cs
new file mode 100644
index 0000000..4ef5d27
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventBase.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class PipelineRunEventBase
+ {
+ ///
+ /// 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::Vectara.PipelineRunEventBase? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.PipelineRunEventBase),
+ jsonSerializerContext) as global::Vectara.PipelineRunEventBase;
+ }
+
+ ///
+ /// 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::Vectara.PipelineRunEventBase? 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::Vectara.PipelineRunEventBase),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.PipelineRunEventBase;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.PipelineRunEventBase.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventBase.g.cs
new file mode 100644
index 0000000..afdaaaf
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventBase.g.cs
@@ -0,0 +1,62 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// Common fields shared by all pipeline run events.
+ ///
+ public sealed partial class PipelineRunEventBase
+ {
+ ///
+ /// Monotonic, unique-per-run identifier for this event.
+ /// Example: evt_42
+ ///
+ /// evt_42
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Id { get; set; }
+
+ ///
+ /// When the event occurred.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.DateTime Timestamp { 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.
+ ///
+ ///
+ /// Monotonic, unique-per-run identifier for this event.
+ /// Example: evt_42
+ ///
+ ///
+ /// When the event occurred.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public PipelineRunEventBase(
+ string id,
+ global::System.DateTime timestamp)
+ {
+ this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
+ this.Timestamp = timestamp;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public PipelineRunEventBase()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminator.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminator.Json.g.cs
new file mode 100644
index 0000000..4642521
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminator.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class PipelineRunEventDiscriminator
+ {
+ ///
+ /// 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::Vectara.PipelineRunEventDiscriminator? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.PipelineRunEventDiscriminator),
+ jsonSerializerContext) as global::Vectara.PipelineRunEventDiscriminator;
+ }
+
+ ///
+ /// 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::Vectara.PipelineRunEventDiscriminator? 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::Vectara.PipelineRunEventDiscriminator),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.PipelineRunEventDiscriminator;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminator.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminator.g.cs
new file mode 100644
index 0000000..fa92b32
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminator.g.cs
@@ -0,0 +1,45 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ ///
+ ///
+ public sealed partial class PipelineRunEventDiscriminator
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.PipelineRunEventDiscriminatorTypeJsonConverter))]
+ public global::Vectara.PipelineRunEventDiscriminatorType? Type { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public PipelineRunEventDiscriminator(
+ global::Vectara.PipelineRunEventDiscriminatorType? type)
+ {
+ this.Type = type;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public PipelineRunEventDiscriminator()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminatorType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminatorType.g.cs
new file mode 100644
index 0000000..3eaf4f4
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventDiscriminatorType.g.cs
@@ -0,0 +1,63 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ ///
+ ///
+ public enum PipelineRunEventDiscriminatorType
+ {
+ ///
+ ///
+ ///
+ RecordProcessing,
+ ///
+ ///
+ ///
+ RunCompleted,
+ ///
+ ///
+ ///
+ RunStarted,
+ ///
+ ///
+ ///
+ WatermarkAdvanced,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class PipelineRunEventDiscriminatorTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this PipelineRunEventDiscriminatorType value)
+ {
+ return value switch
+ {
+ PipelineRunEventDiscriminatorType.RecordProcessing => "record_processing",
+ PipelineRunEventDiscriminatorType.RunCompleted => "run_completed",
+ PipelineRunEventDiscriminatorType.RunStarted => "run_started",
+ PipelineRunEventDiscriminatorType.WatermarkAdvanced => "watermark_advanced",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static PipelineRunEventDiscriminatorType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "record_processing" => PipelineRunEventDiscriminatorType.RecordProcessing,
+ "run_completed" => PipelineRunEventDiscriminatorType.RunCompleted,
+ "run_started" => PipelineRunEventDiscriminatorType.RunStarted,
+ "watermark_advanced" => PipelineRunEventDiscriminatorType.WatermarkAdvanced,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventType.g.cs b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventType.g.cs
new file mode 100644
index 0000000..ddea938
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.PipelineRunEventType.g.cs
@@ -0,0 +1,65 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// The type of a pipeline run event. Used as the discriminator on
+ /// `PipelineRunEvent`. New types may be added over time; clients should
+ /// treat unknown types as informational and ignore them.
+ ///
+ public enum PipelineRunEventType
+ {
+ ///
+ ///
+ ///
+ RecordProcessing,
+ ///
+ ///
+ ///
+ RunCompleted,
+ ///
+ ///
+ ///
+ RunStarted,
+ ///
+ ///
+ ///
+ WatermarkAdvanced,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class PipelineRunEventTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this PipelineRunEventType value)
+ {
+ return value switch
+ {
+ PipelineRunEventType.RecordProcessing => "record_processing",
+ PipelineRunEventType.RunCompleted => "run_completed",
+ PipelineRunEventType.RunStarted => "run_started",
+ PipelineRunEventType.WatermarkAdvanced => "watermark_advanced",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static PipelineRunEventType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "record_processing" => PipelineRunEventType.RecordProcessing,
+ "run_completed" => PipelineRunEventType.RunCompleted,
+ "run_started" => PipelineRunEventType.RunStarted,
+ "watermark_advanced" => PipelineRunEventType.WatermarkAdvanced,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEvent.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEvent.Json.g.cs
new file mode 100644
index 0000000..6bb3f6e
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEvent.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public readonly partial struct RecordProcessingEvent
+ {
+ ///
+ /// 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::Vectara.RecordProcessingEvent? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.RecordProcessingEvent),
+ jsonSerializerContext) as global::Vectara.RecordProcessingEvent?;
+ }
+
+ ///
+ /// 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::Vectara.RecordProcessingEvent? 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::Vectara.RecordProcessingEvent),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.RecordProcessingEvent?;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.RecordProcessingEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEvent.g.cs
new file mode 100644
index 0000000..4d99e4a
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEvent.g.cs
@@ -0,0 +1,298 @@
+#pragma warning disable CS0618 // Type or member is obsolete
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// A single source record progressed through a processing lifecycle stage. `status` is `started`
+ /// when processing begins, `completed` when the record was successfully processed (or skipped),
+ /// and `failed` when processing failed. In a normal run, a `failed` record is also written to the
+ /// dead letter queue; in a retry run, the existing dead letter is marked still-failing.
+ ///
+ public readonly partial struct RecordProcessingEvent : global::System.IEquatable
+ {
+ ///
+ /// Common fields shared by all pipeline run events.
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.PipelineRunEventBase? PipelineRunBase { get; init; }
+#else
+ public global::Vectara.PipelineRunEventBase? PipelineRunBase { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PipelineRunBase))]
+#endif
+ public bool IsPipelineRunBase => PipelineRunBase != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickPipelineRunBase(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.PipelineRunEventBase? value)
+ {
+ value = PipelineRunBase;
+ return IsPipelineRunBase;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.PipelineRunEventBase PickPipelineRunBase() => IsPipelineRunBase
+ ? PipelineRunBase!
+ : throw new global::System.InvalidOperationException($"Expected union variant 'PipelineRunBase' but the value was {ToString()}.");
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.RecordProcessingEventVariant2? RecordProcessingEventVariant2 { get; init; }
+#else
+ public global::Vectara.RecordProcessingEventVariant2? RecordProcessingEventVariant2 { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RecordProcessingEventVariant2))]
+#endif
+ public bool IsRecordProcessingEventVariant2 => RecordProcessingEventVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickRecordProcessingEventVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.RecordProcessingEventVariant2? value)
+ {
+ value = RecordProcessingEventVariant2;
+ return IsRecordProcessingEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.RecordProcessingEventVariant2 PickRecordProcessingEventVariant2() => IsRecordProcessingEventVariant2
+ ? RecordProcessingEventVariant2!
+ : throw new global::System.InvalidOperationException($"Expected union variant 'RecordProcessingEventVariant2' but the value was {ToString()}.");
+ ///
+ ///
+ ///
+ public static implicit operator RecordProcessingEvent(global::Vectara.PipelineRunEventBase value) => new RecordProcessingEvent((global::Vectara.PipelineRunEventBase?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.PipelineRunEventBase?(RecordProcessingEvent @this) => @this.PipelineRunBase;
+
+ ///
+ ///
+ ///
+ public RecordProcessingEvent(global::Vectara.PipelineRunEventBase? value)
+ {
+ PipelineRunBase = value;
+ }
+
+ ///
+ ///
+ ///
+ public static RecordProcessingEvent FromPipelineRunBase(global::Vectara.PipelineRunEventBase? value) => new RecordProcessingEvent(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator RecordProcessingEvent(global::Vectara.RecordProcessingEventVariant2 value) => new RecordProcessingEvent((global::Vectara.RecordProcessingEventVariant2?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.RecordProcessingEventVariant2?(RecordProcessingEvent @this) => @this.RecordProcessingEventVariant2;
+
+ ///
+ ///
+ ///
+ public RecordProcessingEvent(global::Vectara.RecordProcessingEventVariant2? value)
+ {
+ RecordProcessingEventVariant2 = value;
+ }
+
+ ///
+ ///
+ ///
+ public static RecordProcessingEvent FromRecordProcessingEventVariant2(global::Vectara.RecordProcessingEventVariant2? value) => new RecordProcessingEvent(value);
+
+ ///
+ ///
+ ///
+ public RecordProcessingEvent(
+ global::Vectara.PipelineRunEventBase? pipelineRunBase,
+ global::Vectara.RecordProcessingEventVariant2? recordProcessingEventVariant2
+ )
+ {
+ PipelineRunBase = pipelineRunBase;
+ RecordProcessingEventVariant2 = recordProcessingEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public object? Object =>
+ RecordProcessingEventVariant2 as object ??
+ PipelineRunBase as object
+ ;
+
+ ///
+ ///
+ ///
+ public override string? ToString() =>
+ PipelineRunBase?.ToString() ??
+ RecordProcessingEventVariant2?.ToString()
+ ;
+
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ return IsPipelineRunBase && IsRecordProcessingEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public TResult? Match(
+ global::System.Func? pipelineRunBase = null,
+ global::System.Func? recordProcessingEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineRunBase && pipelineRunBase != null)
+ {
+ return pipelineRunBase(PipelineRunBase!);
+ }
+ else if (IsRecordProcessingEventVariant2 && recordProcessingEventVariant2 != null)
+ {
+ return recordProcessingEventVariant2(RecordProcessingEventVariant2!);
+ }
+
+ return default(TResult);
+ }
+
+ ///
+ ///
+ ///
+ public void Match(
+ global::System.Action? pipelineRunBase = null,
+
+ global::System.Action? recordProcessingEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineRunBase)
+ {
+ pipelineRunBase?.Invoke(PipelineRunBase!);
+ }
+ else if (IsRecordProcessingEventVariant2)
+ {
+ recordProcessingEventVariant2?.Invoke(RecordProcessingEventVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? pipelineRunBase = null,
+ global::System.Action? recordProcessingEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineRunBase)
+ {
+ pipelineRunBase?.Invoke(PipelineRunBase!);
+ }
+ else if (IsRecordProcessingEventVariant2)
+ {
+ recordProcessingEventVariant2?.Invoke(RecordProcessingEventVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ var fields = new object?[]
+ {
+ PipelineRunBase,
+ typeof(global::Vectara.PipelineRunEventBase),
+ RecordProcessingEventVariant2,
+ typeof(global::Vectara.RecordProcessingEventVariant2),
+ };
+ const int offset = unchecked((int)2166136261);
+ const int prime = 16777619;
+ static int HashCodeAggregator(int hashCode, object? value) => value == null
+ ? (hashCode ^ 0) * prime
+ : (hashCode ^ value.GetHashCode()) * prime;
+
+ return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator);
+ }
+
+ ///
+ ///
+ ///
+ public bool Equals(RecordProcessingEvent other)
+ {
+ return
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(PipelineRunBase, other.PipelineRunBase) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(RecordProcessingEventVariant2, other.RecordProcessingEventVariant2)
+ ;
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator ==(RecordProcessingEvent obj1, RecordProcessingEvent obj2)
+ {
+ return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2);
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator !=(RecordProcessingEvent obj1, RecordProcessingEvent obj2)
+ {
+ return !(obj1 == obj2);
+ }
+
+ ///
+ ///
+ ///
+ public override bool Equals(object? obj)
+ {
+ return obj is RecordProcessingEvent o && Equals(o);
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEventStatus.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEventStatus.g.cs
new file mode 100644
index 0000000..51f4014
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEventStatus.g.cs
@@ -0,0 +1,57 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// Lifecycle status of a single source record within a run.
+ ///
+ public enum RecordProcessingEventStatus
+ {
+ ///
+ ///
+ ///
+ Completed,
+ ///
+ ///
+ ///
+ Failed,
+ ///
+ ///
+ ///
+ Started,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class RecordProcessingEventStatusExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this RecordProcessingEventStatus value)
+ {
+ return value switch
+ {
+ RecordProcessingEventStatus.Completed => "completed",
+ RecordProcessingEventStatus.Failed => "failed",
+ RecordProcessingEventStatus.Started => "started",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static RecordProcessingEventStatus? ToEnum(string value)
+ {
+ return value switch
+ {
+ "completed" => RecordProcessingEventStatus.Completed,
+ "failed" => RecordProcessingEventStatus.Failed,
+ "started" => RecordProcessingEventStatus.Started,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEventVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEventVariant2.Json.g.cs
new file mode 100644
index 0000000..6a0de74
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEventVariant2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class RecordProcessingEventVariant2
+ {
+ ///
+ /// 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::Vectara.RecordProcessingEventVariant2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.RecordProcessingEventVariant2),
+ jsonSerializerContext) as global::Vectara.RecordProcessingEventVariant2;
+ }
+
+ ///
+ /// 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::Vectara.RecordProcessingEventVariant2? 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::Vectara.RecordProcessingEventVariant2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.RecordProcessingEventVariant2;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.RecordProcessingEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEventVariant2.g.cs
new file mode 100644
index 0000000..94a7617
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RecordProcessingEventVariant2.g.cs
@@ -0,0 +1,119 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ ///
+ ///
+ public sealed partial class RecordProcessingEventVariant2
+ {
+ ///
+ /// Default Value: record_processing
+ ///
+ /// "record_processing"
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Type { get; set; } = "record_processing";
+
+ ///
+ /// Lifecycle status of a single source record within a run.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.RecordProcessingEventStatusJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Vectara.RecordProcessingEventStatus Status { get; set; }
+
+ ///
+ /// The identifier of the source record.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("source_record_id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string SourceRecordId { get; set; }
+
+ ///
+ /// The agent session created to process this record. Always present on `completed`;
+ /// may be present on `failed` if a session was created before the failure; null on `started`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("session_key")]
+ public string? SessionKey { get; set; }
+
+ ///
+ /// True if a `completed` record was skipped because a prior successful session already exists at the same watermark. Only meaningful when `status` is `completed`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("skipped")]
+ public bool? Skipped { get; set; }
+
+ ///
+ /// Failure message. Present when `status` is `failed`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ public string? Error { get; set; }
+
+ ///
+ /// Whether a `failed` record resulted in a dead-letter write or update. Only meaningful when `status` is `failed`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("dead_lettered")]
+ public bool? DeadLettered { 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.
+ ///
+ ///
+ /// Default Value: record_processing
+ ///
+ ///
+ /// Lifecycle status of a single source record within a run.
+ ///
+ ///
+ /// The identifier of the source record.
+ ///
+ ///
+ /// The agent session created to process this record. Always present on `completed`;
+ /// may be present on `failed` if a session was created before the failure; null on `started`.
+ ///
+ ///
+ /// True if a `completed` record was skipped because a prior successful session already exists at the same watermark. Only meaningful when `status` is `completed`.
+ ///
+ ///
+ /// Failure message. Present when `status` is `failed`.
+ ///
+ ///
+ /// Whether a `failed` record resulted in a dead-letter write or update. Only meaningful when `status` is `failed`.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public RecordProcessingEventVariant2(
+ string type,
+ global::Vectara.RecordProcessingEventStatus status,
+ string sourceRecordId,
+ string? sessionKey,
+ bool? skipped,
+ string? error,
+ bool? deadLettered)
+ {
+ this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
+ this.Status = status;
+ this.SourceRecordId = sourceRecordId ?? throw new global::System.ArgumentNullException(nameof(sourceRecordId));
+ this.SessionKey = sessionKey;
+ this.Skipped = skipped;
+ this.Error = error;
+ this.DeadLettered = deadLettered;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public RecordProcessingEventVariant2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEvent.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEvent.Json.g.cs
new file mode 100644
index 0000000..56e7a79
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEvent.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public readonly partial struct RunCompletedEvent
+ {
+ ///
+ /// 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::Vectara.RunCompletedEvent? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.RunCompletedEvent),
+ jsonSerializerContext) as global::Vectara.RunCompletedEvent?;
+ }
+
+ ///
+ /// 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::Vectara.RunCompletedEvent? 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::Vectara.RunCompletedEvent),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.RunCompletedEvent?;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.RunCompletedEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEvent.g.cs
new file mode 100644
index 0000000..599d69b
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEvent.g.cs
@@ -0,0 +1,296 @@
+#pragma warning disable CS0618 // Type or member is obsolete
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// The pipeline run reached a terminal state. `status` distinguishes a successful completion
+ /// from a failure, cancellation, or timeout.
+ ///
+ public readonly partial struct RunCompletedEvent : global::System.IEquatable
+ {
+ ///
+ /// Common fields shared by all pipeline run events.
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.PipelineRunEventBase? PipelineBase { get; init; }
+#else
+ public global::Vectara.PipelineRunEventBase? PipelineBase { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PipelineBase))]
+#endif
+ public bool IsPipelineBase => PipelineBase != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickPipelineBase(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.PipelineRunEventBase? value)
+ {
+ value = PipelineBase;
+ return IsPipelineBase;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.PipelineRunEventBase PickPipelineBase() => IsPipelineBase
+ ? PipelineBase!
+ : throw new global::System.InvalidOperationException($"Expected union variant 'PipelineBase' but the value was {ToString()}.");
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.RunCompletedEventVariant2? RunCompletedEventVariant2 { get; init; }
+#else
+ public global::Vectara.RunCompletedEventVariant2? RunCompletedEventVariant2 { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunCompletedEventVariant2))]
+#endif
+ public bool IsRunCompletedEventVariant2 => RunCompletedEventVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickRunCompletedEventVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.RunCompletedEventVariant2? value)
+ {
+ value = RunCompletedEventVariant2;
+ return IsRunCompletedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.RunCompletedEventVariant2 PickRunCompletedEventVariant2() => IsRunCompletedEventVariant2
+ ? RunCompletedEventVariant2!
+ : throw new global::System.InvalidOperationException($"Expected union variant 'RunCompletedEventVariant2' but the value was {ToString()}.");
+ ///
+ ///
+ ///
+ public static implicit operator RunCompletedEvent(global::Vectara.PipelineRunEventBase value) => new RunCompletedEvent((global::Vectara.PipelineRunEventBase?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.PipelineRunEventBase?(RunCompletedEvent @this) => @this.PipelineBase;
+
+ ///
+ ///
+ ///
+ public RunCompletedEvent(global::Vectara.PipelineRunEventBase? value)
+ {
+ PipelineBase = value;
+ }
+
+ ///
+ ///
+ ///
+ public static RunCompletedEvent FromPipelineBase(global::Vectara.PipelineRunEventBase? value) => new RunCompletedEvent(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator RunCompletedEvent(global::Vectara.RunCompletedEventVariant2 value) => new RunCompletedEvent((global::Vectara.RunCompletedEventVariant2?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.RunCompletedEventVariant2?(RunCompletedEvent @this) => @this.RunCompletedEventVariant2;
+
+ ///
+ ///
+ ///
+ public RunCompletedEvent(global::Vectara.RunCompletedEventVariant2? value)
+ {
+ RunCompletedEventVariant2 = value;
+ }
+
+ ///
+ ///
+ ///
+ public static RunCompletedEvent FromRunCompletedEventVariant2(global::Vectara.RunCompletedEventVariant2? value) => new RunCompletedEvent(value);
+
+ ///
+ ///
+ ///
+ public RunCompletedEvent(
+ global::Vectara.PipelineRunEventBase? pipelineBase,
+ global::Vectara.RunCompletedEventVariant2? runCompletedEventVariant2
+ )
+ {
+ PipelineBase = pipelineBase;
+ RunCompletedEventVariant2 = runCompletedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public object? Object =>
+ RunCompletedEventVariant2 as object ??
+ PipelineBase as object
+ ;
+
+ ///
+ ///
+ ///
+ public override string? ToString() =>
+ PipelineBase?.ToString() ??
+ RunCompletedEventVariant2?.ToString()
+ ;
+
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ return IsPipelineBase && IsRunCompletedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public TResult? Match(
+ global::System.Func? pipelineBase = null,
+ global::System.Func? runCompletedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineBase && pipelineBase != null)
+ {
+ return pipelineBase(PipelineBase!);
+ }
+ else if (IsRunCompletedEventVariant2 && runCompletedEventVariant2 != null)
+ {
+ return runCompletedEventVariant2(RunCompletedEventVariant2!);
+ }
+
+ return default(TResult);
+ }
+
+ ///
+ ///
+ ///
+ public void Match(
+ global::System.Action? pipelineBase = null,
+
+ global::System.Action? runCompletedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineBase)
+ {
+ pipelineBase?.Invoke(PipelineBase!);
+ }
+ else if (IsRunCompletedEventVariant2)
+ {
+ runCompletedEventVariant2?.Invoke(RunCompletedEventVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? pipelineBase = null,
+ global::System.Action? runCompletedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineBase)
+ {
+ pipelineBase?.Invoke(PipelineBase!);
+ }
+ else if (IsRunCompletedEventVariant2)
+ {
+ runCompletedEventVariant2?.Invoke(RunCompletedEventVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ var fields = new object?[]
+ {
+ PipelineBase,
+ typeof(global::Vectara.PipelineRunEventBase),
+ RunCompletedEventVariant2,
+ typeof(global::Vectara.RunCompletedEventVariant2),
+ };
+ const int offset = unchecked((int)2166136261);
+ const int prime = 16777619;
+ static int HashCodeAggregator(int hashCode, object? value) => value == null
+ ? (hashCode ^ 0) * prime
+ : (hashCode ^ value.GetHashCode()) * prime;
+
+ return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator);
+ }
+
+ ///
+ ///
+ ///
+ public bool Equals(RunCompletedEvent other)
+ {
+ return
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(PipelineBase, other.PipelineBase) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(RunCompletedEventVariant2, other.RunCompletedEventVariant2)
+ ;
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator ==(RunCompletedEvent obj1, RunCompletedEvent obj2)
+ {
+ return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2);
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator !=(RunCompletedEvent obj1, RunCompletedEvent obj2)
+ {
+ return !(obj1 == obj2);
+ }
+
+ ///
+ ///
+ ///
+ public override bool Equals(object? obj)
+ {
+ return obj is RunCompletedEvent o && Equals(o);
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEventStatus.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEventStatus.g.cs
new file mode 100644
index 0000000..438f007
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEventStatus.g.cs
@@ -0,0 +1,63 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// Terminal status of a pipeline run.
+ ///
+ public enum RunCompletedEventStatus
+ {
+ ///
+ ///
+ ///
+ Cancelled,
+ ///
+ ///
+ ///
+ Completed,
+ ///
+ ///
+ ///
+ Failed,
+ ///
+ ///
+ ///
+ TimedOut,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class RunCompletedEventStatusExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this RunCompletedEventStatus value)
+ {
+ return value switch
+ {
+ RunCompletedEventStatus.Cancelled => "cancelled",
+ RunCompletedEventStatus.Completed => "completed",
+ RunCompletedEventStatus.Failed => "failed",
+ RunCompletedEventStatus.TimedOut => "timed_out",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static RunCompletedEventStatus? ToEnum(string value)
+ {
+ return value switch
+ {
+ "cancelled" => RunCompletedEventStatus.Cancelled,
+ "completed" => RunCompletedEventStatus.Completed,
+ "failed" => RunCompletedEventStatus.Failed,
+ "timed_out" => RunCompletedEventStatus.TimedOut,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEventVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEventVariant2.Json.g.cs
new file mode 100644
index 0000000..27c52ff
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEventVariant2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class RunCompletedEventVariant2
+ {
+ ///
+ /// 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::Vectara.RunCompletedEventVariant2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.RunCompletedEventVariant2),
+ jsonSerializerContext) as global::Vectara.RunCompletedEventVariant2;
+ }
+
+ ///
+ /// 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::Vectara.RunCompletedEventVariant2? 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::Vectara.RunCompletedEventVariant2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.RunCompletedEventVariant2;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.RunCompletedEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEventVariant2.g.cs
new file mode 100644
index 0000000..a961ecb
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunCompletedEventVariant2.g.cs
@@ -0,0 +1,101 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ ///
+ ///
+ public sealed partial class RunCompletedEventVariant2
+ {
+ ///
+ /// Default Value: run_completed
+ ///
+ /// "run_completed"
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Type { get; set; } = "run_completed";
+
+ ///
+ /// Terminal status of a pipeline run.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.RunCompletedEventStatusJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Vectara.RunCompletedEventStatus Status { get; set; }
+
+ ///
+ /// Total records fetched across the run. Present when the run reported counters; absent for cancellation or timeout.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("records_fetched")]
+ public int? RecordsFetched { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("records_processed")]
+ public int? RecordsProcessed { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("records_failed")]
+ public int? RecordsFailed { get; set; }
+
+ ///
+ /// Failure message. Present when `status` is not `completed`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ public string? Error { 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.
+ ///
+ ///
+ /// Default Value: run_completed
+ ///
+ ///
+ /// Terminal status of a pipeline run.
+ ///
+ ///
+ /// Total records fetched across the run. Present when the run reported counters; absent for cancellation or timeout.
+ ///
+ ///
+ ///
+ ///
+ /// Failure message. Present when `status` is not `completed`.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public RunCompletedEventVariant2(
+ string type,
+ global::Vectara.RunCompletedEventStatus status,
+ int? recordsFetched,
+ int? recordsProcessed,
+ int? recordsFailed,
+ string? error)
+ {
+ this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
+ this.Status = status;
+ this.RecordsFetched = recordsFetched;
+ this.RecordsProcessed = recordsProcessed;
+ this.RecordsFailed = recordsFailed;
+ this.Error = error;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public RunCompletedEventVariant2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.RunStartedEvent.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunStartedEvent.Json.g.cs
new file mode 100644
index 0000000..a06f09e
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunStartedEvent.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public readonly partial struct RunStartedEvent
+ {
+ ///
+ /// 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::Vectara.RunStartedEvent? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.RunStartedEvent),
+ jsonSerializerContext) as global::Vectara.RunStartedEvent?;
+ }
+
+ ///
+ /// 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::Vectara.RunStartedEvent? 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::Vectara.RunStartedEvent),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.RunStartedEvent?;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.RunStartedEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunStartedEvent.g.cs
new file mode 100644
index 0000000..511556a
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunStartedEvent.g.cs
@@ -0,0 +1,295 @@
+#pragma warning disable CS0618 // Type or member is obsolete
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// The pipeline run started executing.
+ ///
+ public readonly partial struct RunStartedEvent : global::System.IEquatable
+ {
+ ///
+ /// Common fields shared by all pipeline run events.
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.PipelineRunEventBase? PipelineBase { get; init; }
+#else
+ public global::Vectara.PipelineRunEventBase? PipelineBase { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PipelineBase))]
+#endif
+ public bool IsPipelineBase => PipelineBase != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickPipelineBase(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.PipelineRunEventBase? value)
+ {
+ value = PipelineBase;
+ return IsPipelineBase;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.PipelineRunEventBase PickPipelineBase() => IsPipelineBase
+ ? PipelineBase!
+ : throw new global::System.InvalidOperationException($"Expected union variant 'PipelineBase' but the value was {ToString()}.");
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.RunStartedEventVariant2? RunStartedEventVariant2 { get; init; }
+#else
+ public global::Vectara.RunStartedEventVariant2? RunStartedEventVariant2 { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStartedEventVariant2))]
+#endif
+ public bool IsRunStartedEventVariant2 => RunStartedEventVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickRunStartedEventVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.RunStartedEventVariant2? value)
+ {
+ value = RunStartedEventVariant2;
+ return IsRunStartedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.RunStartedEventVariant2 PickRunStartedEventVariant2() => IsRunStartedEventVariant2
+ ? RunStartedEventVariant2!
+ : throw new global::System.InvalidOperationException($"Expected union variant 'RunStartedEventVariant2' but the value was {ToString()}.");
+ ///
+ ///
+ ///
+ public static implicit operator RunStartedEvent(global::Vectara.PipelineRunEventBase value) => new RunStartedEvent((global::Vectara.PipelineRunEventBase?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.PipelineRunEventBase?(RunStartedEvent @this) => @this.PipelineBase;
+
+ ///
+ ///
+ ///
+ public RunStartedEvent(global::Vectara.PipelineRunEventBase? value)
+ {
+ PipelineBase = value;
+ }
+
+ ///
+ ///
+ ///
+ public static RunStartedEvent FromPipelineBase(global::Vectara.PipelineRunEventBase? value) => new RunStartedEvent(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator RunStartedEvent(global::Vectara.RunStartedEventVariant2 value) => new RunStartedEvent((global::Vectara.RunStartedEventVariant2?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.RunStartedEventVariant2?(RunStartedEvent @this) => @this.RunStartedEventVariant2;
+
+ ///
+ ///
+ ///
+ public RunStartedEvent(global::Vectara.RunStartedEventVariant2? value)
+ {
+ RunStartedEventVariant2 = value;
+ }
+
+ ///
+ ///
+ ///
+ public static RunStartedEvent FromRunStartedEventVariant2(global::Vectara.RunStartedEventVariant2? value) => new RunStartedEvent(value);
+
+ ///
+ ///
+ ///
+ public RunStartedEvent(
+ global::Vectara.PipelineRunEventBase? pipelineBase,
+ global::Vectara.RunStartedEventVariant2? runStartedEventVariant2
+ )
+ {
+ PipelineBase = pipelineBase;
+ RunStartedEventVariant2 = runStartedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public object? Object =>
+ RunStartedEventVariant2 as object ??
+ PipelineBase as object
+ ;
+
+ ///
+ ///
+ ///
+ public override string? ToString() =>
+ PipelineBase?.ToString() ??
+ RunStartedEventVariant2?.ToString()
+ ;
+
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ return IsPipelineBase && IsRunStartedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public TResult? Match(
+ global::System.Func? pipelineBase = null,
+ global::System.Func? runStartedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineBase && pipelineBase != null)
+ {
+ return pipelineBase(PipelineBase!);
+ }
+ else if (IsRunStartedEventVariant2 && runStartedEventVariant2 != null)
+ {
+ return runStartedEventVariant2(RunStartedEventVariant2!);
+ }
+
+ return default(TResult);
+ }
+
+ ///
+ ///
+ ///
+ public void Match(
+ global::System.Action? pipelineBase = null,
+
+ global::System.Action? runStartedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineBase)
+ {
+ pipelineBase?.Invoke(PipelineBase!);
+ }
+ else if (IsRunStartedEventVariant2)
+ {
+ runStartedEventVariant2?.Invoke(RunStartedEventVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? pipelineBase = null,
+ global::System.Action? runStartedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineBase)
+ {
+ pipelineBase?.Invoke(PipelineBase!);
+ }
+ else if (IsRunStartedEventVariant2)
+ {
+ runStartedEventVariant2?.Invoke(RunStartedEventVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ var fields = new object?[]
+ {
+ PipelineBase,
+ typeof(global::Vectara.PipelineRunEventBase),
+ RunStartedEventVariant2,
+ typeof(global::Vectara.RunStartedEventVariant2),
+ };
+ const int offset = unchecked((int)2166136261);
+ const int prime = 16777619;
+ static int HashCodeAggregator(int hashCode, object? value) => value == null
+ ? (hashCode ^ 0) * prime
+ : (hashCode ^ value.GetHashCode()) * prime;
+
+ return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator);
+ }
+
+ ///
+ ///
+ ///
+ public bool Equals(RunStartedEvent other)
+ {
+ return
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(PipelineBase, other.PipelineBase) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStartedEventVariant2, other.RunStartedEventVariant2)
+ ;
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator ==(RunStartedEvent obj1, RunStartedEvent obj2)
+ {
+ return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2);
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator !=(RunStartedEvent obj1, RunStartedEvent obj2)
+ {
+ return !(obj1 == obj2);
+ }
+
+ ///
+ ///
+ ///
+ public override bool Equals(object? obj)
+ {
+ return obj is RunStartedEvent o && Equals(o);
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.Models.RunStartedEventVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunStartedEventVariant2.Json.g.cs
new file mode 100644
index 0000000..c040cd9
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunStartedEventVariant2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class RunStartedEventVariant2
+ {
+ ///
+ /// 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::Vectara.RunStartedEventVariant2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.RunStartedEventVariant2),
+ jsonSerializerContext) as global::Vectara.RunStartedEventVariant2;
+ }
+
+ ///
+ /// 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::Vectara.RunStartedEventVariant2? 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::Vectara.RunStartedEventVariant2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.RunStartedEventVariant2;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.RunStartedEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.RunStartedEventVariant2.g.cs
new file mode 100644
index 0000000..6a9380f
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.RunStartedEventVariant2.g.cs
@@ -0,0 +1,115 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ ///
+ ///
+ public sealed partial class RunStartedEventVariant2
+ {
+ ///
+ /// Default Value: run_started
+ ///
+ /// "run_started"
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Type { get; set; } = "run_started";
+
+ ///
+ /// A unique key that identifies an agent.
+ /// Example: customer_support
+ ///
+ /// customer_support
+ [global::System.Text.Json.Serialization.JsonPropertyName("agent_key")]
+ public string? AgentKey { get; set; }
+
+ ///
+ /// What initiated the pipeline run.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("trigger_type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.PipelineRunTriggerTypeJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Vectara.PipelineRunTriggerType TriggerType { get; set; }
+
+ ///
+ /// How the pipeline syncs data from the source.
+ /// - `incremental`: Only process new or changed records since the last watermark.
+ /// - `full_refresh`: Process all records from the source on each run.
+ /// Default Value: incremental
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sync_mode")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Vectara.JsonConverters.PipelineSyncModeJsonConverter))]
+ public global::Vectara.PipelineSyncMode? SyncMode { get; set; }
+
+ ///
+ /// Source watermark this run starts from. Null on full refresh or first run.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("start_watermark")]
+ public string? StartWatermark { get; set; }
+
+ ///
+ /// Upper bound watermark this run will not cross.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("end_watermark")]
+ public string? EndWatermark { 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.
+ ///
+ ///
+ /// Default Value: run_started
+ ///
+ ///
+ /// What initiated the pipeline run.
+ ///
+ ///
+ /// A unique key that identifies an agent.
+ /// Example: customer_support
+ ///
+ ///
+ /// How the pipeline syncs data from the source.
+ /// - `incremental`: Only process new or changed records since the last watermark.
+ /// - `full_refresh`: Process all records from the source on each run.
+ /// Default Value: incremental
+ ///
+ ///
+ /// Source watermark this run starts from. Null on full refresh or first run.
+ ///
+ ///
+ /// Upper bound watermark this run will not cross.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public RunStartedEventVariant2(
+ string type,
+ global::Vectara.PipelineRunTriggerType triggerType,
+ string? agentKey,
+ global::Vectara.PipelineSyncMode? syncMode,
+ string? startWatermark,
+ string? endWatermark)
+ {
+ this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
+ this.AgentKey = agentKey;
+ this.TriggerType = triggerType;
+ this.SyncMode = syncMode;
+ this.StartWatermark = startWatermark;
+ this.EndWatermark = endWatermark;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public RunStartedEventVariant2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.SortOrder.g.cs b/src/libs/Vectara/Generated/Vectara.Models.SortOrder.g.cs
new file mode 100644
index 0000000..d02301e
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.SortOrder.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// Sort direction for paginated list endpoints.
+ ///
+ public enum SortOrder
+ {
+ ///
+ ///
+ ///
+ Asc,
+ ///
+ ///
+ ///
+ Desc,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class SortOrderExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this SortOrder value)
+ {
+ return value switch
+ {
+ SortOrder.Asc => "asc",
+ SortOrder.Desc => "desc",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static SortOrder? ToEnum(string value)
+ {
+ return value switch
+ {
+ "asc" => SortOrder.Asc,
+ "desc" => SortOrder.Desc,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEvent.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEvent.Json.g.cs
new file mode 100644
index 0000000..84753e2
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEvent.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public readonly partial struct WatermarkAdvancedEvent
+ {
+ ///
+ /// 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::Vectara.WatermarkAdvancedEvent? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.WatermarkAdvancedEvent),
+ jsonSerializerContext) as global::Vectara.WatermarkAdvancedEvent?;
+ }
+
+ ///
+ /// 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::Vectara.WatermarkAdvancedEvent? 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::Vectara.WatermarkAdvancedEvent),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.WatermarkAdvancedEvent?;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.WatermarkAdvancedEvent.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEvent.g.cs
new file mode 100644
index 0000000..c962020
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEvent.g.cs
@@ -0,0 +1,295 @@
+#pragma warning disable CS0618 // Type or member is obsolete
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ /// The pipeline's persisted watermark moved forward at the end of the run.
+ ///
+ public readonly partial struct WatermarkAdvancedEvent : global::System.IEquatable
+ {
+ ///
+ /// Common fields shared by all pipeline run events.
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.PipelineRunEventBase? PipelineRunBase { get; init; }
+#else
+ public global::Vectara.PipelineRunEventBase? PipelineRunBase { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PipelineRunBase))]
+#endif
+ public bool IsPipelineRunBase => PipelineRunBase != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickPipelineRunBase(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.PipelineRunEventBase? value)
+ {
+ value = PipelineRunBase;
+ return IsPipelineRunBase;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.PipelineRunEventBase PickPipelineRunBase() => IsPipelineRunBase
+ ? PipelineRunBase!
+ : throw new global::System.InvalidOperationException($"Expected union variant 'PipelineRunBase' but the value was {ToString()}.");
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ public global::Vectara.WatermarkAdvancedEventVariant2? WatermarkAdvancedEventVariant2 { get; init; }
+#else
+ public global::Vectara.WatermarkAdvancedEventVariant2? WatermarkAdvancedEventVariant2 { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WatermarkAdvancedEventVariant2))]
+#endif
+ public bool IsWatermarkAdvancedEventVariant2 => WatermarkAdvancedEventVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickWatermarkAdvancedEventVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Vectara.WatermarkAdvancedEventVariant2? value)
+ {
+ value = WatermarkAdvancedEventVariant2;
+ return IsWatermarkAdvancedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public global::Vectara.WatermarkAdvancedEventVariant2 PickWatermarkAdvancedEventVariant2() => IsWatermarkAdvancedEventVariant2
+ ? WatermarkAdvancedEventVariant2!
+ : throw new global::System.InvalidOperationException($"Expected union variant 'WatermarkAdvancedEventVariant2' but the value was {ToString()}.");
+ ///
+ ///
+ ///
+ public static implicit operator WatermarkAdvancedEvent(global::Vectara.PipelineRunEventBase value) => new WatermarkAdvancedEvent((global::Vectara.PipelineRunEventBase?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.PipelineRunEventBase?(WatermarkAdvancedEvent @this) => @this.PipelineRunBase;
+
+ ///
+ ///
+ ///
+ public WatermarkAdvancedEvent(global::Vectara.PipelineRunEventBase? value)
+ {
+ PipelineRunBase = value;
+ }
+
+ ///
+ ///
+ ///
+ public static WatermarkAdvancedEvent FromPipelineRunBase(global::Vectara.PipelineRunEventBase? value) => new WatermarkAdvancedEvent(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator WatermarkAdvancedEvent(global::Vectara.WatermarkAdvancedEventVariant2 value) => new WatermarkAdvancedEvent((global::Vectara.WatermarkAdvancedEventVariant2?)value);
+
+ ///
+ ///
+ ///
+ public static implicit operator global::Vectara.WatermarkAdvancedEventVariant2?(WatermarkAdvancedEvent @this) => @this.WatermarkAdvancedEventVariant2;
+
+ ///
+ ///
+ ///
+ public WatermarkAdvancedEvent(global::Vectara.WatermarkAdvancedEventVariant2? value)
+ {
+ WatermarkAdvancedEventVariant2 = value;
+ }
+
+ ///
+ ///
+ ///
+ public static WatermarkAdvancedEvent FromWatermarkAdvancedEventVariant2(global::Vectara.WatermarkAdvancedEventVariant2? value) => new WatermarkAdvancedEvent(value);
+
+ ///
+ ///
+ ///
+ public WatermarkAdvancedEvent(
+ global::Vectara.PipelineRunEventBase? pipelineRunBase,
+ global::Vectara.WatermarkAdvancedEventVariant2? watermarkAdvancedEventVariant2
+ )
+ {
+ PipelineRunBase = pipelineRunBase;
+ WatermarkAdvancedEventVariant2 = watermarkAdvancedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public object? Object =>
+ WatermarkAdvancedEventVariant2 as object ??
+ PipelineRunBase as object
+ ;
+
+ ///
+ ///
+ ///
+ public override string? ToString() =>
+ PipelineRunBase?.ToString() ??
+ WatermarkAdvancedEventVariant2?.ToString()
+ ;
+
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ return IsPipelineRunBase && IsWatermarkAdvancedEventVariant2;
+ }
+
+ ///
+ ///
+ ///
+ public TResult? Match(
+ global::System.Func? pipelineRunBase = null,
+ global::System.Func? watermarkAdvancedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineRunBase && pipelineRunBase != null)
+ {
+ return pipelineRunBase(PipelineRunBase!);
+ }
+ else if (IsWatermarkAdvancedEventVariant2 && watermarkAdvancedEventVariant2 != null)
+ {
+ return watermarkAdvancedEventVariant2(WatermarkAdvancedEventVariant2!);
+ }
+
+ return default(TResult);
+ }
+
+ ///
+ ///
+ ///
+ public void Match(
+ global::System.Action? pipelineRunBase = null,
+
+ global::System.Action? watermarkAdvancedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineRunBase)
+ {
+ pipelineRunBase?.Invoke(PipelineRunBase!);
+ }
+ else if (IsWatermarkAdvancedEventVariant2)
+ {
+ watermarkAdvancedEventVariant2?.Invoke(WatermarkAdvancedEventVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? pipelineRunBase = null,
+ global::System.Action? watermarkAdvancedEventVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPipelineRunBase)
+ {
+ pipelineRunBase?.Invoke(PipelineRunBase!);
+ }
+ else if (IsWatermarkAdvancedEventVariant2)
+ {
+ watermarkAdvancedEventVariant2?.Invoke(WatermarkAdvancedEventVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ var fields = new object?[]
+ {
+ PipelineRunBase,
+ typeof(global::Vectara.PipelineRunEventBase),
+ WatermarkAdvancedEventVariant2,
+ typeof(global::Vectara.WatermarkAdvancedEventVariant2),
+ };
+ const int offset = unchecked((int)2166136261);
+ const int prime = 16777619;
+ static int HashCodeAggregator(int hashCode, object? value) => value == null
+ ? (hashCode ^ 0) * prime
+ : (hashCode ^ value.GetHashCode()) * prime;
+
+ return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator);
+ }
+
+ ///
+ ///
+ ///
+ public bool Equals(WatermarkAdvancedEvent other)
+ {
+ return
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(PipelineRunBase, other.PipelineRunBase) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(WatermarkAdvancedEventVariant2, other.WatermarkAdvancedEventVariant2)
+ ;
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator ==(WatermarkAdvancedEvent obj1, WatermarkAdvancedEvent obj2)
+ {
+ return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2);
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator !=(WatermarkAdvancedEvent obj1, WatermarkAdvancedEvent obj2)
+ {
+ return !(obj1 == obj2);
+ }
+
+ ///
+ ///
+ ///
+ public override bool Equals(object? obj)
+ {
+ return obj is WatermarkAdvancedEvent o && Equals(o);
+ }
+ }
+}
diff --git a/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEventVariant2.Json.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEventVariant2.Json.g.cs
new file mode 100644
index 0000000..8a0e651
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEventVariant2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Vectara
+{
+ public sealed partial class WatermarkAdvancedEventVariant2
+ {
+ ///
+ /// 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::Vectara.WatermarkAdvancedEventVariant2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Vectara.WatermarkAdvancedEventVariant2),
+ jsonSerializerContext) as global::Vectara.WatermarkAdvancedEventVariant2;
+ }
+
+ ///
+ /// 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::Vectara.WatermarkAdvancedEventVariant2? 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::Vectara.WatermarkAdvancedEventVariant2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Vectara.WatermarkAdvancedEventVariant2;
+ }
+
+ ///
+ /// 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/Vectara/Generated/Vectara.Models.WatermarkAdvancedEventVariant2.g.cs b/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEventVariant2.g.cs
new file mode 100644
index 0000000..630f6ae
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.Models.WatermarkAdvancedEventVariant2.g.cs
@@ -0,0 +1,58 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ ///
+ ///
+ ///
+ public sealed partial class WatermarkAdvancedEventVariant2
+ {
+ ///
+ /// Default Value: watermark_advanced
+ ///
+ /// "watermark_advanced"
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Type { get; set; } = "watermark_advanced";
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("watermark")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Watermark { 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.
+ ///
+ ///
+ /// Default Value: watermark_advanced
+ ///
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public WatermarkAdvancedEventVariant2(
+ string type,
+ string watermark)
+ {
+ this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
+ this.Watermark = watermark ?? throw new global::System.ArgumentNullException(nameof(watermark));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public WatermarkAdvancedEventVariant2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/Generated/Vectara.PipelineRunsClient.ListEvents.g.cs b/src/libs/Vectara/Generated/Vectara.PipelineRunsClient.ListEvents.g.cs
new file mode 100644
index 0000000..d30b7cf
--- /dev/null
+++ b/src/libs/Vectara/Generated/Vectara.PipelineRunsClient.ListEvents.g.cs
@@ -0,0 +1,634 @@
+
+#nullable enable
+
+namespace Vectara
+{
+ public partial class PipelineRunsClient
+ {
+
+
+ private static readonly global::Vectara.EndPointSecurityRequirement s_ListEventsSecurityRequirement0 =
+ new global::Vectara.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Vectara.EndPointAuthorizationRequirement[]
+ { new global::Vectara.EndPointAuthorizationRequirement
+ {
+ Type = "ApiKey",
+ SchemeId = "ApiKeyAuth",
+ Location = "Header",
+ Name = "x-api-key",
+ FriendlyName = "ApiKeyInHeader",
+ },
+ },
+ };
+
+ private static readonly global::Vectara.EndPointSecurityRequirement s_ListEventsSecurityRequirement1 =
+ new global::Vectara.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Vectara.EndPointAuthorizationRequirement[]
+ { new global::Vectara.EndPointAuthorizationRequirement
+ {
+ Type = "OAuth2",
+ SchemeId = "OAuth2",
+ Location = "Header",
+ Name = "",
+ FriendlyName = "OAuth2",
+ },
+ },
+ };
+ private static readonly global::Vectara.EndPointSecurityRequirement[] s_ListEventsSecurityRequirements =
+ new global::Vectara.EndPointSecurityRequirement[]
+ { s_ListEventsSecurityRequirement0,
+ s_ListEventsSecurityRequirement1,
+ };
+ partial void PrepareListEventsArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref int? requestTimeout,
+ ref int? requestTimeoutMillis,
+ ref string pipelineKey,
+ ref string runId,
+ global::System.Collections.Generic.IList? type,
+ ref string? sourceRecordId,
+ ref global::Vectara.SortOrder? order,
+ ref int? limit,
+ ref string? pageKey);
+ partial void PrepareListEventsRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ int? requestTimeout,
+ int? requestTimeoutMillis,
+ string pipelineKey,
+ string runId,
+ global::System.Collections.Generic.IList? type,
+ string? sourceRecordId,
+ global::Vectara.SortOrder? order,
+ int? limit,
+ string? pageKey);
+ partial void ProcessListEventsResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessListEventsResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// List pipeline run events
+ /// List the timeline of events for a pipeline run. Events surface what the run did from a customer-observability perspective (records discovered, records processed, agent sessions created, dead letters, watermark advances, lifecycle transitions) rather than every internal Temporal step. A pipeline run may span multiple underlying Temporal executions; this endpoint stitches them into a single timeline keyed by `run_id`.
+ ///
+ ///
+ ///
+ ///
+ /// The unique key for the pipeline. Can be user-provided or auto-generated.
+ /// Example: sharepoint-legal-ingest
+ ///
+ ///
+ /// The unique identifier for a pipeline run.
+ /// Example: run_pip_abc_manual_550e8400
+ ///
+ ///
+ ///
+ ///
+ /// Sort direction for paginated list endpoints.
+ ///
+ ///
+ /// Default Value: 50
+ ///
+ ///
+ /// 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 ListEventsAsync(
+ string pipelineKey,
+ string runId,
+ int? requestTimeout = default,
+ int? requestTimeoutMillis = default,
+ global::System.Collections.Generic.IList? type = default,
+ string? sourceRecordId = default,
+ global::Vectara.SortOrder? order = default,
+ int? limit = default,
+ string? pageKey = default,
+ global::Vectara.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListEventsAsResponseAsync(
+ pipelineKey: pipelineKey,
+ runId: runId,
+ requestTimeout: requestTimeout,
+ requestTimeoutMillis: requestTimeoutMillis,
+ type: type,
+ sourceRecordId: sourceRecordId,
+ order: order,
+ limit: limit,
+ pageKey: pageKey,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List pipeline run events
+ /// List the timeline of events for a pipeline run. Events surface what the run did from a customer-observability perspective (records discovered, records processed, agent sessions created, dead letters, watermark advances, lifecycle transitions) rather than every internal Temporal step. A pipeline run may span multiple underlying Temporal executions; this endpoint stitches them into a single timeline keyed by `run_id`.
+ ///
+ ///
+ ///
+ ///
+ /// The unique key for the pipeline. Can be user-provided or auto-generated.
+ /// Example: sharepoint-legal-ingest
+ ///
+ ///
+ /// The unique identifier for a pipeline run.
+ /// Example: run_pip_abc_manual_550e8400
+ ///
+ ///
+ ///
+ ///
+ /// Sort direction for paginated list endpoints.
+ ///
+ ///
+ /// Default Value: 50
+ ///
+ ///
+ /// 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> ListEventsAsResponseAsync(
+ string pipelineKey,
+ string runId,
+ int? requestTimeout = default,
+ int? requestTimeoutMillis = default,
+ global::System.Collections.Generic.IList? type = default,
+ string? sourceRecordId = default,
+ global::Vectara.SortOrder? order = default,
+ int? limit = default,
+ string? pageKey = default,
+ global::Vectara.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareListEventsArguments(
+ httpClient: HttpClient,
+ requestTimeout: ref requestTimeout,
+ requestTimeoutMillis: ref requestTimeoutMillis,
+ pipelineKey: ref pipelineKey,
+ runId: ref runId,
+ type: type,
+ sourceRecordId: ref sourceRecordId,
+ order: ref order,
+ limit: ref limit,
+ pageKey: ref pageKey);
+
+
+ var __authorizations = global::Vectara.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListEventsSecurityRequirements,
+ operationName: "ListEventsAsync");
+
+ using var __timeoutCancellationTokenSource = global::Vectara.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Vectara.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Vectara.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Vectara.PathBuilder(
+ path: $"/v2/pipelines/{pipelineKey}/runs/{runId}/events",
+ baseUri: HttpClient.BaseAddress);
+ __pathBuilder
+ .AddOptionalParameter("type", type, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
+ .AddOptionalParameter("source_record_id", sourceRecordId)
+ .AddOptionalParameter("order", order?.ToValueString())
+ .AddOptionalParameter("limit", limit?.ToString())
+ .AddOptionalParameter("page_key", pageKey)
+ ;
+ var __path = __pathBuilder.ToString();
+ __path = global::Vectara.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Get,
+ 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);
+ }
+ }
+
+ if (requestTimeout != default)
+ {
+ __httpRequest.Headers.TryAddWithoutValidation("Request-Timeout", requestTimeout.ToString());
+ }
+ if (requestTimeoutMillis != default)
+ {
+ __httpRequest.Headers.TryAddWithoutValidation("Request-Timeout-Millis", requestTimeoutMillis.ToString());
+ }
+
+ global::Vectara.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareListEventsRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ requestTimeout: requestTimeout,
+ requestTimeoutMillis: requestTimeoutMillis,
+ pipelineKey: pipelineKey!,
+ runId: runId!,
+ type: type,
+ sourceRecordId: sourceRecordId,
+ order: order,
+ limit: limit,
+ pageKey: pageKey);
+
+ 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::Vectara.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListEvents",
+ methodName: "ListEventsAsync",
+ pathTemplate: "$\"/v2/pipelines/{pipelineKey}/runs/{runId}/events\"",
+ httpMethod: "GET",
+ 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 global::Vectara.VectaraClient.AutoSDKOAuth2Helpers.SendAsync(
+ httpClient: HttpClient,
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ authorizations: __authorizations,
+ oAuth2Coordinator: AutoSDKOAuth2State,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Vectara.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListEvents",
+ methodName: "ListEventsAsync",
+ pathTemplate: "$\"/v2/pipelines/{pipelineKey}/runs/{runId}/events\"",
+ httpMethod: "GET",
+ 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::Vectara.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Vectara.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Vectara.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListEvents",
+ methodName: "ListEventsAsync",
+ pathTemplate: "$\"/v2/pipelines/{pipelineKey}/runs/{runId}/events\"",
+ httpMethod: "GET",
+ 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::Vectara.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);
+ ProcessListEventsResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Vectara.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListEvents",
+ methodName: "ListEventsAsync",
+ pathTemplate: "$\"/v2/pipelines/{pipelineKey}/runs/{runId}/events\"",
+ httpMethod: "GET",
+ 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::Vectara.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Vectara.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "ListEvents",
+ methodName: "ListEventsAsync",
+ pathTemplate: "$\"/v2/pipelines/{pipelineKey}/runs/{runId}/events\"",
+ httpMethod: "GET",
+ 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);
+ }
+ // Permissions do not allow accessing this run.
+ if ((int)__response.StatusCode == 403)
+ {
+ string? __content_403 = null;
+ global::System.Exception? __exception_403 = null;
+ global::Vectara.Error? __value_403 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_403 = global::Vectara.Error.FromJson(__content_403, JsonSerializerContext);
+ }
+ else
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_403 = global::Vectara.Error.FromJson(__content_403, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_403 = __ex;
+ }
+
+ throw new global::Vectara.ApiException(
+ message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_403,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_403,
+ ResponseObject = __value_403,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Pipeline or run not found.
+ if ((int)__response.StatusCode == 404)
+ {
+ string? __content_404 = null;
+ global::System.Exception? __exception_404 = null;
+ global::Vectara.NotFoundError? __value_404 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_404 = global::Vectara.NotFoundError.FromJson(__content_404, JsonSerializerContext);
+ }
+ else
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_404 = global::Vectara.NotFoundError.FromJson(__content_404, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_404 = __ex;
+ }
+
+ throw new global::Vectara.ApiException(
+ message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_404,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_404,
+ ResponseObject = __value_404,
+ 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);
+ ProcessListEventsResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Vectara.ListPipelineRunEventsResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Vectara.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Vectara.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Vectara.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Vectara.ListPipelineRunEventsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Vectara.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Vectara.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Vectara.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Vectara/openapi.yaml b/src/libs/Vectara/openapi.yaml
index 84b2ea1..99fd930 100644
--- a/src/libs/Vectara/openapi.yaml
+++ b/src/libs/Vectara/openapi.yaml
@@ -11818,6 +11818,105 @@ paths:
$ref: '#/components/schemas/Error'
x-fern-sdk-group-name: pipeline_runs
x-fern-sdk-method-name: cancel
+ /v2/pipelines/{pipeline_key}/runs/{run_id}/events:
+ get:
+ tags:
+ - Pipeline Runs
+ summary: List pipeline run events
+ x-required-roles:
+ - type: ApiRole
+ roles:
+ - pipeline_viewer
+ - pipeline_administrator
+ - viewer
+ - administrator
+ - owner
+ description: List the timeline of events for a pipeline run. Events surface
+ what the run did from a customer-observability perspective (records discovered,
+ records processed, agent sessions created, dead letters, watermark advances,
+ lifecycle transitions) rather than every internal Temporal step. A pipeline
+ run may span multiple underlying Temporal executions; this endpoint stitches
+ them into a single timeline keyed by `run_id`.
+ operationId: listPipelineRunEvents
+ parameters:
+ - $ref: '#/components/parameters/RequestTimeout'
+ - $ref: '#/components/parameters/RequestTimeoutMillis'
+ - in: path
+ name: pipeline_key
+ description: The unique key of the pipeline.
+ required: true
+ schema:
+ $ref: '#/components/schemas/PipelineKey'
+ - in: path
+ name: run_id
+ description: The unique identifier of the run.
+ required: true
+ schema:
+ $ref: '#/components/schemas/PipelineRunId'
+ - in: query
+ name: type
+ description: Filter to one or more event types. Repeat the parameter to pass
+ multiple values.
+ required: false
+ explode: true
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/PipelineRunEventType'
+ - in: query
+ name: source_record_id
+ description: Filter to events for a specific source record.
+ required: false
+ schema:
+ type: string
+ - in: query
+ name: order
+ description: Order events by timestamp. Defaults to newest-first.
+ required: false
+ schema:
+ $ref: '#/components/schemas/SortOrder'
+ - in: query
+ name: limit
+ description: The maximum number of events to return.
+ required: false
+ schema:
+ type: integer
+ format: int32
+ minimum: 1
+ maximum: 200
+ default: 50
+ - in: query
+ name: page_key
+ description: Used to retrieve the next page of events after the limit has
+ been reached.
+ required: false
+ schema:
+ type: string
+ responses:
+ '200':
+ description: List of pipeline run events.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ListPipelineRunEventsResponse'
+ '403':
+ description: Permissions do not allow accessing this run.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Pipeline or run not found.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NotFoundError'
+ x-fern-sdk-group-name: pipeline_runs
+ x-fern-sdk-method-name: list_events
+ x-fern-pagination:
+ cursor: $request.page_key
+ next_cursor: $response.metadata.page_key
+ results: $response.events
/v2/agent_analytics/traces:
get:
tags:
@@ -24331,6 +24430,223 @@ components:
required:
- runs
- metadata
+ PipelineRunEventType:
+ description: 'The type of a pipeline run event. Used as the discriminator on
+
+ `PipelineRunEvent`. New types may be added over time; clients should
+
+ treat unknown types as informational and ignore them.
+
+ '
+ type: string
+ enum:
+ - run_started
+ - run_completed
+ - record_processing
+ - watermark_advanced
+ SortOrder:
+ description: Sort direction for paginated list endpoints.
+ type: string
+ enum:
+ - asc
+ - desc
+ PipelineRunEventBase:
+ description: Common fields shared by all pipeline run events.
+ type: object
+ properties:
+ id:
+ description: Monotonic, unique-per-run identifier for this event.
+ type: string
+ example: evt_42
+ timestamp:
+ description: When the event occurred.
+ type: string
+ format: date-time
+ required:
+ - id
+ - timestamp
+ RunStartedEvent:
+ description: The pipeline run started executing.
+ allOf:
+ - $ref: '#/components/schemas/PipelineRunEventBase'
+ - type: object
+ properties:
+ type:
+ type: string
+ default: run_started
+ agent_key:
+ $ref: '#/components/schemas/AgentKey'
+ trigger_type:
+ $ref: '#/components/schemas/PipelineRunTriggerType'
+ sync_mode:
+ $ref: '#/components/schemas/PipelineSyncMode'
+ start_watermark:
+ description: Source watermark this run starts from. Null on full refresh
+ or first run.
+ type: string
+ nullable: true
+ end_watermark:
+ description: Upper bound watermark this run will not cross.
+ type: string
+ nullable: true
+ required:
+ - type
+ - trigger_type
+ RunCompletedEventStatus:
+ description: Terminal status of a pipeline run.
+ type: string
+ enum:
+ - completed
+ - failed
+ - cancelled
+ - timed_out
+ RunCompletedEvent:
+ description: 'The pipeline run reached a terminal state. `status` distinguishes
+ a successful completion
+
+ from a failure, cancellation, or timeout.
+
+ '
+ allOf:
+ - $ref: '#/components/schemas/PipelineRunEventBase'
+ - type: object
+ properties:
+ type:
+ type: string
+ default: run_completed
+ status:
+ $ref: '#/components/schemas/RunCompletedEventStatus'
+ records_fetched:
+ description: Total records fetched across the run. Present when the run
+ reported counters; absent for cancellation or timeout.
+ type: integer
+ format: int32
+ nullable: true
+ records_processed:
+ type: integer
+ format: int32
+ nullable: true
+ records_failed:
+ type: integer
+ format: int32
+ nullable: true
+ error:
+ description: Failure message. Present when `status` is not `completed`.
+ type: string
+ nullable: true
+ required:
+ - type
+ - status
+ RecordProcessingEventStatus:
+ description: Lifecycle status of a single source record within a run.
+ type: string
+ enum:
+ - started
+ - completed
+ - failed
+ RecordProcessingEvent:
+ description: 'A single source record progressed through a processing lifecycle
+ stage. `status` is `started`
+
+ when processing begins, `completed` when the record was successfully processed
+ (or skipped),
+
+ and `failed` when processing failed. In a normal run, a `failed` record is
+ also written to the
+
+ dead letter queue; in a retry run, the existing dead letter is marked still-failing.
+
+ '
+ allOf:
+ - $ref: '#/components/schemas/PipelineRunEventBase'
+ - type: object
+ properties:
+ type:
+ type: string
+ default: record_processing
+ status:
+ $ref: '#/components/schemas/RecordProcessingEventStatus'
+ source_record_id:
+ description: The identifier of the source record.
+ type: string
+ session_key:
+ description: 'The agent session created to process this record. Always
+ present on `completed`;
+
+ may be present on `failed` if a session was created before the failure;
+ null on `started`.
+
+ '
+ type: string
+ nullable: true
+ skipped:
+ description: True if a `completed` record was skipped because a prior
+ successful session already exists at the same watermark. Only meaningful
+ when `status` is `completed`.
+ type: boolean
+ nullable: true
+ error:
+ description: Failure message. Present when `status` is `failed`.
+ type: string
+ nullable: true
+ dead_lettered:
+ description: Whether a `failed` record resulted in a dead-letter write
+ or update. Only meaningful when `status` is `failed`.
+ type: boolean
+ nullable: true
+ required:
+ - type
+ - status
+ - source_record_id
+ WatermarkAdvancedEvent:
+ description: The pipeline's persisted watermark moved forward at the end of
+ the run.
+ allOf:
+ - $ref: '#/components/schemas/PipelineRunEventBase'
+ - type: object
+ properties:
+ type:
+ type: string
+ default: watermark_advanced
+ watermark:
+ type: string
+ required:
+ - type
+ - watermark
+ PipelineRunEvent:
+ description: 'A single event in a pipeline run''s timeline. The shape of the
+ event is
+
+ determined by `type`.
+
+ '
+ type: object
+ x-vectara-base-schema: '#/PipelineRunEventBase'
+ discriminator:
+ propertyName: type
+ mapping:
+ run_started: '#/components/schemas/RunStartedEvent'
+ run_completed: '#/components/schemas/RunCompletedEvent'
+ record_processing: '#/components/schemas/RecordProcessingEvent'
+ watermark_advanced: '#/components/schemas/WatermarkAdvancedEvent'
+ oneOf:
+ - $ref: '#/components/schemas/RunStartedEvent'
+ - $ref: '#/components/schemas/RunCompletedEvent'
+ - $ref: '#/components/schemas/RecordProcessingEvent'
+ - $ref: '#/components/schemas/WatermarkAdvancedEvent'
+ ListPipelineRunEventsResponse:
+ description: Response containing a list of pipeline run events.
+ type: object
+ properties:
+ events:
+ type: array
+ items:
+ $ref: '#/components/schemas/PipelineRunEvent'
+ metadata:
+ $ref: '#/components/schemas/ListMetadata'
+ required:
+ - events
+ - metadata
AgentTrace:
description: A summary of an agent trace representing one complete agent invocation.
type: object