Skip to content

Commit 018db1f

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#10)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent f174be5 commit 018db1f

25 files changed

Lines changed: 2246 additions & 624 deletions

src/libs/V0/Generated/V0.AnyOf.3.g.cs

Lines changed: 0 additions & 272 deletions
This file was deleted.

src/libs/V0/Generated/V0.IMcpServersClient.McpServersCreate.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial interface IMcpServersClient
66
{
77
/// <summary>
88
/// Create MCP Server<br/>
9-
/// Creates a new MCP server configuration for the authenticated user.
9+
/// Creates a new MCP server configuration for the authenticated user. Supports OAuth, bearer token, custom headers, and unauthenticated servers.
1010
/// </summary>
1111
/// <param name="request"></param>
1212
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
@@ -19,7 +19,7 @@ public partial interface IMcpServersClient
1919
global::System.Threading.CancellationToken cancellationToken = default);
2020
/// <summary>
2121
/// Create MCP Server<br/>
22-
/// Creates a new MCP server configuration for the authenticated user.
22+
/// Creates a new MCP server configuration for the authenticated user. Supports OAuth, bearer token, custom headers, and unauthenticated servers.
2323
/// </summary>
2424
/// <param name="request"></param>
2525
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
@@ -32,7 +32,7 @@ public partial interface IMcpServersClient
3232
global::System.Threading.CancellationToken cancellationToken = default);
3333
/// <summary>
3434
/// Create MCP Server<br/>
35-
/// Creates a new MCP server configuration for the authenticated user.
35+
/// Creates a new MCP server configuration for the authenticated user. Supports OAuth, bearer token, custom headers, and unauthenticated servers.
3636
/// </summary>
3737
/// <param name="name">
3838
/// The display name of the MCP server.
@@ -63,7 +63,7 @@ public partial interface IMcpServersClient
6363
string url,
6464
string? description = default,
6565
bool? enabled = default,
66-
global::V0.AnyOf<global::V0.McpServersCreateRequestAuthVariant1, global::V0.McpServersCreateRequestAuthVariant2, global::V0.McpServersCreateRequestAuthVariant3>? auth = default,
66+
global::V0.AnyOf<global::V0.McpServersCreateRequestAuthVariant1, global::V0.McpServersCreateRequestAuthVariant2, global::V0.McpServersCreateRequestAuthVariant3, global::V0.McpServersCreateRequestAuthVariant4>? auth = default,
6767
global::V0.McpServersCreateRequestScope? scope = default,
6868
global::V0.AutoSDKRequestOptions? requestOptions = default,
6969
global::System.Threading.CancellationToken cancellationToken = default);
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#nullable enable
2+
3+
namespace V0
4+
{
5+
public partial interface IMcpServersClient
6+
{
7+
/// <summary>
8+
/// Create MCP Server OAuth Authorization URL<br/>
9+
/// Creates an OAuth authorization URL for an OAuth MCP server. Redirect the user to the returned URL, and the Platform API OAuth callback will store the resulting tokens before redirecting to your returnUrl.
10+
/// </summary>
11+
/// <param name="mcpServerId"></param>
12+
/// <param name="request"></param>
13+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
14+
/// <param name="cancellationToken">The token to cancel the operation with</param>
15+
/// <exception cref="global::V0.ApiException"></exception>
16+
global::System.Threading.Tasks.Task<global::V0.McpServersCreateOAuthAuthorizationUrlResponse> McpServersCreateOAuthAuthorizationUrlAsync(
17+
string mcpServerId,
18+
19+
global::V0.McpServersCreateOAuthAuthorizationUrlRequest request,
20+
global::V0.AutoSDKRequestOptions? requestOptions = default,
21+
global::System.Threading.CancellationToken cancellationToken = default);
22+
/// <summary>
23+
/// Create MCP Server OAuth Authorization URL<br/>
24+
/// Creates an OAuth authorization URL for an OAuth MCP server. Redirect the user to the returned URL, and the Platform API OAuth callback will store the resulting tokens before redirecting to your returnUrl.
25+
/// </summary>
26+
/// <param name="mcpServerId"></param>
27+
/// <param name="request"></param>
28+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
29+
/// <param name="cancellationToken">The token to cancel the operation with</param>
30+
/// <exception cref="global::V0.ApiException"></exception>
31+
global::System.Threading.Tasks.Task<global::V0.AutoSDKHttpResponse<global::V0.McpServersCreateOAuthAuthorizationUrlResponse>> McpServersCreateOAuthAuthorizationUrlAsResponseAsync(
32+
string mcpServerId,
33+
34+
global::V0.McpServersCreateOAuthAuthorizationUrlRequest request,
35+
global::V0.AutoSDKRequestOptions? requestOptions = default,
36+
global::System.Threading.CancellationToken cancellationToken = default);
37+
/// <summary>
38+
/// Create MCP Server OAuth Authorization URL<br/>
39+
/// Creates an OAuth authorization URL for an OAuth MCP server. Redirect the user to the returned URL, and the Platform API OAuth callback will store the resulting tokens before redirecting to your returnUrl.
40+
/// </summary>
41+
/// <param name="mcpServerId"></param>
42+
/// <param name="returnUrl">
43+
/// An absolute URL in your application where v0 redirects after OAuth completes. HTTPS is required in production.
44+
/// </param>
45+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
46+
/// <param name="cancellationToken">The token to cancel the operation with</param>
47+
/// <exception cref="global::System.InvalidOperationException"></exception>
48+
global::System.Threading.Tasks.Task<global::V0.McpServersCreateOAuthAuthorizationUrlResponse> McpServersCreateOAuthAuthorizationUrlAsync(
49+
string mcpServerId,
50+
string returnUrl,
51+
global::V0.AutoSDKRequestOptions? requestOptions = default,
52+
global::System.Threading.CancellationToken cancellationToken = default);
53+
}
54+
}

src/libs/V0/Generated/V0.IMcpServersClient.McpServersUpdate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public partial interface IMcpServersClient
6666
string? url = default,
6767
string? description = default,
6868
bool? enabled = default,
69-
global::V0.AnyOf<global::V0.McpServersUpdateRequestAuthVariant1, global::V0.McpServersUpdateRequestAuthVariant2, global::V0.McpServersUpdateRequestAuthVariant3>? auth = default,
69+
global::V0.AnyOf<global::V0.McpServersUpdateRequestAuthVariant1, global::V0.McpServersUpdateRequestAuthVariant2, global::V0.McpServersUpdateRequestAuthVariant3, global::V0.McpServersUpdateRequestAuthVariant4>? auth = default,
7070
global::V0.McpServersUpdateRequestScope? scope = default,
7171
global::V0.AutoSDKRequestOptions? requestOptions = default,
7272
global::System.Threading.CancellationToken cancellationToken = default);

0 commit comments

Comments
 (0)