Skip to content

Commit 0f57ef8

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#243)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent b4e6f71 commit 0f57ef8

59 files changed

Lines changed: 4463 additions & 205 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#nullable enable
2+
3+
namespace Vercel
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Create a trace session token for a deployment<br/>
9+
/// Mints a short-lived HS256 JWT scoped to a deployment hostname. The Vercel CLI presents this JWT to the Vercel proxy on requests it wants traced.
10+
/// </summary>
11+
/// <param name="teamId">
12+
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
13+
/// </param>
14+
/// <param name="slug">
15+
/// Example: my-team-url-slug
16+
/// </param>
17+
/// <param name="request"></param>
18+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
19+
/// <param name="cancellationToken">The token to cancel the operation with</param>
20+
/// <exception cref="global::Vercel.ApiException"></exception>
21+
global::System.Threading.Tasks.Task<global::Vercel.CreateTraceSessionResponse> CreateTraceSessionAsync(
22+
23+
global::Vercel.CreateTraceSessionRequest request,
24+
string? teamId = default,
25+
string? slug = default,
26+
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
27+
global::System.Threading.CancellationToken cancellationToken = default);
28+
/// <summary>
29+
/// Create a trace session token for a deployment<br/>
30+
/// Mints a short-lived HS256 JWT scoped to a deployment hostname. The Vercel CLI presents this JWT to the Vercel proxy on requests it wants traced.
31+
/// </summary>
32+
/// <param name="teamId">
33+
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
34+
/// </param>
35+
/// <param name="slug">
36+
/// Example: my-team-url-slug
37+
/// </param>
38+
/// <param name="request"></param>
39+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
40+
/// <param name="cancellationToken">The token to cancel the operation with</param>
41+
/// <exception cref="global::Vercel.ApiException"></exception>
42+
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.CreateTraceSessionResponse>> CreateTraceSessionAsResponseAsync(
43+
44+
global::Vercel.CreateTraceSessionRequest request,
45+
string? teamId = default,
46+
string? slug = default,
47+
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
48+
global::System.Threading.CancellationToken cancellationToken = default);
49+
/// <summary>
50+
/// Create a trace session token for a deployment<br/>
51+
/// Mints a short-lived HS256 JWT scoped to a deployment hostname. The Vercel CLI presents this JWT to the Vercel proxy on requests it wants traced.
52+
/// </summary>
53+
/// <param name="teamId">
54+
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
55+
/// </param>
56+
/// <param name="slug">
57+
/// Example: my-team-url-slug
58+
/// </param>
59+
/// <param name="projectId">
60+
/// The project ID the deployment belongs to.
61+
/// </param>
62+
/// <param name="hostname">
63+
/// The deployment hostname to scope the trace session to.
64+
/// </param>
65+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
66+
/// <param name="cancellationToken">The token to cancel the operation with</param>
67+
/// <exception cref="global::System.InvalidOperationException"></exception>
68+
global::System.Threading.Tasks.Task<global::Vercel.CreateTraceSessionResponse> CreateTraceSessionAsync(
69+
string projectId,
70+
string hostname,
71+
string? teamId = default,
72+
string? slug = default,
73+
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
74+
global::System.Threading.CancellationToken cancellationToken = default);
75+
}
76+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#nullable enable
2+
3+
namespace Vercel
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Get a project trace by request ID<br/>
9+
/// Returns the OTEL trace for a given Vercel CLI request.
10+
/// </summary>
11+
/// <param name="projectId">
12+
/// The project ID<br/>
13+
/// Example: prj_123
14+
/// </param>
15+
/// <param name="requestId">
16+
/// The Vercel CLI request ID associated with the trace<br/>
17+
/// Example: cli-req-abc
18+
/// </param>
19+
/// <param name="teamId">
20+
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
21+
/// </param>
22+
/// <param name="slug">
23+
/// Example: my-team-url-slug
24+
/// </param>
25+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
26+
/// <param name="cancellationToken">The token to cancel the operation with</param>
27+
/// <exception cref="global::Vercel.ApiException"></exception>
28+
global::System.Threading.Tasks.Task<global::Vercel.GetProjectTraceResponse> GetProjectTraceAsync(
29+
string projectId,
30+
string requestId,
31+
string? teamId = default,
32+
string? slug = default,
33+
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
34+
global::System.Threading.CancellationToken cancellationToken = default);
35+
/// <summary>
36+
/// Get a project trace by request ID<br/>
37+
/// Returns the OTEL trace for a given Vercel CLI request.
38+
/// </summary>
39+
/// <param name="projectId">
40+
/// The project ID<br/>
41+
/// Example: prj_123
42+
/// </param>
43+
/// <param name="requestId">
44+
/// The Vercel CLI request ID associated with the trace<br/>
45+
/// Example: cli-req-abc
46+
/// </param>
47+
/// <param name="teamId">
48+
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
49+
/// </param>
50+
/// <param name="slug">
51+
/// Example: my-team-url-slug
52+
/// </param>
53+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
54+
/// <param name="cancellationToken">The token to cancel the operation with</param>
55+
/// <exception cref="global::Vercel.ApiException"></exception>
56+
global::System.Threading.Tasks.Task<global::Vercel.AutoSDKHttpResponse<global::Vercel.GetProjectTraceResponse>> GetProjectTraceAsResponseAsync(
57+
string projectId,
58+
string requestId,
59+
string? teamId = default,
60+
string? slug = default,
61+
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
62+
global::System.Threading.CancellationToken cancellationToken = default);
63+
}
64+
}

