diff --git a/src/libs/Braintrust/Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs b/src/libs/Braintrust/Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs
index a578a96..c6a347f 100644
--- a/src/libs/Braintrust/Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs
@@ -63,7 +63,7 @@ partial void ProcessGetApiKeyResponseContent(
///
/// List api_keys
/// List out all API keys. They are sorted by creation date, with the most recently-created keys coming first.
- /// To create new API keys, go to [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.
+ /// To create new API keys, visit [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.
///
///
/// Limit the number of objects to return
@@ -114,7 +114,7 @@ partial void ProcessGetApiKeyResponseContent(
///
/// List api_keys
/// List out all API keys. They are sorted by creation date, with the most recently-created keys coming first.
- /// To create new API keys, go to [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.
+ /// To create new API keys, visit [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.
///
///
/// Limit the number of objects to return
diff --git a/src/libs/Braintrust/Generated/Braintrust.EvalsClient.EvalLaunch.g.cs b/src/libs/Braintrust/Generated/Braintrust.EvalsClient.EvalLaunch.g.cs
index e3c26ed..3322f3c 100644
--- a/src/libs/Braintrust/Generated/Braintrust.EvalsClient.EvalLaunch.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.EvalsClient.EvalLaunch.g.cs
@@ -494,7 +494,7 @@ partial void ProcessEvalLaunchResponseContent(
/// An optional experiment id to use as a base. If specified, the new experiment will be summarized and compared to this experiment.
///
///
- /// Optional settings for collecting git metadata. By default, will collect all git metadata fields allowed in org-level settings.
+ /// Optional settings for collecting git metadata. By default, will collect git metadata fields allowed in org-level settings, excluding diff content unless the org opts in.
///
///
///
diff --git a/src/libs/Braintrust/Generated/Braintrust.IApiKeysClient.GetApiKey.g.cs b/src/libs/Braintrust/Generated/Braintrust.IApiKeysClient.GetApiKey.g.cs
index b3afe10..2068e89 100644
--- a/src/libs/Braintrust/Generated/Braintrust.IApiKeysClient.GetApiKey.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.IApiKeysClient.GetApiKey.g.cs
@@ -7,7 +7,7 @@ public partial interface IApiKeysClient
///
/// List api_keys
/// List out all API keys. They are sorted by creation date, with the most recently-created keys coming first.
- /// To create new API keys, go to [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.
+ /// To create new API keys, visit [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.
///
///
/// Limit the number of objects to return
@@ -44,7 +44,7 @@ public partial interface IApiKeysClient
///
/// List api_keys
/// List out all API keys. They are sorted by creation date, with the most recently-created keys coming first.
- /// To create new API keys, go to [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.
+ /// To create new API keys, visit [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.
///
///
/// Limit the number of objects to return
diff --git a/src/libs/Braintrust/Generated/Braintrust.IEvalsClient.EvalLaunch.g.cs b/src/libs/Braintrust/Generated/Braintrust.IEvalsClient.EvalLaunch.g.cs
index 2c3ed8f..67d8aa2 100644
--- a/src/libs/Braintrust/Generated/Braintrust.IEvalsClient.EvalLaunch.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.IEvalsClient.EvalLaunch.g.cs
@@ -82,7 +82,7 @@ public partial interface IEvalsClient
/// An optional experiment id to use as a base. If specified, the new experiment will be summarized and compared to this experiment.
///
///
- /// Optional settings for collecting git metadata. By default, will collect all git metadata fields allowed in org-level settings.
+ /// Optional settings for collecting git metadata. By default, will collect git metadata fields allowed in org-level settings, excluding diff content unless the org opts in.
///
///
///
diff --git a/src/libs/Braintrust/Generated/Braintrust.IOrganizationsClient.PatchOrganizationMembers.g.cs b/src/libs/Braintrust/Generated/Braintrust.IOrganizationsClient.PatchOrganizationMembers.g.cs
index a1df4af..71ee9bc 100644
--- a/src/libs/Braintrust/Generated/Braintrust.IOrganizationsClient.PatchOrganizationMembers.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.IOrganizationsClient.PatchOrganizationMembers.g.cs
@@ -6,8 +6,7 @@ public partial interface IOrganizationsClient
{
///
/// Modify organization membership
- /// Modify organization membership.
- /// Organization owners can use this endpoint to create service accounts, but service tokens for those accounts must be created in the Braintrust UI, at [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens).
+ /// Add or remove members, create service accounts.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -20,8 +19,7 @@ public partial interface IOrganizationsClient
global::System.Threading.CancellationToken cancellationToken = default);
///
/// Modify organization membership
- /// Modify organization membership.
- /// Organization owners can use this endpoint to create service accounts, but service tokens for those accounts must be created in the Braintrust UI, at [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens).
+ /// Add or remove members, create service accounts.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -34,8 +32,7 @@ public partial interface IOrganizationsClient
global::System.Threading.CancellationToken cancellationToken = default);
///
/// Modify organization membership
- /// Modify organization membership.
- /// Organization owners can use this endpoint to create service accounts, but service tokens for those accounts must be created in the Braintrust UI, at [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens).
+ /// Add or remove members, create service accounts.
///
///
/// Users to invite to the organization
diff --git a/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.GetServiceToken.g.cs b/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.GetServiceToken.g.cs
index 2f94d35..b498bdb 100644
--- a/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.GetServiceToken.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.GetServiceToken.g.cs
@@ -7,7 +7,7 @@ public partial interface IServiceTokensClient
///
/// List service_tokens
/// List out all service tokens. They are sorted by creation date, with the most recently-created tokens coming first.
- /// To create service tokens, organization owners can go to [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI.
+ /// To create a service token, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) as an organization owner, or call [`POST /v1/service_token`](https://www.braintrust.dev/docs/api-reference/servicetokens/create-service_token) and authenticate with a service token that has organization-owner permissions.
///
///
/// Limit the number of objects to return
@@ -44,7 +44,7 @@ public partial interface IServiceTokensClient
///
/// List service_tokens
/// List out all service tokens. They are sorted by creation date, with the most recently-created tokens coming first.
- /// To create service tokens, organization owners can go to [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI.
+ /// To create a service token, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) as an organization owner, or call [`POST /v1/service_token`](https://www.braintrust.dev/docs/api-reference/servicetokens/create-service_token) and authenticate with a service token that has organization-owner permissions.
///
///
/// Limit the number of objects to return
diff --git a/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.PostServiceToken.g.cs b/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.PostServiceToken.g.cs
new file mode 100644
index 0000000..a618e80
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.PostServiceToken.g.cs
@@ -0,0 +1,59 @@
+#nullable enable
+
+namespace Braintrust
+{
+ public partial interface IServiceTokensClient
+ {
+ ///
+ /// Create service_token
+ /// Create a new service token.
+ /// When calling this endpoint, you must authenticate using a service token that has organization-owner permissions. User API keys cannot be used.
+ ///
+ ///
+ /// 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 PostServiceTokenAsync(
+
+ global::Braintrust.PostServiceTokenRequest request,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create service_token
+ /// Create a new service token.
+ /// When calling this endpoint, you must authenticate using a service token that has organization-owner permissions. User API keys cannot be used.
+ ///
+ ///
+ /// 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> PostServiceTokenAsResponseAsync(
+
+ global::Braintrust.PostServiceTokenRequest request,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create service_token
+ /// Create a new service token.
+ /// When calling this endpoint, you must authenticate using a service token that has organization-owner permissions. User API keys cannot be used.
+ ///
+ ///
+ /// Name of the service token. Does not have to be unique
+ ///
+ ///
+ /// For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the Service token belongs in.
+ ///
+ ///
+ /// The ID of the service account to which the token should belong. To create a service account, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI or call [`PATCH /v1/organization/members`](https://www.braintrust.dev/docs/api-reference/organizations/modify-organization-membership).
+ ///
+ /// 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 PostServiceTokenAsync(
+ string name,
+ string serviceAccountId,
+ string? orgName = default,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.PutServiceToken.g.cs b/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.PutServiceToken.g.cs
new file mode 100644
index 0000000..8ec83b5
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.PutServiceToken.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace Braintrust
+{
+ public partial interface IServiceTokensClient
+ {
+ ///
+ /// Create or replace service_token
+ /// Create or replace service_token. If there is an existing service_token with the same name as the one specified in the request, will replace the existing service_token with the provided fields
+ ///
+ ///
+ /// 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 PutServiceTokenAsync(
+
+ global::Braintrust.PutServiceTokenRequest request,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create or replace service_token
+ /// Create or replace service_token. If there is an existing service_token with the same name as the one specified in the request, will replace the existing service_token with the provided fields
+ ///
+ ///
+ /// 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> PutServiceTokenAsResponseAsync(
+
+ global::Braintrust.PutServiceTokenRequest request,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create or replace service_token
+ /// Create or replace service_token. If there is an existing service_token with the same name as the one specified in the request, will replace the existing service_token with the provided fields
+ ///
+ ///
+ /// Name of the service token. Does not have to be unique
+ ///
+ ///
+ /// For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the Service token belongs in.
+ ///
+ ///
+ /// The ID of the service account to which the token should belong. To create a service account, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI or call [`PATCH /v1/organization/members`](https://www.braintrust.dev/docs/api-reference/organizations/modify-organization-membership).
+ ///
+ /// 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 PutServiceTokenAsync(
+ string name,
+ string serviceAccountId,
+ string? orgName = default,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.AutomationStatus.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.AutomationStatus.g.cs
new file mode 100644
index 0000000..1ecce31
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.AutomationStatus.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Braintrust.JsonConverters
+{
+ ///
+ public sealed class AutomationStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Braintrust.AutomationStatus 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::Braintrust.AutomationStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Braintrust.AutomationStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Braintrust.AutomationStatus);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Braintrust.AutomationStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Braintrust.AutomationStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.AutomationStatusNullable.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.AutomationStatusNullable.g.cs
new file mode 100644
index 0000000..1c459f1
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.AutomationStatusNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Braintrust.JsonConverters
+{
+ ///
+ public sealed class AutomationStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Braintrust.AutomationStatus? 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::Braintrust.AutomationStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Braintrust.AutomationStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Braintrust.AutomationStatus?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Braintrust.AutomationStatus? 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::Braintrust.AutomationStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.GroupScopePlacement.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.GroupScopePlacement.g.cs
new file mode 100644
index 0000000..e13af05
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.GroupScopePlacement.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Braintrust.JsonConverters
+{
+ ///
+ public sealed class GroupScopePlacementJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Braintrust.GroupScopePlacement 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::Braintrust.GroupScopePlacementExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Braintrust.GroupScopePlacement)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Braintrust.GroupScopePlacement);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Braintrust.GroupScopePlacement value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Braintrust.GroupScopePlacementExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.GroupScopePlacementNullable.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.GroupScopePlacementNullable.g.cs
new file mode 100644
index 0000000..f9692bf
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.GroupScopePlacementNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Braintrust.JsonConverters
+{
+ ///
+ public sealed class GroupScopePlacementNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Braintrust.GroupScopePlacement? 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::Braintrust.GroupScopePlacementExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Braintrust.GroupScopePlacement)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Braintrust.GroupScopePlacement?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Braintrust.GroupScopePlacement? 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::Braintrust.GroupScopePlacementExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContext.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContext.g.cs
index b4f2173..d7c0b4d 100644
--- a/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContext.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContext.g.cs
@@ -257,6 +257,10 @@ namespace Braintrust
typeof(global::Braintrust.JsonConverters.PermissionNullableJsonConverter),
+ typeof(global::Braintrust.JsonConverters.AutomationStatusJsonConverter),
+
+ typeof(global::Braintrust.JsonConverters.AutomationStatusNullableJsonConverter),
+
typeof(global::Braintrust.JsonConverters.SpanScopeTypeJsonConverter),
typeof(global::Braintrust.JsonConverters.SpanScopeTypeNullableJsonConverter),
@@ -269,6 +273,10 @@ namespace Braintrust
typeof(global::Braintrust.JsonConverters.GroupScopeTypeNullableJsonConverter),
+ typeof(global::Braintrust.JsonConverters.GroupScopePlacementJsonConverter),
+
+ typeof(global::Braintrust.JsonConverters.GroupScopePlacementNullableJsonConverter),
+
typeof(global::Braintrust.JsonConverters.RetentionObjectTypeJsonConverter),
typeof(global::Braintrust.JsonConverters.RetentionObjectTypeNullableJsonConverter),
@@ -1032,7 +1040,7 @@ namespace Braintrust
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.InsertProjectLogsEventMetadata))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.InsertProjectLogsEventMetrics))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.InsertProjectLogsEventContext))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary), TypeInfoPropertyName = "DictionaryStringString_System_Collections_Generic_Dictionary_string_string")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.InsertProjectLogsEventArrayDeleteItem))]
@@ -1052,6 +1060,7 @@ namespace Braintrust
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectLogsEventClassification))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.FetchProjectLogsEventsResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.FetchEventsRequest))]
@@ -1238,12 +1247,14 @@ namespace Braintrust
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AclBatchUpdateRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.User))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AutomationStatus), TypeInfoPropertyName = "AutomationStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.SpanScope))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.SpanScopeType), TypeInfoPropertyName = "SpanScopeType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TraceScope))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TraceScopeType), TypeInfoPropertyName = "TraceScopeType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GroupScope))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GroupScopeType), TypeInfoPropertyName = "GroupScopeType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GroupScopePlacement), TypeInfoPropertyName = "GroupScopePlacement2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.RetentionObjectType), TypeInfoPropertyName = "RetentionObjectType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicAutomationFacetModel), TypeInfoPropertyName = "TopicAutomationFacetModel2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapFunctionAutomation))]
@@ -1442,9 +1453,6 @@ namespace Braintrust
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GraphData))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GraphDataType), TypeInfoPropertyName = "GraphDataType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.FacetData))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.FacetDataType), TypeInfoPropertyName = "FacetDataType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AllOf), TypeInfoPropertyName = "AllOfNullableSavedFunctionIdObject2")]
internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
@@ -1700,6 +1708,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
typeof(global::Braintrust.JsonConverters.PermissionNullableJsonConverter),
+ typeof(global::Braintrust.JsonConverters.AutomationStatusJsonConverter),
+
+ typeof(global::Braintrust.JsonConverters.AutomationStatusNullableJsonConverter),
+
typeof(global::Braintrust.JsonConverters.SpanScopeTypeJsonConverter),
typeof(global::Braintrust.JsonConverters.SpanScopeTypeNullableJsonConverter),
@@ -1712,6 +1724,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
typeof(global::Braintrust.JsonConverters.GroupScopeTypeNullableJsonConverter),
+ typeof(global::Braintrust.JsonConverters.GroupScopePlacementJsonConverter),
+
+ typeof(global::Braintrust.JsonConverters.GroupScopePlacementNullableJsonConverter),
+
typeof(global::Braintrust.JsonConverters.RetentionObjectTypeJsonConverter),
typeof(global::Braintrust.JsonConverters.RetentionObjectTypeNullableJsonConverter),
@@ -2427,12 +2443,15 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AnyOf?), TypeInfoPropertyName = "CodeBundleLocationExperimentPositionClassifier_c4d9fe7d3ca7c609")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.OneOf?), TypeInfoPropertyName = "PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServers_2c2424cd8ae0cdf5")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?>>), TypeInfoPropertyName = "TopicAutomationConfigFacetFunctionVariant2Global_0de25e7b7f3aebf4")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.FacetData))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.FacetDataType), TypeInfoPropertyName = "FacetDataType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AllOf), TypeInfoPropertyName = "AllOfNullableSavedFunctionIdObject2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapGenerationSettings))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapGenerationSettingsAlgorithm), TypeInfoPropertyName = "TopicMapGenerationSettingsAlgorithm2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapGenerationSettingsDimensionReduction), TypeInfoPropertyName = "TopicMapGenerationSettingsDimensionReduction2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapData))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapDataType), TypeInfoPropertyName = "TopicMapDataType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary), TypeInfoPropertyName = "DictionaryStringString_System_Collections_Generic_Dictionary_string_string_3")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.BatchedFacetData))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.BatchedFacetDataType), TypeInfoPropertyName = "BatchedFacetDataType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
@@ -2544,6 +2563,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchOrganizationMembersInviteUsersServiceAccount))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchOrganizationMembersRemoveUsers))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ApiKey))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateServiceTokenOutput))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ServiceToken))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.DeleteServiceToken))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AISecret))]
@@ -2611,6 +2631,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AllOf), TypeInfoPropertyName = "AllOfRepoInfoObject2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.RunEvalMcpAuth2))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PostServiceTokenRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PutServiceTokenRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PostEnvVarRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PostEnvVarRequestObjectType), TypeInfoPropertyName = "PostEnvVarRequestObjectType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PutEnvVarRequest))]
@@ -2906,12 +2928,16 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o
options.Converters.Add(new global::Braintrust.JsonConverters.PromptLogIdNullableJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.PermissionJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.PermissionNullableJsonConverter());
+ options.Converters.Add(new global::Braintrust.JsonConverters.AutomationStatusJsonConverter());
+ options.Converters.Add(new global::Braintrust.JsonConverters.AutomationStatusNullableJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.SpanScopeTypeJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.SpanScopeTypeNullableJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.TraceScopeTypeJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.TraceScopeTypeNullableJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.GroupScopeTypeJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.GroupScopeTypeNullableJsonConverter());
+ options.Converters.Add(new global::Braintrust.JsonConverters.GroupScopePlacementJsonConverter());
+ options.Converters.Add(new global::Braintrust.JsonConverters.GroupScopePlacementNullableJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.RetentionObjectTypeJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.RetentionObjectTypeNullableJsonConverter());
options.Converters.Add(new global::Braintrust.JsonConverters.TopicAutomationFacetModelJsonConverter());
diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContextTypes.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContextTypes.g.cs
index 9e6043b..fa33f51 100644
--- a/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContextTypes.g.cs
@@ -212,71 +212,71 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::System.Collections.Generic.Dictionary? Type46 { get; set; }
+ public global::System.Collections.Generic.IList>? Type46 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type47 { get; set; }
+ public global::System.Collections.Generic.IList? Type47 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type48 { get; set; }
+ public global::Braintrust.InsertProjectLogsEventArrayDeleteItem? Type48 { get; set; }
///
///
///
- public global::Braintrust.InsertProjectLogsEventArrayDeleteItem? Type49 { get; set; }
+ public global::System.Collections.Generic.IList? Type49 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type50 { get; set; }
+ public global::Braintrust.InsertProjectLogsEventRequest? Type50 { get; set; }
///
///
///
- public global::Braintrust.InsertProjectLogsEventRequest? Type51 { get; set; }
+ public global::System.Collections.Generic.IList? Type51 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type52 { get; set; }
+ public global::Braintrust.SavedFunctionIdFunction? Type52 { get; set; }
///
///
///
- public global::Braintrust.SavedFunctionIdFunction? Type53 { get; set; }
+ public global::Braintrust.SavedFunctionIdGlobal? Type53 { get; set; }
///
///
///
- public global::Braintrust.SavedFunctionIdGlobal? Type54 { get; set; }
+ public global::Braintrust.ProjectLogsEvent? Type54 { get; set; }
///
///
///
- public global::Braintrust.ProjectLogsEvent? Type55 { get; set; }
+ public global::Braintrust.ProjectLogsEventLogId? Type55 { get; set; }
///
///
///
- public global::Braintrust.ProjectLogsEventLogId? Type56 { get; set; }
+ public global::Braintrust.ProjectLogsEventMetadata? Type56 { get; set; }
///
///
///
- public global::Braintrust.ProjectLogsEventMetadata? Type57 { get; set; }
+ public global::Braintrust.ProjectLogsEventMetrics? Type57 { get; set; }
///
///
///
- public global::Braintrust.ProjectLogsEventMetrics? Type58 { get; set; }
+ public global::Braintrust.ProjectLogsEventContext? Type58 { get; set; }
///
///
///
- public global::Braintrust.ProjectLogsEventContext? Type59 { get; set; }
+ public global::System.Collections.Generic.Dictionary>? Type59 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary>? Type60 { get; set; }
+ public global::System.Collections.Generic.IList? Type60 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type61 { get; set; }
+ public global::Braintrust.ProjectLogsEventClassification? Type61 { get; set; }
///
///
///
- public global::Braintrust.ProjectLogsEventClassification? Type62 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type62 { get; set; }
///
///
///
@@ -1012,1779 +1012,1795 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Braintrust.SpanScope? Type246 { get; set; }
+ public global::Braintrust.AutomationStatus? Type246 { get; set; }
///
///
///
- public global::Braintrust.SpanScopeType? Type247 { get; set; }
+ public global::Braintrust.SpanScope? Type247 { get; set; }
///
///
///
- public global::Braintrust.TraceScope? Type248 { get; set; }
+ public global::Braintrust.SpanScopeType? Type248 { get; set; }
///
///
///
- public global::Braintrust.TraceScopeType? Type249 { get; set; }
+ public global::Braintrust.TraceScope? Type249 { get; set; }
///
///
///
- public global::Braintrust.GroupScope? Type250 { get; set; }
+ public global::Braintrust.TraceScopeType? Type250 { get; set; }
///
///
///
- public global::Braintrust.GroupScopeType? Type251 { get; set; }
+ public global::Braintrust.GroupScope? Type251 { get; set; }
///
///
///
- public global::Braintrust.RetentionObjectType? Type252 { get; set; }
+ public global::Braintrust.GroupScopeType? Type252 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationFacetModel? Type253 { get; set; }
+ public global::Braintrust.GroupScopePlacement? Type253 { get; set; }
///
///
///
- public global::Braintrust.TopicMapFunctionAutomation? Type254 { get; set; }
+ public global::Braintrust.RetentionObjectType? Type254 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type255 { get; set; }
+ public global::Braintrust.TopicAutomationFacetModel? Type255 { get; set; }
///
///
///
- public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Function? Type256 { get; set; }
+ public global::Braintrust.TopicMapFunctionAutomation? Type256 { get; set; }
///
///
///
- public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2FunctionType? Type257 { get; set; }
+ public global::Braintrust.AnyOf? Type257 { get; set; }
///
///
///
- public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Global? Type258 { get; set; }
+ public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Function? Type258 { get; set; }
///
///
///
- public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2GlobalType? Type259 { get; set; }
+ public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2FunctionType? Type259 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationDataScope? Type260 { get; set; }
+ public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Global? Type260 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationDataScopeVariant1? Type261 { get; set; }
+ public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2GlobalType? Type261 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationDataScopeVariant1Type? Type262 { get; set; }
+ public global::Braintrust.TopicAutomationDataScope? Type262 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationDataScopeVariant2? Type263 { get; set; }
+ public global::Braintrust.TopicAutomationDataScopeVariant1? Type263 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationDataScopeVariant2Type? Type264 { get; set; }
+ public global::Braintrust.TopicAutomationDataScopeVariant1Type? Type264 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationDataScopeVariant3? Type265 { get; set; }
+ public global::Braintrust.TopicAutomationDataScopeVariant2? Type265 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationDataScopeVariant3Type? Type266 { get; set; }
+ public global::Braintrust.TopicAutomationDataScopeVariant2Type? Type266 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationConfig? Type267 { get; set; }
+ public global::Braintrust.TopicAutomationDataScopeVariant3? Type267 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationConfigEventType? Type268 { get; set; }
+ public global::Braintrust.TopicAutomationDataScopeVariant3Type? Type268 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type269 { get; set; }
+ public global::Braintrust.TopicAutomationConfig? Type269 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2Function? Type270 { get; set; }
+ public global::Braintrust.TopicAutomationConfigEventType? Type270 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2FunctionType? Type271 { get; set; }
+ public global::Braintrust.AnyOf? Type271 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2Global? Type272 { get; set; }
+ public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2Function? Type272 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2GlobalType? Type273 { get; set; }
+ public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2FunctionType? Type273 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type274 { get; set; }
+ public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2Global? Type274 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type275 { get; set; }
+ public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2GlobalType? Type275 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type276 { get; set; }
+ public global::System.Collections.Generic.IList? Type276 { get; set; }
///
///
///
- public global::Braintrust.TopicAutomationConfigBackfillTimeRange? Type277 { get; set; }
+ public global::Braintrust.AnyOf? Type277 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomation? Type278 { get; set; }
+ public global::Braintrust.AnyOf? Type278 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant1? Type279 { get; set; }
+ public global::Braintrust.TopicAutomationConfigBackfillTimeRange? Type279 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant1EventType? Type280 { get; set; }
+ public global::Braintrust.ProjectAutomation? Type280 { get; set; }
///
///
///
- public global::Braintrust.OneOf? Type281 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant1? Type281 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant1? Type282 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant1EventType? Type282 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant1Type? Type283 { get; set; }
+ public global::Braintrust.OneOf? Type283 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant2? Type284 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant1? Type284 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant2Type? Type285 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant1Type? Type285 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2? Type286 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant2? Type286 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2EventType? Type287 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant2Type? Type287 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant1? Type288 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2? Type288 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type289 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2EventType? Type289 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant2? Type290 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant1? Type290 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type291 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type291 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3? Type292 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant2? Type292 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type293 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type293 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2Format? Type294 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3? Type294 { get; set; }
///
///
///
- public global::Braintrust.OneOf? Type295 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type295 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1? Type296 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2Format? Type296 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type? Type297 { get; set; }
+ public global::Braintrust.OneOf? Type297 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2? Type298 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1? Type298 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type? Type299 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type? Type299 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant3? Type300 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2? Type300 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant3EventType? Type301 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type? Type301 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant4? Type302 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant3? Type302 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant4EventType? Type303 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant3EventType? Type303 { get; set; }
///
///
///
- public global::Braintrust.OneOf? Type304 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant4? Type304 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant1? Type305 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant4EventType? Type305 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant1Type? Type306 { get; set; }
+ public global::Braintrust.OneOf? Type306 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant2? Type307 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant1? Type307 { get; set; }
///
///
///
- public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant2Type? Type308 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant1Type? Type308 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomation? Type309 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant2? Type309 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant1? Type310 { get; set; }
+ public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant2Type? Type310 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant1EventType? Type311 { get; set; }
+ public global::Braintrust.CreateProjectAutomation? Type311 { get; set; }
///
///
///
- public global::Braintrust.OneOf? Type312 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant1? Type312 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant1? Type313 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant1EventType? Type313 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant1Type? Type314 { get; set; }
+ public global::Braintrust.OneOf? Type314 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant2? Type315 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant1? Type315 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant2Type? Type316 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant1Type? Type316 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2? Type317 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant2? Type317 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2EventType? Type318 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant2Type? Type318 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant1? Type319 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2? Type319 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type320 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2EventType? Type320 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant2? Type321 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant1? Type321 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type322 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type322 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3? Type323 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant2? Type323 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type324 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type324 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2Format? Type325 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3? Type325 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1? Type326 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type326 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type? Type327 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2Format? Type327 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2? Type328 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1? Type328 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type? Type329 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type? Type329 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant3? Type330 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2? Type330 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant3EventType? Type331 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type? Type331 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant4? Type332 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant3? Type332 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant4EventType? Type333 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant3EventType? Type333 { get; set; }
///
///
///
- public global::Braintrust.OneOf? Type334 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant4? Type334 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant1? Type335 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant4EventType? Type335 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant1Type? Type336 { get; set; }
+ public global::Braintrust.OneOf? Type336 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant2? Type337 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant1? Type337 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant2Type? Type338 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant1Type? Type338 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomation? Type339 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant2? Type339 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant1? Type340 { get; set; }
+ public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant2Type? Type340 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant1EventType? Type341 { get; set; }
+ public global::Braintrust.PatchProjectAutomation? Type341 { get; set; }
///
///
///
- public global::Braintrust.OneOf? Type342 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant1? Type342 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant1? Type343 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant1EventType? Type343 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant1Type? Type344 { get; set; }
+ public global::Braintrust.OneOf? Type344 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant2? Type345 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant1? Type345 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant2Type? Type346 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant1Type? Type346 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2? Type347 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant2? Type347 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2EventType? Type348 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant2Type? Type348 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant1? Type349 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2? Type349 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type350 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2EventType? Type350 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant2? Type351 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant1? Type351 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type352 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type352 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3? Type353 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant2? Type353 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type354 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type354 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2Format? Type355 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3? Type355 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1? Type356 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type356 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type? Type357 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2Format? Type357 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2? Type358 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1? Type358 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type? Type359 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type? Type359 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant3? Type360 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2? Type360 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant3EventType? Type361 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type? Type361 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant4? Type362 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant3? Type362 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant4EventType? Type363 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant3EventType? Type363 { get; set; }
///
///
///
- public global::Braintrust.OneOf? Type364 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant4? Type364 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant1? Type365 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant4EventType? Type365 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant1Type? Type366 { get; set; }
+ public global::Braintrust.OneOf? Type366 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant2? Type367 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant1? Type367 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant2Type? Type368 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant1Type? Type368 { get; set; }
///
///
///
- public global::Braintrust.ProjectScoreCategory? Type369 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant2? Type369 { get; set; }
///
///
///
- public global::Braintrust.ProjectScoreCategories? Type370 { get; set; }
+ public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant2Type? Type370 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type371 { get; set; }
+ public global::Braintrust.ProjectScoreCategory? Type371 { get; set; }
///
///
///
- public global::Braintrust.OnlineScoreConfig? Type372 { get; set; }
+ public global::Braintrust.ProjectScoreCategories? Type372 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList?>>? Type373 { get; set; }
+ public global::System.Collections.Generic.IList? Type373 { get; set; }
///
///
///
- public global::Braintrust.AllOf?>? Type374 { get; set; }
+ public global::Braintrust.OnlineScoreConfig? Type374 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type375 { get; set; }
+ public global::System.Collections.Generic.IList?>>? Type375 { get; set; }
///
///
///
- public global::Braintrust.OnlineScoreConfigScorerVariant2Function? Type376 { get; set; }
+ public global::Braintrust.AllOf?>? Type376 { get; set; }
///
///
///
- public global::Braintrust.OnlineScoreConfigScorerVariant2FunctionType? Type377 { get; set; }
+ public global::Braintrust.AnyOf? Type377 { get; set; }
///
///
///
- public global::Braintrust.OnlineScoreConfigScorerVariant2Global? Type378 { get; set; }
+ public global::Braintrust.OnlineScoreConfigScorerVariant2Function? Type378 { get; set; }
///
///
///
- public global::Braintrust.OnlineScoreConfigScorerVariant2GlobalType? Type379 { get; set; }
+ public global::Braintrust.OnlineScoreConfigScorerVariant2FunctionType? Type379 { get; set; }
///
///
///
- public global::Braintrust.ProjectScoreConfig? Type380 { get; set; }
+ public global::Braintrust.OnlineScoreConfigScorerVariant2Global? Type380 { get; set; }
///
///
///
- public global::Braintrust.ProjectScore? Type381 { get; set; }
+ public global::Braintrust.OnlineScoreConfigScorerVariant2GlobalType? Type381 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectScore? Type382 { get; set; }
+ public global::Braintrust.ProjectScoreConfig? Type382 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectScore? Type383 { get; set; }
+ public global::Braintrust.ProjectScore? Type383 { get; set; }
///
///
///
- public global::Braintrust.ProjectTag? Type384 { get; set; }
+ public global::Braintrust.CreateProjectScore? Type384 { get; set; }
///
///
///
- public global::Braintrust.CreateProjectTag? Type385 { get; set; }
+ public global::Braintrust.PatchProjectScore? Type385 { get; set; }
///
///
///
- public global::Braintrust.PatchProjectTag? Type386 { get; set; }
+ public global::Braintrust.ProjectTag? Type386 { get; set; }
///
///
///
- public global::Braintrust.SpanIFrame? Type387 { get; set; }
+ public global::Braintrust.CreateProjectTag? Type387 { get; set; }
///
///
///
- public global::Braintrust.CreateSpanIFrame? Type388 { get; set; }
+ public global::Braintrust.PatchProjectTag? Type388 { get; set; }
///
///
///
- public global::Braintrust.PatchSpanIFrame? Type389 { get; set; }
+ public global::Braintrust.SpanIFrame? Type389 { get; set; }
///
///
///
- public global::Braintrust.CodeBundle? Type390 { get; set; }
+ public global::Braintrust.CreateSpanIFrame? Type390 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleRuntimeContext? Type391 { get; set; }
+ public global::Braintrust.PatchSpanIFrame? Type391 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleRuntimeContextRuntime? Type392 { get; set; }
+ public global::Braintrust.CodeBundle? Type392 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type393 { get; set; }
+ public global::Braintrust.CodeBundleRuntimeContext? Type393 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationExperiment? Type394 { get; set; }
+ public global::Braintrust.CodeBundleRuntimeContextRuntime? Type394 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationExperimentType? Type395 { get; set; }
+ public global::Braintrust.AnyOf? Type395 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationExperimentPositionVariant1? Type396 { get; set; }
+ public global::Braintrust.CodeBundleLocationExperiment? Type396 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationExperimentPositionVariant1Type? Type397 { get; set; }
+ public global::Braintrust.CodeBundleLocationExperimentType? Type397 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationExperimentPositionScorer? Type398 { get; set; }
+ public global::Braintrust.CodeBundleLocationExperimentPositionVariant1? Type398 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationExperimentPositionScorerType? Type399 { get; set; }
+ public global::Braintrust.CodeBundleLocationExperimentPositionVariant1Type? Type399 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationExperimentPositionClassifier? Type400 { get; set; }
+ public global::Braintrust.CodeBundleLocationExperimentPositionScorer? Type400 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationExperimentPositionClassifierType? Type401 { get; set; }
+ public global::Braintrust.CodeBundleLocationExperimentPositionScorerType? Type401 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationFunction? Type402 { get; set; }
+ public global::Braintrust.CodeBundleLocationExperimentPositionClassifier? Type402 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationFunctionType? Type403 { get; set; }
+ public global::Braintrust.CodeBundleLocationExperimentPositionClassifierType? Type403 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationVariant3? Type404 { get; set; }
+ public global::Braintrust.CodeBundleLocationFunction? Type404 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationVariant3Type? Type405 { get; set; }
+ public global::Braintrust.CodeBundleLocationFunctionType? Type405 { get; set; }
///
///
///
- public global::Braintrust.OneOf? Type406 { get; set; }
+ public global::Braintrust.CodeBundleLocationVariant3? Type406 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant1? Type407 { get; set; }
+ public global::Braintrust.CodeBundleLocationVariant3Type? Type407 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant1Provider? Type408 { get; set; }
+ public global::Braintrust.OneOf? Type408 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant2? Type409 { get; set; }
+ public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant1? Type409 { get; set; }
///
///
///
- public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant2Provider? Type410 { get; set; }
+ public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant1Provider? Type410 { get; set; }
///
///
///
- public global::Braintrust.PromptBlockData? Type411 { get; set; }
+ public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant2? Type411 { get; set; }
///
///
///
- public global::Braintrust.PromptBlockDataChat? Type412 { get; set; }
+ public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant2Provider? Type412 { get; set; }
///
///
///
- public global::Braintrust.PromptBlockDataChatType? Type413 { get; set; }
+ public global::Braintrust.PromptBlockData? Type413 { get; set; }
///
///
///
- public global::Braintrust.PromptBlockDataCompletion? Type414 { get; set; }
+ public global::Braintrust.PromptBlockDataChat? Type414 { get; set; }
///
///
///
- public global::Braintrust.PromptBlockDataCompletionType? Type415 { get; set; }
+ public global::Braintrust.PromptBlockDataChatType? Type415 { get; set; }
///
///
///
- public global::Braintrust.GraphNode? Type416 { get; set; }
+ public global::Braintrust.PromptBlockDataCompletion? Type416 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant1? Type417 { get; set; }
+ public global::Braintrust.PromptBlockDataCompletionType? Type417 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant1Position? Type418 { get; set; }
+ public global::Braintrust.GraphNode? Type418 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant1Type? Type419 { get; set; }
+ public global::Braintrust.GraphNodeVariant1? Type419 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant2? Type420 { get; set; }
+ public global::Braintrust.GraphNodeVariant1Position? Type420 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant2Position? Type421 { get; set; }
+ public global::Braintrust.GraphNodeVariant1Type? Type421 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant2Type? Type422 { get; set; }
+ public global::Braintrust.GraphNodeVariant2? Type422 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant3? Type423 { get; set; }
+ public global::Braintrust.GraphNodeVariant2Position? Type423 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant3Position? Type424 { get; set; }
+ public global::Braintrust.GraphNodeVariant2Type? Type424 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant3Type? Type425 { get; set; }
+ public global::Braintrust.GraphNodeVariant3? Type425 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant4? Type426 { get; set; }
+ public global::Braintrust.GraphNodeVariant3Position? Type426 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant4Position? Type427 { get; set; }
+ public global::Braintrust.GraphNodeVariant3Type? Type427 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant4Type? Type428 { get; set; }
+ public global::Braintrust.GraphNodeVariant4? Type428 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant5? Type429 { get; set; }
+ public global::Braintrust.GraphNodeVariant4Position? Type429 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant5Position? Type430 { get; set; }
+ public global::Braintrust.GraphNodeVariant4Type? Type430 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant5Type? Type431 { get; set; }
+ public global::Braintrust.GraphNodeVariant5? Type431 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant6? Type432 { get; set; }
+ public global::Braintrust.GraphNodeVariant5Position? Type432 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant6Position? Type433 { get; set; }
+ public global::Braintrust.GraphNodeVariant5Type? Type433 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant6Type? Type434 { get; set; }
+ public global::Braintrust.GraphNodeVariant6? Type434 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant7? Type435 { get; set; }
+ public global::Braintrust.GraphNodeVariant6Position? Type435 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant7Position? Type436 { get; set; }
+ public global::Braintrust.GraphNodeVariant6Type? Type436 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant7Type? Type437 { get; set; }
+ public global::Braintrust.GraphNodeVariant7? Type437 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant8? Type438 { get; set; }
+ public global::Braintrust.GraphNodeVariant7Position? Type438 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant8Position? Type439 { get; set; }
+ public global::Braintrust.GraphNodeVariant7Type? Type439 { get; set; }
///
///
///
- public global::Braintrust.GraphNodeVariant8Type? Type440 { get; set; }
+ public global::Braintrust.GraphNodeVariant8? Type440 { get; set; }
///
///
///
- public global::Braintrust.GraphEdge? Type441 { get; set; }
+ public global::Braintrust.GraphNodeVariant8Position? Type441 { get; set; }
///
///
///
- public global::Braintrust.GraphEdgeSource? Type442 { get; set; }
+ public global::Braintrust.GraphNodeVariant8Type? Type442 { get; set; }
///
///
///
- public global::Braintrust.GraphEdgeTarget? Type443 { get; set; }
+ public global::Braintrust.GraphEdge? Type443 { get; set; }
///
///
///
- public global::Braintrust.GraphEdgePurpose? Type444 { get; set; }
+ public global::Braintrust.GraphEdgeSource? Type444 { get; set; }
///
///
///
- public global::Braintrust.GraphData? Type445 { get; set; }
+ public global::Braintrust.GraphEdgeTarget? Type445 { get; set; }
///
///
///
- public global::Braintrust.GraphDataType? Type446 { get; set; }
+ public global::Braintrust.GraphEdgePurpose? Type446 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type447 { get; set; }
+ public global::Braintrust.GraphData? Type447 { get; set; }
///
///
///
- public global::Braintrust.FacetData? Type448 { get; set; }
+ public global::Braintrust.GraphDataType? Type448 { get; set; }
///
///
///
- public global::Braintrust.FacetDataType? Type449 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type449 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type450 { get; set; }
+ public global::Braintrust.FacetData? Type450 { get; set; }
///
///
///
- public global::Braintrust.TopicMapGenerationSettings? Type451 { get; set; }
+ public global::Braintrust.FacetDataType? Type451 { get; set; }
///
///
///
- public global::Braintrust.TopicMapGenerationSettingsAlgorithm? Type452 { get; set; }
+ public global::Braintrust.AllOf? Type452 { get; set; }
///
///
///
- public global::Braintrust.TopicMapGenerationSettingsDimensionReduction? Type453 { get; set; }
+ public global::Braintrust.TopicMapGenerationSettings? Type453 { get; set; }
///
///
///
- public global::Braintrust.TopicMapData? Type454 { get; set; }
+ public global::Braintrust.TopicMapGenerationSettingsAlgorithm? Type454 { get; set; }
///
///
///
- public global::Braintrust.TopicMapDataType? Type455 { get; set; }
+ public global::Braintrust.TopicMapGenerationSettingsDimensionReduction? Type455 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type456 { get; set; }
+ public global::Braintrust.TopicMapData? Type456 { get; set; }
///
///
///
- public global::Braintrust.BatchedFacetData? Type457 { get; set; }
+ public global::Braintrust.TopicMapDataType? Type457 { get; set; }
///
///
///
- public global::Braintrust.BatchedFacetDataType? Type458 { get; set; }
+ public global::Braintrust.BatchedFacetData? Type458 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type459 { get; set; }
+ public global::Braintrust.BatchedFacetDataType? Type459 { get; set; }
///
///
///
- public global::Braintrust.BatchedFacetDataFacet? Type460 { get; set; }
+ public global::System.Collections.Generic.IList? Type460 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary>? Type461 { get; set; }
+ public global::Braintrust.BatchedFacetDataFacet? Type461 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type462 { get; set; }
+ public global::System.Collections.Generic.Dictionary>? Type462 { get; set; }
///
///
///
- public global::Braintrust.BatchedFacetDataTopicMap? Type463 { get; set; }
+ public global::System.Collections.Generic.IList? Type463 { get; set; }
///
///
///
- public global::Braintrust.FunctionData? Type464 { get; set; }
+ public global::Braintrust.BatchedFacetDataTopicMap? Type464 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataPrompt? Type465 { get; set; }
+ public global::Braintrust.FunctionData? Type465 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataPromptType? Type466 { get; set; }
+ public global::Braintrust.FunctionDataPrompt? Type466 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataCode? Type467 { get; set; }
+ public global::Braintrust.FunctionDataPromptType? Type467 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataCodeType? Type468 { get; set; }
+ public global::Braintrust.FunctionDataCode? Type468 { get; set; }
///
///
///
- public global::Braintrust.AnyOf?, global::Braintrust.FunctionDataCodeData2>? Type469 { get; set; }
+ public global::Braintrust.FunctionDataCodeType? Type469 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type470 { get; set; }
+ public global::Braintrust.AnyOf?, global::Braintrust.FunctionDataCodeData2>? Type470 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataCodeData? Type471 { get; set; }
+ public global::Braintrust.AllOf? Type471 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataCodeDataType? Type472 { get; set; }
+ public global::Braintrust.FunctionDataCodeData? Type472 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataCodeData2? Type473 { get; set; }
+ public global::Braintrust.FunctionDataCodeDataType? Type473 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataCodeDataType2? Type474 { get; set; }
+ public global::Braintrust.FunctionDataCodeData2? Type474 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataCodeDataRuntimeContext? Type475 { get; set; }
+ public global::Braintrust.FunctionDataCodeDataType2? Type475 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataCodeDataRuntimeContextRuntime? Type476 { get; set; }
+ public global::Braintrust.FunctionDataCodeDataRuntimeContext? Type476 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataRemoteEval? Type477 { get; set; }
+ public global::Braintrust.FunctionDataCodeDataRuntimeContextRuntime? Type477 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataRemoteEvalType? Type478 { get; set; }
+ public global::Braintrust.FunctionDataRemoteEval? Type478 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataGlobal? Type479 { get; set; }
+ public global::Braintrust.FunctionDataRemoteEvalType? Type479 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataGlobalType? Type480 { get; set; }
+ public global::Braintrust.FunctionDataGlobal? Type480 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataParameters? Type481 { get; set; }
+ public global::Braintrust.FunctionDataGlobalType? Type481 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataParametersType? Type482 { get; set; }
+ public global::Braintrust.FunctionDataParameters? Type482 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataParametersSchema? Type483 { get; set; }
+ public global::Braintrust.FunctionDataParametersType? Type483 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataParametersSchemaType? Type484 { get; set; }
+ public global::Braintrust.FunctionDataParametersSchema? Type484 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary>? Type485 { get; set; }
+ public global::Braintrust.FunctionDataParametersSchemaType? Type485 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type486 { get; set; }
+ public global::System.Collections.Generic.Dictionary>? Type486 { get; set; }
///
///
///
- public global::Braintrust.Function2? Type487 { get; set; }
+ public global::Braintrust.AllOf? Type487 { get; set; }
///
///
///
- public global::Braintrust.FunctionLogId? Type488 { get; set; }
+ public global::Braintrust.Function2? Type488 { get; set; }
///
///
///
- public global::Braintrust.FunctionOrigin? Type489 { get; set; }
+ public global::Braintrust.FunctionLogId? Type489 { get; set; }
///
///
///
- public global::Braintrust.FunctionFunctionSchema? Type490 { get; set; }
+ public global::Braintrust.FunctionOrigin? Type490 { get; set; }
///
///
///
- public global::Braintrust.CreateFunction? Type491 { get; set; }
+ public global::Braintrust.FunctionFunctionSchema? Type491 { get; set; }
///
///
///
- public global::Braintrust.CreateFunctionOrigin? Type492 { get; set; }
+ public global::Braintrust.CreateFunction? Type492 { get; set; }
///
///
///
- public global::Braintrust.CreateFunctionFunctionSchema? Type493 { get; set; }
+ public global::Braintrust.CreateFunctionOrigin? Type493 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullish? Type494 { get; set; }
+ public global::Braintrust.CreateFunctionFunctionSchema? Type494 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishPrompt? Type495 { get; set; }
+ public global::Braintrust.FunctionDataNullish? Type495 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishPromptType? Type496 { get; set; }
+ public global::Braintrust.FunctionDataNullishPrompt? Type496 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishCode? Type497 { get; set; }
+ public global::Braintrust.FunctionDataNullishPromptType? Type497 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishCodeType? Type498 { get; set; }
+ public global::Braintrust.FunctionDataNullishCode? Type498 { get; set; }
///
///
///
- public global::Braintrust.AnyOf?, global::Braintrust.FunctionDataNullishCodeData2>? Type499 { get; set; }
+ public global::Braintrust.FunctionDataNullishCodeType? Type499 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type500 { get; set; }
+ public global::Braintrust.AnyOf?, global::Braintrust.FunctionDataNullishCodeData2>? Type500 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishCodeData? Type501 { get; set; }
+ public global::Braintrust.AllOf? Type501 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishCodeDataType? Type502 { get; set; }
+ public global::Braintrust.FunctionDataNullishCodeData? Type502 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishCodeData2? Type503 { get; set; }
+ public global::Braintrust.FunctionDataNullishCodeDataType? Type503 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishCodeDataType2? Type504 { get; set; }
+ public global::Braintrust.FunctionDataNullishCodeData2? Type504 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishCodeDataRuntimeContext? Type505 { get; set; }
+ public global::Braintrust.FunctionDataNullishCodeDataType2? Type505 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishCodeDataRuntimeContextRuntime? Type506 { get; set; }
+ public global::Braintrust.FunctionDataNullishCodeDataRuntimeContext? Type506 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishRemoteEval? Type507 { get; set; }
+ public global::Braintrust.FunctionDataNullishCodeDataRuntimeContextRuntime? Type507 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishRemoteEvalType? Type508 { get; set; }
+ public global::Braintrust.FunctionDataNullishRemoteEval? Type508 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishGlobal? Type509 { get; set; }
+ public global::Braintrust.FunctionDataNullishRemoteEvalType? Type509 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishGlobalType? Type510 { get; set; }
+ public global::Braintrust.FunctionDataNullishGlobal? Type510 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishParameters? Type511 { get; set; }
+ public global::Braintrust.FunctionDataNullishGlobalType? Type511 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishParametersType? Type512 { get; set; }
+ public global::Braintrust.FunctionDataNullishParameters? Type512 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishParametersSchema? Type513 { get; set; }
+ public global::Braintrust.FunctionDataNullishParametersType? Type513 { get; set; }
///
///
///
- public global::Braintrust.FunctionDataNullishParametersSchemaType? Type514 { get; set; }
+ public global::Braintrust.FunctionDataNullishParametersSchema? Type514 { get; set; }
///
///
///
- public global::Braintrust.PatchFunction? Type515 { get; set; }
+ public global::Braintrust.FunctionDataNullishParametersSchemaType? Type515 { get; set; }
///
///
///
- public global::Braintrust.InvokeParent? Type516 { get; set; }
+ public global::Braintrust.PatchFunction? Type516 { get; set; }
///
///
///
- public global::Braintrust.InvokeParentSpanParentStruct? Type517 { get; set; }
+ public global::Braintrust.InvokeParent? Type517 { get; set; }
///
///
///
- public global::Braintrust.InvokeParentSpanParentStructObjectType? Type518 { get; set; }
+ public global::Braintrust.InvokeParentSpanParentStruct? Type518 { get; set; }
///
///
///
- public global::Braintrust.InvokeParentSpanParentStructRowIds? Type519 { get; set; }
+ public global::Braintrust.InvokeParentSpanParentStructObjectType? Type519 { get; set; }
///
///
///
- public global::Braintrust.StreamingMode? Type520 { get; set; }
+ public global::Braintrust.InvokeParentSpanParentStructRowIds? Type520 { get; set; }
///
///
///
- public global::Braintrust.InvokeApi? Type521 { get; set; }
+ public global::Braintrust.StreamingMode? Type521 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type522 { get; set; }
+ public global::Braintrust.InvokeApi? Type522 { get; set; }
///
///
///
- public global::Braintrust.InvokeApiMcpAuth2? Type523 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type523 { get; set; }
///
///
///
- public global::Braintrust.ViewDataSearch? Type524 { get; set; }
+ public global::Braintrust.InvokeApiMcpAuth2? Type524 { get; set; }
///
///
///
- public global::Braintrust.ViewData? Type525 { get; set; }
+ public global::Braintrust.ViewDataSearch? Type525 { get; set; }
///
///
///
- public global::Braintrust.ViewOptions? Type526 { get; set; }
+ public global::Braintrust.ViewData? Type526 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsMonitorViewOptions? Type527 { get; set; }
+ public global::Braintrust.ViewOptions? Type527 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsMonitorViewOptionsViewType? Type528 { get; set; }
+ public global::Braintrust.ViewOptionsMonitorViewOptions? Type528 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsMonitorViewOptionsOptions? Type529 { get; set; }
+ public global::Braintrust.ViewOptionsMonitorViewOptionsViewType? Type529 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsMonitorViewOptionsOptionsSpanType? Type530 { get; set; }
+ public global::Braintrust.ViewOptionsMonitorViewOptionsOptions? Type530 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type531 { get; set; }
+ public global::Braintrust.ViewOptionsMonitorViewOptionsOptionsSpanType? Type531 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsMonitorViewOptionsOptionsType? Type532 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type532 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptions? Type533 { get; set; }
+ public global::Braintrust.ViewOptionsMonitorViewOptionsOptionsType? Type533 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type534 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptions? Type534 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsExcludedMeasure? Type535 { get; set; }
+ public global::System.Collections.Generic.IList? Type535 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsExcludedMeasureType? Type536 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsExcludedMeasure? Type536 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsYMetric? Type537 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsExcludedMeasureType? Type537 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsYMetricType? Type538 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsYMetric? Type538 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsXAxis? Type539 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsYMetricType? Type539 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsXAxisType? Type540 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsXAxis? Type540 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsSymbolGrouping? Type541 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsXAxisType? Type541 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsSymbolGroupingType? Type542 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsSymbolGrouping? Type542 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type543 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsSymbolGroupingType? Type543 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsChartAnnotation? Type544 { get; set; }
+ public global::System.Collections.Generic.IList? Type544 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type545 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsChartAnnotation? Type545 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsTimeRangeFilter? Type546 { get; set; }
+ public global::Braintrust.AnyOf? Type546 { get; set; }
///
///
///
- public global::Braintrust.ViewOptionsTableViewOptionsQueryShape? Type547 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsTimeRangeFilter? Type547 { get; set; }
///
///
///
- public global::Braintrust.View? Type548 { get; set; }
+ public global::Braintrust.ViewOptionsTableViewOptionsQueryShape? Type548 { get; set; }
///
///
///
- public global::Braintrust.ViewViewType? Type549 { get; set; }
+ public global::Braintrust.View? Type549 { get; set; }
///
///
///
- public global::Braintrust.CreateView? Type550 { get; set; }
+ public global::Braintrust.ViewViewType? Type550 { get; set; }
///
///
///
- public global::Braintrust.CreateViewViewType? Type551 { get; set; }
+ public global::Braintrust.CreateView? Type551 { get; set; }
///
///
///
- public global::Braintrust.PatchView? Type552 { get; set; }
+ public global::Braintrust.CreateViewViewType? Type552 { get; set; }
///
///
///
- public global::Braintrust.PatchViewViewType? Type553 { get; set; }
+ public global::Braintrust.PatchView? Type553 { get; set; }
///
///
///
- public global::Braintrust.DeleteView? Type554 { get; set; }
+ public global::Braintrust.PatchViewViewType? Type554 { get; set; }
///
///
///
- public global::Braintrust.ImageRenderingMode? Type555 { get; set; }
+ public global::Braintrust.DeleteView? Type555 { get; set; }
///
///
///
- public global::Braintrust.Organization? Type556 { get; set; }
+ public global::Braintrust.ImageRenderingMode? Type556 { get; set; }
///
///
///
- public global::Braintrust.PatchOrganization? Type557 { get; set; }
+ public global::Braintrust.Organization? Type557 { get; set; }
///
///
///
- public global::Braintrust.PatchOrganizationMembersOutput? Type558 { get; set; }
+ public global::Braintrust.PatchOrganization? Type558 { get; set; }
///
///
///
- public global::Braintrust.PatchOrganizationMembersOutputStatus? Type559 { get; set; }
+ public global::Braintrust.PatchOrganizationMembersOutput? Type559 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type560 { get; set; }
+ public global::Braintrust.PatchOrganizationMembersOutputStatus? Type560 { get; set; }
///
///
///
- public global::Braintrust.PatchOrganizationMembersOutputAddedUser? Type561 { get; set; }
+ public global::System.Collections.Generic.IList? Type561 { get; set; }
///
///
///
- public global::Braintrust.PatchOrganizationMembers? Type562 { get; set; }
+ public global::Braintrust.PatchOrganizationMembersOutputAddedUser? Type562 { get; set; }
///
///
///
- public global::Braintrust.PatchOrganizationMembersInviteUsers? Type563 { get; set; }
+ public global::Braintrust.PatchOrganizationMembers? Type563 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type564 { get; set; }
+ public global::Braintrust.PatchOrganizationMembersInviteUsers? Type564 { get; set; }
///
///
///
- public global::Braintrust.PatchOrganizationMembersInviteUsersServiceAccount? Type565 { get; set; }
+ public global::System.Collections.Generic.IList? Type565 { get; set; }
///
///
///
- public global::Braintrust.PatchOrganizationMembersRemoveUsers? Type566 { get; set; }
+ public global::Braintrust.PatchOrganizationMembersInviteUsersServiceAccount? Type566 { get; set; }
///
///
///
- public global::Braintrust.ApiKey? Type567 { get; set; }
+ public global::Braintrust.PatchOrganizationMembersRemoveUsers? Type567 { get; set; }
///
///
///
- public global::Braintrust.ServiceToken? Type568 { get; set; }
+ public global::Braintrust.ApiKey? Type568 { get; set; }
///
///
///
- public global::Braintrust.DeleteServiceToken? Type569 { get; set; }
+ public global::Braintrust.CreateServiceTokenOutput? Type569 { get; set; }
///
///
///
- public global::Braintrust.AISecret? Type570 { get; set; }
+ public global::Braintrust.ServiceToken? Type570 { get; set; }
///
///
///
- public global::Braintrust.CreateAISecret? Type571 { get; set; }
+ public global::Braintrust.DeleteServiceToken? Type571 { get; set; }
///
///
///
- public global::Braintrust.DeleteAISecret? Type572 { get; set; }
+ public global::Braintrust.AISecret? Type572 { get; set; }
///
///
///
- public global::Braintrust.PatchAISecret? Type573 { get; set; }
+ public global::Braintrust.CreateAISecret? Type573 { get; set; }
///
///
///
- public global::Braintrust.EnvVar? Type574 { get; set; }
+ public global::Braintrust.DeleteAISecret? Type574 { get; set; }
///
///
///
- public global::Braintrust.EnvVarObjectType2? Type575 { get; set; }
+ public global::Braintrust.PatchAISecret? Type575 { get; set; }
///
///
///
- public global::Braintrust.EnvVarSecretCategory? Type576 { get; set; }
+ public global::Braintrust.EnvVar? Type576 { get; set; }
///
///
///
- public global::Braintrust.MCPServer? Type577 { get; set; }
+ public global::Braintrust.EnvVarObjectType2? Type577 { get; set; }
///
///
///
- public global::Braintrust.CreateMCPServer? Type578 { get; set; }
+ public global::Braintrust.EnvVarSecretCategory? Type578 { get; set; }
///
///
///
- public global::Braintrust.PatchMCPServer? Type579 { get; set; }
+ public global::Braintrust.MCPServer? Type579 { get; set; }
///
///
///
- public global::Braintrust.DatasetSnapshot? Type580 { get; set; }
+ public global::Braintrust.CreateMCPServer? Type580 { get; set; }
///
///
///
- public global::Braintrust.CreateDatasetSnapshot? Type581 { get; set; }
+ public global::Braintrust.PatchMCPServer? Type581 { get; set; }
///
///
///
- public global::Braintrust.PatchDatasetSnapshot? Type582 { get; set; }
+ public global::Braintrust.DatasetSnapshot? Type582 { get; set; }
///
///
///
- public global::Braintrust.Environment? Type583 { get; set; }
+ public global::Braintrust.CreateDatasetSnapshot? Type583 { get; set; }
///
///
///
- public global::Braintrust.CreateEnvironment? Type584 { get; set; }
+ public global::Braintrust.PatchDatasetSnapshot? Type584 { get; set; }
///
///
///
- public global::Braintrust.PatchEnvironment? Type585 { get; set; }
+ public global::Braintrust.Environment? Type585 { get; set; }
///
///
///
- public global::Braintrust.CrossObjectInsertResponse? Type586 { get; set; }
+ public global::Braintrust.CreateEnvironment? Type586 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type587 { get; set; }
+ public global::Braintrust.PatchEnvironment? Type587 { get; set; }
///
///
///
- public global::Braintrust.CrossObjectInsertRequest? Type588 { get; set; }
+ public global::Braintrust.CrossObjectInsertResponse? Type588 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type589 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type589 { get; set; }
///
///
///
- public global::Braintrust.CrossObjectInsertRequestExperiment2? Type590 { get; set; }
+ public global::Braintrust.CrossObjectInsertRequest? Type590 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type591 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type591 { get; set; }
///
///
///
- public global::Braintrust.CrossObjectInsertRequestDataset2? Type592 { get; set; }
+ public global::Braintrust.CrossObjectInsertRequestExperiment2? Type592 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type593 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type593 { get; set; }
///
///
///
- public global::Braintrust.CrossObjectInsertRequestProjectLogs2? Type594 { get; set; }
+ public global::Braintrust.CrossObjectInsertRequestDataset2? Type594 { get; set; }
///
///
///
- public global::Braintrust.PromptData? Type595 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type595 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList?>>? Type596 { get; set; }
+ public global::Braintrust.CrossObjectInsertRequestProjectLogs2? Type596 { get; set; }
///
///
///
- public global::Braintrust.AllOf?>? Type597 { get; set; }
+ public global::Braintrust.PromptData? Type597 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type598 { get; set; }
+ public global::System.Collections.Generic.IList?>>? Type598 { get; set; }
///
///
///
- public global::Braintrust.PromptDataToolFunctionVariant2Function? Type599 { get; set; }
+ public global::Braintrust.AllOf?>? Type599 { get; set; }
///
///
///
- public global::Braintrust.PromptDataToolFunctionVariant2FunctionType? Type600 { get; set; }
+ public global::Braintrust.AnyOf? Type600 { get; set; }
///
///
///
- public global::Braintrust.PromptDataToolFunctionVariant2Global? Type601 { get; set; }
+ public global::Braintrust.PromptDataToolFunctionVariant2Function? Type601 { get; set; }
///
///
///
- public global::Braintrust.PromptDataToolFunctionVariant2GlobalType? Type602 { get; set; }
+ public global::Braintrust.PromptDataToolFunctionVariant2FunctionType? Type602 { get; set; }
///
///
///
- public global::Braintrust.PromptDataTemplateFormat? Type603 { get; set; }
+ public global::Braintrust.PromptDataToolFunctionVariant2Global? Type603 { get; set; }
///
///
///
- public global::Braintrust.PromptDataMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitions? Type604 { get; set; }
+ public global::Braintrust.PromptDataToolFunctionVariant2GlobalType? Type604 { get; set; }
///
///
///
- public global::Braintrust.PromptDataMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitionsType? Type605 { get; set; }
+ public global::Braintrust.PromptDataTemplateFormat? Type605 { get; set; }
///
///
///
- public global::Braintrust.PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServers? Type606 { get; set; }
+ public global::Braintrust.PromptDataMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitions? Type606 { get; set; }
///
///
///
- public global::Braintrust.PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServersType? Type607 { get; set; }
+ public global::Braintrust.PromptDataMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitionsType? Type607 { get; set; }
///
///
///
- public global::Braintrust.PromptDataOrigin? Type608 { get; set; }
+ public global::Braintrust.PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServers? Type608 { get; set; }
///
///
///
- public global::Braintrust.FunctionId? Type609 { get; set; }
+ public global::Braintrust.PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServersType? Type609 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdFunctionId1? Type610 { get; set; }
+ public global::Braintrust.PromptDataOrigin? Type610 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdProjectSlug? Type611 { get; set; }
+ public global::Braintrust.FunctionId? Type611 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdGlobalFunction? Type612 { get; set; }
+ public global::Braintrust.FunctionIdFunctionId1? Type612 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdPromptSessionId? Type613 { get; set; }
+ public global::Braintrust.FunctionIdProjectSlug? Type613 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdInlineCode? Type614 { get; set; }
+ public global::Braintrust.FunctionIdGlobalFunction? Type614 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdInlineCodeInlineContext? Type615 { get; set; }
+ public global::Braintrust.FunctionIdPromptSessionId? Type615 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdInlineCodeInlineContextRuntime? Type616 { get; set; }
+ public global::Braintrust.FunctionIdInlineCode? Type616 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type617 { get; set; }
+ public global::Braintrust.FunctionIdInlineCodeInlineContext? Type617 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdInlineFunction? Type618 { get; set; }
+ public global::Braintrust.FunctionIdInlineCodeInlineContextRuntime? Type618 { get; set; }
///
///
///
- public global::Braintrust.FunctionIdInlinePrompt? Type619 { get; set; }
+ public global::Braintrust.AllOf? Type619 { get; set; }
///
///
///
- public global::Braintrust.GitMetadataSettings? Type620 { get; set; }
+ public global::Braintrust.FunctionIdInlineFunction? Type620 { get; set; }
///
///
///
- public global::Braintrust.GitMetadataSettingsCollect? Type621 { get; set; }
+ public global::Braintrust.FunctionIdInlinePrompt? Type621 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type622 { get; set; }
+ public global::Braintrust.GitMetadataSettings? Type622 { get; set; }
///
///
///
- public global::Braintrust.GitMetadataSettingsField? Type623 { get; set; }
+ public global::Braintrust.GitMetadataSettingsCollect? Type623 { get; set; }
///
///
///
- public global::Braintrust.RunEval? Type624 { get; set; }
+ public global::System.Collections.Generic.IList? Type624 { get; set; }
///
///
///
- public global::Braintrust.AnyOf? Type625 { get; set; }
+ public global::Braintrust.GitMetadataSettingsField? Type625 { get; set; }
///
///
///
- public global::Braintrust.RunEvalDataDatasetId? Type626 { get; set; }
+ public global::Braintrust.RunEval? Type626 { get; set; }
///
///
///
- public global::Braintrust.RunEvalDataProjectDatasetName? Type627 { get; set; }
+ public global::Braintrust.AnyOf? Type627 { get; set; }
///
///
///
- public global::Braintrust.RunEvalDataDatasetRows? Type628 { get; set; }
+ public global::Braintrust.RunEvalDataDatasetId? Type628 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type629 { get; set; }
+ public global::Braintrust.RunEvalDataProjectDatasetName? Type629 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type630 { get; set; }
+ public global::Braintrust.RunEvalDataDatasetRows? Type630 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type631 { get; set; }
+ public global::System.Collections.Generic.IList>? Type631 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type632 { get; set; }
+ public global::Braintrust.AllOf? Type632 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type633 { get; set; }
+ public global::Braintrust.AllOf? Type633 { get; set; }
///
///
///
- public global::Braintrust.RunEvalMcpAuth2? Type634 { get; set; }
+ public global::Braintrust.AllOf? Type634 { get; set; }
///
///
///
- public global::Braintrust.PostEnvVarRequest? Type635 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type635 { get; set; }
///
///
///
- public global::Braintrust.PostEnvVarRequestObjectType? Type636 { get; set; }
+ public global::Braintrust.RunEvalMcpAuth2? Type636 { get; set; }
///
///
///
- public global::Braintrust.PutEnvVarRequest? Type637 { get; set; }
+ public global::Braintrust.PostServiceTokenRequest? Type637 { get; set; }
///
///
///
- public global::Braintrust.PutEnvVarRequestObjectType? Type638 { get; set; }
+ public global::Braintrust.PutServiceTokenRequest? Type638 { get; set; }
///
///
///
- public global::Braintrust.PatchEnvVarIdRequest? Type639 { get; set; }
+ public global::Braintrust.PostEnvVarRequest? Type639 { get; set; }
///
///
///
- public global::Braintrust.ProxycredentialsRequest? Type640 { get; set; }
+ public global::Braintrust.PostEnvVarRequestObjectType? Type640 { get; set; }
///
///
///
- public global::Braintrust.ProxycredentialsRequestLogging? Type641 { get; set; }
+ public global::Braintrust.PutEnvVarRequest? Type641 { get; set; }
///
///
///
- public global::Braintrust.AnyOf>>? Type642 { get; set; }
+ public global::Braintrust.PutEnvVarRequestObjectType? Type642 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type643 { get; set; }
+ public global::Braintrust.PatchEnvVarIdRequest? Type643 { get; set; }
///
///
///
- public global::Braintrust.AllOf? Type644 { get; set; }
+ public global::Braintrust.ProxycredentialsRequest? Type644 { get; set; }
///
///
///
- public global::Braintrust.AnyOf>? Type645 { get; set; }
+ public global::Braintrust.ProxycredentialsRequestLogging? Type645 { get; set; }
///
///
///
- public global::Braintrust.GetProjectResponse? Type646 { get; set; }
+ public global::Braintrust.AnyOf>>? Type646 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type647 { get; set; }
+ public global::System.Collections.Generic.IList>? Type647 { get; set; }
///
///
///
- public global::Braintrust.GetExperimentResponse? Type648 { get; set; }
+ public global::Braintrust.AllOf? Type648 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type649 { get; set; }
+ public global::Braintrust.AnyOf>? Type649 { get; set; }
///
///
///
- public global::Braintrust.GetDatasetResponse? Type650 { get; set; }
+ public global::Braintrust.GetProjectResponse? Type650 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type651 { get; set; }
+ public global::System.Collections.Generic.IList? Type651 { get; set; }
///
///
///
- public global::Braintrust.GetPromptResponse? Type652 { get; set; }
+ public global::Braintrust.GetExperimentResponse? Type652 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type653 { get; set; }
+ public global::System.Collections.Generic.IList? Type653 { get; set; }
///
///
///
- public global::Braintrust.GetRoleResponse? Type654 { get; set; }
+ public global::Braintrust.GetDatasetResponse? Type654 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type655 { get; set; }
+ public global::System.Collections.Generic.IList? Type655 { get; set; }
///
///
///
- public global::Braintrust.GetGroupResponse? Type656 { get; set; }
+ public global::Braintrust.GetPromptResponse? Type656 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type657 { get; set; }
+ public global::System.Collections.Generic.IList? Type657 { get; set; }
///
///
///
- public global::Braintrust.GetAclResponse? Type658 { get; set; }
+ public global::Braintrust.GetRoleResponse? Type658 { get; set; }
///
///
///
- public global::Braintrust.GetUserResponse? Type659 { get; set; }
+ public global::System.Collections.Generic.IList? Type659 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type660 { get; set; }
+ public global::Braintrust.GetGroupResponse? Type660 { get; set; }
///
///
///
- public global::Braintrust.GetProjectAutomationResponse? Type661 { get; set; }
+ public global::System.Collections.Generic.IList? Type661 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type662 { get; set; }
+ public global::Braintrust.GetAclResponse? Type662 { get; set; }
///
///
///
- public global::Braintrust.GetProjectScoreResponse? Type663 { get; set; }
+ public global::Braintrust.GetUserResponse? Type663 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type664 { get; set; }
+ public global::System.Collections.Generic.IList? Type664 { get; set; }
///
///
///
- public global::Braintrust.GetProjectTagResponse? Type665 { get; set; }
+ public global::Braintrust.GetProjectAutomationResponse? Type665 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type666 { get; set; }
+ public global::System.Collections.Generic.IList? Type666 { get; set; }
///
///
///
- public global::Braintrust.GetSpanIframeResponse? Type667 { get; set; }
+ public global::Braintrust.GetProjectScoreResponse? Type667 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type668 { get; set; }
+ public global::System.Collections.Generic.IList? Type668 { get; set; }
///
///
///
- public global::Braintrust.GetFunctionResponse? Type669 { get; set; }
+ public global::Braintrust.GetProjectTagResponse? Type669 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type670 { get; set; }
+ public global::System.Collections.Generic.IList? Type670 { get; set; }
///
///
///
- public global::Braintrust.GetViewResponse? Type671 { get; set; }
+ public global::Braintrust.GetSpanIframeResponse? Type671 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type672 { get; set; }
+ public global::System.Collections.Generic.IList? Type672 { get; set; }
///
///
///
- public global::Braintrust.GetOrganizationResponse? Type673 { get; set; }
+ public global::Braintrust.GetFunctionResponse? Type673 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type674 { get; set; }
+ public global::System.Collections.Generic.IList? Type674 { get; set; }
///
///
///
- public global::Braintrust.GetApiKeyResponse? Type675 { get; set; }
+ public global::Braintrust.GetViewResponse? Type675 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type676 { get; set; }
+ public global::System.Collections.Generic.IList? Type676 { get; set; }
///
///
///
- public global::Braintrust.GetServiceTokenResponse? Type677 { get; set; }
+ public global::Braintrust.GetOrganizationResponse? Type677 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type678 { get; set; }
+ public global::System.Collections.Generic.IList? Type678 { get; set; }
///
///
///
- public global::Braintrust.GetAiSecretResponse? Type679 { get; set; }
+ public global::Braintrust.GetApiKeyResponse? Type679 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type680 { get; set; }
+ public global::System.Collections.Generic.IList? Type680 { get; set; }
///
///
///
- public global::Braintrust.GetEnvVarResponse? Type681 { get; set; }
+ public global::Braintrust.GetServiceTokenResponse? Type681 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type682 { get; set; }
+ public global::System.Collections.Generic.IList? Type682 { get; set; }
///
///
///
- public global::Braintrust.GetMcpServerResponse? Type683 { get; set; }
+ public global::Braintrust.GetAiSecretResponse? Type683 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type684 { get; set; }
+ public global::System.Collections.Generic.IList? Type684 { get; set; }
///
///
///
- public global::Braintrust.GetDatasetSnapshotResponse? Type685 { get; set; }
+ public global::Braintrust.GetEnvVarResponse? Type685 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type686 { get; set; }
+ public global::System.Collections.Generic.IList? Type686 { get; set; }
///
///
///
- public global::Braintrust.ListEnvironmentsResponse? Type687 { get; set; }
+ public global::Braintrust.GetMcpServerResponse? Type687 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type688 { get; set; }
+ public global::System.Collections.Generic.IList? Type688 { get; set; }
///
///
///
- public global::Braintrust.ProxycredentialsResponse? Type689 { get; set; }
+ public global::Braintrust.GetDatasetSnapshotResponse? Type689 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type690 { get; set; }
+ ///
+ ///
+ ///
+ public global::Braintrust.ListEnvironmentsResponse? Type691 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type692 { get; set; }
+ ///
+ ///
+ ///
+ public global::Braintrust.ProxycredentialsResponse? Type693 { get; set; }
///
///
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.AutomationStatus.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.AutomationStatus.g.cs
new file mode 100644
index 0000000..77278ff
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.AutomationStatus.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace Braintrust
+{
+ ///
+ /// Whether the automation is active or paused.
+ ///
+ public enum AutomationStatus
+ {
+ ///
+ ///
+ ///
+ Active,
+ ///
+ ///
+ ///
+ Paused,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class AutomationStatusExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this AutomationStatus value)
+ {
+ return value switch
+ {
+ AutomationStatus.Active => "active",
+ AutomationStatus.Paused => "paused",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static AutomationStatus? ToEnum(string value)
+ {
+ return value switch
+ {
+ "active" => AutomationStatus.Active,
+ "paused" => AutomationStatus.Paused,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2.g.cs
index 848f3f1..48da1d1 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2.g.cs
@@ -15,6 +15,13 @@ public sealed partial class CreateProjectAutomationConfigVariant2
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2EventTypeJsonConverter))]
public global::Braintrust.CreateProjectAutomationConfigVariant2EventType EventType { get; set; }
+ ///
+ /// Whether the automation is active or paused.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.AutomationStatusJsonConverter))]
+ public global::Braintrust.AutomationStatus? Status { get; set; }
+
///
/// The definition of what to export
///
@@ -91,6 +98,9 @@ public sealed partial class CreateProjectAutomationConfigVariant2
///
/// The type of automation.
///
+ ///
+ /// Whether the automation is active or paused.
+ ///
///
/// Execution scope for export automation. Defaults to span-level execution.
///
@@ -107,10 +117,12 @@ public CreateProjectAutomationConfigVariant2(
double intervalSeconds,
global::Braintrust.OneOf credentials,
global::Braintrust.CreateProjectAutomationConfigVariant2EventType eventType,
+ global::Braintrust.AutomationStatus? status,
global::Braintrust.AnyOf? scope,
double? batchSize)
{
this.EventType = eventType;
+ this.Status = status;
this.ExportDefinition = exportDefinition;
this.Scope = scope;
this.ExportPath = exportPath ?? throw new global::System.ArgumentNullException(nameof(exportPath));
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateServiceTokenOutput.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateServiceTokenOutput.Json.g.cs
new file mode 100644
index 0000000..c047437
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateServiceTokenOutput.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Braintrust
+{
+ public sealed partial class CreateServiceTokenOutput
+ {
+ ///
+ /// 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::Braintrust.CreateServiceTokenOutput? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Braintrust.CreateServiceTokenOutput),
+ jsonSerializerContext) as global::Braintrust.CreateServiceTokenOutput;
+ }
+
+ ///
+ /// 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::Braintrust.CreateServiceTokenOutput? 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::Braintrust.CreateServiceTokenOutput),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.CreateServiceTokenOutput;
+ }
+
+ ///
+ /// 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/Braintrust/Generated/Braintrust.Models.CreateServiceTokenOutput.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateServiceTokenOutput.g.cs
new file mode 100644
index 0000000..9f4668c
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateServiceTokenOutput.g.cs
@@ -0,0 +1,136 @@
+
+#nullable enable
+
+namespace Braintrust
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateServiceTokenOutput
+ {
+ ///
+ /// Unique identifier for the service token
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Guid Id { get; set; }
+
+ ///
+ /// Date of service token creation
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("created")]
+ public global::System.DateTime? Created { get; set; }
+
+ ///
+ /// Name of the service token
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Name { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("preview_name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string PreviewName { get; set; }
+
+ ///
+ /// Unique identifier for the service token
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("service_account_id")]
+ public global::System.Guid? ServiceAccountId { get; set; }
+
+ ///
+ /// The service account email (not routable)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("service_account_email")]
+ public string? ServiceAccountEmail { get; set; }
+
+ ///
+ /// The service account name
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("service_account_name")]
+ public string? ServiceAccountName { get; set; }
+
+ ///
+ /// Unique identifier for the organization
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("org_id")]
+ public global::System.Guid? OrgId { get; set; }
+
+ ///
+ /// The raw service token. It will only be exposed this one time
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("key")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Key { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// Unique identifier for the service token
+ ///
+ ///
+ /// Name of the service token
+ ///
+ ///
+ ///
+ /// The raw service token. It will only be exposed this one time
+ ///
+ ///
+ /// Date of service token creation
+ ///
+ ///
+ /// Unique identifier for the service token
+ ///
+ ///
+ /// The service account email (not routable)
+ ///
+ ///
+ /// The service account name
+ ///
+ ///
+ /// Unique identifier for the organization
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateServiceTokenOutput(
+ global::System.Guid id,
+ string name,
+ string previewName,
+ string key,
+ global::System.DateTime? created,
+ global::System.Guid? serviceAccountId,
+ string? serviceAccountEmail,
+ string? serviceAccountName,
+ global::System.Guid? orgId)
+ {
+ this.Id = id;
+ this.Created = created;
+ this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ this.PreviewName = previewName ?? throw new global::System.ArgumentNullException(nameof(previewName));
+ this.ServiceAccountId = serviceAccountId;
+ this.ServiceAccountEmail = serviceAccountEmail;
+ this.ServiceAccountName = serviceAccountName;
+ this.OrgId = orgId;
+ this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateServiceTokenOutput()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.DatasetEvent.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.DatasetEvent.g.cs
index 08cec86..7d5836c 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.DatasetEvent.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.DatasetEvent.g.cs
@@ -115,7 +115,7 @@ public sealed partial class DatasetEvent
/// Facets for categorization (dictionary from facet id to value)
///
[global::System.Text.Json.Serialization.JsonPropertyName("facets")]
- public global::System.Collections.Generic.Dictionary? Facets { get; set; }
+ public global::System.Collections.Generic.Dictionary? Facets { get; set; }
///
/// Classifications for this event (dictionary from classification name to items)
@@ -206,7 +206,7 @@ public DatasetEvent(
global::Braintrust.ObjectReferenceNullish? origin,
global::System.Collections.Generic.IList? comments,
global::System.Collections.Generic.IList? auditData,
- global::System.Collections.Generic.Dictionary? facets,
+ global::System.Collections.Generic.Dictionary? facets,
global::System.Collections.Generic.Dictionary>? classifications)
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentEvent.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentEvent.g.cs
index aa8b2b4..07fa66e 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentEvent.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentEvent.g.cs
@@ -157,7 +157,7 @@ public sealed partial class ExperimentEvent
/// Facets for categorization (dictionary from facet id to value)
///
[global::System.Text.Json.Serialization.JsonPropertyName("facets")]
- public global::System.Collections.Generic.Dictionary? Facets { get; set; }
+ public global::System.Collections.Generic.Dictionary? Facets { get; set; }
///
/// Classifications for this event (dictionary from classification name to items)
@@ -276,7 +276,7 @@ public ExperimentEvent(
global::Braintrust.ObjectReferenceNullish? origin,
global::System.Collections.Generic.IList? comments,
global::System.Collections.Generic.IList? auditData,
- global::System.Collections.Generic.Dictionary? facets,
+ global::System.Collections.Generic.Dictionary? facets,
global::System.Collections.Generic.Dictionary>? classifications)
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.GitMetadataSettings.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.GitMetadataSettings.g.cs
index 770fe59..451f0f1 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.GitMetadataSettings.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.GitMetadataSettings.g.cs
@@ -4,7 +4,7 @@
namespace Braintrust
{
///
- /// Optional settings for collecting git metadata. By default, will collect all git metadata fields allowed in org-level settings.
+ /// Optional settings for collecting git metadata. By default, will collect git metadata fields allowed in org-level settings, excluding diff content unless the org opts in.
///
public sealed partial class GitMetadataSettings
{
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.GroupScope.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.GroupScope.g.cs
index 971f34e..ef7893c 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.GroupScope.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.GroupScope.g.cs
@@ -22,6 +22,26 @@ public sealed partial class GroupScope
[global::System.Text.Json.Serialization.JsonRequired]
public required string GroupBy { get; set; }
+ ///
+ /// Maximum time range to include when constructing a group
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("interval_seconds")]
+ public double? IntervalSeconds { get; set; }
+
+ ///
+ /// Maximum number of traces to include when constructing a group (default/max: 64)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_traces")]
+ public int? MaxTraces { get; set; }
+
+ ///
+ /// Which trace or traces to write grouped scorer results to
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("placement")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.GroupScopePlacementJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Braintrust.GroupScopePlacement Placement { get; set; }
+
///
/// Optional: trigger after this many seconds of inactivity
///
@@ -40,7 +60,16 @@ public sealed partial class GroupScope
///
/// Field path to group by, e.g. metadata.session_id
///
+ ///
+ /// Which trace or traces to write grouped scorer results to
+ ///
///
+ ///
+ /// Maximum time range to include when constructing a group
+ ///
+ ///
+ /// Maximum number of traces to include when constructing a group (default/max: 64)
+ ///
///
/// Optional: trigger after this many seconds of inactivity
///
@@ -49,11 +78,17 @@ public sealed partial class GroupScope
#endif
public GroupScope(
string groupBy,
+ global::Braintrust.GroupScopePlacement placement,
global::Braintrust.GroupScopeType type,
+ double? intervalSeconds,
+ int? maxTraces,
double? idleSeconds)
{
this.Type = type;
this.GroupBy = groupBy ?? throw new global::System.ArgumentNullException(nameof(groupBy));
+ this.IntervalSeconds = intervalSeconds;
+ this.MaxTraces = maxTraces;
+ this.Placement = placement;
this.IdleSeconds = idleSeconds;
}
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.GroupScopePlacement.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.GroupScopePlacement.g.cs
new file mode 100644
index 0000000..bbdf913
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.GroupScopePlacement.g.cs
@@ -0,0 +1,51 @@
+
+#nullable enable
+
+namespace Braintrust
+{
+ ///
+ /// Which trace or traces to write grouped scorer results to
+ ///
+ public enum GroupScopePlacement
+ {
+ ///
+ ///
+ ///
+ Each,
+ ///
+ ///
+ ///
+ First,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class GroupScopePlacementExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this GroupScopePlacement value)
+ {
+ return value switch
+ {
+ GroupScopePlacement.Each => "each",
+ GroupScopePlacement.First => "first",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static GroupScopePlacement? ToEnum(string value)
+ {
+ return value switch
+ {
+ "each" => GroupScopePlacement.Each,
+ "first" => GroupScopePlacement.First,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.InsertDatasetEvent.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.InsertDatasetEvent.g.cs
index c814c7e..b6819cd 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.InsertDatasetEvent.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.InsertDatasetEvent.g.cs
@@ -54,7 +54,7 @@ public sealed partial class InsertDatasetEvent
/// Facets for categorization (dictionary from facet id to value)
///
[global::System.Text.Json.Serialization.JsonPropertyName("facets")]
- public global::System.Collections.Generic.Dictionary? Facets { get; set; }
+ public global::System.Collections.Generic.Dictionary? Facets { get; set; }
///
/// Pass `_object_delete=true` to mark the dataset event deleted. Deleted events will not show up in subsequent fetches for this dataset
@@ -196,7 +196,7 @@ public InsertDatasetEvent(
string? id,
global::System.DateTime? created,
global::Braintrust.ObjectReferenceNullish? origin,
- global::System.Collections.Generic.Dictionary? facets,
+ global::System.Collections.Generic.Dictionary? facets,
bool? objectDelete,
bool? isMerge,
global::System.Collections.Generic.IList>? mergePaths,
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.InsertExperimentEvent.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.InsertExperimentEvent.g.cs
index 463844c..5f4b369 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.InsertExperimentEvent.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.InsertExperimentEvent.g.cs
@@ -90,7 +90,7 @@ public sealed partial class InsertExperimentEvent
/// Facets for categorization (dictionary from facet id to value)
///
[global::System.Text.Json.Serialization.JsonPropertyName("facets")]
- public global::System.Collections.Generic.Dictionary? Facets { get; set; }
+ public global::System.Collections.Generic.Dictionary? Facets { get; set; }
///
/// Pass `_object_delete=true` to mark the experiment event deleted. Deleted events will not show up in subsequent fetches for this experiment
@@ -256,7 +256,7 @@ public InsertExperimentEvent(
string? id,
global::System.DateTime? created,
global::Braintrust.ObjectReferenceNullish? origin,
- global::System.Collections.Generic.Dictionary? facets,
+ global::System.Collections.Generic.Dictionary? facets,
bool? objectDelete,
bool? isMerge,
global::System.Collections.Generic.IList>? mergePaths,
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.InsertProjectLogsEvent.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.InsertProjectLogsEvent.g.cs
index 1973a2a..10be933 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.InsertProjectLogsEvent.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.InsertProjectLogsEvent.g.cs
@@ -90,7 +90,7 @@ public sealed partial class InsertProjectLogsEvent
/// Facets for categorization (dictionary from facet id to value)
///
[global::System.Text.Json.Serialization.JsonPropertyName("facets")]
- public global::System.Collections.Generic.Dictionary? Facets { get; set; }
+ public global::System.Collections.Generic.Dictionary? Facets { get; set; }
///
/// Pass `_object_delete=true` to mark the project logs event deleted. Deleted events will not show up in subsequent fetches for this project logs
@@ -256,7 +256,7 @@ public InsertProjectLogsEvent(
string? id,
global::System.DateTime? created,
global::Braintrust.ObjectReferenceNullish? origin,
- global::System.Collections.Generic.Dictionary? facets,
+ global::System.Collections.Generic.Dictionary? facets,
bool? objectDelete,
bool? isMerge,
global::System.Collections.Generic.IList>? mergePaths,
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsers.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsers.g.cs
index e2997a0..03762b7 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsers.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsers.g.cs
@@ -21,7 +21,7 @@ public sealed partial class PatchOrganizationMembersInviteUsers
public global::System.Collections.Generic.IList? Emails { get; set; }
///
- /// Service accounts to create. Users with organization-owner permissions can create service accounts via the API, but the service tokens required to authenticate those accounts must be created in the Braintrust UI.
+ /// Service accounts to create. Any caller permitted to add organization members can create service accounts (but not necessarily their associated tokens).
///
[global::System.Text.Json.Serialization.JsonPropertyName("service_accounts")]
public global::System.Collections.Generic.IList? ServiceAccounts { get; set; }
@@ -72,7 +72,7 @@ public sealed partial class PatchOrganizationMembersInviteUsers
/// Emails of users to invite
///
///
- /// Service accounts to create. Users with organization-owner permissions can create service accounts via the API, but the service tokens required to authenticate those accounts must be created in the Braintrust UI.
+ /// Service accounts to create. Any caller permitted to add organization members can create service accounts (but not necessarily their associated tokens).
///
///
/// If true, send invite emails to the users who wore actually added
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsersServiceAccount.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsersServiceAccount.g.cs
index 1980123..60e16b5 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsersServiceAccount.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsersServiceAccount.g.cs
@@ -16,7 +16,7 @@ public sealed partial class PatchOrganizationMembersInviteUsersServiceAccount
public required string Name { get; set; }
///
- /// Omit this field and create the token in the Braintrust UI ([**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens)). If you include this field, the API call will return a 403.
+ /// Optional name of an initial service token to create for the new service account. When this field is set, the request must be authenticated with a service token that has organization-owner permissions, not a user API key.
///
[global::System.Text.Json.Serialization.JsonPropertyName("token_name")]
public string? TokenName { get; set; }
@@ -32,7 +32,7 @@ public sealed partial class PatchOrganizationMembersInviteUsersServiceAccount
///
///
///
- /// Omit this field and create the token in the Braintrust UI ([**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens)). If you include this field, the API call will return a 403.
+ /// Optional name of an initial service token to create for the new service account. When this field is set, the request must be authenticated with a service token that has organization-owner permissions, not a user API key.
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2.g.cs
index 6ef723c..f2f33f5 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2.g.cs
@@ -15,6 +15,13 @@ public sealed partial class PatchProjectAutomationConfigVariant2
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2EventTypeJsonConverter))]
public global::Braintrust.PatchProjectAutomationConfigVariant2EventType EventType { get; set; }
+ ///
+ /// Whether the automation is active or paused.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.AutomationStatusJsonConverter))]
+ public global::Braintrust.AutomationStatus? Status { get; set; }
+
///
/// The definition of what to export
///
@@ -91,6 +98,9 @@ public sealed partial class PatchProjectAutomationConfigVariant2
///
/// The type of automation.
///
+ ///
+ /// Whether the automation is active or paused.
+ ///
///
/// Execution scope for export automation. Defaults to span-level execution.
///
@@ -107,10 +117,12 @@ public PatchProjectAutomationConfigVariant2(
double intervalSeconds,
global::Braintrust.OneOf credentials,
global::Braintrust.PatchProjectAutomationConfigVariant2EventType eventType,
+ global::Braintrust.AutomationStatus? status,
global::Braintrust.AnyOf? scope,
double? batchSize)
{
this.EventType = eventType;
+ this.Status = status;
this.ExportDefinition = exportDefinition;
this.Scope = scope;
this.ExportPath = exportPath ?? throw new global::System.ArgumentNullException(nameof(exportPath));
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PostServiceTokenRequest.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PostServiceTokenRequest.Json.g.cs
new file mode 100644
index 0000000..10d47ba
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.PostServiceTokenRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Braintrust
+{
+ public sealed partial class PostServiceTokenRequest
+ {
+ ///
+ /// 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::Braintrust.PostServiceTokenRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Braintrust.PostServiceTokenRequest),
+ jsonSerializerContext) as global::Braintrust.PostServiceTokenRequest;
+ }
+
+ ///
+ /// 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::Braintrust.PostServiceTokenRequest? 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::Braintrust.PostServiceTokenRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.PostServiceTokenRequest;
+ }
+
+ ///
+ /// 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/Braintrust/Generated/Braintrust.Models.PostServiceTokenRequest.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PostServiceTokenRequest.g.cs
new file mode 100644
index 0000000..c465270
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.PostServiceTokenRequest.g.cs
@@ -0,0 +1,70 @@
+
+#nullable enable
+
+namespace Braintrust
+{
+ ///
+ ///
+ ///
+ public sealed partial class PostServiceTokenRequest
+ {
+ ///
+ /// Name of the service token. Does not have to be unique
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Name { get; set; }
+
+ ///
+ /// For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the Service token belongs in.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("org_name")]
+ public string? OrgName { get; set; }
+
+ ///
+ /// The ID of the service account to which the token should belong. To create a service account, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI or call [`PATCH /v1/organization/members`](https://www.braintrust.dev/docs/api-reference/organizations/modify-organization-membership).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("service_account_id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string ServiceAccountId { 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.
+ ///
+ ///
+ /// Name of the service token. Does not have to be unique
+ ///
+ ///
+ /// The ID of the service account to which the token should belong. To create a service account, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI or call [`PATCH /v1/organization/members`](https://www.braintrust.dev/docs/api-reference/organizations/modify-organization-membership).
+ ///
+ ///
+ /// For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the Service token belongs in.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public PostServiceTokenRequest(
+ string name,
+ string serviceAccountId,
+ string? orgName)
+ {
+ this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ this.OrgName = orgName;
+ this.ServiceAccountId = serviceAccountId ?? throw new global::System.ArgumentNullException(nameof(serviceAccountId));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public PostServiceTokenRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2.g.cs
index 565c817..4ac7fb2 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2.g.cs
@@ -15,6 +15,13 @@ public sealed partial class ProjectAutomationConfigVariant2
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2EventTypeJsonConverter))]
public global::Braintrust.ProjectAutomationConfigVariant2EventType EventType { get; set; }
+ ///
+ /// Whether the automation is active or paused.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.AutomationStatusJsonConverter))]
+ public global::Braintrust.AutomationStatus? Status { get; set; }
+
///
/// The definition of what to export
///
@@ -91,6 +98,9 @@ public sealed partial class ProjectAutomationConfigVariant2
///
/// The type of automation.
///
+ ///
+ /// Whether the automation is active or paused.
+ ///
///
/// Execution scope for export automation. Defaults to span-level execution.
///
@@ -107,10 +117,12 @@ public ProjectAutomationConfigVariant2(
double intervalSeconds,
global::Braintrust.OneOf credentials,
global::Braintrust.ProjectAutomationConfigVariant2EventType eventType,
+ global::Braintrust.AutomationStatus? status,
global::Braintrust.AnyOf? scope,
double? batchSize)
{
this.EventType = eventType;
+ this.Status = status;
this.ExportDefinition = exportDefinition;
this.Scope = scope;
this.ExportPath = exportPath ?? throw new global::System.ArgumentNullException(nameof(exportPath));
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectLogsEvent.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectLogsEvent.g.cs
index 233a17a..28ef865 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectLogsEvent.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectLogsEvent.g.cs
@@ -170,7 +170,7 @@ public sealed partial class ProjectLogsEvent
/// Facets for categorization (dictionary from facet id to value)
///
[global::System.Text.Json.Serialization.JsonPropertyName("facets")]
- public global::System.Collections.Generic.Dictionary? Facets { get; set; }
+ public global::System.Collections.Generic.Dictionary? Facets { get; set; }
///
/// Classifications for this event (dictionary from classification name to items)
@@ -297,7 +297,7 @@ public ProjectLogsEvent(
global::System.Collections.Generic.IList? comments,
global::System.Collections.Generic.IList? auditData,
object? asyncScoringState,
- global::System.Collections.Generic.Dictionary? facets,
+ global::System.Collections.Generic.Dictionary? facets,
global::System.Collections.Generic.Dictionary>? classifications)
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PutServiceTokenRequest.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PutServiceTokenRequest.Json.g.cs
new file mode 100644
index 0000000..beb8c28
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.PutServiceTokenRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Braintrust
+{
+ public sealed partial class PutServiceTokenRequest
+ {
+ ///
+ /// 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::Braintrust.PutServiceTokenRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Braintrust.PutServiceTokenRequest),
+ jsonSerializerContext) as global::Braintrust.PutServiceTokenRequest;
+ }
+
+ ///
+ /// 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::Braintrust.PutServiceTokenRequest? 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::Braintrust.PutServiceTokenRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.PutServiceTokenRequest;
+ }
+
+ ///
+ /// 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/Braintrust/Generated/Braintrust.Models.PutServiceTokenRequest.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PutServiceTokenRequest.g.cs
new file mode 100644
index 0000000..11dd988
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.PutServiceTokenRequest.g.cs
@@ -0,0 +1,70 @@
+
+#nullable enable
+
+namespace Braintrust
+{
+ ///
+ ///
+ ///
+ public sealed partial class PutServiceTokenRequest
+ {
+ ///
+ /// Name of the service token. Does not have to be unique
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Name { get; set; }
+
+ ///
+ /// For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the Service token belongs in.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("org_name")]
+ public string? OrgName { get; set; }
+
+ ///
+ /// The ID of the service account to which the token should belong. To create a service account, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI or call [`PATCH /v1/organization/members`](https://www.braintrust.dev/docs/api-reference/organizations/modify-organization-membership).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("service_account_id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string ServiceAccountId { 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.
+ ///
+ ///
+ /// Name of the service token. Does not have to be unique
+ ///
+ ///
+ /// The ID of the service account to which the token should belong. To create a service account, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI or call [`PATCH /v1/organization/members`](https://www.braintrust.dev/docs/api-reference/organizations/modify-organization-membership).
+ ///
+ ///
+ /// For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the Service token belongs in.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public PutServiceTokenRequest(
+ string name,
+ string serviceAccountId,
+ string? orgName)
+ {
+ this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ this.OrgName = orgName;
+ this.ServiceAccountId = serviceAccountId ?? throw new global::System.ArgumentNullException(nameof(serviceAccountId));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public PutServiceTokenRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.RunEval.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.RunEval.g.cs
index 87bf65b..e194efb 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.RunEval.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.RunEval.g.cs
@@ -113,7 +113,7 @@ public sealed partial class RunEval
public string? BaseExperimentId { get; set; }
///
- /// Optional settings for collecting git metadata. By default, will collect all git metadata fields allowed in org-level settings.
+ /// Optional settings for collecting git metadata. By default, will collect git metadata fields allowed in org-level settings, excluding diff content unless the org opts in.
///
[global::System.Text.Json.Serialization.JsonPropertyName("git_metadata_settings")]
public global::Braintrust.GitMetadataSettings? GitMetadataSettings { get; set; }
@@ -212,7 +212,7 @@ public sealed partial class RunEval
/// An optional experiment id to use as a base. If specified, the new experiment will be summarized and compared to this experiment.
///
///
- /// Optional settings for collecting git metadata. By default, will collect all git metadata fields allowed in org-level settings.
+ /// Optional settings for collecting git metadata. By default, will collect git metadata fields allowed in org-level settings, excluding diff content unless the org opts in.
///
///
///
diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.TopicAutomationConfig.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.TopicAutomationConfig.g.cs
index 1dea5db..ce88a97 100644
--- a/src/libs/Braintrust/Generated/Braintrust.Models.TopicAutomationConfig.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.Models.TopicAutomationConfig.g.cs
@@ -15,6 +15,13 @@ public sealed partial class TopicAutomationConfig
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.TopicAutomationConfigEventTypeJsonConverter))]
public global::Braintrust.TopicAutomationConfigEventType EventType { get; set; }
+ ///
+ /// Whether the automation is active or paused.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.AutomationStatusJsonConverter))]
+ public global::Braintrust.AutomationStatus? Status { get; set; }
+
///
/// The sampling rate for topic automation
///
@@ -103,6 +110,9 @@ public sealed partial class TopicAutomationConfig
///
/// The type of automation.
///
+ ///
+ /// Whether the automation is active or paused.
+ ///
///
/// Optional facet model override for topic automation
///
@@ -132,6 +142,7 @@ public TopicAutomationConfig(
global::System.Collections.Generic.IList?>> facetFunctions,
global::System.Collections.Generic.IList topicMapFunctions,
global::Braintrust.TopicAutomationConfigEventType eventType,
+ global::Braintrust.AutomationStatus? status,
global::Braintrust.TopicAutomationFacetModel? facetModel,
global::Braintrust.AnyOf? scope,
global::Braintrust.TopicAutomationDataScope? dataScope,
@@ -141,6 +152,7 @@ public TopicAutomationConfig(
global::Braintrust.AnyOf? backfillTimeRange)
{
this.EventType = eventType;
+ this.Status = status;
this.SamplingRate = samplingRate;
this.FacetModel = facetModel;
this.FacetFunctions = facetFunctions ?? throw new global::System.ArgumentNullException(nameof(facetFunctions));
diff --git a/src/libs/Braintrust/Generated/Braintrust.OrganizationsClient.PatchOrganizationMembers.g.cs b/src/libs/Braintrust/Generated/Braintrust.OrganizationsClient.PatchOrganizationMembers.g.cs
index a33c95b..800f667 100644
--- a/src/libs/Braintrust/Generated/Braintrust.OrganizationsClient.PatchOrganizationMembers.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.OrganizationsClient.PatchOrganizationMembers.g.cs
@@ -52,8 +52,7 @@ partial void ProcessPatchOrganizationMembersResponseContent(
///
/// Modify organization membership
- /// Modify organization membership.
- /// Organization owners can use this endpoint to create service accounts, but service tokens for those accounts must be created in the Braintrust UI, at [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens).
+ /// Add or remove members, create service accounts.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -76,8 +75,7 @@ partial void ProcessPatchOrganizationMembersResponseContent(
}
///
/// Modify organization membership
- /// Modify organization membership.
- /// Organization owners can use this endpoint to create service accounts, but service tokens for those accounts must be created in the Braintrust UI, at [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens).
+ /// Add or remove members, create service accounts.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -631,8 +629,7 @@ partial void ProcessPatchOrganizationMembersResponseContent(
}
///
/// Modify organization membership
- /// Modify organization membership.
- /// Organization owners can use this endpoint to create service accounts, but service tokens for those accounts must be created in the Braintrust UI, at [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens).
+ /// Add or remove members, create service accounts.
///
///
/// Users to invite to the organization
diff --git a/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.GetServiceToken.g.cs b/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.GetServiceToken.g.cs
index 9dce9d7..a3e4cd1 100644
--- a/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.GetServiceToken.g.cs
+++ b/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.GetServiceToken.g.cs
@@ -63,7 +63,7 @@ partial void ProcessGetServiceTokenResponseContent(
///
/// List service_tokens
/// List out all service tokens. They are sorted by creation date, with the most recently-created tokens coming first.
- /// To create service tokens, organization owners can go to [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI.
+ /// To create a service token, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) as an organization owner, or call [`POST /v1/service_token`](https://www.braintrust.dev/docs/api-reference/servicetokens/create-service_token) and authenticate with a service token that has organization-owner permissions.
///
///
/// Limit the number of objects to return
@@ -114,7 +114,7 @@ partial void ProcessGetServiceTokenResponseContent(
///
/// List service_tokens
/// List out all service tokens. They are sorted by creation date, with the most recently-created tokens coming first.
- /// To create service tokens, organization owners can go to [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI.
+ /// To create a service token, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) as an organization owner, or call [`POST /v1/service_token`](https://www.braintrust.dev/docs/api-reference/servicetokens/create-service_token) and authenticate with a service token that has organization-owner permissions.
///
///
/// Limit the number of objects to return
diff --git a/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.PostServiceToken.g.cs b/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.PostServiceToken.g.cs
new file mode 100644
index 0000000..2072f98
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.PostServiceToken.g.cs
@@ -0,0 +1,669 @@
+
+#nullable enable
+
+namespace Braintrust
+{
+ public partial class ServiceTokensClient
+ {
+
+
+ private static readonly global::Braintrust.EndPointSecurityRequirement s_PostServiceTokenSecurityRequirement0 =
+ new global::Braintrust.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[]
+ { new global::Braintrust.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "BearerAuth",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+
+ private static readonly global::Braintrust.EndPointSecurityRequirement s_PostServiceTokenSecurityRequirement1 =
+ new global::Braintrust.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[]
+ {
+ },
+ };
+ private static readonly global::Braintrust.EndPointSecurityRequirement[] s_PostServiceTokenSecurityRequirements =
+ new global::Braintrust.EndPointSecurityRequirement[]
+ { s_PostServiceTokenSecurityRequirement0,
+ s_PostServiceTokenSecurityRequirement1,
+ };
+ partial void PreparePostServiceTokenArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Braintrust.PostServiceTokenRequest request);
+ partial void PreparePostServiceTokenRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Braintrust.PostServiceTokenRequest request);
+ partial void ProcessPostServiceTokenResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessPostServiceTokenResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Create service_token
+ /// Create a new service token.
+ /// When calling this endpoint, you must authenticate using a service token that has organization-owner permissions. User API keys cannot be used.
+ ///
+ ///
+ /// 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 PostServiceTokenAsync(
+
+ global::Braintrust.PostServiceTokenRequest request,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await PostServiceTokenAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create service_token
+ /// Create a new service token.
+ /// When calling this endpoint, you must authenticate using a service token that has organization-owner permissions. User API keys cannot be used.
+ ///
+ ///
+ /// 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> PostServiceTokenAsResponseAsync(
+
+ global::Braintrust.PostServiceTokenRequest request,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PreparePostServiceTokenArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::Braintrust.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_PostServiceTokenSecurityRequirements,
+ operationName: "PostServiceTokenAsync");
+
+ using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Braintrust.PathBuilder(
+ path: "/v1/service_token",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PreparePostServiceTokenRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PostServiceToken",
+ methodName: "PostServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Braintrust.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PostServiceToken",
+ methodName: "PostServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Braintrust.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PostServiceToken",
+ methodName: "PostServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Braintrust.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);
+ ProcessPostServiceTokenResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PostServiceToken",
+ methodName: "PostServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PostServiceToken",
+ methodName: "PostServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // The request was unacceptable, often due to missing a required parameter
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ string? __value_400 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // No valid API key provided
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ string? __value_401 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ responseBody: __content_401,
+ responseObject: __value_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // The API key doesn’t have permissions to perform the request
+ if ((int)__response.StatusCode == 403)
+ {
+ string? __content_403 = null;
+ global::System.Exception? __exception_403 = null;
+ string? __value_403 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_403 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_403,
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
+ if ((int)__response.StatusCode == 429)
+ {
+ string? __content_429 = null;
+ global::System.Exception? __exception_429 = null;
+ string? __value_429 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_429 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_429,
+ responseBody: __content_429,
+ responseObject: __value_429,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Something went wrong on Braintrust's end. (These are rare.)
+ if ((int)__response.StatusCode == 500)
+ {
+ string? __content_500 = null;
+ global::System.Exception? __exception_500 = null;
+ string? __value_500 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_500 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_500,
+ responseBody: __content_500,
+ responseObject: __value_500,
+ 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);
+ ProcessPostServiceTokenResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Braintrust.CreateServiceTokenOutput.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Braintrust.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Braintrust.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Braintrust.CreateServiceTokenOutput.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Braintrust.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Braintrust.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Create service_token
+ /// Create a new service token.
+ /// When calling this endpoint, you must authenticate using a service token that has organization-owner permissions. User API keys cannot be used.
+ ///
+ ///
+ /// Name of the service token. Does not have to be unique
+ ///
+ ///
+ /// For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the Service token belongs in.
+ ///
+ ///
+ /// The ID of the service account to which the token should belong. To create a service account, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI or call [`PATCH /v1/organization/members`](https://www.braintrust.dev/docs/api-reference/organizations/modify-organization-membership).
+ ///
+ /// 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 PostServiceTokenAsync(
+ string name,
+ string serviceAccountId,
+ string? orgName = default,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Braintrust.PostServiceTokenRequest
+ {
+ Name = name,
+ OrgName = orgName,
+ ServiceAccountId = serviceAccountId,
+ };
+
+ return await PostServiceTokenAsync(
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.PutServiceToken.g.cs b/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.PutServiceToken.g.cs
new file mode 100644
index 0000000..25e50d9
--- /dev/null
+++ b/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.PutServiceToken.g.cs
@@ -0,0 +1,666 @@
+
+#nullable enable
+
+namespace Braintrust
+{
+ public partial class ServiceTokensClient
+ {
+
+
+ private static readonly global::Braintrust.EndPointSecurityRequirement s_PutServiceTokenSecurityRequirement0 =
+ new global::Braintrust.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[]
+ { new global::Braintrust.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "BearerAuth",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+
+ private static readonly global::Braintrust.EndPointSecurityRequirement s_PutServiceTokenSecurityRequirement1 =
+ new global::Braintrust.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[]
+ {
+ },
+ };
+ private static readonly global::Braintrust.EndPointSecurityRequirement[] s_PutServiceTokenSecurityRequirements =
+ new global::Braintrust.EndPointSecurityRequirement[]
+ { s_PutServiceTokenSecurityRequirement0,
+ s_PutServiceTokenSecurityRequirement1,
+ };
+ partial void PreparePutServiceTokenArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Braintrust.PutServiceTokenRequest request);
+ partial void PreparePutServiceTokenRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Braintrust.PutServiceTokenRequest request);
+ partial void ProcessPutServiceTokenResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessPutServiceTokenResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Create or replace service_token
+ /// Create or replace service_token. If there is an existing service_token with the same name as the one specified in the request, will replace the existing service_token with the provided fields
+ ///
+ ///
+ /// 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 PutServiceTokenAsync(
+
+ global::Braintrust.PutServiceTokenRequest request,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await PutServiceTokenAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create or replace service_token
+ /// Create or replace service_token. If there is an existing service_token with the same name as the one specified in the request, will replace the existing service_token with the provided fields
+ ///
+ ///
+ /// 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> PutServiceTokenAsResponseAsync(
+
+ global::Braintrust.PutServiceTokenRequest request,
+ global::Braintrust.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PreparePutServiceTokenArguments(
+ httpClient: HttpClient,
+ request: request);
+
+
+ var __authorizations = global::Braintrust.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_PutServiceTokenSecurityRequirements,
+ operationName: "PutServiceTokenAsync");
+
+ using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Braintrust.PathBuilder(
+ path: "/v1/service_token",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Put,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PreparePutServiceTokenRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PutServiceToken",
+ methodName: "PutServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "PUT",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Braintrust.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PutServiceToken",
+ methodName: "PutServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "PUT",
+ 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::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Braintrust.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PutServiceToken",
+ methodName: "PutServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "PUT",
+ 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::Braintrust.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);
+ ProcessPutServiceTokenResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PutServiceToken",
+ methodName: "PutServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "PUT",
+ 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::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "PutServiceToken",
+ methodName: "PutServiceTokenAsync",
+ pathTemplate: "\"/v1/service_token\"",
+ httpMethod: "PUT",
+ 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);
+ }
+ // The request was unacceptable, often due to missing a required parameter
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ string? __value_400 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ responseBody: __content_400,
+ responseObject: __value_400,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // No valid API key provided
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ string? __value_401 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ responseBody: __content_401,
+ responseObject: __value_401,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // The API key doesn’t have permissions to perform the request
+ if ((int)__response.StatusCode == 403)
+ {
+ string? __content_403 = null;
+ global::System.Exception? __exception_403 = null;
+ string? __value_403 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_403 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_403,
+ responseBody: __content_403,
+ responseObject: __value_403,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
+ if ((int)__response.StatusCode == 429)
+ {
+ string? __content_429 = null;
+ global::System.Exception? __exception_429 = null;
+ string? __value_429 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_429 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_429,
+ responseBody: __content_429,
+ responseObject: __value_429,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ // Something went wrong on Braintrust's end. (These are rare.)
+ if ((int)__response.StatusCode == 500)
+ {
+ string? __content_500 = null;
+ global::System.Exception? __exception_500 = null;
+ string? __value_500 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext);
+ }
+ else
+ {
+ __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_500 = __ex;
+ }
+
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_500,
+ responseBody: __content_500,
+ responseObject: __value_500,
+ 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);
+ ProcessPutServiceTokenResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Braintrust.CreateServiceTokenOutput.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Braintrust.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Braintrust.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Braintrust.CreateServiceTokenOutput.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Braintrust.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Braintrust.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw global::Braintrust.ApiException.Create(
+ statusCode: __response.StatusCode,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ responseBody: __content,
+ responseHeaders: global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value));
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///