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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageByokClient
{
/// <summary>
/// Create a BYOK provider credential<br/>
/// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="request"></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.CreateBYOKKeyResponse> CreateByokKeyAsync(

global::OpenRouter.CreateBYOKKeyRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a BYOK provider credential<br/>
/// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="request"></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.CreateBYOKKeyResponse>> CreateByokKeyAsResponseAsync(

global::OpenRouter.CreateBYOKKeyRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a BYOK provider credential<br/>
/// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="allowedModels">
/// Optional allowlist of model slugs this credential may be used for. `null` means no restriction.
/// </param>
/// <param name="allowedUserIds">
/// Optional allowlist of user IDs that may use this credential. `null` means no restriction.
/// </param>
/// <param name="disabled">
/// Whether this credential should be created in a disabled state.
/// </param>
/// <param name="isFallback">
/// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried.
/// </param>
/// <param name="key">
/// The raw provider API key or credential. This value is encrypted at rest and never returned in API responses.
/// </param>
/// <param name="name">
/// Optional human-readable name for the credential.
/// </param>
/// <param name="provider">
/// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`).
/// </param>
/// <param name="workspaceId">
/// Optional workspace ID. Defaults to the authenticated entity's default workspace.
/// </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::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.CreateBYOKKeyResponse> CreateByokKeyAsync(
string key,
global::OpenRouter.BYOKProviderSlug provider,
global::System.Collections.Generic.IList<string>? allowedModels = default,
global::System.Collections.Generic.IList<string>? allowedUserIds = default,
bool? disabled = default,
bool? isFallback = default,
string? name = default,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageByokClient
{
/// <summary>
/// Delete a BYOK provider credential<br/>
/// Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></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.DeleteBYOKKeyResponse> DeleteByokKeyAsync(
global::System.Guid id,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete a BYOK provider credential<br/>
/// Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></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.DeleteBYOKKeyResponse>> DeleteByokKeyAsResponseAsync(
global::System.Guid id,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageByokClient
{
/// <summary>
/// Update a BYOK provider credential<br/>
/// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="request"></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.UpdateBYOKKeyResponse> UpdateByokKeyAsync(
global::System.Guid id,

global::OpenRouter.UpdateBYOKKeyRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Update a BYOK provider credential<br/>
/// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="request"></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.UpdateBYOKKeyResponse>> UpdateByokKeyAsResponseAsync(
global::System.Guid id,

global::OpenRouter.UpdateBYOKKeyRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Update a BYOK provider credential<br/>
/// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="allowedModels">
/// Optional allowlist of model slugs this credential may be used for. `null` means no restriction.
/// </param>
/// <param name="allowedUserIds">
/// Optional allowlist of user IDs that may use this credential. `null` means no restriction.
/// </param>
/// <param name="disabled">
/// Whether this credential is disabled.
/// </param>
/// <param name="isFallback">
/// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried.
/// </param>
/// <param name="key">
/// A new raw provider API key to rotate the credential in-place. The previous key material is overwritten and the masked label is regenerated. Encrypted at rest and never returned in API responses.
/// </param>
/// <param name="name">
/// Optional human-readable name for the credential.
/// </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::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.UpdateBYOKKeyResponse> UpdateByokKeyAsync(
global::System.Guid id,
global::System.Collections.Generic.IList<string>? allowedModels = default,
global::System.Collections.Generic.IList<string>? allowedUserIds = default,
bool? disabled = default,
bool? isFallback = default,
string? key = default,
string? name = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageObservabilityClient
{
/// <summary>
/// Create an observability destination<br/>
/// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="request"></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.CreateObservabilityDestinationResponse> CreateObservabilityDestinationAsync(

global::OpenRouter.CreateObservabilityDestinationRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create an observability destination<br/>
/// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="request"></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.CreateObservabilityDestinationResponse>> CreateObservabilityDestinationAsResponseAsync(

global::OpenRouter.CreateObservabilityDestinationRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create an observability destination<br/>
/// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="apiKeyHashes">
/// Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided.
/// </param>
/// <param name="config">
/// Provider-specific configuration. The shape depends on `type` and is validated server-side.
/// </param>
/// <param name="enabled">
/// Whether this destination should be enabled immediately.<br/>
/// Default Value: true
/// </param>
/// <param name="filterRules">
/// Optional structured filter rules controlling which events are forwarded.
/// </param>
/// <param name="name">
/// Human-readable name for the destination.
/// </param>
/// <param name="privacyMode">
/// When true, request/response bodies are not forwarded — only metadata.<br/>
/// Default Value: false
/// </param>
/// <param name="samplingRate">
/// Sampling rate between 0 and 1 (1 = 100%).
/// </param>
/// <param name="type">
/// The destination type. Only stable destination types are accepted.
/// </param>
/// <param name="workspaceId">
/// Optional workspace ID. Defaults to the authenticated entity's default workspace.
/// </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::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.CreateObservabilityDestinationResponse> CreateObservabilityDestinationAsync(
object config,
string name,
global::OpenRouter.CreateObservabilityDestinationRequestType type,
global::System.Collections.Generic.IList<string>? apiKeyHashes = default,
bool? enabled = default,
global::OpenRouter.ObservabilityFilterRulesConfig? filterRules = default,
bool? privacyMode = default,
double? samplingRate = default,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageObservabilityClient
{
/// <summary>
/// Delete an observability destination<br/>
/// Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></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.DeleteObservabilityDestinationResponse> DeleteObservabilityDestinationAsync(
global::System.Guid id,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete an observability destination<br/>
/// Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></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.DeleteObservabilityDestinationResponse>> DeleteObservabilityDestinationAsResponseAsync(
global::System.Guid id,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading