From 4f5bce788f1c437b94ff5a242cc253df8b1fbd4d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 22 May 2026 21:59:21 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs | 6 ++++-- .../Braintrust.IApiKeysClient.GetApiKey.g.cs | 6 ++++-- ...IOrganizationsClient.PatchOrganizationMembers.g.cs | 9 ++++++--- ...aintrust.IServiceTokensClient.GetServiceToken.g.cs | 6 ++++-- ...st.Models.PatchOrganizationMembersInviteUsers.g.cs | 4 ++-- ...hOrganizationMembersInviteUsersServiceAccount.g.cs | 6 ++++-- ....OrganizationsClient.PatchOrganizationMembers.g.cs | 9 ++++++--- ...raintrust.ServiceTokensClient.GetServiceToken.g.cs | 6 ++++-- src/libs/Braintrust/openapi.yaml | 11 ++++++----- 9 files changed, 40 insertions(+), 23 deletions(-) diff --git a/src/libs/Braintrust/Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs b/src/libs/Braintrust/Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs index 6a3824b..1a8ff76 100644 --- a/src/libs/Braintrust/Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.ApiKeysClient.GetApiKey.g.cs @@ -62,7 +62,8 @@ partial void ProcessGetApiKeyResponseContent( /// /// List api_keys
- /// List out all api_keys. The api_keys are sorted by creation date, with the most recently-created api_keys coming first + /// 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. ///
/// /// Limit the number of objects to return @@ -112,7 +113,8 @@ partial void ProcessGetApiKeyResponseContent( } /// /// List api_keys
- /// List out all api_keys. The api_keys are sorted by creation date, with the most recently-created api_keys coming first + /// 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. ///
/// /// Limit the number of objects to return diff --git a/src/libs/Braintrust/Generated/Braintrust.IApiKeysClient.GetApiKey.g.cs b/src/libs/Braintrust/Generated/Braintrust.IApiKeysClient.GetApiKey.g.cs index 2836e1a..b3afe10 100644 --- a/src/libs/Braintrust/Generated/Braintrust.IApiKeysClient.GetApiKey.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.IApiKeysClient.GetApiKey.g.cs @@ -6,7 +6,8 @@ public partial interface IApiKeysClient { /// /// List api_keys
- /// List out all api_keys. The api_keys are sorted by creation date, with the most recently-created api_keys coming first + /// 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. ///
/// /// Limit the number of objects to return @@ -42,7 +43,8 @@ public partial interface IApiKeysClient global::System.Threading.CancellationToken cancellationToken = default); /// /// List api_keys
- /// List out all api_keys. The api_keys are sorted by creation date, with the most recently-created api_keys coming first + /// 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. ///
/// /// Limit the number of objects to return diff --git a/src/libs/Braintrust/Generated/Braintrust.IOrganizationsClient.PatchOrganizationMembers.g.cs b/src/libs/Braintrust/Generated/Braintrust.IOrganizationsClient.PatchOrganizationMembers.g.cs index 46f66da..a1df4af 100644 --- a/src/libs/Braintrust/Generated/Braintrust.IOrganizationsClient.PatchOrganizationMembers.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.IOrganizationsClient.PatchOrganizationMembers.g.cs @@ -6,7 +6,8 @@ public partial interface IOrganizationsClient { /// /// Modify organization membership
- /// 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). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +20,8 @@ public partial interface IOrganizationsClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Modify organization membership
- /// 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). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +34,8 @@ public partial interface IOrganizationsClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Modify organization membership
- /// 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). ///
/// /// 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 0556fa9..2f94d35 100644 --- a/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.GetServiceToken.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.IServiceTokensClient.GetServiceToken.g.cs @@ -6,7 +6,8 @@ public partial interface IServiceTokensClient { /// /// List service_tokens
- /// List out all service_tokens. The service_tokens are sorted by creation date, with the most recently-created service_tokens coming first + /// 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. ///
/// /// Limit the number of objects to return @@ -42,7 +43,8 @@ public partial interface IServiceTokensClient global::System.Threading.CancellationToken cancellationToken = default); /// /// List service_tokens
- /// List out all service_tokens. The service_tokens are sorted by creation date, with the most recently-created service_tokens coming first + /// 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. ///
/// /// Limit the number of objects to return diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsers.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchOrganizationMembersInviteUsers.g.cs index 7635138..e2997a0 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 + /// 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. /// [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 + /// 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. /// /// /// 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 ecaf2a8..1980123 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("token_name")] public string? TokenName { get; set; } @@ -31,7 +31,9 @@ public sealed partial class PatchOrganizationMembersInviteUsersServiceAccount /// Initializes a new instance of the class. /// /// - /// + /// + /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/Braintrust/Generated/Braintrust.OrganizationsClient.PatchOrganizationMembers.g.cs b/src/libs/Braintrust/Generated/Braintrust.OrganizationsClient.PatchOrganizationMembers.g.cs index 6170832..7cbf91e 100644 --- a/src/libs/Braintrust/Generated/Braintrust.OrganizationsClient.PatchOrganizationMembers.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.OrganizationsClient.PatchOrganizationMembers.g.cs @@ -52,7 +52,8 @@ partial void ProcessPatchOrganizationMembersResponseContent( /// /// Modify organization membership
- /// 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). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -75,7 +76,8 @@ partial void ProcessPatchOrganizationMembersResponseContent( } /// /// Modify organization membership
- /// 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). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -638,7 +640,8 @@ partial void ProcessPatchOrganizationMembersResponseContent( } /// /// Modify organization membership
- /// 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). ///
/// /// 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 6b76a9d..bf365b8 100644 --- a/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.GetServiceToken.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.ServiceTokensClient.GetServiceToken.g.cs @@ -62,7 +62,8 @@ partial void ProcessGetServiceTokenResponseContent( /// /// List service_tokens
- /// List out all service_tokens. The service_tokens are sorted by creation date, with the most recently-created service_tokens coming first + /// 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. ///
/// /// Limit the number of objects to return @@ -112,7 +113,8 @@ partial void ProcessGetServiceTokenResponseContent( } /// /// List service_tokens
- /// List out all service_tokens. The service_tokens are sorted by creation date, with the most recently-created service_tokens coming first + /// 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. ///
/// /// Limit the number of objects to return diff --git a/src/libs/Braintrust/openapi.yaml b/src/libs/Braintrust/openapi.yaml index ca5aa26..2894969 100644 --- a/src/libs/Braintrust/openapi.yaml +++ b/src/libs/Braintrust/openapi.yaml @@ -9618,14 +9618,15 @@ }, "token_name": { "type": "string", - "nullable": true + "nullable": true, + "description": "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." } }, "required": [ "name" ] }, - "description": "Service accounts to create" + "description": "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." }, "send_invite_emails": { "type": "boolean", @@ -26284,7 +26285,7 @@ "tags": [ "Organizations" ], - "description": "Modify organization membership", + "description": "Modify organization membership.\n\nOrganization 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).", "summary": "Modify organization membership", "security": [ { @@ -26462,7 +26463,7 @@ "tags": [ "ApiKeys" ], - "description": "List out all api_keys. The api_keys are sorted by creation date, with the most recently-created api_keys coming first", + "description": "List out all API keys. They are sorted by creation date, with the most recently-created keys coming first.\n\nTo create new API keys, go to [**Settings > API keys**](https://www.braintrust.dev/app/~/configuration/org/api-keys) in the Braintrust UI.", "summary": "List api_keys", "security": [ { @@ -27071,7 +27072,7 @@ "tags": [ "ServiceTokens" ], - "description": "List out all service_tokens. The service_tokens are sorted by creation date, with the most recently-created service_tokens coming first", + "description": "List out all service tokens. They are sorted by creation date, with the most recently-created tokens coming first.\n\nTo create service tokens, organization owners can go to [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) in the Braintrust UI.", "summary": "List service_tokens", "security": [ {