Skip to content

Commit

Permalink
v1.6.0 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawxy authored Jul 7, 2024
1 parent 0330f43 commit 8a2797b
Show file tree
Hide file tree
Showing 315 changed files with 5,582 additions and 4,107 deletions.
2 changes: 1 addition & 1 deletion Package.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>1.5.0</Version>
<Version>1.6.0</Version>
<Authors>Hawxy</Authors>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.4" PrivateAssets="All" />
</ItemGroup>

<Import Project="../../Package.Build.props" />
Expand Down
4 changes: 2 additions & 2 deletions src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.3" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.3"/>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0"/>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.6" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/Clerk.Net.Tests/Clerk.Net.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
14 changes: 7 additions & 7 deletions src/Clerk.Net/Clerk.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.8.4" />
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.4.0" />
<PackageReference Include="Microsoft.Kiota.Serialization.Form" Version="1.1.6" />
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.2.3" />
<PackageReference Include="Microsoft.Kiota.Serialization.Multipart" Version="1.1.4" />
<PackageReference Include="Microsoft.Kiota.Serialization.Text" Version="1.1.5" />
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.9.7" />
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.4.3" />
<PackageReference Include="Microsoft.Kiota.Serialization.Form" Version="1.2.5" />
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.3.3" />
<PackageReference Include="Microsoft.Kiota.Serialization.Multipart" Version="1.1.5" />
<PackageReference Include="Microsoft.Kiota.Serialization.Text" Version="1.2.2" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.4" PrivateAssets="All" />
</ItemGroup>

<Import Project="../../Package.Build.props" />
Expand Down
30 changes: 17 additions & 13 deletions src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
// <auto-generated/>
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
{
/// <summary>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.</summary>
#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
/// <summary>Optional parameter to specify the life duration of the actor token in seconds.By default, the duration is 1 hour.</summary>
public int? ExpiresInSeconds { get; set; }
Expand All @@ -30,12 +34,12 @@ public class Actor_tokensPostRequestBody : IParsable
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="Actor_tokensPostRequestBody"/></returns>
/// <returns>A <see cref="global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
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();
}
/// <summary>
/// The deserialization information for the current model
Expand All @@ -45,10 +49,10 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{"actor", n => { Actor = n.GetObjectValue<Actor_tokensPostRequestBody_actor>(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>(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(); } },
};
}
/// <summary>
Expand All @@ -58,7 +62,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue<Actor_tokensPostRequestBody_actor>("actor", Actor);
writer.WriteObjectValue<global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor>("actor", Actor);
writer.WriteIntValue("expires_in_seconds", ExpiresInSeconds);
writer.WriteIntValue("session_max_duration_in_seconds", SessionMaxDurationInSeconds);
writer.WriteStringValue("user_id", UserId);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
// <auto-generated/>
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
{
/// <summary>
/// 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.
/// </summary>
public class Actor_tokensPostRequestBody_actor : IAdditionalDataHolder, IParsable
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
public partial class Actor_tokensPostRequestBody_actor : IAdditionalDataHolder, IParsable
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>
/// Instantiates a new <see cref="Actor_tokensPostRequestBody_actor"/> and sets the default values.
/// Instantiates a new <see cref="global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor"/> and sets the default values.
/// </summary>
public Actor_tokensPostRequestBody_actor()
{
Expand All @@ -22,12 +24,12 @@ public Actor_tokensPostRequestBody_actor()
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="Actor_tokensPostRequestBody_actor"/></returns>
/// <returns>A <see cref="global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
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();
}
/// <summary>
/// The deserialization information for the current model
Expand Down
48 changes: 25 additions & 23 deletions src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
// <auto-generated/>
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
{
/// <summary>
/// Builds and executes requests for operations under \actor_tokens
/// </summary>
public class Actor_tokensRequestBuilder : BaseRequestBuilder
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")]
public partial class Actor_tokensRequestBuilder : BaseRequestBuilder
{
/// <summary>Gets an item from the Clerk.Net.Client.actor_tokens.item collection</summary>
/// <param name="position">The ID of the actor token to be revoked.</param>
/// <returns>A <see cref="WithActor_token_ItemRequestBuilder"/></returns>
public WithActor_token_ItemRequestBuilder this[string position]
/// <returns>A <see cref="global::Clerk.Net.Client.Actor_tokens.Item.WithActor_token_ItemRequestBuilder"/></returns>
public global::Clerk.Net.Client.Actor_tokens.Item.WithActor_token_ItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary<string, object>(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);
}
}
/// <summary>
/// Instantiates a new <see cref="Actor_tokensRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public Actor_tokensRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/actor_tokens", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="Actor_tokensRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
Expand All @@ -46,31 +48,31 @@ public Actor_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
/// <summary>
/// Create an actor token that can be used to impersonate the given user.The `actor` parameter needs to include at least a &quot;sub&quot; key whose value is the ID of the actor (impersonating) user.
/// </summary>
/// <returns>A <see cref="ActorToken"/></returns>
/// <returns>A <see cref="global::Clerk.Net.Client.Models.ActorToken"/></returns>
/// <param name="body">The request body</param>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <exception cref="ClerkErrors">When receiving a 400 status code</exception>
/// <exception cref="ClerkErrors">When receiving a 402 status code</exception>
/// <exception cref="ClerkErrors">When receiving a 422 status code</exception>
/// <exception cref="global::Clerk.Net.Client.Models.ClerkErrors">When receiving a 400 status code</exception>
/// <exception cref="global::Clerk.Net.Client.Models.ClerkErrors">When receiving a 402 status code</exception>
/// <exception cref="global::Clerk.Net.Client.Models.ClerkErrors">When receiving a 422 status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<ActorToken?> PostAsync(Actor_tokensPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::Clerk.Net.Client.Models.ActorToken?> PostAsync(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<ActorToken> PostAsync(Actor_tokensPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::Clerk.Net.Client.Models.ActorToken> PostAsync(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"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<ActorToken>(requestInfo, ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return await RequestAdapter.SendAsync<global::Clerk.Net.Client.Models.ActorToken>(requestInfo, global::Clerk.Net.Client.Models.ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Create an actor token that can be used to impersonate the given user.The `actor` parameter needs to include at least a &quot;sub&quot; key whose value is the ID of the actor (impersonating) user.
Expand All @@ -80,11 +82,11 @@ public async Task<ActorToken> PostAsync(Actor_tokensPostRequestBody body, Action
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RequestInformation ToPostRequestInformation(Actor_tokensPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToPostRequestInformation(Actor_tokensPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
Expand All @@ -97,11 +99,11 @@ public RequestInformation ToPostRequestInformation(Actor_tokensPostRequestBody b
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <returns>A <see cref="Actor_tokensRequestBuilder"/></returns>
/// <returns>A <see cref="global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder"/></returns>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
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);
}
}
}
Loading

0 comments on commit 8a2797b

Please sign in to comment.