src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk002.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7466,6 +7466,7 @@ namespace Vercel
74667466
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateProjectRequestResourceConfigBuildMachineElasticReason), TypeInfoPropertyName = "CreateProjectRequestResourceConfigBuildMachineElasticReason2")]
74677467
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateProjectRequestResourceConfigBuildQueue))]
74687468
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateProjectRequestResourceConfigBuildQueueConfiguration), TypeInfoPropertyName = "CreateProjectRequestResourceConfigBuildQueueConfiguration2")]
7469+
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateTraceSessionRequest))]
74697470
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateProjectRequest))]
74707471
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateProjectRequestFramework), TypeInfoPropertyName = "UpdateProjectRequestFramework2")]
74717472
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.UpdateProjectRequestNodeVersion), TypeInfoPropertyName = "UpdateProjectRequestNodeVersion2")]
@@ -7759,7 +7760,6 @@ namespace Vercel
77597760
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.PutFirewallConfigRequestRuleActionMitigate))]
77607761
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.PutFirewallConfigRequestRuleActionMitigateAction), TypeInfoPropertyName = "PutFirewallConfigRequestRuleActionMitigateAction2")]
77617762
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.AnyOf<global::Vercel.PutFirewallConfigRequestRuleActionMitigateRateLimitVariant1, object>), TypeInfoPropertyName = "AnyOfPutFirewallConfigRequestRuleActionMitigateRateLimitVariant1Object2")]
7762-
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.PutFirewallConfigRequestRuleActionMitigateRateLimitVariant1))]
77637763
internal sealed partial class SourceGenerationContextChunk002 : global::System.Text.Json.Serialization.JsonSerializerContext
77647764
{
77657765
}

src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk003.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7260,6 +7260,7 @@ namespace Vercel
72607260
typeof(global::Vercel.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant1Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant2Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant3Item>>),
72617261
typeof(global::Vercel.JsonConverters.UnixTimestampJsonConverter),
72627262
})]
7263+
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.PutFirewallConfigRequestRuleActionMitigateRateLimitVariant1))]
72637264
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.PutFirewallConfigRequestRuleActionMitigateRateLimitVariant1Algo), TypeInfoPropertyName = "PutFirewallConfigRequestRuleActionMitigateRateLimitVariant1Algo2")]
72647265
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.AnyOf<global::Vercel.PutFirewallConfigRequestRuleActionMitigateRateLimitVariant1ActionEnum?, object>), TypeInfoPropertyName = "AnyOfPutFirewallConfigRequestRuleActionMitigateRateLimitVariant1ActionEnumObject2")]
72657266
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.PutFirewallConfigRequestRuleActionMitigateRateLimitVariant1ActionEnum), TypeInfoPropertyName = "PutFirewallConfigRequestRuleActionMitigateRateLimitVariant1ActionEnum2")]
@@ -7759,7 +7760,6 @@ namespace Vercel
77597760
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf<global::Vercel.GetProjectCheckResponseSourceVariant1, global::Vercel.GetProjectCheckResponseSourceVariant2, global::Vercel.GetProjectCheckResponseSourceVariant3>), TypeInfoPropertyName = "OneOfGetProjectCheckResponseSourceVariant1GetProjectCheckResponseSourceVariant2GetProjectCheckResponseSourceVariant32")]
77607761
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetProjectCheckResponseSourceVariant1))]
77617762
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetProjectCheckResponseSourceVariant1Kind), TypeInfoPropertyName = "GetProjectCheckResponseSourceVariant1Kind2")]
7762-
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetProjectCheckResponseSourceVariant2))]
77637763
internal sealed partial class SourceGenerationContextChunk003 : global::System.Text.Json.Serialization.JsonSerializerContext
77647764
{
77657765
}

