Skip to content

Commit

Permalink
Merge pull request #21 from tryAGI/bot/update-openapi_202410112122
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 11, 2024
2 parents d2b3eac + e9a6d5b commit 231181d
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ partial void ProcessGetArticleByIdResponseContent(
/// <param name="id"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.GetArticleByIdResponse> GetArticleByIdAsync(
public async global::System.Threading.Tasks.Task<object> GetArticleByIdAsync(
int id,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -103,7 +103,7 @@ partial void ProcessGetArticleByIdResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Forem.GetArticleByIdResponse), JsonSerializerContext) as global::Forem.GetArticleByIdResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ partial void ProcessGetArticleByPathResponseContent(
/// <param name="slug"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.GetArticleByPathResponse> GetArticleByPathAsync(
public async global::System.Threading.Tasks.Task<object> GetArticleByPathAsync(
string username,
string slug,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -109,7 +109,7 @@ partial void ProcessGetArticleByPathResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Forem.GetArticleByPathResponse), JsonSerializerContext) as global::Forem.GetArticleByPathResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ public partial class DisplayAdsClient
{
partial void PrepareCreateDisplayAdsArguments(
global::System.Net.Http.HttpClient httpClient,
global::Forem.Request request);
object request);
partial void PrepareCreateDisplayAdsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::Forem.Request request);
object request);
partial void ProcessCreateDisplayAdsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -28,8 +28,8 @@ partial void ProcessCreateDisplayAdsResponseContent(
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.Response> CreateDisplayAdsAsync(
global::Forem.Request request,
public async global::System.Threading.Tasks.Task<object> CreateDisplayAdsAsync(
object request,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
Expand Down Expand Up @@ -111,7 +111,7 @@ partial void ProcessCreateDisplayAdsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Forem.Response), JsonSerializerContext) as global::Forem.Response ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand All @@ -121,10 +121,10 @@ partial void ProcessCreateDisplayAdsResponseContent(
/// </summary>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.Response> CreateDisplayAdsAsync(
public async global::System.Threading.Tasks.Task<object> CreateDisplayAdsAsync(
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::Forem.Request
var request = new object
{
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ public partial class DisplayAdsClient
partial void PreparePutDisplayAdsIdArguments(
global::System.Net.Http.HttpClient httpClient,
ref int id,
global::Forem.Request2 request);
object request);
partial void PreparePutDisplayAdsIdRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
int id,
global::Forem.Request2 request);
object request);
partial void ProcessPutDisplayAdsIdResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -31,9 +31,9 @@ partial void ProcessPutDisplayAdsIdResponseContent(
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.Response2> PutDisplayAdsIdAsync(
public async global::System.Threading.Tasks.Task<object> PutDisplayAdsIdAsync(
int id,
global::Forem.Request2 request,
object request,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
Expand Down Expand Up @@ -117,7 +117,7 @@ partial void ProcessPutDisplayAdsIdResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Forem.Response2), JsonSerializerContext) as global::Forem.Response2 ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand All @@ -128,11 +128,11 @@ partial void ProcessPutDisplayAdsIdResponseContent(
/// <param name="id"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.Response2> PutDisplayAdsIdAsync(
public async global::System.Threading.Tasks.Task<object> PutDisplayAdsIdAsync(
int id,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::Forem.Request2
var request = new object
{
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public partial interface IArticlesClient
/// <param name="id"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.GetArticleByIdResponse> GetArticleByIdAsync(
global::System.Threading.Tasks.Task<object> GetArticleByIdAsync(
int id,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial interface IArticlesClient
/// <param name="slug"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.GetArticleByPathResponse> GetArticleByPathAsync(
global::System.Threading.Tasks.Task<object> GetArticleByPathAsync(
string username,
string slug,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public partial interface IDisplayAdsClient
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.Response> CreateDisplayAdsAsync(
global::Forem.Request request,
global::System.Threading.Tasks.Task<object> CreateDisplayAdsAsync(
object request,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
Expand All @@ -21,7 +21,7 @@ public partial interface IDisplayAdsClient
/// </summary>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.Response> CreateDisplayAdsAsync(
global::System.Threading.Tasks.Task<object> CreateDisplayAdsAsync(
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public partial interface IDisplayAdsClient
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.Response2> PutDisplayAdsIdAsync(
global::System.Threading.Tasks.Task<object> PutDisplayAdsIdAsync(
int id,
global::Forem.Request2 request,
object request,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
Expand All @@ -24,7 +24,7 @@ public partial interface IDisplayAdsClient
/// <param name="id"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.Response2> PutDisplayAdsIdAsync(
global::System.Threading.Tasks.Task<object> PutDisplayAdsIdAsync(
int id,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public partial interface IOrganizationsClient
/// <param name="username"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.GetOrganizationResponse> GetOrganizationAsync(
global::System.Threading.Tasks.Task<object> GetOrganizationAsync(
string username,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public partial interface IPagesClient
string? bodyMarkdown = default,
string? bodyJson = default,
bool? isTopLevelPath = default,
global::Forem.PageSocialImage? socialImage = default,
object? socialImage = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial interface IProfileImagesClient
/// <param name="username"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.GetProfileImageResponse> GetProfileImageAsync(
global::System.Threading.Tasks.Task<object> GetProfileImageAsync(
string username,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Forem/Generated/Forem.IUsersClient.GetUser.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial interface IUsersClient
/// <param name="id"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.GetUserResponse> GetUserAsync(
global::System.Threading.Tasks.Task<object> GetUserAsync(
string id,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Forem/Generated/Forem.IUsersClient.GetUserMe.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial interface IUsersClient
/// </summary>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Forem.GetUserMeResponse> GetUserMeAsync(
global::System.Threading.Tasks.Task<object> GetUserMeAsync(
global::System.Threading.CancellationToken cancellationToken = default);
}
}
2 changes: 1 addition & 1 deletion src/libs/Forem/Generated/Forem.Models.Page.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public sealed partial class Page
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("social_image")]
public global::Forem.PageSocialImage? SocialImage { get; set; }
public object? SocialImage { get; set; }

/// <summary>
/// Controls what kind of layout the page is rendered in<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ partial void ProcessGetOrganizationResponseContent(
/// <param name="username"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.GetOrganizationResponse> GetOrganizationAsync(
public async global::System.Threading.Tasks.Task<object> GetOrganizationAsync(
string username,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -103,7 +103,7 @@ partial void ProcessGetOrganizationResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Forem.GetOrganizationResponse), JsonSerializerContext) as global::Forem.GetOrganizationResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Forem/Generated/Forem.PagesClient.PutPagesId.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ partial void ProcessPutPagesIdResponseContent(
string? bodyMarkdown = default,
string? bodyJson = default,
bool? isTopLevelPath = default,
global::Forem.PageSocialImage? socialImage = default,
object? socialImage = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::Forem.Page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ partial void ProcessGetProfileImageResponseContent(
/// <param name="username"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.GetProfileImageResponse> GetProfileImageAsync(
public async global::System.Threading.Tasks.Task<object> GetProfileImageAsync(
string username,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -104,7 +104,7 @@ partial void ProcessGetProfileImageResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Forem.GetProfileImageResponse), JsonSerializerContext) as global::Forem.GetProfileImageResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Forem/Generated/Forem.UsersClient.GetUser.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ partial void ProcessGetUserResponseContent(
/// <param name="id"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.GetUserResponse> GetUserAsync(
public async global::System.Threading.Tasks.Task<object> GetUserAsync(
string id,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -105,7 +105,7 @@ partial void ProcessGetUserResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Forem.GetUserResponse), JsonSerializerContext) as global::Forem.GetUserResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Forem/Generated/Forem.UsersClient.GetUserMe.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ partial void ProcessGetUserMeResponseContent(
/// </summary>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Forem.GetUserMeResponse> GetUserMeAsync(
public async global::System.Threading.Tasks.Task<object> GetUserMeAsync(
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down Expand Up @@ -97,7 +97,7 @@ partial void ProcessGetUserMeResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::Forem.GetUserMeResponse), JsonSerializerContext) as global::Forem.GetUserMeResponse ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(object), JsonSerializerContext) as object ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Loading

0 comments on commit 231181d

Please sign in to comment.