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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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

namespace OpenRouter
{
public partial interface ICreditsClient
{
/// <summary>
/// Agent skill for buying OpenRouter credits
/// </summary>
/// <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<string> ListCreditsPurchasesSKILLMdAsync(
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Agent skill for buying OpenRouter credits
/// </summary>
/// <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<string>> ListCreditsPurchasesSKILLMdAsResponseAsync(
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#nullable enable

namespace OpenRouter
{
public partial interface ICreditsClient
{
/// <summary>
/// Agent setup guide for buying credits with a machine payment
/// </summary>
/// <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<string> ListCreditsPurchasesSetupAsync(
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Agent setup guide for buying credits with a machine payment
/// </summary>
/// <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<string>> ListCreditsPurchasesSetupAsResponseAsync(
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
Expand All @@ -38,7 +38,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
Expand All @@ -61,7 +61,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="cacheControl">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
Expand All @@ -38,7 +38,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
Expand All @@ -61,7 +61,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="cacheControl">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
Expand All @@ -38,7 +38,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
Expand All @@ -61,7 +61,7 @@ public partial interface IPresetsClient
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="accessPrograms">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#nullable enable

namespace OpenRouter
{
public partial interface IPresetsClient
{
/// <summary>
/// Delete a preset<br/>
/// Archives a preset: it no longer resolves for inference and is hidden from get and list. The preset and its versions are kept, so the slug stays taken; restore it with `POST /presets/{slug}/restore`. Deleting an already-archived preset succeeds again. A disabled preset returns 409. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected. `workspace_id` may be sent as a query parameter or a JSON body field.
/// </summary>
/// <param name="slug">
/// URL-safe slug identifying the preset.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </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.GetPresetResponse> DeleteAsync(
string slug,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete a preset<br/>
/// Archives a preset: it no longer resolves for inference and is hidden from get and list. The preset and its versions are kept, so the slug stays taken; restore it with `POST /presets/{slug}/restore`. Deleting an already-archived preset succeeds again. A disabled preset returns 409. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected. `workspace_id` may be sent as a query parameter or a JSON body field.
/// </summary>
/// <param name="slug">
/// URL-safe slug identifying the preset.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </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.GetPresetResponse>> DeleteAsResponseAsync(
string slug,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
10 changes: 10 additions & 0 deletions src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.Get.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ public partial interface IPresetsClient
/// URL-safe slug identifying the preset.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </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.GetPresetResponse> GetAsync(
string slug,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -27,11 +32,16 @@ public partial interface IPresetsClient
/// URL-safe slug identifying the preset.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </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.GetPresetResponse>> GetAsResponseAsync(
string slug,
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 @@ -16,12 +16,17 @@ public partial interface IPresetsClient
/// Version number of the preset.<br/>
/// Example: 1
/// </param>
/// <param name="workspaceId">
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </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.GetPresetVersionResponse> GetVersionAsync(
string slug,
string version,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -36,12 +41,17 @@ public partial interface IPresetsClient
/// Version number of the preset.<br/>
/// Example: 1
/// </param>
/// <param name="workspaceId">
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </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.GetPresetVersionResponse>> GetVersionAsResponseAsync(
string slug,
string version,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
10 changes: 10 additions & 0 deletions src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.List.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@ public partial interface IPresetsClient
/// Default Value: 50<br/>
/// Example: 50
/// </param>
/// <param name="workspaceId">
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </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.ListPresetsResponse> ListAsync(
int? offset = default,
int? limit = default,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -40,12 +45,17 @@ public partial interface IPresetsClient
/// Default Value: 50<br/>
/// Example: 50
/// </param>
/// <param name="workspaceId">
/// Workspace to act in. Also accepted as a `workspace_id` field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </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.ListPresetsResponse>> ListAsResponseAsync(
int? offset = default,
int? limit = default,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Loading
Loading