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 @@ -129,5 +129,10 @@ public partial interface IOpenRouterClient : global::System.IDisposable
/// </summary>
public SubpackageVideoGenerationClient SubpackageVideoGeneration { get; }

/// <summary>
///
/// </summary>
public SubpackageWorkspacesClient SubpackageWorkspaces { get; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageWorkspacesClient
{
/// <summary>
/// Bulk add members to a workspace<br/>
/// Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [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.BulkAddWorkspaceMembersResponse> BulkAddWorkspaceMembersAsync(
string id,

global::OpenRouter.BulkAddWorkspaceMembersRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Bulk add members to a workspace<br/>
/// Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="userIds">
/// List of user IDs to add to the workspace. Members are assigned the same role they hold in the organization.
/// </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.BulkAddWorkspaceMembersResponse> BulkAddWorkspaceMembersAsync(
string id,
global::System.Collections.Generic.IList<string> userIds,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageWorkspacesClient
{
/// <summary>
/// Bulk remove members from a workspace<br/>
/// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [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.BulkRemoveWorkspaceMembersResponse> BulkRemoveWorkspaceMembersAsync(
string id,

global::OpenRouter.BulkRemoveWorkspaceMembersRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Bulk remove members from a workspace<br/>
/// Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="userIds">
/// List of user IDs to remove from the 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.BulkRemoveWorkspaceMembersResponse> BulkRemoveWorkspaceMembersAsync(
string id,
global::System.Collections.Generic.IList<string> userIds,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageWorkspacesClient
{
/// <summary>
/// Create a workspace<br/>
/// Create a new workspace for the authenticated user. [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.CreateWorkspaceResponse> CreateWorkspaceAsync(

global::OpenRouter.CreateWorkspaceRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a workspace<br/>
/// Create a new workspace for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="defaultImageModel">
/// Default image model for this workspace
/// </param>
/// <param name="defaultProviderSort">
/// Default provider sort preference (price, throughput, latency, exacto)
/// </param>
/// <param name="defaultTextModel">
/// Default text model for this workspace
/// </param>
/// <param name="description">
/// Description of the workspace
/// </param>
/// <param name="isDataDiscountLoggingEnabled">
/// Whether data discount logging is enabled
/// </param>
/// <param name="isObservabilityBroadcastEnabled">
/// Whether broadcast is enabled
/// </param>
/// <param name="isObservabilityIoLoggingEnabled">
/// Whether private logging is enabled
/// </param>
/// <param name="name">
/// Name for the new workspace
/// </param>
/// <param name="slug">
/// URL-friendly slug (lowercase alphanumeric and hyphens only)
/// </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.CreateWorkspaceResponse> CreateWorkspaceAsync(
string name,
string slug,
string? defaultImageModel = default,
string? defaultProviderSort = default,
string? defaultTextModel = default,
string? description = default,
bool? isDataDiscountLoggingEnabled = default,
bool? isObservabilityBroadcastEnabled = default,
bool? isObservabilityIoLoggingEnabled = 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,20 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageWorkspacesClient
{
/// <summary>
/// Delete a workspace<br/>
/// Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be 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.DeleteWorkspaceResponse> DeleteWorkspaceAsync(
string 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,20 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageWorkspacesClient
{
/// <summary>
/// Get a workspace<br/>
/// Get a single workspace by ID or slug. [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.GetWorkspaceResponse> GetWorkspaceAsync(
string 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,22 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageWorkspacesClient
{
/// <summary>
/// List workspaces<br/>
/// List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="offset"></param>
/// <param name="limit"></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.ListWorkspacesResponse> ListWorkspacesAsync(
int? offset = default,
int? limit = 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,71 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageWorkspacesClient
{
/// <summary>
/// Update a workspace<br/>
/// Update an existing workspace by ID or slug. [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.UpdateWorkspaceResponse> UpdateWorkspaceAsync(
string id,

global::OpenRouter.UpdateWorkspaceRequest request,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Update a workspace<br/>
/// Update an existing workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="id"></param>
/// <param name="defaultImageModel">
/// Default image model for this workspace
/// </param>
/// <param name="defaultProviderSort">
/// Default provider sort preference (price, throughput, latency, exacto)
/// </param>
/// <param name="defaultTextModel">
/// Default text model for this workspace
/// </param>
/// <param name="description">
/// New description for the workspace
/// </param>
/// <param name="isDataDiscountLoggingEnabled">
/// Whether data discount logging is enabled
/// </param>
/// <param name="isObservabilityBroadcastEnabled">
/// Whether broadcast is enabled
/// </param>
/// <param name="isObservabilityIoLoggingEnabled">
/// Whether private logging is enabled
/// </param>
/// <param name="name">
/// New name for the workspace
/// </param>
/// <param name="slug">
/// New URL-friendly slug
/// </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.UpdateWorkspaceResponse> UpdateWorkspaceAsync(
string id,
string? defaultImageModel = default,
string? defaultProviderSort = default,
string? defaultTextModel = default,
string? description = default,
bool? isDataDiscountLoggingEnabled = default,
bool? isObservabilityBroadcastEnabled = default,
bool? isObservabilityIoLoggingEnabled = default,
string? name = default,
string? slug = 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,48 @@

#nullable enable

namespace OpenRouter
{
/// <summary>
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public partial interface ISubpackageWorkspacesClient : global::System.IDisposable
{
/// <summary>
/// The HttpClient instance.
/// </summary>
public global::System.Net.Http.HttpClient HttpClient { get; }

/// <summary>
/// The base URL for the API.
/// </summary>
public System.Uri? BaseUri { get; }

/// <summary>
/// The authorizations to use for the requests.
/// </summary>
public global::System.Collections.Generic.List<global::OpenRouter.EndPointAuthorization> Authorizations { get; }

/// <summary>
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
/// When false, successful responses are deserialized directly from the response stream for better performance.
/// Error responses are always read as strings regardless of this setting,
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }
/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::OpenRouter.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }


}
}
Loading