src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk004.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7260,6 +7260,7 @@ namespace Vercel
72607260
typeof(global::Vercel.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant1Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant2Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant3Item>>),
72617261
typeof(global::Vercel.JsonConverters.UnixTimestampJsonConverter),
72627262
})]
7263+
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetProjectCheckResponseSourceVariant2))]
72637264
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetProjectCheckResponseSourceVariant2Kind), TypeInfoPropertyName = "GetProjectCheckResponseSourceVariant2Kind2")]
72647265
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetProjectCheckResponseSourceVariant3))]
72657266
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetProjectCheckResponseSourceVariant3Kind), TypeInfoPropertyName = "GetProjectCheckResponseSourceVariant3Kind2")]
@@ -7759,7 +7760,6 @@ namespace Vercel
77597760
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Vercel.OneOf<global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant1, global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant2>>), TypeInfoPropertyName = "GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant2_c80f1b88e01a422c")]
77607761
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf<global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant1, global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant2>), TypeInfoPropertyName = "GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant2_1090c9bcc1796467")]
77617762
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant1))]
7762-
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant1Type), TypeInfoPropertyName = "GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant1Type2")]
77637763
internal sealed partial class SourceGenerationContextChunk004 : global::System.Text.Json.Serialization.JsonSerializerContext
77647764
{
77657765
}

src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk005.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7260,6 +7260,7 @@ namespace Vercel
72607260
typeof(global::Vercel.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant1Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant2Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant3Item>>),
72617261
typeof(global::Vercel.JsonConverters.UnixTimestampJsonConverter),
72627262
})]
7263+
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant1Type), TypeInfoPropertyName = "GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant1Type2")]
72637264
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant2))]
72647265
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant2Type), TypeInfoPropertyName = "GetDeploymentResponseVariant1ServiceVariant1BuilderConfigFunctionsExperimentalTriggerVariant2Type2")]
72657266
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.GetDeploymentResponseVariant1ServiceVariant1BuilderConfigProjectSettings))]
@@ -7759,7 +7760,6 @@ namespace Vercel
77597760
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateDeploymentResponseServiceVariant2HeaderMissingItemVariant1Value))]
77607761
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateDeploymentResponseServiceVariant2HeaderMissingItemVariant2))]
77617762
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateDeploymentResponseServiceVariant2HeaderMissingItemVariant2Type), TypeInfoPropertyName = "CreateDeploymentResponseServiceVariant2HeaderMissingItemVariant2Type2")]
7762-
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf<string, global::Vercel.CreateDeploymentResponseServiceVariant2HeaderMissingItemVariant2Value>), TypeInfoPropertyName = "OneOfStringCreateDeploymentResponseServiceVariant2HeaderMissingItemVariant2Value2")]
77637763
internal sealed partial class SourceGenerationContextChunk005 : global::System.Text.Json.Serialization.JsonSerializerContext
77647764
{
77657765
}

src/libs/Vercel/Generated/Vercel.JsonSerializerContext.Chunk006.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7260,6 +7260,7 @@ namespace Vercel
72607260
typeof(global::Vercel.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant1Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant2Item>, global::System.Collections.Generic.IList<global::Vercel.GetAliasResponseMicrofrontendsApplicationsVariant3Item>>),
72617261
typeof(global::Vercel.JsonConverters.UnixTimestampJsonConverter),
72627262
})]
7263+
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.OneOf<string, global::Vercel.CreateDeploymentResponseServiceVariant2HeaderMissingItemVariant2Value>), TypeInfoPropertyName = "OneOfStringCreateDeploymentResponseServiceVariant2HeaderMissingItemVariant2Value2")]
72637264
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateDeploymentResponseServiceVariant2HeaderMissingItemVariant2Value))]
72647265
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Vercel.CreateDeploymentResponseServiceVariant2Redirect>))]
72657266
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CreateDeploymentResponseServiceVariant2Redirect))]
@@ -7759,7 +7760,6 @@ namespace Vercel
77597760
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CancelDeploymentResponseSeatBlock))]
77607761
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CancelDeploymentResponseSeatBlockBlockCode), TypeInfoPropertyName = "CancelDeploymentResponseSeatBlockBlockCode2")]
77617762
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CancelDeploymentResponseSeatBlockGitProvider), TypeInfoPropertyName = "CancelDeploymentResponseSeatBlockGitProvider2")]
7762-
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Vercel.CancelDeploymentResponseAttribution))]
77637763
internal sealed partial class SourceGenerationContextChunk006 : global::System.Text.Json.Serialization.JsonSerializerContext
77647764
{
77657765
}

0 commit comments

Comments
 (0)