diff --git a/Package.Build.props b/Package.Build.props
index cd89b66..121887c 100644
--- a/Package.Build.props
+++ b/Package.Build.props
@@ -1,6 +1,6 @@
- 1.3.0
+ 1.4.0
Hawxy
true
Apache-2.0
@@ -10,7 +10,7 @@
Hawxy 2023
true
README.md
- true
+ true
diff --git a/README.md b/README.md
index 38ddf4f..600e345 100644
--- a/README.md
+++ b/README.md
@@ -6,11 +6,11 @@
_Looking for ASP.NET Core w/ Clerk JWTs? [See below](#what-about-jwt-auth)._
### Packages
-**`Clerk.Net`**: Provides the standalone API Client as a Kiota-generated wrapper over Clerk's OpenAPI spec.
+**`Clerk.Net`**: Provides the standalone API Client as a Kiota-generated wrapper over Clerk's OpenAPI spec. Compatible with .NET 6+ and .NET Framework 4.7.2+.
-**`Clerk.Net.DependencyInjection`**: Extensions to register the `ClerkApiClient` into your DI container.
+**`Clerk.Net.DependencyInjection`**: Extensions to register the `ClerkApiClient` into your DI container. Compatible with .NET 6+.
-These libraries support .NET 6 onwards and are configured as native AoT compatible for .NET 8+ consumers.
+These libraries are configured as native AoT compatible for .NET 8+ consumers.
## Getting Started
diff --git a/build/_build.csproj b/build/_build.csproj
index e112bba..b1965fa 100644
--- a/build/_build.csproj
+++ b/build/_build.csproj
@@ -2,7 +2,7 @@
Exe
- net7.0
+ net8.0
CS0649;CS0169;CA1050;CA1822;CA2211;IDE1006
..
@@ -12,7 +12,7 @@
-
+
diff --git a/build/_build.csproj.DotSettings b/build/_build.csproj.DotSettings
index eb3f4c2..c815d36 100644
--- a/build/_build.csproj.DotSettings
+++ b/build/_build.csproj.DotSettings
@@ -17,6 +17,8 @@
False
<Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" />
<Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" />
+ <Policy><Descriptor Staticness="Instance" AccessRightKinds="Private" Description="Instance fields (private)"><ElementKinds><Kind Name="FIELD" /><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></Policy>
+ <Policy><Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static fields (private)"><ElementKinds><Kind Name="FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></Policy>
True
True
True
@@ -25,4 +27,5 @@
True
True
True
- True
+ True
+ True
diff --git a/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj b/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj
index 98ddb6e..dfdb033 100644
--- a/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj
+++ b/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj
@@ -10,9 +10,9 @@
-
-
-
+
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/Clerk.Net/Clerk.Net.csproj b/src/Clerk.Net/Clerk.Net.csproj
index 5d56965..0188d75 100644
--- a/src/Clerk.Net/Clerk.Net.csproj
+++ b/src/Clerk.Net/Clerk.Net.csproj
@@ -4,18 +4,19 @@
Clerk.Net
Clerk Backend API Wrapper for .NET. This package includes the OpenAPI-generated client.
clerk,auth
- net6.0;net8.0
+ netstandard2.0;net6.0;net8.0
enable
enable
+ latest
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/Clerk.Net/ClerkApiClientFactory.cs b/src/Clerk.Net/ClerkApiClientFactory.cs
index 49a109e..7707e07 100644
--- a/src/Clerk.Net/ClerkApiClientFactory.cs
+++ b/src/Clerk.Net/ClerkApiClientFactory.cs
@@ -17,7 +17,8 @@ public static class ClerkApiClientFactory
/// The
public static ClerkApiClient Create(string secretKey, HttpClient? httpClient = default)
{
- ArgumentNullException.ThrowIfNull(secretKey);
+ if (string.IsNullOrEmpty(secretKey))
+ throw new ArgumentNullException(nameof(secretKey));
var authProvider = new ApiKeyAuthenticationProvider($"Bearer {secretKey}", "Authorization", ApiKeyAuthenticationProvider.KeyLocation.Header);
var adapter = new HttpClientRequestAdapter(authProvider, httpClient: httpClient);
diff --git a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs
index 4736272..0413c3e 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs
@@ -29,6 +29,7 @@ public class Actor_tokensPostRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Actor_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -37,6 +38,7 @@ public static Actor_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNod
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"actor", n => { Actor = n.GetObjectValue(Actor_tokensPostRequestBody_actor.CreateFromDiscriminatorValue); } },
diff --git a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs
index c1ce3d6..4f97475 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs
@@ -12,7 +12,7 @@ public class Actor_tokensPostRequestBody_actor : IAdditionalDataHolder, IParsabl
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
///
- /// Instantiates a new actor_tokensPostRequestBody_actor and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Actor_tokensPostRequestBody_actor() {
AdditionalData = new Dictionary();
@@ -20,6 +20,7 @@ public Actor_tokensPostRequestBody_actor() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Actor_tokensPostRequestBody_actor CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -28,6 +29,7 @@ public static Actor_tokensPostRequestBody_actor CreateFromDiscriminatorValue(IPa
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
};
diff --git a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs
index 8b71ceb..05e93a2 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs
@@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Actor_tokens {
public class Actor_tokensRequestBuilder : BaseRequestBuilder {
/// Gets an item from the Clerk.Net.Client.actor_tokens.item collection
/// The ID of the actor token to be revoked.
+ /// A
public WithActor_token_ItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("actor_token_id", position);
return new WithActor_token_ItemRequestBuilder(urlTplParams, RequestAdapter);
} }
///
- /// Instantiates a new Actor_tokensRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Actor_tokensRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actor_tokens", pathParameters) {
}
///
- /// Instantiates a new Actor_tokensRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -38,9 +39,13 @@ public Actor_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
///
/// Create an actor token that can be used to impersonate the given user.The `actor` parameter needs to include at least a "sub" key whose value is the ID of the actor (impersonating) user.
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 402 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Actor_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -60,6 +65,7 @@ public async Task PostAsync(Actor_tokensPostRequestBody body, Action
///
/// Create an actor token that can be used to impersonate the given user.The `actor` parameter needs to include at least a "sub" key whose value is the ID of the actor (impersonating) user.
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -79,6 +85,7 @@ public RequestInformation ToPostRequestInformation(Actor_tokensPostRequestBody b
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public Actor_tokensRequestBuilder WithUrl(string rawUrl) {
return new Actor_tokensRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs
index 9d66b5e..f98bab1 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Actor_tokens.Item.Revoke {
///
public class RevokeRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new RevokeRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public RevokeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actor_tokens/{actor_token_id}/revoke", pathParameters) {
}
///
- /// Instantiates a new RevokeRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,8 +30,11 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
///
/// Revokes a pending actor token.
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -49,6 +52,7 @@ public async Task PostAsync(Action
/// Revokes a pending actor token.
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -65,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public RevokeRequestBuilder WithUrl(string rawUrl) {
return new RevokeRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Actor_tokens/Item/WithActor_token_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Actor_tokens/Item/WithActor_token_ItemRequestBuilder.cs
index d4c8120..27c2429 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Item/WithActor_token_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Item/WithActor_token_ItemRequestBuilder.cs
@@ -16,14 +16,14 @@ public class WithActor_token_ItemRequestBuilder : BaseRequestBuilder {
new RevokeRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new WithActor_token_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public WithActor_token_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actor_tokens/{actor_token_id}", pathParameters) {
}
///
- /// Instantiates a new WithActor_token_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
diff --git a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs
index fb456c6..44cb285 100644
--- a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs
@@ -19,6 +19,7 @@ public class Allowlist_identifiersPostRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Allowlist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -27,6 +28,7 @@ public static Allowlist_identifiersPostRequestBody CreateFromDiscriminatorValue(
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"identifier", n => { Identifier = n.GetStringValue(); } },
diff --git a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs
index bba58da..bc883e3 100644
--- a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs
@@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Allowlist_identifiers {
public class Allowlist_identifiersRequestBuilder : BaseRequestBuilder {
/// Gets an item from the Clerk.Net.Client.allowlist_identifiers.item collection
/// The ID of the identifier to delete from the allow-list
+ /// A
public WithIdentifier_ItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("identifier_id", position);
return new WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter);
} }
///
- /// Instantiates a new Allowlist_identifiersRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Allowlist_identifiersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/allowlist_identifiers", pathParameters) {
}
///
- /// Instantiates a new Allowlist_identifiersRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -38,8 +39,11 @@ public Allowlist_identifiersRequestBuilder(string rawUrl, IRequestAdapter reques
///
/// Get a list of all identifiers allowed to sign up to an instance
///
+ /// A List<AllowlistIdentifier>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 401 status code
+ /// When receiving a 402 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -58,9 +62,13 @@ public async Task> GetAsync(Action
/// Create an identifier allowed to sign up to an instance
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 402 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Allowlist_identifiersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -80,6 +88,7 @@ public async Task PostAsync(Allowlist_identifiersPostReques
///
/// Get a list of all identifiers allowed to sign up to an instance
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -96,6 +105,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Create an identifier allowed to sign up to an instance
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -115,6 +125,7 @@ public RequestInformation ToPostRequestInformation(Allowlist_identifiersPostRequ
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public Allowlist_identifiersRequestBuilder WithUrl(string rawUrl) {
return new Allowlist_identifiersRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
index 7a403e5..cf74b99 100644
--- a/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Allowlist_identifiers.Item {
///
public class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new WithIdentifier_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public WithIdentifier_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/allowlist_identifiers/{identifier_id}", pathParameters) {
}
///
- /// Instantiates a new WithIdentifier_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,8 +30,11 @@ public WithIdentifier_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA
///
/// Delete an identifier from the instance allow-list
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 402 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -49,6 +52,7 @@ public async Task DeleteAsync(Action
/// Delete an identifier from the instance allow-list
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -65,6 +69,7 @@ public RequestInformation ToDeleteRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl) {
return new WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs b/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs
index 7b45ef9..e812483 100644
--- a/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs
@@ -21,14 +21,14 @@ public class Beta_featuresRequestBuilder : BaseRequestBuilder {
new Instance_settingsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new Beta_featuresRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Beta_featuresRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/beta_features", pathParameters) {
}
///
- /// Instantiates a new Beta_featuresRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
diff --git a/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs b/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs
index 6d80273..da2dff1 100644
--- a/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs
+++ b/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs
@@ -17,6 +17,7 @@ public class DomainPutRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static DomainPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -25,6 +26,7 @@ public static DomainPutRequestBody CreateFromDiscriminatorValue(IParseNode parse
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"home_url", n => { HomeUrl = n.GetStringValue(); } },
diff --git a/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs b/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs
index 1b9c579..14f90f2 100644
--- a/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Beta_features.Domain {
///
public class DomainRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new DomainRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public DomainRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/beta_features/domain", pathParameters) {
}
///
- /// Instantiates a new DomainRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -33,6 +33,8 @@ public DomainRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 422 status code
[Obsolete("")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -52,6 +54,7 @@ public async Task PutAsync(DomainPutRequestBody body, Action
/// Change the domain of a production instance.Changing the domain requires updating the [DNS records](https://clerk.com/docs/deployments/overview#dns-records) accordingly, deploying new [SSL certificates](https://clerk.com/docs/deployments/overview#deploy), updating your Social Connection's redirect URLs and setting the new keys in your code.WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
[Obsolete("")]
@@ -72,6 +75,7 @@ public RequestInformation ToPutRequestInformation(DomainPutRequestBody body, Act
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
[Obsolete("")]
public DomainRequestBuilder WithUrl(string rawUrl) {
diff --git a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchRequestBody.cs b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchRequestBody.cs
index c5db7a3..85f4699 100644
--- a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchRequestBody.cs
+++ b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchRequestBody.cs
@@ -33,6 +33,7 @@ public class Instance_settingsPatchRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Instance_settingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -41,6 +42,7 @@ public static Instance_settingsPatchRequestBody CreateFromDiscriminatorValue(IPa
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } },
diff --git a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse.cs b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse.cs
index 5e9aa25..a3a8088 100644
--- a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse.cs
+++ b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse.cs
@@ -33,7 +33,7 @@ public class Instance_settingsPatchResponse : IAdditionalDataHolder, IParsable {
/// The restricted_to_allowlist property
public bool? RestrictedToAllowlist { get; set; }
///
- /// Instantiates a new instance_settingsPatchResponse and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Instance_settingsPatchResponse() {
AdditionalData = new Dictionary();
@@ -41,6 +41,7 @@ public Instance_settingsPatchResponse() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Instance_settingsPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -49,6 +50,7 @@ public static Instance_settingsPatchResponse CreateFromDiscriminatorValue(IParse
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } },
diff --git a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsRequestBuilder.cs b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsRequestBuilder.cs
index 481ce7a..8fa4f22 100644
--- a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Beta_features.Instance_settings {
///
public class Instance_settingsRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new Instance_settingsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Instance_settingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/beta_features/instance_settings", pathParameters) {
}
///
- /// Instantiates a new Instance_settingsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,9 +30,12 @@ public Instance_settingsRequestBuilder(string rawUrl, IRequestAdapter requestAda
///
/// Updates the settings of an instance
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 402 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PatchAsync(Instance_settingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -51,6 +54,7 @@ public async Task PatchAsync(Instance_settingsPa
///
/// Updates the settings of an instance
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -70,6 +74,7 @@ public RequestInformation ToPatchRequestInformation(Instance_settingsPatchReques
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public Instance_settingsRequestBuilder WithUrl(string rawUrl) {
return new Instance_settingsRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs
index 47f8d51..2d6dcb7 100644
--- a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs
@@ -17,6 +17,7 @@ public class Blocklist_identifiersPostRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Blocklist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -25,6 +26,7 @@ public static Blocklist_identifiersPostRequestBody CreateFromDiscriminatorValue(
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"identifier", n => { Identifier = n.GetStringValue(); } },
diff --git a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs
index 7eec7cb..abc07f2 100644
--- a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs
@@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Blocklist_identifiers {
public class Blocklist_identifiersRequestBuilder : BaseRequestBuilder {
/// Gets an item from the Clerk.Net.Client.blocklist_identifiers.item collection
/// The ID of the identifier to delete from the block-list
+ /// A
public WithIdentifier_ItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("identifier_id", position);
return new WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter);
} }
///
- /// Instantiates a new Blocklist_identifiersRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Blocklist_identifiersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/blocklist_identifiers", pathParameters) {
}
///
- /// Instantiates a new Blocklist_identifiersRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -38,8 +39,11 @@ public Blocklist_identifiersRequestBuilder(string rawUrl, IRequestAdapter reques
///
/// Get a list of all identifiers which are not allowed to access an instance
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 401 status code
+ /// When receiving a 402 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -57,9 +61,13 @@ public async Task GetAsync(Action
/// Create an identifier that is blocked from accessing an instance
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 402 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Blocklist_identifiersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -79,6 +87,7 @@ public async Task PostAsync(Blocklist_identifiersPostReques
///
/// Get a list of all identifiers which are not allowed to access an instance
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -95,6 +104,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Create an identifier that is blocked from accessing an instance
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -114,6 +124,7 @@ public RequestInformation ToPostRequestInformation(Blocklist_identifiersPostRequ
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public Blocklist_identifiersRequestBuilder WithUrl(string rawUrl) {
return new Blocklist_identifiersRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
index dd28514..d8cfaf1 100644
--- a/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Blocklist_identifiers.Item {
///
public class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new WithIdentifier_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public WithIdentifier_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/blocklist_identifiers/{identifier_id}", pathParameters) {
}
///
- /// Instantiates a new WithIdentifier_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,8 +30,11 @@ public WithIdentifier_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA
///
/// Delete an identifier from the instance block-list
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 402 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -49,6 +52,7 @@ public async Task DeleteAsync(Action
/// Delete an identifier from the instance block-list
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -65,6 +69,7 @@ public RequestInformation ToDeleteRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl) {
return new WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/ClerkApiClient.cs b/src/Clerk.Net/Client/ClerkApiClient.cs
index 1583e76..6b73b46 100644
--- a/src/Clerk.Net/Client/ClerkApiClient.cs
+++ b/src/Clerk.Net/Client/ClerkApiClient.cs
@@ -6,7 +6,6 @@
using Clerk.Net.Client.Clients;
using Clerk.Net.Client.Domains;
using Clerk.Net.Client.Email_addresses;
-using Clerk.Net.Client.Emails;
using Clerk.Net.Client.Instance;
using Clerk.Net.Client.Invitations;
using Clerk.Net.Client.Jwks;
@@ -68,10 +67,6 @@ public class ClerkApiClient : BaseRequestBuilder {
public Email_addressesRequestBuilder Email_addresses { get =>
new Email_addressesRequestBuilder(PathParameters, RequestAdapter);
}
- /// The emails property
- public EmailsRequestBuilder Emails { get =>
- new EmailsRequestBuilder(PathParameters, RequestAdapter);
- }
/// The instance property
public InstanceRequestBuilder Instance { get =>
new InstanceRequestBuilder(PathParameters, RequestAdapter);
@@ -141,7 +136,7 @@ public class ClerkApiClient : BaseRequestBuilder {
new WebhooksRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new ClerkApiClient and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The request adapter to use to execute the requests.
public ClerkApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) {
diff --git a/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs b/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs
index 63c6bf7..3e0b885 100644
--- a/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs
@@ -16,35 +16,43 @@ namespace Clerk.Net.Client.Clients {
///
public class ClientsRequestBuilder : BaseRequestBuilder {
/// The verify property
+ [Obsolete("")]
public VerifyRequestBuilder Verify { get =>
new VerifyRequestBuilder(PathParameters, RequestAdapter);
}
/// Gets an item from the Clerk.Net.Client.clients.item collection
/// Client ID.
+ /// A
public WithClient_ItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("client_id", position);
return new WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter);
} }
///
- /// Instantiates a new ClientsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/clients{?limit*,offset*}", pathParameters) {
}
///
- /// Instantiates a new ClientsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/clients{?limit*,offset*}", rawUrl) {
}
///
- /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.
+ /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.Warning: the endpoint is being deprecated and will be removed in future versions.
///
+ /// A List<Clerk.Net.Client.Models.Client>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 401 status code
+ /// When receiving a 410 status code
+ /// When receiving a 422 status code
+ [Obsolete("")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -56,15 +64,18 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
var errorMapping = new Dictionary> {
{"400", ClerkErrors.CreateFromDiscriminatorValue},
{"401", ClerkErrors.CreateFromDiscriminatorValue},
+ {"410", ClerkErrors.CreateFromDiscriminatorValue},
{"422", ClerkErrors.CreateFromDiscriminatorValue},
};
var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return collectionResult?.ToList();
}
///
- /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.
+ /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.Warning: the endpoint is being deprecated and will be removed in future versions.
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) {
@@ -80,12 +91,14 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
+ [Obsolete("")]
public ClientsRequestBuilder WithUrl(string rawUrl) {
return new ClientsRequestBuilder(rawUrl, RequestAdapter);
}
///
- /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.
+ /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.Warning: the endpoint is being deprecated and will be removed in future versions.
///
public class ClientsRequestBuilderGetQueryParameters {
/// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`.Must be an integer greater than zero and less than 500.By default, if not supplied, a limit of 10 is used.
diff --git a/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs
index ed70958..b6e6d99 100644
--- a/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Clients.Item {
///
public class WithClient_ItemRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new WithClient_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public WithClient_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/clients/{client_id}", pathParameters) {
}
///
- /// Instantiates a new WithClient_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,8 +30,12 @@ public WithClient_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
///
/// Returns the details of a client.
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 401 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -50,6 +54,7 @@ public WithClient_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
///
/// Returns the details of a client.
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -66,6 +71,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public WithClient_ItemRequestBuilder WithUrl(string rawUrl) {
return new WithClient_ItemRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs b/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs
index 77724ab..87aa656 100644
--- a/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs
@@ -17,6 +17,7 @@ public class VerifyPostRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static VerifyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -25,6 +26,7 @@ public static VerifyPostRequestBody CreateFromDiscriminatorValue(IParseNode pars
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"token", n => { Token = n.GetStringValue(); } },
diff --git a/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs b/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs
index 293ed4d..d8d0ad1 100644
--- a/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Clients.Verify {
///
public class VerifyRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new VerifyRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public VerifyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/clients/verify", pathParameters) {
}
///
- /// Instantiates a new VerifyRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,9 +30,13 @@ public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
///
/// Verifies the client in the provided token
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 401 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(VerifyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -52,6 +56,7 @@ public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
///
/// Verifies the client in the provided token
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -71,6 +76,7 @@ public RequestInformation ToPostRequestInformation(VerifyPostRequestBody body, A
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public VerifyRequestBuilder WithUrl(string rawUrl) {
return new VerifyRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs b/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs
index bdeb8fe..7bd903d 100644
--- a/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs
@@ -27,7 +27,7 @@ public class DomainsPostRequestBody : IAdditionalDataHolder, IParsable {
public string ProxyUrl { get; set; }
#endif
///
- /// Instantiates a new domainsPostRequestBody and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public DomainsPostRequestBody() {
AdditionalData = new Dictionary();
@@ -35,6 +35,7 @@ public DomainsPostRequestBody() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static DomainsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -43,6 +44,7 @@ public static DomainsPostRequestBody CreateFromDiscriminatorValue(IParseNode par
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"is_satellite", n => { IsSatellite = n.GetBoolValue(); } },
diff --git a/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs b/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs
index 3256590..aa3e84d 100644
--- a/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs
@@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Domains {
public class DomainsRequestBuilder : BaseRequestBuilder {
/// Gets an item from the Clerk.Net.Client.domains.item collection
/// The ID of the domain that will be deleted. Must be a satellite domain.
+ /// A
public WithDomain_ItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("domain_id", position);
return new WithDomain_ItemRequestBuilder(urlTplParams, RequestAdapter);
} }
///
- /// Instantiates a new DomainsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public DomainsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains", pathParameters) {
}
///
- /// Instantiates a new DomainsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -38,6 +39,7 @@ public DomainsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
///
/// Use this endpoint to get a list of all domains for an instance.The response will contain the primary domain for the instance and any satellite domains. Each domain in the response contains information about the URLs where Clerk operates and the required CNAME targets.
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -53,9 +55,13 @@ public DomainsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
///
/// Add a new domain for your instance.Useful in the case of multi-domain instances, allows adding satellite domains to an instance.The new domain must have a `name`. The domain name can contain the port for development instances, like `localhost:3000`.At the moment, instances can have only one primary domain, so the `is_satellite` parameter must be set to `true`.If you're planning to configure the new satellite domain to run behind a proxy, pass the `proxy_url` parameter accordingly.
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 402 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(DomainsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -67,6 +73,7 @@ public DomainsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary> {
{"400", ClerkErrors.CreateFromDiscriminatorValue},
+ {"402", ClerkErrors.CreateFromDiscriminatorValue},
{"422", ClerkErrors.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
@@ -74,6 +81,7 @@ public DomainsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
///
/// Use this endpoint to get a list of all domains for an instance.The response will contain the primary domain for the instance and any satellite domains. Each domain in the response contains information about the URLs where Clerk operates and the required CNAME targets.
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -90,6 +98,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Add a new domain for your instance.Useful in the case of multi-domain instances, allows adding satellite domains to an instance.The new domain must have a `name`. The domain name can contain the port for development instances, like `localhost:3000`.At the moment, instances can have only one primary domain, so the `is_satellite` parameter must be set to `true`.If you're planning to configure the new satellite domain to run behind a proxy, pass the `proxy_url` parameter accordingly.
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -109,6 +118,7 @@ public RequestInformation ToPostRequestInformation(DomainsPostRequestBody body,
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public DomainsRequestBuilder WithUrl(string rawUrl) {
return new DomainsRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Domains/Item/WithDomain_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Domains/Item/WithDomain_ItemRequestBuilder.cs
index 6efff1c..00c0a9b 100644
--- a/src/Clerk.Net/Client/Domains/Item/WithDomain_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Domains/Item/WithDomain_ItemRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Domains.Item {
///
public class WithDomain_ItemRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new WithDomain_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public WithDomain_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain_id}", pathParameters) {
}
///
- /// Instantiates a new WithDomain_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,8 +30,11 @@ public WithDomain_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
///
/// Deletes a satellite domain for the instance.It is currently not possible to delete the instance's primary domain.
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -49,9 +52,13 @@ public async Task DeleteAsync(Action
/// The `proxy_url` can be updated only for production instances.Update one of the instance's domains. Both primary and satellite domains can be updated.If you choose to use Clerk via proxy, use this endpoint to specify the `proxy_url`.Whenever you decide you'd rather switch to DNS setup for Clerk, simply set `proxy_url`to `null` for the domain. When you update a production instance's primary domain name,you have to make sure that you've completed all the necessary setup steps for DNS andemails to work. Expect downtime otherwise. Updating a primary domain's name will alsoupdate the instance's home origin, affecting the default application paths.
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PatchAsync(WithDomain_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -71,6 +78,7 @@ public async Task DeleteAsync(Action
/// Deletes a satellite domain for the instance.It is currently not possible to delete the instance's primary domain.
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -87,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action
/// The `proxy_url` can be updated only for production instances.Update one of the instance's domains. Both primary and satellite domains can be updated.If you choose to use Clerk via proxy, use this endpoint to specify the `proxy_url`.Whenever you decide you'd rather switch to DNS setup for Clerk, simply set `proxy_url`to `null` for the domain. When you update a production instance's primary domain name,you have to make sure that you've completed all the necessary setup steps for DNS andemails to work. Expect downtime otherwise. Updating a primary domain's name will alsoupdate the instance's home origin, affecting the default application paths.
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -106,6 +115,7 @@ public RequestInformation ToPatchRequestInformation(WithDomain_PatchRequestBody
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public WithDomain_ItemRequestBuilder WithUrl(string rawUrl) {
return new WithDomain_ItemRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Domains/Item/WithDomain_PatchRequestBody.cs b/src/Clerk.Net/Client/Domains/Item/WithDomain_PatchRequestBody.cs
index f96e004..ea68434 100644
--- a/src/Clerk.Net/Client/Domains/Item/WithDomain_PatchRequestBody.cs
+++ b/src/Clerk.Net/Client/Domains/Item/WithDomain_PatchRequestBody.cs
@@ -25,6 +25,7 @@ public class WithDomain_PatchRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static WithDomain_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -33,6 +34,7 @@ public static WithDomain_PatchRequestBody CreateFromDiscriminatorValue(IParseNod
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"name", n => { Name = n.GetStringValue(); } },
diff --git a/src/Clerk.Net/Client/Email_addresses/Email_addressesPostRequestBody.cs b/src/Clerk.Net/Client/Email_addresses/Email_addressesPostRequestBody.cs
index f09069a..8086a0a 100644
--- a/src/Clerk.Net/Client/Email_addresses/Email_addressesPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Email_addresses/Email_addressesPostRequestBody.cs
@@ -29,7 +29,7 @@ public class Email_addressesPostRequestBody : IAdditionalDataHolder, IParsable {
/// When created, the email address will be marked as verified.
public bool? Verified { get; set; }
///
- /// Instantiates a new email_addressesPostRequestBody and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Email_addressesPostRequestBody() {
AdditionalData = new Dictionary();
@@ -37,6 +37,7 @@ public Email_addressesPostRequestBody() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Email_addressesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -45,6 +46,7 @@ public static Email_addressesPostRequestBody CreateFromDiscriminatorValue(IParse
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"email_address", n => { EmailAddress = n.GetStringValue(); } },
diff --git a/src/Clerk.Net/Client/Email_addresses/Email_addressesRequestBuilder.cs b/src/Clerk.Net/Client/Email_addresses/Email_addressesRequestBuilder.cs
index 0c3041d..f01ac37 100644
--- a/src/Clerk.Net/Client/Email_addresses/Email_addressesRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Email_addresses/Email_addressesRequestBuilder.cs
@@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Email_addresses {
public class Email_addressesRequestBuilder : BaseRequestBuilder {
/// Gets an item from the Clerk.Net.Client.email_addresses.item collection
/// The ID of the email address to retrieve
+ /// A
public WithEmail_address_ItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("email_address_id", position);
return new WithEmail_address_ItemRequestBuilder(urlTplParams, RequestAdapter);
} }
///
- /// Instantiates a new Email_addressesRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Email_addressesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/email_addresses", pathParameters) {
}
///
- /// Instantiates a new Email_addressesRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -38,9 +39,15 @@ public Email_addressesRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
///
/// Create a new email address
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 401 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Email_addressesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -62,6 +69,7 @@ public async Task PostAsync(Email_addressesPostRequestBody body, A
///
/// Create a new email address
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -81,6 +89,7 @@ public RequestInformation ToPostRequestInformation(Email_addressesPostRequestBod
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public Email_addressesRequestBuilder WithUrl(string rawUrl) {
return new Email_addressesRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_ItemRequestBuilder.cs
index d9ae63e..ca224e4 100644
--- a/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_ItemRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Email_addresses.Item {
///
public class WithEmail_address_ItemRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new WithEmail_address_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public WithEmail_address_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/email_addresses/{email_address_id}", pathParameters) {
}
///
- /// Instantiates a new WithEmail_address_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,8 +30,13 @@ public WithEmail_address_ItemRequestBuilder(string rawUrl, IRequestAdapter reque
///
/// Delete the email address with the given ID
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 401 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -51,8 +56,13 @@ public async Task DeleteAsync(Action
/// Returns the details of an email address.
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 401 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -72,9 +82,14 @@ public async Task GetAsync(Action
/// Updates an email address.
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 401 status code
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PatchAsync(WithEmail_address_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -95,6 +110,7 @@ public async Task PatchAsync(WithEmail_address_PatchRequestBody bo
///
/// Delete the email address with the given ID
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -111,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action
/// Returns the details of an email address.
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -127,6 +144,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Updates an email address.
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -146,6 +164,7 @@ public RequestInformation ToPatchRequestInformation(WithEmail_address_PatchReque
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public WithEmail_address_ItemRequestBuilder WithUrl(string rawUrl) {
return new WithEmail_address_ItemRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_PatchRequestBody.cs b/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_PatchRequestBody.cs
index d2e7d17..d1ac3ff 100644
--- a/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_PatchRequestBody.cs
+++ b/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_PatchRequestBody.cs
@@ -13,7 +13,7 @@ public class WithEmail_address_PatchRequestBody : IAdditionalDataHolder, IParsab
/// The email address will be marked as verified.
public bool? Verified { get; set; }
///
- /// Instantiates a new WithEmail_address_PatchRequestBody and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public WithEmail_address_PatchRequestBody() {
AdditionalData = new Dictionary();
@@ -21,6 +21,7 @@ public WithEmail_address_PatchRequestBody() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static WithEmail_address_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -29,6 +30,7 @@ public static WithEmail_address_PatchRequestBody CreateFromDiscriminatorValue(IP
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"primary", n => { Primary = n.GetBoolValue(); } },
diff --git a/src/Clerk.Net/Client/Emails/EmailsRequestBuilder.cs b/src/Clerk.Net/Client/Emails/EmailsRequestBuilder.cs
deleted file mode 100644
index 9d9a1c2..0000000
--- a/src/Clerk.Net/Client/Emails/EmailsRequestBuilder.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-//
-using Clerk.Net.Client.Models;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Clerk.Net.Client.Emails {
- ///
- /// Builds and executes requests for operations under \emails
- ///
- public class EmailsRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new EmailsRequestBuilder and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public EmailsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/emails", pathParameters) {
- }
- ///
- /// Instantiates a new EmailsRequestBuilder and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public EmailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/emails", rawUrl) {
- }
- ///
- /// Create and send an email to the supplied email address ID.
- ///
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PostAsync(EmailsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PostAsync(EmailsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPostRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary> {
- {"400", ClerkErrors.CreateFromDiscriminatorValue},
- {"401", ClerkErrors.CreateFromDiscriminatorValue},
- {"403", ClerkErrors.CreateFromDiscriminatorValue},
- {"404", ClerkErrors.CreateFromDiscriminatorValue},
- {"422", ClerkErrors.CreateFromDiscriminatorValue},
- };
- return await RequestAdapter.SendAsync(requestInfo, Email.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Create and send an email to the supplied email address ID.
- ///
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPostRequestInformation(EmailsPostRequestBody body, Action>? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(EmailsPostRequestBody body, Action> requestConfiguration = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// The raw URL to use for the request builder.
- public EmailsRequestBuilder WithUrl(string rawUrl) {
- return new EmailsRequestBuilder(rawUrl, RequestAdapter);
- }
- }
-}
diff --git a/src/Clerk.Net/Client/Instance/Change_domain/Change_domainPostRequestBody.cs b/src/Clerk.Net/Client/Instance/Change_domain/Change_domainPostRequestBody.cs
index 9ae073c..b5a2b26 100644
--- a/src/Clerk.Net/Client/Instance/Change_domain/Change_domainPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Instance/Change_domain/Change_domainPostRequestBody.cs
@@ -17,6 +17,7 @@ public class Change_domainPostRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Change_domainPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -25,6 +26,7 @@ public static Change_domainPostRequestBody CreateFromDiscriminatorValue(IParseNo
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"home_url", n => { HomeUrl = n.GetStringValue(); } },
diff --git a/src/Clerk.Net/Client/Instance/Change_domain/Change_domainRequestBuilder.cs b/src/Clerk.Net/Client/Instance/Change_domain/Change_domainRequestBuilder.cs
index 07bb770..50db52d 100644
--- a/src/Clerk.Net/Client/Instance/Change_domain/Change_domainRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Instance/Change_domain/Change_domainRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Instance.Change_domain {
///
public class Change_domainRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new Change_domainRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Change_domainRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/instance/change_domain", pathParameters) {
}
///
- /// Instantiates a new Change_domainRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -33,6 +33,8 @@ public Change_domainRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Change_domainPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -51,6 +53,7 @@ public async Task PostAsync(Change_domainPostRequestBody body, Action
/// Change the domain of a production instance.Changing the domain requires updating the [DNS records](https://clerk.com/docs/deployments/overview#dns-records) accordingly, deploying new [SSL certificates](https://clerk.com/docs/deployments/overview#deploy), updating your Social Connection's redirect URLs and setting the new keys in your code.WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -70,6 +73,7 @@ public RequestInformation ToPostRequestInformation(Change_domainPostRequestBody
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public Change_domainRequestBuilder WithUrl(string rawUrl) {
return new Change_domainRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Instance/InstancePatchRequestBody.cs b/src/Clerk.Net/Client/Instance/InstancePatchRequestBody.cs
index ee5fc41..544bfce 100644
--- a/src/Clerk.Net/Client/Instance/InstancePatchRequestBody.cs
+++ b/src/Clerk.Net/Client/Instance/InstancePatchRequestBody.cs
@@ -52,6 +52,7 @@ public class InstancePatchRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static InstancePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -60,6 +61,7 @@ public static InstancePatchRequestBody CreateFromDiscriminatorValue(IParseNode p
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"allowed_origins", n => { AllowedOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } },
diff --git a/src/Clerk.Net/Client/Instance/InstanceRequestBuilder.cs b/src/Clerk.Net/Client/Instance/InstanceRequestBuilder.cs
index 1d84c51..09f0940 100644
--- a/src/Clerk.Net/Client/Instance/InstanceRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Instance/InstanceRequestBuilder.cs
@@ -29,14 +29,14 @@ public class InstanceRequestBuilder : BaseRequestBuilder {
new RestrictionsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new InstanceRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public InstanceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/instance", pathParameters) {
}
///
- /// Instantiates a new InstanceRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -48,6 +48,7 @@ public InstanceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PatchAsync(InstancePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -65,6 +66,7 @@ public async Task PatchAsync(InstancePatchRequestBody body, Action
/// Updates the settings of an instance
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -84,6 +86,7 @@ public RequestInformation ToPatchRequestInformation(InstancePatchRequestBody bod
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public InstanceRequestBuilder WithUrl(string rawUrl) {
return new InstanceRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsPatchRequestBody.cs b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsPatchRequestBody.cs
index 2da0a6a..eb5ac76 100644
--- a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsPatchRequestBody.cs
+++ b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsPatchRequestBody.cs
@@ -41,6 +41,7 @@ public class Organization_settingsPatchRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Organization_settingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -49,6 +50,7 @@ public static Organization_settingsPatchRequestBody CreateFromDiscriminatorValue
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } },
diff --git a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs
index 52ebca8..dc747e9 100644
--- a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Instance.Organization_settings {
///
public class Organization_settingsRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new Organization_settingsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Organization_settingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/instance/organization_settings", pathParameters) {
}
///
- /// Instantiates a new Organization_settingsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,9 +30,13 @@ public Organization_settingsRequestBuilder(string rawUrl, IRequestAdapter reques
///
/// Updates the organization settings of the instance
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 402 status code
+ /// When receiving a 404 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PatchAsync(Organization_settingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -52,6 +56,7 @@ public async Task PatchAsync(Organization_settingsPatchReq
///
/// Updates the organization settings of the instance
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -71,6 +76,7 @@ public RequestInformation ToPatchRequestInformation(Organization_settingsPatchRe
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public Organization_settingsRequestBuilder WithUrl(string rawUrl) {
return new Organization_settingsRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsPatchRequestBody.cs b/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsPatchRequestBody.cs
index 02a4a41..9ceaa11 100644
--- a/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsPatchRequestBody.cs
+++ b/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsPatchRequestBody.cs
@@ -17,6 +17,7 @@ public class RestrictionsPatchRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static RestrictionsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -25,6 +26,7 @@ public static RestrictionsPatchRequestBody CreateFromDiscriminatorValue(IParseNo
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"allowlist", n => { Allowlist = n.GetBoolValue(); } },
diff --git a/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsRequestBuilder.cs b/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsRequestBuilder.cs
index 3fc2e72..fa902b0 100644
--- a/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Instance.Restrictions {
///
public class RestrictionsRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new RestrictionsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public RestrictionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/instance/restrictions", pathParameters) {
}
///
- /// Instantiates a new RestrictionsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,9 +30,11 @@ public RestrictionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
///
/// Updates the restriction settings of an instance
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 402 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PatchAsync(RestrictionsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -50,6 +52,7 @@ public async Task PatchAsync(RestrictionsPatchRequestBody
///
/// Updates the restriction settings of an instance
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -69,6 +72,7 @@ public RequestInformation ToPatchRequestInformation(RestrictionsPatchRequestBody
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public RestrictionsRequestBuilder WithUrl(string rawUrl) {
return new RestrictionsRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs
index 3af1f14..a99ca22 100644
--- a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs
@@ -37,6 +37,7 @@ public class InvitationsPostRequestBody : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static InvitationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -45,6 +46,7 @@ public static InvitationsPostRequestBody CreateFromDiscriminatorValue(IParseNode
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"email_address", n => { EmailAddress = n.GetStringValue(); } },
diff --git a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody_public_metadata.cs
index 80837f3..1ef0e14 100644
--- a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody_public_metadata.cs
+++ b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody_public_metadata.cs
@@ -12,7 +12,7 @@ public class InvitationsPostRequestBody_public_metadata : IAdditionalDataHolder,
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
///
- /// Instantiates a new invitationsPostRequestBody_public_metadata and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public InvitationsPostRequestBody_public_metadata() {
AdditionalData = new Dictionary();
@@ -20,6 +20,7 @@ public InvitationsPostRequestBody_public_metadata() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static InvitationsPostRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -28,6 +29,7 @@ public static InvitationsPostRequestBody_public_metadata CreateFromDiscriminator
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
};
diff --git a/src/Clerk.Net/Client/Invitations/InvitationsRequestBuilder.cs b/src/Clerk.Net/Client/Invitations/InvitationsRequestBuilder.cs
index 3893240..a0faa42 100644
--- a/src/Clerk.Net/Client/Invitations/InvitationsRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Invitations/InvitationsRequestBuilder.cs
@@ -16,28 +16,30 @@ namespace Clerk.Net.Client.Invitations {
public class InvitationsRequestBuilder : BaseRequestBuilder {
/// Gets an item from the Clerk.Net.Client.invitations.item collection
/// The ID of the invitation to be revoked
+ /// A
public WithInvitation_ItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("invitation_id", position);
return new WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter);
} }
///
- /// Instantiates a new InvitationsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public InvitationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations{?status*}", pathParameters) {
+ public InvitationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations{?limit*,offset*,status*}", pathParameters) {
}
///
- /// Instantiates a new InvitationsRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations{?status*}", rawUrl) {
+ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations{?limit*,offset*,status*}", rawUrl) {
}
///
/// Returns all non-revoked invitations for your application, sorted by creation date
///
+ /// A List<Invitation>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -54,9 +56,12 @@ public async Task> GetAsync(Action
/// Creates a new invitation for the given email address and sends the invitation email.Keep in mind that you cannot create an invitation if there is already one for the given email address.Also, trying to create an invitation for an email address that already exists in your application will result to an error.
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(InvitationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -75,6 +80,7 @@ public async Task PostAsync(InvitationsPostRequestBody body, Action<
///
/// Returns all non-revoked invitations for your application, sorted by creation date
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -91,6 +97,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Creates a new invitation for the given email address and sends the invitation email.Keep in mind that you cannot create an invitation if there is already one for the given email address.Also, trying to create an invitation for an email address that already exists in your application will result to an error.
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -101,7 +108,7 @@ public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody bo
public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody body, Action> requestConfiguration = default) {
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/invitations", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
@@ -110,6 +117,7 @@ public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody bo
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public InvitationsRequestBuilder WithUrl(string rawUrl) {
return new InvitationsRequestBuilder(rawUrl, RequestAdapter);
@@ -118,6 +126,12 @@ public InvitationsRequestBuilder WithUrl(string rawUrl) {
/// Returns all non-revoked invitations for your application, sorted by creation date
///
public class InvitationsRequestBuilderGetQueryParameters {
+ /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`.Must be an integer greater than zero and less than 500.By default, if not supplied, a limit of 10 is used.
+ [QueryParameter("limit")]
+ public double? Limit { get; set; }
+ /// Skip the first `offset` results when paginating.Needs to be an integer greater or equal to zero.To be used in conjunction with `limit`.
+ [QueryParameter("offset")]
+ public double? Offset { get; set; }
/// Filter invitations based on their status
[QueryParameter("status")]
public GetStatusQueryParameterType? Status { get; set; }
diff --git a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse.cs b/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse.cs
index 31c8453..7c4bea3 100644
--- a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse.cs
+++ b/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse.cs
@@ -10,7 +10,7 @@ public class RevokePostResponse : Invitation, IAdditionalDataHolder, IParsable {
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
///
- /// Instantiates a new revokePostResponse and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public RevokePostResponse() : base() {
AdditionalData = new Dictionary();
@@ -18,6 +18,7 @@ public RevokePostResponse() : base() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static new RevokePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -26,6 +27,7 @@ public RevokePostResponse() : base() {
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public override IDictionary> GetFieldDeserializers() {
return new Dictionary>(base.GetFieldDeserializers()) {
};
diff --git a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokeRequestBuilder.cs
index bf6ef02..3560505 100644
--- a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokeRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokeRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Invitations.Item.Revoke {
///
public class RevokeRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new RevokeRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public RevokeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation_id}/revoke", pathParameters) {
}
///
- /// Instantiates a new RevokeRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,8 +30,11 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
///
/// Revokes the given invitation.Revoking an invitation will prevent the user from using the invitation link that was sent to them.However, it doesn't prevent the user from signing up if they follow the sign up flow.Only active (i.e. non-revoked) invitations can be revoked.
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -49,6 +52,7 @@ public async Task PostAsync(Action
/// Revokes the given invitation.Revoking an invitation will prevent the user from using the invitation link that was sent to them.However, it doesn't prevent the user from signing up if they follow the sign up flow.Only active (i.e. non-revoked) invitations can be revoked.
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -65,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public RevokeRequestBuilder WithUrl(string rawUrl) {
return new RevokeRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Invitations/Item/WithInvitation_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Invitations/Item/WithInvitation_ItemRequestBuilder.cs
index abb1af3..a7d3e39 100644
--- a/src/Clerk.Net/Client/Invitations/Item/WithInvitation_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Invitations/Item/WithInvitation_ItemRequestBuilder.cs
@@ -16,14 +16,14 @@ public class WithInvitation_ItemRequestBuilder : BaseRequestBuilder {
new RevokeRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new WithInvitation_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public WithInvitation_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation_id}", pathParameters) {
}
///
- /// Instantiates a new WithInvitation_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
diff --git a/src/Clerk.Net/Client/Jwks/JwksRequestBuilder.cs b/src/Clerk.Net/Client/Jwks/JwksRequestBuilder.cs
index 0a0a57a..8b8939f 100644
--- a/src/Clerk.Net/Client/Jwks/JwksRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Jwks/JwksRequestBuilder.cs
@@ -13,14 +13,14 @@ namespace Clerk.Net.Client.Jwks {
///
public class JwksRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new JwksRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public JwksRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/jwks", pathParameters) {
}
///
- /// Instantiates a new JwksRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -29,6 +29,7 @@ public JwksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(
///
/// Retrieve the JSON Web Key Set of the instance
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -44,6 +45,7 @@ public async Task GetAsync(Action
/// Retrieve the JSON Web Key Set of the instance
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -59,6 +61,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public JwksRequestBuilder WithUrl(string rawUrl) {
return new JwksRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_ItemRequestBuilder.cs
index 7e5831f..3a2a623 100644
--- a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_ItemRequestBuilder.cs
@@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Jwt_templates.Item {
///
public class WithTemplate_ItemRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new WithTemplate_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public WithTemplate_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/jwt_templates/{template_id}", pathParameters) {
}
///
- /// Instantiates a new WithTemplate_ItemRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -30,8 +30,11 @@ public WithTemplate_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda
///
/// Delete a Template
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 403 status code
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -49,8 +52,10 @@ public async Task DeleteAsync(Action
/// Retrieve the details of a given JWT template
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 404 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -67,9 +72,13 @@ public async Task GetAsync(Action
/// Updates an existing JWT template
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 402 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PatchAsync(WithTemplate_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -86,6 +95,7 @@ public async Task PatchAsync(WithTemplate_PatchRequestBody body, Ac
};
return await RequestAdapter.SendAsync(requestInfo, JWTTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -102,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action
/// Retrieve the details of a given JWT template
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -118,6 +129,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Updates an existing JWT template
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -137,6 +149,7 @@ public RequestInformation ToPatchRequestInformation(WithTemplate_PatchRequestBod
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public WithTemplate_ItemRequestBuilder WithUrl(string rawUrl) {
return new WithTemplate_ItemRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody.cs b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody.cs
index 4e451ab..fee41dd 100644
--- a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody.cs
+++ b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody.cs
@@ -47,7 +47,7 @@ public class WithTemplate_PatchRequestBody : IAdditionalDataHolder, IParsable {
public string SigningKey { get; set; }
#endif
///
- /// Instantiates a new WithTemplate_PatchRequestBody and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public WithTemplate_PatchRequestBody() {
AdditionalData = new Dictionary();
@@ -55,6 +55,7 @@ public WithTemplate_PatchRequestBody() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static WithTemplate_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -63,6 +64,7 @@ public static WithTemplate_PatchRequestBody CreateFromDiscriminatorValue(IParseN
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"allowed_clock_skew", n => { AllowedClockSkew = n.GetDoubleValue(); } },
diff --git a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody_claims.cs b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody_claims.cs
index 60c8cbc..3a7ea05 100644
--- a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody_claims.cs
+++ b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody_claims.cs
@@ -12,7 +12,7 @@ public class WithTemplate_PatchRequestBody_claims : IAdditionalDataHolder, IPars
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
///
- /// Instantiates a new WithTemplate_PatchRequestBody_claims and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public WithTemplate_PatchRequestBody_claims() {
AdditionalData = new Dictionary();
@@ -20,6 +20,7 @@ public WithTemplate_PatchRequestBody_claims() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static WithTemplate_PatchRequestBody_claims CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -28,6 +29,7 @@ public static WithTemplate_PatchRequestBody_claims CreateFromDiscriminatorValue(
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
};
diff --git a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody.cs b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody.cs
index 8feb990..55dfee2 100644
--- a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody.cs
@@ -47,7 +47,7 @@ public class Jwt_templatesPostRequestBody : IAdditionalDataHolder, IParsable {
public string SigningKey { get; set; }
#endif
///
- /// Instantiates a new jwt_templatesPostRequestBody and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Jwt_templatesPostRequestBody() {
AdditionalData = new Dictionary();
@@ -55,6 +55,7 @@ public Jwt_templatesPostRequestBody() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Jwt_templatesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -63,6 +64,7 @@ public static Jwt_templatesPostRequestBody CreateFromDiscriminatorValue(IParseNo
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"allowed_clock_skew", n => { AllowedClockSkew = n.GetDoubleValue(); } },
diff --git a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody_claims.cs b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody_claims.cs
index 40dbd23..48988e9 100644
--- a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody_claims.cs
+++ b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody_claims.cs
@@ -12,7 +12,7 @@ public class Jwt_templatesPostRequestBody_claims : IAdditionalDataHolder, IParsa
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
///
- /// Instantiates a new jwt_templatesPostRequestBody_claims and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Jwt_templatesPostRequestBody_claims() {
AdditionalData = new Dictionary();
@@ -20,6 +20,7 @@ public Jwt_templatesPostRequestBody_claims() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Jwt_templatesPostRequestBody_claims CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -28,6 +29,7 @@ public static Jwt_templatesPostRequestBody_claims CreateFromDiscriminatorValue(I
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
};
diff --git a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesRequestBuilder.cs b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesRequestBuilder.cs
index 07f80ed..5352bd3 100644
--- a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesRequestBuilder.cs
@@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Jwt_templates {
public class Jwt_templatesRequestBuilder : BaseRequestBuilder {
/// Gets an item from the Clerk.Net.Client.jwt_templates.item collection
/// JWT Template ID
+ /// A
public WithTemplate_ItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("template_id", position);
return new WithTemplate_ItemRequestBuilder(urlTplParams, RequestAdapter);
} }
///
- /// Instantiates a new Jwt_templatesRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
public Jwt_templatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/jwt_templates", pathParameters) {
}
///
- /// Instantiates a new Jwt_templatesRequestBuilder and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -38,6 +39,7 @@ public Jwt_templatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
///
/// List all templates
///
+ /// A List<JWTTemplate>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -54,9 +56,13 @@ public async Task> GetAsync(Action
/// Create a new JWT template
///
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 400 status code
+ /// When receiving a 402 status code
+ /// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Jwt_templatesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -76,6 +82,7 @@ public async Task PostAsync(Jwt_templatesPostRequestBody body, Acti
///
/// List all templates
///
+ /// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -92,6 +99,7 @@ public RequestInformation ToGetRequestInformation(Action
/// Create a new JWT template
///
+ /// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -111,6 +119,7 @@ public RequestInformation ToPostRequestInformation(Jwt_templatesPostRequestBody
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
+ /// A
/// The raw URL to use for the request builder.
public Jwt_templatesRequestBuilder WithUrl(string rawUrl) {
return new Jwt_templatesRequestBuilder(rawUrl, RequestAdapter);
diff --git a/src/Clerk.Net/Client/Models/ActorToken.cs b/src/Clerk.Net/Client/Models/ActorToken.cs
index 017dd7a..8790d52 100644
--- a/src/Clerk.Net/Client/Models/ActorToken.cs
+++ b/src/Clerk.Net/Client/Models/ActorToken.cs
@@ -57,6 +57,7 @@ public class ActorToken : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static ActorToken CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -65,6 +66,7 @@ public static ActorToken CreateFromDiscriminatorValue(IParseNode parseNode) {
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"actor", n => { Actor = n.GetObjectValue(ActorToken_actor.CreateFromDiscriminatorValue); } },
diff --git a/src/Clerk.Net/Client/Models/ActorToken_actor.cs b/src/Clerk.Net/Client/Models/ActorToken_actor.cs
index 2d7d29c..aad080f 100644
--- a/src/Clerk.Net/Client/Models/ActorToken_actor.cs
+++ b/src/Clerk.Net/Client/Models/ActorToken_actor.cs
@@ -9,7 +9,7 @@ public class ActorToken_actor : IAdditionalDataHolder, IParsable {
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
///
- /// Instantiates a new ActorToken_actor and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public ActorToken_actor() {
AdditionalData = new Dictionary();
@@ -17,6 +17,7 @@ public ActorToken_actor() {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static ActorToken_actor CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -25,6 +26,7 @@ public static ActorToken_actor CreateFromDiscriminatorValue(IParseNode parseNode
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
};
diff --git a/src/Clerk.Net/Client/Models/Admin.cs b/src/Clerk.Net/Client/Models/Admin.cs
index b158826..7a51f53 100644
--- a/src/Clerk.Net/Client/Models/Admin.cs
+++ b/src/Clerk.Net/Client/Models/Admin.cs
@@ -17,6 +17,7 @@ public class Admin : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static Admin CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -25,6 +26,7 @@ public static Admin CreateFromDiscriminatorValue(IParseNode parseNode) {
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"attempts", n => { Attempts = n.GetIntValue(); } },
diff --git a/src/Clerk.Net/Client/Models/AllowlistIdentifier.cs b/src/Clerk.Net/Client/Models/AllowlistIdentifier.cs
index 7800fde..d1d3cd9 100644
--- a/src/Clerk.Net/Client/Models/AllowlistIdentifier.cs
+++ b/src/Clerk.Net/Client/Models/AllowlistIdentifier.cs
@@ -49,6 +49,7 @@ public class AllowlistIdentifier : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static AllowlistIdentifier CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -57,6 +58,7 @@ public static AllowlistIdentifier CreateFromDiscriminatorValue(IParseNode parseN
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"created_at", n => { CreatedAt = n.GetLongValue(); } },
diff --git a/src/Clerk.Net/Client/Models/BlocklistIdentifier.cs b/src/Clerk.Net/Client/Models/BlocklistIdentifier.cs
index 71da83e..9460c75 100644
--- a/src/Clerk.Net/Client/Models/BlocklistIdentifier.cs
+++ b/src/Clerk.Net/Client/Models/BlocklistIdentifier.cs
@@ -41,6 +41,7 @@ public class BlocklistIdentifier : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static BlocklistIdentifier CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -49,6 +50,7 @@ public static BlocklistIdentifier CreateFromDiscriminatorValue(IParseNode parseN
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"created_at", n => { CreatedAt = n.GetLongValue(); } },
diff --git a/src/Clerk.Net/Client/Models/BlocklistIdentifiers.cs b/src/Clerk.Net/Client/Models/BlocklistIdentifiers.cs
index a289bf7..0932a77 100644
--- a/src/Clerk.Net/Client/Models/BlocklistIdentifiers.cs
+++ b/src/Clerk.Net/Client/Models/BlocklistIdentifiers.cs
@@ -19,6 +19,7 @@ public class BlocklistIdentifiers : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A
/// The parse node to use to read the discriminator value and create the object
public static BlocklistIdentifiers CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
@@ -27,6 +28,7 @@ public static BlocklistIdentifiers CreateFromDiscriminatorValue(IParseNode parse
///
/// The deserialization information for the current model
///
+ /// A IDictionary<string, Action<IParseNode>>
public virtual IDictionary> GetFieldDeserializers() {
return new Dictionary> {
{"data", n => { Data = n.GetCollectionOfObjectValues(BlocklistIdentifier.CreateFromDiscriminatorValue)?.ToList(); } },
diff --git a/src/Clerk.Net/Client/Models/CNameTarget.cs b/src/Clerk.Net/Client/Models/CNameTarget.cs
index 5ce4c67..ebe3b61 100644
--- a/src/Clerk.Net/Client/Models/CNameTarget.cs
+++ b/src/Clerk.Net/Client/Models/CNameTarget.cs
@@ -27,6 +27,7 @@ public class CNameTarget : IParsable {
///
/// Creates a new instance of the appropriate class based on discriminator value
///
+ /// A