From 7d209e75a3bbed24ce4cc6354e0b5372cf3ed3d7 Mon Sep 17 00:00:00 2001 From: JT <975824+Hawxy@users.noreply.github.com> Date: Sat, 4 Jan 2025 21:14:36 +0800 Subject: [PATCH] v1.9.0 (#17) * v1.9.0 * Update global.json * Update nuke --------- Co-authored-by: JT --- .github/workflows/Build_&_Test.yml | 8 +- .github/workflows/Manual_Nuget_Push.yml | 8 +- Package.Build.props | 4 +- build.ps1 | 4 +- build.sh | 4 +- build/Build.cs | 14 +- build/_build.csproj | 8 +- global.json | 6 + .../Clerk.Net.DependencyInjection.csproj | 6 +- .../Clerk.Net.JwtSample.csproj | 8 +- src/Clerk.Net.Tests/Clerk.Net.Tests.csproj | 14 +- src/Clerk.Net/Clerk.Net.csproj | 9 +- src/Clerk.Net/ClerkApiClientFactory.cs | 2 +- .../Organization_settingsRequestBuilder.cs | 2 + .../Invitations/InvitationsPostRequestBody.cs | 2 +- src/Clerk.Net/Client/Models/EmailAddress.cs | 28 ++-- .../Client/Models/{Oauth.cs => FromOAuth.cs} | 32 ++-- .../Client/Models/FromOAuth_error.cs | 105 ++++++++++++ .../Client/Models/FromOAuth_error_meta.cs | 55 +++++++ .../{Oauth_status.cs => FromOAuth_status.cs} | 14 +- .../Models/SAMLAccount_saml_connection.cs | 68 ++++++++ src/Clerk.Net/Client/Models/SAML_error.cs | 50 ++++++ .../{Oauth_error.cs => SAML_error_meta.cs} | 12 +- .../Models/SchemasPasskey_verification.cs | 20 +++ .../SchemasPasskey_verification_nonce.cs | 16 ++ .../SchemasPasskey_verification_status.cs | 16 ++ .../SchemasPasskey_verification_strategy.cs | 16 ++ .../Client/Models/SchemasSAMLConnection.cs | 10 ++ .../Client/Models/Web3Signature_strategy.cs | 4 + .../Item/Invitations/Bulk/Bulk.cs | 4 +- .../Invitations/Bulk/Bulk_private_metadata.cs | 2 +- .../Invitations/Bulk/Bulk_public_metadata.cs | 2 +- .../Invitations/InvitationsPostRequestBody.cs | 4 +- ...tationsPostRequestBody_private_metadata.cs | 2 +- ...itationsPostRequestBody_public_metadata.cs | 2 +- .../OrganizationsRequestBuilder.cs | 4 +- .../WithSaml_connection_PatchRequestBody.cs | 10 ++ .../Saml_connectionsPostRequestBody.cs | 10 ++ .../Saml_connectionsRequestBuilder.cs | 2 + .../Item/WithProviderItemRequestBuilder.cs | 2 + .../GetStatusQueryParameterType.cs | 28 ++++ .../Waitlist_entriesGetResponse.cs | 70 ++++++++ .../Waitlist_entriesPostRequestBody.cs | 4 + .../Waitlist_entriesRequestBuilder.cs | 77 ++++++++- src/Clerk.Net/Client/kiota-lock.json | 4 +- src/Clerk.Net/swagger.json | 150 +++++++++++++++--- 46 files changed, 782 insertions(+), 140 deletions(-) create mode 100644 global.json rename src/Clerk.Net/Client/Models/{Oauth.cs => FromOAuth.cs} (69%) create mode 100644 src/Clerk.Net/Client/Models/FromOAuth_error.cs create mode 100644 src/Clerk.Net/Client/Models/FromOAuth_error_meta.cs rename src/Clerk.Net/Client/Models/{Oauth_status.cs => FromOAuth_status.cs} (54%) rename src/Clerk.Net/Client/Models/{Oauth_error.cs => SAML_error_meta.cs} (84%) create mode 100644 src/Clerk.Net/Client/Models/SchemasPasskey_verification_nonce.cs create mode 100644 src/Clerk.Net/Client/Models/SchemasPasskey_verification_status.cs create mode 100644 src/Clerk.Net/Client/Models/SchemasPasskey_verification_strategy.cs create mode 100644 src/Clerk.Net/Client/Waitlist_entries/GetStatusQueryParameterType.cs create mode 100644 src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesGetResponse.cs diff --git a/.github/workflows/Build_&_Test.yml b/.github/workflows/Build_&_Test.yml index 69f73aa..efa2b45 100644 --- a/.github/workflows/Build_&_Test.yml +++ b/.github/workflows/Build_&_Test.yml @@ -29,13 +29,9 @@ jobs: name: ubuntu-latest runs-on: ubuntu-latest steps: - - name: Setup .NET Core SDK - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.x - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: 'Cache: .nuke/temp, ~/.nuget/packages' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | .nuke/temp diff --git a/.github/workflows/Manual_Nuget_Push.yml b/.github/workflows/Manual_Nuget_Push.yml index 02cd583..ca6ae15 100644 --- a/.github/workflows/Manual_Nuget_Push.yml +++ b/.github/workflows/Manual_Nuget_Push.yml @@ -23,13 +23,9 @@ jobs: name: ubuntu-latest runs-on: ubuntu-latest steps: - - name: Setup .NET Core SDK - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.x - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: 'Cache: .nuke/temp, ~/.nuget/packages' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | .nuke/temp diff --git a/Package.Build.props b/Package.Build.props index 755642a..dd011cc 100644 --- a/Package.Build.props +++ b/Package.Build.props @@ -1,13 +1,13 @@ - 1.8.0 + 1.9.0 Hawxy true Apache-2.0 https://github.com/Hawxy/Clerk.Net https://github.com/Hawxy/Clerk.Net git - Hawxy 2023-2024 + Hawxy 2023-2025 true README.md true diff --git a/build.ps1 b/build.ps1 index c0c0e61..4634dc0 100644 --- a/build.ps1 +++ b/build.ps1 @@ -20,9 +20,8 @@ $DotNetGlobalFile = "$PSScriptRoot\\global.json" $DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1" $DotNetChannel = "STS" -$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1 $env:DOTNET_CLI_TELEMETRY_OPTOUT = 1 -$env:DOTNET_MULTILEVEL_LOOKUP = 0 +$env:DOTNET_NOLOGO = 1 ########################################################################### # EXECUTION @@ -61,6 +60,7 @@ else { ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Version $DotNetVersion -NoPath } } $env:DOTNET_EXE = "$DotNetDirectory\dotnet.exe" + $env:PATH = "$DotNetDirectory;$env:PATH" } Write-Output "Microsoft (R) .NET SDK version $(& $env:DOTNET_EXE --version)" diff --git a/build.sh b/build.sh index 2f10dcb..fdff0c6 100755 --- a/build.sh +++ b/build.sh @@ -17,8 +17,7 @@ DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh" DOTNET_CHANNEL="STS" export DOTNET_CLI_TELEMETRY_OPTOUT=1 -export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 -export DOTNET_MULTILEVEL_LOOKUP=0 +export DOTNET_NOLOGO=1 ########################################################################### # EXECUTION @@ -54,6 +53,7 @@ else "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "$DOTNET_VERSION" --no-path fi export DOTNET_EXE="$DOTNET_DIRECTORY/dotnet" + export PATH="$DOTNET_DIRECTORY:$PATH" fi echo "Microsoft (R) .NET SDK version $("$DOTNET_EXE" --version)" diff --git a/build/Build.cs b/build/Build.cs index 900bfd0..a77414e 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -23,17 +23,15 @@ [GitHubActions( "Build & Test", GitHubActionsImage.UbuntuLatest, - OnPushBranches = new []{ "main" }, - OnPullRequestBranches = new []{ "main" }, - InvokedTargets = new[] { nameof(Test) }, - AutoGenerate = false)] + OnPushBranches = ["main"], + OnPullRequestBranches = ["main"], + InvokedTargets = [nameof(Test)])] [GitHubActions( "Manual Nuget Push", GitHubActionsImage.UbuntuLatest, - On = new[] { GitHubActionsTrigger.WorkflowDispatch }, - InvokedTargets = new[] { nameof(NugetPush) }, - ImportSecrets = new[] { nameof(NugetApiKey) }, - AutoGenerate = false)] + On = [GitHubActionsTrigger.WorkflowDispatch], + InvokedTargets = [nameof(NugetPush)], + ImportSecrets = [nameof(NugetApiKey)])] class Build : NukeBuild { /// Support plugins are available for: diff --git a/build/_build.csproj b/build/_build.csproj index d326d6d..6107c68 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 CS0649;CS0169;CA1050;CA1822;CA2211;IDE1006 .. @@ -12,9 +12,9 @@ - - - + + + diff --git a/global.json b/global.json new file mode 100644 index 0000000..643aa3e --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "9.0.101", + "rollForward": "latestMajor" + } +} diff --git a/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj b/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj index cc2aa3c..0153a89 100644 --- a/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj +++ b/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj @@ -4,7 +4,7 @@ Clerk.Net.DependencyInjection Clerk Backend API Wrapper for .NET. This package includes dependency injection extensions. clerk,auth - net6.0;net8.0 + net6.0;net8.0;net9.0 enable enable @@ -17,6 +17,10 @@ + + + + diff --git a/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj b/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj index a1c1394..53aa52d 100644 --- a/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj +++ b/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj @@ -1,15 +1,15 @@ - net8.0 + net9.0 enable enable - - - + + + diff --git a/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj b/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj index 0500401..67567b5 100644 --- a/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj +++ b/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj @@ -1,22 +1,18 @@ - net8.0 + net9.0 enable enable - + Exe false true - - - - 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 69142c6..b513fbb 100644 --- a/src/Clerk.Net/Clerk.Net.csproj +++ b/src/Clerk.Net/Clerk.Net.csproj @@ -4,19 +4,14 @@ Clerk.Net Clerk Backend API Wrapper for .NET. This package includes the OpenAPI-generated client. clerk,auth - netstandard2.0;net6.0;net8.0 + netstandard2.0;net6.0;net8.0;net9.0 enable enable latest - - - - - - + diff --git a/src/Clerk.Net/ClerkApiClientFactory.cs b/src/Clerk.Net/ClerkApiClientFactory.cs index 7707e07..c6a1b3e 100644 --- a/src/Clerk.Net/ClerkApiClientFactory.cs +++ b/src/Clerk.Net/ClerkApiClientFactory.cs @@ -15,7 +15,7 @@ public static class ClerkApiClientFactory /// The Secret Key from your Clerk instance. /// An optional for advanced use. /// The - public static ClerkApiClient Create(string secretKey, HttpClient? httpClient = default) + public static ClerkApiClient Create(string secretKey, HttpClient? httpClient = null) { if (string.IsNullOrEmpty(secretKey)) throw new ArgumentNullException(nameof(secretKey)); diff --git a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs index 07b5a2c..d963cca 100644 --- a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs @@ -40,6 +40,7 @@ public Organization_settingsRequestBuilder(string rawUrl, IRequestAdapter reques /// 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 404 status code /// When receiving a 422 status code @@ -56,6 +57,7 @@ public Organization_settingsRequestBuilder(string rawUrl, IRequestAdapter reques var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, diff --git a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs index 452f01b..197546d 100644 --- a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs @@ -24,7 +24,7 @@ public partial class InvitationsPostRequestBody : IParsable public int? ExpiresInDays { get; set; } /// Whether an invitation should be created if there is already an existing invitation for this email address, or it's claimed by another user. public bool? IgnoreExisting { get; set; } - /// Optional flag which denotes whether an email invitation should be sent to the given email address.Defaults to true. + /// Optional flag which denotes whether an email invitation should be sent to the given email address.Defaults to `true`. public bool? Notify { get; set; } /// Metadata that will be attached to the newly created invitation.The value of this property should be a well-formed JSON object.Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Clerk.Net/Client/Models/EmailAddress.cs b/src/Clerk.Net/Client/Models/EmailAddress.cs index ff50226..c1b41fb 100644 --- a/src/Clerk.Net/Client/Models/EmailAddress.cs +++ b/src/Clerk.Net/Client/Models/EmailAddress.cs @@ -38,6 +38,8 @@ public partial class EmailAddress : IParsable #else public List LinkedTo { get; set; } #endif + /// Indicates whether this email address domain matches an active enterprise connection. + public bool? MatchesSsoConnection { get; set; } /// String representing the object's type. Objects of the same type share the same value. public global::Clerk.Net.Client.Models.EmailAddress_object? Object { get; set; } /// The reserved property @@ -74,6 +76,7 @@ public virtual IDictionary> GetFieldDeserializers() { "email_address", n => { EmailAddressProp = n.GetStringValue(); } }, { "id", n => { Id = n.GetStringValue(); } }, { "linked_to", n => { LinkedTo = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.IdentificationLink.CreateFromDiscriminatorValue)?.AsList(); } }, + { "matches_sso_connection", n => { MatchesSsoConnection = n.GetBoolValue(); } }, { "object", n => { Object = n.GetEnumValue(); } }, { "reserved", n => { Reserved = n.GetBoolValue(); } }, { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, @@ -91,13 +94,14 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("email_address", EmailAddressProp); writer.WriteStringValue("id", Id); writer.WriteCollectionOfObjectValues("linked_to", LinkedTo); + writer.WriteBoolValue("matches_sso_connection", MatchesSsoConnection); writer.WriteEnumValue("object", Object); writer.WriteBoolValue("reserved", Reserved); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteObjectValue("verification", Verification); } /// - /// Composed type wrapper for classes , , + /// Composed type wrapper for classes , , /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class EmailAddress_verification : IComposedTypeWrapper, IParsable @@ -110,13 +114,13 @@ public partial class EmailAddress_verification : IComposedTypeWrapper, IParsable #else public global::Clerk.Net.Client.Models.Admin Admin { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public global::Clerk.Net.Client.Models.Oauth? Oauth { get; set; } + public global::Clerk.Net.Client.Models.FromOAuth? FromOAuth { get; set; } #nullable restore #else - public global::Clerk.Net.Client.Models.Oauth Oauth { get; set; } + public global::Clerk.Net.Client.Models.FromOAuth FromOAuth { get; set; } #endif /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,13 +144,13 @@ public partial class EmailAddress_verification : IComposedTypeWrapper, IParsable { result.Admin = new global::Clerk.Net.Client.Models.Admin(); } - else if("OTP".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + else if("FromOAuth".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.OTP = new global::Clerk.Net.Client.Models.OTP(); + result.FromOAuth = new global::Clerk.Net.Client.Models.FromOAuth(); } - else if("Oauth".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + else if("OTP".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.Oauth = new global::Clerk.Net.Client.Models.Oauth(); + result.OTP = new global::Clerk.Net.Client.Models.OTP(); } return result; } @@ -160,9 +164,9 @@ public virtual IDictionary> GetFieldDeserializers() { return Admin.GetFieldDeserializers(); } - else if(Oauth != null) + else if(FromOAuth != null) { - return Oauth.GetFieldDeserializers(); + return FromOAuth.GetFieldDeserializers(); } else if(OTP != null) { @@ -181,9 +185,9 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteObjectValue(null, Admin); } - else if(Oauth != null) + else if(FromOAuth != null) { - writer.WriteObjectValue(null, Oauth); + writer.WriteObjectValue(null, FromOAuth); } else if(OTP != null) { diff --git a/src/Clerk.Net/Client/Models/Oauth.cs b/src/Clerk.Net/Client/Models/FromOAuth.cs similarity index 69% rename from src/Clerk.Net/Client/Models/Oauth.cs rename to src/Clerk.Net/Client/Models/FromOAuth.cs index 356fc6c..9975476 100644 --- a/src/Clerk.Net/Client/Models/Oauth.cs +++ b/src/Clerk.Net/Client/Models/FromOAuth.cs @@ -9,7 +9,7 @@ namespace Clerk.Net.Client.Models { [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public partial class Oauth : IParsable + public partial class FromOAuth : IParsable #pragma warning restore CS1591 { /// The attempts property @@ -17,23 +17,15 @@ public partial class Oauth : IParsable /// The error property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public global::Clerk.Net.Client.Models.Oauth_error? Error { get; set; } + public global::Clerk.Net.Client.Models.FromOAuth_error? Error { get; set; } #nullable restore #else - public global::Clerk.Net.Client.Models.Oauth_error Error { get; set; } + public global::Clerk.Net.Client.Models.FromOAuth_error Error { get; set; } #endif /// The expire_at property public int? ExpireAt { get; set; } - /// The external_verification_redirect_url property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ExternalVerificationRedirectUrl { get; set; } -#nullable restore -#else - public string ExternalVerificationRedirectUrl { get; set; } -#endif /// The status property - public global::Clerk.Net.Client.Models.Oauth_status? Status { get; set; } + public global::Clerk.Net.Client.Models.FromOAuth_status? Status { get; set; } /// The strategy property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -45,12 +37,12 @@ public partial class Oauth : 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 global::Clerk.Net.Client.Models.Oauth CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.FromOAuth CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new global::Clerk.Net.Client.Models.Oauth(); + return new global::Clerk.Net.Client.Models.FromOAuth(); } /// /// The deserialization information for the current model @@ -61,10 +53,9 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "attempts", n => { Attempts = n.GetIntValue(); } }, - { "error", n => { Error = n.GetObjectValue(global::Clerk.Net.Client.Models.Oauth_error.CreateFromDiscriminatorValue); } }, + { "error", n => { Error = n.GetObjectValue(global::Clerk.Net.Client.Models.FromOAuth_error.CreateFromDiscriminatorValue); } }, { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, - { "external_verification_redirect_url", n => { ExternalVerificationRedirectUrl = n.GetStringValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, { "strategy", n => { Strategy = n.GetStringValue(); } }, }; } @@ -76,10 +67,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("attempts", Attempts); - writer.WriteObjectValue("error", Error); + writer.WriteObjectValue("error", Error); writer.WriteIntValue("expire_at", ExpireAt); - writer.WriteStringValue("external_verification_redirect_url", ExternalVerificationRedirectUrl); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteStringValue("strategy", Strategy); } } diff --git a/src/Clerk.Net/Client/Models/FromOAuth_error.cs b/src/Clerk.Net/Client/Models/FromOAuth_error.cs new file mode 100644 index 0000000..211ae49 --- /dev/null +++ b/src/Clerk.Net/Client/Models/FromOAuth_error.cs @@ -0,0 +1,105 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FromOAuth_error : 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; } + /// The clerk_trace_id property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ClerkTraceId { get; set; } +#nullable restore +#else + public string ClerkTraceId { get; set; } +#endif + /// The code property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Code { get; set; } +#nullable restore +#else + public string Code { get; set; } +#endif + /// The long_message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LongMessage { get; set; } +#nullable restore +#else + public string LongMessage { get; set; } +#endif + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Message { get; set; } +#nullable restore +#else + public string Message { get; set; } +#endif + /// The meta property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Clerk.Net.Client.Models.FromOAuth_error_meta? Meta { get; set; } +#nullable restore +#else + public global::Clerk.Net.Client.Models.FromOAuth_error_meta Meta { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public FromOAuth_error() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Clerk.Net.Client.Models.FromOAuth_error CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Clerk.Net.Client.Models.FromOAuth_error(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "clerk_trace_id", n => { ClerkTraceId = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "long_message", n => { LongMessage = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "meta", n => { Meta = n.GetObjectValue(global::Clerk.Net.Client.Models.FromOAuth_error_meta.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("clerk_trace_id", ClerkTraceId); + writer.WriteStringValue("code", Code); + writer.WriteStringValue("long_message", LongMessage); + writer.WriteStringValue("message", Message); + writer.WriteObjectValue("meta", Meta); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Clerk.Net/Client/Models/FromOAuth_error_meta.cs b/src/Clerk.Net/Client/Models/FromOAuth_error_meta.cs new file mode 100644 index 0000000..6ef25ed --- /dev/null +++ b/src/Clerk.Net/Client/Models/FromOAuth_error_meta.cs @@ -0,0 +1,55 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FromOAuth_error_meta : 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; } + /// + /// Instantiates a new and sets the default values. + /// + public FromOAuth_error_meta() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Clerk.Net.Client.Models.FromOAuth_error_meta CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Clerk.Net.Client.Models.FromOAuth_error_meta(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Clerk.Net/Client/Models/Oauth_status.cs b/src/Clerk.Net/Client/Models/FromOAuth_status.cs similarity index 54% rename from src/Clerk.Net/Client/Models/Oauth_status.cs rename to src/Clerk.Net/Client/Models/FromOAuth_status.cs index f939269..4fa7c34 100644 --- a/src/Clerk.Net/Client/Models/Oauth_status.cs +++ b/src/Clerk.Net/Client/Models/FromOAuth_status.cs @@ -5,7 +5,7 @@ namespace Clerk.Net.Client.Models { [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public enum Oauth_status + public enum FromOAuth_status #pragma warning restore CS1591 { [EnumMember(Value = "unverified")] @@ -16,17 +16,5 @@ public enum Oauth_status #pragma warning disable CS1591 Verified, #pragma warning restore CS1591 - [EnumMember(Value = "failed")] - #pragma warning disable CS1591 - Failed, - #pragma warning restore CS1591 - [EnumMember(Value = "expired")] - #pragma warning disable CS1591 - Expired, - #pragma warning restore CS1591 - [EnumMember(Value = "transferable")] - #pragma warning disable CS1591 - Transferable, - #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SAMLAccount_saml_connection.cs b/src/Clerk.Net/Client/Models/SAMLAccount_saml_connection.cs index 30a53e4..ade94ad 100644 --- a/src/Clerk.Net/Client/Models/SAMLAccount_saml_connection.cs +++ b/src/Clerk.Net/Client/Models/SAMLAccount_saml_connection.cs @@ -12,8 +12,54 @@ namespace Clerk.Net.Client.Models public partial class SAMLAccount_saml_connection : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { + /// The active property + public bool? Active { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The allow_idp_initiated property + public bool? AllowIdpInitiated { get; set; } + /// The allow_subdomains property + public bool? AllowSubdomains { get; set; } + /// Unix timestamp of creation. + public long? CreatedAt { get; set; } + /// The disable_additional_identifications property + public bool? DisableAdditionalIdentifications { get; set; } + /// The domain property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Domain { get; set; } +#nullable restore +#else + public string Domain { get; set; } +#endif + /// The id property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Id { get; set; } +#nullable restore +#else + public string Id { get; set; } +#endif + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// The provider property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Provider { get; set; } +#nullable restore +#else + public string Provider { get; set; } +#endif + /// The sync_user_attributes property + public bool? SyncUserAttributes { get; set; } + /// Unix timestamp of last update. + public long? UpdatedAt { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -39,6 +85,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "active", n => { Active = n.GetBoolValue(); } }, + { "allow_idp_initiated", n => { AllowIdpInitiated = n.GetBoolValue(); } }, + { "allow_subdomains", n => { AllowSubdomains = n.GetBoolValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "disable_additional_identifications", n => { DisableAdditionalIdentifications = n.GetBoolValue(); } }, + { "domain", n => { Domain = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "provider", n => { Provider = n.GetStringValue(); } }, + { "sync_user_attributes", n => { SyncUserAttributes = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -48,6 +105,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("active", Active); + writer.WriteBoolValue("allow_idp_initiated", AllowIdpInitiated); + writer.WriteBoolValue("allow_subdomains", AllowSubdomains); + writer.WriteLongValue("created_at", CreatedAt); + writer.WriteBoolValue("disable_additional_identifications", DisableAdditionalIdentifications); + writer.WriteStringValue("domain", Domain); + writer.WriteStringValue("id", Id); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("provider", Provider); + writer.WriteBoolValue("sync_user_attributes", SyncUserAttributes); + writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Clerk.Net/Client/Models/SAML_error.cs b/src/Clerk.Net/Client/Models/SAML_error.cs index 7da0c81..d1a87de 100644 --- a/src/Clerk.Net/Client/Models/SAML_error.cs +++ b/src/Clerk.Net/Client/Models/SAML_error.cs @@ -14,6 +14,46 @@ public partial class SAML_error : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The clerk_trace_id property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ClerkTraceId { get; set; } +#nullable restore +#else + public string ClerkTraceId { get; set; } +#endif + /// The code property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Code { get; set; } +#nullable restore +#else + public string Code { get; set; } +#endif + /// The long_message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LongMessage { get; set; } +#nullable restore +#else + public string LongMessage { get; set; } +#endif + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Message { get; set; } +#nullable restore +#else + public string Message { get; set; } +#endif + /// The meta property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Clerk.Net.Client.Models.SAML_error_meta? Meta { get; set; } +#nullable restore +#else + public global::Clerk.Net.Client.Models.SAML_error_meta Meta { get; set; } +#endif /// /// Instantiates a new and sets the default values. /// @@ -39,6 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "clerk_trace_id", n => { ClerkTraceId = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "long_message", n => { LongMessage = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "meta", n => { Meta = n.GetObjectValue(global::Clerk.Net.Client.Models.SAML_error_meta.CreateFromDiscriminatorValue); } }, }; } /// @@ -48,6 +93,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("clerk_trace_id", ClerkTraceId); + writer.WriteStringValue("code", Code); + writer.WriteStringValue("long_message", LongMessage); + writer.WriteStringValue("message", Message); + writer.WriteObjectValue("meta", Meta); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Clerk.Net/Client/Models/Oauth_error.cs b/src/Clerk.Net/Client/Models/SAML_error_meta.cs similarity index 84% rename from src/Clerk.Net/Client/Models/Oauth_error.cs rename to src/Clerk.Net/Client/Models/SAML_error_meta.cs index 55ff885..2d888eb 100644 --- a/src/Clerk.Net/Client/Models/Oauth_error.cs +++ b/src/Clerk.Net/Client/Models/SAML_error_meta.cs @@ -9,27 +9,27 @@ namespace Clerk.Net.Client.Models { [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public partial class Oauth_error : IAdditionalDataHolder, IParsable + public partial class SAML_error_meta : 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; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Oauth_error() + public SAML_error_meta() { AdditionalData = new Dictionary(); } /// /// 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 global::Clerk.Net.Client.Models.Oauth_error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAML_error_meta CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new global::Clerk.Net.Client.Models.Oauth_error(); + return new global::Clerk.Net.Client.Models.SAML_error_meta(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/SchemasPasskey_verification.cs b/src/Clerk.Net/Client/Models/SchemasPasskey_verification.cs index 38e49ed..3e58e27 100644 --- a/src/Clerk.Net/Client/Models/SchemasPasskey_verification.cs +++ b/src/Clerk.Net/Client/Models/SchemasPasskey_verification.cs @@ -14,6 +14,16 @@ public partial class SchemasPasskey_verification : IAdditionalDataHolder, IParsa { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The attempts property + public int? Attempts { get; set; } + /// The expire_at property + public int? ExpireAt { get; set; } + /// The nonce property + public global::Clerk.Net.Client.Models.SchemasPasskey_verification_nonce? Nonce { get; set; } + /// The status property + public global::Clerk.Net.Client.Models.SchemasPasskey_verification_status? Status { get; set; } + /// The strategy property + public global::Clerk.Net.Client.Models.SchemasPasskey_verification_strategy? Strategy { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -39,6 +49,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "attempts", n => { Attempts = n.GetIntValue(); } }, + { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, + { "nonce", n => { Nonce = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "strategy", n => { Strategy = n.GetEnumValue(); } }, }; } /// @@ -48,6 +63,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("attempts", Attempts); + writer.WriteIntValue("expire_at", ExpireAt); + writer.WriteEnumValue("nonce", Nonce); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("strategy", Strategy); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Clerk.Net/Client/Models/SchemasPasskey_verification_nonce.cs b/src/Clerk.Net/Client/Models/SchemasPasskey_verification_nonce.cs new file mode 100644 index 0000000..38b6e59 --- /dev/null +++ b/src/Clerk.Net/Client/Models/SchemasPasskey_verification_nonce.cs @@ -0,0 +1,16 @@ +// +using System.Runtime.Serialization; +using System; +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum SchemasPasskey_verification_nonce + #pragma warning restore CS1591 + { + [EnumMember(Value = "nonce")] + #pragma warning disable CS1591 + Nonce, + #pragma warning restore CS1591 + } +} diff --git a/src/Clerk.Net/Client/Models/SchemasPasskey_verification_status.cs b/src/Clerk.Net/Client/Models/SchemasPasskey_verification_status.cs new file mode 100644 index 0000000..5e8cc3f --- /dev/null +++ b/src/Clerk.Net/Client/Models/SchemasPasskey_verification_status.cs @@ -0,0 +1,16 @@ +// +using System.Runtime.Serialization; +using System; +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum SchemasPasskey_verification_status + #pragma warning restore CS1591 + { + [EnumMember(Value = "verified")] + #pragma warning disable CS1591 + Verified, + #pragma warning restore CS1591 + } +} diff --git a/src/Clerk.Net/Client/Models/SchemasPasskey_verification_strategy.cs b/src/Clerk.Net/Client/Models/SchemasPasskey_verification_strategy.cs new file mode 100644 index 0000000..6628e9c --- /dev/null +++ b/src/Clerk.Net/Client/Models/SchemasPasskey_verification_strategy.cs @@ -0,0 +1,16 @@ +// +using System.Runtime.Serialization; +using System; +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum SchemasPasskey_verification_strategy + #pragma warning restore CS1591 + { + [EnumMember(Value = "passkey")] + #pragma warning disable CS1591 + Passkey, + #pragma warning restore CS1591 + } +} diff --git a/src/Clerk.Net/Client/Models/SchemasSAMLConnection.cs b/src/Clerk.Net/Client/Models/SchemasSAMLConnection.cs index 61ab260..8092509 100644 --- a/src/Clerk.Net/Client/Models/SchemasSAMLConnection.cs +++ b/src/Clerk.Net/Client/Models/SchemasSAMLConnection.cs @@ -106,6 +106,14 @@ public partial class SchemasSAMLConnection : IAdditionalDataHolder, IParsable #endif /// The object property public global::Clerk.Net.Client.Models.SchemasSAMLConnection_object? Object { get; set; } + /// The organization_id property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The provider property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -177,6 +185,7 @@ public virtual IDictionary> GetFieldDeserializers() { "idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, { "object", n => { Object = n.GetEnumValue(); } }, + { "organization_id", n => { OrganizationId = n.GetStringValue(); } }, { "provider", n => { Provider = n.GetStringValue(); } }, { "sp_entity_id", n => { SpEntityId = n.GetStringValue(); } }, { "sp_metadata_url", n => { SpMetadataUrl = n.GetStringValue(); } }, @@ -208,6 +217,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("idp_sso_url", IdpSsoUrl); writer.WriteStringValue("name", Name); writer.WriteEnumValue("object", Object); + writer.WriteStringValue("organization_id", OrganizationId); writer.WriteStringValue("provider", Provider); writer.WriteStringValue("sp_entity_id", SpEntityId); writer.WriteStringValue("sp_metadata_url", SpMetadataUrl); diff --git a/src/Clerk.Net/Client/Models/Web3Signature_strategy.cs b/src/Clerk.Net/Client/Models/Web3Signature_strategy.cs index c88578e..db13521 100644 --- a/src/Clerk.Net/Client/Models/Web3Signature_strategy.cs +++ b/src/Clerk.Net/Client/Models/Web3Signature_strategy.cs @@ -16,5 +16,9 @@ public enum Web3Signature_strategy #pragma warning disable CS1591 Web3_coinbase_wallet_signature, #pragma warning restore CS1591 + [EnumMember(Value = "web3_okx_wallet_signature")] + #pragma warning disable CS1591 + Web3_okx_wallet_signature, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs index 606ff5e..37c2dcd 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs @@ -30,7 +30,7 @@ public partial class Bulk : IAdditionalDataHolder, IParsable #else public string InviterUserId { get; set; } #endif - /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. + /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_private_metadata? PrivateMetadata { get; set; } @@ -38,7 +38,7 @@ public partial class Bulk : IAdditionalDataHolder, IParsable #else public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_private_metadata PrivateMetadata { get; set; } #endif - /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. + /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_public_metadata? PublicMetadata { get; set; } diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs index 951c200..0ea2393 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs @@ -8,7 +8,7 @@ namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk { /// - /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. + /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class Bulk_private_metadata : IAdditionalDataHolder, IParsable diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs index 738fab4..d84953a 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs @@ -8,7 +8,7 @@ namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk { /// - /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. + /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class Bulk_public_metadata : IAdditionalDataHolder, IParsable diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs index ba4eba1..9f831eb 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs @@ -30,7 +30,7 @@ public partial class InvitationsPostRequestBody : IAdditionalDataHolder, IParsab #else public string InviterUserId { get; set; } #endif - /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. + /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_private_metadata? PrivateMetadata { get; set; } @@ -38,7 +38,7 @@ public partial class InvitationsPostRequestBody : IAdditionalDataHolder, IParsab #else public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_private_metadata PrivateMetadata { get; set; } #endif - /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. + /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_public_metadata? PublicMetadata { get; set; } diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs index 099a1b8..c38a2b6 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs @@ -8,7 +8,7 @@ namespace Clerk.Net.Client.Organizations.Item.Invitations { /// - /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. + /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class InvitationsPostRequestBody_private_metadata : IAdditionalDataHolder, IParsable diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs index 5682899..3acde30 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs @@ -8,7 +8,7 @@ namespace Clerk.Net.Client.Organizations.Item.Invitations { /// - /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. + /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class InvitationsPostRequestBody_public_metadata : IAdditionalDataHolder, IParsable diff --git a/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs index 65f96e1..7cf66b7 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs @@ -74,7 +74,7 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Organizations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Creates a new organization with the given name for an instance.In order to successfully create an organization you need to provide the ID of the User who will become the organization administrator.You can specify an optional slug for the new organization.If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-".Organization slugs must be unique for the instance.You can provide additional metadata for the organization and set any custom attribute you want.Organizations support private and public metadata.Private metadata can only be accessed from the Backend API.Public metadata can be accessed from the Backend API, and are read-only from the Frontend API.The `created_by` user will see this as their [active organization] (https://clerk.com/docs/organizations/overview#active-organization)the next time they create a session, presuming they don't explicitly set a different organization as active before then. + /// Creates a new organization with the given name for an instance.You can specify an optional slug for the new organization.If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-".Organization slugs must be unique for the instance.You can provide additional metadata for the organization and set any custom attribute you want.Organizations support private and public metadata.Private metadata can only be accessed from the Backend API.Public metadata can be accessed from the Backend API, and are read-only from the Frontend API.The `created_by` user will see this as their [active organization] (https://clerk.com/docs/organizations/overview#active-organization)the next time they create a session, presuming they don't explicitly set a different organization as active before then. /// /// A /// The request body @@ -122,7 +122,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Creates a new organization with the given name for an instance.In order to successfully create an organization you need to provide the ID of the User who will become the organization administrator.You can specify an optional slug for the new organization.If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-".Organization slugs must be unique for the instance.You can provide additional metadata for the organization and set any custom attribute you want.Organizations support private and public metadata.Private metadata can only be accessed from the Backend API.Public metadata can be accessed from the Backend API, and are read-only from the Frontend API.The `created_by` user will see this as their [active organization] (https://clerk.com/docs/organizations/overview#active-organization)the next time they create a session, presuming they don't explicitly set a different organization as active before then. + /// Creates a new organization with the given name for an instance.You can specify an optional slug for the new organization.If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-".Organization slugs must be unique for the instance.You can provide additional metadata for the organization and set any custom attribute you want.Organizations support private and public metadata.Private metadata can only be accessed from the Backend API.Public metadata can be accessed from the Backend API, and are read-only from the Frontend API.The `created_by` user will see this as their [active organization] (https://clerk.com/docs/organizations/overview#active-organization)the next time they create a session, presuming they don't explicitly set a different organization as active before then. /// /// A /// The request body diff --git a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs index 9f7ddb9..e71527f 100644 --- a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs @@ -83,6 +83,14 @@ public partial class WithSaml_connection_PatchRequestBody : IParsable #nullable restore #else public string Name { get; set; } +#endif + /// The ID of the organization to which users of this SAML Connection will be added +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } #endif /// Controls whether to update the user's attributes in each sign-in public bool? SyncUserAttributes { get; set; } @@ -116,6 +124,7 @@ public virtual IDictionary> GetFieldDeserializers() { "idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, { "idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, + { "organization_id", n => { OrganizationId = n.GetStringValue(); } }, { "sync_user_attributes", n => { SyncUserAttributes = n.GetBoolValue(); } }, }; } @@ -138,6 +147,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("idp_metadata_url", IdpMetadataUrl); writer.WriteStringValue("idp_sso_url", IdpSsoUrl); writer.WriteStringValue("name", Name); + writer.WriteStringValue("organization_id", OrganizationId); writer.WriteBoolValue("sync_user_attributes", SyncUserAttributes); } } diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs index 73fbd6e..d92a9dd 100644 --- a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs @@ -75,6 +75,14 @@ public partial class Saml_connectionsPostRequestBody : IParsable #nullable restore #else public string Name { get; set; } +#endif + /// The ID of the organization to which users of this SAML Connection will be added +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } #endif /// The IdP provider of the connection. public global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody_provider? Provider { get; set; } @@ -104,6 +112,7 @@ public virtual IDictionary> GetFieldDeserializers() { "idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, { "idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, + { "organization_id", n => { OrganizationId = n.GetStringValue(); } }, { "provider", n => { Provider = n.GetEnumValue(); } }, }; } @@ -122,6 +131,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("idp_metadata_url", IdpMetadataUrl); writer.WriteStringValue("idp_sso_url", IdpSsoUrl); writer.WriteStringValue("name", Name); + writer.WriteStringValue("organization_id", OrganizationId); writer.WriteEnumValue("provider", Provider); } } diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs index 50e94aa..8581a35 100644 --- a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs @@ -82,6 +82,7 @@ public Saml_connectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 402 status code /// When receiving a 403 status code + /// When receiving a 404 status code /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -98,6 +99,7 @@ public Saml_connectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdap { { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.SchemasSAMLConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); diff --git a/src/Clerk.Net/Client/Users/Item/Oauth_access_tokens/Item/WithProviderItemRequestBuilder.cs b/src/Clerk.Net/Client/Users/Item/Oauth_access_tokens/Item/WithProviderItemRequestBuilder.cs index 81aa45f..c36ce12 100644 --- a/src/Clerk.Net/Client/Users/Item/Oauth_access_tokens/Item/WithProviderItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Users/Item/Oauth_access_tokens/Item/WithProviderItemRequestBuilder.cs @@ -40,6 +40,7 @@ public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 400 status code + /// When receiving a 404 status code /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -54,6 +55,7 @@ public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap var errorMapping = new Dictionary> { { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Users.Item.Oauth_access_tokens.Item.WithProvider.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); diff --git a/src/Clerk.Net/Client/Waitlist_entries/GetStatusQueryParameterType.cs b/src/Clerk.Net/Client/Waitlist_entries/GetStatusQueryParameterType.cs new file mode 100644 index 0000000..c7dec14 --- /dev/null +++ b/src/Clerk.Net/Client/Waitlist_entries/GetStatusQueryParameterType.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Clerk.Net.Client.Waitlist_entries +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum GetStatusQueryParameterType + #pragma warning restore CS1591 + { + [EnumMember(Value = "pending")] + #pragma warning disable CS1591 + Pending, + #pragma warning restore CS1591 + [EnumMember(Value = "invited")] + #pragma warning disable CS1591 + Invited, + #pragma warning restore CS1591 + [EnumMember(Value = "completed")] + #pragma warning disable CS1591 + Completed, + #pragma warning restore CS1591 + [EnumMember(Value = "rejected")] + #pragma warning disable CS1591 + Rejected, + #pragma warning restore CS1591 + } +} diff --git a/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesGetResponse.cs b/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesGetResponse.cs new file mode 100644 index 0000000..f8fa60e --- /dev/null +++ b/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesGetResponse.cs @@ -0,0 +1,70 @@ +// +#pragma warning disable CS0618 +using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Clerk.Net.Client.Waitlist_entries +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Waitlist_entriesGetResponse : 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; } + /// The data property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Data { get; set; } +#nullable restore +#else + public List Data { get; set; } +#endif + /// Total number of waitlist entries + public int? TotalCount { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Waitlist_entriesGetResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Clerk.Net.Client.Waitlist_entries.Waitlist_entriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Clerk.Net.Client.Waitlist_entries.Waitlist_entriesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "data", n => { Data = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.WaitlistEntry.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("data", Data); + writer.WriteIntValue("total_count", TotalCount); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesPostRequestBody.cs b/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesPostRequestBody.cs index 0dc4dbc..0f46835 100644 --- a/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesPostRequestBody.cs +++ b/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesPostRequestBody.cs @@ -22,6 +22,8 @@ public partial class Waitlist_entriesPostRequestBody : IAdditionalDataHolder, IP #else public string EmailAddress { get; set; } #endif + /// Optional flag which denotes whether an email invitation should be sent to the given email address.Defaults to `true`. + public bool? Notify { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -48,6 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "notify", n => { Notify = n.GetBoolValue(); } }, }; } /// @@ -58,6 +61,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email_address", EmailAddress); + writer.WriteBoolValue("notify", Notify); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesRequestBuilder.cs b/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesRequestBuilder.cs index 3b318a8..d48c017 100644 --- a/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesRequestBuilder.cs +++ b/src/Clerk.Net/Client/Waitlist_entries/Waitlist_entriesRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class Waitlist_entriesRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public Waitlist_entriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/waitlist_entries", pathParameters) + public Waitlist_entriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/waitlist_entries{?limit*,offset*,order_by*,query*,status*}", pathParameters) { } /// @@ -30,10 +30,28 @@ public Waitlist_entriesRequestBuilder(Dictionary pathParameters, /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public Waitlist_entriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/waitlist_entries", rawUrl) + public Waitlist_entriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/waitlist_entries{?limit*,offset*,order_by*,query*,status*}", rawUrl) { } /// + /// Retrieve a list of waitlist entries for the instance.Entries are ordered by creation date in descending order by default.Supports filtering by email address or status and pagination with limit and offset parameters. + /// + /// 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) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Waitlist_entries.Waitlist_entriesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// /// Creates a new waitlist entry for the given email address.If the email address is already on the waitlist, no new entry will be created and the existing waitlist entry will be returned. /// /// A @@ -61,6 +79,25 @@ public Waitlist_entriesRequestBuilder(string rawUrl, IRequestAdapter requestAdap return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.WaitlistEntry.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// + /// Retrieve a list of waitlist entries for the instance.Entries are ordered by creation date in descending order by default.Supports filtering by email address or status and pagination with limit and offset parameters. + /// + /// A + /// 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 ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Creates a new waitlist entry for the given email address.If the email address is already on the waitlist, no new entry will be created and the existing waitlist entry will be returned. /// /// A @@ -91,6 +128,42 @@ public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Wait { return new global::Clerk.Net.Client.Waitlist_entries.Waitlist_entriesRequestBuilder(rawUrl, RequestAdapter); } + /// + /// Retrieve a list of waitlist entries for the instance.Entries are ordered by creation date in descending order by default.Supports filtering by email address or status and pagination with limit and offset parameters. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Waitlist_entriesRequestBuilderGetQueryParameters + { + /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`. + [QueryParameter("limit")] + public double? Limit { get; set; } + /// Skip the first `offset` results when paginating.Needs to be an integer greater or equal to zero.To be used in conjunction with `limit`. + [QueryParameter("offset")] + public double? Offset { get; set; } + /// Specify the order of results. Supported values are:- `created_at`- `email_address`- `invited_at`Use `+` for ascending or `-` for descending order. Defaults to `-created_at`. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("order_by")] + public string? OrderBy { get; set; } +#nullable restore +#else + [QueryParameter("order_by")] + public string OrderBy { get; set; } +#endif + /// Filter waitlist entries by email address +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("query")] + public string? Query { get; set; } +#nullable restore +#else + [QueryParameter("query")] + public string Query { get; set; } +#endif + /// Filter waitlist entries by their status + [QueryParameter("status")] + public global::Clerk.Net.Client.Waitlist_entries.GetStatusQueryParameterType? Status { get; set; } + } } } #pragma warning restore CS0618 diff --git a/src/Clerk.Net/Client/kiota-lock.json b/src/Clerk.Net/Client/kiota-lock.json index 3cf545d..4e39346 100644 --- a/src/Clerk.Net/Client/kiota-lock.json +++ b/src/Clerk.Net/Client/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "F8E4B4BF9E75F44C8CE4ECE25B63B6643D4B85613C32F44B8E17951155C50E07946C7359E6EFFE47E51F6D03D2A3616EE175CF6A03FA92D917D587751213EDFB", + "descriptionHash": "6C166B14F3040A4607BF09D6FDFFEAC8B81649FF07452EBE4125AB948BAE5A128FE379586708589F8551593757EDF9A2579746582A0EE3CAE195A30EED6F455F", "descriptionLocation": "../swagger.json", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.20.0", + "kiotaVersion": "1.21.0", "clientClassName": "ClerkApiClient", "typeAccessModifier": "Public", "clientNamespaceName": "Clerk.Net.Client", diff --git a/src/Clerk.Net/swagger.json b/src/Clerk.Net/swagger.json index 7d85d28..668ff8f 100644 --- a/src/Clerk.Net/swagger.json +++ b/src/Clerk.Net/swagger.json @@ -2598,6 +2598,9 @@ "400": { "$ref": "#/components/responses/ClerkErrors" }, + "404": { + "$ref": "#/components/responses/ResourceNotFound" + }, "422": { "$ref": "#/components/responses/UnprocessableEntity" } @@ -3184,7 +3187,7 @@ }, "notify": { "type": "boolean", - "description": "Optional flag which denotes whether an email invitation should be sent to the given email address.\nDefaults to true.", + "description": "Optional flag which denotes whether an email invitation should be sent to the given email address.\nDefaults to `true`.", "nullable": true, "default": true }, @@ -4231,6 +4234,9 @@ "200": { "$ref": "#/components/responses/OrganizationSettings" }, + "400": { + "$ref": "#/components/responses/ClerkErrors" + }, "402": { "$ref": "#/components/responses/PaymentRequired" }, @@ -4585,7 +4591,7 @@ "post": { "operationId": "CreateOrganization", "summary": "Create an organization", - "description": "Creates a new organization with the given name for an instance.\nIn order to successfully create an organization you need to provide the ID of the User who will become the organization administrator.\nYou can specify an optional slug for the new organization.\nIf provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash \"-\".\nOrganization slugs must be unique for the instance.\nYou can provide additional metadata for the organization and set any custom attribute you want.\nOrganizations support private and public metadata.\nPrivate metadata can only be accessed from the Backend API.\nPublic metadata can be accessed from the Backend API, and are read-only from the Frontend API.\nThe `created_by` user will see this as their [active organization] (https://clerk.com/docs/organizations/overview#active-organization)\nthe next time they create a session, presuming they don't explicitly set a different organization as active before then.", + "description": "Creates a new organization with the given name for an instance.\nYou can specify an optional slug for the new organization.\nIf provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash \"-\".\nOrganization slugs must be unique for the instance.\nYou can provide additional metadata for the organization and set any custom attribute you want.\nOrganizations support private and public metadata.\nPrivate metadata can only be accessed from the Backend API.\nPublic metadata can be accessed from the Backend API, and are read-only from the Frontend API.\nThe `created_by` user will see this as their [active organization] (https://clerk.com/docs/organizations/overview#active-organization)\nthe next time they create a session, presuming they don't explicitly set a different organization as active before then.", "tags": [ "Organizations" ], @@ -4627,8 +4633,7 @@ } }, "required": [ - "name", - "created_by" + "name" ] } } @@ -4985,12 +4990,12 @@ }, "public_metadata": { "type": "object", - "description": "Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.", + "description": "Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.\nWhen the organization invitation is accepted, the metadata will be transferred to the newly created organization membership.", "additionalProperties": true }, "private_metadata": { "type": "object", - "description": "Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.", + "description": "Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.\nWhen the organization invitation is accepted, the metadata will be transferred to the newly created organization membership.", "additionalProperties": true }, "redirect_url": { @@ -5118,12 +5123,12 @@ }, "public_metadata": { "type": "object", - "description": "Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.", + "description": "Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.\nWhen the organization invitation is accepted, the metadata will be transferred to the newly created organization membership.", "additionalProperties": true }, "private_metadata": { "type": "object", - "description": "Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.", + "description": "Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.\nWhen the organization invitation is accepted, the metadata will be transferred to the newly created organization membership.", "additionalProperties": true }, "redirect_url": { @@ -6402,6 +6407,11 @@ "description": "The XML content of the IdP metadata file. If present, it takes priority over the corresponding individual properties", "nullable": true }, + "organization_id": { + "type": "string", + "description": "The ID of the organization to which users of this SAML Connection will be added", + "nullable": true + }, "attribute_mapping": { "type": "object", "description": "Define the attribute name mapping between Identity Provider and Clerk's user properties", @@ -6442,6 +6452,9 @@ "403": { "$ref": "#/components/responses/AuthorizationInvalid" }, + "404": { + "$ref": "#/components/responses/ResourceNotFound" + }, "422": { "$ref": "#/components/responses/UnprocessableEntity" } @@ -6543,6 +6556,11 @@ "description": "The XML content of the IdP metadata file. If present, it takes priority over the corresponding individual properties", "nullable": true }, + "organization_id": { + "type": "string", + "description": "The ID of the organization to which users of this SAML Connection will be added", + "nullable": true + }, "attribute_mapping": { "type": "object", "description": "Define the atrtibute name mapping between Identity Provider and Clerk's user properties", @@ -6705,6 +6723,61 @@ } }, "/waitlist_entries": { + "get": { + "operationId": "ListWaitlistEntries", + "summary": "List all waitlist entries", + "description": "Retrieve a list of waitlist entries for the instance.\nEntries are ordered by creation date in descending order by default.\nSupports filtering by email address or status and pagination with limit and offset parameters.", + "tags": [ + "Waitlist Entries" + ], + "parameters": [ + { + "$ref": "#/components/parameters/LimitParameter" + }, + { + "$ref": "#/components/parameters/OffsetParameter" + }, + { + "in": "query", + "name": "query", + "description": "Filter waitlist entries by email address", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "description": "Filter waitlist entries by their status", + "required": false, + "schema": { + "type": "string", + "enum": [ + "pending", + "invited", + "completed", + "rejected" + ] + } + }, + { + "in": "query", + "name": "order_by", + "required": false, + "description": "Specify the order of results. Supported values are:\n- `created_at`\n- `email_address`\n- `invited_at`\n\nUse `+` for ascending or `-` for descending order. Defaults to `-created_at`.", + "schema": { + "type": "string", + "default": "-created_at" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WaitlistEntries" + } + } + }, "post": { "operationId": "CreateWaitlistEntry", "summary": "Create a waitlist entry", @@ -6721,6 +6794,10 @@ "email_address": { "type": "string", "description": "The email address to add to the waitlist" + }, + "notify": { + "type": "boolean", + "description": "Optional flag which denotes whether an email invitation should be sent to the given email address.\nDefaults to `true`." } }, "required": [ @@ -7073,7 +7150,7 @@ "strategy" ] }, - "Oauth": { + "FromOAuth": { "type": "object", "additionalProperties": false, "properties": { @@ -7081,18 +7158,12 @@ "type": "string", "enum": [ "unverified", - "verified", - "failed", - "expired", - "transferable" + "verified" ] }, "strategy": { "type": "string", - "pattern": "^oauth_(?:(?:token_)|(?:custom_))?[a-z]+$" - }, - "external_verification_redirect_url": { - "type": "string" + "pattern": "^from_oauth_(?:(?:token_)|(?:custom_))?[a-z]+$" }, "error": { "type": "object", @@ -7104,7 +7175,8 @@ ] }, "expire_at": { - "type": "integer" + "type": "integer", + "nullable": true }, "attempts": { "type": "integer", @@ -7169,7 +7241,7 @@ "$ref": "#/components/schemas/Admin" }, { - "$ref": "#/components/schemas/Oauth" + "$ref": "#/components/schemas/FromOAuth" } ] }, @@ -7179,6 +7251,10 @@ "$ref": "#/components/schemas/IdentificationLink" } }, + "matches_sso_connection": { + "description": "Indicates whether this email address domain matches an active enterprise connection.\n", + "type": "boolean" + }, "created_at": { "type": "integer", "format": "int64", @@ -7413,7 +7489,8 @@ "type": "string", "enum": [ "web3_metamask_signature", - "web3_coinbase_wallet_signature" + "web3_coinbase_wallet_signature", + "web3_okx_wallet_signature" ] }, "nonce": { @@ -8016,7 +8093,8 @@ "additionalProperties": true }, "created_by": { - "type": "string" + "type": "string", + "nullable": true }, "created_at": { "type": "integer", @@ -9414,6 +9492,10 @@ "sp_metadata_url": { "type": "string" }, + "organization_id": { + "type": "string", + "nullable": true + }, "attribute_mapping": { "type": "object", "additionalProperties": false, @@ -10250,6 +10332,32 @@ } } }, + "WaitlistEntries": { + "description": "List of waitlist entries", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WaitlistEntry" + } + }, + "total_count": { + "type": "integer", + "description": "Total number of waitlist entries" + } + }, + "required": [ + "data", + "total_count" + ] + } + } + } + }, "WaitlistEntry": { "description": "A Waitlist Entry", "content": {