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 /// The parse node to use to read the discriminator value and create the object public static CNameTarget CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -35,6 +36,7 @@ public static CNameTarget CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"host", n => { Host = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Models/ClerkError.cs b/src/Clerk.Net/Client/Models/ClerkError.cs index 3d5a596..fb120f4 100644 --- a/src/Clerk.Net/Client/Models/ClerkError.cs +++ b/src/Clerk.Net/Client/Models/ClerkError.cs @@ -49,7 +49,7 @@ public class ClerkError : IAdditionalDataHolder, IParsable { public ClerkError_meta Meta { get; set; } #endif /// - /// Instantiates a new ClerkError and sets the default values. + /// Instantiates a new and sets the default values. /// public ClerkError() { AdditionalData = new Dictionary(); @@ -57,6 +57,7 @@ public ClerkError() { /// /// 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 ClerkError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -65,6 +66,7 @@ public static ClerkError CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clerk_trace_id", n => { ClerkTraceId = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Models/ClerkError_meta.cs b/src/Clerk.Net/Client/Models/ClerkError_meta.cs index 3cea7cd..f324b17 100644 --- a/src/Clerk.Net/Client/Models/ClerkError_meta.cs +++ b/src/Clerk.Net/Client/Models/ClerkError_meta.cs @@ -9,7 +9,7 @@ public class ClerkError_meta : 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 ClerkError_meta and sets the default values. + /// Instantiates a new and sets the default values. /// public ClerkError_meta() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public ClerkError_meta() { /// /// 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 ClerkError_meta CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static ClerkError_meta 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/ClerkErrors.cs b/src/Clerk.Net/Client/Models/ClerkErrors.cs index 09f8e72..43847f8 100644 --- a/src/Clerk.Net/Client/Models/ClerkErrors.cs +++ b/src/Clerk.Net/Client/Models/ClerkErrors.cs @@ -28,7 +28,7 @@ public class ClerkErrors : ApiException, IAdditionalDataHolder, IParsable { public ClerkErrors_meta Meta { get; set; } #endif /// - /// Instantiates a new ClerkErrors and sets the default values. + /// Instantiates a new and sets the default values. /// public ClerkErrors() { AdditionalData = new Dictionary(); @@ -36,6 +36,7 @@ public ClerkErrors() { /// /// 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 ClerkErrors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -44,6 +45,7 @@ public static ClerkErrors CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"errors", n => { Errors = n.GetCollectionOfObjectValues(ClerkError.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Clerk.Net/Client/Models/ClerkErrors_meta.cs b/src/Clerk.Net/Client/Models/ClerkErrors_meta.cs index 35b3036..0754056 100644 --- a/src/Clerk.Net/Client/Models/ClerkErrors_meta.cs +++ b/src/Clerk.Net/Client/Models/ClerkErrors_meta.cs @@ -9,7 +9,7 @@ public class ClerkErrors_meta : 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 ClerkErrors_meta and sets the default values. + /// Instantiates a new and sets the default values. /// public ClerkErrors_meta() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public ClerkErrors_meta() { /// /// 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 ClerkErrors_meta CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static ClerkErrors_meta 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/Client.cs b/src/Clerk.Net/Client/Models/Client.cs index 13a1f02..8ef841a 100644 --- a/src/Clerk.Net/Client/Models/Client.cs +++ b/src/Clerk.Net/Client/Models/Client.cs @@ -63,6 +63,7 @@ public class Client : 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 Client CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -71,6 +72,7 @@ public static Client CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// 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/DeletedObject.cs b/src/Clerk.Net/Client/Models/DeletedObject.cs index ca9225e..0b3293c 100644 --- a/src/Clerk.Net/Client/Models/DeletedObject.cs +++ b/src/Clerk.Net/Client/Models/DeletedObject.cs @@ -35,6 +35,7 @@ public class DeletedObject : 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 DeletedObject CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -43,6 +44,7 @@ public static DeletedObject CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deleted", n => { Deleted = n.GetBoolValue(); } }, diff --git a/src/Clerk.Net/Client/Models/Domain.cs b/src/Clerk.Net/Client/Models/Domain.cs index 9fb37ab..7b6fc6f 100644 --- a/src/Clerk.Net/Client/Models/Domain.cs +++ b/src/Clerk.Net/Client/Models/Domain.cs @@ -69,7 +69,7 @@ public class Domain : IAdditionalDataHolder, IParsable { public string ProxyUrl { get; set; } #endif /// - /// Instantiates a new Domain and sets the default values. + /// Instantiates a new and sets the default values. /// public Domain() { AdditionalData = new Dictionary(); @@ -77,6 +77,7 @@ public Domain() { /// /// 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 Domain CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -85,6 +86,7 @@ public static Domain CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accounts_portal_url", n => { AccountsPortalUrl = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Models/Domains.cs b/src/Clerk.Net/Client/Models/Domains.cs index 0c74461..cf6ee86 100644 --- a/src/Clerk.Net/Client/Models/Domains.cs +++ b/src/Clerk.Net/Client/Models/Domains.cs @@ -19,6 +19,7 @@ public class Domains : 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 Domains CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -27,6 +28,7 @@ public static Domains CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetCollectionOfObjectValues(Domain.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Clerk.Net/Client/Models/Email.cs b/src/Clerk.Net/Client/Models/Email.cs deleted file mode 100644 index a5bca7f..0000000 --- a/src/Clerk.Net/Client/Models/Email.cs +++ /dev/null @@ -1,150 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace Clerk.Net.Client.Models { - public class Email : IParsable { - /// The body property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Body { get; set; } -#nullable restore -#else - public string Body { get; set; } -#endif - /// The body_plain property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BodyPlain { get; set; } -#nullable restore -#else - public string BodyPlain { get; set; } -#endif - /// The data property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Email_data? Data { get; set; } -#nullable restore -#else - public Email_data Data { get; set; } -#endif - /// The delivered_by_clerk property - public bool? DeliveredByClerk { get; set; } - /// The email_address_id property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? EmailAddressId { get; set; } -#nullable restore -#else - public string EmailAddressId { get; set; } -#endif - /// The from_email_name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? FromEmailName { get; set; } -#nullable restore -#else - public string FromEmailName { get; set; } -#endif - /// The id property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Id { get; set; } -#nullable restore -#else - public string Id { get; set; } -#endif - /// The object property - public Email_object? Object { get; set; } - /// The slug property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Slug { get; set; } -#nullable restore -#else - public string Slug { get; set; } -#endif - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// The subject property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subject { get; set; } -#nullable restore -#else - public string Subject { get; set; } -#endif - /// The to_email_address property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ToEmailAddress { get; set; } -#nullable restore -#else - public string ToEmailAddress { get; set; } -#endif - /// The user_id property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserId { get; set; } -#nullable restore -#else - public string UserId { get; set; } -#endif - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// The parse node to use to read the discriminator value and create the object - public static Email CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Email(); - } - /// - /// The deserialization information for the current model - /// - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"body_plain", n => { BodyPlain = n.GetStringValue(); } }, - {"data", n => { Data = n.GetObjectValue(Email_data.CreateFromDiscriminatorValue); } }, - {"delivered_by_clerk", n => { DeliveredByClerk = n.GetBoolValue(); } }, - {"email_address_id", n => { EmailAddressId = n.GetStringValue(); } }, - {"from_email_name", n => { FromEmailName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"subject", n => { Subject = n.GetStringValue(); } }, - {"to_email_address", n => { ToEmailAddress = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("body", Body); - writer.WriteStringValue("body_plain", BodyPlain); - writer.WriteObjectValue("data", Data); - writer.WriteBoolValue("delivered_by_clerk", DeliveredByClerk); - writer.WriteStringValue("email_address_id", EmailAddressId); - writer.WriteStringValue("from_email_name", FromEmailName); - writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); - writer.WriteStringValue("slug", Slug); - writer.WriteStringValue("status", Status); - writer.WriteStringValue("subject", Subject); - writer.WriteStringValue("to_email_address", ToEmailAddress); - writer.WriteStringValue("user_id", UserId); - } - } -} diff --git a/src/Clerk.Net/Client/Models/EmailAddress.cs b/src/Clerk.Net/Client/Models/EmailAddress.cs index c1527a3..f5e38ba 100644 --- a/src/Clerk.Net/Client/Models/EmailAddress.cs +++ b/src/Clerk.Net/Client/Models/EmailAddress.cs @@ -45,6 +45,7 @@ public class EmailAddress : 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 EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -53,6 +54,7 @@ public static EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"email_address", n => { EmailAddressProp = n.GetStringValue(); } }, @@ -77,10 +79,10 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteObjectValue("verification", Verification); } /// - /// Composed type wrapper for classes Admin, OTP + /// Composed type wrapper for classes , , /// public class EmailAddress_verification : IComposedTypeWrapper, IParsable { - /// Composed type representation for type Admin + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Clerk.Net.Client.Models.Admin? Admin { get; set; } @@ -88,7 +90,15 @@ public class EmailAddress_verification : IComposedTypeWrapper, IParsable { #else public Clerk.Net.Client.Models.Admin Admin { get; set; } #endif - /// Composed type representation for type OTP + /// Composed type representation for type +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Clerk.Net.Client.Models.Oauth? Oauth { get; set; } +#nullable restore +#else + public Clerk.Net.Client.Models.Oauth Oauth { get; set; } +#endif + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Clerk.Net.Client.Models.OTP? OTP { get; set; } @@ -99,6 +109,7 @@ public class EmailAddress_verification : IComposedTypeWrapper, 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 EmailAddress_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -110,15 +121,22 @@ public static EmailAddress_verification CreateFromDiscriminatorValue(IParseNode else if("OTP".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { result.OTP = new Clerk.Net.Client.Models.OTP(); } + else if("Oauth".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { + result.Oauth = new Clerk.Net.Client.Models.Oauth(); + } return result; } /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { if(Admin != null) { return Admin.GetFieldDeserializers(); } + else if(Oauth != null) { + return Oauth.GetFieldDeserializers(); + } else if(OTP != null) { return OTP.GetFieldDeserializers(); } @@ -133,6 +151,9 @@ public virtual void Serialize(ISerializationWriter writer) { if(Admin != null) { writer.WriteObjectValue(null, Admin); } + else if(Oauth != null) { + writer.WriteObjectValue(null, Oauth); + } else if(OTP != null) { writer.WriteObjectValue(null, OTP); } diff --git a/src/Clerk.Net/Client/Models/Email_object.cs b/src/Clerk.Net/Client/Models/Email_object.cs deleted file mode 100644 index 0903732..0000000 --- a/src/Clerk.Net/Client/Models/Email_object.cs +++ /dev/null @@ -1,9 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace Clerk.Net.Client.Models { - public enum Email_object { - [EnumMember(Value = "email")] - Email, - } -} diff --git a/src/Clerk.Net/Client/Models/IdentificationLink.cs b/src/Clerk.Net/Client/Models/IdentificationLink.cs index 6b2dce7..de47862 100644 --- a/src/Clerk.Net/Client/Models/IdentificationLink.cs +++ b/src/Clerk.Net/Client/Models/IdentificationLink.cs @@ -19,6 +19,7 @@ public class IdentificationLink : 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 IdentificationLink CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -27,6 +28,7 @@ public static IdentificationLink CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Models/InstanceRestrictions.cs b/src/Clerk.Net/Client/Models/InstanceRestrictions.cs index 7ecdb7a..0b2605d 100644 --- a/src/Clerk.Net/Client/Models/InstanceRestrictions.cs +++ b/src/Clerk.Net/Client/Models/InstanceRestrictions.cs @@ -17,7 +17,7 @@ public class InstanceRestrictions : IAdditionalDataHolder, IParsable { /// String representing the object's type. Objects of the same type share the same value. public InstanceRestrictions_object? Object { get; set; } /// - /// Instantiates a new InstanceRestrictions and sets the default values. + /// Instantiates a new and sets the default values. /// public InstanceRestrictions() { AdditionalData = new Dictionary(); @@ -25,6 +25,7 @@ public InstanceRestrictions() { /// /// 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 InstanceRestrictions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -33,6 +34,7 @@ public static InstanceRestrictions CreateFromDiscriminatorValue(IParseNode parse /// /// 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/Models/Invitation.cs b/src/Clerk.Net/Client/Models/Invitation.cs index 29aff06..0afce09 100644 --- a/src/Clerk.Net/Client/Models/Invitation.cs +++ b/src/Clerk.Net/Client/Models/Invitation.cs @@ -51,6 +51,7 @@ public class Invitation : 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 Invitation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -59,6 +60,7 @@ public static Invitation CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// 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/Invitation_public_metadata.cs b/src/Clerk.Net/Client/Models/Invitation_public_metadata.cs index 3f0488f..432a193 100644 --- a/src/Clerk.Net/Client/Models/Invitation_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/Invitation_public_metadata.cs @@ -9,7 +9,7 @@ public class Invitation_public_metadata : 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 Invitation_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public Invitation_public_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public Invitation_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 Invitation_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static Invitation_public_metadata CreateFromDiscriminatorValue(IParseNode /// /// 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/JWTTemplate.cs b/src/Clerk.Net/Client/Models/JWTTemplate.cs index f7d4ea1..81e5970 100644 --- a/src/Clerk.Net/Client/Models/JWTTemplate.cs +++ b/src/Clerk.Net/Client/Models/JWTTemplate.cs @@ -53,6 +53,7 @@ public class JWTTemplate : 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 JWTTemplate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -61,6 +62,7 @@ public static JWTTemplate CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// 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.GetIntValue(); } }, diff --git a/src/Clerk.Net/Client/Models/JWTTemplate_claims.cs b/src/Clerk.Net/Client/Models/JWTTemplate_claims.cs index 1a786bb..673d334 100644 --- a/src/Clerk.Net/Client/Models/JWTTemplate_claims.cs +++ b/src/Clerk.Net/Client/Models/JWTTemplate_claims.cs @@ -9,7 +9,7 @@ public class JWTTemplate_claims : 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 JWTTemplate_claims and sets the default values. + /// Instantiates a new and sets the default values. /// public JWTTemplate_claims() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public JWTTemplate_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 JWTTemplate_claims CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static JWTTemplate_claims CreateFromDiscriminatorValue(IParseNode parseNo /// /// 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/OAuthApplication.cs b/src/Clerk.Net/Client/Models/OAuthApplication.cs index b662b7a..63c10c4 100644 --- a/src/Clerk.Net/Client/Models/OAuthApplication.cs +++ b/src/Clerk.Net/Client/Models/OAuthApplication.cs @@ -89,7 +89,7 @@ public class OAuthApplication : IAdditionalDataHolder, IParsable { public string UserInfoUrl { get; set; } #endif /// - /// Instantiates a new OAuthApplication and sets the default values. + /// Instantiates a new and sets the default values. /// public OAuthApplication() { AdditionalData = new Dictionary(); @@ -97,6 +97,7 @@ public OAuthApplication() { /// /// 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 OAuthApplication CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -105,6 +106,7 @@ public static OAuthApplication CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"authorize_url", n => { AuthorizeUrl = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Models/OAuthApplicationWithSecret.cs b/src/Clerk.Net/Client/Models/OAuthApplicationWithSecret.cs index fdb3911..f9df15a 100644 --- a/src/Clerk.Net/Client/Models/OAuthApplicationWithSecret.cs +++ b/src/Clerk.Net/Client/Models/OAuthApplicationWithSecret.cs @@ -17,6 +17,7 @@ public class OAuthApplicationWithSecret : OAuthApplication, 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 new OAuthApplicationWithSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public class OAuthApplicationWithSecret : OAuthApplication, IParsable { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"client_secret", n => { ClientSecret = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Models/OAuthApplications.cs b/src/Clerk.Net/Client/Models/OAuthApplications.cs index a3c56a4..37d9ae2 100644 --- a/src/Clerk.Net/Client/Models/OAuthApplications.cs +++ b/src/Clerk.Net/Client/Models/OAuthApplications.cs @@ -19,6 +19,7 @@ public class OAuthApplications : 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 OAuthApplications CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -27,6 +28,7 @@ public static OAuthApplications CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetCollectionOfObjectValues(OAuthApplication.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Clerk.Net/Client/Models/OTP.cs b/src/Clerk.Net/Client/Models/OTP.cs index 4d5502c..6b891f7 100644 --- a/src/Clerk.Net/Client/Models/OTP.cs +++ b/src/Clerk.Net/Client/Models/OTP.cs @@ -17,6 +17,7 @@ public class OTP : 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 OTP CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static OTP 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/OTP_strategy.cs b/src/Clerk.Net/Client/Models/OTP_strategy.cs index 80cde2a..d0386f5 100644 --- a/src/Clerk.Net/Client/Models/OTP_strategy.cs +++ b/src/Clerk.Net/Client/Models/OTP_strategy.cs @@ -7,5 +7,7 @@ public enum OTP_strategy { Phone_code, [EnumMember(Value = "email_code")] Email_code, + [EnumMember(Value = "reset_password_email_code")] + Reset_password_email_code, } } diff --git a/src/Clerk.Net/Client/Models/Oauth.cs b/src/Clerk.Net/Client/Models/Oauth.cs new file mode 100644 index 0000000..4d7a58e --- /dev/null +++ b/src/Clerk.Net/Client/Models/Oauth.cs @@ -0,0 +1,70 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Clerk.Net.Client.Models { + public class Oauth : IParsable { + /// The attempts property + public int? Attempts { get; set; } + /// The error property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Oauth_error? Error { get; set; } +#nullable restore +#else + public Oauth_error Error { get; set; } +#endif + /// The expire_at property + public int? ExpireAt { get; set; } + /// The external_verification_redirect_url property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ExternalVerificationRedirectUrl { get; set; } +#nullable restore +#else + public string ExternalVerificationRedirectUrl { get; set; } +#endif + /// The status property + public Oauth_status? Status { get; set; } + /// The strategy property + public Oauth_strategy? Strategy { get; set; } + /// + /// 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 Oauth CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Oauth(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"attempts", n => { Attempts = n.GetIntValue(); } }, + {"error", n => { Error = n.GetObjectValue(Oauth_error.CreateFromDiscriminatorValue); } }, + {"expire_at", n => { ExpireAt = n.GetIntValue(); } }, + {"external_verification_redirect_url", n => { ExternalVerificationRedirectUrl = n.GetStringValue(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + {"strategy", n => { Strategy = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("attempts", Attempts); + writer.WriteObjectValue("error", Error); + writer.WriteIntValue("expire_at", ExpireAt); + writer.WriteStringValue("external_verification_redirect_url", ExternalVerificationRedirectUrl); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("strategy", Strategy); + } + } +} diff --git a/src/Clerk.Net/Client/Models/Email_data.cs b/src/Clerk.Net/Client/Models/Oauth_error.cs similarity index 77% rename from src/Clerk.Net/Client/Models/Email_data.cs rename to src/Clerk.Net/Client/Models/Oauth_error.cs index d9aceed..3d7614c 100644 --- a/src/Clerk.Net/Client/Models/Email_data.cs +++ b/src/Clerk.Net/Client/Models/Oauth_error.cs @@ -5,26 +5,28 @@ using System.Linq; using System; namespace Clerk.Net.Client.Models { - public class Email_data : IAdditionalDataHolder, IParsable { + public class Oauth_error : 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 Email_data and sets the default values. + /// Instantiates a new and sets the default values. /// - public Email_data() { + public Oauth_error() { AdditionalData = new Dictionary(); } /// /// 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_data CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Oauth_error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Email_data(); + return new Oauth_error(); } /// /// 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/Oauth_status.cs b/src/Clerk.Net/Client/Models/Oauth_status.cs new file mode 100644 index 0000000..ae9104d --- /dev/null +++ b/src/Clerk.Net/Client/Models/Oauth_status.cs @@ -0,0 +1,17 @@ +// +using System.Runtime.Serialization; +using System; +namespace Clerk.Net.Client.Models { + public enum Oauth_status { + [EnumMember(Value = "unverified")] + Unverified, + [EnumMember(Value = "verified")] + Verified, + [EnumMember(Value = "failed")] + Failed, + [EnumMember(Value = "expired")] + Expired, + [EnumMember(Value = "transferable")] + Transferable, + } +} diff --git a/src/Clerk.Net/Client/Models/Oauth_strategy.cs b/src/Clerk.Net/Client/Models/Oauth_strategy.cs new file mode 100644 index 0000000..bf0fc17 --- /dev/null +++ b/src/Clerk.Net/Client/Models/Oauth_strategy.cs @@ -0,0 +1,11 @@ +// +using System.Runtime.Serialization; +using System; +namespace Clerk.Net.Client.Models { + public enum Oauth_strategy { + [EnumMember(Value = "oauth_google")] + Oauth_google, + [EnumMember(Value = "oauth_mock")] + Oauth_mock, + } +} diff --git a/src/Clerk.Net/Client/Models/Organization.cs b/src/Clerk.Net/Client/Models/Organization.cs index bbbf12d..9725ba8 100644 --- a/src/Clerk.Net/Client/Models/Organization.cs +++ b/src/Clerk.Net/Client/Models/Organization.cs @@ -69,7 +69,7 @@ public class Organization : IAdditionalDataHolder, IParsable { /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// - /// Instantiates a new Organization and sets the default values. + /// Instantiates a new and sets the default values. /// public Organization() { AdditionalData = new Dictionary(); @@ -77,6 +77,7 @@ public Organization() { /// /// 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 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -85,6 +86,7 @@ public static Organization CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// 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/Models/OrganizationInvitation.cs b/src/Clerk.Net/Client/Models/OrganizationInvitation.cs index bdc0cb6..6f796ba 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitation.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitation.cs @@ -74,7 +74,7 @@ public class OrganizationInvitation : IAdditionalDataHolder, IParsable { /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// - /// Instantiates a new OrganizationInvitation and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationInvitation() { AdditionalData = new Dictionary(); @@ -82,6 +82,7 @@ public OrganizationInvitation() { /// /// 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 OrganizationInvitation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -90,6 +91,7 @@ public static OrganizationInvitation CreateFromDiscriminatorValue(IParseNode par /// /// 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/OrganizationInvitation_private_metadata.cs b/src/Clerk.Net/Client/Models/OrganizationInvitation_private_metadata.cs index 3b98e17..636f835 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitation_private_metadata.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitation_private_metadata.cs @@ -9,7 +9,7 @@ public class OrganizationInvitation_private_metadata : IAdditionalDataHolder, IP /// 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 OrganizationInvitation_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationInvitation_private_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public OrganizationInvitation_private_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 OrganizationInvitation_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static OrganizationInvitation_private_metadata CreateFromDiscriminatorVal /// /// 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/OrganizationInvitation_public_metadata.cs b/src/Clerk.Net/Client/Models/OrganizationInvitation_public_metadata.cs index efc9206..cb9cfe1 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitation_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitation_public_metadata.cs @@ -9,7 +9,7 @@ public class OrganizationInvitation_public_metadata : IAdditionalDataHolder, IPa /// 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 OrganizationInvitation_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationInvitation_public_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public OrganizationInvitation_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 OrganizationInvitation_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static OrganizationInvitation_public_metadata CreateFromDiscriminatorValu /// /// 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/OrganizationInvitations.cs b/src/Clerk.Net/Client/Models/OrganizationInvitations.cs index e9abdeb..2601896 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitations.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitations.cs @@ -19,6 +19,7 @@ public class OrganizationInvitations : 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 OrganizationInvitations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -27,6 +28,7 @@ public static OrganizationInvitations CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetCollectionOfObjectValues(OrganizationInvitation.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Clerk.Net/Client/Models/OrganizationMembership.cs b/src/Clerk.Net/Client/Models/OrganizationMembership.cs index 794791e..30477b9 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership.cs @@ -74,7 +74,7 @@ public class OrganizationMembership : IAdditionalDataHolder, IParsable { /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// - /// Instantiates a new OrganizationMembership and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationMembership() { AdditionalData = new Dictionary(); @@ -82,6 +82,7 @@ public OrganizationMembership() { /// /// 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 OrganizationMembership CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -90,6 +91,7 @@ public static OrganizationMembership CreateFromDiscriminatorValue(IParseNode par /// /// 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/OrganizationMembership_organization.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_organization.cs index 366b15c..086c668 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_organization.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_organization.cs @@ -9,6 +9,7 @@ public class OrganizationMembership_organization : Organization, 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 new OrganizationMembership_organization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -17,6 +18,7 @@ public class OrganizationMembership_organization : Organization, IParsable { /// /// 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/Models/OrganizationMembership_private_metadata.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_private_metadata.cs index afaf7dc..86635dd 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_private_metadata.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_private_metadata.cs @@ -12,7 +12,7 @@ public class OrganizationMembership_private_metadata : IAdditionalDataHolder, IP /// 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 OrganizationMembership_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationMembership_private_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public OrganizationMembership_private_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 OrganizationMembership_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static OrganizationMembership_private_metadata CreateFromDiscriminatorVal /// /// 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/OrganizationMembership_public_metadata.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_public_metadata.cs index 59354f3..e01e7c2 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_public_metadata.cs @@ -12,7 +12,7 @@ public class OrganizationMembership_public_metadata : IAdditionalDataHolder, IPa /// 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 OrganizationMembership_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationMembership_public_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public OrganizationMembership_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 OrganizationMembership_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static OrganizationMembership_public_metadata CreateFromDiscriminatorValu /// /// 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/OrganizationMembership_public_user_data.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_public_user_data.cs index d61e498..82ac1d5 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_public_user_data.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_public_user_data.cs @@ -60,6 +60,7 @@ public class OrganizationMembership_public_user_data : 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 OrganizationMembership_public_user_data CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -68,6 +69,7 @@ public static OrganizationMembership_public_user_data CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"first_name", n => { FirstName = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Models/OrganizationMemberships.cs b/src/Clerk.Net/Client/Models/OrganizationMemberships.cs index eb02036..c9f5640 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMemberships.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMemberships.cs @@ -19,6 +19,7 @@ public class OrganizationMemberships : 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 OrganizationMemberships CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -27,6 +28,7 @@ public static OrganizationMemberships CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetCollectionOfObjectValues(OrganizationMembership.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Clerk.Net/Client/Models/OrganizationSettings.cs b/src/Clerk.Net/Client/Models/OrganizationSettings.cs index fcfe8e4..49bd1b3 100644 --- a/src/Clerk.Net/Client/Models/OrganizationSettings.cs +++ b/src/Clerk.Net/Client/Models/OrganizationSettings.cs @@ -38,11 +38,16 @@ public class OrganizationSettings : IParsable { public bool? Enabled { get; set; } /// The max_allowed_memberships property public int? MaxAllowedMemberships { get; set; } + /// The max_allowed_permissions property + public int? MaxAllowedPermissions { get; set; } + /// The max_allowed_roles property + public int? MaxAllowedRoles { get; set; } /// String representing the object's type. Objects of the same type share the same value. public OrganizationSettings_object? Object { get; set; } /// /// 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 OrganizationSettings CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -51,6 +56,7 @@ public static OrganizationSettings CreateFromDiscriminatorValue(IParseNode parse /// /// 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(); } }, @@ -60,6 +66,8 @@ public virtual IDictionary> GetFieldDeserializers() { {"domains_enrollment_modes", n => { DomainsEnrollmentModes = n.GetCollectionOfEnumValues()?.ToList(); } }, {"enabled", n => { Enabled = n.GetBoolValue(); } }, {"max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, + {"max_allowed_permissions", n => { MaxAllowedPermissions = n.GetIntValue(); } }, + {"max_allowed_roles", n => { MaxAllowedRoles = n.GetIntValue(); } }, {"object", n => { Object = n.GetEnumValue(); } }, }; } @@ -76,6 +84,8 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfEnumValues("domains_enrollment_modes", DomainsEnrollmentModes); writer.WriteBoolValue("enabled", Enabled); writer.WriteIntValue("max_allowed_memberships", MaxAllowedMemberships); + writer.WriteIntValue("max_allowed_permissions", MaxAllowedPermissions); + writer.WriteIntValue("max_allowed_roles", MaxAllowedRoles); writer.WriteEnumValue("object", Object); } } diff --git a/src/Clerk.Net/Client/Models/OrganizationWithLogo.cs b/src/Clerk.Net/Client/Models/OrganizationWithLogo.cs index ef3b44c..8ed4b8c 100644 --- a/src/Clerk.Net/Client/Models/OrganizationWithLogo.cs +++ b/src/Clerk.Net/Client/Models/OrganizationWithLogo.cs @@ -28,6 +28,7 @@ public class OrganizationWithLogo : Organization, 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 new OrganizationWithLogo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -36,6 +37,7 @@ public class OrganizationWithLogo : Organization, IParsable { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"has_image", n => { HasImage = n.GetBoolValue(); } }, diff --git a/src/Clerk.Net/Client/Models/Organization_private_metadata.cs b/src/Clerk.Net/Client/Models/Organization_private_metadata.cs index bd46b1f..b322a51 100644 --- a/src/Clerk.Net/Client/Models/Organization_private_metadata.cs +++ b/src/Clerk.Net/Client/Models/Organization_private_metadata.cs @@ -9,7 +9,7 @@ public class Organization_private_metadata : 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 Organization_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public Organization_private_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public Organization_private_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 Organization_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static Organization_private_metadata CreateFromDiscriminatorValue(IParseN /// /// 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/Organization_public_metadata.cs b/src/Clerk.Net/Client/Models/Organization_public_metadata.cs index 7025b8b..d15a894 100644 --- a/src/Clerk.Net/Client/Models/Organization_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/Organization_public_metadata.cs @@ -9,7 +9,7 @@ public class Organization_public_metadata : 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 Organization_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public Organization_public_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public Organization_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 Organization_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static Organization_public_metadata CreateFromDiscriminatorValue(IParseNo /// /// 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/Organizations.cs b/src/Clerk.Net/Client/Models/Organizations.cs index 03c1d1c..f1b8ded 100644 --- a/src/Clerk.Net/Client/Models/Organizations.cs +++ b/src/Clerk.Net/Client/Models/Organizations.cs @@ -19,6 +19,7 @@ public class Organizations : 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 Organizations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -27,6 +28,7 @@ public static Organizations CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetCollectionOfObjectValues(Organization.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Clerk.Net/Client/Models/PhoneNumber.cs b/src/Clerk.Net/Client/Models/PhoneNumber.cs index a585854..c831c13 100644 --- a/src/Clerk.Net/Client/Models/PhoneNumber.cs +++ b/src/Clerk.Net/Client/Models/PhoneNumber.cs @@ -57,6 +57,7 @@ public class PhoneNumber : 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 PhoneNumber CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -65,6 +66,7 @@ public static PhoneNumber CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"backup_codes", n => { BackupCodes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -95,10 +97,10 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteObjectValue("verification", Verification); } /// - /// Composed type wrapper for classes Admin, OTP + /// Composed type wrapper for classes , /// public class PhoneNumber_verification : IComposedTypeWrapper, IParsable { - /// Composed type representation for type Admin + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Clerk.Net.Client.Models.Admin? Admin { get; set; } @@ -106,7 +108,7 @@ public class PhoneNumber_verification : IComposedTypeWrapper, IParsable { #else public Clerk.Net.Client.Models.Admin Admin { get; set; } #endif - /// Composed type representation for type OTP + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Clerk.Net.Client.Models.OTP? OTP { get; set; } @@ -117,6 +119,7 @@ public class PhoneNumber_verification : IComposedTypeWrapper, 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 PhoneNumber_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -133,6 +136,7 @@ public static PhoneNumber_verification CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { if(Admin != null) { return Admin.GetFieldDeserializers(); diff --git a/src/Clerk.Net/Client/Models/ProxyCheck.cs b/src/Clerk.Net/Client/Models/ProxyCheck.cs index d9952b6..922b211 100644 --- a/src/Clerk.Net/Client/Models/ProxyCheck.cs +++ b/src/Clerk.Net/Client/Models/ProxyCheck.cs @@ -43,6 +43,7 @@ public class ProxyCheck : 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 ProxyCheck CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -51,6 +52,7 @@ public static ProxyCheck CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"created_at", n => { CreatedAt = n.GetIntValue(); } }, diff --git a/src/Clerk.Net/Client/Models/RedirectURL.cs b/src/Clerk.Net/Client/Models/RedirectURL.cs index 4e3ff3b..dc477b5 100644 --- a/src/Clerk.Net/Client/Models/RedirectURL.cs +++ b/src/Clerk.Net/Client/Models/RedirectURL.cs @@ -31,6 +31,7 @@ public class RedirectURL : 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 RedirectURL CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -39,6 +40,7 @@ public static RedirectURL CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// 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/SAMLAccount.cs b/src/Clerk.Net/Client/Models/SAMLAccount.cs index 1fe018d..4e3d31c 100644 --- a/src/Clerk.Net/Client/Models/SAMLAccount.cs +++ b/src/Clerk.Net/Client/Models/SAMLAccount.cs @@ -69,6 +69,7 @@ public class SAMLAccount : 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 SAMLAccount CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -77,6 +78,7 @@ public static SAMLAccount CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"active", n => { Active = n.GetBoolValue(); } }, diff --git a/src/Clerk.Net/Client/Models/SAMLAccount_verification.cs b/src/Clerk.Net/Client/Models/SAMLAccount_verification.cs index 53039b1..bc22d1e 100644 --- a/src/Clerk.Net/Client/Models/SAMLAccount_verification.cs +++ b/src/Clerk.Net/Client/Models/SAMLAccount_verification.cs @@ -9,7 +9,7 @@ public class SAMLAccount_verification : 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 SAMLAccount_verification and sets the default values. + /// Instantiates a new and sets the default values. /// public SAMLAccount_verification() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public SAMLAccount_verification() { /// /// 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 SAMLAccount_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static SAMLAccount_verification CreateFromDiscriminatorValue(IParseNode p /// /// 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/SAMLConnection.cs b/src/Clerk.Net/Client/Models/SAMLConnection.cs index 9729d92..3828a9a 100644 --- a/src/Clerk.Net/Client/Models/SAMLConnection.cs +++ b/src/Clerk.Net/Client/Models/SAMLConnection.cs @@ -18,6 +18,18 @@ public class SAMLConnection : IAdditionalDataHolder, IParsable { public bool? Active { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The allow_idp_initiated property + public bool? AllowIdpInitiated { get; set; } + /// The allow_subdomains property + public bool? AllowSubdomains { get; set; } + /// The attribute_mapping property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public SAMLConnection_attribute_mapping? AttributeMapping { get; set; } +#nullable restore +#else + public SAMLConnection_attribute_mapping AttributeMapping { get; set; } +#endif /// Unix timestamp of creation. public long? CreatedAt { get; set; } /// The domain property @@ -51,6 +63,14 @@ public class SAMLConnection : IAdditionalDataHolder, IParsable { #nullable restore #else public string IdpEntityId { get; set; } +#endif + /// The idp_metadata_url property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IdpMetadataUrl { get; set; } +#nullable restore +#else + public string IdpMetadataUrl { get; set; } #endif /// The idp_sso_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -85,6 +105,14 @@ public class SAMLConnection : IAdditionalDataHolder, IParsable { #nullable restore #else public string SpEntityId { get; set; } +#endif + /// The sp_metadata_url property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SpMetadataUrl { get; set; } +#nullable restore +#else + public string SpMetadataUrl { get; set; } #endif /// The sync_user_attributes property public bool? SyncUserAttributes { get; set; } @@ -93,7 +121,7 @@ public class SAMLConnection : IAdditionalDataHolder, IParsable { /// The user_count property public int? UserCount { get; set; } /// - /// Instantiates a new SAMLConnection and sets the default values. + /// Instantiates a new and sets the default values. /// public SAMLConnection() { AdditionalData = new Dictionary(); @@ -101,6 +129,7 @@ public SAMLConnection() { /// /// 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 SAMLConnection CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -109,20 +138,26 @@ public static SAMLConnection CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"acs_url", n => { AcsUrl = n.GetStringValue(); } }, {"active", n => { Active = n.GetBoolValue(); } }, + {"allow_idp_initiated", n => { AllowIdpInitiated = n.GetBoolValue(); } }, + {"allow_subdomains", n => { AllowSubdomains = n.GetBoolValue(); } }, + {"attribute_mapping", n => { AttributeMapping = n.GetObjectValue(SAMLConnection_attribute_mapping.CreateFromDiscriminatorValue); } }, {"created_at", n => { CreatedAt = n.GetLongValue(); } }, {"domain", n => { Domain = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, {"idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, {"idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, + {"idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, {"idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, {"object", n => { Object = n.GetEnumValue(); } }, {"provider", n => { Provider = n.GetStringValue(); } }, {"sp_entity_id", n => { SpEntityId = n.GetStringValue(); } }, + {"sp_metadata_url", n => { SpMetadataUrl = n.GetStringValue(); } }, {"sync_user_attributes", n => { SyncUserAttributes = n.GetBoolValue(); } }, {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, {"user_count", n => { UserCount = n.GetIntValue(); } }, @@ -136,16 +171,21 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("acs_url", AcsUrl); writer.WriteBoolValue("active", Active); + writer.WriteBoolValue("allow_idp_initiated", AllowIdpInitiated); + writer.WriteBoolValue("allow_subdomains", AllowSubdomains); + writer.WriteObjectValue("attribute_mapping", AttributeMapping); writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("domain", Domain); writer.WriteStringValue("id", Id); writer.WriteStringValue("idp_certificate", IdpCertificate); writer.WriteStringValue("idp_entity_id", IdpEntityId); + writer.WriteStringValue("idp_metadata_url", IdpMetadataUrl); writer.WriteStringValue("idp_sso_url", IdpSsoUrl); writer.WriteStringValue("name", Name); writer.WriteEnumValue("object", Object); writer.WriteStringValue("provider", Provider); writer.WriteStringValue("sp_entity_id", SpEntityId); + writer.WriteStringValue("sp_metadata_url", SpMetadataUrl); writer.WriteBoolValue("sync_user_attributes", SyncUserAttributes); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteIntValue("user_count", UserCount); diff --git a/src/Clerk.Net/Client/Emails/EmailsPostRequestBody.cs b/src/Clerk.Net/Client/Models/SAMLConnection_attribute_mapping.cs similarity index 50% rename from src/Clerk.Net/Client/Emails/EmailsPostRequestBody.cs rename to src/Clerk.Net/Client/Models/SAMLConnection_attribute_mapping.cs index f8d45b2..be1e07c 100644 --- a/src/Clerk.Net/Client/Emails/EmailsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Models/SAMLConnection_attribute_mapping.cs @@ -4,57 +4,59 @@ using System.IO; using System.Linq; using System; -namespace Clerk.Net.Client.Emails { - public class EmailsPostRequestBody : IParsable { - /// The body of the email. +namespace Clerk.Net.Client.Models { + public class SAMLConnection_attribute_mapping : IParsable { + /// The email_address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Body { get; set; } + public string? EmailAddress { get; set; } #nullable restore #else - public string Body { get; set; } + public string EmailAddress { get; set; } #endif - /// The ID of the email address to send to. + /// The first_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? EmailAddressId { get; set; } + public string? FirstName { get; set; } #nullable restore #else - public string EmailAddressId { get; set; } + public string FirstName { get; set; } #endif - /// The email name portion of the sending email address.<br/>e.g.: `from_email_name=info` will send from info@example.com + /// The last_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? FromEmailName { get; set; } + public string? LastName { get; set; } #nullable restore #else - public string FromEmailName { get; set; } + public string LastName { get; set; } #endif - /// The subject of the email. + /// The user_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Subject { get; set; } + public string? UserId { get; set; } #nullable restore #else - public string Subject { get; set; } + public string UserId { get; set; } #endif /// /// 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 EmailsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static SAMLConnection_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EmailsPostRequestBody(); + return new SAMLConnection_attribute_mapping(); } /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"email_address_id", n => { EmailAddressId = n.GetStringValue(); } }, - {"from_email_name", n => { FromEmailName = n.GetStringValue(); } }, - {"subject", n => { Subject = n.GetStringValue(); } }, + {"email_address", n => { EmailAddress = n.GetStringValue(); } }, + {"first_name", n => { FirstName = n.GetStringValue(); } }, + {"last_name", n => { LastName = n.GetStringValue(); } }, + {"user_id", n => { UserId = n.GetStringValue(); } }, }; } /// @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("body", Body); - writer.WriteStringValue("email_address_id", EmailAddressId); - writer.WriteStringValue("from_email_name", FromEmailName); - writer.WriteStringValue("subject", Subject); + writer.WriteStringValue("email_address", EmailAddress); + writer.WriteStringValue("first_name", FirstName); + writer.WriteStringValue("last_name", LastName); + writer.WriteStringValue("user_id", UserId); } } } diff --git a/src/Clerk.Net/Client/Models/SAMLConnections.cs b/src/Clerk.Net/Client/Models/SAMLConnections.cs index 697d29f..d6bfe55 100644 --- a/src/Clerk.Net/Client/Models/SAMLConnections.cs +++ b/src/Clerk.Net/Client/Models/SAMLConnections.cs @@ -19,6 +19,7 @@ public class SAMLConnections : 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 SAMLConnections CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -27,6 +28,7 @@ public static SAMLConnections CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetCollectionOfObjectValues(SAMLConnection.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Clerk.Net/Client/Models/Session.cs b/src/Clerk.Net/Client/Models/Session.cs index e6ca6fe..4672486 100644 --- a/src/Clerk.Net/Client/Models/Session.cs +++ b/src/Clerk.Net/Client/Models/Session.cs @@ -63,6 +63,7 @@ public class Session : 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 Session CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -71,6 +72,7 @@ public static Session CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"abandon_at", n => { AbandonAt = n.GetIntValue(); } }, diff --git a/src/Clerk.Net/Client/Models/Session_actor.cs b/src/Clerk.Net/Client/Models/Session_actor.cs index 0a923d2..89822f2 100644 --- a/src/Clerk.Net/Client/Models/Session_actor.cs +++ b/src/Clerk.Net/Client/Models/Session_actor.cs @@ -9,7 +9,7 @@ public class Session_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 Session_actor and sets the default values. + /// Instantiates a new and sets the default values. /// public Session_actor() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public Session_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 Session_actor CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static Session_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/SignInToken.cs b/src/Clerk.Net/Client/Models/SignInToken.cs index fb9c3d7..4eeca41 100644 --- a/src/Clerk.Net/Client/Models/SignInToken.cs +++ b/src/Clerk.Net/Client/Models/SignInToken.cs @@ -49,6 +49,7 @@ public class SignInToken : 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 SignInToken CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -57,6 +58,7 @@ public static SignInToken CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// 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/SignUp.cs b/src/Clerk.Net/Client/Models/SignUp.cs index 60f49ee..8226975 100644 --- a/src/Clerk.Net/Client/Models/SignUp.cs +++ b/src/Clerk.Net/Client/Models/SignUp.cs @@ -163,6 +163,7 @@ public class SignUp : 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 SignUp CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -171,6 +172,7 @@ public static SignUp CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"abandon_at", n => { AbandonAt = n.GetIntValue(); } }, diff --git a/src/Clerk.Net/Client/Models/SignUp_external_account.cs b/src/Clerk.Net/Client/Models/SignUp_external_account.cs index 7befc20..67ccb90 100644 --- a/src/Clerk.Net/Client/Models/SignUp_external_account.cs +++ b/src/Clerk.Net/Client/Models/SignUp_external_account.cs @@ -9,7 +9,7 @@ public class SignUp_external_account : 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 SignUp_external_account and sets the default values. + /// Instantiates a new and sets the default values. /// public SignUp_external_account() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public SignUp_external_account() { /// /// 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 SignUp_external_account CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static SignUp_external_account CreateFromDiscriminatorValue(IParseNode pa /// /// 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/SignUp_public_metadata.cs b/src/Clerk.Net/Client/Models/SignUp_public_metadata.cs index c4cb0d6..b7042e1 100644 --- a/src/Clerk.Net/Client/Models/SignUp_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/SignUp_public_metadata.cs @@ -9,7 +9,7 @@ public class SignUp_public_metadata : 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 SignUp_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public SignUp_public_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public SignUp_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 SignUp_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static SignUp_public_metadata CreateFromDiscriminatorValue(IParseNode par /// /// 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/SignUp_unsafe_metadata.cs b/src/Clerk.Net/Client/Models/SignUp_unsafe_metadata.cs index 361f2c1..3f3e978 100644 --- a/src/Clerk.Net/Client/Models/SignUp_unsafe_metadata.cs +++ b/src/Clerk.Net/Client/Models/SignUp_unsafe_metadata.cs @@ -9,7 +9,7 @@ public class SignUp_unsafe_metadata : 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 SignUp_unsafe_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public SignUp_unsafe_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public SignUp_unsafe_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 SignUp_unsafe_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static SignUp_unsafe_metadata CreateFromDiscriminatorValue(IParseNode par /// /// 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/SignUp_verifications.cs b/src/Clerk.Net/Client/Models/SignUp_verifications.cs index c311c35..d1a7022 100644 --- a/src/Clerk.Net/Client/Models/SignUp_verifications.cs +++ b/src/Clerk.Net/Client/Models/SignUp_verifications.cs @@ -9,7 +9,7 @@ public class SignUp_verifications : 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 SignUp_verifications and sets the default values. + /// Instantiates a new and sets the default values. /// public SignUp_verifications() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public SignUp_verifications() { /// /// 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 SignUp_verifications CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static SignUp_verifications CreateFromDiscriminatorValue(IParseNode parse /// /// 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/SvixURL.cs b/src/Clerk.Net/Client/Models/SvixURL.cs index 5e2acfc..12adfb2 100644 --- a/src/Clerk.Net/Client/Models/SvixURL.cs +++ b/src/Clerk.Net/Client/Models/SvixURL.cs @@ -17,6 +17,7 @@ public class SvixURL : 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 SvixURL CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static SvixURL CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"svix_url", n => { SvixUrlProp = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Models/Template.cs b/src/Clerk.Net/Client/Models/Template.cs index 1fb6f34..8ff653d 100644 --- a/src/Clerk.Net/Client/Models/Template.cs +++ b/src/Clerk.Net/Client/Models/Template.cs @@ -119,6 +119,7 @@ public class Template : 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 Template CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -127,6 +128,7 @@ public static Template CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"available_variables", n => { AvailableVariables = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, diff --git a/src/Clerk.Net/Client/Models/TotalCount.cs b/src/Clerk.Net/Client/Models/TotalCount.cs index ad0c318..81090e3 100644 --- a/src/Clerk.Net/Client/Models/TotalCount.cs +++ b/src/Clerk.Net/Client/Models/TotalCount.cs @@ -13,6 +13,7 @@ public class TotalCount : 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 TotalCount CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -21,6 +22,7 @@ public static TotalCount CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"object", n => { Object = n.GetEnumValue(); } }, diff --git a/src/Clerk.Net/Client/Models/User.cs b/src/Clerk.Net/Client/Models/User.cs index 05c87b6..13deb14 100644 --- a/src/Clerk.Net/Client/Models/User.cs +++ b/src/Clerk.Net/Client/Models/User.cs @@ -10,14 +10,6 @@ public class User : IParsable { public bool? BackupCodeEnabled { get; set; } /// Flag to denote whether user is banned or not. public bool? Banned { get; set; } - /// The birthday property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Birthday { get; set; } -#nullable restore -#else - public string Birthday { get; set; } -#endif /// Unix timestamp of creation. public long? CreatedAt { get; set; } /// If enabled, user can create organizations via FAPI. @@ -55,14 +47,6 @@ public class User : IParsable { #nullable restore #else public string FirstName { get; set; } -#endif - /// The gender property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Gender { get; set; } -#nullable restore -#else - public string Gender { get; set; } #endif /// The has_image property public bool? HasImage { get; set; } @@ -202,6 +186,7 @@ public class User : 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 User CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -210,11 +195,11 @@ public static User CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"backup_code_enabled", n => { BackupCodeEnabled = n.GetBoolValue(); } }, {"banned", n => { Banned = n.GetBoolValue(); } }, - {"birthday", n => { Birthday = n.GetStringValue(); } }, {"create_organization_enabled", n => { CreateOrganizationEnabled = n.GetBoolValue(); } }, {"created_at", n => { CreatedAt = n.GetLongValue(); } }, {"delete_self_enabled", n => { DeleteSelfEnabled = n.GetBoolValue(); } }, @@ -222,7 +207,6 @@ public virtual IDictionary> GetFieldDeserializers() { {"external_accounts", n => { ExternalAccounts = n.GetCollectionOfObjectValues(User_external_accounts.CreateFromDiscriminatorValue)?.ToList(); } }, {"external_id", n => { ExternalId = n.GetStringValue(); } }, {"first_name", n => { FirstName = n.GetStringValue(); } }, - {"gender", n => { Gender = n.GetStringValue(); } }, {"has_image", n => { HasImage = n.GetBoolValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, {"image_url", n => { ImageUrl = n.GetStringValue(); } }, @@ -258,7 +242,6 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("backup_code_enabled", BackupCodeEnabled); writer.WriteBoolValue("banned", Banned); - writer.WriteStringValue("birthday", Birthday); writer.WriteLongValue("created_at", CreatedAt); writer.WriteBoolValue("create_organization_enabled", CreateOrganizationEnabled); writer.WriteBoolValue("delete_self_enabled", DeleteSelfEnabled); @@ -266,7 +249,6 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("external_accounts", ExternalAccounts); writer.WriteStringValue("external_id", ExternalId); writer.WriteStringValue("first_name", FirstName); - writer.WriteStringValue("gender", Gender); writer.WriteBoolValue("has_image", HasImage); writer.WriteStringValue("id", Id); writer.WriteStringValue("image_url", ImageUrl); diff --git a/src/Clerk.Net/Client/Models/User_external_accounts.cs b/src/Clerk.Net/Client/Models/User_external_accounts.cs index 8f8852d..2161d9f 100644 --- a/src/Clerk.Net/Client/Models/User_external_accounts.cs +++ b/src/Clerk.Net/Client/Models/User_external_accounts.cs @@ -9,7 +9,7 @@ public class User_external_accounts : 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 User_external_accounts and sets the default values. + /// Instantiates a new and sets the default values. /// public User_external_accounts() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public User_external_accounts() { /// /// 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 User_external_accounts CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static User_external_accounts CreateFromDiscriminatorValue(IParseNode par /// /// 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/User_private_metadata.cs b/src/Clerk.Net/Client/Models/User_private_metadata.cs index aadf980..e01f0af 100644 --- a/src/Clerk.Net/Client/Models/User_private_metadata.cs +++ b/src/Clerk.Net/Client/Models/User_private_metadata.cs @@ -9,7 +9,7 @@ public class User_private_metadata : 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 User_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public User_private_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public User_private_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 User_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static User_private_metadata CreateFromDiscriminatorValue(IParseNode pars /// /// 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/User_public_metadata.cs b/src/Clerk.Net/Client/Models/User_public_metadata.cs index 68c9e26..e9592aa 100644 --- a/src/Clerk.Net/Client/Models/User_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/User_public_metadata.cs @@ -9,7 +9,7 @@ public class User_public_metadata : 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 User_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public User_public_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public User_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 User_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static User_public_metadata CreateFromDiscriminatorValue(IParseNode parse /// /// 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/User_unsafe_metadata.cs b/src/Clerk.Net/Client/Models/User_unsafe_metadata.cs index 1d71663..8b8f79f 100644 --- a/src/Clerk.Net/Client/Models/User_unsafe_metadata.cs +++ b/src/Clerk.Net/Client/Models/User_unsafe_metadata.cs @@ -9,7 +9,7 @@ public class User_unsafe_metadata : 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 User_unsafe_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public User_unsafe_metadata() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public User_unsafe_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 User_unsafe_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static User_unsafe_metadata CreateFromDiscriminatorValue(IParseNode parse /// /// 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/Web3Signature.cs b/src/Clerk.Net/Client/Models/Web3Signature.cs index 82368bd..2660597 100644 --- a/src/Clerk.Net/Client/Models/Web3Signature.cs +++ b/src/Clerk.Net/Client/Models/Web3Signature.cs @@ -19,6 +19,7 @@ public class Web3Signature : 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 Web3Signature CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -27,6 +28,7 @@ public static Web3Signature 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/Web3Wallet.cs b/src/Clerk.Net/Client/Models/Web3Wallet.cs index 6a81d7a..3772b61 100644 --- a/src/Clerk.Net/Client/Models/Web3Wallet.cs +++ b/src/Clerk.Net/Client/Models/Web3Wallet.cs @@ -35,6 +35,7 @@ public class Web3Wallet : 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 Web3Wallet CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -43,6 +44,7 @@ public static Web3Wallet CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, @@ -63,10 +65,10 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("web3_wallet", Web3WalletProp); } /// - /// Composed type wrapper for classes Admin, Web3Signature + /// Composed type wrapper for classes , /// public class Web3Wallet_verification : IComposedTypeWrapper, IParsable { - /// Composed type representation for type Admin + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Clerk.Net.Client.Models.Admin? Admin { get; set; } @@ -74,7 +76,7 @@ public class Web3Wallet_verification : IComposedTypeWrapper, IParsable { #else public Clerk.Net.Client.Models.Admin Admin { get; set; } #endif - /// Composed type representation for type Web3Signature + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Clerk.Net.Client.Models.Web3Signature? Web3Signature { get; set; } @@ -85,6 +87,7 @@ public class Web3Wallet_verification : IComposedTypeWrapper, 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 Web3Wallet_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -101,6 +104,7 @@ public static Web3Wallet_verification CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { if(Admin != null) { return Admin.GetFieldDeserializers(); diff --git a/src/Clerk.Net/Client/Oauth_applications/Item/Rotate_secret/Rotate_secretRequestBuilder.cs b/src/Clerk.Net/Client/Oauth_applications/Item/Rotate_secret/Rotate_secretRequestBuilder.cs index 8e55058..386835e 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Item/Rotate_secret/Rotate_secretRequestBuilder.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Item/Rotate_secret/Rotate_secretRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Oauth_applications.Item.Rotate_secret { /// public class Rotate_secretRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new Rotate_secretRequestBuilder 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 Rotate_secretRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/oauth_applications/{oauth_application_id}/rotate_secret", pathParameters) { } /// - /// Instantiates a new Rotate_secretRequestBuilder 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 Rotate_secretRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Rotates the OAuth application's client secret.When the client secret is rotated, make sure to update it in authorized OAuth clients. /// + /// 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 PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -49,6 +52,7 @@ public async Task PostAsync(Action /// Rotates the OAuth application's client secret.When the client secret is rotated, make sure to update it in authorized OAuth clients. /// + /// 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 Rotate_secretRequestBuilder WithUrl(string rawUrl) { return new Rotate_secretRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_ItemRequestBuilder.cs index 2a49a6f..de53f3f 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_ItemRequestBuilder.cs @@ -19,14 +19,14 @@ public class WithOauth_application_ItemRequestBuilder : BaseRequestBuilder { new Rotate_secretRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new WithOauth_application_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 WithOauth_application_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/oauth_applications/{oauth_application_id}", pathParameters) { } /// - /// Instantiates a new WithOauth_application_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. @@ -35,8 +35,11 @@ public WithOauth_application_ItemRequestBuilder(string rawUrl, IRequestAdapter r /// /// Deletes the given OAuth application.This is not reversible. /// + /// 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) { @@ -54,8 +57,11 @@ public async Task DeleteAsync(Action /// Fetches the OAuth application whose ID matches the provided `id` in the path. /// + /// 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 GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -73,9 +79,13 @@ public async Task GetAsync(Action /// Updates an existing OAuth application /// + /// 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 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 PatchAsync(WithOauth_application_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -95,6 +105,7 @@ public async Task PatchAsync(WithOauth_application_PatchReques /// /// Deletes the given OAuth application.This is not reversible. /// + /// 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 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action /// Fetches the OAuth application whose ID matches the provided `id` in the path. /// + /// 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 +139,7 @@ public RequestInformation ToGetRequestInformation(Action /// Updates an existing OAuth application /// + /// 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 +159,7 @@ public RequestInformation ToPatchRequestInformation(WithOauth_application_PatchR /// /// 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 WithOauth_application_ItemRequestBuilder WithUrl(string rawUrl) { return new WithOauth_application_ItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_PatchRequestBody.cs b/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_PatchRequestBody.cs index f6573d2..7366de1 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_PatchRequestBody.cs @@ -31,7 +31,7 @@ public class WithOauth_application_PatchRequestBody : IParsable { public string Scopes { get; set; } #endif /// - /// Instantiates a new WithOauth_application_PatchRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public WithOauth_application_PatchRequestBody() { Scopes = "profile email"; @@ -39,6 +39,7 @@ public WithOauth_application_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 WithOauth_application_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -47,6 +48,7 @@ public static WithOauth_application_PatchRequestBody CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callback_url", n => { CallbackUrl = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsPostRequestBody.cs b/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsPostRequestBody.cs index 29d57d1..c25bb89 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsPostRequestBody.cs @@ -35,7 +35,7 @@ public class Oauth_applicationsPostRequestBody : IAdditionalDataHolder, IParsabl public string Scopes { get; set; } #endif /// - /// Instantiates a new oauth_applicationsPostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public Oauth_applicationsPostRequestBody() { AdditionalData = new Dictionary(); @@ -44,6 +44,7 @@ public Oauth_applicationsPostRequestBody() { /// /// 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 Oauth_applicationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -52,6 +53,7 @@ public static Oauth_applicationsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callback_url", n => { CallbackUrl = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsRequestBuilder.cs b/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsRequestBuilder.cs index 262511e..386db6a 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsRequestBuilder.cs @@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Oauth_applications { public class Oauth_applicationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.oauth_applications.item collection /// The ID of the OAuth application + /// A public WithOauth_application_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("oauth_application_id", position); return new WithOauth_application_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new Oauth_applicationsRequestBuilder 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 Oauth_applicationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/oauth_applications{?limit*,offset*}", pathParameters) { } /// - /// Instantiates a new Oauth_applicationsRequestBuilder 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,12 @@ public Oauth_applicationsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// /// This request returns the list of OAuth applications for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The OAuth applications are ordered by descending creation date.Most recent OAuth applications will be returned first. /// + /// 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 403 status code + /// When receiving a 422 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 +63,13 @@ public async Task GetAsync(Action /// Creates a new OAuth application with the given name and callback URL for an instance.The callback URL must be a valid url.All URL schemes are allowed such as `http://`, `https://`, `myapp://`, etc... /// + /// 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 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Oauth_applicationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -80,6 +89,7 @@ public async Task PostAsync(Oauth_applicationsPostRe /// /// This request returns the list of OAuth applications for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The OAuth applications are ordered by descending creation date.Most recent OAuth applications will be returned first. /// + /// 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 +106,7 @@ public RequestInformation ToGetRequestInformation(Action /// Creates a new OAuth application with the given name and callback URL for an instance.The callback URL must be a valid url.All URL schemes are allowed such as `http://`, `https://`, `myapp://`, etc... /// + /// 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,7 +117,7 @@ public RequestInformation ToPostRequestInformation(Oauth_applicationsPostRequest public RequestInformation ToPostRequestInformation(Oauth_applicationsPostRequestBody 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}/oauth_applications", PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -115,6 +126,7 @@ public RequestInformation ToPostRequestInformation(Oauth_applicationsPostRequest /// /// 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 Oauth_applicationsRequestBuilder WithUrl(string rawUrl) { return new Oauth_applicationsRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs index 296f040..6719f52 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs @@ -57,7 +57,7 @@ public class Bulk : IAdditionalDataHolder, IParsable { public string Role { get; set; } #endif /// - /// Instantiates a new bulk and sets the default values. + /// Instantiates a new and sets the default values. /// public Bulk() { AdditionalData = new Dictionary(); @@ -65,6 +65,7 @@ public Bulk() { /// /// 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 Bulk CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -73,6 +74,7 @@ public static Bulk CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// 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/Organizations/Item/Invitations/Bulk/BulkRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/BulkRequestBuilder.cs index e147ace..c4d0074 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/BulkRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/BulkRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk { /// public class BulkRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new BulkRequestBuilder 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 BulkRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{organization_id}/invitations/bulk", pathParameters) { } /// - /// Instantiates a new BulkRequestBuilder 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,14 @@ public BulkRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// /// Creates new organization invitations in bulk and sends out emails to the provided email addresses with a link to accept the invitation and join the organization.You can specify a different `role` for each invited organization member.New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.The request body supports passing an optional `redirect_url` parameter for each invitation.When the invited user clicks the link to accept the invitation, they will be redirected to the provided URL.Use this parameter to implement a custom invitation acceptance flow.You must specify the ID of the user that will send the invitation with the `inviter_user_id` parameter. Each invitationcan have a different inviter user.Inviter users must be members with administrator privileges in the organization.Only "admin" members can create organization invitations.You can optionally provide public and private metadata for each organization invitation. The public metadata are visibleby both the Frontend and the Backend, whereas the private metadata are only visible by the Backend.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// + /// 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 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(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -53,6 +58,7 @@ public async Task PostAsync(List body, Action /// Creates new organization invitations in bulk and sends out emails to the provided email addresses with a link to accept the invitation and join the organization.You can specify a different `role` for each invited organization member.New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.The request body supports passing an optional `redirect_url` parameter for each invitation.When the invited user clicks the link to accept the invitation, they will be redirected to the provided URL.Use this parameter to implement a custom invitation acceptance flow.You must specify the ID of the user that will send the invitation with the `inviter_user_id` parameter. Each invitationcan have a different inviter user.Inviter users must be members with administrator privileges in the organization.Only "admin" members can create organization invitations.You can optionally provide public and private metadata for each organization invitation. The public metadata are visibleby both the Frontend and the Backend, whereas the private metadata are only visible by the Backend.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// + /// 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 @@ -72,6 +78,7 @@ public RequestInformation ToPostRequestInformation(List body, 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 BulkRequestBuilder WithUrl(string rawUrl) { return new BulkRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs index 851b866..d59dcb8 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs @@ -12,7 +12,7 @@ public class Bulk_private_metadata : 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 bulk_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public Bulk_private_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public Bulk_private_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 Bulk_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static Bulk_private_metadata CreateFromDiscriminatorValue(IParseNode pars /// /// 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/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs index ad05329..e77d780 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs @@ -12,7 +12,7 @@ public class Bulk_public_metadata : 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 bulk_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public Bulk_public_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public Bulk_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 Bulk_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static Bulk_public_metadata CreateFromDiscriminatorValue(IParseNode parse /// /// 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/Organizations/Item/Invitations/InvitationsPostRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs index c5e6937..862278f 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs @@ -57,7 +57,7 @@ public class InvitationsPostRequestBody : IAdditionalDataHolder, IParsable { public string Role { get; set; } #endif /// - /// Instantiates a new invitationsPostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitationsPostRequestBody() { AdditionalData = new Dictionary(); @@ -65,6 +65,7 @@ public InvitationsPostRequestBody() { /// /// 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)); @@ -73,6 +74,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/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs index 066aaa3..c251b58 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs @@ -12,7 +12,7 @@ public class InvitationsPostRequestBody_private_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_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitationsPostRequestBody_private_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public InvitationsPostRequestBody_private_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_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static InvitationsPostRequestBody_private_metadata CreateFromDiscriminato /// /// 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/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs index 92b3fb8..d711fa5 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/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/Organizations/Item/Invitations/InvitationsRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsRequestBuilder.cs index 4828d29..14b2d9f 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsRequestBuilder.cs @@ -26,20 +26,21 @@ public class InvitationsRequestBuilder : BaseRequestBuilder { } /// Gets an item from the Clerk.Net.Client.organizations.item.invitations.item collection /// The organization invitation ID. + /// 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}/organizations/{organization_id}/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. @@ -48,8 +49,11 @@ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// This request returns the list of organization invitations.Results can be paginated using the optional `limit` and `offset` query parameters.You can filter them by providing the 'status' query parameter, that accepts multiple values.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. /// + /// 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 GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -67,9 +71,14 @@ public async Task GetAsync(Action /// Creates a new organization invitation and sends an email to the provided `email_address` with a link to accept the invitation and join the organization.You can specify the `role` for the invited organization member.New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.The request body supports passing an optional `redirect_url` parameter.When the invited user clicks the link to accept the invitation, they will be redirected to the URL provided.Use this parameter to implement a custom invitation acceptance flow.You must specify the ID of the user that will send the invitation with the `inviter_user_id` parameter.That user must be a member with administrator privileges in the organization.Only "admin" members can create organization invitations.You can optionally provide public and private metadata for the organization invitation.The public metadata are visible by both the Frontend and the Backend whereas the private ones only by the Backend.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// + /// 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 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(InvitationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -90,6 +99,7 @@ public async Task PostAsync(InvitationsPostRequestBody b /// /// This request returns the list of organization invitations.Results can be paginated using the optional `limit` and `offset` query parameters.You can filter them by providing the 'status' query parameter, that accepts multiple values.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -106,6 +116,7 @@ public RequestInformation ToGetRequestInformation(Action /// Creates a new organization invitation and sends an email to the provided `email_address` with a link to accept the invitation and join the organization.You can specify the `role` for the invited organization member.New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.The request body supports passing an optional `redirect_url` parameter.When the invited user clicks the link to accept the invitation, they will be redirected to the URL provided.Use this parameter to implement a custom invitation acceptance flow.You must specify the ID of the user that will send the invitation with the `inviter_user_id` parameter.That user must be a member with administrator privileges in the organization.Only "admin" members can create organization invitations.You can optionally provide public and private metadata for the organization invitation.The public metadata are visible by both the Frontend and the Backend whereas the private ones only by the Backend.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// + /// 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 @@ -116,7 +127,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}/organizations/{organization_id}/invitations", PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -125,6 +136,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); diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokePostRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokePostRequestBody.cs index ed9dfab..031f0e0 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokePostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokePostRequestBody.cs @@ -17,7 +17,7 @@ public class RevokePostRequestBody : IAdditionalDataHolder, IParsable { public string RequestingUserId { get; set; } #endif /// - /// Instantiates a new revokePostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public RevokePostRequestBody() { AdditionalData = new Dictionary(); @@ -25,6 +25,7 @@ public RevokePostRequestBody() { /// /// 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 RevokePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -33,6 +34,7 @@ public static RevokePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"requesting_user_id", n => { RequestingUserId = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokeRequestBuilder.cs index 9d4b061..cc5a32f 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokeRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokeRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Organizations.Item.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}/organizations/{organization_id}/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,9 +30,13 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Use this request to revoke a previously issued organization invitation.Revoking an organization invitation makes it invalid; the invited user will no longer be able to join the organization with the revoked invitation.Only organization invitations with "pending" status can be revoked.The request needs the `requesting_user_id` parameter to specify the user which revokes the invitation.Only users with "admin" role can revoke invitations. /// + /// 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 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(RevokePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -52,6 +56,7 @@ public async Task PostAsync(RevokePostRequestBody body, /// /// Use this request to revoke a previously issued organization invitation.Revoking an organization invitation makes it invalid; the invited user will no longer be able to join the organization with the revoked invitation.Only organization invitations with "pending" status can be revoked.The request needs the `requesting_user_id` parameter to specify the user which revokes the invitation.Only users with "admin" role can revoke invitations. /// + /// 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(RevokePostRequestBody 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 RevokeRequestBuilder WithUrl(string rawUrl) { return new RevokeRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs index 4fbbd99..b58d6c8 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs @@ -19,14 +19,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}/organizations/{organization_id}/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. @@ -35,8 +35,12 @@ public WithInvitation_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Use this request to get an existing organization invitation by 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 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) { @@ -55,6 +59,7 @@ public async Task GetAsync(Action /// Use this request to get an existing organization invitation by 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 @@ -71,6 +76,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 WithInvitation_ItemRequestBuilder WithUrl(string rawUrl) { return new WithInvitation_ItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Pending/PendingRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Pending/PendingRequestBuilder.cs index 7f08740..8b6650e 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Pending/PendingRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Pending/PendingRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Organizations.Item.Invitations.Pending { /// public class PendingRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new PendingRequestBuilder 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 PendingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{organization_id}/invitations/pending{?limit*,offset*}", pathParameters) { } /// - /// Instantiates a new PendingRequestBuilder 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 PendingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// This request returns the list of organization invitations with "pending" status.These are the organization invitations that can still be used to join the organization, but have not been accepted by the invited user yet.Results can be paginated using the optional `limit` and `offset` query parameters.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. /// + /// 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 [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -50,6 +53,7 @@ public async Task GetAsync(Action /// This request returns the list of organization invitations with "pending" status.These are the organization invitations that can still be used to join the organization, but have not been accepted by the invited user yet.Results can be paginated using the optional `limit` and `offset` query parameters.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,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. [Obsolete("")] public PendingRequestBuilder WithUrl(string rawUrl) { diff --git a/src/Clerk.Net/Client/Organizations/Item/Logo/LogoRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Logo/LogoRequestBuilder.cs index 5fce309..f782e48 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Logo/LogoRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Logo/LogoRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Organizations.Item.Logo { /// public class LogoRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new LogoRequestBuilder 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 LogoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{organization_id}/logo", pathParameters) { } /// - /// Instantiates a new LogoRequestBuilder 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,10 @@ public LogoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// /// Delete the organization's logo. /// + /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -46,11 +48,16 @@ public async Task DeleteAsync(Action(requestInfo, Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Set or replace an organization's logo, by uploading an image file.This endpoint uses the `multipart/form-data` request content type and accepts a file of image type.The file size cannot exceed 10MB.Only the following file content types are supported: `image/jpeg`, `image/png`, `image/gif`, `image/webp`, `image/x-icon`, `image/vnd.microsoft.icon`.Only "admin" members can upload an organization logo. + /// Set or replace an organization's logo, by uploading an image file.This endpoint uses the `multipart/form-data` request content type and accepts a file of image type.The file size cannot exceed 10MB.Only the following file content types are supported: `image/jpeg`, `image/png`, `image/gif`, `image/webp`, `image/x-icon`, `image/vnd.microsoft.icon`. /// + /// 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 403 status code + /// When receiving a 404 status code + /// When receiving a 413 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(MultipartBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -71,6 +78,7 @@ public async Task PutAsync(MultipartBody body, Action /// Delete the organization's logo. /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -85,8 +93,9 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Set or replace an organization's logo, by uploading an image file.This endpoint uses the `multipart/form-data` request content type and accepts a file of image type.The file size cannot exceed 10MB.Only the following file content types are supported: `image/jpeg`, `image/png`, `image/gif`, `image/webp`, `image/x-icon`, `image/vnd.microsoft.icon`.Only "admin" members can upload an organization logo. + /// Set or replace an organization's logo, by uploading an image file.This endpoint uses the `multipart/form-data` request content type and accepts a file of image type.The file size cannot exceed 10MB.Only the following file content types are supported: `image/jpeg`, `image/png`, `image/gif`, `image/webp`, `image/x-icon`, `image/vnd.microsoft.icon`. /// + /// 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 ToPutRequestInformation(MultipartBody body, 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 LogoRequestBuilder WithUrl(string rawUrl) { return new LogoRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody.cs index 67defd2..6277e85 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody.cs @@ -25,6 +25,7 @@ public class MetadataPatchRequestBody : 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 MetadataPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -33,6 +34,7 @@ public static MetadataPatchRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(MetadataPatchRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs index 74337e9..75ffd95 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs @@ -12,7 +12,7 @@ public class MetadataPatchRequestBody_private_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 metadataPatchRequestBody_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public MetadataPatchRequestBody_private_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public MetadataPatchRequestBody_private_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 MetadataPatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static MetadataPatchRequestBody_private_metadata CreateFromDiscriminatorV /// /// 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/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs index ce1ffc0..8e052aa 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs @@ -12,7 +12,7 @@ public class MetadataPatchRequestBody_public_metadata : IAdditionalDataHolder, I /// 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 metadataPatchRequestBody_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public MetadataPatchRequestBody_public_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public MetadataPatchRequestBody_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 MetadataPatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static MetadataPatchRequestBody_public_metadata CreateFromDiscriminatorVa /// /// 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/Organizations/Item/Memberships/Item/Metadata/MetadataRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataRequestBuilder.cs index 0b99f1f..30b09a7 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata { /// public class MetadataRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new MetadataRequestBuilder 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 MetadataRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{organization_id}/memberships/{user_id}/metadata", pathParameters) { } /// - /// Instantiates a new MetadataRequestBuilder 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 MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// Update an organization membership's metadata attributes by merging existing values with the provided parameters.Metadata values will be updated via a deep merge. Deep means that any nested JSON objects will be merged as well.You can remove metadata keys at any level by setting their value to `null`. /// + /// 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(MetadataPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -52,6 +56,7 @@ public async Task PatchAsync(MetadataPatchRequestBody bo /// /// Update an organization membership's metadata attributes by merging existing values with the provided parameters.Metadata values will be updated via a deep merge. Deep means that any nested JSON objects will be merged as well.You can remove metadata keys at any level by setting their value to `null`. /// + /// 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(MetadataPatchRequestBody 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 MetadataRequestBuilder WithUrl(string rawUrl) { return new MetadataRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_ItemRequestBuilder.cs index 2068f6f..3ea251c 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_ItemRequestBuilder.cs @@ -19,14 +19,14 @@ public class WithUser_ItemRequestBuilder : BaseRequestBuilder { new MetadataRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new WithUser_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 WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{organization_id}/memberships/{user_id}", pathParameters) { } /// - /// Instantiates a new WithUser_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. @@ -35,8 +35,12 @@ public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Removes the given membership from the organization /// + /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -55,9 +59,13 @@ public async Task DeleteAsync(Action /// Updates the properties of an existing organization membership /// + /// 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(WithUser_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -77,6 +85,7 @@ public async Task PatchAsync(WithUser_PatchRequestBody b /// /// Removes the given membership from the organization /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -93,6 +102,7 @@ public RequestInformation ToDeleteRequestInformation(Action /// Updates the properties of an existing organization membership /// + /// 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 @@ -112,6 +122,7 @@ public RequestInformation ToPatchRequestInformation(WithUser_PatchRequestBody 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 WithUser_ItemRequestBuilder WithUrl(string rawUrl) { return new WithUser_ItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_PatchRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_PatchRequestBody.cs index 2d62005..d4959b4 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_PatchRequestBody.cs @@ -17,7 +17,7 @@ public class WithUser_PatchRequestBody : IAdditionalDataHolder, IParsable { public string Role { get; set; } #endif /// - /// Instantiates a new WithUser_PatchRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public WithUser_PatchRequestBody() { AdditionalData = new Dictionary(); @@ -25,6 +25,7 @@ public WithUser_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 WithUser_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -33,6 +34,7 @@ public static WithUser_PatchRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"role", n => { Role = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsPostRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsPostRequestBody.cs index 8087397..e643930 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsPostRequestBody.cs @@ -25,7 +25,7 @@ public class MembershipsPostRequestBody : IAdditionalDataHolder, IParsable { public string UserId { get; set; } #endif /// - /// Instantiates a new membershipsPostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public MembershipsPostRequestBody() { AdditionalData = new Dictionary(); @@ -33,6 +33,7 @@ public MembershipsPostRequestBody() { /// /// 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 MembershipsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -41,6 +42,7 @@ public static MembershipsPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"role", n => { Role = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsRequestBuilder.cs index 3b78feb..e49420f 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsRequestBuilder.cs @@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Organizations.Item.Memberships { public class MembershipsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.organizations.item.memberships.item collection /// The ID of the user that this membership belongs to + /// A public WithUser_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("user_id", position); return new WithUser_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new MembershipsRequestBuilder 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 MembershipsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{organization_id}/memberships{?limit*,offset*,order_by*}", pathParameters) { } /// - /// Instantiates a new MembershipsRequestBuilder 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 MembershipsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Retrieves all user memberships for the given organization /// + /// 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 422 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,14 @@ public async Task GetAsync(Action /// Adds a user as a member to the given organization.Only users in the same instance as the organization can be added as members. /// + /// 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 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(MembershipsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -80,6 +89,7 @@ public async Task PostAsync(MembershipsPostRequestBody b /// /// Retrieves all user memberships for the given organization /// + /// 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 +106,7 @@ public RequestInformation ToGetRequestInformation(Action /// Adds a user as a member to the given organization.Only users in the same instance as the organization can be added as members. /// + /// 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,7 +117,7 @@ public RequestInformation ToPostRequestInformation(MembershipsPostRequestBody bo public RequestInformation ToPostRequestInformation(MembershipsPostRequestBody 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}/organizations/{organization_id}/memberships", PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -115,6 +126,7 @@ public RequestInformation ToPostRequestInformation(MembershipsPostRequestBody 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 MembershipsRequestBuilder WithUrl(string rawUrl) { return new MembershipsRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody.cs index 66eccc1..b4b2edc 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody.cs @@ -25,6 +25,7 @@ public class MetadataPatchRequestBody : 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 MetadataPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -33,6 +34,7 @@ public static MetadataPatchRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(MetadataPatchRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, diff --git a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs index 875bfd7..cc02cee 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs @@ -12,7 +12,7 @@ public class MetadataPatchRequestBody_private_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 metadataPatchRequestBody_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public MetadataPatchRequestBody_private_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public MetadataPatchRequestBody_private_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 MetadataPatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static MetadataPatchRequestBody_private_metadata CreateFromDiscriminatorV /// /// 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/Organizations/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs index dd9137f..e6b77f2 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs @@ -12,7 +12,7 @@ public class MetadataPatchRequestBody_public_metadata : IAdditionalDataHolder, I /// 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 metadataPatchRequestBody_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public MetadataPatchRequestBody_public_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public MetadataPatchRequestBody_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 MetadataPatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static MetadataPatchRequestBody_public_metadata CreateFromDiscriminatorVa /// /// 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/Organizations/Item/Metadata/MetadataRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataRequestBuilder.cs index 4af40c9..1e93a7d 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Organizations.Item.Metadata { /// public class MetadataRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new MetadataRequestBuilder 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 MetadataRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{organization_id}/metadata", pathParameters) { } /// - /// Instantiates a new MetadataRequestBuilder 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,14 @@ public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// Update organization metadata attributes by merging existing values with the provided parameters.Metadata values will be updated via a deep merge.Deep meaning that any nested JSON objects will be merged as well.You can remove metadata keys at any level by setting their value to `null`. /// + /// 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 + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PatchAsync(MetadataPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -53,6 +58,7 @@ public async Task PatchAsync(MetadataPatchRequestBody body, Action /// /// Update organization metadata attributes by merging existing values with the provided parameters.Metadata values will be updated via a deep merge.Deep meaning that any nested JSON objects will be merged as well.You can remove metadata keys at any level by setting their value to `null`. /// + /// 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 @@ -72,6 +78,7 @@ public RequestInformation ToPatchRequestInformation(MetadataPatchRequestBody 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 MetadataRequestBuilder WithUrl(string rawUrl) { return new MetadataRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_ItemRequestBuilder.cs index 73a6eed..76dba2f 100644 --- a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_ItemRequestBuilder.cs @@ -34,14 +34,14 @@ public class WithOrganization_ItemRequestBuilder : BaseRequestBuilder { new MetadataRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new WithOrganization_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 WithOrganization_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{organization_id}", pathParameters) { } /// - /// Instantiates a new WithOrganization_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. @@ -50,8 +50,10 @@ public WithOrganization_ItemRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Deletes the given organization.Please note that deleting an organization will also delete all memberships and invitations.This is not reversible. /// + /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -68,8 +70,11 @@ public async Task DeleteAsync(Action /// Fetches the organization whose ID or slug matches the provided `id_or_slug` URL query parameter. /// + /// 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 GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -87,9 +92,13 @@ public async Task GetAsync(Action /// Updates an existing organization /// + /// 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(WithOrganization_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -100,6 +109,7 @@ public async Task PatchAsync(WithOrganization_PatchRequestBody bod _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { + {"402", ClerkErrors.CreateFromDiscriminatorValue}, {"404", ClerkErrors.CreateFromDiscriminatorValue}, {"422", ClerkErrors.CreateFromDiscriminatorValue}, }; @@ -108,6 +118,7 @@ public async Task PatchAsync(WithOrganization_PatchRequestBody bod /// /// Deletes the given organization.Please note that deleting an organization will also delete all memberships and invitations.This is not reversible. /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -124,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action /// Fetches the organization whose ID or slug matches the provided `id_or_slug` URL query parameter. /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -140,6 +152,7 @@ public RequestInformation ToGetRequestInformation(Action /// Updates an existing organization /// + /// 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 @@ -159,6 +172,7 @@ public RequestInformation ToPatchRequestInformation(WithOrganization_PatchReques /// /// 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 WithOrganization_ItemRequestBuilder WithUrl(string rawUrl) { return new WithOrganization_ItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody.cs index c16ab29..554bd35 100644 --- a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody.cs @@ -45,6 +45,7 @@ public class WithOrganization_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 WithOrganization_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -53,6 +54,7 @@ public static WithOrganization_PatchRequestBody CreateFromDiscriminatorValue(IPa /// /// 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/Organizations/Item/WithOrganization_PatchRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_private_metadata.cs index a1520dc..145f0ff 100644 --- a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_private_metadata.cs @@ -12,7 +12,7 @@ public class WithOrganization_PatchRequestBody_private_metadata : IAdditionalDat /// 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 WithOrganization_PatchRequestBody_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public WithOrganization_PatchRequestBody_private_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public WithOrganization_PatchRequestBody_private_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 WithOrganization_PatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static WithOrganization_PatchRequestBody_private_metadata CreateFromDiscr /// /// 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/Organizations/Item/WithOrganization_PatchRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_public_metadata.cs index 12689b6..cc0aef3 100644 --- a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_public_metadata.cs @@ -12,7 +12,7 @@ public class WithOrganization_PatchRequestBody_public_metadata : IAdditionalData /// 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 WithOrganization_PatchRequestBody_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public WithOrganization_PatchRequestBody_public_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public WithOrganization_PatchRequestBody_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 WithOrganization_PatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static WithOrganization_PatchRequestBody_public_metadata CreateFromDiscri /// /// 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/Organizations/OrganizationsPostRequestBody.cs b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody.cs index 348b3a1..376c642 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody.cs @@ -51,7 +51,7 @@ public class OrganizationsPostRequestBody : IAdditionalDataHolder, IParsable { public string Slug { get; set; } #endif /// - /// Instantiates a new organizationsPostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsPostRequestBody() { AdditionalData = new Dictionary(); @@ -59,6 +59,7 @@ public OrganizationsPostRequestBody() { /// /// 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 OrganizationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -67,6 +68,7 @@ public static OrganizationsPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"created_by", n => { CreatedBy = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_private_metadata.cs index 02fe167..1440523 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_private_metadata.cs @@ -12,7 +12,7 @@ public class OrganizationsPostRequestBody_private_metadata : IAdditionalDataHold /// 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 organizationsPostRequestBody_private_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsPostRequestBody_private_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public OrganizationsPostRequestBody_private_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 OrganizationsPostRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static OrganizationsPostRequestBody_private_metadata CreateFromDiscrimina /// /// 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/Organizations/OrganizationsPostRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_public_metadata.cs index aff5f7c..12bfb5a 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_public_metadata.cs @@ -12,7 +12,7 @@ public class OrganizationsPostRequestBody_public_metadata : IAdditionalDataHolde /// 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 organizationsPostRequestBody_public_metadata and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsPostRequestBody_public_metadata() { AdditionalData = new Dictionary(); @@ -20,6 +20,7 @@ public OrganizationsPostRequestBody_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 OrganizationsPostRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -28,6 +29,7 @@ public static OrganizationsPostRequestBody_public_metadata CreateFromDiscriminat /// /// 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/Organizations/OrganizationsRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs index 6b54955..21b6350 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs @@ -16,30 +16,35 @@ namespace Clerk.Net.Client.Organizations { public class OrganizationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.organizations.item collection /// The ID or slug of the organization + /// A public WithOrganization_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("organization_id", position); return new WithOrganization_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new OrganizationsRequestBuilder 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 OrganizationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations{?limit*,offset*,include_members_count*,query*,order_by*}", pathParameters) { + public OrganizationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations{?include_members_count*,limit*,offset*,order_by*,query*}", pathParameters) { } /// - /// Instantiates a new OrganizationsRequestBuilder 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 OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations{?limit*,offset*,include_members_count*,query*,order_by*}", rawUrl) { + public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations{?include_members_count*,limit*,offset*,order_by*,query*}", rawUrl) { } /// /// This request returns the list of organizations for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The organizations are ordered by descending creation date.Most recent organizations will be returned first. /// + /// 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 403 status code + /// When receiving a 422 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 +63,13 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Creates a new organization with the given name for an instance.In order to successfully create an organization you need to provide the ID of the User who will become the organization administrator.You can specify an optional slug for the new organization.If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-".Organization slugs must be unique for the instance.You can provide additional metadata for the organization and set any custom attribute you want.Organizations support private and public metadata.Private metadata can only be accessed from the Backend API.Public metadata can be accessed from the Backend API, and are read-only from the Frontend API. /// + /// 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 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(OrganizationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -80,6 +89,7 @@ public async Task PostAsync(OrganizationsPostRequestBody body, Act /// /// This request returns the list of organizations for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The organizations are ordered by descending creation date.Most recent organizations will be returned first. /// + /// 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 +106,7 @@ public RequestInformation ToGetRequestInformation(Action /// Creates a new organization with the given name for an instance.In order to successfully create an organization you need to provide the ID of the User who will become the organization administrator.You can specify an optional slug for the new organization.If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-".Organization slugs must be unique for the instance.You can provide additional metadata for the organization and set any custom attribute you want.Organizations support private and public metadata.Private metadata can only be accessed from the Backend API.Public metadata can be accessed from the Backend API, and are read-only from the Frontend API. /// + /// 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,7 +117,7 @@ public RequestInformation ToPostRequestInformation(OrganizationsPostRequestBody public RequestInformation ToPostRequestInformation(OrganizationsPostRequestBody 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}/organizations", PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -115,6 +126,7 @@ public RequestInformation ToPostRequestInformation(OrganizationsPostRequestBody /// /// 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 OrganizationsRequestBuilder WithUrl(string rawUrl) { return new OrganizationsRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_ItemRequestBuilder.cs index 5f10157..9f48589 100644 --- a/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_ItemRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Phone_numbers.Item { /// public class WithPhone_number_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new WithPhone_number_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 WithPhone_number_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/phone_numbers/{phone_number_id}", pathParameters) { } /// - /// Instantiates a new WithPhone_number_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 WithPhone_number_ItemRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Delete the phone number 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 a phone number /// + /// 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 a phone number /// + /// 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(WithPhone_number_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -95,6 +110,7 @@ public async Task PatchAsync(WithPhone_number_PatchRequestBody body /// /// Delete the phone number 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 a phone number /// + /// 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 a phone number /// + /// 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(WithPhone_number_PatchReques /// /// 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 WithPhone_number_ItemRequestBuilder WithUrl(string rawUrl) { return new WithPhone_number_ItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_PatchRequestBody.cs b/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_PatchRequestBody.cs index 88561ce..fb4a010 100644 --- a/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_PatchRequestBody.cs @@ -10,10 +10,12 @@ public class WithPhone_number_PatchRequestBody : IAdditionalDataHolder, IParsabl public IDictionary AdditionalData { get; set; } /// Set this phone number as the primary phone number for the user. public bool? Primary { get; set; } + /// Set this phone number as reserved for multi-factor authentication.The phone number must also be verified.If there are no other reserved second factors, the phone number will be set as the default second factor. + public bool? ReservedForSecondFactor { get; set; } /// The phone number will be marked as verified. public bool? Verified { get; set; } /// - /// Instantiates a new WithPhone_number_PatchRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPhone_number_PatchRequestBody() { AdditionalData = new Dictionary(); @@ -21,6 +23,7 @@ public WithPhone_number_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 WithPhone_number_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -29,9 +32,11 @@ public static WithPhone_number_PatchRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"primary", n => { Primary = n.GetBoolValue(); } }, + {"reserved_for_second_factor", n => { ReservedForSecondFactor = n.GetBoolValue(); } }, {"verified", n => { Verified = n.GetBoolValue(); } }, }; } @@ -42,6 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("primary", Primary); + writer.WriteBoolValue("reserved_for_second_factor", ReservedForSecondFactor); writer.WriteBoolValue("verified", Verified); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Clerk.Net/Client/Phone_numbers/Phone_numbersPostRequestBody.cs b/src/Clerk.Net/Client/Phone_numbers/Phone_numbersPostRequestBody.cs index 4641740..946a3f3 100644 --- a/src/Clerk.Net/Client/Phone_numbers/Phone_numbersPostRequestBody.cs +++ b/src/Clerk.Net/Client/Phone_numbers/Phone_numbersPostRequestBody.cs @@ -18,6 +18,8 @@ public class Phone_numbersPostRequestBody : IAdditionalDataHolder, IParsable { #endif /// Create this phone number as the primary phone number for the user.Default: false, unless it is the first phone number. public bool? Primary { get; set; } + /// Create this phone number as reserved for multi-factor authentication.The phone number must also be verified.If there are no other reserved second factors, the phone number will be set as the default second factor. + public bool? ReservedForSecondFactor { get; set; } /// The ID representing the user #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -29,7 +31,7 @@ public class Phone_numbersPostRequestBody : IAdditionalDataHolder, IParsable { /// When created, the phone number will be marked as verified. public bool? Verified { get; set; } /// - /// Instantiates a new phone_numbersPostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public Phone_numbersPostRequestBody() { AdditionalData = new Dictionary(); @@ -37,6 +39,7 @@ public Phone_numbersPostRequestBody() { /// /// 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 Phone_numbersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -45,10 +48,12 @@ public static Phone_numbersPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"phone_number", n => { PhoneNumber = n.GetStringValue(); } }, {"primary", n => { Primary = n.GetBoolValue(); } }, + {"reserved_for_second_factor", n => { ReservedForSecondFactor = n.GetBoolValue(); } }, {"user_id", n => { UserId = n.GetStringValue(); } }, {"verified", n => { Verified = n.GetBoolValue(); } }, }; @@ -61,6 +66,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("phone_number", PhoneNumber); writer.WriteBoolValue("primary", Primary); + writer.WriteBoolValue("reserved_for_second_factor", ReservedForSecondFactor); writer.WriteStringValue("user_id", UserId); writer.WriteBoolValue("verified", Verified); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Clerk.Net/Client/Phone_numbers/Phone_numbersRequestBuilder.cs b/src/Clerk.Net/Client/Phone_numbers/Phone_numbersRequestBuilder.cs index 2e43fba..1a17795 100644 --- a/src/Clerk.Net/Client/Phone_numbers/Phone_numbersRequestBuilder.cs +++ b/src/Clerk.Net/Client/Phone_numbers/Phone_numbersRequestBuilder.cs @@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Phone_numbers { public class Phone_numbersRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.phone_numbers.item collection /// The ID of the phone number to retrieve + /// A public WithPhone_number_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("phone_number_id", position); return new WithPhone_number_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new Phone_numbersRequestBuilder 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 Phone_numbersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/phone_numbers", pathParameters) { } /// - /// Instantiates a new Phone_numbersRequestBuilder 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 Phone_numbersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Create a new phone number /// + /// 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(Phone_numbersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -62,6 +69,7 @@ public async Task PostAsync(Phone_numbersPostRequestBody body, Acti /// /// Create a new phone number /// + /// 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(Phone_numbersPostRequestBody /// /// 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 Phone_numbersRequestBuilder WithUrl(string rawUrl) { return new Phone_numbersRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Proxy_checks/Proxy_checksPostRequestBody.cs b/src/Clerk.Net/Client/Proxy_checks/Proxy_checksPostRequestBody.cs index 175749a..1acd5da 100644 --- a/src/Clerk.Net/Client/Proxy_checks/Proxy_checksPostRequestBody.cs +++ b/src/Clerk.Net/Client/Proxy_checks/Proxy_checksPostRequestBody.cs @@ -25,7 +25,7 @@ public class Proxy_checksPostRequestBody : IAdditionalDataHolder, IParsable { public string ProxyUrl { get; set; } #endif /// - /// Instantiates a new proxy_checksPostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public Proxy_checksPostRequestBody() { AdditionalData = new Dictionary(); @@ -33,6 +33,7 @@ public Proxy_checksPostRequestBody() { /// /// 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 Proxy_checksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -41,6 +42,7 @@ public static Proxy_checksPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"domain_id", n => { DomainId = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Proxy_checks/Proxy_checksRequestBuilder.cs b/src/Clerk.Net/Client/Proxy_checks/Proxy_checksRequestBuilder.cs index 5bcda9f..185d19d 100644 --- a/src/Clerk.Net/Client/Proxy_checks/Proxy_checksRequestBuilder.cs +++ b/src/Clerk.Net/Client/Proxy_checks/Proxy_checksRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Proxy_checks { /// public class Proxy_checksRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new Proxy_checksRequestBuilder 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 Proxy_checksRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/proxy_checks", pathParameters) { } /// - /// Instantiates a new Proxy_checksRequestBuilder 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 Proxy_checksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// This endpoint can be used to validate that a proxy-enabled domain is operational.It tries to verify that the proxy URL provided in the parameters maps to a functional proxy that can reach the Clerk Frontend API.You can use this endpoint before you set a proxy URL for a domain. This way you can ensure that switching to proxy-basedconfiguration will not lead to downtime for your instance.The `proxy_url` parameter allows for testing proxy configurations for domains that don't have a proxy URL yet, or operate ona different proxy URL than the one provided. It can also be used to re-validate a domain that is already configured to work with a proxy. /// + /// 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(Proxy_checksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -51,6 +54,7 @@ public async Task PostAsync(Proxy_checksPostRequestBody body, Action /// /// This endpoint can be used to validate that a proxy-enabled domain is operational.It tries to verify that the proxy URL provided in the parameters maps to a functional proxy that can reach the Clerk Frontend API.You can use this endpoint before you set a proxy URL for a domain. This way you can ensure that switching to proxy-basedconfiguration will not lead to downtime for your instance.The `proxy_url` parameter allows for testing proxy configurations for domains that don't have a proxy URL yet, or operate ona different proxy URL than the one provided. It can also be used to re-validate a domain that is already configured to work with a proxy. /// + /// 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 ToPostRequestInformation(Proxy_checksPostRequestBody 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 Proxy_checksRequestBuilder WithUrl(string rawUrl) { return new Proxy_checksRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Public/Interstitial/InterstitialRequestBuilder.cs b/src/Clerk.Net/Client/Public/Interstitial/InterstitialRequestBuilder.cs index 4f57c19..7cc6cf8 100644 --- a/src/Clerk.Net/Client/Public/Interstitial/InterstitialRequestBuilder.cs +++ b/src/Clerk.Net/Client/Public/Interstitial/InterstitialRequestBuilder.cs @@ -13,14 +13,14 @@ namespace Clerk.Net.Client.Public.Interstitial { /// public class InterstitialRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new InterstitialRequestBuilder 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 InterstitialRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/public/interstitial{?frontendApi*,publishable_key*}", pathParameters) { } /// - /// Instantiates a new InterstitialRequestBuilder 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 InterstitialRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// The Clerk interstitial endpoint serves an html page that loads clerk.js in order to check the user's authentication state.It is used by Clerk SDKs when the user's authentication state cannot be immediately determined. /// + /// 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 /// The Clerk interstitial endpoint serves an html page that loads clerk.js in order to check the user's authentication state.It is used by Clerk SDKs when the user's authentication state cannot be immediately determined. /// + /// 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 InterstitialRequestBuilder WithUrl(string rawUrl) { return new InterstitialRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Public/PublicRequestBuilder.cs b/src/Clerk.Net/Client/Public/PublicRequestBuilder.cs index 44c3b9a..58b1b1e 100644 --- a/src/Clerk.Net/Client/Public/PublicRequestBuilder.cs +++ b/src/Clerk.Net/Client/Public/PublicRequestBuilder.cs @@ -16,14 +16,14 @@ public class PublicRequestBuilder : BaseRequestBuilder { new InterstitialRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new PublicRequestBuilder 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 PublicRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/public", pathParameters) { } /// - /// Instantiates a new PublicRequestBuilder 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/Redirect_urls/Item/Redirect_urlsItemRequestBuilder.cs b/src/Clerk.Net/Client/Redirect_urls/Item/Redirect_urlsItemRequestBuilder.cs index f9677d5..b679904 100644 --- a/src/Clerk.Net/Client/Redirect_urls/Item/Redirect_urlsItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Redirect_urls/Item/Redirect_urlsItemRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Redirect_urls.Item { /// public class Redirect_urlsItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new Redirect_urlsItemRequestBuilder 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 Redirect_urlsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/redirect_urls/{id}", pathParameters) { } /// - /// Instantiates a new Redirect_urlsItemRequestBuilder 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,10 @@ public Redirect_urlsItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// Remove the selected redirect URL from the whitelist of the instance /// + /// 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 DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -48,8 +50,10 @@ public async Task DeleteAsync(Action /// Retrieve the details of the redirect URL 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 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -66,6 +70,7 @@ public async Task GetAsync(Action /// Remove the selected redirect URL from the whitelist 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 @@ -82,6 +87,7 @@ public RequestInformation ToDeleteRequestInformation(Action /// Retrieve the details of the redirect URL 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 @@ -98,6 +104,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 Redirect_urlsItemRequestBuilder WithUrl(string rawUrl) { return new Redirect_urlsItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsPostRequestBody.cs b/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsPostRequestBody.cs index 121926c..7df5337 100644 --- a/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsPostRequestBody.cs @@ -17,7 +17,7 @@ public class Redirect_urlsPostRequestBody : IAdditionalDataHolder, IParsable { public string Url { get; set; } #endif /// - /// Instantiates a new redirect_urlsPostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public Redirect_urlsPostRequestBody() { AdditionalData = new Dictionary(); @@ -25,6 +25,7 @@ public Redirect_urlsPostRequestBody() { /// /// 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 Redirect_urlsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -33,6 +34,7 @@ public static Redirect_urlsPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"url", n => { Url = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsRequestBuilder.cs b/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsRequestBuilder.cs index b278c84..d8531ff 100644 --- a/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsRequestBuilder.cs @@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Redirect_urls { public class Redirect_urlsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.redirect_urls.item collection /// The ID of the redirect URL + /// A public Redirect_urlsItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("id", position); return new Redirect_urlsItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new Redirect_urlsRequestBuilder 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 Redirect_urlsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/redirect_urls", pathParameters) { } /// - /// Instantiates a new Redirect_urlsRequestBuilder 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 Redirect_urlsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Lists all whitelisted redirect_urls for the instance /// + /// A List<RedirectURL> /// 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 /// Create a redirect URL /// + /// 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(Redirect_urlsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -75,6 +80,7 @@ public async Task PostAsync(Redirect_urlsPostRequestBody body, Acti /// /// Lists all whitelisted redirect_urls for 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 @@ -91,6 +97,7 @@ public RequestInformation ToGetRequestInformation(Action /// Create a redirect URL /// + /// 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 @@ -110,6 +117,7 @@ public RequestInformation ToPostRequestInformation(Redirect_urlsPostRequestBody /// /// 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 Redirect_urlsRequestBuilder WithUrl(string rawUrl) { return new Redirect_urlsRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_ItemRequestBuilder.cs index d162a10..82a1989 100644 --- a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_ItemRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Saml_connections.Item { /// public class WithSaml_connection_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new WithSaml_connection_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 WithSaml_connection_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/saml_connections/{saml_connection_id}", pathParameters) { } /// - /// Instantiates a new WithSaml_connection_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 WithSaml_connection_ItemRequestBuilder(string rawUrl, IRequestAdapter req /// /// Deletes the SAML Connection whose ID matches the provided `id` in the path. <br/> Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// 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 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) { @@ -50,8 +54,12 @@ public async Task DeleteAsync(Action /// Fetches the SAML Connection whose ID matches the provided `saml_connection_id` in the path. <br/> Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// 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 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) { @@ -70,9 +78,14 @@ public async Task GetAsync(Action /// Updates the SAML Connection whose ID matches the provided `id` in the path. <br/> Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// 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 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 PatchAsync(WithSaml_connection_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -93,6 +106,7 @@ public async Task PatchAsync(WithSaml_connection_PatchRequestBod /// /// Deletes the SAML Connection whose ID matches the provided `id` in the path. <br/> Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -109,6 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action /// Fetches the SAML Connection whose ID matches the provided `saml_connection_id` in the path. <br/> Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -125,6 +140,7 @@ public RequestInformation ToGetRequestInformation(Action /// Updates the SAML Connection whose ID matches the provided `id` in the path. <br/> Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// 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 @@ -144,6 +160,7 @@ public RequestInformation ToPatchRequestInformation(WithSaml_connection_PatchReq /// /// 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 WithSaml_connection_ItemRequestBuilder WithUrl(string rawUrl) { return new WithSaml_connection_ItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs index e7295c8..427375c 100644 --- a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs @@ -8,6 +8,18 @@ namespace Clerk.Net.Client.Saml_connections.Item { public class WithSaml_connection_PatchRequestBody : IParsable { /// Activate or de-activate the SAML Connection public bool? Active { get; set; } + /// Enable or deactivate IdP-initiated flows + public bool? AllowIdpInitiated { get; set; } + /// Allow users with an email address subdomain to use this connection in order to authenticate + public bool? AllowSubdomains { get; set; } + /// Define the atrtibute name mapping between Identity Provider and Clerk's user properties +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WithSaml_connection_PatchRequestBody_attribute_mapping? AttributeMapping { get; set; } +#nullable restore +#else + public WithSaml_connection_PatchRequestBody_attribute_mapping AttributeMapping { get; set; } +#endif /// The domain to use for the new SAML Connection #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -31,6 +43,14 @@ public class WithSaml_connection_PatchRequestBody : IParsable { #nullable restore #else public string IdpEntityId { get; set; } +#endif + /// The URL which serves the IdP metadata. If present, it takes priority over the corresponding individual properties and replaces them +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IdpMetadataUrl { get; set; } +#nullable restore +#else + public string IdpMetadataUrl { get; set; } #endif /// The SSO url as provided by the IdP #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -53,6 +73,7 @@ public class WithSaml_connection_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 WithSaml_connection_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -61,12 +82,17 @@ public static WithSaml_connection_PatchRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"active", n => { Active = n.GetBoolValue(); } }, + {"allow_idp_initiated", n => { AllowIdpInitiated = n.GetBoolValue(); } }, + {"allow_subdomains", n => { AllowSubdomains = n.GetBoolValue(); } }, + {"attribute_mapping", n => { AttributeMapping = n.GetObjectValue(WithSaml_connection_PatchRequestBody_attribute_mapping.CreateFromDiscriminatorValue); } }, {"domain", n => { Domain = n.GetStringValue(); } }, {"idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, {"idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, + {"idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, {"idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, {"sync_user_attributes", n => { SyncUserAttributes = n.GetBoolValue(); } }, @@ -79,9 +105,13 @@ public virtual IDictionary> GetFieldDeserializers() { public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("active", Active); + writer.WriteBoolValue("allow_idp_initiated", AllowIdpInitiated); + writer.WriteBoolValue("allow_subdomains", AllowSubdomains); + writer.WriteObjectValue("attribute_mapping", AttributeMapping); writer.WriteStringValue("domain", Domain); writer.WriteStringValue("idp_certificate", IdpCertificate); writer.WriteStringValue("idp_entity_id", IdpEntityId); + writer.WriteStringValue("idp_metadata_url", IdpMetadataUrl); writer.WriteStringValue("idp_sso_url", IdpSsoUrl); writer.WriteStringValue("name", Name); writer.WriteBoolValue("sync_user_attributes", SyncUserAttributes); diff --git a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody_attribute_mapping.cs b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody_attribute_mapping.cs new file mode 100644 index 0000000..979146e --- /dev/null +++ b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody_attribute_mapping.cs @@ -0,0 +1,77 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Clerk.Net.Client.Saml_connections.Item { + /// + /// Define the atrtibute name mapping between Identity Provider and Clerk's user properties + /// + public class WithSaml_connection_PatchRequestBody_attribute_mapping : IParsable { + /// The email_address property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EmailAddress { get; set; } +#nullable restore +#else + public string EmailAddress { get; set; } +#endif + /// The first_name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FirstName { get; set; } +#nullable restore +#else + public string FirstName { get; set; } +#endif + /// The last_name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LastName { get; set; } +#nullable restore +#else + public string LastName { get; set; } +#endif + /// The user_id property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserId { get; set; } +#nullable restore +#else + public string UserId { get; set; } +#endif + /// + /// 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 WithSaml_connection_PatchRequestBody_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WithSaml_connection_PatchRequestBody_attribute_mapping(); + } + /// + /// 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(); } }, + {"first_name", n => { FirstName = n.GetStringValue(); } }, + {"last_name", n => { LastName = n.GetStringValue(); } }, + {"user_id", n => { UserId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("email_address", EmailAddress); + writer.WriteStringValue("first_name", FirstName); + writer.WriteStringValue("last_name", LastName); + writer.WriteStringValue("user_id", UserId); + } + } +} diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs index d6c1462..db33d6b 100644 --- a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs @@ -6,6 +6,14 @@ using System; namespace Clerk.Net.Client.Saml_connections { public class Saml_connectionsPostRequestBody : IParsable { + /// Define the attribute name mapping between Identity Provider and Clerk's user properties +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Saml_connectionsPostRequestBody_attribute_mapping? AttributeMapping { get; set; } +#nullable restore +#else + public Saml_connectionsPostRequestBody_attribute_mapping AttributeMapping { get; set; } +#endif /// The domain of your organization. Sign in flows using an email with this domain, will use this SAML Connection. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -29,6 +37,14 @@ public class Saml_connectionsPostRequestBody : IParsable { #nullable restore #else public string IdpEntityId { get; set; } +#endif + /// The URL which serves the IdP metadata. If present, it takes priority over the corresponding individual properties +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IdpMetadataUrl { get; set; } +#nullable restore +#else + public string IdpMetadataUrl { get; set; } #endif /// The Single-Sign On URL as provided by the IdP #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,9 +62,12 @@ public class Saml_connectionsPostRequestBody : IParsable { #else public string Name { get; set; } #endif + /// The IdP provider of the connection. + public Saml_connectionsPostRequestBody_provider? Provider { get; set; } /// /// 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 Saml_connectionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -57,13 +76,17 @@ public static Saml_connectionsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"attribute_mapping", n => { AttributeMapping = n.GetObjectValue(Saml_connectionsPostRequestBody_attribute_mapping.CreateFromDiscriminatorValue); } }, {"domain", n => { Domain = n.GetStringValue(); } }, {"idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, {"idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, + {"idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, {"idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, + {"provider", n => { Provider = n.GetEnumValue(); } }, }; } /// @@ -72,11 +95,14 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("attribute_mapping", AttributeMapping); writer.WriteStringValue("domain", Domain); writer.WriteStringValue("idp_certificate", IdpCertificate); writer.WriteStringValue("idp_entity_id", IdpEntityId); + writer.WriteStringValue("idp_metadata_url", IdpMetadataUrl); writer.WriteStringValue("idp_sso_url", IdpSsoUrl); writer.WriteStringValue("name", Name); + writer.WriteEnumValue("provider", Provider); } } } diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_attribute_mapping.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_attribute_mapping.cs new file mode 100644 index 0000000..ccce992 --- /dev/null +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_attribute_mapping.cs @@ -0,0 +1,77 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Clerk.Net.Client.Saml_connections { + /// + /// Define the attribute name mapping between Identity Provider and Clerk's user properties + /// + public class Saml_connectionsPostRequestBody_attribute_mapping : IParsable { + /// The email_address property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EmailAddress { get; set; } +#nullable restore +#else + public string EmailAddress { get; set; } +#endif + /// The first_name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FirstName { get; set; } +#nullable restore +#else + public string FirstName { get; set; } +#endif + /// The last_name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LastName { get; set; } +#nullable restore +#else + public string LastName { get; set; } +#endif + /// The user_id property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserId { get; set; } +#nullable restore +#else + public string UserId { get; set; } +#endif + /// + /// 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 Saml_connectionsPostRequestBody_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Saml_connectionsPostRequestBody_attribute_mapping(); + } + /// + /// 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(); } }, + {"first_name", n => { FirstName = n.GetStringValue(); } }, + {"last_name", n => { LastName = n.GetStringValue(); } }, + {"user_id", n => { UserId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("email_address", EmailAddress); + writer.WriteStringValue("first_name", FirstName); + writer.WriteStringValue("last_name", LastName); + writer.WriteStringValue("user_id", UserId); + } + } +} diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_provider.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_provider.cs new file mode 100644 index 0000000..12bf7e5 --- /dev/null +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_provider.cs @@ -0,0 +1,16 @@ +// +using System.Runtime.Serialization; +using System; +namespace Clerk.Net.Client.Saml_connections { + /// The IdP provider of the connection. + public enum Saml_connectionsPostRequestBody_provider { + [EnumMember(Value = "saml_custom")] + Saml_custom, + [EnumMember(Value = "saml_okta")] + Saml_okta, + [EnumMember(Value = "saml_google")] + Saml_google, + [EnumMember(Value = "saml_microsoft")] + Saml_microsoft, + } +} diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs index 91f76bb..07eaaf0 100644 --- a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs @@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Saml_connections { public class Saml_connectionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.saml_connections.item collection /// The ID of the SAML Connection + /// A public WithSaml_connection_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("saml_connection_id", position); return new WithSaml_connection_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new Saml_connectionsRequestBuilder 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 Saml_connectionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/saml_connections{?limit*,offset*}", pathParameters) { } /// - /// Instantiates a new Saml_connectionsRequestBuilder 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,12 @@ public Saml_connectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Returns the list of SAML Connections for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The SAML Connections are ordered by descending creation date and the most recent will be returned first. <br/> Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// 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 403 status code + /// When receiving a 422 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 +63,13 @@ public async Task GetAsync(Action /// Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// 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 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Saml_connectionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -80,6 +89,7 @@ public async Task PostAsync(Saml_connectionsPostRequestBody body /// /// Returns the list of SAML Connections for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The SAML Connections are ordered by descending creation date and the most recent will be returned first. <br/> Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// 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 +106,7 @@ public RequestInformation ToGetRequestInformation(Action /// Refer to <a href="https://clerk.com/docs/authentication/saml-at-clerk#saml-at-clerk-beta">Clerk SAML documentation</a> for more information. /// + /// 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,7 +117,7 @@ public RequestInformation ToPostRequestInformation(Saml_connectionsPostRequestBo public RequestInformation ToPostRequestInformation(Saml_connectionsPostRequestBody 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}/saml_connections", PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -115,6 +126,7 @@ public RequestInformation ToPostRequestInformation(Saml_connectionsPostRequestBo /// /// 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 Saml_connectionsRequestBuilder WithUrl(string rawUrl) { return new Saml_connectionsRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Sessions/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/Revoke/RevokeRequestBuilder.cs index 5f7a09a..af5226a 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Revoke/RevokeRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Revoke/RevokeRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Sessions.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}/sessions/{session_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,12 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Sets the status of a session as "revoked", which is an unauthenticated state.In multi-session mode, a revoked session will still be returned along with its client object, however the user will need to sign in again. /// + /// 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 PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -50,6 +54,7 @@ public async Task PostAsync(Action /// Sets the status of a session as "revoked", which is an unauthenticated state.In multi-session mode, a revoked session will still be returned along with its client object, however the user will need to sign in again. /// + /// 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 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/Sessions/Item/Tokens/Item/WithTemplate_nameItemRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_nameItemRequestBuilder.cs index 24645d9..5388f30 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_nameItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_nameItemRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Sessions.Item.Tokens.Item { /// public class WithTemplate_nameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new WithTemplate_nameItemRequestBuilder 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_nameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sessions/{session_id}/tokens/{template_name}", pathParameters) { } /// - /// Instantiates a new WithTemplate_nameItemRequestBuilder 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_nameItemRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Creates a JSON Web Token(JWT) based on a session and a JWT Template name defined for your 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 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 /// Creates a JSON Web Token(JWT) based on a session and a JWT Template name defined for your 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 @@ -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 WithTemplate_nameItemRequestBuilder WithUrl(string rawUrl) { return new WithTemplate_nameItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse.cs b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse.cs index 51dbd5f..d5ea3bc 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse.cs @@ -19,7 +19,7 @@ public class WithTemplate_namePostResponse : IAdditionalDataHolder, IParsable { /// The object property public WithTemplate_namePostResponse_object? Object { get; set; } /// - /// Instantiates a new WithTemplate_namePostResponse and sets the default values. + /// Instantiates a new and sets the default values. /// public WithTemplate_namePostResponse() { AdditionalData = new Dictionary(); @@ -27,6 +27,7 @@ public WithTemplate_namePostResponse() { /// /// 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_namePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -35,6 +36,7 @@ public static WithTemplate_namePostResponse CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"jwt", n => { Jwt = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Sessions/Item/Tokens/TokensRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/Tokens/TokensRequestBuilder.cs index d85d215..8c1cc02 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Tokens/TokensRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Tokens/TokensRequestBuilder.cs @@ -13,20 +13,21 @@ namespace Clerk.Net.Client.Sessions.Item.Tokens { public class TokensRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.sessions.item.tokens.item collection /// The name of the JWT Template defined in your instance (e.g. `custom_hasura`). + /// A public WithTemplate_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("template_name", position); return new WithTemplate_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new 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 TokensRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sessions/{session_id}/tokens", pathParameters) { } /// - /// Instantiates a new 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. diff --git a/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyPostRequestBody.cs b/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyPostRequestBody.cs index b4f070e..f648963 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyPostRequestBody.cs +++ b/src/Clerk.Net/Client/Sessions/Item/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/Sessions/Item/Verify/VerifyRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyRequestBuilder.cs index c3e22bd..50a0793 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyRequestBuilder.cs @@ -14,25 +14,30 @@ namespace Clerk.Net.Client.Sessions.Item.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}/sessions/{session_id}/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. public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sessions/{session_id}/verify", rawUrl) { } /// - /// Returns the session if it is authenticated, otherwise returns an error.WARNING: This endpoint is deprecated and will be removed in future versions. We strongly recommend switching to networkless verification using short-lived session tokens, which is implemented transparently in all recent SDK versions (e.g. [NodeJS SDK](https://clerk.com/docs/backend-requests/handling/nodejs#clerk-express-require-auth)). For more details on how networkless verification works, refer to our [Session Tokens documentation](https://clerk.com/docs/backend-requests/resources/session-tokens). + /// Returns the session if it is authenticated, otherwise returns an error.WARNING: This endpoint is deprecated and will be removed in future versions. We strongly recommend switching to networkless verification using short-lived session tokens, which is implemented transparently in all recent SDK versions (e.g. [NodeJS SDK](https://clerk.com/docs/backend-requests/handling/nodejs#clerk-express-require-auth)). For more details on how networkless verification works, refer to our [Session Tokens documentation](https://clerk.com/docs/backend-requests/resources/session-tokens). /// + /// 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 + /// When receiving a 410 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -52,8 +57,9 @@ public async Task PostAsync(VerifyPostRequestBody body, Action(requestInfo, Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Returns the session if it is authenticated, otherwise returns an error.WARNING: This endpoint is deprecated and will be removed in future versions. We strongly recommend switching to networkless verification using short-lived session tokens, which is implemented transparently in all recent SDK versions (e.g. [NodeJS SDK](https://clerk.com/docs/backend-requests/handling/nodejs#clerk-express-require-auth)). For more details on how networkless verification works, refer to our [Session Tokens documentation](https://clerk.com/docs/backend-requests/resources/session-tokens). + /// Returns the session if it is authenticated, otherwise returns an error.WARNING: This endpoint is deprecated and will be removed in future versions. We strongly recommend switching to networkless verification using short-lived session tokens, which is implemented transparently in all recent SDK versions (e.g. [NodeJS SDK](https://clerk.com/docs/backend-requests/handling/nodejs#clerk-express-require-auth)). For more details on how networkless verification works, refer to our [Session Tokens documentation](https://clerk.com/docs/backend-requests/resources/session-tokens). /// + /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] @@ -74,6 +80,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. [Obsolete("")] public VerifyRequestBuilder WithUrl(string rawUrl) { diff --git a/src/Clerk.Net/Client/Sessions/Item/WithSession_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/WithSession_ItemRequestBuilder.cs index 9bdc3be..5e18a43 100644 --- a/src/Clerk.Net/Client/Sessions/Item/WithSession_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/WithSession_ItemRequestBuilder.cs @@ -29,14 +29,14 @@ public class WithSession_ItemRequestBuilder : BaseRequestBuilder { new VerifyRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new WithSession_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 WithSession_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sessions/{session_id}", pathParameters) { } /// - /// Instantiates a new WithSession_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. @@ -45,8 +45,12 @@ public WithSession_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Retrieve the details of a session /// + /// 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) { @@ -65,6 +69,7 @@ public async Task GetAsync(Action /// Retrieve the details of a session /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -81,6 +86,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 WithSession_ItemRequestBuilder WithUrl(string rawUrl) { return new WithSession_ItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Sessions/SessionsRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/SessionsRequestBuilder.cs index 9a70c60..8485211 100644 --- a/src/Clerk.Net/Client/Sessions/SessionsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/SessionsRequestBuilder.cs @@ -16,30 +16,35 @@ namespace Clerk.Net.Client.Sessions { public class SessionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.sessions.item collection /// The ID of the session + /// A public WithSession_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("session_id", position); return new WithSession_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new SessionsRequestBuilder 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 SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sessions{?client_id*,user_id*,status*,limit*,offset*}", pathParameters) { + public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sessions{?client_id*,limit*,offset*,status*,user_id*}", pathParameters) { } /// - /// Instantiates a new SessionsRequestBuilder 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 SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sessions{?client_id*,user_id*,status*,limit*,offset*}", rawUrl) { + public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sessions{?client_id*,limit*,offset*,status*,user_id*}", rawUrl) { } /// - /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first. + /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first.**Deprecation Notice (2024-01-01):** All parameters were initially considered optional, howevermoving forward at least one of `client_id` or `user_id` parameters should be provided. /// + /// A List<Session> /// 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 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -57,8 +62,9 @@ public async Task> GetAsync(Action - /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first. + /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first.**Deprecation Notice (2024-01-01):** All parameters were initially considered optional, howevermoving forward at least one of `client_id` or `user_id` parameters should be provided. /// + /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -75,12 +81,13 @@ 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 SessionsRequestBuilder WithUrl(string rawUrl) { return new SessionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first. + /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first.**Deprecation Notice (2024-01-01):** All parameters were initially considered optional, howevermoving forward at least one of `client_id` or `user_id` parameters should be provided. /// public class SessionsRequestBuilderGetQueryParameters { /// List sessions for the given client diff --git a/src/Clerk.Net/Client/Sign_in_tokens/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Sign_in_tokens/Item/Revoke/RevokeRequestBuilder.cs index c22007d..75524a4 100644 --- a/src/Clerk.Net/Client/Sign_in_tokens/Item/Revoke/RevokeRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_in_tokens/Item/Revoke/RevokeRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Sign_in_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}/sign_in_tokens/{sign_in_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 sign-in 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 sign-in 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/Sign_in_tokens/Item/WithSign_in_token_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Sign_in_tokens/Item/WithSign_in_token_ItemRequestBuilder.cs index 3c6a3ea..9160b1a 100644 --- a/src/Clerk.Net/Client/Sign_in_tokens/Item/WithSign_in_token_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_in_tokens/Item/WithSign_in_token_ItemRequestBuilder.cs @@ -16,14 +16,14 @@ public class WithSign_in_token_ItemRequestBuilder : BaseRequestBuilder { new RevokeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new WithSign_in_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 WithSign_in_token_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sign_in_tokens/{sign_in_token_id}", pathParameters) { } /// - /// Instantiates a new WithSign_in_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/Sign_in_tokens/Sign_in_tokensPostRequestBody.cs b/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensPostRequestBody.cs index beaf540..61e16fa 100644 --- a/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensPostRequestBody.cs +++ b/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensPostRequestBody.cs @@ -19,7 +19,7 @@ public class Sign_in_tokensPostRequestBody : IAdditionalDataHolder, IParsable { public string UserId { get; set; } #endif /// - /// Instantiates a new sign_in_tokensPostRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public Sign_in_tokensPostRequestBody() { AdditionalData = new Dictionary(); @@ -27,6 +27,7 @@ public Sign_in_tokensPostRequestBody() { /// /// 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 Sign_in_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -35,6 +36,7 @@ public static Sign_in_tokensPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expires_in_seconds", n => { ExpiresInSeconds = n.GetIntValue(); } }, diff --git a/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensRequestBuilder.cs b/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensRequestBuilder.cs index 57c73d0..9e6bd7f 100644 --- a/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensRequestBuilder.cs @@ -16,20 +16,21 @@ namespace Clerk.Net.Client.Sign_in_tokens { public class Sign_in_tokensRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.sign_in_tokens.item collection /// The ID of the sign-in token to be revoked + /// A public WithSign_in_token_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("sign_in_token_id", position); return new WithSign_in_token_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new Sign_in_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 Sign_in_tokensRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sign_in_tokens", pathParameters) { } /// - /// Instantiates a new Sign_in_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,12 @@ public Sign_in_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// /// Creates a new sign-in token and associates it with the given user.By default, sign-in tokens expire in 30 days.You can optionally supply a different duration in seconds using the `expires_in_seconds` property. /// + /// 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 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Sign_in_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -59,6 +63,7 @@ public async Task PostAsync(Sign_in_tokensPostRequestBody body, Act /// /// Creates a new sign-in token and associates it with the given user.By default, sign-in tokens expire in 30 days.You can optionally supply a different duration in seconds using the `expires_in_seconds` property. /// + /// 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 @@ -78,6 +83,7 @@ public RequestInformation ToPostRequestInformation(Sign_in_tokensPostRequestBody /// /// 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 Sign_in_tokensRequestBuilder WithUrl(string rawUrl) { return new Sign_in_tokensRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsItemRequestBuilder.cs b/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsItemRequestBuilder.cs index ec333d6..b00f4ea 100644 --- a/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsItemRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Sign_ups.Item { /// public class Sign_upsItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new Sign_upsItemRequestBuilder 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 Sign_upsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sign_ups/{id}", pathParameters) { } /// - /// Instantiates a new Sign_upsItemRequestBuilder 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 Sign_upsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Update the sign-up with the given ID /// + /// 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 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PatchAsync(Sign_upsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -50,6 +52,7 @@ public async Task PatchAsync(Sign_upsPatchRequestBody body, Action /// Update the sign-up with the given ID /// + /// 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(Sign_upsPatchRequestBody 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 Sign_upsItemRequestBuilder WithUrl(string rawUrl) { return new Sign_upsItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsPatchRequestBody.cs b/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsPatchRequestBody.cs index 7191aa1..6aac32e 100644 --- a/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsPatchRequestBody.cs @@ -19,7 +19,7 @@ public class Sign_upsPatchRequestBody : IAdditionalDataHolder, IParsable { public string ExternalId { get; set; } #endif /// - /// Instantiates a new Sign_upsPatchRequestBody and sets the default values. + /// Instantiates a new and sets the default values. /// public Sign_upsPatchRequestBody() { AdditionalData = new Dictionary(); @@ -27,6 +27,7 @@ public Sign_upsPatchRequestBody() { /// /// 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 Sign_upsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -35,6 +36,7 @@ public static Sign_upsPatchRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"custom_action", n => { CustomAction = n.GetBoolValue(); } }, diff --git a/src/Clerk.Net/Client/Sign_ups/Sign_upsRequestBuilder.cs b/src/Clerk.Net/Client/Sign_ups/Sign_upsRequestBuilder.cs index e274323..b8752b1 100644 --- a/src/Clerk.Net/Client/Sign_ups/Sign_upsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_ups/Sign_upsRequestBuilder.cs @@ -13,20 +13,21 @@ namespace Clerk.Net.Client.Sign_ups { public class Sign_upsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.sign_ups.item collection /// The ID of the sign-up to update + /// A public Sign_upsItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("id", position); return new Sign_upsItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new Sign_upsRequestBuilder 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 Sign_upsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sign_ups", pathParameters) { } /// - /// Instantiates a new Sign_upsRequestBuilder 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/Templates/Item/Item/Preview/PreviewPostRequestBody.cs b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostRequestBody.cs index ec52468..179924e 100644 --- a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostRequestBody.cs +++ b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostRequestBody.cs @@ -33,6 +33,7 @@ public class PreviewPostRequestBody : 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 PreviewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -41,6 +42,7 @@ public static PreviewPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// + /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"body", n => { Body = n.GetStringValue(); } }, diff --git a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostResponse.cs b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostResponse.cs index 60b673f..9276a88 100644 --- a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostResponse.cs +++ b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostResponse.cs @@ -9,7 +9,7 @@ public class PreviewPostResponse : 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 previewPostResponse and sets the default values. + /// Instantiates a new and sets the default values. /// public PreviewPostResponse() { AdditionalData = new Dictionary(); @@ -17,6 +17,7 @@ public PreviewPostResponse() { /// /// 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 PreviewPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); @@ -25,6 +26,7 @@ public static PreviewPostResponse CreateFromDiscriminatorValue(IParseNode parseN /// /// 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/Templates/Item/Item/Preview/PreviewRequestBuilder.cs b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewRequestBuilder.cs index 3dbb344..3b4280f 100644 --- a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Templates.Item.Item.Preview { /// public class PreviewRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new PreviewRequestBuilder 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 PreviewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/templates/{template_type}/{slug}/preview", pathParameters) { } /// - /// Instantiates a new PreviewRequestBuilder 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,14 @@ public PreviewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Returns a preview of a template for a given template_type, slug and body /// + /// 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 + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(PreviewPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -53,6 +58,7 @@ public async Task PostAsync(PreviewPostRequestBody body, Ac /// /// Returns a preview of a template for a given template_type, slug and body /// + /// 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 @@ -72,6 +78,7 @@ public RequestInformation ToPostRequestInformation(PreviewPostRequestBody 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 PreviewRequestBuilder WithUrl(string rawUrl) { return new PreviewRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Clerk.Net/Client/Templates/Item/Item/Revert/RevertRequestBuilder.cs b/src/Clerk.Net/Client/Templates/Item/Item/Revert/RevertRequestBuilder.cs index 15f7a1e..61b0eff 100644 --- a/src/Clerk.Net/Client/Templates/Item/Item/Revert/RevertRequestBuilder.cs +++ b/src/Clerk.Net/Client/Templates/Item/Item/Revert/RevertRequestBuilder.cs @@ -14,14 +14,14 @@ namespace Clerk.Net.Client.Templates.Item.Item.Revert { /// public class RevertRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new RevertRequestBuilder 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 RevertRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/templates/{template_type}/{slug}/revert", pathParameters) { } /// - /// Instantiates a new RevertRequestBuilder 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 RevertRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Reverts an updated template to its default state /// + /// 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 402 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) { @@ -51,6 +56,7 @@ public async Task