Skip to content

Commit 1772169

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#89)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 42457a4 commit 1772169

8 files changed

Lines changed: 392 additions & 16 deletions

src/libs/Apify/Generated/Apify.DefaultDatasetClient.ActorRunDatasetItemsPost.g.cs

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,80 @@ partial void ProcessActorRunDatasetItemsPostResponseContent(
537537
h => h.Key,
538538
h => h.Value));
539539
}
540+
// Payload too large - the request body exceeds the size limit.
541+
if ((int)__response.StatusCode == 413)
542+
{
543+
string? __content_413 = null;
544+
global::System.Exception? __exception_413 = null;
545+
global::Apify.ErrorResponse? __value_413 = null;
546+
try
547+
{
548+
if (__effectiveReadResponseAsString)
549+
{
550+
__content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
551+
__value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext);
552+
}
553+
else
554+
{
555+
__content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
556+
557+
__value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext);
558+
}
559+
}
560+
catch (global::System.Exception __ex)
561+
{
562+
__exception_413 = __ex;
563+
}
564+
565+
566+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
567+
statusCode: __response.StatusCode,
568+
message: __content_413 ?? __response.ReasonPhrase ?? string.Empty,
569+
innerException: __exception_413,
570+
responseBody: __content_413,
571+
responseObject: __value_413,
572+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
573+
__response.Headers,
574+
h => h.Key,
575+
h => h.Value));
576+
}
577+
// Unsupported media type - the Content-Encoding of the request is not supported.
578+
if ((int)__response.StatusCode == 415)
579+
{
580+
string? __content_415 = null;
581+
global::System.Exception? __exception_415 = null;
582+
global::Apify.ErrorResponse? __value_415 = null;
583+
try
584+
{
585+
if (__effectiveReadResponseAsString)
586+
{
587+
__content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
588+
__value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext);
589+
}
590+
else
591+
{
592+
__content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
593+
594+
__value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext);
595+
}
596+
}
597+
catch (global::System.Exception __ex)
598+
{
599+
__exception_415 = __ex;
600+
}
601+
602+
603+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
604+
statusCode: __response.StatusCode,
605+
message: __content_415 ?? __response.ReasonPhrase ?? string.Empty,
606+
innerException: __exception_415,
607+
responseBody: __content_415,
608+
responseObject: __value_415,
609+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
610+
__response.Headers,
611+
h => h.Key,
612+
h => h.Value));
613+
}
540614
// Too many requests - rate limit exceeded.
541615
if ((int)__response.StatusCode == 429)
542616
{

src/libs/Apify/Generated/Apify.LastActorRunSDefaultDatasetClient.ActRunsLastDatasetItemsPost.g.cs

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,80 @@ partial void ProcessActRunsLastDatasetItemsPostResponseContent(
563563
h => h.Key,
564564
h => h.Value));
565565
}
566+
// Payload too large - the request body exceeds the size limit.
567+
if ((int)__response.StatusCode == 413)
568+
{
569+
string? __content_413 = null;
570+
global::System.Exception? __exception_413 = null;
571+
global::Apify.ErrorResponse? __value_413 = null;
572+
try
573+
{
574+
if (__effectiveReadResponseAsString)
575+
{
576+
__content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
577+
__value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext);
578+
}
579+
else
580+
{
581+
__content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
582+
583+
__value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext);
584+
}
585+
}
586+
catch (global::System.Exception __ex)
587+
{
588+
__exception_413 = __ex;
589+
}
590+
591+
592+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
593+
statusCode: __response.StatusCode,
594+
message: __content_413 ?? __response.ReasonPhrase ?? string.Empty,
595+
innerException: __exception_413,
596+
responseBody: __content_413,
597+
responseObject: __value_413,
598+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
599+
__response.Headers,
600+
h => h.Key,
601+
h => h.Value));
602+
}
603+
// Unsupported media type - the Content-Encoding of the request is not supported.
604+
if ((int)__response.StatusCode == 415)
605+
{
606+
string? __content_415 = null;
607+
global::System.Exception? __exception_415 = null;
608+
global::Apify.ErrorResponse? __value_415 = null;
609+
try
610+
{
611+
if (__effectiveReadResponseAsString)
612+
{
613+
__content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
614+
__value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext);
615+
}
616+
else
617+
{
618+
__content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
619+
620+
__value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext);
621+
}
622+
}
623+
catch (global::System.Exception __ex)
624+
{
625+
__exception_415 = __ex;
626+
}
627+
628+
629+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
630+
statusCode: __response.StatusCode,
631+
message: __content_415 ?? __response.ReasonPhrase ?? string.Empty,
632+
innerException: __exception_415,
633+
responseBody: __content_415,
634+
responseObject: __value_415,
635+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
636+
__response.Headers,
637+
h => h.Key,
638+
h => h.Value));
639+
}
566640
// Too many requests - rate limit exceeded.
567641
if ((int)__response.StatusCode == 429)
568642
{

src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDatasetClient.ActorTaskRunsLastDatasetItemsPost.g.cs

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,80 @@ partial void ProcessActorTaskRunsLastDatasetItemsPostResponseContent(
563563
h => h.Key,
564564
h => h.Value));
565565
}
566+
// Payload too large - the request body exceeds the size limit.
567+
if ((int)__response.StatusCode == 413)
568+
{
569+
string? __content_413 = null;
570+
global::System.Exception? __exception_413 = null;
571+
global::Apify.ErrorResponse? __value_413 = null;
572+
try
573+
{
574+
if (__effectiveReadResponseAsString)
575+
{
576+
__content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
577+
__value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext);
578+
}
579+
else
580+
{
581+
__content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
582+
583+
__value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext);
584+
}
585+
}
586+
catch (global::System.Exception __ex)
587+
{
588+
__exception_413 = __ex;
589+
}
590+
591+
592+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
593+
statusCode: __response.StatusCode,
594+
message: __content_413 ?? __response.ReasonPhrase ?? string.Empty,
595+
innerException: __exception_413,
596+
responseBody: __content_413,
597+
responseObject: __value_413,
598+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
599+
__response.Headers,
600+
h => h.Key,
601+
h => h.Value));
602+
}
603+
// Unsupported media type - the Content-Encoding of the request is not supported.
604+
if ((int)__response.StatusCode == 415)
605+
{
606+
string? __content_415 = null;
607+
global::System.Exception? __exception_415 = null;
608+
global::Apify.ErrorResponse? __value_415 = null;
609+
try
610+
{
611+
if (__effectiveReadResponseAsString)
612+
{
613+
__content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
614+
__value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext);
615+
}
616+
else
617+
{
618+
__content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
619+
620+
__value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext);
621+
}
622+
}
623+
catch (global::System.Exception __ex)
624+
{
625+
__exception_415 = __ex;
626+
}
627+
628+
629+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
630+
statusCode: __response.StatusCode,
631+
message: __content_415 ?? __response.ReasonPhrase ?? string.Empty,
632+
innerException: __exception_415,
633+
responseBody: __content_415,
634+
responseObject: __value_415,
635+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
636+
__response.Headers,
637+
h => h.Key,
638+
h => h.Value));
639+
}
566640
// Too many requests - rate limit exceeded.
567641
if ((int)__response.StatusCode == 429)
568642
{

src/libs/Apify/Generated/Apify.Models.ErrorType.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,10 @@ public enum ErrorType
507507
/// <summary>
508508
///
509509
/// </summary>
510+
FullPermissionActorBlockedForAdmin,
511+
/// <summary>
512+
///
513+
/// </summary>
510514
FullPermissionActorNotApproved,
511515
/// <summary>
512516
///
@@ -1714,6 +1718,7 @@ public static string ToValueString(this ErrorType value)
17141718
ErrorType.ExpiredConferenceToken => "expired-conference-token",
17151719
ErrorType.FailedToChargeUser => "failed-to-charge-user",
17161720
ErrorType.FinalInvoiceNegative => "final-invoice-negative",
1721+
ErrorType.FullPermissionActorBlockedForAdmin => "full-permission-actor-blocked-for-admin",
17171722
ErrorType.FullPermissionActorNotApproved => "full-permission-actor-not-approved",
17181723
ErrorType.GithubBranchEmpty => "github-branch-empty",
17191724
ErrorType.GithubIssueAlreadyExists => "github-issue-already-exists",
@@ -2116,6 +2121,7 @@ public static string ToValueString(this ErrorType value)
21162121
"expired-conference-token" => ErrorType.ExpiredConferenceToken,
21172122
"failed-to-charge-user" => ErrorType.FailedToChargeUser,
21182123
"final-invoice-negative" => ErrorType.FinalInvoiceNegative,
2124+
"full-permission-actor-blocked-for-admin" => ErrorType.FullPermissionActorBlockedForAdmin,
21192125
"full-permission-actor-not-approved" => ErrorType.FullPermissionActorNotApproved,
21202126
"github-branch-empty" => ErrorType.GithubBranchEmpty,
21212127
"github-issue-already-exists" => ErrorType.GithubIssueAlreadyExists,

src/libs/Apify/Generated/Apify.Models.WebhookDispatchEventData.g.cs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,19 @@ public sealed partial class WebhookDispatchEventData
1919
///
2020
/// </summary>
2121
[global::System.Text.Json.Serialization.JsonPropertyName("actorRunId")]
22-
[global::System.Text.Json.Serialization.JsonRequired]
23-
public required string ActorRunId { get; set; }
22+
public string? ActorRunId { get; set; }
23+
24+
/// <summary>
25+
///
26+
/// </summary>
27+
[global::System.Text.Json.Serialization.JsonPropertyName("actorBuildId")]
28+
public string? ActorBuildId { get; set; }
29+
30+
/// <summary>
31+
///
32+
/// </summary>
33+
[global::System.Text.Json.Serialization.JsonPropertyName("actorTaskId")]
34+
public string? ActorTaskId { get; set; }
2435

2536
/// <summary>
2637
/// Additional properties that are not explicitly defined in the schema
@@ -33,15 +44,21 @@ public sealed partial class WebhookDispatchEventData
3344
/// </summary>
3445
/// <param name="actorId"></param>
3546
/// <param name="actorRunId"></param>
47+
/// <param name="actorBuildId"></param>
48+
/// <param name="actorTaskId"></param>
3649
#if NET7_0_OR_GREATER
3750
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
3851
#endif
3952
public WebhookDispatchEventData(
4053
string actorId,
41-
string actorRunId)
54+
string? actorRunId,
55+
string? actorBuildId,
56+
string? actorTaskId)
4257
{
4358
this.ActorId = actorId ?? throw new global::System.ArgumentNullException(nameof(actorId));
44-
this.ActorRunId = actorRunId ?? throw new global::System.ArgumentNullException(nameof(actorRunId));
59+
this.ActorRunId = actorRunId;
60+
this.ActorBuildId = actorBuildId;
61+
this.ActorTaskId = actorTaskId;
4562
}
4663

4764
/// <summary>

0 commit comments

Comments
 (0)