Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,26 @@ public partial interface ISubpackageByokClient
{
/// <summary>
/// Get a BYOK provider credential<br/>
/// Get a single bring-your-own-key (BYOK) provider credential by its `id`. Defaults to the authenticated entity's default workspace; use the `workspace_id` query parameter to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// Get a single bring-your-own-key (BYOK) provider credential by its `id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="workspaceId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::OpenRouter.ApiException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.GetBYOKKeyResponse> GetByokKeyAsync(
global::System.Guid id,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get a BYOK provider credential<br/>
/// Get a single bring-your-own-key (BYOK) provider credential by its `id`. Defaults to the authenticated entity's default workspace; use the `workspace_id` query parameter to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// Get a single bring-your-own-key (BYOK) provider credential by its `id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="workspaceId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::OpenRouter.ApiException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.AutoSDKHttpResponse<global::OpenRouter.GetBYOKKeyResponse>> GetByokKeyAsResponseAsync(
global::System.Guid id,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,26 @@ public partial interface ISubpackageObservabilityClient
{
/// <summary>
/// Get an observability destination<br/>
/// Fetch a single observability destination by its UUID. Defaults to the authenticated entity's default workspace — use `workspace_id` to override. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="workspaceId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::OpenRouter.ApiException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.GetObservabilityDestinationResponse> GetObservabilityDestinationAsync(
global::System.Guid id,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get an observability destination<br/>
/// Fetch a single observability destination by its UUID. Defaults to the authenticated entity's default workspace — use `workspace_id` to override. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="workspaceId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::OpenRouter.ApiException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.AutoSDKHttpResponse<global::OpenRouter.GetObservabilityDestinationResponse>> GetObservabilityDestinationAsResponseAsync(
global::System.Guid id,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace OpenRouter.JsonConverters
{
/// <inheritdoc />
public sealed class ByokKeyProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenRouter.ByokKeyProvider>
public sealed class BYOKProviderSlugJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenRouter.BYOKProviderSlug>
{
/// <inheritdoc />
public override global::OpenRouter.ByokKeyProvider Read(
public override global::OpenRouter.BYOKProviderSlug Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ByokKeyProviderJsonConverter : global::System.Text.Json.Seri
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::OpenRouter.ByokKeyProviderExtensions.ToEnum(stringValue) ?? default;
return global::OpenRouter.BYOKProviderSlugExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::OpenRouter.ByokKeyProvider)numValue;
return (global::OpenRouter.BYOKProviderSlug)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::OpenRouter.ByokKeyProvider);
return default(global::OpenRouter.BYOKProviderSlug);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,12 +42,12 @@ public sealed class ByokKeyProviderJsonConverter : global::System.Text.Json.Seri
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::OpenRouter.ByokKeyProvider value,
global::OpenRouter.BYOKProviderSlug value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::OpenRouter.ByokKeyProviderExtensions.ToValueString(value));
writer.WriteStringValue(global::OpenRouter.BYOKProviderSlugExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace OpenRouter.JsonConverters
{
/// <inheritdoc />
public sealed class ByokKeyProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenRouter.ByokKeyProvider?>
public sealed class BYOKProviderSlugNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::OpenRouter.BYOKProviderSlug?>
{
/// <inheritdoc />
public override global::OpenRouter.ByokKeyProvider? Read(
public override global::OpenRouter.BYOKProviderSlug? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ByokKeyProviderNullableJsonConverter : global::System.Text.J
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::OpenRouter.ByokKeyProviderExtensions.ToEnum(stringValue);
return global::OpenRouter.BYOKProviderSlugExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::OpenRouter.ByokKeyProvider)numValue;
return (global::OpenRouter.BYOKProviderSlug)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::OpenRouter.ByokKeyProvider?);
return default(global::OpenRouter.BYOKProviderSlug?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class ByokKeyProviderNullableJsonConverter : global::System.Text.J
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::OpenRouter.ByokKeyProvider? value,
global::OpenRouter.BYOKProviderSlug? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -53,7 +53,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::OpenRouter.ByokKeyProviderExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::OpenRouter.BYOKProviderSlugExtensions.ToValueString(value.Value));
}
}
}
Expand Down

This file was deleted.

This file was deleted.

Loading