diff --git a/Package.Build.props b/Package.Build.props
index 4f4e341..b062759 100644
--- a/Package.Build.props
+++ b/Package.Build.props
@@ -1,6 +1,6 @@
- 1.5.0
+ 1.6.0
Hawxy
true
Apache-2.0
diff --git a/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj b/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj
index 8f765c7..f9764fd 100644
--- a/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj
+++ b/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj
@@ -22,7 +22,7 @@
-
+
diff --git a/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj b/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj
index 8e61058..e718315 100644
--- a/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj
+++ b/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj b/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj
index dfdb033..696e3f3 100644
--- a/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj
+++ b/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj
@@ -10,13 +10,13 @@
-
-
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/Clerk.Net/Clerk.Net.csproj b/src/Clerk.Net/Clerk.Net.csproj
index 23e9776..b54ab80 100644
--- a/src/Clerk.Net/Clerk.Net.csproj
+++ b/src/Clerk.Net/Clerk.Net.csproj
@@ -11,16 +11,16 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
+
diff --git a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs
index f18c995..cb8d1e4 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs
@@ -1,19 +1,23 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Actor_tokens {
- public class Actor_tokensPostRequestBody : IParsable
+namespace Clerk.Net.Client.Actor_tokens
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ #pragma warning disable CS1591
+ public partial class Actor_tokensPostRequestBody : IParsable
+ #pragma warning restore CS1591
{
/// The actor payload. It needs to include a sub property which should contain the ID of the actor.This whole payload will be also included in the JWT session token.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public Actor_tokensPostRequestBody_actor? Actor { get; set; }
+ public global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor? Actor { get; set; }
#nullable restore
#else
- public Actor_tokensPostRequestBody_actor Actor { get; set; }
+ public global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor Actor { get; set; }
#endif
/// Optional parameter to specify the life duration of the actor token in seconds.By default, the duration is 1 hour.
public int? ExpiresInSeconds { get; set; }
@@ -30,12 +34,12 @@ public class Actor_tokensPostRequestBody : IParsable
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Actor_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Actor_tokensPostRequestBody();
+ return new global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -45,10 +49,10 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"actor", n => { Actor = n.GetObjectValue(Actor_tokensPostRequestBody_actor.CreateFromDiscriminatorValue); } },
- {"expires_in_seconds", n => { ExpiresInSeconds = n.GetIntValue(); } },
- {"session_max_duration_in_seconds", n => { SessionMaxDurationInSeconds = n.GetIntValue(); } },
- {"user_id", n => { UserId = n.GetStringValue(); } },
+ { "actor", n => { Actor = n.GetObjectValue(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor.CreateFromDiscriminatorValue); } },
+ { "expires_in_seconds", n => { ExpiresInSeconds = n.GetIntValue(); } },
+ { "session_max_duration_in_seconds", n => { SessionMaxDurationInSeconds = n.GetIntValue(); } },
+ { "user_id", n => { UserId = n.GetStringValue(); } },
};
}
///
@@ -58,7 +62,7 @@ public virtual IDictionary> GetFieldDeserializers()
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteObjectValue("actor", Actor);
+ writer.WriteObjectValue("actor", Actor);
writer.WriteIntValue("expires_in_seconds", ExpiresInSeconds);
writer.WriteIntValue("session_max_duration_in_seconds", SessionMaxDurationInSeconds);
writer.WriteStringValue("user_id", UserId);
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 aed15c4..4c21a98 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs
@@ -1,19 +1,21 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Actor_tokens {
+namespace Clerk.Net.Client.Actor_tokens
+{
///
/// The actor payload. It needs to include a sub property which should contain the ID of the actor.This whole payload will be also included in the JWT session token.
///
- public class Actor_tokensPostRequestBody_actor : IAdditionalDataHolder, IParsable
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class Actor_tokensPostRequestBody_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 and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Actor_tokensPostRequestBody_actor()
{
@@ -22,12 +24,12 @@ public Actor_tokensPostRequestBody_actor()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Actor_tokensPostRequestBody_actor CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Actor_tokensPostRequestBody_actor();
+ return new global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor();
}
///
/// The deserialization information for the current model
diff --git a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs
index ce7a8ad..8f53aef 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs
@@ -1,34 +1,36 @@
//
using Clerk.Net.Client.Actor_tokens.Item;
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Actor_tokens {
+namespace Clerk.Net.Client.Actor_tokens
+{
///
/// Builds and executes requests for operations under \actor_tokens
///
- public class Actor_tokensRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial 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]
+ /// A
+ public global::Clerk.Net.Client.Actor_tokens.Item.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);
+ return new global::Clerk.Net.Client.Actor_tokens.Item.WithActor_token_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new 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.
@@ -36,7 +38,7 @@ public Actor_tokensRequestBuilder(Dictionary pathParameters, IRe
{
}
///
- /// Instantiates a new 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.
@@ -46,31 +48,31 @@ 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
+ /// 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
+ /// 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)
+ public async Task PostAsync(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Actor_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody 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},
- {"402", ClerkErrors.CreateFromDiscriminatorValue},
- {"422", ClerkErrors.CreateFromDiscriminatorValue},
+ { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// 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.
@@ -80,11 +82,11 @@ public async Task PostAsync(Actor_tokensPostRequestBody body, Action
/// 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(Actor_tokensPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(Actor_tokensPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -97,11 +99,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public Actor_tokensRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder WithUrl(string rawUrl)
{
- return new Actor_tokensRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Actor_tokens.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 ac7d471..4d9b897 100644
--- a/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs
@@ -1,21 +1,23 @@
//
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Actor_tokens.Item.Revoke {
+namespace Clerk.Net.Client.Actor_tokens.Item.Revoke
+{
///
/// Builds and executes requests for operations under \actor_tokens\{actor_token_id}\revoke
///
- public class RevokeRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class RevokeRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new 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.
@@ -23,7 +25,7 @@ public RevokeRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new 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,27 +35,27 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
///
/// Revokes a pending actor token.
///
- /// A
+ /// 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
+ /// 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)
+ public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToPostRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ClerkErrors.CreateFromDiscriminatorValue},
- {"404", ClerkErrors.CreateFromDiscriminatorValue},
+ { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Revokes a pending actor token.
@@ -77,11 +79,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public RevokeRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Actor_tokens.Item.Revoke.RevokeRequestBuilder WithUrl(string rawUrl)
{
- return new RevokeRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Actor_tokens.Item.Revoke.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 8fce6d5..80f7e80 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
@@ -1,24 +1,26 @@
//
using Clerk.Net.Client.Actor_tokens.Item.Revoke;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace Clerk.Net.Client.Actor_tokens.Item {
+namespace Clerk.Net.Client.Actor_tokens.Item
+{
///
/// Builds and executes requests for operations under \actor_tokens\{actor_token_id}
///
- public class WithActor_token_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class WithActor_token_ItemRequestBuilder : BaseRequestBuilder
{
/// The revoke property
- public RevokeRequestBuilder Revoke
+ public global::Clerk.Net.Client.Actor_tokens.Item.Revoke.RevokeRequestBuilder Revoke
{
- get => new RevokeRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Actor_tokens.Item.Revoke.RevokeRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new 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.
@@ -26,7 +28,7 @@ public WithActor_token_ItemRequestBuilder(Dictionary pathParamet
{
}
///
- /// Instantiates a new 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 5f3906c..736ba2b 100644
--- a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs
@@ -1,11 +1,15 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Allowlist_identifiers {
- public class Allowlist_identifiersPostRequestBody : IParsable
+namespace Clerk.Net.Client.Allowlist_identifiers
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ #pragma warning disable CS1591
+ public partial class Allowlist_identifiersPostRequestBody : IParsable
+ #pragma warning restore CS1591
{
/// The identifier to be added in the allow-list.This can be an email address, a phone number or a web3 wallet.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -20,12 +24,12 @@ public class Allowlist_identifiersPostRequestBody : IParsable
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Allowlist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Allowlist_identifiersPostRequestBody();
+ return new global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"identifier", n => { Identifier = n.GetStringValue(); } },
- {"notify", n => { Notify = n.GetBoolValue(); } },
+ { "identifier", n => { Identifier = n.GetStringValue(); } },
+ { "notify", n => { Notify = n.GetBoolValue(); } },
};
}
///
diff --git a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs
index 7c86c0a..98815cc 100644
--- a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs
@@ -1,34 +1,36 @@
//
using Clerk.Net.Client.Allowlist_identifiers.Item;
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Allowlist_identifiers {
+namespace Clerk.Net.Client.Allowlist_identifiers
+{
///
/// Builds and executes requests for operations under \allowlist_identifiers
///
- public class Allowlist_identifiersRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial 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]
+ /// A
+ public global::Clerk.Net.Client.Allowlist_identifiers.Item.WithIdentifier_ItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("identifier_id", position);
- return new WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::Clerk.Net.Client.Allowlist_identifiers.Item.WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new 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.
@@ -36,7 +38,7 @@ public Allowlist_identifiersRequestBuilder(Dictionary pathParame
{
}
///
- /// Instantiates a new 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.
@@ -46,57 +48,57 @@ public Allowlist_identifiersRequestBuilder(string rawUrl, IRequestAdapter reques
///
/// Get a list of all identifiers allowed to sign up to an instance
///
- /// A List<AllowlistIdentifier>
+ /// A List<global::Clerk.Net.Client.Models.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
+ /// 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"401", ClerkErrors.CreateFromDiscriminatorValue},
- {"402", ClerkErrors.CreateFromDiscriminatorValue},
+ { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AllowlistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Models.AllowlistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// Create an identifier allowed to sign up to an instance
///
- /// A
+ /// 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
+ /// 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)
+ public async Task PostAsync(global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Allowlist_identifiersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody 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},
- {"402", ClerkErrors.CreateFromDiscriminatorValue},
- {"422", ClerkErrors.CreateFromDiscriminatorValue},
+ { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, AllowlistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.AllowlistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Get a list of all identifiers allowed to sign up to an instance
@@ -125,11 +127,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Allowlist_identifiersPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(Allowlist_identifiersPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -142,11 +144,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public Allowlist_identifiersRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersRequestBuilder WithUrl(string rawUrl)
{
- return new Allowlist_identifiersRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Allowlist_identifiers.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 4d81cb2..2e065f3 100644
--- a/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
@@ -1,21 +1,23 @@
//
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Allowlist_identifiers.Item {
+namespace Clerk.Net.Client.Allowlist_identifiers.Item
+{
///
/// Builds and executes requests for operations under \allowlist_identifiers\{identifier_id}
///
- public class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new 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.
@@ -23,7 +25,7 @@ public WithIdentifier_ItemRequestBuilder(Dictionary pathParamete
{
}
///
- /// Instantiates a new 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,27 +35,27 @@ public WithIdentifier_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA
///
/// Delete an identifier from the instance allow-list
///
- /// A
+ /// 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
+ /// 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)
+ public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"402", ClerkErrors.CreateFromDiscriminatorValue},
- {"404", ClerkErrors.CreateFromDiscriminatorValue},
+ { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Delete an identifier from the instance allow-list
@@ -77,11 +79,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Allowlist_identifiers.Item.WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Allowlist_identifiers.Item.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 ca2cfd7..c13716b 100644
--- a/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs
@@ -1,30 +1,32 @@
//
using Clerk.Net.Client.Beta_features.Domain;
using Clerk.Net.Client.Beta_features.Instance_settings;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace Clerk.Net.Client.Beta_features {
+namespace Clerk.Net.Client.Beta_features
+{
///
/// Builds and executes requests for operations under \beta_features
///
- public class Beta_featuresRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class Beta_featuresRequestBuilder : BaseRequestBuilder
{
/// The domain property
- public DomainRequestBuilder Domain
+ public global::Clerk.Net.Client.Beta_features.Domain.DomainRequestBuilder Domain
{
- get => new DomainRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Beta_features.Domain.DomainRequestBuilder(PathParameters, RequestAdapter);
}
/// The instance_settings property
- public Instance_settingsRequestBuilder Instance_settings
+ public global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsRequestBuilder Instance_settings
{
- get => new Instance_settingsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new 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.
@@ -32,7 +34,7 @@ public Beta_featuresRequestBuilder(Dictionary pathParameters, IR
{
}
///
- /// Instantiates a new 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 6b76e48..c5f6e01 100644
--- a/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs
+++ b/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs
@@ -1,11 +1,15 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Beta_features.Domain {
- public class DomainPutRequestBody : IParsable
+namespace Clerk.Net.Client.Beta_features.Domain
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ #pragma warning disable CS1591
+ public partial class DomainPutRequestBody : IParsable
+ #pragma warning restore CS1591
{
/// The new home URL of the production instance e.g. https://www.example.com
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -18,12 +22,12 @@ public class DomainPutRequestBody : IParsable
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static DomainPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new DomainPutRequestBody();
+ return new global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody();
}
///
/// The deserialization information for the current model
@@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"home_url", n => { HomeUrl = n.GetStringValue(); } },
+ { "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 30fef86..6d37c13 100644
--- a/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs
@@ -1,21 +1,23 @@
//
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Beta_features.Domain {
+namespace Clerk.Net.Client.Beta_features.Domain
+{
///
/// Builds and executes requests for operations under \beta_features\domain
///
- public class DomainRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class DomainRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new 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.
@@ -23,7 +25,7 @@ public DomainRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new 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.
@@ -36,24 +38,24 @@ 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
+ /// When receiving a 400 status code
+ /// When receiving a 422 status code
[Obsolete("")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PutAsync(DomainPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PutAsync(DomainPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PutAsync(global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPutRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ClerkErrors.CreateFromDiscriminatorValue},
- {"422", ClerkErrors.CreateFromDiscriminatorValue},
+ { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
@@ -66,11 +68,11 @@ public async Task PutAsync(DomainPutRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPutRequestInformation(DomainPutRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPutRequestInformation(global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -83,12 +85,12 @@ 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
+ /// A
/// The raw URL to use for the request builder.
[Obsolete("")]
- public DomainRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Beta_features.Domain.DomainRequestBuilder WithUrl(string rawUrl)
{
- return new DomainRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Beta_features.Domain.DomainRequestBuilder(rawUrl, RequestAdapter);
}
}
}
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 7fa0e66..1cb5c16 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
@@ -1,11 +1,15 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Beta_features.Instance_settings {
- public class Instance_settingsPatchRequestBody : IParsable
+namespace Clerk.Net.Client.Beta_features.Instance_settings
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ #pragma warning disable CS1591
+ public partial class Instance_settingsPatchRequestBody : IParsable
+ #pragma warning restore CS1591
{
/// The "enhanced_email_deliverability" feature will send emails from "verifications@clerk.dev" instead of your domain.This can be helpful if you do not have a high domain reputation.
public bool? EnhancedEmailDeliverability { get; set; }
@@ -34,12 +38,12 @@ public class Instance_settingsPatchRequestBody : IParsable
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Instance_settingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Instance_settingsPatchRequestBody();
+ return new global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody();
}
///
/// The deserialization information for the current model
@@ -49,12 +53,12 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } },
- {"from_email_address", n => { FromEmailAddress = n.GetStringValue(); } },
- {"progressive_sign_up", n => { ProgressiveSignUp = n.GetBoolValue(); } },
- {"restricted_to_allowlist", n => { RestrictedToAllowlist = n.GetBoolValue(); } },
- {"session_token_template", n => { SessionTokenTemplate = n.GetStringValue(); } },
- {"test_mode", n => { TestMode = n.GetBoolValue(); } },
+ { "enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } },
+ { "from_email_address", n => { FromEmailAddress = n.GetStringValue(); } },
+ { "progressive_sign_up", n => { ProgressiveSignUp = n.GetBoolValue(); } },
+ { "restricted_to_allowlist", n => { RestrictedToAllowlist = n.GetBoolValue(); } },
+ { "session_token_template", n => { SessionTokenTemplate = n.GetStringValue(); } },
+ { "test_mode", n => { TestMode = 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 6ba9bb1..381b593 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
@@ -1,11 +1,15 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Beta_features.Instance_settings {
- public class Instance_settingsPatchResponse : IAdditionalDataHolder, IParsable
+namespace Clerk.Net.Client.Beta_features.Instance_settings
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ #pragma warning disable CS1591
+ public partial class Instance_settingsPatchResponse : IAdditionalDataHolder, IParsable
+ #pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
@@ -28,13 +32,13 @@ public class Instance_settingsPatchResponse : IAdditionalDataHolder, IParsable
public string Id { get; set; }
#endif
/// String representing the object's type. Objects of the same type share the same value.
- public Instance_settingsPatchResponse_object? Object { get; set; }
+ public global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchResponse_object? Object { get; set; }
/// The progressive_sign_up property
public bool? ProgressiveSignUp { get; set; }
/// The restricted_to_allowlist property
public bool? RestrictedToAllowlist { get; set; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Instance_settingsPatchResponse()
{
@@ -43,12 +47,12 @@ public Instance_settingsPatchResponse()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Instance_settingsPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Instance_settingsPatchResponse();
+ return new global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchResponse();
}
///
/// The deserialization information for the current model
@@ -58,12 +62,12 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } },
- {"from_email_address", n => { FromEmailAddress = n.GetStringValue(); } },
- {"id", n => { Id = n.GetStringValue(); } },
- {"object", n => { Object = n.GetEnumValue(); } },
- {"progressive_sign_up", n => { ProgressiveSignUp = n.GetBoolValue(); } },
- {"restricted_to_allowlist", n => { RestrictedToAllowlist = n.GetBoolValue(); } },
+ { "enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } },
+ { "from_email_address", n => { FromEmailAddress = n.GetStringValue(); } },
+ { "id", n => { Id = n.GetStringValue(); } },
+ { "object", n => { Object = n.GetEnumValue(); } },
+ { "progressive_sign_up", n => { ProgressiveSignUp = n.GetBoolValue(); } },
+ { "restricted_to_allowlist", n => { RestrictedToAllowlist = n.GetBoolValue(); } },
};
}
///
@@ -76,7 +80,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteBoolValue("enhanced_email_deliverability", EnhancedEmailDeliverability);
writer.WriteStringValue("from_email_address", FromEmailAddress);
writer.WriteStringValue("id", Id);
- writer.WriteEnumValue("object", Object);
+ writer.WriteEnumValue("object", Object);
writer.WriteBoolValue("progressive_sign_up", ProgressiveSignUp);
writer.WriteBoolValue("restricted_to_allowlist", RestrictedToAllowlist);
writer.WriteAdditionalData(AdditionalData);
diff --git a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse_object.cs b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse_object.cs
index 78c50ff..b0d3f4e 100644
--- a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse_object.cs
+++ b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse_object.cs
@@ -1,11 +1,15 @@
//
using System.Runtime.Serialization;
using System;
-namespace Clerk.Net.Client.Beta_features.Instance_settings {
+namespace Clerk.Net.Client.Beta_features.Instance_settings
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
/// String representing the object's type. Objects of the same type share the same value.
public enum Instance_settingsPatchResponse_object
{
[EnumMember(Value = "instance_settings")]
+ #pragma warning disable CS1591
Instance_settings,
+ #pragma warning restore CS1591
}
}
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 670104d..f376145 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
@@ -1,21 +1,23 @@
//
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Beta_features.Instance_settings {
+namespace Clerk.Net.Client.Beta_features.Instance_settings
+{
///
/// Builds and executes requests for operations under \beta_features\instance_settings
///
- public class Instance_settingsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class Instance_settingsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new 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.
@@ -23,7 +25,7 @@ public Instance_settingsRequestBuilder(Dictionary pathParameters
{
}
///
- /// Instantiates a new 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,29 +35,29 @@ public Instance_settingsRequestBuilder(string rawUrl, IRequestAdapter requestAda
///
/// Updates the settings of an instance
///
- /// A
+ /// 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
+ /// 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)
+ public async Task PatchAsync(global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PatchAsync(Instance_settingsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary>
{
- {"402", ClerkErrors.CreateFromDiscriminatorValue},
- {"422", ClerkErrors.CreateFromDiscriminatorValue},
+ { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, Instance_settingsPatchResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Updates the settings of an instance
@@ -65,11 +67,11 @@ public async Task PatchAsync(Instance_settingsPa
/// 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 ToPatchRequestInformation(Instance_settingsPatchRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(Instance_settingsPatchRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -82,11 +84,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public Instance_settingsRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsRequestBuilder WithUrl(string rawUrl)
{
- return new Instance_settingsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Beta_features.Instance_settings.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 d24fd78..ba1751b 100644
--- a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs
@@ -1,11 +1,15 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Blocklist_identifiers {
- public class Blocklist_identifiersPostRequestBody : IParsable
+namespace Clerk.Net.Client.Blocklist_identifiers
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ #pragma warning disable CS1591
+ public partial class Blocklist_identifiersPostRequestBody : IParsable
+ #pragma warning restore CS1591
{
/// The identifier to be added in the block-list.This can be an email address, a phone number or a web3 wallet.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -18,12 +22,12 @@ public class Blocklist_identifiersPostRequestBody : IParsable
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Blocklist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Blocklist_identifiersPostRequestBody();
+ return new global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"identifier", n => { Identifier = n.GetStringValue(); } },
+ { "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 75072ad..30d7e10 100644
--- a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs
@@ -1,34 +1,36 @@
//
using Clerk.Net.Client.Blocklist_identifiers.Item;
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Blocklist_identifiers {
+namespace Clerk.Net.Client.Blocklist_identifiers
+{
///
/// Builds and executes requests for operations under \blocklist_identifiers
///
- public class Blocklist_identifiersRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial 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]
+ /// A
+ public global::Clerk.Net.Client.Blocklist_identifiers.Item.WithIdentifier_ItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("identifier_id", position);
- return new WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::Clerk.Net.Client.Blocklist_identifiers.Item.WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new 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.
@@ -36,7 +38,7 @@ public Blocklist_identifiersRequestBuilder(Dictionary pathParame
{
}
///
- /// Instantiates a new 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.
@@ -46,56 +48,56 @@ public Blocklist_identifiersRequestBuilder(string rawUrl, IRequestAdapter reques
///
/// Get a list of all identifiers which are not allowed to access an instance
///
- /// A
+ /// 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
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"401", ClerkErrors.CreateFromDiscriminatorValue},
- {"402", ClerkErrors.CreateFromDiscriminatorValue},
+ { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, BlocklistIdentifiers.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.BlocklistIdentifiers.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Create an identifier that is blocked from accessing an instance
///
- /// A
+ /// 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
+ /// 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)
+ public async Task PostAsync(global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Blocklist_identifiersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody 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},
- {"402", ClerkErrors.CreateFromDiscriminatorValue},
- {"422", ClerkErrors.CreateFromDiscriminatorValue},
+ { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, BlocklistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.BlocklistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Get a list of all identifiers which are not allowed to access an instance
@@ -124,11 +126,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Blocklist_identifiersPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(Blocklist_identifiersPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -141,11 +143,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public Blocklist_identifiersRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersRequestBuilder WithUrl(string rawUrl)
{
- return new Blocklist_identifiersRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Blocklist_identifiers.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 1f06993..5aabe24 100644
--- a/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs
@@ -1,21 +1,23 @@
//
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Blocklist_identifiers.Item {
+namespace Clerk.Net.Client.Blocklist_identifiers.Item
+{
///
/// Builds and executes requests for operations under \blocklist_identifiers\{identifier_id}
///
- public class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new 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.
@@ -23,7 +25,7 @@ public WithIdentifier_ItemRequestBuilder(Dictionary pathParamete
{
}
///
- /// Instantiates a new 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,27 +35,27 @@ public WithIdentifier_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA
///
/// Delete an identifier from the instance block-list
///
- /// A
+ /// 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
+ /// 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)
+ public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"402", ClerkErrors.CreateFromDiscriminatorValue},
- {"404", ClerkErrors.CreateFromDiscriminatorValue},
+ { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Delete an identifier from the instance block-list
@@ -77,11 +79,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Blocklist_identifiers.Item.WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Blocklist_identifiers.Item.WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter);
}
}
}
diff --git a/src/Clerk.Net/Client/ClerkApiClient.cs b/src/Clerk.Net/Client/ClerkApiClient.cs
index 38ddb26..0065655 100644
--- a/src/Clerk.Net/Client/ClerkApiClient.cs
+++ b/src/Clerk.Net/Client/ClerkApiClient.cs
@@ -32,142 +32,143 @@
using Microsoft.Kiota.Serialization.Text;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System;
-namespace Clerk.Net.Client {
+namespace Clerk.Net.Client
+{
///
/// The main entry point of the SDK, exposes the configuration and the fluent API.
///
- public class ClerkApiClient : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class ClerkApiClient : BaseRequestBuilder
{
/// The actor_tokens property
- public Actor_tokensRequestBuilder Actor_tokens
+ public global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder Actor_tokens
{
- get => new Actor_tokensRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder(PathParameters, RequestAdapter);
}
/// The allowlist_identifiers property
- public Allowlist_identifiersRequestBuilder Allowlist_identifiers
+ public global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersRequestBuilder Allowlist_identifiers
{
- get => new Allowlist_identifiersRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersRequestBuilder(PathParameters, RequestAdapter);
}
/// The beta_features property
- public Beta_featuresRequestBuilder Beta_features
+ public global::Clerk.Net.Client.Beta_features.Beta_featuresRequestBuilder Beta_features
{
- get => new Beta_featuresRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Beta_features.Beta_featuresRequestBuilder(PathParameters, RequestAdapter);
}
/// The blocklist_identifiers property
- public Blocklist_identifiersRequestBuilder Blocklist_identifiers
+ public global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersRequestBuilder Blocklist_identifiers
{
- get => new Blocklist_identifiersRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersRequestBuilder(PathParameters, RequestAdapter);
}
/// The clients property
- public ClientsRequestBuilder Clients
+ public global::Clerk.Net.Client.Clients.ClientsRequestBuilder Clients
{
- get => new ClientsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter);
}
/// The domains property
- public DomainsRequestBuilder Domains
+ public global::Clerk.Net.Client.Domains.DomainsRequestBuilder Domains
{
- get => new DomainsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Domains.DomainsRequestBuilder(PathParameters, RequestAdapter);
}
/// The email_addresses property
- public Email_addressesRequestBuilder Email_addresses
+ public global::Clerk.Net.Client.Email_addresses.Email_addressesRequestBuilder Email_addresses
{
- get => new Email_addressesRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Email_addresses.Email_addressesRequestBuilder(PathParameters, RequestAdapter);
}
/// The instance property
- public InstanceRequestBuilder Instance
+ public global::Clerk.Net.Client.Instance.InstanceRequestBuilder Instance
{
- get => new InstanceRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Instance.InstanceRequestBuilder(PathParameters, RequestAdapter);
}
/// The invitations property
- public InvitationsRequestBuilder Invitations
+ public global::Clerk.Net.Client.Invitations.InvitationsRequestBuilder Invitations
{
- get => new InvitationsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Invitations.InvitationsRequestBuilder(PathParameters, RequestAdapter);
}
/// The jwks property
- public JwksRequestBuilder Jwks
+ public global::Clerk.Net.Client.Jwks.JwksRequestBuilder Jwks
{
- get => new JwksRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Jwks.JwksRequestBuilder(PathParameters, RequestAdapter);
}
/// The jwt_templates property
- public Jwt_templatesRequestBuilder Jwt_templates
+ public global::Clerk.Net.Client.Jwt_templates.Jwt_templatesRequestBuilder Jwt_templates
{
- get => new Jwt_templatesRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Jwt_templates.Jwt_templatesRequestBuilder(PathParameters, RequestAdapter);
}
/// The oauth_applications property
- public Oauth_applicationsRequestBuilder Oauth_applications
+ public global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsRequestBuilder Oauth_applications
{
- get => new Oauth_applicationsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsRequestBuilder(PathParameters, RequestAdapter);
}
/// The organizations property
- public OrganizationsRequestBuilder Organizations
+ public global::Clerk.Net.Client.Organizations.OrganizationsRequestBuilder Organizations
{
- get => new OrganizationsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter);
}
/// The phone_numbers property
- public Phone_numbersRequestBuilder Phone_numbers
+ public global::Clerk.Net.Client.Phone_numbers.Phone_numbersRequestBuilder Phone_numbers
{
- get => new Phone_numbersRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Phone_numbers.Phone_numbersRequestBuilder(PathParameters, RequestAdapter);
}
/// The proxy_checks property
- public Proxy_checksRequestBuilder Proxy_checks
+ public global::Clerk.Net.Client.Proxy_checks.Proxy_checksRequestBuilder Proxy_checks
{
- get => new Proxy_checksRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Proxy_checks.Proxy_checksRequestBuilder(PathParameters, RequestAdapter);
}
/// The public property
- public PublicRequestBuilder Public
+ public global::Clerk.Net.Client.Public.PublicRequestBuilder Public
{
- get => new PublicRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Public.PublicRequestBuilder(PathParameters, RequestAdapter);
}
/// The redirect_urls property
- public Redirect_urlsRequestBuilder Redirect_urls
+ public global::Clerk.Net.Client.Redirect_urls.Redirect_urlsRequestBuilder Redirect_urls
{
- get => new Redirect_urlsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Redirect_urls.Redirect_urlsRequestBuilder(PathParameters, RequestAdapter);
}
/// The saml_connections property
- public Saml_connectionsRequestBuilder Saml_connections
+ public global::Clerk.Net.Client.Saml_connections.Saml_connectionsRequestBuilder Saml_connections
{
- get => new Saml_connectionsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Saml_connections.Saml_connectionsRequestBuilder(PathParameters, RequestAdapter);
}
/// The sessions property
- public SessionsRequestBuilder Sessions
+ public global::Clerk.Net.Client.Sessions.SessionsRequestBuilder Sessions
{
- get => new SessionsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter);
}
/// The sign_in_tokens property
- public Sign_in_tokensRequestBuilder Sign_in_tokens
+ public global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensRequestBuilder Sign_in_tokens
{
- get => new Sign_in_tokensRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensRequestBuilder(PathParameters, RequestAdapter);
}
/// The sign_ups property
- public Sign_upsRequestBuilder Sign_ups
+ public global::Clerk.Net.Client.Sign_ups.Sign_upsRequestBuilder Sign_ups
{
- get => new Sign_upsRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Sign_ups.Sign_upsRequestBuilder(PathParameters, RequestAdapter);
}
/// The templates property
- public TemplatesRequestBuilder Templates
+ public global::Clerk.Net.Client.Templates.TemplatesRequestBuilder Templates
{
- get => new TemplatesRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Templates.TemplatesRequestBuilder(PathParameters, RequestAdapter);
}
/// The testing_tokens property
- public Testing_tokensRequestBuilder Testing_tokens
+ public global::Clerk.Net.Client.Testing_tokens.Testing_tokensRequestBuilder Testing_tokens
{
- get => new Testing_tokensRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Testing_tokens.Testing_tokensRequestBuilder(PathParameters, RequestAdapter);
}
/// The users property
- public UsersRequestBuilder Users
+ public global::Clerk.Net.Client.Users.UsersRequestBuilder Users
{
- get => new UsersRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Users.UsersRequestBuilder(PathParameters, RequestAdapter);
}
/// The webhooks property
- public WebhooksRequestBuilder Webhooks
+ public global::Clerk.Net.Client.Webhooks.WebhooksRequestBuilder Webhooks
{
- get => new WebhooksRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Webhooks.WebhooksRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new 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 a85c274..0cdb6f2 100644
--- a/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs
@@ -2,40 +2,42 @@
using Clerk.Net.Client.Clients.Item;
using Clerk.Net.Client.Clients.Verify;
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Clients {
+namespace Clerk.Net.Client.Clients
+{
///
/// Builds and executes requests for operations under \clients
///
- public class ClientsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class ClientsRequestBuilder : BaseRequestBuilder
{
/// The verify property
[Obsolete("")]
- public VerifyRequestBuilder Verify
+ public global::Clerk.Net.Client.Clients.Verify.VerifyRequestBuilder Verify
{
- get => new VerifyRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Clerk.Net.Client.Clients.Verify.VerifyRequestBuilder(PathParameters, RequestAdapter);
}
/// Gets an item from the Clerk.Net.Client.clients.item collection
/// Client ID.
- /// A
- public WithClient_ItemRequestBuilder this[string position]
+ /// A
+ public global::Clerk.Net.Client.Clients.Item.WithClient_ItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("client_id", position);
- return new WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::Clerk.Net.Client.Clients.Item.WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new 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.
@@ -43,7 +45,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest
{
}
///
- /// Instantiates a new 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.
@@ -53,33 +55,33 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
///
/// 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>
+ /// A List<global::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
+ /// 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)
+ public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ClerkErrors.CreateFromDiscriminatorValue},
- {"401", ClerkErrors.CreateFromDiscriminatorValue},
- {"410", ClerkErrors.CreateFromDiscriminatorValue},
- {"422", ClerkErrors.CreateFromDiscriminatorValue},
+ { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "410", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- return collectionResult?.ToList();
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return collectionResult?.AsList();
}
///
/// 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.
@@ -89,11 +91,11 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
[Obsolete("")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -104,17 +106,18 @@ 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
+ /// A
/// The raw URL to use for the request builder.
[Obsolete("")]
- public ClientsRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Clients.ClientsRequestBuilder WithUrl(string rawUrl)
{
- return new ClientsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Clients.ClientsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// 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
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class ClientsRequestBuilderGetQueryParameters
{
/// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`.
[QueryParameter("limit")]
diff --git a/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs
index 14c3b99..56f22d1 100644
--- a/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs
@@ -1,21 +1,23 @@
//
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Clients.Item {
+namespace Clerk.Net.Client.Clients.Item
+{
///
/// Builds and executes requests for operations under \clients\{client_id}
///
- public class WithClient_ItemRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class WithClient_ItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new 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.
@@ -23,7 +25,7 @@ public WithClient_ItemRequestBuilder(Dictionary pathParameters,
{
}
///
- /// Instantiates a new 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,29 +35,29 @@ public WithClient_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
///
/// Returns the details of a client.
///
- /// A
+ /// 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
+ /// 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)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary>
{
- {"400", ClerkErrors.CreateFromDiscriminatorValue},
- {"401", ClerkErrors.CreateFromDiscriminatorValue},
- {"404", ClerkErrors.CreateFromDiscriminatorValue},
+ { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Returns the details of a client.
@@ -79,11 +81,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public WithClient_ItemRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Clients.Item.WithClient_ItemRequestBuilder WithUrl(string rawUrl)
{
- return new WithClient_ItemRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Clients.Item.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 8260c4a..63677c0 100644
--- a/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs
@@ -1,11 +1,15 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Clients.Verify {
- public class VerifyPostRequestBody : IParsable
+namespace Clerk.Net.Client.Clients.Verify
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ #pragma warning disable CS1591
+ public partial class VerifyPostRequestBody : IParsable
+ #pragma warning restore CS1591
{
/// A JWT Token that represents the active client.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -18,12 +22,12 @@ public class VerifyPostRequestBody : IParsable
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static VerifyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new VerifyPostRequestBody();
+ return new global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"token", n => { Token = n.GetStringValue(); } },
+ { "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 c964990..4f1eeb0 100644
--- a/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs
@@ -1,21 +1,23 @@
//
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Clients.Verify {
+namespace Clerk.Net.Client.Clients.Verify
+{
///
/// Builds and executes requests for operations under \clients\verify
///
- public class VerifyRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial class VerifyRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new 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.
@@ -23,7 +25,7 @@ public VerifyRequestBuilder(Dictionary pathParameters, IRequestA
{
}
///
- /// Instantiates a new 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,31 +35,31 @@ public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
///
/// Verifies the client in the provided token
///
- /// A
+ /// 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 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)
+ public async Task PostAsync(global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(VerifyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody 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},
- {"404", ClerkErrors.CreateFromDiscriminatorValue},
+ { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
+ { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
/// Verifies the client in the provided token
@@ -67,11 +69,11 @@ public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
/// 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(VerifyPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(VerifyPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -84,11 +86,11 @@ 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
+ /// A
/// The raw URL to use for the request builder.
- public VerifyRequestBuilder WithUrl(string rawUrl)
+ public global::Clerk.Net.Client.Clients.Verify.VerifyRequestBuilder WithUrl(string rawUrl)
{
- return new VerifyRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Clerk.Net.Client.Clients.Verify.VerifyRequestBuilder(rawUrl, RequestAdapter);
}
}
}
diff --git a/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs b/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs
index 96aad31..7b2a282 100644
--- a/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs
+++ b/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs
@@ -1,11 +1,15 @@
//
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
-namespace Clerk.Net.Client.Domains {
- public class DomainsPostRequestBody : IAdditionalDataHolder, IParsable
+namespace Clerk.Net.Client.Domains
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ #pragma warning disable CS1591
+ public partial class DomainsPostRequestBody : IAdditionalDataHolder, IParsable
+ #pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData { get; set; }
@@ -28,7 +32,7 @@ public class DomainsPostRequestBody : IAdditionalDataHolder, IParsable
public string ProxyUrl { get; set; }
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public DomainsPostRequestBody()
{
@@ -37,12 +41,12 @@ public DomainsPostRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static DomainsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Clerk.Net.Client.Domains.DomainsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new DomainsPostRequestBody();
+ return new global::Clerk.Net.Client.Domains.DomainsPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -52,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"is_satellite", n => { IsSatellite = n.GetBoolValue(); } },
- {"name", n => { Name = n.GetStringValue(); } },
- {"proxy_url", n => { ProxyUrl = n.GetStringValue(); } },
+ { "is_satellite", n => { IsSatellite = n.GetBoolValue(); } },
+ { "name", n => { Name = n.GetStringValue(); } },
+ { "proxy_url", n => { ProxyUrl = n.GetStringValue(); } },
};
}
///
diff --git a/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs b/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs
index 6cf3bbf..83875a3 100644
--- a/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs
+++ b/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs
@@ -1,34 +1,36 @@
//
using Clerk.Net.Client.Domains.Item;
using Clerk.Net.Client.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
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.Domains {
+namespace Clerk.Net.Client.Domains
+{
///
/// Builds and executes requests for operations under \domains
///
- public class DomainsRequestBuilder : BaseRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
+ public partial 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]
+ /// A
+ public global::Clerk.Net.Client.Domains.Item.WithDomain_ItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("domain_id", position);
- return new WithDomain_ItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new global::Clerk.Net.Client.Domains.Item.WithDomain_ItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new 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.
@@ -36,7 +38,7 @@ public DomainsRequestBuilder(Dictionary pathParameters, IRequest
{
}
///
- /// Instantiates a new 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.
@@ -46,49 +48,49 @@ 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
+ /// 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
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Domains.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Domains.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// 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
+ /// 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
+ /// 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)
+ public async Task PostAsync(global::Clerk.Net.Client.Domains.DomainsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(DomainsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Clerk.Net.Client.Domains.DomainsPostRequestBody body, Action