diff --git a/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs index 187c7dcf..8ab78990 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs @@ -71,7 +71,7 @@ internal static partial class ActorsActorPutCommandApiCommand Description = @"A list of categories that best define the Actor. Reflected in Apify Store's search and filtering options.", }; - private static Option?> TaggedBuilds { get; } = new( + private static Option?> TaggedBuilds { get; } = new( name: @"--tagged-builds") { Description = @"A dictionary that maps tag names to specific builds. For details, see [Update build tags](#update-build-tags).", diff --git a/src/cli/Apify.CLI/Commands/ScheduleCreateOptionSet.g.cs b/src/cli/Apify.CLI/Commands/CreateOrUpdateScheduleRequestOptionSet.g.cs similarity index 88% rename from src/cli/Apify.CLI/Commands/ScheduleCreateOptionSet.g.cs rename to src/cli/Apify.CLI/Commands/CreateOrUpdateScheduleRequestOptionSet.g.cs index 47915d53..c7a59b2a 100644 --- a/src/cli/Apify.CLI/Commands/ScheduleCreateOptionSet.g.cs +++ b/src/cli/Apify.CLI/Commands/CreateOrUpdateScheduleRequestOptionSet.g.cs @@ -4,7 +4,7 @@ namespace Apify.CLI.Commands; -internal sealed record ScheduleCreateOptionSet( +internal sealed record CreateOrUpdateScheduleRequestOptionSet( Option NameOption, Option IsEnabled, Option IsExclusive, @@ -13,12 +13,12 @@ internal sealed record ScheduleCreateOptionSet( Option DescriptionOption, Option Title) { - public static ScheduleCreateOptionSet Create(string? prefix = null) + public static CreateOrUpdateScheduleRequestOptionSet Create(string? prefix = null) { var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) ? string.Empty : prefix.Trim().Trim('-') + "-"; - return new ScheduleCreateOptionSet( + return new CreateOrUpdateScheduleRequestOptionSet( NameOption: new Option($"--{normalizedPrefix}name") { Description = @"", diff --git a/src/cli/Apify.CLI/Commands/DefaultKeyValueStoreActorRunKeyValueStorePutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/DefaultKeyValueStoreActorRunKeyValueStorePutCommandApiCommand.g.cs index 85120834..b439ad75 100644 --- a/src/cli/Apify.CLI/Commands/DefaultKeyValueStoreActorRunKeyValueStorePutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/DefaultKeyValueStoreActorRunKeyValueStorePutCommandApiCommand.g.cs @@ -12,7 +12,7 @@ internal static partial class DefaultKeyValueStoreActorRunKeyValueStorePutComman { Description = @"Actor run ID.", }; - private static readonly UpdateStoreRequestOptionSet UpdateStoreRequestOptionSetOptions = UpdateStoreRequestOptionSet.Create(); + private static readonly UpdateKeyValueStoreRequestOptionSet UpdateKeyValueStoreRequestOptionSetOptions = UpdateKeyValueStoreRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -61,8 +61,8 @@ passed in the PUT payload. This endpoint is a shortcut for getting the run's `defaultKeyValueStoreId` and then using the [Update store](/api/v2/key-value-store-put) endpoint. "); - command.Arguments.Add(RunId); command.Options.Add(UpdateStoreRequestOptionSetOptions.NameOption); - command.Options.Add(UpdateStoreRequestOptionSetOptions.GeneralAccess); + command.Arguments.Add(RunId); command.Options.Add(UpdateKeyValueStoreRequestOptionSetOptions.NameOption); + command.Options.Add(UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -81,15 +81,15 @@ [Update store](/api/v2/key-value-store-put) endpoint. command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, RequestFile, global::Apify.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); - var runId = parseResult.GetRequiredValue(RunId); var name = CliRuntime.WasSpecified(parseResult, UpdateStoreRequestOptionSetOptions.NameOption) ? parseResult.GetValue(UpdateStoreRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); - var generalAccess = CliRuntime.WasSpecified(parseResult, UpdateStoreRequestOptionSetOptions.GeneralAccess) ? parseResult.GetValue(UpdateStoreRequestOptionSetOptions.GeneralAccess) : (__requestBase is { } __GeneralAccessBaseValue ? __GeneralAccessBaseValue.GeneralAccess : default); + var runId = parseResult.GetRequiredValue(RunId); var name = CliRuntime.WasSpecified(parseResult, UpdateKeyValueStoreRequestOptionSetOptions.NameOption) ? parseResult.GetValue(UpdateKeyValueStoreRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var generalAccess = CliRuntime.WasSpecified(parseResult, UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess) ? parseResult.GetValue(UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess) : (__requestBase is { } __GeneralAccessBaseValue ? __GeneralAccessBaseValue.GeneralAccess : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueHeadGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueHeadGetCommandApiCommand.g.cs index 6ea9748c..662311ab 100644 --- a/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueHeadGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueHeadGetCommandApiCommand.g.cs @@ -32,7 +32,7 @@ determine whether the queue was accessed by multiple clients. If ", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.HeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.RequestQueueHeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -48,7 +48,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Head return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.HeadResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.RequestQueueHeadResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueHeadLockPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueHeadLockPostCommandApiCommand.g.cs index f2a4abe2..694da2fc 100644 --- a/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueHeadLockPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueHeadLockPostCommandApiCommand.g.cs @@ -39,7 +39,7 @@ determine whether the queue was accessed by multiple clients. If ", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.HeadAndLockResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.LockedRequestQueueHeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -55,7 +55,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Head return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.HeadAndLockResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.LockedRequestQueueHeadResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs index d0e79516..676bd7b0 100644 --- a/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/DefaultRequestQueueActorRunRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs @@ -103,7 +103,7 @@ await CliRuntime.RunAsync(async () => var runId = parseResult.GetRequiredValue(RunId); var contentType = parseResult.GetRequiredValue(ContentType); var clientKey = parseResult.GetValue(ClientKey); - var request = await CliRuntime.ReadRequestAsync>( + var request = await CliRuntime.ReadRequestAsync>( parseResult, Input, RequestJson, diff --git a/src/cli/Apify.CLI/Commands/LastActorRunSDefaultKeyValueStoreActorRunsLastKeyValueStorePutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/LastActorRunSDefaultKeyValueStoreActorRunsLastKeyValueStorePutCommandApiCommand.g.cs index a77c16dc..5eda1bdb 100644 --- a/src/cli/Apify.CLI/Commands/LastActorRunSDefaultKeyValueStoreActorRunsLastKeyValueStorePutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/LastActorRunSDefaultKeyValueStoreActorRunsLastKeyValueStorePutCommandApiCommand.g.cs @@ -24,7 +24,7 @@ internal static partial class LastActorRunSDefaultKeyValueStoreActorRunsLastKeyV { Description = @"Filter for the run origin, i.e. the means by which the run was started.", }; - private static readonly UpdateStoreRequestOptionSet UpdateStoreRequestOptionSetOptions = UpdateStoreRequestOptionSet.Create(); + private static readonly UpdateKeyValueStoreRequestOptionSet UpdateKeyValueStoreRequestOptionSetOptions = UpdateKeyValueStoreRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -75,8 +75,8 @@ [Update store](/api/v2/key-value-store-put) endpoint. "); command.Arguments.Add(ActorId); command.Options.Add(Status); - command.Options.Add(Origin); command.Options.Add(UpdateStoreRequestOptionSetOptions.NameOption); - command.Options.Add(UpdateStoreRequestOptionSetOptions.GeneralAccess); + command.Options.Add(Origin); command.Options.Add(UpdateKeyValueStoreRequestOptionSetOptions.NameOption); + command.Options.Add(UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -95,7 +95,7 @@ [Update store](/api/v2/key-value-store-put) endpoint. command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, @@ -104,8 +104,8 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var actorId = parseResult.GetRequiredValue(ActorId); var status = parseResult.GetValue(Status); - var origin = parseResult.GetValue(Origin); var name = CliRuntime.WasSpecified(parseResult, UpdateStoreRequestOptionSetOptions.NameOption) ? parseResult.GetValue(UpdateStoreRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); - var generalAccess = CliRuntime.WasSpecified(parseResult, UpdateStoreRequestOptionSetOptions.GeneralAccess) ? parseResult.GetValue(UpdateStoreRequestOptionSetOptions.GeneralAccess) : (__requestBase is { } __GeneralAccessBaseValue ? __GeneralAccessBaseValue.GeneralAccess : default); + var origin = parseResult.GetValue(Origin); var name = CliRuntime.WasSpecified(parseResult, UpdateKeyValueStoreRequestOptionSetOptions.NameOption) ? parseResult.GetValue(UpdateKeyValueStoreRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var generalAccess = CliRuntime.WasSpecified(parseResult, UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess) ? parseResult.GetValue(UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess) : (__requestBase is { } __GeneralAccessBaseValue ? __GeneralAccessBaseValue.GeneralAccess : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueHeadGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueHeadGetCommandApiCommand.g.cs index 6d19b80c..0912b1f9 100644 --- a/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueHeadGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueHeadGetCommandApiCommand.g.cs @@ -44,7 +44,7 @@ determine whether the queue was accessed by multiple clients. If ", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.HeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.RequestQueueHeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -60,7 +60,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Head return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.HeadResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.RequestQueueHeadResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueHeadLockPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueHeadLockPostCommandApiCommand.g.cs index f84667af..257c9de3 100644 --- a/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueHeadLockPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueHeadLockPostCommandApiCommand.g.cs @@ -51,7 +51,7 @@ determine whether the queue was accessed by multiple clients. If ", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.HeadAndLockResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.LockedRequestQueueHeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -67,7 +67,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Head return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.HeadAndLockResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.LockedRequestQueueHeadResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs index 2f02e9e9..4a397c0a 100644 --- a/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/LastActorRunSDefaultRequestQueueActorRunsLastRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs @@ -119,7 +119,7 @@ await CliRuntime.RunAsync(async () => var origin = parseResult.GetValue(Origin); var contentType = parseResult.GetRequiredValue(ContentType); var clientKey = parseResult.GetValue(ClientKey); - var request = await CliRuntime.ReadRequestAsync>( + var request = await CliRuntime.ReadRequestAsync>( parseResult, Input, RequestJson, diff --git a/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultKeyValueStoreActorTaskRunsLastKeyValueStorePutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultKeyValueStoreActorTaskRunsLastKeyValueStorePutCommandApiCommand.g.cs index de2782f1..cf9c02a5 100644 --- a/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultKeyValueStoreActorTaskRunsLastKeyValueStorePutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultKeyValueStoreActorTaskRunsLastKeyValueStorePutCommandApiCommand.g.cs @@ -24,7 +24,7 @@ internal static partial class LastActorTaskRunSDefaultKeyValueStoreActorTaskRuns { Description = @"Filter for the run origin, i.e. the means by which the run was started.", }; - private static readonly UpdateStoreRequestOptionSet UpdateStoreRequestOptionSetOptions = UpdateStoreRequestOptionSet.Create(); + private static readonly UpdateKeyValueStoreRequestOptionSet UpdateKeyValueStoreRequestOptionSetOptions = UpdateKeyValueStoreRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -74,8 +74,8 @@ [Update store](/api/v2/key-value-store-put) endpoint. "); command.Arguments.Add(ActorTaskId); command.Options.Add(Status); - command.Options.Add(Origin); command.Options.Add(UpdateStoreRequestOptionSetOptions.NameOption); - command.Options.Add(UpdateStoreRequestOptionSetOptions.GeneralAccess); + command.Options.Add(Origin); command.Options.Add(UpdateKeyValueStoreRequestOptionSetOptions.NameOption); + command.Options.Add(UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -94,7 +94,7 @@ [Update store](/api/v2/key-value-store-put) endpoint. command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, @@ -103,8 +103,8 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var actorTaskId = parseResult.GetRequiredValue(ActorTaskId); var status = parseResult.GetValue(Status); - var origin = parseResult.GetValue(Origin); var name = CliRuntime.WasSpecified(parseResult, UpdateStoreRequestOptionSetOptions.NameOption) ? parseResult.GetValue(UpdateStoreRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); - var generalAccess = CliRuntime.WasSpecified(parseResult, UpdateStoreRequestOptionSetOptions.GeneralAccess) ? parseResult.GetValue(UpdateStoreRequestOptionSetOptions.GeneralAccess) : (__requestBase is { } __GeneralAccessBaseValue ? __GeneralAccessBaseValue.GeneralAccess : default); + var origin = parseResult.GetValue(Origin); var name = CliRuntime.WasSpecified(parseResult, UpdateKeyValueStoreRequestOptionSetOptions.NameOption) ? parseResult.GetValue(UpdateKeyValueStoreRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var generalAccess = CliRuntime.WasSpecified(parseResult, UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess) ? parseResult.GetValue(UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess) : (__requestBase is { } __GeneralAccessBaseValue ? __GeneralAccessBaseValue.GeneralAccess : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueHeadGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueHeadGetCommandApiCommand.g.cs index 86e5dedd..61ad6a92 100644 --- a/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueHeadGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueHeadGetCommandApiCommand.g.cs @@ -44,7 +44,7 @@ determine whether the queue was accessed by multiple clients. If ", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.HeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.RequestQueueHeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -60,7 +60,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Head return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.HeadResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.RequestQueueHeadResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueHeadLockPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueHeadLockPostCommandApiCommand.g.cs index 8851af47..c68024c8 100644 --- a/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueHeadLockPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueHeadLockPostCommandApiCommand.g.cs @@ -51,7 +51,7 @@ determine whether the queue was accessed by multiple clients. If ", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.HeadAndLockResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.LockedRequestQueueHeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -67,7 +67,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Head return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.HeadAndLockResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.LockedRequestQueueHeadResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs index db6a5603..30194781 100644 --- a/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/LastActorTaskRunSDefaultRequestQueueActorTaskRunsLastRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs @@ -119,7 +119,7 @@ await CliRuntime.RunAsync(async () => var origin = parseResult.GetValue(Origin); var contentType = parseResult.GetRequiredValue(ContentType); var clientKey = parseResult.GetValue(ClientKey); - var request = await CliRuntime.ReadRequestAsync>( + var request = await CliRuntime.ReadRequestAsync>( parseResult, Input, RequestJson, diff --git a/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs index 4d3072d4..5641f1a3 100644 --- a/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs @@ -18,7 +18,7 @@ internal static partial class SchedulesSchedulePutCommandApiCommand { Description = @"", }; - private static readonly ScheduleCreateOptionSet ScheduleCreateOptionSetOptions = ScheduleCreateOptionSet.Create(); + private static readonly CreateOrUpdateScheduleRequestOptionSet CreateOrUpdateScheduleRequestOptionSetOptions = CreateOrUpdateScheduleRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -76,13 +76,13 @@ [Get schedule](#/reference/schedules/schedule-object/get-schedule) endpoint. info](#/introduction/authentication)). "); command.Arguments.Add(ScheduleId); - command.Options.Add(Actions); command.Options.Add(ScheduleCreateOptionSetOptions.NameOption); - command.Options.Add(ScheduleCreateOptionSetOptions.IsEnabled); - command.Options.Add(ScheduleCreateOptionSetOptions.IsExclusive); - command.Options.Add(ScheduleCreateOptionSetOptions.CronExpression); - command.Options.Add(ScheduleCreateOptionSetOptions.Timezone); - command.Options.Add(ScheduleCreateOptionSetOptions.DescriptionOption); - command.Options.Add(ScheduleCreateOptionSetOptions.Title); + command.Options.Add(Actions); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.NameOption); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.IsEnabled); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.IsExclusive); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.CronExpression); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Timezone); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Title); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -101,7 +101,7 @@ [Get schedule](#/reference/schedules/schedule-object/get-schedule) endpoint. command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, @@ -109,13 +109,13 @@ await CliRuntime.RunAsync(async () => global::Apify.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); var scheduleId = parseResult.GetRequiredValue(ScheduleId); - var actions = CliRuntime.WasSpecified(parseResult, Actions) ? parseResult.GetValue(Actions) : (__requestBase is { } __ActionsBaseValue ? __ActionsBaseValue.Actions : default); var name = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.NameOption) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); - var isEnabled = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.IsEnabled) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.IsEnabled) : (__requestBase is { } __IsEnabledBaseValue ? __IsEnabledBaseValue.IsEnabled : default); - var isExclusive = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.IsExclusive) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.IsExclusive) : (__requestBase is { } __IsExclusiveBaseValue ? __IsExclusiveBaseValue.IsExclusive : default); - var cronExpression = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.CronExpression) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.CronExpression) : (__requestBase is { } __CronExpressionBaseValue ? __CronExpressionBaseValue.CronExpression : default); - var timezone = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.Timezone) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.Timezone) : (__requestBase is { } __TimezoneBaseValue ? __TimezoneBaseValue.Timezone : default); - var description = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.DescriptionOption) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); - var title = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.Title) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.Title) : (__requestBase is { } __TitleBaseValue ? __TitleBaseValue.Title : default); + var actions = CliRuntime.WasSpecified(parseResult, Actions) ? parseResult.GetValue(Actions) : (__requestBase is { } __ActionsBaseValue ? __ActionsBaseValue.Actions : default); var name = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.NameOption) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var isEnabled = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.IsEnabled) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.IsEnabled) : (__requestBase is { } __IsEnabledBaseValue ? __IsEnabledBaseValue.IsEnabled : default); + var isExclusive = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.IsExclusive) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.IsExclusive) : (__requestBase is { } __IsExclusiveBaseValue ? __IsExclusiveBaseValue.IsExclusive : default); + var cronExpression = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.CronExpression) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.CronExpression) : (__requestBase is { } __CronExpressionBaseValue ? __CronExpressionBaseValue.CronExpression : default); + var timezone = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.Timezone) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.Timezone) : (__requestBase is { } __TimezoneBaseValue ? __TimezoneBaseValue.Timezone : default); + var description = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); + var title = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.Title) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.Title) : (__requestBase is { } __TitleBaseValue ? __TitleBaseValue.Title : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs index f07acdb0..8ff99f16 100644 --- a/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs @@ -12,7 +12,7 @@ internal static partial class SchedulesSchedulesPostCommandApiCommand { Description = @"", }; - private static readonly ScheduleCreateOptionSet ScheduleCreateOptionSetOptions = ScheduleCreateOptionSet.Create(); + private static readonly CreateOrUpdateScheduleRequestOptionSet CreateOrUpdateScheduleRequestOptionSetOptions = CreateOrUpdateScheduleRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -64,13 +64,13 @@ as JSON in the payload. The response is the created schedule object. request's `Authorization` header, rather than the URL. ([More info](#/introduction/authentication)). "); - command.Options.Add(Actions); command.Options.Add(ScheduleCreateOptionSetOptions.NameOption); - command.Options.Add(ScheduleCreateOptionSetOptions.IsEnabled); - command.Options.Add(ScheduleCreateOptionSetOptions.IsExclusive); - command.Options.Add(ScheduleCreateOptionSetOptions.CronExpression); - command.Options.Add(ScheduleCreateOptionSetOptions.Timezone); - command.Options.Add(ScheduleCreateOptionSetOptions.DescriptionOption); - command.Options.Add(ScheduleCreateOptionSetOptions.Title); + command.Options.Add(Actions); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.NameOption); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.IsEnabled); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.IsExclusive); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.CronExpression); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Timezone); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption); + command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.Title); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -89,20 +89,20 @@ as JSON in the payload. The response is the created schedule object. command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, RequestFile, global::Apify.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); - var actions = CliRuntime.WasSpecified(parseResult, Actions) ? parseResult.GetValue(Actions) : (__requestBase is { } __ActionsBaseValue ? __ActionsBaseValue.Actions : default); var name = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.NameOption) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); - var isEnabled = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.IsEnabled) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.IsEnabled) : (__requestBase is { } __IsEnabledBaseValue ? __IsEnabledBaseValue.IsEnabled : default); - var isExclusive = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.IsExclusive) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.IsExclusive) : (__requestBase is { } __IsExclusiveBaseValue ? __IsExclusiveBaseValue.IsExclusive : default); - var cronExpression = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.CronExpression) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.CronExpression) : (__requestBase is { } __CronExpressionBaseValue ? __CronExpressionBaseValue.CronExpression : default); - var timezone = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.Timezone) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.Timezone) : (__requestBase is { } __TimezoneBaseValue ? __TimezoneBaseValue.Timezone : default); - var description = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.DescriptionOption) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); - var title = CliRuntime.WasSpecified(parseResult, ScheduleCreateOptionSetOptions.Title) ? parseResult.GetValue(ScheduleCreateOptionSetOptions.Title) : (__requestBase is { } __TitleBaseValue ? __TitleBaseValue.Title : default); + var actions = CliRuntime.WasSpecified(parseResult, Actions) ? parseResult.GetValue(Actions) : (__requestBase is { } __ActionsBaseValue ? __ActionsBaseValue.Actions : default); var name = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.NameOption) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var isEnabled = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.IsEnabled) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.IsEnabled) : (__requestBase is { } __IsEnabledBaseValue ? __IsEnabledBaseValue.IsEnabled : default); + var isExclusive = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.IsExclusive) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.IsExclusive) : (__requestBase is { } __IsExclusiveBaseValue ? __IsExclusiveBaseValue.IsExclusive : default); + var cronExpression = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.CronExpression) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.CronExpression) : (__requestBase is { } __CronExpressionBaseValue ? __CronExpressionBaseValue.CronExpression : default); + var timezone = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.Timezone) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.Timezone) : (__requestBase is { } __TimezoneBaseValue ? __TimezoneBaseValue.Timezone : default); + var description = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); + var title = CliRuntime.WasSpecified(parseResult, CreateOrUpdateScheduleRequestOptionSetOptions.Title) ? parseResult.GetValue(CreateOrUpdateScheduleRequestOptionSetOptions.Title) : (__requestBase is { } __TitleBaseValue ? __TitleBaseValue.Title : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/StorageKeyValueStoresKeyValueStorePutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/StorageKeyValueStoresKeyValueStorePutCommandApiCommand.g.cs index c7f84bc6..350bf574 100644 --- a/src/cli/Apify.CLI/Commands/StorageKeyValueStoresKeyValueStorePutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/StorageKeyValueStoresKeyValueStorePutCommandApiCommand.g.cs @@ -12,7 +12,7 @@ internal static partial class StorageKeyValueStoresKeyValueStorePutCommandApiCom { Description = @"Key-value store ID or `username~store-name`.", }; - private static readonly UpdateStoreRequestOptionSet UpdateStoreRequestOptionSetOptions = UpdateStoreRequestOptionSet.Create(); + private static readonly UpdateKeyValueStoreRequestOptionSet UpdateKeyValueStoreRequestOptionSetOptions = UpdateKeyValueStoreRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -61,8 +61,8 @@ passed in the PUT payload. The response is the updated key-value store object, as returned by the [Get store](#/reference/key-value-stores/store-object/get-store) API endpoint. "); - command.Arguments.Add(StoreId); command.Options.Add(UpdateStoreRequestOptionSetOptions.NameOption); - command.Options.Add(UpdateStoreRequestOptionSetOptions.GeneralAccess); + command.Arguments.Add(StoreId); command.Options.Add(UpdateKeyValueStoreRequestOptionSetOptions.NameOption); + command.Options.Add(UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -81,15 +81,15 @@ passed in the PUT payload. command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, RequestFile, global::Apify.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); - var storeId = parseResult.GetRequiredValue(StoreId); var name = CliRuntime.WasSpecified(parseResult, UpdateStoreRequestOptionSetOptions.NameOption) ? parseResult.GetValue(UpdateStoreRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); - var generalAccess = CliRuntime.WasSpecified(parseResult, UpdateStoreRequestOptionSetOptions.GeneralAccess) ? parseResult.GetValue(UpdateStoreRequestOptionSetOptions.GeneralAccess) : (__requestBase is { } __GeneralAccessBaseValue ? __GeneralAccessBaseValue.GeneralAccess : default); + var storeId = parseResult.GetRequiredValue(StoreId); var name = CliRuntime.WasSpecified(parseResult, UpdateKeyValueStoreRequestOptionSetOptions.NameOption) ? parseResult.GetValue(UpdateKeyValueStoreRequestOptionSetOptions.NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var generalAccess = CliRuntime.WasSpecified(parseResult, UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess) ? parseResult.GetValue(UpdateKeyValueStoreRequestOptionSetOptions.GeneralAccess) : (__requestBase is { } __GeneralAccessBaseValue ? __GeneralAccessBaseValue.GeneralAccess : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs index 06ca9845..dd417c3e 100644 --- a/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestQueueRequestsBatchDeleteCommandApiCommand.g.cs @@ -110,7 +110,7 @@ await CliRuntime.RunAsync(async () => var queueId = parseResult.GetRequiredValue(QueueId); var contentType = parseResult.GetRequiredValue(ContentType); var clientKey = parseResult.GetValue(ClientKey); - var request = await CliRuntime.ReadRequestAsync>( + var request = await CliRuntime.ReadRequestAsync>( parseResult, Input, RequestJson, diff --git a/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestsLocksRequestQueueHeadGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestsLocksRequestQueueHeadGetCommandApiCommand.g.cs index 42bc29ba..8d258603 100644 --- a/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestsLocksRequestQueueHeadGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestsLocksRequestQueueHeadGetCommandApiCommand.g.cs @@ -32,7 +32,7 @@ determine whether the queue was accessed by multiple clients. If ", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.HeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.RequestQueueHeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -48,7 +48,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Head return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.HeadResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.RequestQueueHeadResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestsLocksRequestQueueHeadLockPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestsLocksRequestQueueHeadLockPostCommandApiCommand.g.cs index a7c14400..554cf439 100644 --- a/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestsLocksRequestQueueHeadLockPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/StorageRequestQueuesRequestsLocksRequestQueueHeadLockPostCommandApiCommand.g.cs @@ -39,7 +39,7 @@ determine whether the queue was accessed by multiple clients. If ", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.HeadAndLockResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.LockedRequestQueueHeadResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -55,7 +55,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Head return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.HeadAndLockResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.LockedRequestQueueHeadResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/StoreStoreGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/StoreStoreGetCommandApiCommand.g.cs index d90a591b..69725d74 100644 --- a/src/cli/Apify.CLI/Commands/StoreStoreGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/StoreStoreGetCommandApiCommand.g.cs @@ -81,7 +81,7 @@ complete response including image URLs and all fields. Use `agent` bypass this safety filtering and include all Actors in the results. "); - private static string FormatResponse(ParseResult parseResult, global::Apify.ListOfActorsInStoreResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.ListOfStoreActorsResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -97,7 +97,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.List return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.ListOfActorsInStoreResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.ListOfStoreActorsResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/UpdateStoreRequestOptionSet.g.cs b/src/cli/Apify.CLI/Commands/UpdateKeyValueStoreRequestOptionSet.g.cs similarity index 78% rename from src/cli/Apify.CLI/Commands/UpdateStoreRequestOptionSet.g.cs rename to src/cli/Apify.CLI/Commands/UpdateKeyValueStoreRequestOptionSet.g.cs index 0b2707fb..f0448be9 100644 --- a/src/cli/Apify.CLI/Commands/UpdateStoreRequestOptionSet.g.cs +++ b/src/cli/Apify.CLI/Commands/UpdateKeyValueStoreRequestOptionSet.g.cs @@ -4,16 +4,16 @@ namespace Apify.CLI.Commands; -internal sealed record UpdateStoreRequestOptionSet( +internal sealed record UpdateKeyValueStoreRequestOptionSet( Option NameOption, Option GeneralAccess) { - public static UpdateStoreRequestOptionSet Create(string? prefix = null) + public static UpdateKeyValueStoreRequestOptionSet Create(string? prefix = null) { var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) ? string.Empty : prefix.Trim().Trim('-') + "-"; - return new UpdateStoreRequestOptionSet( + return new UpdateKeyValueStoreRequestOptionSet( NameOption: new Option($"--{normalizedPrefix}name") { Description = @"", diff --git a/src/cli/Apify.CLI/Commands/UsersUsageUsersMeLimitsGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUsageUsersMeLimitsGetCommandApiCommand.g.cs index 8499d219..b8f967bb 100644 --- a/src/cli/Apify.CLI/Commands/UsersUsageUsersMeLimitsGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/UsersUsageUsersMeLimitsGetCommandApiCommand.g.cs @@ -9,7 +9,7 @@ internal static partial class UsersUsageUsersMeLimitsGetCommandApiCommand { - private static string FormatResponse(ParseResult parseResult, global::Apify.LimitsResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.AccountLimitsResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -25,7 +25,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Limi return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.LimitsResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.AccountLimitsResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/UsersUserGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUserGetCommandApiCommand.g.cs index bc917d9a..672e893a 100644 --- a/src/cli/Apify.CLI/Commands/UsersUserGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/UsersUserGetCommandApiCommand.g.cs @@ -13,7 +13,7 @@ internal static partial class UsersUserGetCommandApiCommand Description = @"User ID or username.", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.PublicUserDataResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.UserPublicInfoResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -29,7 +29,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Publ return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.PublicUserDataResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.UserPublicInfoResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/UsersUsersMeGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUsersMeGetCommandApiCommand.g.cs index 6628a40a..120813bc 100644 --- a/src/cli/Apify.CLI/Commands/UsersUsersMeGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/UsersUsersMeGetCommandApiCommand.g.cs @@ -9,7 +9,7 @@ internal static partial class UsersUsersMeGetCommandApiCommand { - private static string FormatResponse(ParseResult parseResult, global::Apify.PrivateUserDataResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.UserPrivateInfoResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -25,7 +25,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Priv return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.PrivateUserDataResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.UserPrivateInfoResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookPutCommandApiCommand.g.cs index 863cba92..3d0e5c3e 100644 --- a/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookPutCommandApiCommand.g.cs @@ -146,7 +146,7 @@ [Get webhook](#/reference/webhooks/webhook-object/get-webhook) endpoint. command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, diff --git a/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookTestPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookTestPostCommandApiCommand.g.cs index e4a037b9..44c12732 100644 --- a/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookTestPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookTestPostCommandApiCommand.g.cs @@ -13,7 +13,7 @@ internal static partial class WebhooksWebhooksWebhookTestPostCommandApiCommand Description = @"Webhook ID.", }; - private static string FormatResponse(ParseResult parseResult, global::Apify.TestWebhookResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.WebhookDispatchResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -29,7 +29,7 @@ private static string FormatResponse(ParseResult parseResult, global::Apify.Test return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.TestWebhookResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.WebhookDispatchResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhooksPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhooksPostCommandApiCommand.g.cs index 9f00dbe1..ad79e699 100644 --- a/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhooksPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhooksPostCommandApiCommand.g.cs @@ -184,7 +184,7 @@ HTTP header. command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( parseResult, Input, RequestJson, diff --git a/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs index 3113cf99..50e01752 100644 --- a/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs @@ -29,11 +29,11 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus), TypeInfoPropertyName = "ActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildsMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildMeta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuilds), TypeInfoPropertyName = "ListOfBuilds2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuildsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuildsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildOptions))] @@ -57,7 +57,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuilds?), TypeInfoPropertyName = "NullableListOfBuilds2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf?), TypeInfoPropertyName = "NullableOneOfStringInt642")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ActorBuildsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { diff --git a/src/libs/Apify/Generated/Apify.ActorRuns.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorRuns.JsonSerializerContext.g.cs index 8abfcc5d..5caeb138 100644 --- a/src/libs/Apify/Generated/Apify.ActorRuns.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorRuns.JsonSerializerContext.g.cs @@ -47,24 +47,24 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus), TypeInfoPropertyName = "ActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRuns), TypeInfoPropertyName = "ListOfRuns2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRunsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRunsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRunRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ChargeRunRequest))] @@ -88,8 +88,8 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf?), TypeInfoPropertyName = "NullableAllOfUpdateRunRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ActorRunsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.ActorTasks.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorTasks.JsonSerializerContext.g.cs index 111ae4c9..17a561f3 100644 --- a/src/libs/Apify/Generated/Apify.ActorTasks.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorTasks.JsonSerializerContext.g.cs @@ -48,32 +48,32 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookEventType), TypeInfoPropertyName = "WebhookEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookCondition))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ExampleWebhookDispatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookLastDispatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus), TypeInfoPropertyName = "ActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunShort))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunListItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfTasks), TypeInfoPropertyName = "ListOfTasks2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfTasksVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfTasksResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskInput))] @@ -84,7 +84,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Task))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateTaskRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Webhook))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfCreateTaskRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskGetResponse))] @@ -92,7 +92,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskWebhooksGetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfPaginationResponseActorTaskWebhooksGetResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskWebhooksGetResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsGetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfPaginationResponseActorTaskRunsGetResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsGetResponseData))] @@ -122,12 +122,12 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf?), TypeInfoPropertyName = "NullableAllOfPaginationResponseActorTaskRunsGetResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ActorTasksSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs index 32a9421b..7b1b67b4 100644 --- a/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs @@ -20,12 +20,12 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorStatsPublicActorRunStats30Days))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActors), TypeInfoPropertyName = "ListOfActors2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] @@ -69,14 +69,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaggedBuildInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaggedBuilds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorNotice), TypeInfoPropertyName = "ActorNotice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Actor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateOrUpdateVersionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildTag))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdatedBuildProperty))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateActorRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsGetSortBy), TypeInfoPropertyName = "ActorsGetSortBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorValidateInputPostResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] @@ -98,7 +98,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunPricingInfoDiscriminatorPricingModel?), TypeInfoPropertyName = "NullableActorRunPricingInfoDiscriminatorPricingModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorNotice?), TypeInfoPropertyName = "NullableActorNotice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsGetSortBy?), TypeInfoPropertyName = "NullableActorsGetSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs index efb5dda8..236f7c2a 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs @@ -29,11 +29,11 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus), TypeInfoPropertyName = "ActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildsMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildMeta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuilds), TypeInfoPropertyName = "ListOfBuilds2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuildsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuildsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildOptions))] @@ -57,7 +57,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuilds?), TypeInfoPropertyName = "NullableListOfBuilds2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf?), TypeInfoPropertyName = "NullableOneOfStringInt642")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ActorsActorBuildsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { diff --git a/src/libs/Apify/Generated/Apify.ActorsActorRuns.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorRuns.JsonSerializerContext.g.cs index b74b6318..ea7bee37 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorRuns.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorRuns.JsonSerializerContext.g.cs @@ -47,24 +47,24 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus), TypeInfoPropertyName = "ActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRuns), TypeInfoPropertyName = "ListOfRuns2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRunsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRunsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsRunsPostForcePermissionLevel), TypeInfoPropertyName = "ActorsRunsPostForcePermissionLevel2")] @@ -87,8 +87,8 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsRunsPostForcePermissionLevel?), TypeInfoPropertyName = "NullableActorsRunsPostForcePermissionLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ActorsActorRunsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs b/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs index 1e5ab232..1f606189 100644 --- a/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs @@ -932,7 +932,7 @@ partial void ProcessActorPutResponseContent( global::System.Collections.Generic.IList? pricingInfos = default, global::System.Collections.Generic.IList? categories = default, global::Apify.DefaultRunOptions? defaultRunOptions = default, - global::System.Collections.Generic.Dictionary? taggedBuilds = default, + global::System.Collections.Generic.Dictionary? taggedBuilds = default, global::Apify.ActorStandby? actorStandby = default, global::Apify.ExampleRunInput? exampleRunInput = default, bool? isDeprecated = default, diff --git a/src/libs/Apify/Generated/Apify.ActorsWebhookCollection.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsWebhookCollection.JsonSerializerContext.g.cs index 3d12bcab..a1cdef95 100644 --- a/src/libs/Apify/Generated/Apify.ActorsWebhookCollection.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsWebhookCollection.JsonSerializerContext.g.cs @@ -26,13 +26,13 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookEventType), TypeInfoPropertyName = "WebhookEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookCondition))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ExampleWebhookDispatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookLastDispatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooks), TypeInfoPropertyName = "ListOfWebhooks2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooksVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooksResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -43,7 +43,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus?), TypeInfoPropertyName = "NullableWebhookDispatchStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooks?), TypeInfoPropertyName = "NullableListOfWebhooks2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ActorsWebhookCollectionSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.DefaultDataset.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.DefaultDataset.JsonSerializerContext.g.cs index 18677a43..823771fd 100644 --- a/src/libs/Apify/Generated/Apify.DefaultDataset.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultDataset.JsonSerializerContext.g.cs @@ -26,17 +26,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Dataset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateDatasetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SchemaValidationErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetItemValidationError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidDatasetItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemResponseError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetFieldStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -45,7 +45,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunDatasetItemsPostContentEncoding), TypeInfoPropertyName = "ActorRunDatasetItemsPostContentEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] @@ -55,10 +55,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>?), TypeInfoPropertyName = "NullableOneOfPutItemsRequestIListPutItemsRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunDatasetItemsPostContentEncoding?), TypeInfoPropertyName = "NullableActorRunDatasetItemsPostContentEncoding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class DefaultDatasetSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -114,10 +114,10 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.DefaultDatasetClient.ActorRunDatasetItemsPost.g.cs b/src/libs/Apify/Generated/Apify.DefaultDatasetClient.ActorRunDatasetItemsPost.g.cs index d87a91e6..09a872f6 100644 --- a/src/libs/Apify/Generated/Apify.DefaultDatasetClient.ActorRunDatasetItemsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultDatasetClient.ActorRunDatasetItemsPost.g.cs @@ -382,19 +382,19 @@ partial void ProcessActorRunDatasetItemsPostResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::Apify.AnyOf? __value_400 = null; + global::Apify.AnyOf? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessActorRunDatasetItemsPostResponseContent( } - throw global::Apify.ApiException?>.Create( + throw global::Apify.ApiException?>.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, diff --git a/src/libs/Apify/Generated/Apify.DefaultKeyValueStore.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.DefaultKeyValueStore.JsonSerializerContext.g.cs index 575d00bb..8d312ae3 100644 --- a/src/libs/Apify/Generated/Apify.DefaultKeyValueStore.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultKeyValueStore.JsonSerializerContext.g.cs @@ -25,9 +25,9 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateKeyValueStoreRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeys))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] diff --git a/src/libs/Apify/Generated/Apify.DefaultKeyValueStoreClient.ActorRunKeyValueStorePut.g.cs b/src/libs/Apify/Generated/Apify.DefaultKeyValueStoreClient.ActorRunKeyValueStorePut.g.cs index d38d3e69..27626b85 100644 --- a/src/libs/Apify/Generated/Apify.DefaultKeyValueStoreClient.ActorRunKeyValueStorePut.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultKeyValueStoreClient.ActorRunKeyValueStorePut.g.cs @@ -28,12 +28,12 @@ public partial class DefaultKeyValueStoreClient partial void PrepareActorRunKeyValueStorePutArguments( global::System.Net.Http.HttpClient httpClient, ref string runId, - global::Apify.UpdateStoreRequest request); + global::Apify.UpdateKeyValueStoreRequest request); partial void PrepareActorRunKeyValueStorePutRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string runId, - global::Apify.UpdateStoreRequest request); + global::Apify.UpdateKeyValueStoreRequest request); partial void ProcessActorRunKeyValueStorePutResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -60,7 +60,7 @@ partial void ProcessActorRunKeyValueStorePutResponseContent( public async global::System.Threading.Tasks.Task ActorRunKeyValueStorePutAsync( string runId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -91,7 +91,7 @@ partial void ProcessActorRunKeyValueStorePutResponseContent( public async global::System.Threading.Tasks.Task> ActorRunKeyValueStorePutAsResponseAsync( string runId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -772,7 +772,7 @@ partial void ProcessActorRunKeyValueStorePutResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.UpdateStoreRequest + var __request = new global::Apify.UpdateKeyValueStoreRequest { Name = name, GeneralAccess = generalAccess, diff --git a/src/libs/Apify/Generated/Apify.DefaultRequestQueue.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.DefaultRequestQueue.JsonSerializerContext.g.cs index 89af9325..bc906f86 100644 --- a/src/libs/Apify/Generated/Apify.DefaultRequestQueue.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultRequestQueue.JsonSerializerContext.g.cs @@ -26,29 +26,29 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestQueueRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod), TypeInfoPropertyName = "HttpMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestUserData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestBase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request), TypeInfoPropertyName = "Request2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource), TypeInfoPropertyName = "RequestResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResourceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId), TypeInfoPropertyName = "RequestWithoutId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestRegistration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddRequestResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddedRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraft))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UnprocessedRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteById))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteByUniqueKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete), TypeInfoPropertyName = "RequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteById))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteByUniqueKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete), TypeInfoPropertyName = "RequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestById))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestByUniqueKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest), TypeInfoPropertyName = "DeletedRequest2")] @@ -61,17 +61,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestLockInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProlongRequestLockResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedHeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadAndLockResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunRequestQueueRequestsGetFilterItem), TypeInfoPropertyName = "ActorRunRequestQueueRequestsGetFilterItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] @@ -82,21 +82,21 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod?), TypeInfoPropertyName = "NullableHttpMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request?), TypeInfoPropertyName = "NullableRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource?), TypeInfoPropertyName = "NullableRequestResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId?), TypeInfoPropertyName = "NullableRequestWithoutId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete?), TypeInfoPropertyName = "NullableRequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete?), TypeInfoPropertyName = "NullableRequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest?), TypeInfoPropertyName = "NullableDeletedRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf?), TypeInfoPropertyName = "NullableAllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunRequestQueueRequestsGetFilterItem?), TypeInfoPropertyName = "NullableActorRunRequestQueueRequestsGetFilterItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class DefaultRequestQueueSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -145,9 +145,9 @@ private DefaultRequestQueueSourceGenerationContext(global::System.Text.Json.Json [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Apify.JsonConverters.RequestJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.RequestResourceJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.RequestWithoutIdJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.RequestDraftDeleteJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.RequestToDeleteJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.DeletedRequestJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueHeadGet.g.cs b/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueHeadGet.g.cs index 22f6e3ba..dd77eebe 100644 --- a/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueHeadGet.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueHeadGet.g.cs @@ -63,7 +63,7 @@ partial void ProcessActorRunRequestQueueHeadGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ActorRunRequestQueueHeadGetAsync( + public async global::System.Threading.Tasks.Task ActorRunRequestQueueHeadGetAsync( string runId, double? limit = default, string? clientKey = default, @@ -98,7 +98,7 @@ partial void ProcessActorRunRequestQueueHeadGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ActorRunRequestQueueHeadGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> ActorRunRequestQueueHeadGetAsResponseAsync( string runId, double? limit = default, string? clientKey = default, @@ -645,9 +645,9 @@ partial void ProcessActorRunRequestQueueHeadGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.HeadResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.RequestQueueHeadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -677,9 +677,9 @@ partial void ProcessActorRunRequestQueueHeadGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.HeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.RequestQueueHeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueHeadLockPost.g.cs b/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueHeadLockPost.g.cs index 9108d940..6fb506dd 100644 --- a/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueHeadLockPost.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueHeadLockPost.g.cs @@ -69,7 +69,7 @@ partial void ProcessActorRunRequestQueueHeadLockPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ActorRunRequestQueueHeadLockPostAsync( + public async global::System.Threading.Tasks.Task ActorRunRequestQueueHeadLockPostAsync( string runId, double lockSecs, double? limit = default, @@ -110,7 +110,7 @@ partial void ProcessActorRunRequestQueueHeadLockPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ActorRunRequestQueueHeadLockPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> ActorRunRequestQueueHeadLockPostAsResponseAsync( string runId, double lockSecs, double? limit = default, @@ -624,9 +624,9 @@ partial void ProcessActorRunRequestQueueHeadLockPostResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.HeadAndLockResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.LockedRequestQueueHeadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -656,9 +656,9 @@ partial void ProcessActorRunRequestQueueHeadLockPostResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.HeadAndLockResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.LockedRequestQueueHeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueRequestsBatchDelete.g.cs b/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueRequestsBatchDelete.g.cs index 74468097..b050b9f8 100644 --- a/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueRequestsBatchDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultRequestQueueClient.ActorRunRequestQueueRequestsBatchDelete.g.cs @@ -30,14 +30,14 @@ partial void PrepareActorRunRequestQueueRequestsBatchDeleteArguments( ref string runId, ref string contentType, ref string? clientKey, - global::System.Collections.Generic.IList request); + global::System.Collections.Generic.IList request); partial void PrepareActorRunRequestQueueRequestsBatchDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string runId, string contentType, string? clientKey, - global::System.Collections.Generic.IList request); + global::System.Collections.Generic.IList request); partial void ProcessActorRunRequestQueueRequestsBatchDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -67,7 +67,7 @@ partial void ProcessActorRunRequestQueueRequestsBatchDeleteResponseContent( public async global::System.Threading.Tasks.Task ActorRunRequestQueueRequestsBatchDeleteAsync( string runId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string contentType = "application/json", string? clientKey = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -105,7 +105,7 @@ partial void ProcessActorRunRequestQueueRequestsBatchDeleteResponseContent( public async global::System.Threading.Tasks.Task> ActorRunRequestQueueRequestsBatchDeleteAsResponseAsync( string runId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string contentType = "application/json", string? clientKey = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs b/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs index 90282aba..72bf1eae 100644 --- a/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs @@ -228,7 +228,7 @@ public partial interface IActorsClient global::System.Collections.Generic.IList? pricingInfos = default, global::System.Collections.Generic.IList? categories = default, global::Apify.DefaultRunOptions? defaultRunOptions = default, - global::System.Collections.Generic.Dictionary? taggedBuilds = default, + global::System.Collections.Generic.Dictionary? taggedBuilds = default, global::Apify.ActorStandby? actorStandby = default, global::Apify.ExampleRunInput? exampleRunInput = default, bool? isDeprecated = default, diff --git a/src/libs/Apify/Generated/Apify.IDefaultKeyValueStoreClient.ActorRunKeyValueStorePut.g.cs b/src/libs/Apify/Generated/Apify.IDefaultKeyValueStoreClient.ActorRunKeyValueStorePut.g.cs index 9dcf87be..f7694657 100644 --- a/src/libs/Apify/Generated/Apify.IDefaultKeyValueStoreClient.ActorRunKeyValueStorePut.g.cs +++ b/src/libs/Apify/Generated/Apify.IDefaultKeyValueStoreClient.ActorRunKeyValueStorePut.g.cs @@ -21,7 +21,7 @@ public partial interface IDefaultKeyValueStoreClient global::System.Threading.Tasks.Task ActorRunKeyValueStorePutAsync( string runId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -41,7 +41,7 @@ public partial interface IDefaultKeyValueStoreClient global::System.Threading.Tasks.Task> ActorRunKeyValueStorePutAsResponseAsync( string runId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueHeadGet.g.cs b/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueHeadGet.g.cs index 7cacd810..85c6d9ed 100644 --- a/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueHeadGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueHeadGet.g.cs @@ -22,7 +22,7 @@ public partial interface IDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ActorRunRequestQueueHeadGetAsync( + global::System.Threading.Tasks.Task ActorRunRequestQueueHeadGetAsync( string runId, double? limit = default, string? clientKey = default, @@ -46,7 +46,7 @@ public partial interface IDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ActorRunRequestQueueHeadGetAsResponseAsync( + global::System.Threading.Tasks.Task> ActorRunRequestQueueHeadGetAsResponseAsync( string runId, double? limit = default, string? clientKey = default, diff --git a/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueHeadLockPost.g.cs b/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueHeadLockPost.g.cs index 73b95ef8..c4bcc598 100644 --- a/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueHeadLockPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueHeadLockPost.g.cs @@ -26,7 +26,7 @@ public partial interface IDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ActorRunRequestQueueHeadLockPostAsync( + global::System.Threading.Tasks.Task ActorRunRequestQueueHeadLockPostAsync( string runId, double lockSecs, double? limit = default, @@ -55,7 +55,7 @@ public partial interface IDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ActorRunRequestQueueHeadLockPostAsResponseAsync( + global::System.Threading.Tasks.Task> ActorRunRequestQueueHeadLockPostAsResponseAsync( string runId, double lockSecs, double? limit = default, diff --git a/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueRequestsBatchDelete.g.cs b/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueRequestsBatchDelete.g.cs index 0443c61d..af76c4a3 100644 --- a/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueRequestsBatchDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.IDefaultRequestQueueClient.ActorRunRequestQueueRequestsBatchDelete.g.cs @@ -24,7 +24,7 @@ public partial interface IDefaultRequestQueueClient global::System.Threading.Tasks.Task ActorRunRequestQueueRequestsBatchDeleteAsync( string runId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string contentType = "application/json", string? clientKey = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -49,7 +49,7 @@ public partial interface IDefaultRequestQueueClient global::System.Threading.Tasks.Task> ActorRunRequestQueueRequestsBatchDeleteAsResponseAsync( string runId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string contentType = "application/json", string? clientKey = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultKeyValueStoreClient.ActorRunsLastKeyValueStorePut.g.cs b/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultKeyValueStoreClient.ActorRunsLastKeyValueStorePut.g.cs index ec1f6c31..e5ac4d5d 100644 --- a/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultKeyValueStoreClient.ActorRunsLastKeyValueStorePut.g.cs +++ b/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultKeyValueStoreClient.ActorRunsLastKeyValueStorePut.g.cs @@ -25,7 +25,7 @@ public partial interface ILastActorRunSDefaultKeyValueStoreClient global::System.Threading.Tasks.Task ActorRunsLastKeyValueStorePutAsync( string actorId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, string? status = default, global::Apify.RunOrigin? origin = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -51,7 +51,7 @@ public partial interface ILastActorRunSDefaultKeyValueStoreClient global::System.Threading.Tasks.Task> ActorRunsLastKeyValueStorePutAsResponseAsync( string actorId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, string? status = default, global::Apify.RunOrigin? origin = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadGet.g.cs b/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadGet.g.cs index 8c1bf33f..6e402204 100644 --- a/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadGet.g.cs +++ b/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadGet.g.cs @@ -26,7 +26,7 @@ public partial interface ILastActorRunSDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ActorRunsLastRequestQueueHeadGetAsync( + global::System.Threading.Tasks.Task ActorRunsLastRequestQueueHeadGetAsync( string actorId, string? status = default, global::Apify.RunOrigin? origin = default, @@ -56,7 +56,7 @@ public partial interface ILastActorRunSDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueHeadGetAsResponseAsync( + global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueHeadGetAsResponseAsync( string actorId, string? status = default, global::Apify.RunOrigin? origin = default, diff --git a/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadLockPost.g.cs b/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadLockPost.g.cs index 6c382867..fb455008 100644 --- a/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadLockPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadLockPost.g.cs @@ -30,7 +30,7 @@ public partial interface ILastActorRunSDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ActorRunsLastRequestQueueHeadLockPostAsync( + global::System.Threading.Tasks.Task ActorRunsLastRequestQueueHeadLockPostAsync( string actorId, double lockSecs, string? status = default, @@ -65,7 +65,7 @@ public partial interface ILastActorRunSDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueHeadLockPostAsResponseAsync( + global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueHeadLockPostAsResponseAsync( string actorId, double lockSecs, string? status = default, diff --git a/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueRequestsBatchDelete.g.cs b/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueRequestsBatchDelete.g.cs index 4b3530bd..c94a3e07 100644 --- a/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueRequestsBatchDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.ILastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueRequestsBatchDelete.g.cs @@ -28,7 +28,7 @@ public partial interface ILastActorRunSDefaultRequestQueueClient global::System.Threading.Tasks.Task ActorRunsLastRequestQueueRequestsBatchDeleteAsync( string actorId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string? status = default, global::Apify.RunOrigin? origin = default, string contentType = "application/json", @@ -59,7 +59,7 @@ public partial interface ILastActorRunSDefaultRequestQueueClient global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueRequestsBatchDeleteAsResponseAsync( string actorId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string? status = default, global::Apify.RunOrigin? origin = default, string contentType = "application/json", diff --git a/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultKeyValueStoreClient.ActorTaskRunsLastKeyValueStorePut.g.cs b/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultKeyValueStoreClient.ActorTaskRunsLastKeyValueStorePut.g.cs index f1f77ca6..91fbf67b 100644 --- a/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultKeyValueStoreClient.ActorTaskRunsLastKeyValueStorePut.g.cs +++ b/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultKeyValueStoreClient.ActorTaskRunsLastKeyValueStorePut.g.cs @@ -24,7 +24,7 @@ public partial interface ILastActorTaskRunSDefaultKeyValueStoreClient global::System.Threading.Tasks.Task ActorTaskRunsLastKeyValueStorePutAsync( string actorTaskId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, string? status = default, global::Apify.RunOrigin? origin = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -49,7 +49,7 @@ public partial interface ILastActorTaskRunSDefaultKeyValueStoreClient global::System.Threading.Tasks.Task> ActorTaskRunsLastKeyValueStorePutAsResponseAsync( string actorTaskId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, string? status = default, global::Apify.RunOrigin? origin = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadGet.g.cs b/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadGet.g.cs index a512e410..dc52fdce 100644 --- a/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadGet.g.cs +++ b/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadGet.g.cs @@ -26,7 +26,7 @@ public partial interface ILastActorTaskRunSDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueHeadGetAsync( + global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueHeadGetAsync( string actorTaskId, string? status = default, global::Apify.RunOrigin? origin = default, @@ -56,7 +56,7 @@ public partial interface ILastActorTaskRunSDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueHeadGetAsResponseAsync( + global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueHeadGetAsResponseAsync( string actorTaskId, string? status = default, global::Apify.RunOrigin? origin = default, diff --git a/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadLockPost.g.cs b/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadLockPost.g.cs index a0566aba..c5da8878 100644 --- a/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadLockPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadLockPost.g.cs @@ -30,7 +30,7 @@ public partial interface ILastActorTaskRunSDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueHeadLockPostAsync( + global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueHeadLockPostAsync( string actorTaskId, double lockSecs, string? status = default, @@ -65,7 +65,7 @@ public partial interface ILastActorTaskRunSDefaultRequestQueueClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueHeadLockPostAsResponseAsync( + global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueHeadLockPostAsResponseAsync( string actorTaskId, double lockSecs, string? status = default, diff --git a/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueRequestsBatchDelete.g.cs b/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueRequestsBatchDelete.g.cs index f4a6df36..2f97158e 100644 --- a/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueRequestsBatchDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.ILastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueRequestsBatchDelete.g.cs @@ -28,7 +28,7 @@ public partial interface ILastActorTaskRunSDefaultRequestQueueClient global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueRequestsBatchDeleteAsync( string actorTaskId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string? status = default, global::Apify.RunOrigin? origin = default, string contentType = "application/json", @@ -59,7 +59,7 @@ public partial interface ILastActorTaskRunSDefaultRequestQueueClient global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueRequestsBatchDeleteAsResponseAsync( string actorTaskId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string? status = default, global::Apify.RunOrigin? origin = default, string contentType = "application/json", diff --git a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs index dc01204a..259d79fe 100644 --- a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs +++ b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs @@ -27,7 +27,7 @@ public partial interface ISchedulesClient global::System.Threading.Tasks.Task SchedulePutAsync( string scheduleId, - global::Apify.ScheduleCreate request, + global::Apify.CreateOrUpdateScheduleRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -53,7 +53,7 @@ public partial interface ISchedulesClient global::System.Threading.Tasks.Task> SchedulePutAsResponseAsync( string scheduleId, - global::Apify.ScheduleCreate request, + global::Apify.CreateOrUpdateScheduleRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs index bbf5ef3f..fe1681ff 100644 --- a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs @@ -19,7 +19,7 @@ public partial interface ISchedulesClient /// global::System.Threading.Tasks.Task SchedulesPostAsync( - global::Apify.ScheduleCreate request, + global::Apify.CreateOrUpdateScheduleRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -37,7 +37,7 @@ public partial interface ISchedulesClient /// global::System.Threading.Tasks.Task> SchedulesPostAsResponseAsync( - global::Apify.ScheduleCreate request, + global::Apify.CreateOrUpdateScheduleRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/Apify/Generated/Apify.IStorageKeyValueStoresClient.KeyValueStorePut.g.cs b/src/libs/Apify/Generated/Apify.IStorageKeyValueStoresClient.KeyValueStorePut.g.cs index c5d65a00..6f9a8c15 100644 --- a/src/libs/Apify/Generated/Apify.IStorageKeyValueStoresClient.KeyValueStorePut.g.cs +++ b/src/libs/Apify/Generated/Apify.IStorageKeyValueStoresClient.KeyValueStorePut.g.cs @@ -21,7 +21,7 @@ public partial interface IStorageKeyValueStoresClient global::System.Threading.Tasks.Task KeyValueStorePutAsync( string storeId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -41,7 +41,7 @@ public partial interface IStorageKeyValueStoresClient global::System.Threading.Tasks.Task> KeyValueStorePutAsResponseAsync( string storeId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/Apify/Generated/Apify.IStorageRequestQueuesClient.RequestQueueRequestsBatchDelete.g.cs b/src/libs/Apify/Generated/Apify.IStorageRequestQueuesClient.RequestQueueRequestsBatchDelete.g.cs index bfcc9e9f..e3f11f8d 100644 --- a/src/libs/Apify/Generated/Apify.IStorageRequestQueuesClient.RequestQueueRequestsBatchDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.IStorageRequestQueuesClient.RequestQueueRequestsBatchDelete.g.cs @@ -32,7 +32,7 @@ public partial interface IStorageRequestQueuesClient global::System.Threading.Tasks.Task RequestQueueRequestsBatchDeleteAsync( string queueId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string contentType = "application/json", string? clientKey = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -65,7 +65,7 @@ public partial interface IStorageRequestQueuesClient global::System.Threading.Tasks.Task> RequestQueueRequestsBatchDeleteAsResponseAsync( string queueId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string contentType = "application/json", string? clientKey = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Apify/Generated/Apify.IStorageRequestQueuesRequestsLocksClient.RequestQueueHeadGet.g.cs b/src/libs/Apify/Generated/Apify.IStorageRequestQueuesRequestsLocksClient.RequestQueueHeadGet.g.cs index d65df4ab..ad820fc4 100644 --- a/src/libs/Apify/Generated/Apify.IStorageRequestQueuesRequestsLocksClient.RequestQueueHeadGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IStorageRequestQueuesRequestsLocksClient.RequestQueueHeadGet.g.cs @@ -26,7 +26,7 @@ public partial interface IStorageRequestQueuesRequestsLocksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RequestQueueHeadGetAsync( + global::System.Threading.Tasks.Task RequestQueueHeadGetAsync( string queueId, double? limit = default, string? clientKey = default, @@ -54,7 +54,7 @@ public partial interface IStorageRequestQueuesRequestsLocksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> RequestQueueHeadGetAsResponseAsync( + global::System.Threading.Tasks.Task> RequestQueueHeadGetAsResponseAsync( string queueId, double? limit = default, string? clientKey = default, diff --git a/src/libs/Apify/Generated/Apify.IStorageRequestQueuesRequestsLocksClient.RequestQueueHeadLockPost.g.cs b/src/libs/Apify/Generated/Apify.IStorageRequestQueuesRequestsLocksClient.RequestQueueHeadLockPost.g.cs index e10e18ce..f02fb1bf 100644 --- a/src/libs/Apify/Generated/Apify.IStorageRequestQueuesRequestsLocksClient.RequestQueueHeadLockPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IStorageRequestQueuesRequestsLocksClient.RequestQueueHeadLockPost.g.cs @@ -29,7 +29,7 @@ public partial interface IStorageRequestQueuesRequestsLocksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RequestQueueHeadLockPostAsync( + global::System.Threading.Tasks.Task RequestQueueHeadLockPostAsync( string queueId, double lockSecs, double? limit = default, @@ -61,7 +61,7 @@ public partial interface IStorageRequestQueuesRequestsLocksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> RequestQueueHeadLockPostAsResponseAsync( + global::System.Threading.Tasks.Task> RequestQueueHeadLockPostAsResponseAsync( string queueId, double lockSecs, double? limit = default, diff --git a/src/libs/Apify/Generated/Apify.IStoreClient.StoreGet.g.cs b/src/libs/Apify/Generated/Apify.IStoreClient.StoreGet.g.cs index 1b61011a..739c38a8 100644 --- a/src/libs/Apify/Generated/Apify.IStoreClient.StoreGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IStoreClient.StoreGet.g.cs @@ -49,7 +49,7 @@ public partial interface IStoreClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task StoreGetAsync( + global::System.Threading.Tasks.Task StoreGetAsync( double? limit = default, double? offset = default, string? search = default, @@ -107,7 +107,7 @@ public partial interface IStoreClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> StoreGetAsResponseAsync( + global::System.Threading.Tasks.Task> StoreGetAsResponseAsync( double? limit = default, double? offset = default, string? search = default, diff --git a/src/libs/Apify/Generated/Apify.IUsersClient.UserGet.g.cs b/src/libs/Apify/Generated/Apify.IUsersClient.UserGet.g.cs index 9a71bae8..8df6decd 100644 --- a/src/libs/Apify/Generated/Apify.IUsersClient.UserGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IUsersClient.UserGet.g.cs @@ -16,7 +16,7 @@ public partial interface IUsersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UserGetAsync( + global::System.Threading.Tasks.Task UserGetAsync( string userId, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -32,7 +32,7 @@ public partial interface IUsersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UserGetAsResponseAsync( + global::System.Threading.Tasks.Task> UserGetAsResponseAsync( string userId, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Apify/Generated/Apify.IUsersClient.UsersMeGet.g.cs b/src/libs/Apify/Generated/Apify.IUsersClient.UsersMeGet.g.cs index 0ec68025..a559a9a8 100644 --- a/src/libs/Apify/Generated/Apify.IUsersClient.UsersMeGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IUsersClient.UsersMeGet.g.cs @@ -14,7 +14,7 @@ public partial interface IUsersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UsersMeGetAsync( + global::System.Threading.Tasks.Task UsersMeGetAsync( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IUsersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UsersMeGetAsResponseAsync( + global::System.Threading.Tasks.Task> UsersMeGetAsResponseAsync( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersMeLimitsGet.g.cs b/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersMeLimitsGet.g.cs index 628b73b9..b417093c 100644 --- a/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersMeLimitsGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersMeLimitsGet.g.cs @@ -13,7 +13,7 @@ public partial interface IUsersUsageClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UsersMeLimitsGetAsync( + global::System.Threading.Tasks.Task UsersMeLimitsGetAsync( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -25,7 +25,7 @@ public partial interface IUsersUsageClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UsersMeLimitsGetAsResponseAsync( + global::System.Threading.Tasks.Task> UsersMeLimitsGetAsResponseAsync( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookPut.g.cs b/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookPut.g.cs index 1c7d3aa2..8b96b208 100644 --- a/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookPut.g.cs @@ -28,7 +28,7 @@ public partial interface IWebhooksWebhooksClient global::System.Threading.Tasks.Task WebhookPutAsync( string webhookId, - global::Apify.WebhookUpdate request, + global::Apify.UpdateWebhookRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -55,7 +55,7 @@ public partial interface IWebhooksWebhooksClient global::System.Threading.Tasks.Task> WebhookPutAsResponseAsync( string webhookId, - global::Apify.WebhookUpdate request, + global::Apify.UpdateWebhookRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookTestPost.g.cs b/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookTestPost.g.cs index de08865c..517c458a 100644 --- a/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookTestPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookTestPost.g.cs @@ -14,7 +14,7 @@ public partial interface IWebhooksWebhooksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task WebhookTestPostAsync( + global::System.Threading.Tasks.Task WebhookTestPostAsync( string webhookId, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -28,7 +28,7 @@ public partial interface IWebhooksWebhooksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> WebhookTestPostAsResponseAsync( + global::System.Threading.Tasks.Task> WebhookTestPostAsResponseAsync( string webhookId, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhooksPost.g.cs b/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhooksPost.g.cs index c00981a3..349bfb25 100644 --- a/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhooksPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhooksPost.g.cs @@ -58,7 +58,7 @@ public partial interface IWebhooksWebhooksClient /// global::System.Threading.Tasks.Task WebhooksPostAsync( - global::Apify.WebhookCreate request, + global::Apify.CreateWebhookRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -115,7 +115,7 @@ public partial interface IWebhooksWebhooksClient /// global::System.Threading.Tasks.Task> WebhooksPostAsResponseAsync( - global::Apify.WebhookCreate request, + global::Apify.CreateWebhookRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.Request.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.RequestResource.g.cs similarity index 81% rename from src/libs/Apify/Generated/Apify.JsonConverters.Request.g.cs rename to src/libs/Apify/Generated/Apify.JsonConverters.RequestResource.g.cs index 4b311528..3df3df5a 100644 --- a/src/libs/Apify/Generated/Apify.JsonConverters.Request.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonConverters.RequestResource.g.cs @@ -4,10 +4,10 @@ namespace Apify.JsonConverters { /// - public class RequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class RequestResourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Apify.Request Read( + public override global::Apify.RequestResource Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -32,12 +32,12 @@ public class RequestJsonConverter : global::System.Text.Json.Serialization.JsonC { } - global::Apify.RequestVariant2? requestVariant2 = default; + global::Apify.RequestResourceVariant2? requestResourceVariant2 = default; try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestVariant2).Name}"); - requestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestResourceVariant2).Name}"); + requestResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -45,10 +45,10 @@ public class RequestJsonConverter : global::System.Text.Json.Serialization.JsonC catch (global::System.InvalidOperationException) { } - var __value = new global::Apify.Request( + var __value = new global::Apify.RequestResource( requestBase, - requestVariant2 + requestResourceVariant2 ); return __value; @@ -57,7 +57,7 @@ public class RequestJsonConverter : global::System.Text.Json.Serialization.JsonC /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Apify.Request value, + global::Apify.RequestResource value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); @@ -84,11 +84,11 @@ public override void Write( } } } - if (value.IsRequestVariant2) + if (value.IsRequestResourceVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickRequestVariant2(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestResourceVariant2).Name}"); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickRequestResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.RequestDraftDelete.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.RequestToDelete.g.cs similarity index 66% rename from src/libs/Apify/Generated/Apify.JsonConverters.RequestDraftDelete.g.cs rename to src/libs/Apify/Generated/Apify.JsonConverters.RequestToDelete.g.cs index 7b45b21a..33b3d213 100644 --- a/src/libs/Apify/Generated/Apify.JsonConverters.RequestDraftDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonConverters.RequestToDelete.g.cs @@ -4,10 +4,10 @@ namespace Apify.JsonConverters { /// - public class RequestDraftDeleteJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class RequestToDeleteJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Apify.RequestDraftDelete Read( + public override global::Apify.RequestToDelete Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -38,17 +38,17 @@ public class RequestDraftDeleteJsonConverter : global::System.Text.Json.Serializ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::Apify.RequestDraftDeleteById? requestDraftDeleteById = default; - global::Apify.RequestDraftDeleteByUniqueKey? requestDraftDeleteByUniqueKey = default; + global::Apify.RequestToDeleteById? requestToDeleteById = default; + global::Apify.RequestToDeleteByUniqueKey? requestToDeleteByUniqueKey = default; if (__bestIndex >= 0) { if (__bestIndex == 0) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestDraftDeleteById), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestDraftDeleteById).Name}"); - requestDraftDeleteById = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestToDeleteById), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestToDeleteById).Name}"); + requestToDeleteById = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,9 +61,9 @@ public class RequestDraftDeleteJsonConverter : global::System.Text.Json.Serializ { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestDraftDeleteByUniqueKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestDraftDeleteByUniqueKey).Name}"); - requestDraftDeleteByUniqueKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestToDeleteByUniqueKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestToDeleteByUniqueKey).Name}"); + requestToDeleteByUniqueKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,14 +74,14 @@ public class RequestDraftDeleteJsonConverter : global::System.Text.Json.Serializ } } - if (requestDraftDeleteById == null && requestDraftDeleteByUniqueKey == null) + if (requestToDeleteById == null && requestToDeleteByUniqueKey == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestDraftDeleteById), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestDraftDeleteById).Name}"); - requestDraftDeleteById = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestToDeleteById), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestToDeleteById).Name}"); + requestToDeleteById = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,14 +91,14 @@ public class RequestDraftDeleteJsonConverter : global::System.Text.Json.Serializ } } - if (requestDraftDeleteById == null && requestDraftDeleteByUniqueKey == null) + if (requestToDeleteById == null && requestToDeleteByUniqueKey == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestDraftDeleteByUniqueKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestDraftDeleteByUniqueKey).Name}"); - requestDraftDeleteByUniqueKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestToDeleteByUniqueKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestToDeleteByUniqueKey).Name}"); + requestToDeleteByUniqueKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,10 +108,10 @@ public class RequestDraftDeleteJsonConverter : global::System.Text.Json.Serializ } } - var __value = new global::Apify.RequestDraftDelete( - requestDraftDeleteById, + var __value = new global::Apify.RequestToDelete( + requestToDeleteById, - requestDraftDeleteByUniqueKey + requestToDeleteByUniqueKey ); return __value; @@ -120,23 +120,23 @@ public class RequestDraftDeleteJsonConverter : global::System.Text.Json.Serializ /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Apify.RequestDraftDelete value, + global::Apify.RequestToDelete value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsRequestDraftDeleteById) + if (value.IsRequestToDeleteById) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestDraftDeleteById), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestDraftDeleteById).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRequestDraftDeleteById(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestToDeleteById), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestToDeleteById).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRequestToDeleteById(), typeInfo); } - else if (value.IsRequestDraftDeleteByUniqueKey) + else if (value.IsRequestToDeleteByUniqueKey) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestDraftDeleteByUniqueKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestDraftDeleteByUniqueKey).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRequestDraftDeleteByUniqueKey(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.RequestToDeleteByUniqueKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.RequestToDeleteByUniqueKey).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRequestToDeleteByUniqueKey(), typeInfo); } } } diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleShort.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItem.g.cs similarity index 80% rename from src/libs/Apify/Generated/Apify.JsonConverters.ScheduleShort.g.cs rename to src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItem.g.cs index 069ca6df..c8a3fec8 100644 --- a/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleShort.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItem.g.cs @@ -4,10 +4,10 @@ namespace Apify.JsonConverters { /// - public class ScheduleShortJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ScheduleListItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Apify.ScheduleShort Read( + public override global::Apify.ScheduleListItem Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -32,12 +32,12 @@ public class ScheduleShortJsonConverter : global::System.Text.Json.Serialization { } - global::Apify.ScheduleShortVariant2? scheduleShortVariant2 = default; + global::Apify.ScheduleListItemVariant2? scheduleListItemVariant2 = default; try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleShortVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ScheduleShortVariant2).Name}"); - scheduleShortVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleListItemVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ScheduleListItemVariant2).Name}"); + scheduleListItemVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -45,10 +45,10 @@ public class ScheduleShortJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } - var __value = new global::Apify.ScheduleShort( + var __value = new global::Apify.ScheduleListItem( scheduleBase, - scheduleShortVariant2 + scheduleListItemVariant2 ); return __value; @@ -57,7 +57,7 @@ public class ScheduleShortJsonConverter : global::System.Text.Json.Serialization /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Apify.ScheduleShort value, + global::Apify.ScheduleListItem value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); @@ -84,11 +84,11 @@ public override void Write( } } } - if (value.IsScheduleShortVariant2) + if (value.IsScheduleListItemVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleShortVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ScheduleShortVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickScheduleShortVariant2(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleListItemVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ScheduleListItemVariant2).Name}"); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickScheduleListItemVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShort.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemAction.g.cs similarity index 61% rename from src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShort.g.cs rename to src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemAction.g.cs index 5967b8c3..a7e01df5 100644 --- a/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShort.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemAction.g.cs @@ -4,10 +4,10 @@ namespace Apify.JsonConverters { /// - public class ScheduleActionShortJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ScheduleListItemActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Apify.ScheduleActionShort Read( + public override global::Apify.ScheduleListItemAction Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -17,26 +17,26 @@ public class ScheduleActionShortJsonConverter : global::System.Text.Json.Seriali var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleActionShortDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Apify.ScheduleActionShortDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleListItemActionDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Apify.ScheduleListItemActionDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Apify.ScheduleActionShortRunActor? runActor = default; - if (discriminator?.Type == global::Apify.ScheduleActionShortDiscriminatorType.RunActor) + global::Apify.ScheduleListItemActionRunActor? runActor = default; + if (discriminator?.Type == global::Apify.ScheduleListItemActionDiscriminatorType.RunActor) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleActionShortRunActor), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Apify.ScheduleActionShortRunActor)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleListItemActionRunActor), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Apify.ScheduleListItemActionRunActor)}"); runActor = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Apify.ScheduleActionShortRunActorTask? runActorTask = default; - if (discriminator?.Type == global::Apify.ScheduleActionShortDiscriminatorType.RunActorTask) + global::Apify.ScheduleListItemActionRunActorTask? runActorTask = default; + if (discriminator?.Type == global::Apify.ScheduleListItemActionDiscriminatorType.RunActorTask) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleActionShortRunActorTask), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Apify.ScheduleActionShortRunActorTask)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleListItemActionRunActorTask), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Apify.ScheduleListItemActionRunActorTask)}"); runActorTask = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - var __value = new global::Apify.ScheduleActionShort( + var __value = new global::Apify.ScheduleListItemAction( discriminator?.Type, runActor, @@ -49,7 +49,7 @@ public class ScheduleActionShortJsonConverter : global::System.Text.Json.Seriali /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Apify.ScheduleActionShort value, + global::Apify.ScheduleListItemAction value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunActor) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleActionShortRunActor), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ScheduleActionShortRunActor).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleListItemActionRunActor), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ScheduleListItemActionRunActor).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunActor(), typeInfo); } else if (value.IsRunActorTask) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleActionShortRunActorTask), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ScheduleActionShortRunActorTask).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ScheduleListItemActionRunActorTask), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ScheduleListItemActionRunActorTask).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunActorTask(), typeInfo); } } diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShortDiscriminatorType.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemActionDiscriminatorType.g.cs similarity index 63% rename from src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShortDiscriminatorType.g.cs rename to src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemActionDiscriminatorType.g.cs index 71e1c863..2cd2a746 100644 --- a/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShortDiscriminatorType.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemActionDiscriminatorType.g.cs @@ -3,10 +3,10 @@ namespace Apify.JsonConverters { /// - public sealed class ScheduleActionShortDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ScheduleListItemActionDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Apify.ScheduleActionShortDiscriminatorType Read( + public override global::Apify.ScheduleListItemActionDiscriminatorType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ScheduleActionShortDiscriminatorTypeJsonConverter : global:: var stringValue = reader.GetString(); if (stringValue != null) { - return global::Apify.ScheduleActionShortDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + return global::Apify.ScheduleListItemActionDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ScheduleActionShortDiscriminatorTypeJsonConverter : global:: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Apify.ScheduleActionShortDiscriminatorType)numValue; + return (global::Apify.ScheduleListItemActionDiscriminatorType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Apify.ScheduleActionShortDiscriminatorType); + return default(global::Apify.ScheduleListItemActionDiscriminatorType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ScheduleActionShortDiscriminatorTypeJsonConverter : global:: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Apify.ScheduleActionShortDiscriminatorType value, + global::Apify.ScheduleListItemActionDiscriminatorType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Apify.ScheduleActionShortDiscriminatorTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Apify.ScheduleListItemActionDiscriminatorTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShortDiscriminatorTypeNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeNullable.g.cs similarity index 65% rename from src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShortDiscriminatorTypeNullable.g.cs rename to src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeNullable.g.cs index cd0c310f..9ee5f4eb 100644 --- a/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleActionShortDiscriminatorTypeNullable.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Apify.JsonConverters { /// - public sealed class ScheduleActionShortDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ScheduleListItemActionDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Apify.ScheduleActionShortDiscriminatorType? Read( + public override global::Apify.ScheduleListItemActionDiscriminatorType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ScheduleActionShortDiscriminatorTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::Apify.ScheduleActionShortDiscriminatorTypeExtensions.ToEnum(stringValue); + return global::Apify.ScheduleListItemActionDiscriminatorTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ScheduleActionShortDiscriminatorTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Apify.ScheduleActionShortDiscriminatorType)numValue; + return (global::Apify.ScheduleListItemActionDiscriminatorType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Apify.ScheduleActionShortDiscriminatorType?); + return default(global::Apify.ScheduleListItemActionDiscriminatorType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ScheduleActionShortDiscriminatorTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Apify.ScheduleActionShortDiscriminatorType? value, + global::Apify.ScheduleListItemActionDiscriminatorType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Apify.ScheduleActionShortDiscriminatorTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Apify.ScheduleListItemActionDiscriminatorTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs index d5c254ed..bb729d5c 100644 --- a/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs @@ -63,9 +63,9 @@ namespace Apify typeof(global::Apify.JsonConverters.StorageOwnershipNullableJsonConverter), - typeof(global::Apify.JsonConverters.ScheduleActionShortDiscriminatorTypeJsonConverter), + typeof(global::Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeJsonConverter), - typeof(global::Apify.JsonConverters.ScheduleActionShortDiscriminatorTypeNullableJsonConverter), + typeof(global::Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeNullableJsonConverter), typeof(global::Apify.JsonConverters.ScheduleCreateActionDiscriminatorTypeJsonConverter), @@ -175,11 +175,11 @@ namespace Apify typeof(global::Apify.JsonConverters.ListOfRunsJsonConverter), - typeof(global::Apify.JsonConverters.RequestJsonConverter), + typeof(global::Apify.JsonConverters.RequestResourceJsonConverter), typeof(global::Apify.JsonConverters.RequestWithoutIdJsonConverter), - typeof(global::Apify.JsonConverters.RequestDraftDeleteJsonConverter), + typeof(global::Apify.JsonConverters.RequestToDeleteJsonConverter), typeof(global::Apify.JsonConverters.DeletedRequestJsonConverter), @@ -193,9 +193,9 @@ namespace Apify typeof(global::Apify.JsonConverters.ListOfWebhookDispatchesJsonConverter), - typeof(global::Apify.JsonConverters.ScheduleActionShortJsonConverter), + typeof(global::Apify.JsonConverters.ScheduleListItemActionJsonConverter), - typeof(global::Apify.JsonConverters.ScheduleShortJsonConverter), + typeof(global::Apify.JsonConverters.ScheduleListItemJsonConverter), typeof(global::Apify.JsonConverters.ListOfSchedulesJsonConverter), @@ -239,17 +239,17 @@ namespace Apify typeof(global::Apify.JsonConverters.AllOfJsonConverter), - typeof(global::Apify.JsonConverters.AnyOfJsonConverter), + typeof(global::Apify.JsonConverters.AnyOfJsonConverter), typeof(global::Apify.JsonConverters.AllOfJsonConverter), typeof(global::Apify.JsonConverters.AllOfJsonConverter), - typeof(global::Apify.JsonConverters.AnyOfJsonConverter), + typeof(global::Apify.JsonConverters.AnyOfJsonConverter), - typeof(global::Apify.JsonConverters.AnyOfJsonConverter), + typeof(global::Apify.JsonConverters.AnyOfJsonConverter), - typeof(global::Apify.JsonConverters.AnyOfJsonConverter), + typeof(global::Apify.JsonConverters.AnyOfJsonConverter), typeof(global::Apify.JsonConverters.UnixTimestampJsonConverter), })] @@ -263,12 +263,12 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorStatsPublicActorRunStats30Days))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActors), TypeInfoPropertyName = "ListOfActors2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] @@ -312,14 +312,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaggedBuildInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaggedBuilds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorNotice), TypeInfoPropertyName = "ActorNotice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Actor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateOrUpdateVersionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildTag))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdatedBuildProperty))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateActorRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfVersions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfVersionsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionResponse))] @@ -330,21 +330,21 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookEventType), TypeInfoPropertyName = "WebhookEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookCondition))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ExampleWebhookDispatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookLastDispatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooks), TypeInfoPropertyName = "ListOfWebhooks2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooksVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooksResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus), TypeInfoPropertyName = "ActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildsMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildMeta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuilds), TypeInfoPropertyName = "ListOfBuilds2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuildsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfBuildsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildOptions))] @@ -358,10 +358,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BuildResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRuns), TypeInfoPropertyName = "ListOfRuns2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRunsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRunsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookRepresentation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] @@ -369,35 +369,35 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Dataset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateDatasetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SchemaValidationErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetItemValidationError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidDatasetItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemResponseError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetFieldStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStatisticsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateKeyValueStoreRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeys))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -405,29 +405,29 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RecordResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutRecordRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestQueueRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod), TypeInfoPropertyName = "HttpMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestUserData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestBase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request), TypeInfoPropertyName = "Request2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource), TypeInfoPropertyName = "RequestResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResourceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId), TypeInfoPropertyName = "RequestWithoutId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestRegistration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddRequestResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddedRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraft))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UnprocessedRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteById))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteByUniqueKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete), TypeInfoPropertyName = "RequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteById))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteByUniqueKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete), TypeInfoPropertyName = "RequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestById))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestByUniqueKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest), TypeInfoPropertyName = "DeletedRequest2")] @@ -440,19 +440,19 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestLockInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProlongRequestLockResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedHeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadAndLockResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfTasks), TypeInfoPropertyName = "ListOfTasks2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfTasksVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfTasksResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskInput))] @@ -463,50 +463,49 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Task))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateTaskRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Webhook))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRunRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ChargeRunRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StorageOwnership), TypeInfoPropertyName = "StorageOwnership2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeyValueStores), TypeInfoPropertyName = "ListOfKeyValueStores2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeyValueStoresVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeyValueStoresResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfDatasets), TypeInfoPropertyName = "ListOfDatasets2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfDatasetsVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfDatasetsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestQueues), TypeInfoPropertyName = "ListOfRequestQueues2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestQueuesVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestQueuesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateWebhookRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateWebhookRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchWebhookSummary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchEventData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TestWebhookResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatches), TypeInfoPropertyName = "ListOfWebhookDispatches2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatchesVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatchesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleBase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortRunActor))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortRunActorTask))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShort), TypeInfoPropertyName = "ScheduleActionShort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortDiscriminatorType), TypeInfoPropertyName = "ScheduleActionShortDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleShort), TypeInfoPropertyName = "ScheduleShort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleShortVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionRunActor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionRunActorTask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemAction), TypeInfoPropertyName = "ScheduleListItemAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionDiscriminatorType), TypeInfoPropertyName = "ScheduleListItemActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItem), TypeInfoPropertyName = "ScheduleListItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedules), TypeInfoPropertyName = "ListOfSchedules2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedulesVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedulesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActor))] @@ -514,7 +513,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateAction), TypeInfoPropertyName = "ScheduleCreateAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionDiscriminatorType), TypeInfoPropertyName = "ScheduleCreateActionDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateOrUpdateScheduleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunActorTask))] @@ -526,52 +525,52 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleVariant2Notifications))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleInvoked))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleLogEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleLogResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CurrentPricingInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreListActor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfStoreActors), TypeInfoPropertyName = "ListOfStoreActors2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfStoreActorsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorsInStoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Profile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfStoreActorsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserProfile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPublicInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PublicUserDataResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPublicInfoResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProxyGroup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Proxy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProxyResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Plan))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPlan))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EffectivePlatformFeature))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EffectivePlatformFeatures))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPrivateInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PrivateUserDataResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPrivateInfoResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UsageCycle))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PriceTiers))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PriceTier))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UsageItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DailyServiceUsages))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DailyServiceUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.MonthlyUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.MonthlyUsageResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Limits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Current))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CurrentUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AccountLimits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LimitsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AccountLimitsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateLimitsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BrowserInfoResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EncodeAndSignData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EncodeAndSignResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EncodeAndSignResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>), TypeInfoPropertyName = "OneOfPutItemsRequestIListPutItemsRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfCreateTaskRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfUpdateRunRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsGetSortBy), TypeInfoPropertyName = "ActorsGetSortBy2")] @@ -601,20 +600,20 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreGetResponseFormat), TypeInfoPropertyName = "StoreGetResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorValidateInputPostResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskGetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskPutResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskWebhooksGetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfPaginationResponseActorTaskWebhooksGetResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskWebhooksGetResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsGetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfPaginationResponseActorTaskRunsGetResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsGetResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsPostResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsLastGetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PostChargeRunResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -622,47 +621,47 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs b/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs index aabb37b2..14387492 100644 --- a/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs @@ -61,7 +61,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.ActorShort? Type7 { get; set; } + public global::Apify.ActorListItem? Type7 { get; set; } /// /// /// @@ -81,7 +81,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type12 { get; set; } + public global::System.Collections.Generic.IList? Type12 { get; set; } /// /// /// @@ -257,7 +257,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.Actor? Type56 { get; set; } + public global::Apify.ActorResource? Type56 { get; set; } /// /// /// @@ -273,7 +273,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.BuildTag? Type60 { get; set; } + public global::Apify.UpdatedBuildProperty? Type60 { get; set; } /// /// /// @@ -285,7 +285,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.Dictionary? Type63 { get; set; } + public global::System.Collections.Generic.Dictionary? Type63 { get; set; } /// /// /// @@ -329,7 +329,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.ExampleWebhookDispatch? Type74 { get; set; } + public global::Apify.WebhookLastDispatch? Type74 { get; set; } /// /// /// @@ -337,7 +337,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.WebhookShort? Type76 { get; set; } + public global::Apify.WebhookListItem? Type76 { get; set; } /// /// /// @@ -353,7 +353,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type80 { get; set; } + public global::System.Collections.Generic.IList? Type80 { get; set; } /// /// /// @@ -369,11 +369,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.BuildsMeta? Type84 { get; set; } + public global::Apify.BuildMeta? Type84 { get; set; } /// /// /// - public global::Apify.BuildShort? Type85 { get; set; } + public global::Apify.BuildListItem? Type85 { get; set; } /// /// /// @@ -385,7 +385,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type88 { get; set; } + public global::System.Collections.Generic.IList? Type88 { get; set; } /// /// /// @@ -441,7 +441,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.RunShort? Type102 { get; set; } + public global::Apify.RunListItem? Type102 { get; set; } /// /// /// @@ -453,7 +453,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type105 { get; set; } + public global::System.Collections.Generic.IList? Type105 { get; set; } /// /// /// @@ -485,7 +485,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.Metamorph? Type113 { get; set; } + public global::Apify.RunMetamorphEvent? Type113 { get; set; } /// /// /// @@ -513,7 +513,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type120 { get; set; } + public global::System.Collections.Generic.IList? Type120 { get; set; } /// /// /// @@ -525,7 +525,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.Dataset? Type123 { get; set; } + public global::Apify.DatasetResource? Type123 { get; set; } /// /// /// @@ -541,23 +541,23 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.ValidationError? Type127 { get; set; } + public global::Apify.DatasetItemValidationError? Type127 { get; set; } /// /// /// - public global::Apify.InvalidItem? Type128 { get; set; } + public global::Apify.InvalidDatasetItem? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::System.Collections.Generic.IList? Type129 { get; set; } /// /// /// - public global::Apify.SchemaValidationErrorData? Type130 { get; set; } + public global::Apify.DatasetSchemaValidationErrorData? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::System.Collections.Generic.IList? Type131 { get; set; } /// /// /// @@ -565,7 +565,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.PutItemResponseError? Type133 { get; set; } + public global::Apify.PutItemsErrorResponse? Type133 { get; set; } /// /// /// @@ -589,7 +589,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.KeyValueStore? Type139 { get; set; } + public global::Apify.KeyValueStoreResource? Type139 { get; set; } /// /// /// @@ -597,7 +597,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.UpdateStoreRequest? Type141 { get; set; } + public global::Apify.UpdateKeyValueStoreRequest? Type141 { get; set; } /// /// /// @@ -629,7 +629,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.RequestQueue? Type149 { get; set; } + public global::Apify.RequestQueueResource? Type149 { get; set; } /// /// /// @@ -653,11 +653,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.Request? Type155 { get; set; } + public global::Apify.RequestResource? Type155 { get; set; } /// /// /// - public global::Apify.RequestVariant2? Type156 { get; set; } + public global::Apify.RequestResourceVariant2? Type156 { get; set; } /// /// /// @@ -665,7 +665,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// @@ -689,7 +689,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.RequestDraft? Type164 { get; set; } + public global::Apify.UnprocessedRequest? Type164 { get; set; } /// /// /// @@ -701,7 +701,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::System.Collections.Generic.IList? Type167 { get; set; } /// /// /// @@ -709,15 +709,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.RequestDraftDeleteById? Type169 { get; set; } + public global::Apify.RequestToDeleteById? Type169 { get; set; } /// /// /// - public global::Apify.RequestDraftDeleteByUniqueKey? Type170 { get; set; } + public global::Apify.RequestToDeleteByUniqueKey? Type170 { get; set; } /// /// /// - public global::Apify.RequestDraftDelete? Type171 { get; set; } + public global::Apify.RequestToDelete? Type171 { get; set; } /// /// /// @@ -769,7 +769,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.HeadRequest? Type184 { get; set; } + public global::Apify.RequestQueueHeadItem? Type184 { get; set; } /// /// /// @@ -777,15 +777,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::Apify.HeadResponse? Type187 { get; set; } + public global::Apify.RequestQueueHeadResponse? Type187 { get; set; } /// /// /// - public global::Apify.LockedHeadRequest? Type188 { get; set; } + public global::Apify.LockedRequestQueueHeadItem? Type188 { get; set; } /// /// /// @@ -793,11 +793,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type190 { get; set; } + public global::System.Collections.Generic.IList? Type190 { get; set; } /// /// /// - public global::Apify.HeadAndLockResponse? Type191 { get; set; } + public global::Apify.LockedRequestQueueHeadResponse? Type191 { get; set; } /// /// /// @@ -805,7 +805,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.TaskShort? Type193 { get; set; } + public global::Apify.TaskListItem? Type193 { get; set; } /// /// /// @@ -817,7 +817,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// @@ -861,7 +861,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.Webhook? Type207 { get; set; } + public global::Apify.WebhookResource? Type207 { get; set; } /// /// /// @@ -885,7 +885,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// @@ -913,7 +913,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.RequestQueueShort? Type220 { get; set; } + public global::Apify.RequestQueueListItem? Type220 { get; set; } /// /// /// @@ -925,7 +925,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// @@ -933,7 +933,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.WebhookCreate? Type225 { get; set; } + public global::Apify.CreateWebhookRequest? Type225 { get; set; } /// /// /// @@ -941,7 +941,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.WebhookUpdate? Type227 { get; set; } + public global::Apify.UpdateWebhookRequest? Type227 { get; set; } /// /// /// @@ -965,7 +965,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.TestWebhookResponse? Type233 { get; set; } + public global::Apify.WebhookDispatchResponse? Type233 { get; set; } /// /// /// @@ -985,488 +985,484 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.WebhookDispatchResponse? Type238 { get; set; } + public global::Apify.ScheduleBase? Type238 { get; set; } /// /// /// - public global::Apify.ScheduleBase? Type239 { get; set; } + public global::Apify.ScheduleListItemActionRunActor? Type239 { get; set; } /// /// /// - public global::Apify.ScheduleActionShortRunActor? Type240 { get; set; } + public global::Apify.ScheduleListItemActionRunActorTask? Type240 { get; set; } /// /// /// - public global::Apify.ScheduleActionShortRunActorTask? Type241 { get; set; } + public global::Apify.ScheduleListItemAction? Type241 { get; set; } /// /// /// - public global::Apify.ScheduleActionShort? Type242 { get; set; } + public global::Apify.ScheduleListItemActionDiscriminator? Type242 { get; set; } /// /// /// - public global::Apify.ScheduleActionShortDiscriminator? Type243 { get; set; } + public global::Apify.ScheduleListItemActionDiscriminatorType? Type243 { get; set; } /// /// /// - public global::Apify.ScheduleActionShortDiscriminatorType? Type244 { get; set; } + public global::Apify.ScheduleListItem? Type244 { get; set; } /// /// /// - public global::Apify.ScheduleShort? Type245 { get; set; } + public global::Apify.ScheduleListItemVariant2? Type245 { get; set; } /// /// /// - public global::Apify.ScheduleShortVariant2? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::Apify.ListOfSchedules? Type247 { get; set; } /// /// /// - public global::Apify.ListOfSchedules? Type248 { get; set; } + public global::Apify.ListOfSchedulesVariant2? Type248 { get; set; } /// /// /// - public global::Apify.ListOfSchedulesVariant2? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type250 { get; set; } + public global::Apify.ListOfSchedulesResponse? Type250 { get; set; } /// /// /// - public global::Apify.ListOfSchedulesResponse? Type251 { get; set; } + public global::Apify.ScheduleActionRunInput? Type251 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunInput? Type252 { get; set; } + public global::Apify.ScheduleCreateActionRunActor? Type252 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionRunActor? Type253 { get; set; } + public global::Apify.ScheduleCreateActionRunActorTask? Type253 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionRunActorTask? Type254 { get; set; } + public global::Apify.ScheduleCreateAction? Type254 { get; set; } /// /// /// - public global::Apify.ScheduleCreateAction? Type255 { get; set; } + public global::Apify.ScheduleCreateActionDiscriminator? Type255 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionDiscriminator? Type256 { get; set; } + public global::Apify.ScheduleCreateActionDiscriminatorType? Type256 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionDiscriminatorType? Type257 { get; set; } + public global::Apify.CreateOrUpdateScheduleRequest? Type257 { get; set; } /// /// /// - public global::Apify.ScheduleCreate? Type258 { get; set; } + public global::System.Collections.Generic.IList? Type258 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type259 { get; set; } + public global::Apify.ScheduleActionRunActor? Type259 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunActor? Type260 { get; set; } + public global::Apify.ScheduleActionRunActorTask? Type260 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunActorTask? Type261 { get; set; } + public global::Apify.ScheduleAction? Type261 { get; set; } /// /// /// - public global::Apify.ScheduleAction? Type262 { get; set; } + public global::Apify.ScheduleActionDiscriminator? Type262 { get; set; } /// /// /// - public global::Apify.ScheduleActionDiscriminator? Type263 { get; set; } + public global::Apify.ScheduleActionDiscriminatorType? Type263 { get; set; } /// /// /// - public global::Apify.ScheduleActionDiscriminatorType? Type264 { get; set; } + public global::Apify.Schedule? Type264 { get; set; } /// /// /// - public global::Apify.Schedule? Type265 { get; set; } + public global::Apify.ScheduleVariant2? Type265 { get; set; } /// /// /// - public global::Apify.ScheduleVariant2? Type266 { get; set; } + public global::Apify.ScheduleVariant2Notifications? Type266 { get; set; } /// /// /// - public global::Apify.ScheduleVariant2Notifications? Type267 { get; set; } + public global::System.Collections.Generic.IList? Type267 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type268 { get; set; } + public global::Apify.ScheduleResponse? Type268 { get; set; } /// /// /// - public global::Apify.ScheduleResponse? Type269 { get; set; } + public global::Apify.ScheduleLogEntry? Type269 { get; set; } /// /// /// - public global::Apify.ScheduleInvoked? Type270 { get; set; } + public global::Apify.ScheduleLogResponse? Type270 { get; set; } /// /// /// - public global::Apify.ScheduleLogResponse? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::Apify.CurrentPricingInfo? Type272 { get; set; } /// /// /// - public global::Apify.CurrentPricingInfo? Type273 { get; set; } + public global::Apify.StoreActor? Type273 { get; set; } /// /// /// - public global::Apify.StoreListActor? Type274 { get; set; } + public global::Apify.ListOfStoreActors? Type274 { get; set; } /// /// /// - public global::Apify.ListOfStoreActors? Type275 { get; set; } + public global::Apify.ListOfStoreActorsVariant2? Type275 { get; set; } /// /// /// - public global::Apify.ListOfStoreActorsVariant2? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type277 { get; set; } + public global::Apify.ListOfStoreActorsResponse? Type277 { get; set; } /// /// /// - public global::Apify.ListOfActorsInStoreResponse? Type278 { get; set; } + public global::Apify.UserProfile? Type278 { get; set; } /// /// /// - public global::Apify.Profile? Type279 { get; set; } + public global::Apify.UserPublicInfo? Type279 { get; set; } /// /// /// - public global::Apify.UserPublicInfo? Type280 { get; set; } + public global::Apify.UserPublicInfoResponse? Type280 { get; set; } /// /// /// - public global::Apify.PublicUserDataResponse? Type281 { get; set; } + public global::Apify.ProxyGroup? Type281 { get; set; } /// /// /// - public global::Apify.ProxyGroup? Type282 { get; set; } + public global::Apify.ProxyResource? Type282 { get; set; } /// /// /// - public global::Apify.Proxy? Type283 { get; set; } + public global::System.Collections.Generic.IList? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public global::Apify.UserPlan? Type284 { get; set; } /// /// /// - public global::Apify.Plan? Type285 { get; set; } + public global::Apify.EffectivePlatformFeature? Type285 { get; set; } /// /// /// - public global::Apify.EffectivePlatformFeature? Type286 { get; set; } + public global::Apify.EffectivePlatformFeatures? Type286 { get; set; } /// /// /// - public global::Apify.EffectivePlatformFeatures? Type287 { get; set; } + public global::Apify.UserPrivateInfo? Type287 { get; set; } /// /// /// - public global::Apify.UserPrivateInfo? Type288 { get; set; } + public global::Apify.UserPrivateInfoResponse? Type288 { get; set; } /// /// /// - public global::Apify.PrivateUserDataResponse? Type289 { get; set; } + public global::Apify.UsageCycle? Type289 { get; set; } /// /// /// - public global::Apify.UsageCycle? Type290 { get; set; } + public global::Apify.PriceTier? Type290 { get; set; } /// /// /// - public global::Apify.PriceTiers? Type291 { get; set; } + public global::Apify.UsageItem? Type291 { get; set; } /// /// /// - public global::Apify.UsageItem? Type292 { get; set; } + public global::System.Collections.Generic.IList? Type292 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type293 { get; set; } + public global::System.Collections.Generic.Dictionary? Type293 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type294 { get; set; } + public global::Apify.DailyServiceUsage? Type294 { get; set; } /// /// /// - public global::Apify.DailyServiceUsages? Type295 { get; set; } + public global::Apify.MonthlyUsage? Type295 { get; set; } /// /// /// - public global::Apify.MonthlyUsage? Type296 { get; set; } + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type297 { get; set; } + public global::Apify.MonthlyUsageResponse? Type297 { get; set; } /// /// /// - public global::Apify.MonthlyUsageResponse? Type298 { get; set; } + public global::Apify.Limits? Type298 { get; set; } /// /// /// - public global::Apify.Limits? Type299 { get; set; } + public global::Apify.CurrentUsage? Type299 { get; set; } /// /// /// - public global::Apify.Current? Type300 { get; set; } + public global::Apify.AccountLimits? Type300 { get; set; } /// /// /// - public global::Apify.AccountLimits? Type301 { get; set; } + public global::Apify.AccountLimitsResponse? Type301 { get; set; } /// /// /// - public global::Apify.LimitsResponse? Type302 { get; set; } + public global::Apify.UpdateLimitsRequest? Type302 { get; set; } /// /// /// - public global::Apify.UpdateLimitsRequest? Type303 { get; set; } + public global::Apify.BrowserInfoResponse? Type303 { get; set; } /// /// /// - public global::Apify.BrowserInfoResponse? Type304 { get; set; } + public global::Apify.OneOf>? Type304 { get; set; } /// /// /// - public global::Apify.OneOf>? Type305 { get; set; } + public global::Apify.EncodeAndSignResult? Type305 { get; set; } /// /// /// - public global::Apify.EncodeAndSignData? Type306 { get; set; } + public global::Apify.EncodeAndSignResponse? Type306 { get; set; } /// /// /// - public global::Apify.EncodeAndSignResponse? Type307 { get; set; } + public global::Apify.DecodeAndVerifyRequest? Type307 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyRequest? Type308 { get; set; } + public global::Apify.DecodeAndVerifyResult? Type308 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyData? Type309 { get; set; } + public global::Apify.DecodeAndVerifyResponse? Type309 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyResponse? Type310 { get; set; } + public global::Apify.OneOf>? Type310 { get; set; } /// /// /// - public global::Apify.OneOf>? Type311 { get; set; } + public global::System.Collections.Generic.IList? Type311 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type312 { get; set; } + public global::Apify.AllOf? Type312 { get; set; } /// /// /// - public global::Apify.AllOf? Type313 { get; set; } + public global::System.Collections.Generic.IList? Type313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type314 { get; set; } + public global::System.Collections.Generic.IList? Type314 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type315 { get; set; } + public global::Apify.AllOf? Type315 { get; set; } /// /// /// - public global::Apify.AllOf? Type316 { get; set; } + public global::Apify.AllOf? Type316 { get; set; } /// /// /// - public global::Apify.AllOf? Type317 { get; set; } + public global::Apify.ActorsGetSortBy? Type317 { get; set; } /// /// /// - public global::Apify.ActorsGetSortBy? Type318 { get; set; } + public byte[]? Type318 { get; set; } /// /// /// - public byte[]? Type319 { get; set; } + public global::Apify.ActorsRunsPostForcePermissionLevel? Type319 { get; set; } /// /// /// - public global::Apify.ActorsRunsPostForcePermissionLevel? Type320 { get; set; } + public global::Apify.ActorRunsLastDatasetItemsPostContentEncoding? Type320 { get; set; } /// /// /// - public global::Apify.ActorRunsLastDatasetItemsPostContentEncoding? Type321 { get; set; } + public global::Apify.ActorRunsLastKeyValueStoreRecordPutContentEncoding? Type321 { get; set; } /// /// /// - public global::Apify.ActorRunsLastKeyValueStoreRecordPutContentEncoding? Type322 { get; set; } + public global::Apify.ActorRunsLastKeyValueStoreRecordPostContentEncoding? Type322 { get; set; } /// /// /// - public global::Apify.ActorRunsLastKeyValueStoreRecordPostContentEncoding? Type323 { get; set; } + public global::System.Collections.Generic.IList? Type323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type324 { get; set; } + public global::Apify.ActorRunsLastRequestQueueRequestsGetFilterItem? Type324 { get; set; } /// /// /// - public global::Apify.ActorRunsLastRequestQueueRequestsGetFilterItem? Type325 { get; set; } + public global::Apify.ActorTaskRunsLastDatasetItemsPostContentEncoding? Type325 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastDatasetItemsPostContentEncoding? Type326 { get; set; } + public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPutContentEncoding? Type326 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPutContentEncoding? Type327 { get; set; } + public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPostContentEncoding? Type327 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPostContentEncoding? Type328 { get; set; } + public global::System.Collections.Generic.IList? Type328 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type329 { get; set; } + public global::Apify.ActorTaskRunsLastRequestQueueRequestsGetFilterItem? Type329 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastRequestQueueRequestsGetFilterItem? Type330 { get; set; } + public global::Apify.ActorRunDatasetItemsPostContentEncoding? Type330 { get; set; } /// /// /// - public global::Apify.ActorRunDatasetItemsPostContentEncoding? Type331 { get; set; } + public global::Apify.ActorRunKeyValueStoreRecordPutContentEncoding? Type331 { get; set; } /// /// /// - public global::Apify.ActorRunKeyValueStoreRecordPutContentEncoding? Type332 { get; set; } + public global::Apify.ActorRunKeyValueStoreRecordPostContentEncoding? Type332 { get; set; } /// /// /// - public global::Apify.ActorRunKeyValueStoreRecordPostContentEncoding? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type334 { get; set; } + public global::Apify.ActorRunRequestQueueRequestsGetFilterItem? Type334 { get; set; } /// /// /// - public global::Apify.ActorRunRequestQueueRequestsGetFilterItem? Type335 { get; set; } + public global::Apify.KeyValueStoreRecordPutContentEncoding? Type335 { get; set; } /// /// /// - public global::Apify.KeyValueStoreRecordPutContentEncoding? Type336 { get; set; } + public global::Apify.KeyValueStoreRecordPostContentEncoding? Type336 { get; set; } /// /// /// - public global::Apify.KeyValueStoreRecordPostContentEncoding? Type337 { get; set; } + public global::Apify.DatasetItemsPostContentEncoding? Type337 { get; set; } /// /// /// - public global::Apify.DatasetItemsPostContentEncoding? Type338 { get; set; } + public global::System.Collections.Generic.IList? Type338 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type339 { get; set; } + public global::Apify.RequestQueueRequestsGetFilterItem? Type339 { get; set; } /// /// /// - public global::Apify.RequestQueueRequestsGetFilterItem? Type340 { get; set; } + public global::Apify.StoreGetPricingModel? Type340 { get; set; } /// /// /// - public global::Apify.StoreGetPricingModel? Type341 { get; set; } + public global::Apify.StoreGetResponseFormat? Type341 { get; set; } /// /// /// - public global::Apify.StoreGetResponseFormat? Type342 { get; set; } + public global::System.Collections.Generic.IList? Type342 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type343 { get; set; } + public global::Apify.ActorValidateInputPostResponse? Type343 { get; set; } /// /// /// - public global::Apify.ActorValidateInputPostResponse? Type344 { get; set; } + public global::Apify.AnyOf? Type344 { get; set; } /// /// /// - public global::Apify.AnyOf? Type345 { get; set; } + public global::Apify.ActorTaskGetResponse? Type345 { get; set; } /// /// /// - public global::Apify.ActorTaskGetResponse? Type346 { get; set; } + public global::Apify.ActorTaskPutResponse? Type346 { get; set; } /// /// /// - public global::Apify.ActorTaskPutResponse? Type347 { get; set; } + public global::Apify.ActorTaskWebhooksGetResponse? Type347 { get; set; } /// /// /// - public global::Apify.ActorTaskWebhooksGetResponse? Type348 { get; set; } + public global::Apify.AllOf? Type348 { get; set; } /// /// /// - public global::Apify.AllOf? Type349 { get; set; } + public global::Apify.ActorTaskWebhooksGetResponseData? Type349 { get; set; } /// /// /// - public global::Apify.ActorTaskWebhooksGetResponseData? Type350 { get; set; } + public global::System.Collections.Generic.IList? Type350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type351 { get; set; } + public global::Apify.ActorTaskRunsGetResponse? Type351 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsGetResponse? Type352 { get; set; } + public global::Apify.AllOf? Type352 { get; set; } /// /// /// - public global::Apify.AllOf? Type353 { get; set; } + public global::Apify.ActorTaskRunsGetResponseData? Type353 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsGetResponseData? Type354 { get; set; } + public global::Apify.ActorTaskRunsPostResponse? Type354 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsPostResponse? Type355 { get; set; } + public global::Apify.ActorTaskRunsLastGetResponse? Type355 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastGetResponse? Type356 { get; set; } - /// - /// - /// - public global::Apify.PostChargeRunResponse? Type357 { get; set; } + public global::Apify.PostChargeRunResponse? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType0 { get; set; } + public global::System.Collections.Generic.List? ListType0 { get; set; } /// /// /// @@ -1498,11 +1494,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// @@ -1510,19 +1506,19 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// @@ -1530,7 +1526,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// @@ -1538,7 +1534,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// @@ -1546,15 +1542,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// @@ -1566,7 +1562,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// @@ -1574,7 +1570,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// @@ -1586,11 +1582,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// @@ -1602,11 +1598,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// @@ -1614,11 +1610,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// @@ -1638,7 +1634,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// @@ -1662,6 +1658,6 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSAbort.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSAbort.JsonSerializerContext.g.cs index 143d2ccf..a884f951 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSAbort.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSAbort.JsonSerializerContext.g.cs @@ -50,14 +50,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -74,7 +74,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus?), TypeInfoPropertyName = "NullableActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorRunSAbortSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDataset.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDataset.JsonSerializerContext.g.cs index 600763fe..f5089695 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDataset.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDataset.JsonSerializerContext.g.cs @@ -27,17 +27,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Dataset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateDatasetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SchemaValidationErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetItemValidationError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidDatasetItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemResponseError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetFieldStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -46,7 +46,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunsLastDatasetItemsPostContentEncoding), TypeInfoPropertyName = "ActorRunsLastDatasetItemsPostContentEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] @@ -57,10 +57,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>?), TypeInfoPropertyName = "NullableOneOfPutItemsRequestIListPutItemsRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunsLastDatasetItemsPostContentEncoding?), TypeInfoPropertyName = "NullableActorRunsLastDatasetItemsPostContentEncoding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorRunSDefaultDatasetSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -116,10 +116,10 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDatasetClient.ActorRunsLastDatasetItemsPost.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDatasetClient.ActorRunsLastDatasetItemsPost.g.cs index b1a3bd66..492aaef5 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDatasetClient.ActorRunsLastDatasetItemsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDatasetClient.ActorRunsLastDatasetItemsPost.g.cs @@ -408,19 +408,19 @@ partial void ProcessActorRunsLastDatasetItemsPostResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::Apify.AnyOf? __value_400 = null; + global::Apify.AnyOf? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -429,7 +429,7 @@ partial void ProcessActorRunsLastDatasetItemsPostResponseContent( } - throw global::Apify.ApiException?>.Create( + throw global::Apify.ApiException?>.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStore.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStore.JsonSerializerContext.g.cs index c26af62c..2b94e605 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStore.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStore.JsonSerializerContext.g.cs @@ -26,9 +26,9 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateKeyValueStoreRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeys))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStoreClient.ActorRunsLastKeyValueStorePut.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStoreClient.ActorRunsLastKeyValueStorePut.g.cs index 8949c647..791e1d0a 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStoreClient.ActorRunsLastKeyValueStorePut.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStoreClient.ActorRunsLastKeyValueStorePut.g.cs @@ -30,14 +30,14 @@ partial void PrepareActorRunsLastKeyValueStorePutArguments( ref string actorId, ref string? status, ref global::Apify.RunOrigin? origin, - global::Apify.UpdateStoreRequest request); + global::Apify.UpdateKeyValueStoreRequest request); partial void PrepareActorRunsLastKeyValueStorePutRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string actorId, string? status, global::Apify.RunOrigin? origin, - global::Apify.UpdateStoreRequest request); + global::Apify.UpdateKeyValueStoreRequest request); partial void ProcessActorRunsLastKeyValueStorePutResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -68,7 +68,7 @@ partial void ProcessActorRunsLastKeyValueStorePutResponseContent( public async global::System.Threading.Tasks.Task ActorRunsLastKeyValueStorePutAsync( string actorId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, string? status = default, global::Apify.RunOrigin? origin = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -107,7 +107,7 @@ partial void ProcessActorRunsLastKeyValueStorePutResponseContent( public async global::System.Threading.Tasks.Task> ActorRunsLastKeyValueStorePutAsResponseAsync( string actorId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, string? status = default, global::Apify.RunOrigin? origin = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -804,7 +804,7 @@ partial void ProcessActorRunsLastKeyValueStorePutResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.UpdateStoreRequest + var __request = new global::Apify.UpdateKeyValueStoreRequest { Name = name, GeneralAccess = generalAccess, diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueue.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueue.JsonSerializerContext.g.cs index 6671b963..d099d623 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueue.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueue.JsonSerializerContext.g.cs @@ -27,29 +27,29 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestQueueRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod), TypeInfoPropertyName = "HttpMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestUserData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestBase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request), TypeInfoPropertyName = "Request2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource), TypeInfoPropertyName = "RequestResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResourceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId), TypeInfoPropertyName = "RequestWithoutId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestRegistration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddRequestResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddedRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraft))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UnprocessedRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteById))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteByUniqueKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete), TypeInfoPropertyName = "RequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteById))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteByUniqueKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete), TypeInfoPropertyName = "RequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestById))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestByUniqueKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest), TypeInfoPropertyName = "DeletedRequest2")] @@ -62,17 +62,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestLockInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProlongRequestLockResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedHeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadAndLockResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunsLastRequestQueueRequestsGetFilterItem), TypeInfoPropertyName = "ActorRunsLastRequestQueueRequestsGetFilterItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] @@ -84,21 +84,21 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod?), TypeInfoPropertyName = "NullableHttpMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request?), TypeInfoPropertyName = "NullableRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource?), TypeInfoPropertyName = "NullableRequestResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId?), TypeInfoPropertyName = "NullableRequestWithoutId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete?), TypeInfoPropertyName = "NullableRequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete?), TypeInfoPropertyName = "NullableRequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest?), TypeInfoPropertyName = "NullableDeletedRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf?), TypeInfoPropertyName = "NullableAllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunsLastRequestQueueRequestsGetFilterItem?), TypeInfoPropertyName = "NullableActorRunsLastRequestQueueRequestsGetFilterItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorRunSDefaultRequestQueueSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -147,9 +147,9 @@ private LastActorRunSDefaultRequestQueueSourceGenerationContext(global::System.T [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Apify.JsonConverters.RequestJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.RequestResourceJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.RequestWithoutIdJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.RequestDraftDeleteJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.RequestToDeleteJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.DeletedRequestJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadGet.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadGet.g.cs index 6bc1d346..a075053b 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadGet.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadGet.g.cs @@ -71,7 +71,7 @@ partial void ProcessActorRunsLastRequestQueueHeadGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ActorRunsLastRequestQueueHeadGetAsync( + public async global::System.Threading.Tasks.Task ActorRunsLastRequestQueueHeadGetAsync( string actorId, string? status = default, global::Apify.RunOrigin? origin = default, @@ -114,7 +114,7 @@ partial void ProcessActorRunsLastRequestQueueHeadGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueHeadGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueHeadGetAsResponseAsync( string actorId, string? status = default, global::Apify.RunOrigin? origin = default, @@ -669,9 +669,9 @@ partial void ProcessActorRunsLastRequestQueueHeadGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.HeadResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.RequestQueueHeadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -701,9 +701,9 @@ partial void ProcessActorRunsLastRequestQueueHeadGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.HeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.RequestQueueHeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadLockPost.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadLockPost.g.cs index 825421a9..6ecbdc9d 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadLockPost.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueHeadLockPost.g.cs @@ -77,7 +77,7 @@ partial void ProcessActorRunsLastRequestQueueHeadLockPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ActorRunsLastRequestQueueHeadLockPostAsync( + public async global::System.Threading.Tasks.Task ActorRunsLastRequestQueueHeadLockPostAsync( string actorId, double lockSecs, string? status = default, @@ -126,7 +126,7 @@ partial void ProcessActorRunsLastRequestQueueHeadLockPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueHeadLockPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueHeadLockPostAsResponseAsync( string actorId, double lockSecs, string? status = default, @@ -648,9 +648,9 @@ partial void ProcessActorRunsLastRequestQueueHeadLockPostResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.HeadAndLockResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.LockedRequestQueueHeadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -680,9 +680,9 @@ partial void ProcessActorRunsLastRequestQueueHeadLockPostResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.HeadAndLockResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.LockedRequestQueueHeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueRequestsBatchDelete.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueRequestsBatchDelete.g.cs index 6de4f887..01c4e3af 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueRequestsBatchDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueueClient.ActorRunsLastRequestQueueRequestsBatchDelete.g.cs @@ -32,7 +32,7 @@ partial void PrepareActorRunsLastRequestQueueRequestsBatchDeleteArguments( ref global::Apify.RunOrigin? origin, ref string contentType, ref string? clientKey, - global::System.Collections.Generic.IList request); + global::System.Collections.Generic.IList request); partial void PrepareActorRunsLastRequestQueueRequestsBatchDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, @@ -41,7 +41,7 @@ partial void PrepareActorRunsLastRequestQueueRequestsBatchDeleteRequest( global::Apify.RunOrigin? origin, string contentType, string? clientKey, - global::System.Collections.Generic.IList request); + global::System.Collections.Generic.IList request); partial void ProcessActorRunsLastRequestQueueRequestsBatchDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -75,7 +75,7 @@ partial void ProcessActorRunsLastRequestQueueRequestsBatchDeleteResponseContent( public async global::System.Threading.Tasks.Task ActorRunsLastRequestQueueRequestsBatchDeleteAsync( string actorId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string? status = default, global::Apify.RunOrigin? origin = default, string contentType = "application/json", @@ -121,7 +121,7 @@ partial void ProcessActorRunsLastRequestQueueRequestsBatchDeleteResponseContent( public async global::System.Threading.Tasks.Task> ActorRunsLastRequestQueueRequestsBatchDeleteAsResponseAsync( string actorId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string? status = default, global::Apify.RunOrigin? origin = default, string contentType = "application/json", diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSMetamorph.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSMetamorph.JsonSerializerContext.g.cs index 85413a35..8bd360e0 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSMetamorph.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSMetamorph.JsonSerializerContext.g.cs @@ -50,14 +50,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -74,7 +74,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus?), TypeInfoPropertyName = "NullableActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorRunSMetamorphSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSReboot.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSReboot.JsonSerializerContext.g.cs index 060b52c2..5ed7ef1a 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSReboot.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSReboot.JsonSerializerContext.g.cs @@ -50,14 +50,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -74,7 +74,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus?), TypeInfoPropertyName = "NullableActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorRunSRebootSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSAbort.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSAbort.JsonSerializerContext.g.cs index fe2c2fce..db36ff89 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSAbort.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSAbort.JsonSerializerContext.g.cs @@ -50,14 +50,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -74,7 +74,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus?), TypeInfoPropertyName = "NullableActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorTaskRunSAbortSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDataset.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDataset.JsonSerializerContext.g.cs index ad65b60c..af9b6e97 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDataset.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDataset.JsonSerializerContext.g.cs @@ -27,17 +27,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Dataset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateDatasetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SchemaValidationErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetItemValidationError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidDatasetItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemResponseError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetFieldStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -46,7 +46,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsLastDatasetItemsPostContentEncoding), TypeInfoPropertyName = "ActorTaskRunsLastDatasetItemsPostContentEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] @@ -57,10 +57,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>?), TypeInfoPropertyName = "NullableOneOfPutItemsRequestIListPutItemsRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsLastDatasetItemsPostContentEncoding?), TypeInfoPropertyName = "NullableActorTaskRunsLastDatasetItemsPostContentEncoding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorTaskRunSDefaultDatasetSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -116,10 +116,10 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDatasetClient.ActorTaskRunsLastDatasetItemsPost.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDatasetClient.ActorTaskRunsLastDatasetItemsPost.g.cs index 40539bec..f0a059d0 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDatasetClient.ActorTaskRunsLastDatasetItemsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDatasetClient.ActorTaskRunsLastDatasetItemsPost.g.cs @@ -408,19 +408,19 @@ partial void ProcessActorTaskRunsLastDatasetItemsPostResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::Apify.AnyOf? __value_400 = null; + global::Apify.AnyOf? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -429,7 +429,7 @@ partial void ProcessActorTaskRunsLastDatasetItemsPostResponseContent( } - throw global::Apify.ApiException?>.Create( + throw global::Apify.ApiException?>.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStore.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStore.JsonSerializerContext.g.cs index 5f8fe53c..996d69e5 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStore.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStore.JsonSerializerContext.g.cs @@ -26,9 +26,9 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateKeyValueStoreRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeys))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStoreClient.ActorTaskRunsLastKeyValueStorePut.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStoreClient.ActorTaskRunsLastKeyValueStorePut.g.cs index 662e7036..2f523349 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStoreClient.ActorTaskRunsLastKeyValueStorePut.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStoreClient.ActorTaskRunsLastKeyValueStorePut.g.cs @@ -30,14 +30,14 @@ partial void PrepareActorTaskRunsLastKeyValueStorePutArguments( ref string actorTaskId, ref string? status, ref global::Apify.RunOrigin? origin, - global::Apify.UpdateStoreRequest request); + global::Apify.UpdateKeyValueStoreRequest request); partial void PrepareActorTaskRunsLastKeyValueStorePutRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string actorTaskId, string? status, global::Apify.RunOrigin? origin, - global::Apify.UpdateStoreRequest request); + global::Apify.UpdateKeyValueStoreRequest request); partial void ProcessActorTaskRunsLastKeyValueStorePutResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -67,7 +67,7 @@ partial void ProcessActorTaskRunsLastKeyValueStorePutResponseContent( public async global::System.Threading.Tasks.Task ActorTaskRunsLastKeyValueStorePutAsync( string actorTaskId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, string? status = default, global::Apify.RunOrigin? origin = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -105,7 +105,7 @@ partial void ProcessActorTaskRunsLastKeyValueStorePutResponseContent( public async global::System.Threading.Tasks.Task> ActorTaskRunsLastKeyValueStorePutAsResponseAsync( string actorTaskId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, string? status = default, global::Apify.RunOrigin? origin = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -801,7 +801,7 @@ partial void ProcessActorTaskRunsLastKeyValueStorePutResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.UpdateStoreRequest + var __request = new global::Apify.UpdateKeyValueStoreRequest { Name = name, GeneralAccess = generalAccess, diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueue.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueue.JsonSerializerContext.g.cs index b83c1ceb..5c256ffc 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueue.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueue.JsonSerializerContext.g.cs @@ -27,29 +27,29 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin), TypeInfoPropertyName = "RunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestQueueRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod), TypeInfoPropertyName = "HttpMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestUserData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestBase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request), TypeInfoPropertyName = "Request2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource), TypeInfoPropertyName = "RequestResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResourceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId), TypeInfoPropertyName = "RequestWithoutId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestRegistration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddRequestResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddedRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraft))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UnprocessedRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteById))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteByUniqueKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete), TypeInfoPropertyName = "RequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteById))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteByUniqueKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete), TypeInfoPropertyName = "RequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestById))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestByUniqueKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest), TypeInfoPropertyName = "DeletedRequest2")] @@ -62,17 +62,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestLockInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProlongRequestLockResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedHeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadAndLockResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsLastRequestQueueRequestsGetFilterItem), TypeInfoPropertyName = "ActorTaskRunsLastRequestQueueRequestsGetFilterItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] @@ -84,21 +84,21 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod?), TypeInfoPropertyName = "NullableHttpMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request?), TypeInfoPropertyName = "NullableRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource?), TypeInfoPropertyName = "NullableRequestResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId?), TypeInfoPropertyName = "NullableRequestWithoutId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete?), TypeInfoPropertyName = "NullableRequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete?), TypeInfoPropertyName = "NullableRequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest?), TypeInfoPropertyName = "NullableDeletedRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf?), TypeInfoPropertyName = "NullableAllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsLastRequestQueueRequestsGetFilterItem?), TypeInfoPropertyName = "NullableActorTaskRunsLastRequestQueueRequestsGetFilterItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorTaskRunSDefaultRequestQueueSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -147,9 +147,9 @@ private LastActorTaskRunSDefaultRequestQueueSourceGenerationContext(global::Syst [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Apify.JsonConverters.RequestJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.RequestResourceJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.RequestWithoutIdJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.RequestDraftDeleteJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.RequestToDeleteJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.DeletedRequestJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadGet.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadGet.g.cs index 6aab6619..27ad0e80 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadGet.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadGet.g.cs @@ -71,7 +71,7 @@ partial void ProcessActorTaskRunsLastRequestQueueHeadGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueHeadGetAsync( + public async global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueHeadGetAsync( string actorTaskId, string? status = default, global::Apify.RunOrigin? origin = default, @@ -114,7 +114,7 @@ partial void ProcessActorTaskRunsLastRequestQueueHeadGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueHeadGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueHeadGetAsResponseAsync( string actorTaskId, string? status = default, global::Apify.RunOrigin? origin = default, @@ -669,9 +669,9 @@ partial void ProcessActorTaskRunsLastRequestQueueHeadGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.HeadResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.RequestQueueHeadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -701,9 +701,9 @@ partial void ProcessActorTaskRunsLastRequestQueueHeadGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.HeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.RequestQueueHeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadLockPost.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadLockPost.g.cs index 3a05d993..e36978f2 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadLockPost.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueHeadLockPost.g.cs @@ -77,7 +77,7 @@ partial void ProcessActorTaskRunsLastRequestQueueHeadLockPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueHeadLockPostAsync( + public async global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueHeadLockPostAsync( string actorTaskId, double lockSecs, string? status = default, @@ -126,7 +126,7 @@ partial void ProcessActorTaskRunsLastRequestQueueHeadLockPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueHeadLockPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueHeadLockPostAsResponseAsync( string actorTaskId, double lockSecs, string? status = default, @@ -648,9 +648,9 @@ partial void ProcessActorTaskRunsLastRequestQueueHeadLockPostResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.HeadAndLockResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.LockedRequestQueueHeadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -680,9 +680,9 @@ partial void ProcessActorTaskRunsLastRequestQueueHeadLockPostResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.HeadAndLockResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.LockedRequestQueueHeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueRequestsBatchDelete.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueRequestsBatchDelete.g.cs index 332683cc..c0949e41 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueRequestsBatchDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueueClient.ActorTaskRunsLastRequestQueueRequestsBatchDelete.g.cs @@ -32,7 +32,7 @@ partial void PrepareActorTaskRunsLastRequestQueueRequestsBatchDeleteArguments( ref global::Apify.RunOrigin? origin, ref string contentType, ref string? clientKey, - global::System.Collections.Generic.IList request); + global::System.Collections.Generic.IList request); partial void PrepareActorTaskRunsLastRequestQueueRequestsBatchDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, @@ -41,7 +41,7 @@ partial void PrepareActorTaskRunsLastRequestQueueRequestsBatchDeleteRequest( global::Apify.RunOrigin? origin, string contentType, string? clientKey, - global::System.Collections.Generic.IList request); + global::System.Collections.Generic.IList request); partial void ProcessActorTaskRunsLastRequestQueueRequestsBatchDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -75,7 +75,7 @@ partial void ProcessActorTaskRunsLastRequestQueueRequestsBatchDeleteResponseCont public async global::System.Threading.Tasks.Task ActorTaskRunsLastRequestQueueRequestsBatchDeleteAsync( string actorTaskId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string? status = default, global::Apify.RunOrigin? origin = default, string contentType = "application/json", @@ -121,7 +121,7 @@ partial void ProcessActorTaskRunsLastRequestQueueRequestsBatchDeleteResponseCont public async global::System.Threading.Tasks.Task> ActorTaskRunsLastRequestQueueRequestsBatchDeleteAsResponseAsync( string actorTaskId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string? status = default, global::Apify.RunOrigin? origin = default, string contentType = "application/json", diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSMetamorph.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSMetamorph.JsonSerializerContext.g.cs index 2280f478..407440f7 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSMetamorph.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSMetamorph.JsonSerializerContext.g.cs @@ -50,14 +50,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -74,7 +74,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus?), TypeInfoPropertyName = "NullableActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorTaskRunSMetamorphSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSReboot.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSReboot.JsonSerializerContext.g.cs index b6a1597c..ed830d1d 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSReboot.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSReboot.JsonSerializerContext.g.cs @@ -50,14 +50,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunUsageUsd))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Metamorph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunMetamorphEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIds))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsDatasets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsKeyValueStores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStorageIdsRequestQueues))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -74,7 +74,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorJobStatus?), TypeInfoPropertyName = "NullableActorJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunOrigin?), TypeInfoPropertyName = "NullableRunOrigin2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LastActorTaskRunSRebootSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.Models.AccountLimits.g.cs b/src/libs/Apify/Generated/Apify.Models.AccountLimits.g.cs index 5b631b1f..f28951d0 100644 --- a/src/libs/Apify/Generated/Apify.Models.AccountLimits.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.AccountLimits.g.cs @@ -27,7 +27,7 @@ public sealed partial class AccountLimits /// [global::System.Text.Json.Serialization.JsonPropertyName("current")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.Current Current { get; set; } + public required global::Apify.CurrentUsage Current { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -47,7 +47,7 @@ public sealed partial class AccountLimits public AccountLimits( global::Apify.UsageCycle monthlyUsageCycle, global::Apify.Limits limits, - global::Apify.Current current) + global::Apify.CurrentUsage current) { this.MonthlyUsageCycle = monthlyUsageCycle ?? throw new global::System.ArgumentNullException(nameof(monthlyUsageCycle)); this.Limits = limits ?? throw new global::System.ArgumentNullException(nameof(limits)); diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleShortVariant2.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.AccountLimitsResponse.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.ScheduleShortVariant2.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.AccountLimitsResponse.Json.g.cs index 327e0e14..1b7bd57e 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleShortVariant2.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.AccountLimitsResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ScheduleShortVariant2 + public sealed partial class AccountLimitsResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleShortVariant2? FromJson( + public static global::Apify.AccountLimitsResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleShortVariant2), - jsonSerializerContext) as global::Apify.ScheduleShortVariant2; + typeof(global::Apify.AccountLimitsResponse), + jsonSerializerContext) as global::Apify.AccountLimitsResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleShortVariant2? FromJson( + public static global::Apify.AccountLimitsResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleShortVariant2? FromJson( + public static global::Apify.AccountLimitsResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleShortVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleShortVariant2; + typeof(global::Apify.AccountLimitsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.AccountLimitsResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.LimitsResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.AccountLimitsResponse.g.cs similarity index 78% rename from src/libs/Apify/Generated/Apify.Models.LimitsResponse.g.cs rename to src/libs/Apify/Generated/Apify.Models.AccountLimitsResponse.g.cs index bbc7ec93..c9710ee7 100644 --- a/src/libs/Apify/Generated/Apify.Models.LimitsResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.AccountLimitsResponse.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class LimitsResponse + public sealed partial class AccountLimitsResponse { /// /// @@ -22,22 +22,22 @@ public sealed partial class LimitsResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public LimitsResponse( + public AccountLimitsResponse( global::Apify.AccountLimits data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public LimitsResponse() + public AccountLimitsResponse() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ActorListItem.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorListItem.Json.g.cs new file mode 100644 index 00000000..144f3ad3 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorListItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ActorListItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.ActorListItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ActorListItem), + jsonSerializerContext) as global::Apify.ActorListItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ActorListItem? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.ActorListItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.ActorListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ActorListItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.ActorShort.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorListItem.g.cs similarity index 92% rename from src/libs/Apify/Generated/Apify.Models.ActorShort.g.cs rename to src/libs/Apify/Generated/Apify.Models.ActorListItem.g.cs index 75cc3d5c..455baa7e 100644 --- a/src/libs/Apify/Generated/Apify.Models.ActorShort.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ActorListItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ActorShort + public sealed partial class ActorListItem { /// /// @@ -62,7 +62,7 @@ public sealed partial class ActorShort public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -74,7 +74,7 @@ public sealed partial class ActorShort #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ActorShort( + public ActorListItem( string id, global::System.DateTime createdAt, global::System.DateTime modifiedAt, @@ -93,9 +93,9 @@ public ActorShort( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ActorShort() + public ActorListItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ActorResource.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorResource.Json.g.cs new file mode 100644 index 00000000..dd821561 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ActorResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.ActorResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ActorResource), + jsonSerializerContext) as global::Apify.ActorResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ActorResource? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.ActorResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.ActorResource), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ActorResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.Actor.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorResource.g.cs similarity index 98% rename from src/libs/Apify/Generated/Apify.Models.Actor.g.cs rename to src/libs/Apify/Generated/Apify.Models.ActorResource.g.cs index 363881c9..35e23ffd 100644 --- a/src/libs/Apify/Generated/Apify.Models.Actor.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ActorResource.g.cs @@ -8,7 +8,7 @@ namespace Apify /// /// /// - public sealed partial class Actor + public sealed partial class ActorResource { /// /// The ID of the Actor. @@ -218,7 +218,7 @@ public sealed partial class Actor public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The ID of the Actor. @@ -307,7 +307,7 @@ public sealed partial class Actor #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Actor( + public ActorResource( string id, string userId, string name, @@ -372,9 +372,9 @@ public Actor( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Actor() + public ActorResource() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ActorResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorResponse.g.cs index 2743f889..a797ab40 100644 --- a/src/libs/Apify/Generated/Apify.Models.ActorResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ActorResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class ActorResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.Actor Data { get; set; } + public required global::Apify.ActorResource Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ActorResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ActorResponse( - global::Apify.Actor data) + global::Apify.ActorResource data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ActorTaskRunsGetResponseData.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorTaskRunsGetResponseData.g.cs index 0e1024b3..4edcbbb4 100644 --- a/src/libs/Apify/Generated/Apify.Models.ActorTaskRunsGetResponseData.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ActorTaskRunsGetResponseData.g.cs @@ -13,7 +13,7 @@ public sealed partial class ActorTaskRunsGetResponseData /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ActorTaskRunsGetResponseData [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ActorTaskRunsGetResponseData( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ActorTaskWebhooksGetResponseData.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorTaskWebhooksGetResponseData.g.cs index 26329637..349b32cf 100644 --- a/src/libs/Apify/Generated/Apify.Models.ActorTaskWebhooksGetResponseData.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ActorTaskWebhooksGetResponseData.g.cs @@ -13,7 +13,7 @@ public sealed partial class ActorTaskWebhooksGetResponseData /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ActorTaskWebhooksGetResponseData [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ActorTaskWebhooksGetResponseData( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.BatchAddResult.g.cs b/src/libs/Apify/Generated/Apify.Models.BatchAddResult.g.cs index c45f9515..a7e762ca 100644 --- a/src/libs/Apify/Generated/Apify.Models.BatchAddResult.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BatchAddResult.g.cs @@ -20,7 +20,7 @@ public sealed partial class BatchAddResult /// [global::System.Text.Json.Serialization.JsonPropertyName("unprocessedRequests")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList UnprocessedRequests { get; set; } + public required global::System.Collections.Generic.IList UnprocessedRequests { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +42,7 @@ public sealed partial class BatchAddResult #endif public BatchAddResult( global::System.Collections.Generic.IList processedRequests, - global::System.Collections.Generic.IList unprocessedRequests) + global::System.Collections.Generic.IList unprocessedRequests) { this.ProcessedRequests = processedRequests ?? throw new global::System.ArgumentNullException(nameof(processedRequests)); this.UnprocessedRequests = unprocessedRequests ?? throw new global::System.ArgumentNullException(nameof(unprocessedRequests)); diff --git a/src/libs/Apify/Generated/Apify.Models.BatchDeleteResult.g.cs b/src/libs/Apify/Generated/Apify.Models.BatchDeleteResult.g.cs index 3cd99875..d6e9a232 100644 --- a/src/libs/Apify/Generated/Apify.Models.BatchDeleteResult.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BatchDeleteResult.g.cs @@ -20,7 +20,7 @@ public sealed partial class BatchDeleteResult /// [global::System.Text.Json.Serialization.JsonPropertyName("unprocessedRequests")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList UnprocessedRequests { get; set; } + public required global::System.Collections.Generic.IList UnprocessedRequests { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,7 +42,7 @@ public sealed partial class BatchDeleteResult #endif public BatchDeleteResult( global::System.Collections.Generic.IList processedRequests, - global::System.Collections.Generic.IList unprocessedRequests) + global::System.Collections.Generic.IList unprocessedRequests) { this.ProcessedRequests = processedRequests ?? throw new global::System.ArgumentNullException(nameof(processedRequests)); this.UnprocessedRequests = unprocessedRequests ?? throw new global::System.ArgumentNullException(nameof(unprocessedRequests)); diff --git a/src/libs/Apify/Generated/Apify.Models.Build.g.cs b/src/libs/Apify/Generated/Apify.Models.Build.g.cs index 9b5e9e97..12c53ee7 100644 --- a/src/libs/Apify/Generated/Apify.Models.Build.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.Build.g.cs @@ -57,7 +57,7 @@ public sealed partial class Build /// [global::System.Text.Json.Serialization.JsonPropertyName("meta")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.BuildsMeta Meta { get; set; } + public required global::Apify.BuildMeta Meta { get; set; } /// /// @@ -172,7 +172,7 @@ public Build( string userId, global::System.DateTime startedAt, global::Apify.ActorJobStatus status, - global::Apify.BuildsMeta meta, + global::Apify.BuildMeta meta, string buildNumber, global::System.DateTime? finishedAt, global::Apify.BuildStats? stats, diff --git a/src/libs/Apify/Generated/Apify.Models.BuildListItem.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildListItem.Json.g.cs new file mode 100644 index 00000000..ab40629b --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.BuildListItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class BuildListItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.BuildListItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.BuildListItem), + jsonSerializerContext) as global::Apify.BuildListItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.BuildListItem? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.BuildListItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.BuildListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.BuildListItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.BuildShort.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildListItem.g.cs similarity index 92% rename from src/libs/Apify/Generated/Apify.Models.BuildShort.g.cs rename to src/libs/Apify/Generated/Apify.Models.BuildListItem.g.cs index d4476010..9540dcc3 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildShort.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BuildListItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class BuildShort + public sealed partial class BuildListItem { /// /// @@ -72,7 +72,7 @@ public sealed partial class BuildShort /// /// [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public global::Apify.BuildsMeta? Meta { get; set; } + public global::Apify.BuildMeta? Meta { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -81,7 +81,7 @@ public sealed partial class BuildShort public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -98,7 +98,7 @@ public sealed partial class BuildShort #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BuildShort( + public BuildListItem( string id, global::Apify.ActorJobStatus status, global::System.DateTime startedAt, @@ -108,7 +108,7 @@ public BuildShort( string? userId, global::System.DateTime? finishedAt, int? buildNumberInt, - global::Apify.BuildsMeta? meta) + global::Apify.BuildMeta? meta) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.ActId = actId; @@ -123,9 +123,9 @@ public BuildShort( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BuildShort() + public BuildListItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.Current.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildMeta.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.Current.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.BuildMeta.Json.g.cs index adacf3ac..8deee124 100644 --- a/src/libs/Apify/Generated/Apify.Models.Current.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BuildMeta.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class Current + public sealed partial class BuildMeta { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.Current? FromJson( + public static global::Apify.BuildMeta? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.Current), - jsonSerializerContext) as global::Apify.Current; + typeof(global::Apify.BuildMeta), + jsonSerializerContext) as global::Apify.BuildMeta; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.Current? FromJson( + public static global::Apify.BuildMeta? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.Current? FromJson( + public static global::Apify.BuildMeta? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.Current), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Current; + typeof(global::Apify.BuildMeta), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.BuildMeta; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.BuildsMeta.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildMeta.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.BuildsMeta.g.cs rename to src/libs/Apify/Generated/Apify.Models.BuildMeta.g.cs index f48298ff..788c2ae0 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildsMeta.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BuildMeta.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class BuildsMeta + public sealed partial class BuildMeta { /// /// @@ -35,7 +35,7 @@ public sealed partial class BuildsMeta public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -47,7 +47,7 @@ public sealed partial class BuildsMeta #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BuildsMeta( + public BuildMeta( global::Apify.RunOrigin origin, string? clientIp, string? userAgent) @@ -58,9 +58,9 @@ public BuildsMeta( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BuildsMeta() + public BuildMeta() { } diff --git a/src/libs/Apify/Generated/Apify.Models.BuildsMeta.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildsMeta.Json.g.cs deleted file mode 100644 index 742bbd1d..00000000 --- a/src/libs/Apify/Generated/Apify.Models.BuildsMeta.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class BuildsMeta - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.BuildsMeta? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.BuildsMeta), - jsonSerializerContext) as global::Apify.BuildsMeta; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.BuildsMeta? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.BuildsMeta? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.BuildsMeta), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.BuildsMeta; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteByUniqueKey.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.Json.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteByUniqueKey.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.Json.g.cs index a2c02653..f078bf34 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteByUniqueKey.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class RequestDraftDeleteByUniqueKey + public sealed partial class CreateOrUpdateScheduleRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.RequestDraftDeleteByUniqueKey? FromJson( + public static global::Apify.CreateOrUpdateScheduleRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.RequestDraftDeleteByUniqueKey), - jsonSerializerContext) as global::Apify.RequestDraftDeleteByUniqueKey; + typeof(global::Apify.CreateOrUpdateScheduleRequest), + jsonSerializerContext) as global::Apify.CreateOrUpdateScheduleRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.RequestDraftDeleteByUniqueKey? FromJson( + public static global::Apify.CreateOrUpdateScheduleRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.RequestDraftDeleteByUniqueKey? FromJson( + public static global::Apify.CreateOrUpdateScheduleRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.RequestDraftDeleteByUniqueKey), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestDraftDeleteByUniqueKey; + typeof(global::Apify.CreateOrUpdateScheduleRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.CreateOrUpdateScheduleRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleCreate.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.ScheduleCreate.g.cs rename to src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.g.cs index b2d8e901..450ba253 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleCreate.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CreateOrUpdateScheduleRequest.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ScheduleCreate + public sealed partial class CreateOrUpdateScheduleRequest { /// /// @@ -63,7 +63,7 @@ public sealed partial class ScheduleCreate public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -76,7 +76,7 @@ public sealed partial class ScheduleCreate #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ScheduleCreate( + public CreateOrUpdateScheduleRequest( string? name, bool? isEnabled, bool? isExclusive, @@ -97,9 +97,9 @@ public ScheduleCreate( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ScheduleCreate() + public CreateOrUpdateScheduleRequest() { } diff --git a/src/libs/Apify/Generated/Apify.Models.PutItemResponseError.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateWebhookRequest.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.PutItemResponseError.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.CreateWebhookRequest.Json.g.cs index 7e5d586c..3e383e77 100644 --- a/src/libs/Apify/Generated/Apify.Models.PutItemResponseError.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CreateWebhookRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class PutItemResponseError + public sealed partial class CreateWebhookRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.PutItemResponseError? FromJson( + public static global::Apify.CreateWebhookRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.PutItemResponseError), - jsonSerializerContext) as global::Apify.PutItemResponseError; + typeof(global::Apify.CreateWebhookRequest), + jsonSerializerContext) as global::Apify.CreateWebhookRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.PutItemResponseError? FromJson( + public static global::Apify.CreateWebhookRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.PutItemResponseError? FromJson( + public static global::Apify.CreateWebhookRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.PutItemResponseError), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.PutItemResponseError; + typeof(global::Apify.CreateWebhookRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.CreateWebhookRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookCreate.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateWebhookRequest.g.cs similarity index 94% rename from src/libs/Apify/Generated/Apify.Models.WebhookCreate.g.cs rename to src/libs/Apify/Generated/Apify.Models.CreateWebhookRequest.g.cs index ec6bdc7f..0b0ebaad 100644 --- a/src/libs/Apify/Generated/Apify.Models.WebhookCreate.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CreateWebhookRequest.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class WebhookCreate + public sealed partial class CreateWebhookRequest { /// /// @@ -84,7 +84,7 @@ public sealed partial class WebhookCreate public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -100,7 +100,7 @@ public sealed partial class WebhookCreate #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WebhookCreate( + public CreateWebhookRequest( global::System.Collections.Generic.IList eventTypes, global::Apify.WebhookCondition condition, string requestUrl, @@ -127,9 +127,9 @@ public WebhookCreate( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WebhookCreate() + public CreateWebhookRequest() { } diff --git a/src/libs/Apify/Generated/Apify.Models.BuildTag.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.CurrentUsage.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.BuildTag.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.CurrentUsage.Json.g.cs index bead199f..4585f600 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildTag.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CurrentUsage.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class BuildTag + public sealed partial class CurrentUsage { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.BuildTag? FromJson( + public static global::Apify.CurrentUsage? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.BuildTag), - jsonSerializerContext) as global::Apify.BuildTag; + typeof(global::Apify.CurrentUsage), + jsonSerializerContext) as global::Apify.CurrentUsage; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.BuildTag? FromJson( + public static global::Apify.CurrentUsage? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.BuildTag? FromJson( + public static global::Apify.CurrentUsage? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.BuildTag), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.BuildTag; + typeof(global::Apify.CurrentUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.CurrentUsage; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.Current.g.cs b/src/libs/Apify/Generated/Apify.Models.CurrentUsage.g.cs similarity index 97% rename from src/libs/Apify/Generated/Apify.Models.Current.g.cs rename to src/libs/Apify/Generated/Apify.Models.CurrentUsage.g.cs index f7edae6d..9a59ea4b 100644 --- a/src/libs/Apify/Generated/Apify.Models.Current.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CurrentUsage.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class Current + public sealed partial class CurrentUsage { /// /// @@ -91,7 +91,7 @@ public sealed partial class Current public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -107,7 +107,7 @@ public sealed partial class Current #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Current( + public CurrentUsage( double monthlyUsageUsd, double monthlyActorComputeUnits, double monthlyExternalDataTransferGbytes, @@ -134,9 +134,9 @@ public Current( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Current() + public CurrentUsage() { } diff --git a/src/libs/Apify/Generated/Apify.Models.DailyServiceUsages.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.DailyServiceUsage.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.DailyServiceUsages.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.DailyServiceUsage.Json.g.cs index 54aa7265..309d77a7 100644 --- a/src/libs/Apify/Generated/Apify.Models.DailyServiceUsages.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DailyServiceUsage.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class DailyServiceUsages + public sealed partial class DailyServiceUsage { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.DailyServiceUsages? FromJson( + public static global::Apify.DailyServiceUsage? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.DailyServiceUsages), - jsonSerializerContext) as global::Apify.DailyServiceUsages; + typeof(global::Apify.DailyServiceUsage), + jsonSerializerContext) as global::Apify.DailyServiceUsage; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.DailyServiceUsages? FromJson( + public static global::Apify.DailyServiceUsage? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.DailyServiceUsages? FromJson( + public static global::Apify.DailyServiceUsage? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.DailyServiceUsages), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DailyServiceUsages; + typeof(global::Apify.DailyServiceUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DailyServiceUsage; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.DailyServiceUsages.g.cs b/src/libs/Apify/Generated/Apify.Models.DailyServiceUsage.g.cs similarity index 94% rename from src/libs/Apify/Generated/Apify.Models.DailyServiceUsages.g.cs rename to src/libs/Apify/Generated/Apify.Models.DailyServiceUsage.g.cs index 8fb216a9..b5351791 100644 --- a/src/libs/Apify/Generated/Apify.Models.DailyServiceUsages.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DailyServiceUsage.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class DailyServiceUsages + public sealed partial class DailyServiceUsage { /// /// @@ -38,7 +38,7 @@ public sealed partial class DailyServiceUsages public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -49,7 +49,7 @@ public sealed partial class DailyServiceUsages #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DailyServiceUsages( + public DailyServiceUsage( global::System.DateTime date, global::System.Collections.Generic.Dictionary serviceUsage, double totalUsageCreditsUsd) @@ -60,9 +60,9 @@ public DailyServiceUsages( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DailyServiceUsages() + public DailyServiceUsage() { } diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationError.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationError.Json.g.cs new file mode 100644 index 00000000..215e0de1 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationError.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class DatasetItemValidationError + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.DatasetItemValidationError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.DatasetItemValidationError), + jsonSerializerContext) as global::Apify.DatasetItemValidationError; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.DatasetItemValidationError? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.DatasetItemValidationError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.DatasetItemValidationError), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DatasetItemValidationError; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.ValidationError.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationError.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.ValidationError.g.cs rename to src/libs/Apify/Generated/Apify.Models.DatasetItemValidationError.g.cs index 8210a03a..7568e239 100644 --- a/src/libs/Apify/Generated/Apify.Models.ValidationError.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationError.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ValidationError + public sealed partial class DatasetItemValidationError { /// /// The path to the instance being validated. @@ -45,7 +45,7 @@ public sealed partial class ValidationError public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The path to the instance being validated. @@ -65,7 +65,7 @@ public sealed partial class ValidationError #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ValidationError( + public DatasetItemValidationError( string? instancePath, string? schemaPath, string? keyword, @@ -80,9 +80,9 @@ public ValidationError( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ValidationError() + public DatasetItemValidationError() { } diff --git a/src/libs/Apify/Generated/Apify.Models.Dataset.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationErrorParams.Json.g.cs similarity index 86% rename from src/libs/Apify/Generated/Apify.Models.Dataset.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.DatasetItemValidationErrorParams.Json.g.cs index 06fee042..e862dc43 100644 --- a/src/libs/Apify/Generated/Apify.Models.Dataset.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationErrorParams.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class Dataset + public sealed partial class DatasetItemValidationErrorParams { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.Dataset? FromJson( + public static global::Apify.DatasetItemValidationErrorParams? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.Dataset), - jsonSerializerContext) as global::Apify.Dataset; + typeof(global::Apify.DatasetItemValidationErrorParams), + jsonSerializerContext) as global::Apify.DatasetItemValidationErrorParams; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.Dataset? FromJson( + public static global::Apify.DatasetItemValidationErrorParams? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.Dataset? FromJson( + public static global::Apify.DatasetItemValidationErrorParams? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.Dataset), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Dataset; + typeof(global::Apify.DatasetItemValidationErrorParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DatasetItemValidationErrorParams; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ValidationErrorParams.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationErrorParams.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.ValidationErrorParams.g.cs rename to src/libs/Apify/Generated/Apify.Models.DatasetItemValidationErrorParams.g.cs index 44e7d7d8..7641d382 100644 --- a/src/libs/Apify/Generated/Apify.Models.ValidationErrorParams.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetItemValidationErrorParams.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// Additional parameters specific to the validation error. /// - public sealed partial class ValidationErrorParams + public sealed partial class DatasetItemValidationErrorParams { /// diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetResource.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetResource.Json.g.cs new file mode 100644 index 00000000..3ba27844 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.DatasetResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class DatasetResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.DatasetResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.DatasetResource), + jsonSerializerContext) as global::Apify.DatasetResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.DatasetResource? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.DatasetResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.DatasetResource), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DatasetResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.Dataset.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetResource.g.cs similarity index 98% rename from src/libs/Apify/Generated/Apify.Models.Dataset.g.cs rename to src/libs/Apify/Generated/Apify.Models.DatasetResource.g.cs index 128ea76b..082d1081 100644 --- a/src/libs/Apify/Generated/Apify.Models.Dataset.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetResource.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class Dataset + public sealed partial class DatasetResource { /// /// @@ -127,7 +127,7 @@ public sealed partial class Dataset public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -156,7 +156,7 @@ public sealed partial class Dataset #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Dataset( + public DatasetResource( string id, string userId, global::System.DateTime createdAt, @@ -195,9 +195,9 @@ public Dataset( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Dataset() + public DatasetResource() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ValidationErrorParams.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetResourceSchema.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.ValidationErrorParams.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.DatasetResourceSchema.Json.g.cs index 389a7fbd..1aa8e991 100644 --- a/src/libs/Apify/Generated/Apify.Models.ValidationErrorParams.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetResourceSchema.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ValidationErrorParams + public sealed partial class DatasetResourceSchema { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ValidationErrorParams? FromJson( + public static global::Apify.DatasetResourceSchema? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ValidationErrorParams), - jsonSerializerContext) as global::Apify.ValidationErrorParams; + typeof(global::Apify.DatasetResourceSchema), + jsonSerializerContext) as global::Apify.DatasetResourceSchema; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ValidationErrorParams? FromJson( + public static global::Apify.DatasetResourceSchema? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ValidationErrorParams? FromJson( + public static global::Apify.DatasetResourceSchema? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ValidationErrorParams), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ValidationErrorParams; + typeof(global::Apify.DatasetResourceSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DatasetResourceSchema; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetSchema.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetResourceSchema.g.cs similarity index 93% rename from src/libs/Apify/Generated/Apify.Models.DatasetSchema.g.cs rename to src/libs/Apify/Generated/Apify.Models.DatasetResourceSchema.g.cs index 3f8d05bc..5475a9d7 100644 --- a/src/libs/Apify/Generated/Apify.Models.DatasetSchema.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetResourceSchema.g.cs @@ -7,7 +7,7 @@ namespace Apify /// Defines the schema of items in your dataset, the full specification can be found in [Apify docs](/storage/dataset-schema)
/// Example: {"actorSpecification":1,"title":"My dataset","views":{"overview":{"title":"Overview","transformation":{"fields":["linkUrl"]},"display":{"component":"table","properties":{"linkUrl":{"label":"Link URL","format":"link"}}}}}} ///
- public sealed partial class DatasetSchema + public sealed partial class DatasetResourceSchema { /// diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetResponse.g.cs index cc13b4d1..8ad08aee 100644 --- a/src/libs/Apify/Generated/Apify.Models.DatasetResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class DatasetResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.Dataset Data { get; set; } + public required global::Apify.DatasetResource Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class DatasetResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public DatasetResponse( - global::Apify.Dataset data) + global::Apify.DatasetResource data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationError.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationError.g.cs index 5a6b993f..649afba6 100644 --- a/src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationError.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationError.g.cs @@ -24,7 +24,7 @@ public sealed partial class DatasetSchemaValidationError /// /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public global::Apify.SchemaValidationErrorData? Data { get; set; } + public global::Apify.DatasetSchemaValidationErrorData? Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,7 +48,7 @@ public sealed partial class DatasetSchemaValidationError public DatasetSchemaValidationError( string? type, string? message, - global::Apify.SchemaValidationErrorData? data) + global::Apify.DatasetSchemaValidationErrorData? data) { this.Type = type; this.Message = message; diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetSchema.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationErrorData.Json.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.DatasetSchema.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationErrorData.Json.g.cs index 02763255..1dc44ebc 100644 --- a/src/libs/Apify/Generated/Apify.Models.DatasetSchema.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationErrorData.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class DatasetSchema + public sealed partial class DatasetSchemaValidationErrorData { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.DatasetSchema? FromJson( + public static global::Apify.DatasetSchemaValidationErrorData? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.DatasetSchema), - jsonSerializerContext) as global::Apify.DatasetSchema; + typeof(global::Apify.DatasetSchemaValidationErrorData), + jsonSerializerContext) as global::Apify.DatasetSchemaValidationErrorData; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.DatasetSchema? FromJson( + public static global::Apify.DatasetSchemaValidationErrorData? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.DatasetSchema? FromJson( + public static global::Apify.DatasetSchemaValidationErrorData? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.DatasetSchema), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DatasetSchema; + typeof(global::Apify.DatasetSchemaValidationErrorData), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DatasetSchemaValidationErrorData; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.SchemaValidationErrorData.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationErrorData.g.cs similarity index 74% rename from src/libs/Apify/Generated/Apify.Models.SchemaValidationErrorData.g.cs rename to src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationErrorData.g.cs index 1663a6e6..8cad18e2 100644 --- a/src/libs/Apify/Generated/Apify.Models.SchemaValidationErrorData.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetSchemaValidationErrorData.g.cs @@ -6,14 +6,14 @@ namespace Apify /// /// /// - public sealed partial class SchemaValidationErrorData + public sealed partial class DatasetSchemaValidationErrorData { /// /// A list of invalid items in the received array of items. /// [global::System.Text.Json.Serialization.JsonPropertyName("invalidItems")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList InvalidItems { get; set; } + public required global::System.Collections.Generic.IList InvalidItems { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,7 +22,7 @@ public sealed partial class SchemaValidationErrorData public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A list of invalid items in the received array of items. @@ -30,16 +30,16 @@ public sealed partial class SchemaValidationErrorData #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public SchemaValidationErrorData( - global::System.Collections.Generic.IList invalidItems) + public DatasetSchemaValidationErrorData( + global::System.Collections.Generic.IList invalidItems) { this.InvalidItems = invalidItems ?? throw new global::System.ArgumentNullException(nameof(invalidItems)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public SchemaValidationErrorData() + public DatasetSchemaValidationErrorData() { } diff --git a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResponse.g.cs index cbc7e67f..16b4be4e 100644 --- a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class DecodeAndVerifyResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.DecodeAndVerifyData Data { get; set; } + public required global::Apify.DecodeAndVerifyResult Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class DecodeAndVerifyResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public DecodeAndVerifyResponse( - global::Apify.DecodeAndVerifyData data) + global::Apify.DecodeAndVerifyResult data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyData.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResult.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyData.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResult.Json.g.cs index a077aa4f..5fbf0fb0 100644 --- a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyData.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResult.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class DecodeAndVerifyData + public sealed partial class DecodeAndVerifyResult { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.DecodeAndVerifyData? FromJson( + public static global::Apify.DecodeAndVerifyResult? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.DecodeAndVerifyData), - jsonSerializerContext) as global::Apify.DecodeAndVerifyData; + typeof(global::Apify.DecodeAndVerifyResult), + jsonSerializerContext) as global::Apify.DecodeAndVerifyResult; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.DecodeAndVerifyData? FromJson( + public static global::Apify.DecodeAndVerifyResult? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.DecodeAndVerifyData? FromJson( + public static global::Apify.DecodeAndVerifyResult? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.DecodeAndVerifyData), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DecodeAndVerifyData; + typeof(global::Apify.DecodeAndVerifyResult), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DecodeAndVerifyResult; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyData.g.cs b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResult.g.cs similarity index 91% rename from src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyData.g.cs rename to src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResult.g.cs index 15de4ab0..28755a38 100644 --- a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyData.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResult.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class DecodeAndVerifyData + public sealed partial class DecodeAndVerifyResult { /// /// The original object that was encoded. @@ -35,7 +35,7 @@ public sealed partial class DecodeAndVerifyData public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The original object that was encoded. @@ -45,7 +45,7 @@ public sealed partial class DecodeAndVerifyData #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public DecodeAndVerifyData( + public DecodeAndVerifyResult( object decoded, bool isVerifiedUser, string? encodedByUserId) @@ -56,9 +56,9 @@ public DecodeAndVerifyData( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public DecodeAndVerifyData() + public DecodeAndVerifyResult() { } diff --git a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyDataDecoded.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResultDecoded.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyDataDecoded.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResultDecoded.Json.g.cs index 7a1698cf..d6341a35 100644 --- a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyDataDecoded.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResultDecoded.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class DecodeAndVerifyDataDecoded + public sealed partial class DecodeAndVerifyResultDecoded { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.DecodeAndVerifyDataDecoded? FromJson( + public static global::Apify.DecodeAndVerifyResultDecoded? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.DecodeAndVerifyDataDecoded), - jsonSerializerContext) as global::Apify.DecodeAndVerifyDataDecoded; + typeof(global::Apify.DecodeAndVerifyResultDecoded), + jsonSerializerContext) as global::Apify.DecodeAndVerifyResultDecoded; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.DecodeAndVerifyDataDecoded? FromJson( + public static global::Apify.DecodeAndVerifyResultDecoded? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.DecodeAndVerifyDataDecoded? FromJson( + public static global::Apify.DecodeAndVerifyResultDecoded? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.DecodeAndVerifyDataDecoded), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DecodeAndVerifyDataDecoded; + typeof(global::Apify.DecodeAndVerifyResultDecoded), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.DecodeAndVerifyResultDecoded; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyDataDecoded.g.cs b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResultDecoded.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyDataDecoded.g.cs rename to src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResultDecoded.g.cs index 6edf33db..04bda2d7 100644 --- a/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyDataDecoded.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DecodeAndVerifyResultDecoded.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// The original object that was encoded. /// - public sealed partial class DecodeAndVerifyDataDecoded + public sealed partial class DecodeAndVerifyResultDecoded { /// diff --git a/src/libs/Apify/Generated/Apify.Models.EncodeAndSignResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.EncodeAndSignResponse.g.cs index 607674bb..494cdfc0 100644 --- a/src/libs/Apify/Generated/Apify.Models.EncodeAndSignResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.EncodeAndSignResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class EncodeAndSignResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.EncodeAndSignData Data { get; set; } + public required global::Apify.EncodeAndSignResult Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class EncodeAndSignResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EncodeAndSignResponse( - global::Apify.EncodeAndSignData data) + global::Apify.EncodeAndSignResult data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/Apify/Generated/Apify.Models.EncodeAndSignData.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.EncodeAndSignResult.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.EncodeAndSignData.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.EncodeAndSignResult.Json.g.cs index fa1ef9e0..8abfec00 100644 --- a/src/libs/Apify/Generated/Apify.Models.EncodeAndSignData.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.EncodeAndSignResult.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class EncodeAndSignData + public sealed partial class EncodeAndSignResult { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.EncodeAndSignData? FromJson( + public static global::Apify.EncodeAndSignResult? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.EncodeAndSignData), - jsonSerializerContext) as global::Apify.EncodeAndSignData; + typeof(global::Apify.EncodeAndSignResult), + jsonSerializerContext) as global::Apify.EncodeAndSignResult; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.EncodeAndSignData? FromJson( + public static global::Apify.EncodeAndSignResult? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.EncodeAndSignData? FromJson( + public static global::Apify.EncodeAndSignResult? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.EncodeAndSignData), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.EncodeAndSignData; + typeof(global::Apify.EncodeAndSignResult), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.EncodeAndSignResult; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.EncodeAndSignData.g.cs b/src/libs/Apify/Generated/Apify.Models.EncodeAndSignResult.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.EncodeAndSignData.g.cs rename to src/libs/Apify/Generated/Apify.Models.EncodeAndSignResult.g.cs index 45486458..1e4ca21b 100644 --- a/src/libs/Apify/Generated/Apify.Models.EncodeAndSignData.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.EncodeAndSignResult.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class EncodeAndSignData + public sealed partial class EncodeAndSignResult { /// /// @@ -22,22 +22,22 @@ public sealed partial class EncodeAndSignData public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public EncodeAndSignData( + public EncodeAndSignResult( string encoded) { this.Encoded = encoded ?? throw new global::System.ArgumentNullException(nameof(encoded)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public EncodeAndSignData() + public EncodeAndSignResult() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ExampleWebhookDispatch.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ExampleWebhookDispatch.Json.g.cs deleted file mode 100644 index c5cc1ce2..00000000 --- a/src/libs/Apify/Generated/Apify.Models.ExampleWebhookDispatch.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class ExampleWebhookDispatch - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.ExampleWebhookDispatch? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.ExampleWebhookDispatch), - jsonSerializerContext) as global::Apify.ExampleWebhookDispatch; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.ExampleWebhookDispatch? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.ExampleWebhookDispatch? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.ExampleWebhookDispatch), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ExampleWebhookDispatch; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.HeadRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.HeadRequest.Json.g.cs deleted file mode 100644 index cfdfa99d..00000000 --- a/src/libs/Apify/Generated/Apify.Models.HeadRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class HeadRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.HeadRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.HeadRequest), - jsonSerializerContext) as global::Apify.HeadRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.HeadRequest? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.HeadRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.HeadRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.HeadRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.HeadResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.HeadResponse.Json.g.cs deleted file mode 100644 index 09cda8e7..00000000 --- a/src/libs/Apify/Generated/Apify.Models.HeadResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class HeadResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.HeadResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.HeadResponse), - jsonSerializerContext) as global::Apify.HeadResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.HeadResponse? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.HeadResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.HeadResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.HeadResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.UpdateStoreRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.InvalidDatasetItem.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.UpdateStoreRequest.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.InvalidDatasetItem.Json.g.cs index b00a6dfe..aae24314 100644 --- a/src/libs/Apify/Generated/Apify.Models.UpdateStoreRequest.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.InvalidDatasetItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class UpdateStoreRequest + public sealed partial class InvalidDatasetItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.UpdateStoreRequest? FromJson( + public static global::Apify.InvalidDatasetItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.UpdateStoreRequest), - jsonSerializerContext) as global::Apify.UpdateStoreRequest; + typeof(global::Apify.InvalidDatasetItem), + jsonSerializerContext) as global::Apify.InvalidDatasetItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.UpdateStoreRequest? FromJson( + public static global::Apify.InvalidDatasetItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.UpdateStoreRequest? FromJson( + public static global::Apify.InvalidDatasetItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.UpdateStoreRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UpdateStoreRequest; + typeof(global::Apify.InvalidDatasetItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.InvalidDatasetItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.InvalidItem.g.cs b/src/libs/Apify/Generated/Apify.Models.InvalidDatasetItem.g.cs similarity index 86% rename from src/libs/Apify/Generated/Apify.Models.InvalidItem.g.cs rename to src/libs/Apify/Generated/Apify.Models.InvalidDatasetItem.g.cs index c3abe499..a9a42a3f 100644 --- a/src/libs/Apify/Generated/Apify.Models.InvalidItem.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.InvalidDatasetItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class InvalidItem + public sealed partial class InvalidDatasetItem { /// /// The position of the invalid item in the array. @@ -18,7 +18,7 @@ public sealed partial class InvalidItem /// A complete list of AJV validation error objects for the invalid item. /// [global::System.Text.Json.Serialization.JsonPropertyName("validationErrors")] - public global::System.Collections.Generic.IList? ValidationErrors { get; set; } + public global::System.Collections.Generic.IList? ValidationErrors { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,7 +27,7 @@ public sealed partial class InvalidItem public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The position of the invalid item in the array. @@ -38,18 +38,18 @@ public sealed partial class InvalidItem #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public InvalidItem( + public InvalidDatasetItem( int? itemPosition, - global::System.Collections.Generic.IList? validationErrors) + global::System.Collections.Generic.IList? validationErrors) { this.ItemPosition = itemPosition; this.ValidationErrors = validationErrors; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public InvalidItem() + public InvalidDatasetItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStore.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.KeyValueStore.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.Json.g.cs index d258b34e..11020bc0 100644 --- a/src/libs/Apify/Generated/Apify.Models.KeyValueStore.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class KeyValueStore + public sealed partial class KeyValueStoreResource { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.KeyValueStore? FromJson( + public static global::Apify.KeyValueStoreResource? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.KeyValueStore), - jsonSerializerContext) as global::Apify.KeyValueStore; + typeof(global::Apify.KeyValueStoreResource), + jsonSerializerContext) as global::Apify.KeyValueStoreResource; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.KeyValueStore? FromJson( + public static global::Apify.KeyValueStoreResource? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.KeyValueStore? FromJson( + public static global::Apify.KeyValueStoreResource? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.KeyValueStore), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.KeyValueStore; + typeof(global::Apify.KeyValueStoreResource), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.KeyValueStoreResource; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStore.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.g.cs similarity index 97% rename from src/libs/Apify/Generated/Apify.Models.KeyValueStore.g.cs rename to src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.g.cs index 78aa31b2..835956a5 100644 --- a/src/libs/Apify/Generated/Apify.Models.KeyValueStore.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class KeyValueStore + public sealed partial class KeyValueStoreResource { /// /// @@ -115,7 +115,7 @@ public sealed partial class KeyValueStore public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -144,7 +144,7 @@ public sealed partial class KeyValueStore #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public KeyValueStore( + public KeyValueStoreResource( string id, global::System.DateTime createdAt, global::System.DateTime modifiedAt, @@ -181,9 +181,9 @@ public KeyValueStore( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public KeyValueStore() + public KeyValueStoreResource() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfActorsInStoreResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResourceSchema.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.ListOfActorsInStoreResponse.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.KeyValueStoreResourceSchema.Json.g.cs index 8604bc0c..4bd417ea 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfActorsInStoreResponse.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResourceSchema.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ListOfActorsInStoreResponse + public sealed partial class KeyValueStoreResourceSchema { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ListOfActorsInStoreResponse? FromJson( + public static global::Apify.KeyValueStoreResourceSchema? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ListOfActorsInStoreResponse), - jsonSerializerContext) as global::Apify.ListOfActorsInStoreResponse; + typeof(global::Apify.KeyValueStoreResourceSchema), + jsonSerializerContext) as global::Apify.KeyValueStoreResourceSchema; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ListOfActorsInStoreResponse? FromJson( + public static global::Apify.KeyValueStoreResourceSchema? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ListOfActorsInStoreResponse? FromJson( + public static global::Apify.KeyValueStoreResourceSchema? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ListOfActorsInStoreResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfActorsInStoreResponse; + typeof(global::Apify.KeyValueStoreResourceSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.KeyValueStoreResourceSchema; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreSchema.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResourceSchema.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.KeyValueStoreSchema.g.cs rename to src/libs/Apify/Generated/Apify.Models.KeyValueStoreResourceSchema.g.cs index 253b81df..6b4d6356 100644 --- a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreSchema.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResourceSchema.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// Optional JSON schema describing the keys stored in the key-value store. /// - public sealed partial class KeyValueStoreSchema + public sealed partial class KeyValueStoreResourceSchema { /// diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResponse.g.cs index 9b9ff68b..12b7afcf 100644 --- a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class KeyValueStoreResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.KeyValueStore Data { get; set; } + public required global::Apify.KeyValueStoreResource Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class KeyValueStoreResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public KeyValueStoreResponse( - global::Apify.KeyValueStore data) + global::Apify.KeyValueStoreResource data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/Apify/Generated/Apify.Models.LimitsResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.LimitsResponse.Json.g.cs deleted file mode 100644 index 5ee1dd32..00000000 --- a/src/libs/Apify/Generated/Apify.Models.LimitsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class LimitsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.LimitsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.LimitsResponse), - jsonSerializerContext) as global::Apify.LimitsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.LimitsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.LimitsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.LimitsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.LimitsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfActorsVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorsVariant2.g.cs index 5aeb1ec6..1f1d21eb 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfActorsVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorsVariant2.g.cs @@ -13,7 +13,7 @@ public sealed partial class ListOfActorsVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ListOfActorsVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfActorsVariant2( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfBuildsVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfBuildsVariant2.g.cs index 1804d10e..887b9a0f 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfBuildsVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfBuildsVariant2.g.cs @@ -13,7 +13,7 @@ public sealed partial class ListOfBuildsVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ListOfBuildsVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfBuildsVariant2( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfKeyValueStoresVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfKeyValueStoresVariant2.g.cs index e39d74eb..6f157337 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfKeyValueStoresVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfKeyValueStoresVariant2.g.cs @@ -19,7 +19,7 @@ public sealed partial class ListOfKeyValueStoresVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,7 +38,7 @@ public sealed partial class ListOfKeyValueStoresVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfKeyValueStoresVariant2( - global::System.Collections.Generic.IList items, + global::System.Collections.Generic.IList items, bool? unnamed) { this.Unnamed = unnamed; diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfRequestQueuesVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfRequestQueuesVariant2.g.cs index 783a990e..4b82c96b 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfRequestQueuesVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfRequestQueuesVariant2.g.cs @@ -19,7 +19,7 @@ public sealed partial class ListOfRequestQueuesVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -40,7 +40,7 @@ public sealed partial class ListOfRequestQueuesVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfRequestQueuesVariant2( - global::System.Collections.Generic.IList items, + global::System.Collections.Generic.IList items, bool? unnamed) { this.Unnamed = unnamed; diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfRequests.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfRequests.g.cs index d94670d3..6ac3a5ba 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfRequests.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfRequests.g.cs @@ -15,7 +15,7 @@ public sealed partial class ListOfRequests /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// The maximum number of requests returned in this response. @@ -68,7 +68,7 @@ public sealed partial class ListOfRequests [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfRequests( - global::System.Collections.Generic.IList items, + global::System.Collections.Generic.IList items, int limit, string? cursor, string? nextCursor) diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfRunsVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfRunsVariant2.g.cs index 5b0fb907..6c857533 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfRunsVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfRunsVariant2.g.cs @@ -13,7 +13,7 @@ public sealed partial class ListOfRunsVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ListOfRunsVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfRunsVariant2( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfSchedulesVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfSchedulesVariant2.g.cs index 2a54b592..8b0dcfa4 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfSchedulesVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfSchedulesVariant2.g.cs @@ -13,7 +13,7 @@ public sealed partial class ListOfSchedulesVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ListOfSchedulesVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfSchedulesVariant2( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.SchemaValidationErrorData.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsResponse.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.SchemaValidationErrorData.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsResponse.Json.g.cs index ed769d47..db4bdb6c 100644 --- a/src/libs/Apify/Generated/Apify.Models.SchemaValidationErrorData.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class SchemaValidationErrorData + public sealed partial class ListOfStoreActorsResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.SchemaValidationErrorData? FromJson( + public static global::Apify.ListOfStoreActorsResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.SchemaValidationErrorData), - jsonSerializerContext) as global::Apify.SchemaValidationErrorData; + typeof(global::Apify.ListOfStoreActorsResponse), + jsonSerializerContext) as global::Apify.ListOfStoreActorsResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.SchemaValidationErrorData? FromJson( + public static global::Apify.ListOfStoreActorsResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.SchemaValidationErrorData? FromJson( + public static global::Apify.ListOfStoreActorsResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.SchemaValidationErrorData), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.SchemaValidationErrorData; + typeof(global::Apify.ListOfStoreActorsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfStoreActorsResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfActorsInStoreResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsResponse.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.ListOfActorsInStoreResponse.g.cs rename to src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsResponse.g.cs index ca543b7f..215c05a4 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfActorsInStoreResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsResponse.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// Example: {"data":{"total":100,"offset":0,"limit":1000,"desc":false,"count":1,"items":[{"id":"zdc3Pyhyz3m8vjDeM","title":"My Public Actor","name":"my-public-actor","username":"jane35","userFullName":"Jane Doe","description":"My public Actor!","pictureUrl":"https://...","userPictureUrl":"https://...","url":"https://...","stats":{"totalBuilds":9,"totalRuns":16,"totalUsers":6,"totalUsers7Days":2,"totalUsers30Days":6,"totalUsers90Days":6,"totalMetamorphs":2,"lastRunStartedAt":"2019-07-08T14:01:05.546Z"},"currentPricingInfo":{"pricingModel":"FREE"},"isWhiteListedForAgenticPayments":true},{"id":"zdc3Pyhyz3m8vjDeM","title":"My Public Actor","name":"my-public-actor","username":"jane35","userFullName":"Jane H. Doe","categories":["MARKETING","LEAD_GENERATION"],"description":"My public Actor!","pictureUrl":"https://...","userPictureUrl":"https://...","url":"https://...","stats":{"totalBuilds":9,"totalRuns":16,"totalUsers":6,"totalUsers7Days":2,"totalUsers30Days":6,"totalUsers90Days":6,"totalMetamorphs":2,"lastRunStartedAt":"2019-07-08T14:01:05.546Z"},"currentPricingInfo":{"pricingModel":"FREE"},"isWhiteListedForAgenticPayments":false}]}} /// - public sealed partial class ListOfActorsInStoreResponse + public sealed partial class ListOfStoreActorsResponse { /// /// @@ -23,22 +23,22 @@ public sealed partial class ListOfActorsInStoreResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ListOfActorsInStoreResponse( + public ListOfStoreActorsResponse( global::Apify.ListOfStoreActors data) { this.Data = data; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ListOfActorsInStoreResponse() + public ListOfStoreActorsResponse() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsVariant2.g.cs index cea1fe9a..1b7e11bf 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfStoreActorsVariant2.g.cs @@ -13,7 +13,7 @@ public sealed partial class ListOfStoreActorsVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ListOfStoreActorsVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfStoreActorsVariant2( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfTasksVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfTasksVariant2.g.cs index 3cc16274..92976c30 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfTasksVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfTasksVariant2.g.cs @@ -13,7 +13,7 @@ public sealed partial class ListOfTasksVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ListOfTasksVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfTasksVariant2( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfWebhooksVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfWebhooksVariant2.g.cs index 732d5a1d..549e1b3e 100644 --- a/src/libs/Apify/Generated/Apify.Models.ListOfWebhooksVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ListOfWebhooksVariant2.g.cs @@ -13,7 +13,7 @@ public sealed partial class ListOfWebhooksVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ListOfWebhooksVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOfWebhooksVariant2( - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); } diff --git a/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHead.g.cs b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHead.g.cs index 3d55773c..88880ae3 100644 --- a/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHead.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHead.g.cs @@ -53,7 +53,7 @@ public sealed partial class LockedRequestQueueHead /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -93,7 +93,7 @@ public LockedRequestQueueHead( global::System.DateTime queueModifiedAt, bool hadMultipleClients, int lockSecs, - global::System.Collections.Generic.IList items, + global::System.Collections.Generic.IList items, bool? queueHasLockedRequests, string? clientKey) { diff --git a/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadItem.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadItem.Json.g.cs new file mode 100644 index 00000000..0481200a --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class LockedRequestQueueHeadItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.LockedRequestQueueHeadItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.LockedRequestQueueHeadItem), + jsonSerializerContext) as global::Apify.LockedRequestQueueHeadItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.LockedRequestQueueHeadItem? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.LockedRequestQueueHeadItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.LockedRequestQueueHeadItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.LockedRequestQueueHeadItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.LockedHeadRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadItem.g.cs similarity index 92% rename from src/libs/Apify/Generated/Apify.Models.LockedHeadRequest.g.cs rename to src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadItem.g.cs index a10969b5..c06b4228 100644 --- a/src/libs/Apify/Generated/Apify.Models.LockedHeadRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// A request from the request queue head that has been locked for processing. /// - public sealed partial class LockedHeadRequest + public sealed partial class LockedRequestQueueHeadItem { /// /// A unique identifier assigned to the request. @@ -56,7 +56,7 @@ public sealed partial class LockedHeadRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A unique identifier assigned to the request. @@ -79,7 +79,7 @@ public sealed partial class LockedHeadRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public LockedHeadRequest( + public LockedRequestQueueHeadItem( string id, string uniqueKey, string url, @@ -96,9 +96,9 @@ public LockedHeadRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public LockedHeadRequest() + public LockedRequestQueueHeadItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadResponse.Json.g.cs new file mode 100644 index 00000000..1f36804f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class LockedRequestQueueHeadResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.LockedRequestQueueHeadResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.LockedRequestQueueHeadResponse), + jsonSerializerContext) as global::Apify.LockedRequestQueueHeadResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.LockedRequestQueueHeadResponse? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.LockedRequestQueueHeadResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.LockedRequestQueueHeadResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.LockedRequestQueueHeadResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.HeadAndLockResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadResponse.g.cs similarity index 84% rename from src/libs/Apify/Generated/Apify.Models.HeadAndLockResponse.g.cs rename to src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadResponse.g.cs index d87dda9b..db81b1d2 100644 --- a/src/libs/Apify/Generated/Apify.Models.HeadAndLockResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.LockedRequestQueueHeadResponse.g.cs @@ -7,7 +7,7 @@ namespace Apify /// Response containing locked requests from the request queue head.
/// Example: {"data":{"limit":3,"queueModifiedAt":"2018-03-14T23:00:00.000Z","hadMultipleClients":true,"lockSecs":60,"items":[{"id":"8OamqXBCpPHxyj9","retryCount":0,"uniqueKey":"http://example.com","url":"http://example.com","method":"GET","lockExpiresAt":"2022-06-14T23:00:00.000Z"},{"id":"8OamqXBCpPHxyx9","retryCount":0,"uniqueKey":"http://example.com/a","url":"http://example.com/a","method":"GET","lockExpiresAt":"2022-06-14T23:00:00.000Z"},{"id":"8OamqXBCpPHxy08","retryCount":0,"uniqueKey":"http://example.com/a/b","url":"http://example.com/a/b","method":"GET","lockExpiresAt":"2022-06-14T23:00:00.000Z"}]}} ///
- public sealed partial class HeadAndLockResponse + public sealed partial class LockedRequestQueueHeadResponse { /// /// A batch of locked requests from the request queue head. @@ -23,7 +23,7 @@ public sealed partial class HeadAndLockResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A batch of locked requests from the request queue head. @@ -31,16 +31,16 @@ public sealed partial class HeadAndLockResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public HeadAndLockResponse( + public LockedRequestQueueHeadResponse( global::Apify.LockedRequestQueueHead data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public HeadAndLockResponse() + public LockedRequestQueueHeadResponse() { } diff --git a/src/libs/Apify/Generated/Apify.Models.Metamorph.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.Metamorph.Json.g.cs deleted file mode 100644 index 7939fe2b..00000000 --- a/src/libs/Apify/Generated/Apify.Models.Metamorph.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class Metamorph - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.Metamorph? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.Metamorph), - jsonSerializerContext) as global::Apify.Metamorph; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.Metamorph? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.Metamorph? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.Metamorph), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Metamorph; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.MonthlyUsage.g.cs b/src/libs/Apify/Generated/Apify.Models.MonthlyUsage.g.cs index e733c0b5..1e43e225 100644 --- a/src/libs/Apify/Generated/Apify.Models.MonthlyUsage.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.MonthlyUsage.g.cs @@ -27,7 +27,7 @@ public sealed partial class MonthlyUsage /// [global::System.Text.Json.Serialization.JsonPropertyName("dailyServiceUsages")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList DailyServiceUsages { get; set; } + public required global::System.Collections.Generic.IList DailyServiceUsages { get; set; } /// /// @@ -65,7 +65,7 @@ public sealed partial class MonthlyUsage public MonthlyUsage( global::Apify.UsageCycle usageCycle, global::System.Collections.Generic.Dictionary monthlyServiceUsage, - global::System.Collections.Generic.IList dailyServiceUsages, + global::System.Collections.Generic.IList dailyServiceUsages, double totalUsageCreditsUsdBeforeVolumeDiscount, double totalUsageCreditsUsdAfterVolumeDiscount) { diff --git a/src/libs/Apify/Generated/Apify.Models.Plan.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.Plan.Json.g.cs deleted file mode 100644 index e9fd2adb..00000000 --- a/src/libs/Apify/Generated/Apify.Models.Plan.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class Plan - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.Plan? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.Plan), - jsonSerializerContext) as global::Apify.Plan; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.Plan? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.Plan? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.Plan), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Plan; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.PlanPlanPricing.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.PlanPlanPricing.Json.g.cs deleted file mode 100644 index 016d49d9..00000000 --- a/src/libs/Apify/Generated/Apify.Models.PlanPlanPricing.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class PlanPlanPricing - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.PlanPlanPricing? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.PlanPlanPricing), - jsonSerializerContext) as global::Apify.PlanPlanPricing; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.PlanPlanPricing? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.PlanPlanPricing? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.PlanPlanPricing), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.PlanPlanPricing; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.PriceTiers.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.PriceTier.Json.g.cs similarity index 91% rename from src/libs/Apify/Generated/Apify.Models.PriceTiers.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.PriceTier.Json.g.cs index 55519387..155324be 100644 --- a/src/libs/Apify/Generated/Apify.Models.PriceTiers.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.PriceTier.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class PriceTiers + public sealed partial class PriceTier { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.PriceTiers? FromJson( + public static global::Apify.PriceTier? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.PriceTiers), - jsonSerializerContext) as global::Apify.PriceTiers; + typeof(global::Apify.PriceTier), + jsonSerializerContext) as global::Apify.PriceTier; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.PriceTiers? FromJson( + public static global::Apify.PriceTier? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.PriceTiers? FromJson( + public static global::Apify.PriceTier? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.PriceTiers), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.PriceTiers; + typeof(global::Apify.PriceTier), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.PriceTier; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.PriceTiers.g.cs b/src/libs/Apify/Generated/Apify.Models.PriceTier.g.cs similarity index 95% rename from src/libs/Apify/Generated/Apify.Models.PriceTiers.g.cs rename to src/libs/Apify/Generated/Apify.Models.PriceTier.g.cs index ef8719bc..ba3514c0 100644 --- a/src/libs/Apify/Generated/Apify.Models.PriceTiers.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.PriceTier.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class PriceTiers + public sealed partial class PriceTier { /// /// @@ -50,7 +50,7 @@ public sealed partial class PriceTiers public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -60,7 +60,7 @@ public sealed partial class PriceTiers #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PriceTiers( + public PriceTier( double quantityAbove, double discountPercent, double tierQuantity, @@ -75,9 +75,9 @@ public PriceTiers( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PriceTiers() + public PriceTier() { } diff --git a/src/libs/Apify/Generated/Apify.Models.Profile.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.Profile.Json.g.cs deleted file mode 100644 index b548ca3d..00000000 --- a/src/libs/Apify/Generated/Apify.Models.Profile.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class Profile - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.Profile? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.Profile), - jsonSerializerContext) as global::Apify.Profile; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.Profile? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.Profile? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.Profile), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Profile; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.Proxy.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.Proxy.Json.g.cs deleted file mode 100644 index 78dcbc6f..00000000 --- a/src/libs/Apify/Generated/Apify.Models.Proxy.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class Proxy - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.Proxy? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.Proxy), - jsonSerializerContext) as global::Apify.Proxy; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.Proxy? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.Proxy? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.Proxy), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Proxy; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.ProxyResource.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ProxyResource.Json.g.cs new file mode 100644 index 00000000..98ba79d9 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ProxyResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ProxyResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.ProxyResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ProxyResource), + jsonSerializerContext) as global::Apify.ProxyResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ProxyResource? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.ProxyResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.ProxyResource), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ProxyResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.Proxy.g.cs b/src/libs/Apify/Generated/Apify.Models.ProxyResource.g.cs similarity index 86% rename from src/libs/Apify/Generated/Apify.Models.Proxy.g.cs rename to src/libs/Apify/Generated/Apify.Models.ProxyResource.g.cs index b876dcf9..059abe1b 100644 --- a/src/libs/Apify/Generated/Apify.Models.Proxy.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ProxyResource.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class Proxy + public sealed partial class ProxyResource { /// /// @@ -29,14 +29,14 @@ public sealed partial class Proxy public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Proxy( + public ProxyResource( string password, global::System.Collections.Generic.IList groups) { @@ -45,9 +45,9 @@ public Proxy( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Proxy() + public ProxyResource() { } diff --git a/src/libs/Apify/Generated/Apify.Models.PutItemsErrorResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.PutItemsErrorResponse.Json.g.cs new file mode 100644 index 00000000..837a0729 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.PutItemsErrorResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class PutItemsErrorResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.PutItemsErrorResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.PutItemsErrorResponse), + jsonSerializerContext) as global::Apify.PutItemsErrorResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.PutItemsErrorResponse? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.PutItemsErrorResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.PutItemsErrorResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.PutItemsErrorResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.PutItemResponseError.g.cs b/src/libs/Apify/Generated/Apify.Models.PutItemsErrorResponse.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.PutItemResponseError.g.cs rename to src/libs/Apify/Generated/Apify.Models.PutItemsErrorResponse.g.cs index 81bc8544..f5e20049 100644 --- a/src/libs/Apify/Generated/Apify.Models.PutItemResponseError.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.PutItemsErrorResponse.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// Example: {"error":{"type":"schema-validation-error","message":"Schema validation failed","data":{"invalidItems":[{"itemPosition":2,"validationErrors":[{"instancePath":"/1/stringField","schemaPath":"/items/properties/stringField/type","keyword":"type","params":{"type":"string"},"message":"must be string"}]}]}}} /// - public sealed partial class PutItemResponseError + public sealed partial class PutItemsErrorResponse { /// /// @@ -22,22 +22,22 @@ public sealed partial class PutItemResponseError public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PutItemResponseError( + public PutItemsErrorResponse( global::Apify.DatasetSchemaValidationError error) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PutItemResponseError() + public PutItemsErrorResponse() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestDraft.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestDraft.Json.g.cs deleted file mode 100644 index 1182522a..00000000 --- a/src/libs/Apify/Generated/Apify.Models.RequestDraft.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class RequestDraft - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.RequestDraft? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.RequestDraft), - jsonSerializerContext) as global::Apify.RequestDraft; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.RequestDraft? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.RequestDraft? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.RequestDraft), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestDraft; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.RequestDraftDelete.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestDraftDelete.g.cs deleted file mode 100644 index a6a6ed02..00000000 --- a/src/libs/Apify/Generated/Apify.Models.RequestDraftDelete.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Apify -{ - /// - /// A request that should be deleted. - /// - public readonly partial struct RequestDraftDelete : global::System.IEquatable - { - /// - /// A request that should be deleted, identified by its ID. - /// -#if NET6_0_OR_GREATER - public global::Apify.RequestDraftDeleteById? RequestDraftDeleteById { get; init; } -#else - public global::Apify.RequestDraftDeleteById? RequestDraftDeleteById { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RequestDraftDeleteById))] -#endif - public bool IsRequestDraftDeleteById => RequestDraftDeleteById != null; - - /// - /// - /// - public bool TryPickRequestDraftDeleteById( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Apify.RequestDraftDeleteById? value) - { - value = RequestDraftDeleteById; - return IsRequestDraftDeleteById; - } - - /// - /// - /// - public global::Apify.RequestDraftDeleteById PickRequestDraftDeleteById() => RequestDraftDeleteById is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'RequestDraftDeleteById' but the value was {ToString()}."); - - /// - /// A request that should be deleted, identified by its unique key. - /// -#if NET6_0_OR_GREATER - public global::Apify.RequestDraftDeleteByUniqueKey? RequestDraftDeleteByUniqueKey { get; init; } -#else - public global::Apify.RequestDraftDeleteByUniqueKey? RequestDraftDeleteByUniqueKey { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RequestDraftDeleteByUniqueKey))] -#endif - public bool IsRequestDraftDeleteByUniqueKey => RequestDraftDeleteByUniqueKey != null; - - /// - /// - /// - public bool TryPickRequestDraftDeleteByUniqueKey( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Apify.RequestDraftDeleteByUniqueKey? value) - { - value = RequestDraftDeleteByUniqueKey; - return IsRequestDraftDeleteByUniqueKey; - } - - /// - /// - /// - public global::Apify.RequestDraftDeleteByUniqueKey PickRequestDraftDeleteByUniqueKey() => RequestDraftDeleteByUniqueKey is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'RequestDraftDeleteByUniqueKey' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator RequestDraftDelete(global::Apify.RequestDraftDeleteById value) => new RequestDraftDelete((global::Apify.RequestDraftDeleteById?)value); - - /// - /// - /// - public static implicit operator global::Apify.RequestDraftDeleteById?(RequestDraftDelete @this) => @this.RequestDraftDeleteById; - - /// - /// - /// - public RequestDraftDelete(global::Apify.RequestDraftDeleteById? value) - { - RequestDraftDeleteById = value; - } - - /// - /// - /// - public static RequestDraftDelete FromRequestDraftDeleteById(global::Apify.RequestDraftDeleteById? value) => new RequestDraftDelete(value); - - /// - /// - /// - public static implicit operator RequestDraftDelete(global::Apify.RequestDraftDeleteByUniqueKey value) => new RequestDraftDelete((global::Apify.RequestDraftDeleteByUniqueKey?)value); - - /// - /// - /// - public static implicit operator global::Apify.RequestDraftDeleteByUniqueKey?(RequestDraftDelete @this) => @this.RequestDraftDeleteByUniqueKey; - - /// - /// - /// - public RequestDraftDelete(global::Apify.RequestDraftDeleteByUniqueKey? value) - { - RequestDraftDeleteByUniqueKey = value; - } - - /// - /// - /// - public static RequestDraftDelete FromRequestDraftDeleteByUniqueKey(global::Apify.RequestDraftDeleteByUniqueKey? value) => new RequestDraftDelete(value); - - /// - /// - /// - public RequestDraftDelete( - global::Apify.RequestDraftDeleteById? requestDraftDeleteById, - global::Apify.RequestDraftDeleteByUniqueKey? requestDraftDeleteByUniqueKey - ) - { - RequestDraftDeleteById = requestDraftDeleteById; - RequestDraftDeleteByUniqueKey = requestDraftDeleteByUniqueKey; - } - - /// - /// - /// - public object? Object => - RequestDraftDeleteByUniqueKey as object ?? - RequestDraftDeleteById as object - ; - - /// - /// - /// - public override string? ToString() => - RequestDraftDeleteById?.ToString() ?? - RequestDraftDeleteByUniqueKey?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsRequestDraftDeleteById || IsRequestDraftDeleteByUniqueKey; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? requestDraftDeleteById = null, - global::System.Func? requestDraftDeleteByUniqueKey = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (RequestDraftDeleteById is { } __value0 && requestDraftDeleteById != null) - { - return requestDraftDeleteById(__value0); - } - else if (RequestDraftDeleteByUniqueKey is { } __value1 && requestDraftDeleteByUniqueKey != null) - { - return requestDraftDeleteByUniqueKey(__value1); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? requestDraftDeleteById = null, - - global::System.Action? requestDraftDeleteByUniqueKey = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (RequestDraftDeleteById is { } __value0) - { - requestDraftDeleteById?.Invoke(__value0); - } - else if (RequestDraftDeleteByUniqueKey is { } __value1) - { - requestDraftDeleteByUniqueKey?.Invoke(__value1); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? requestDraftDeleteById = null, - global::System.Action? requestDraftDeleteByUniqueKey = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (RequestDraftDeleteById is { } __value0) - { - requestDraftDeleteById?.Invoke(__value0); - } - else if (RequestDraftDeleteByUniqueKey is { } __value1) - { - requestDraftDeleteByUniqueKey?.Invoke(__value1); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - RequestDraftDeleteById, - typeof(global::Apify.RequestDraftDeleteById), - RequestDraftDeleteByUniqueKey, - typeof(global::Apify.RequestDraftDeleteByUniqueKey), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(RequestDraftDelete other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RequestDraftDeleteById, other.RequestDraftDeleteById) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RequestDraftDeleteByUniqueKey, other.RequestDraftDeleteByUniqueKey) - ; - } - - /// - /// - /// - public static bool operator ==(RequestDraftDelete obj1, RequestDraftDelete obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(RequestDraftDelete obj1, RequestDraftDelete obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is RequestDraftDelete o && Equals(o); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteById.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteById.Json.g.cs deleted file mode 100644 index 49adda2c..00000000 --- a/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteById.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class RequestDraftDeleteById - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.RequestDraftDeleteById? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.RequestDraftDeleteById), - jsonSerializerContext) as global::Apify.RequestDraftDeleteById; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.RequestDraftDeleteById? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.RequestDraftDeleteById? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.RequestDraftDeleteById), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestDraftDeleteById; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueHead.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueHead.g.cs index 3ac66a57..46fd1185 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestQueueHead.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueHead.g.cs @@ -34,7 +34,7 @@ public sealed partial class RequestQueueHead /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -64,7 +64,7 @@ public RequestQueueHead( int limit, global::System.DateTime queueModifiedAt, bool hadMultipleClients, - global::System.Collections.Generic.IList items) + global::System.Collections.Generic.IList items) { this.Limit = limit; this.QueueModifiedAt = queueModifiedAt; diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueue.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadItem.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.RequestQueue.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestQueueHeadItem.Json.g.cs index 4ce8921d..90f968c1 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestQueue.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class RequestQueue + public sealed partial class RequestQueueHeadItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.RequestQueue? FromJson( + public static global::Apify.RequestQueueHeadItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.RequestQueue), - jsonSerializerContext) as global::Apify.RequestQueue; + typeof(global::Apify.RequestQueueHeadItem), + jsonSerializerContext) as global::Apify.RequestQueueHeadItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.RequestQueue? FromJson( + public static global::Apify.RequestQueueHeadItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.RequestQueue? FromJson( + public static global::Apify.RequestQueueHeadItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.RequestQueue), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestQueue; + typeof(global::Apify.RequestQueueHeadItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestQueueHeadItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.HeadRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadItem.g.cs similarity index 91% rename from src/libs/Apify/Generated/Apify.Models.HeadRequest.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestQueueHeadItem.g.cs index 64b74af7..83e40ce2 100644 --- a/src/libs/Apify/Generated/Apify.Models.HeadRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// A request from the request queue head without lock information. /// - public sealed partial class HeadRequest + public sealed partial class RequestQueueHeadItem { /// /// A unique identifier assigned to the request. @@ -49,7 +49,7 @@ public sealed partial class HeadRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A unique identifier assigned to the request. @@ -69,7 +69,7 @@ public sealed partial class HeadRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public HeadRequest( + public RequestQueueHeadItem( string id, string uniqueKey, string url, @@ -84,9 +84,9 @@ public HeadRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public HeadRequest() + public RequestQueueHeadItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadResponse.Json.g.cs new file mode 100644 index 00000000..78e4eaff --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RequestQueueHeadResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.RequestQueueHeadResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RequestQueueHeadResponse), + jsonSerializerContext) as global::Apify.RequestQueueHeadResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RequestQueueHeadResponse? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.RequestQueueHeadResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.RequestQueueHeadResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestQueueHeadResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.HeadResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadResponse.g.cs similarity index 85% rename from src/libs/Apify/Generated/Apify.Models.HeadResponse.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestQueueHeadResponse.g.cs index 7a8e576f..234b41cd 100644 --- a/src/libs/Apify/Generated/Apify.Models.HeadResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueHeadResponse.g.cs @@ -7,7 +7,7 @@ namespace Apify /// Response containing requests from the request queue head without locking.
/// Example: {"data":{"limit":1000,"queueModifiedAt":"2018-03-14T23:00:00.000Z","hadMultipleClients":false,"items":[{"id":"8OamqXBCpPHxyH9","retryCount":0,"uniqueKey":"http://example.com","url":"http://example.com","method":"GET"},{"id":"ZJAoqlRijenMQIn","retryCount":0,"uniqueKey":"http://example.com/a/b","url":"http://example.com/a/b","method":"GET"},{"id":"hAhkwyk5oOBHKQC","retryCount":1,"uniqueKey":"http://example.com/c/d","url":"http://example.com/c/d","method":"GET"}]}} ///
- public sealed partial class HeadResponse + public sealed partial class RequestQueueHeadResponse { /// /// A batch of requests from the request queue head without locking. @@ -23,7 +23,7 @@ public sealed partial class HeadResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A batch of requests from the request queue head without locking. @@ -31,16 +31,16 @@ public sealed partial class HeadResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public HeadResponse( + public RequestQueueHeadResponse( global::Apify.RequestQueueHead data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public HeadResponse() + public RequestQueueHeadResponse() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueShort.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.RequestQueueShort.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.Json.g.cs index 7b00b13e..6be774de 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestQueueShort.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class RequestQueueShort + public sealed partial class RequestQueueListItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.RequestQueueShort? FromJson( + public static global::Apify.RequestQueueListItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.RequestQueueShort), - jsonSerializerContext) as global::Apify.RequestQueueShort; + typeof(global::Apify.RequestQueueListItem), + jsonSerializerContext) as global::Apify.RequestQueueListItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.RequestQueueShort? FromJson( + public static global::Apify.RequestQueueListItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.RequestQueueShort? FromJson( + public static global::Apify.RequestQueueListItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.RequestQueueShort), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestQueueShort; + typeof(global::Apify.RequestQueueListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestQueueListItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueShort.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.g.cs similarity index 98% rename from src/libs/Apify/Generated/Apify.Models.RequestQueueShort.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.g.cs index 53e69a18..5050e40a 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestQueueShort.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// A shortened request queue object for list responses. /// - public sealed partial class RequestQueueShort + public sealed partial class RequestQueueListItem { /// /// A unique identifier assigned to the request queue. @@ -122,7 +122,7 @@ public sealed partial class RequestQueueShort public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A unique identifier assigned to the request queue. @@ -173,7 +173,7 @@ public sealed partial class RequestQueueShort #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RequestQueueShort( + public RequestQueueListItem( string id, string name, string userId, @@ -210,9 +210,9 @@ public RequestQueueShort( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RequestQueueShort() + public RequestQueueListItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.Json.g.cs new file mode 100644 index 00000000..1c5130d5 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RequestQueueResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.RequestQueueResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RequestQueueResource), + jsonSerializerContext) as global::Apify.RequestQueueResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RequestQueueResource? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.RequestQueueResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.RequestQueueResource), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestQueueResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueue.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.g.cs similarity index 97% rename from src/libs/Apify/Generated/Apify.Models.RequestQueue.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestQueueResource.g.cs index 600c9e4d..4a377b97 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestQueue.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// A request queue object containing metadata and statistics. /// - public sealed partial class RequestQueue + public sealed partial class RequestQueueResource { /// /// A unique identifier assigned to the request queue. @@ -115,7 +115,7 @@ public sealed partial class RequestQueue public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A unique identifier assigned to the request queue. @@ -163,7 +163,7 @@ public sealed partial class RequestQueue #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RequestQueue( + public RequestQueueResource( string id, string userId, global::System.DateTime createdAt, @@ -198,9 +198,9 @@ public RequestQueue( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RequestQueue() + public RequestQueueResource() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueResponse.g.cs index a121f2f9..87234a66 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestQueueResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class RequestQueueResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.RequestQueue Data { get; set; } + public required global::Apify.RequestQueueResource Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,7 +31,7 @@ public sealed partial class RequestQueueResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RequestQueueResponse( - global::Apify.RequestQueue data) + global::Apify.RequestQueueResource data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestResource.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestResource.Json.g.cs new file mode 100644 index 00000000..3f4cb4a1 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RequestResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public readonly partial struct RequestResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.RequestResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RequestResource), + jsonSerializerContext) as global::Apify.RequestResource?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RequestResource? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.RequestResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.RequestResource), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestResource?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.Request.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestResource.g.cs similarity index 63% rename from src/libs/Apify/Generated/Apify.Models.Request.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestResource.g.cs index 3feac036..a4f465b1 100644 --- a/src/libs/Apify/Generated/Apify.Models.Request.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestResource.g.cs @@ -7,7 +7,7 @@ namespace Apify /// /// A request stored in the request queue, including its metadata and processing state. /// - public readonly partial struct Request : global::System.IEquatable + public readonly partial struct RequestResource : global::System.IEquatable { /// /// @@ -50,52 +50,52 @@ public bool TryPickRequestBase( /// /// #if NET6_0_OR_GREATER - public global::Apify.RequestVariant2? RequestVariant2 { get; init; } + public global::Apify.RequestResourceVariant2? RequestResourceVariant2 { get; init; } #else - public global::Apify.RequestVariant2? RequestVariant2 { get; } + public global::Apify.RequestResourceVariant2? RequestResourceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RequestVariant2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RequestResourceVariant2))] #endif - public bool IsRequestVariant2 => RequestVariant2 != null; + public bool IsRequestResourceVariant2 => RequestResourceVariant2 != null; /// /// /// - public bool TryPickRequestVariant2( + public bool TryPickRequestResourceVariant2( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Apify.RequestVariant2? value) + out global::Apify.RequestResourceVariant2? value) { - value = RequestVariant2; - return IsRequestVariant2; + value = RequestResourceVariant2; + return IsRequestResourceVariant2; } /// /// /// - public global::Apify.RequestVariant2 PickRequestVariant2() => RequestVariant2 is { } value + public global::Apify.RequestResourceVariant2 PickRequestResourceVariant2() => RequestResourceVariant2 is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'RequestVariant2' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'RequestResourceVariant2' but the value was {ToString()}."); /// /// /// - public static implicit operator Request(global::Apify.RequestBase value) => new Request((global::Apify.RequestBase?)value); + public static implicit operator RequestResource(global::Apify.RequestBase value) => new RequestResource((global::Apify.RequestBase?)value); /// /// /// - public static implicit operator global::Apify.RequestBase?(Request @this) => @this.RequestBase; + public static implicit operator global::Apify.RequestBase?(RequestResource @this) => @this.RequestBase; /// /// /// - public Request(global::Apify.RequestBase? value) + public RequestResource(global::Apify.RequestBase? value) { RequestBase = value; } @@ -103,48 +103,48 @@ public Request(global::Apify.RequestBase? value) /// /// /// - public static Request FromRequestBase(global::Apify.RequestBase? value) => new Request(value); + public static RequestResource FromRequestBase(global::Apify.RequestBase? value) => new RequestResource(value); /// /// /// - public static implicit operator Request(global::Apify.RequestVariant2 value) => new Request((global::Apify.RequestVariant2?)value); + public static implicit operator RequestResource(global::Apify.RequestResourceVariant2 value) => new RequestResource((global::Apify.RequestResourceVariant2?)value); /// /// /// - public static implicit operator global::Apify.RequestVariant2?(Request @this) => @this.RequestVariant2; + public static implicit operator global::Apify.RequestResourceVariant2?(RequestResource @this) => @this.RequestResourceVariant2; /// /// /// - public Request(global::Apify.RequestVariant2? value) + public RequestResource(global::Apify.RequestResourceVariant2? value) { - RequestVariant2 = value; + RequestResourceVariant2 = value; } /// /// /// - public static Request FromRequestVariant2(global::Apify.RequestVariant2? value) => new Request(value); + public static RequestResource FromRequestResourceVariant2(global::Apify.RequestResourceVariant2? value) => new RequestResource(value); /// /// /// - public Request( + public RequestResource( global::Apify.RequestBase? requestBase, - global::Apify.RequestVariant2? requestVariant2 + global::Apify.RequestResourceVariant2? requestResourceVariant2 ) { RequestBase = requestBase; - RequestVariant2 = requestVariant2; + RequestResourceVariant2 = requestResourceVariant2; } /// /// /// public object? Object => - RequestVariant2 as object ?? + RequestResourceVariant2 as object ?? RequestBase as object ; @@ -153,7 +153,7 @@ RequestBase as object /// public override string? ToString() => RequestBase?.ToString() ?? - RequestVariant2?.ToString() + RequestResourceVariant2?.ToString() ; /// @@ -161,7 +161,7 @@ RequestBase as object /// public bool Validate() { - return IsRequestBase && IsRequestVariant2; + return IsRequestBase && IsRequestResourceVariant2; } /// @@ -169,7 +169,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? requestBase = null, - global::System.Func? requestVariant2 = null, + global::System.Func? requestResourceVariant2 = null, bool validate = true) { if (validate) @@ -181,9 +181,9 @@ public bool Validate() { return requestBase(__value0); } - else if (RequestVariant2 is { } __value1 && requestVariant2 != null) + else if (RequestResourceVariant2 is { } __value1 && requestResourceVariant2 != null) { - return requestVariant2(__value1); + return requestResourceVariant2(__value1); } return default(TResult); @@ -195,7 +195,7 @@ public bool Validate() public void Match( global::System.Action? requestBase = null, - global::System.Action? requestVariant2 = null, + global::System.Action? requestResourceVariant2 = null, bool validate = true) { if (validate) @@ -207,9 +207,9 @@ public void Match( { requestBase?.Invoke(__value0); } - else if (RequestVariant2 is { } __value1) + else if (RequestResourceVariant2 is { } __value1) { - requestVariant2?.Invoke(__value1); + requestResourceVariant2?.Invoke(__value1); } } @@ -218,7 +218,7 @@ public void Match( /// public void Switch( global::System.Action? requestBase = null, - global::System.Action? requestVariant2 = null, + global::System.Action? requestResourceVariant2 = null, bool validate = true) { if (validate) @@ -230,9 +230,9 @@ public void Switch( { requestBase?.Invoke(__value0); } - else if (RequestVariant2 is { } __value1) + else if (RequestResourceVariant2 is { } __value1) { - requestVariant2?.Invoke(__value1); + requestResourceVariant2?.Invoke(__value1); } } @@ -245,8 +245,8 @@ public override int GetHashCode() { RequestBase, typeof(global::Apify.RequestBase), - RequestVariant2, - typeof(global::Apify.RequestVariant2), + RequestResourceVariant2, + typeof(global::Apify.RequestResourceVariant2), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -260,26 +260,26 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(Request other) + public bool Equals(RequestResource other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(RequestBase, other.RequestBase) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RequestVariant2, other.RequestVariant2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RequestResourceVariant2, other.RequestResourceVariant2) ; } /// /// /// - public static bool operator ==(Request obj1, Request obj2) + public static bool operator ==(RequestResource obj1, RequestResource obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(Request obj1, Request obj2) + public static bool operator !=(RequestResource obj1, RequestResource obj2) { return !(obj1 == obj2); } @@ -289,7 +289,7 @@ public bool Equals(Request other) /// public override bool Equals(object? obj) { - return obj is Request o && Equals(o); + return obj is RequestResource o && Equals(o); } } } diff --git a/src/libs/Apify/Generated/Apify.Models.PrivateUserDataResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.PrivateUserDataResponse.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.Json.g.cs index 52a2f4d9..934e88c0 100644 --- a/src/libs/Apify/Generated/Apify.Models.PrivateUserDataResponse.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class PrivateUserDataResponse + public sealed partial class RequestResourceVariant2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.PrivateUserDataResponse? FromJson( + public static global::Apify.RequestResourceVariant2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.PrivateUserDataResponse), - jsonSerializerContext) as global::Apify.PrivateUserDataResponse; + typeof(global::Apify.RequestResourceVariant2), + jsonSerializerContext) as global::Apify.RequestResourceVariant2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.PrivateUserDataResponse? FromJson( + public static global::Apify.RequestResourceVariant2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.PrivateUserDataResponse? FromJson( + public static global::Apify.RequestResourceVariant2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.PrivateUserDataResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.PrivateUserDataResponse; + typeof(global::Apify.RequestResourceVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestResourceVariant2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.g.cs similarity index 86% rename from src/libs/Apify/Generated/Apify.Models.RequestVariant2.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.g.cs index f297791b..a48d5cd4 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class RequestVariant2 + public sealed partial class RequestResourceVariant2 { /// /// A unique identifier assigned to the request. @@ -21,7 +21,7 @@ public sealed partial class RequestVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A unique identifier assigned to the request. @@ -29,16 +29,16 @@ public sealed partial class RequestVariant2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RequestVariant2( + public RequestResourceVariant2( string? id) { this.Id = id; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RequestVariant2() + public RequestResourceVariant2() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestResponse.g.cs index 7c8cb4c3..903247ed 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestResponse.g.cs @@ -12,9 +12,9 @@ public sealed partial class RequestResponse /// A request stored in the request queue, including its metadata and processing state. /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.RequestJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.RequestResourceJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.Request Data { get; set; } + public required global::Apify.RequestResource Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -32,7 +32,7 @@ public sealed partial class RequestResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RequestResponse( - global::Apify.Request data) + global::Apify.RequestResource data) { this.Data = data; } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestToDelete.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestToDelete.Json.g.cs new file mode 100644 index 00000000..c6caacbd --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RequestToDelete.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public readonly partial struct RequestToDelete + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.RequestToDelete? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RequestToDelete), + jsonSerializerContext) as global::Apify.RequestToDelete?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RequestToDelete? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.RequestToDelete? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.RequestToDelete), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestToDelete?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.RequestToDelete.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestToDelete.g.cs new file mode 100644 index 00000000..7633ce86 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RequestToDelete.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Apify +{ + /// + /// A request that should be deleted. + /// + public readonly partial struct RequestToDelete : global::System.IEquatable + { + /// + /// A request that should be deleted, identified by its ID. + /// +#if NET6_0_OR_GREATER + public global::Apify.RequestToDeleteById? RequestToDeleteById { get; init; } +#else + public global::Apify.RequestToDeleteById? RequestToDeleteById { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RequestToDeleteById))] +#endif + public bool IsRequestToDeleteById => RequestToDeleteById != null; + + /// + /// + /// + public bool TryPickRequestToDeleteById( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Apify.RequestToDeleteById? value) + { + value = RequestToDeleteById; + return IsRequestToDeleteById; + } + + /// + /// + /// + public global::Apify.RequestToDeleteById PickRequestToDeleteById() => RequestToDeleteById is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'RequestToDeleteById' but the value was {ToString()}."); + + /// + /// A request that should be deleted, identified by its unique key. + /// +#if NET6_0_OR_GREATER + public global::Apify.RequestToDeleteByUniqueKey? RequestToDeleteByUniqueKey { get; init; } +#else + public global::Apify.RequestToDeleteByUniqueKey? RequestToDeleteByUniqueKey { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RequestToDeleteByUniqueKey))] +#endif + public bool IsRequestToDeleteByUniqueKey => RequestToDeleteByUniqueKey != null; + + /// + /// + /// + public bool TryPickRequestToDeleteByUniqueKey( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Apify.RequestToDeleteByUniqueKey? value) + { + value = RequestToDeleteByUniqueKey; + return IsRequestToDeleteByUniqueKey; + } + + /// + /// + /// + public global::Apify.RequestToDeleteByUniqueKey PickRequestToDeleteByUniqueKey() => RequestToDeleteByUniqueKey is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'RequestToDeleteByUniqueKey' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator RequestToDelete(global::Apify.RequestToDeleteById value) => new RequestToDelete((global::Apify.RequestToDeleteById?)value); + + /// + /// + /// + public static implicit operator global::Apify.RequestToDeleteById?(RequestToDelete @this) => @this.RequestToDeleteById; + + /// + /// + /// + public RequestToDelete(global::Apify.RequestToDeleteById? value) + { + RequestToDeleteById = value; + } + + /// + /// + /// + public static RequestToDelete FromRequestToDeleteById(global::Apify.RequestToDeleteById? value) => new RequestToDelete(value); + + /// + /// + /// + public static implicit operator RequestToDelete(global::Apify.RequestToDeleteByUniqueKey value) => new RequestToDelete((global::Apify.RequestToDeleteByUniqueKey?)value); + + /// + /// + /// + public static implicit operator global::Apify.RequestToDeleteByUniqueKey?(RequestToDelete @this) => @this.RequestToDeleteByUniqueKey; + + /// + /// + /// + public RequestToDelete(global::Apify.RequestToDeleteByUniqueKey? value) + { + RequestToDeleteByUniqueKey = value; + } + + /// + /// + /// + public static RequestToDelete FromRequestToDeleteByUniqueKey(global::Apify.RequestToDeleteByUniqueKey? value) => new RequestToDelete(value); + + /// + /// + /// + public RequestToDelete( + global::Apify.RequestToDeleteById? requestToDeleteById, + global::Apify.RequestToDeleteByUniqueKey? requestToDeleteByUniqueKey + ) + { + RequestToDeleteById = requestToDeleteById; + RequestToDeleteByUniqueKey = requestToDeleteByUniqueKey; + } + + /// + /// + /// + public object? Object => + RequestToDeleteByUniqueKey as object ?? + RequestToDeleteById as object + ; + + /// + /// + /// + public override string? ToString() => + RequestToDeleteById?.ToString() ?? + RequestToDeleteByUniqueKey?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsRequestToDeleteById || IsRequestToDeleteByUniqueKey; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? requestToDeleteById = null, + global::System.Func? requestToDeleteByUniqueKey = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (RequestToDeleteById is { } __value0 && requestToDeleteById != null) + { + return requestToDeleteById(__value0); + } + else if (RequestToDeleteByUniqueKey is { } __value1 && requestToDeleteByUniqueKey != null) + { + return requestToDeleteByUniqueKey(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? requestToDeleteById = null, + + global::System.Action? requestToDeleteByUniqueKey = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (RequestToDeleteById is { } __value0) + { + requestToDeleteById?.Invoke(__value0); + } + else if (RequestToDeleteByUniqueKey is { } __value1) + { + requestToDeleteByUniqueKey?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? requestToDeleteById = null, + global::System.Action? requestToDeleteByUniqueKey = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (RequestToDeleteById is { } __value0) + { + requestToDeleteById?.Invoke(__value0); + } + else if (RequestToDeleteByUniqueKey is { } __value1) + { + requestToDeleteByUniqueKey?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + RequestToDeleteById, + typeof(global::Apify.RequestToDeleteById), + RequestToDeleteByUniqueKey, + typeof(global::Apify.RequestToDeleteByUniqueKey), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(RequestToDelete other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(RequestToDeleteById, other.RequestToDeleteById) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RequestToDeleteByUniqueKey, other.RequestToDeleteByUniqueKey) + ; + } + + /// + /// + /// + public static bool operator ==(RequestToDelete obj1, RequestToDelete obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(RequestToDelete obj1, RequestToDelete obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is RequestToDelete o && Equals(o); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.HeadAndLockResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestToDeleteById.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.HeadAndLockResponse.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestToDeleteById.Json.g.cs index 84c2374f..8314b300 100644 --- a/src/libs/Apify/Generated/Apify.Models.HeadAndLockResponse.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestToDeleteById.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class HeadAndLockResponse + public sealed partial class RequestToDeleteById { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.HeadAndLockResponse? FromJson( + public static global::Apify.RequestToDeleteById? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.HeadAndLockResponse), - jsonSerializerContext) as global::Apify.HeadAndLockResponse; + typeof(global::Apify.RequestToDeleteById), + jsonSerializerContext) as global::Apify.RequestToDeleteById; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.HeadAndLockResponse? FromJson( + public static global::Apify.RequestToDeleteById? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.HeadAndLockResponse? FromJson( + public static global::Apify.RequestToDeleteById? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.HeadAndLockResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.HeadAndLockResponse; + typeof(global::Apify.RequestToDeleteById), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestToDeleteById; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteById.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestToDeleteById.g.cs similarity index 91% rename from src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteById.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestToDeleteById.g.cs index e3162d5f..5abdd472 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteById.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestToDeleteById.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// A request that should be deleted, identified by its ID. /// - public sealed partial class RequestDraftDeleteById + public sealed partial class RequestToDeleteById { /// /// A unique identifier assigned to the request. @@ -28,7 +28,7 @@ public sealed partial class RequestDraftDeleteById public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A unique identifier assigned to the request. @@ -39,7 +39,7 @@ public sealed partial class RequestDraftDeleteById #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RequestDraftDeleteById( + public RequestToDeleteById( string id, string? uniqueKey) { @@ -48,9 +48,9 @@ public RequestDraftDeleteById( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RequestDraftDeleteById() + public RequestToDeleteById() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestToDeleteByUniqueKey.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestToDeleteByUniqueKey.Json.g.cs new file mode 100644 index 00000000..1141b4bc --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RequestToDeleteByUniqueKey.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RequestToDeleteByUniqueKey + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.RequestToDeleteByUniqueKey? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RequestToDeleteByUniqueKey), + jsonSerializerContext) as global::Apify.RequestToDeleteByUniqueKey; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RequestToDeleteByUniqueKey? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.RequestToDeleteByUniqueKey? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.RequestToDeleteByUniqueKey), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestToDeleteByUniqueKey; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteByUniqueKey.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestToDeleteByUniqueKey.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteByUniqueKey.g.cs rename to src/libs/Apify/Generated/Apify.Models.RequestToDeleteByUniqueKey.g.cs index 70b3bbeb..919e611e 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestDraftDeleteByUniqueKey.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestToDeleteByUniqueKey.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// A request that should be deleted, identified by its unique key. /// - public sealed partial class RequestDraftDeleteByUniqueKey + public sealed partial class RequestToDeleteByUniqueKey { /// /// A unique identifier assigned to the request. @@ -28,7 +28,7 @@ public sealed partial class RequestDraftDeleteByUniqueKey public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A unique key used for request de-duplication. Requests with the same unique key are considered identical. @@ -39,7 +39,7 @@ public sealed partial class RequestDraftDeleteByUniqueKey #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RequestDraftDeleteByUniqueKey( + public RequestToDeleteByUniqueKey( string uniqueKey, string? id) { @@ -48,9 +48,9 @@ public RequestDraftDeleteByUniqueKey( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RequestDraftDeleteByUniqueKey() + public RequestToDeleteByUniqueKey() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestVariant2.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestVariant2.Json.g.cs deleted file mode 100644 index 55c78a7a..00000000 --- a/src/libs/Apify/Generated/Apify.Models.RequestVariant2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class RequestVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.RequestVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.RequestVariant2), - jsonSerializerContext) as global::Apify.RequestVariant2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.RequestVariant2? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.RequestVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.RequestVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestVariant2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.Run.g.cs b/src/libs/Apify/Generated/Apify.Models.Run.g.cs index 378b506c..759f4d88 100644 --- a/src/libs/Apify/Generated/Apify.Models.Run.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.Run.g.cs @@ -196,7 +196,7 @@ public sealed partial class Run /// List of metamorph events that occurred during the run. /// [global::System.Text.Json.Serialization.JsonPropertyName("metamorphs")] - public global::System.Collections.Generic.IList? Metamorphs { get; set; } + public global::System.Collections.Generic.IList? Metamorphs { get; set; } /// /// Indicates which party covers platform usage costs for this run. @@ -336,7 +336,7 @@ public Run( global::Apify.RunUsage? usage, double? usageTotalUsd, global::Apify.RunUsageUsd? usageUsd, - global::System.Collections.Generic.IList? metamorphs, + global::System.Collections.Generic.IList? metamorphs, string? platformUsageBillingModel) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); diff --git a/src/libs/Apify/Generated/Apify.Models.InvalidItem.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RunListItem.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.InvalidItem.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.RunListItem.Json.g.cs index 7bc3daa3..7f3c5061 100644 --- a/src/libs/Apify/Generated/Apify.Models.InvalidItem.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunListItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class InvalidItem + public sealed partial class RunListItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.InvalidItem? FromJson( + public static global::Apify.RunListItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.InvalidItem), - jsonSerializerContext) as global::Apify.InvalidItem; + typeof(global::Apify.RunListItem), + jsonSerializerContext) as global::Apify.RunListItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.InvalidItem? FromJson( + public static global::Apify.RunListItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.InvalidItem? FromJson( + public static global::Apify.RunListItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.InvalidItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.InvalidItem; + typeof(global::Apify.RunListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RunListItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.RunShort.g.cs b/src/libs/Apify/Generated/Apify.Models.RunListItem.g.cs similarity index 96% rename from src/libs/Apify/Generated/Apify.Models.RunShort.g.cs rename to src/libs/Apify/Generated/Apify.Models.RunListItem.g.cs index d750723d..3421419b 100644 --- a/src/libs/Apify/Generated/Apify.Models.RunShort.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunListItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class RunShort + public sealed partial class RunListItem { /// /// @@ -116,7 +116,7 @@ public sealed partial class RunShort public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -138,7 +138,7 @@ public sealed partial class RunShort #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RunShort( + public RunListItem( string id, string actId, global::Apify.ActorJobStatus status, @@ -173,9 +173,9 @@ public RunShort( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RunShort() + public RunListItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.LockedHeadRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.LockedHeadRequest.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.Json.g.cs index ce486d17..0a012008 100644 --- a/src/libs/Apify/Generated/Apify.Models.LockedHeadRequest.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class LockedHeadRequest + public sealed partial class RunMetamorphEvent { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.LockedHeadRequest? FromJson( + public static global::Apify.RunMetamorphEvent? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.LockedHeadRequest), - jsonSerializerContext) as global::Apify.LockedHeadRequest; + typeof(global::Apify.RunMetamorphEvent), + jsonSerializerContext) as global::Apify.RunMetamorphEvent; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.LockedHeadRequest? FromJson( + public static global::Apify.RunMetamorphEvent? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.LockedHeadRequest? FromJson( + public static global::Apify.RunMetamorphEvent? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.LockedHeadRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.LockedHeadRequest; + typeof(global::Apify.RunMetamorphEvent), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RunMetamorphEvent; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.Metamorph.g.cs b/src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.Metamorph.g.cs rename to src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.g.cs index 15b48916..87d4a07c 100644 --- a/src/libs/Apify/Generated/Apify.Models.Metamorph.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// Information about a metamorph event that occurred during the run. /// - public sealed partial class Metamorph + public sealed partial class RunMetamorphEvent { /// /// Time when the metamorph occurred. @@ -42,7 +42,7 @@ public sealed partial class Metamorph public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Time when the metamorph occurred. @@ -59,7 +59,7 @@ public sealed partial class Metamorph #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Metamorph( + public RunMetamorphEvent( global::System.DateTime createdAt, string actorId, string buildId, @@ -72,9 +72,9 @@ public Metamorph( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Metamorph() + public RunMetamorphEvent() { } diff --git a/src/libs/Apify/Generated/Apify.Models.RunShort.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RunShort.Json.g.cs deleted file mode 100644 index fc886306..00000000 --- a/src/libs/Apify/Generated/Apify.Models.RunShort.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class RunShort - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.RunShort? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.RunShort), - jsonSerializerContext) as global::Apify.RunShort; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.RunShort? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.RunShort? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.RunShort), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RunShort; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorType.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorType.Json.g.cs deleted file mode 100644 index b8e2e0a8..00000000 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorType.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class ScheduleActionShortRunActorType - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.ScheduleActionShortRunActorType? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.ScheduleActionShortRunActorType), - jsonSerializerContext) as global::Apify.ScheduleActionShortRunActorType; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.ScheduleActionShortRunActorType? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.ScheduleActionShortRunActorType? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.ScheduleActionShortRunActorType), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleActionShortRunActorType; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleInvoked.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItem.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.ScheduleInvoked.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItem.Json.g.cs index fa8daf21..5ae420fe 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleInvoked.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ScheduleInvoked + public readonly partial struct ScheduleListItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleInvoked? FromJson( + public static global::Apify.ScheduleListItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleInvoked), - jsonSerializerContext) as global::Apify.ScheduleInvoked; + typeof(global::Apify.ScheduleListItem), + jsonSerializerContext) as global::Apify.ScheduleListItem?; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleInvoked? FromJson( + public static global::Apify.ScheduleListItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleInvoked? FromJson( + public static global::Apify.ScheduleListItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleInvoked), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleInvoked; + typeof(global::Apify.ScheduleListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleListItem?; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleShort.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItem.g.cs similarity index 62% rename from src/libs/Apify/Generated/Apify.Models.ScheduleShort.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItem.g.cs index 8bceb85a..f1fe309d 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleShort.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItem.g.cs @@ -7,7 +7,7 @@ namespace Apify /// /// /// - public readonly partial struct ScheduleShort : global::System.IEquatable + public readonly partial struct ScheduleListItem : global::System.IEquatable { /// /// @@ -50,52 +50,52 @@ public bool TryPickScheduleBase( /// /// #if NET6_0_OR_GREATER - public global::Apify.ScheduleShortVariant2? ScheduleShortVariant2 { get; init; } + public global::Apify.ScheduleListItemVariant2? ScheduleListItemVariant2 { get; init; } #else - public global::Apify.ScheduleShortVariant2? ScheduleShortVariant2 { get; } + public global::Apify.ScheduleListItemVariant2? ScheduleListItemVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ScheduleShortVariant2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ScheduleListItemVariant2))] #endif - public bool IsScheduleShortVariant2 => ScheduleShortVariant2 != null; + public bool IsScheduleListItemVariant2 => ScheduleListItemVariant2 != null; /// /// /// - public bool TryPickScheduleShortVariant2( + public bool TryPickScheduleListItemVariant2( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Apify.ScheduleShortVariant2? value) + out global::Apify.ScheduleListItemVariant2? value) { - value = ScheduleShortVariant2; - return IsScheduleShortVariant2; + value = ScheduleListItemVariant2; + return IsScheduleListItemVariant2; } /// /// /// - public global::Apify.ScheduleShortVariant2 PickScheduleShortVariant2() => ScheduleShortVariant2 is { } value + public global::Apify.ScheduleListItemVariant2 PickScheduleListItemVariant2() => ScheduleListItemVariant2 is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ScheduleShortVariant2' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'ScheduleListItemVariant2' but the value was {ToString()}."); /// /// /// - public static implicit operator ScheduleShort(global::Apify.ScheduleBase value) => new ScheduleShort((global::Apify.ScheduleBase?)value); + public static implicit operator ScheduleListItem(global::Apify.ScheduleBase value) => new ScheduleListItem((global::Apify.ScheduleBase?)value); /// /// /// - public static implicit operator global::Apify.ScheduleBase?(ScheduleShort @this) => @this.ScheduleBase; + public static implicit operator global::Apify.ScheduleBase?(ScheduleListItem @this) => @this.ScheduleBase; /// /// /// - public ScheduleShort(global::Apify.ScheduleBase? value) + public ScheduleListItem(global::Apify.ScheduleBase? value) { ScheduleBase = value; } @@ -103,48 +103,48 @@ public ScheduleShort(global::Apify.ScheduleBase? value) /// /// /// - public static ScheduleShort FromScheduleBase(global::Apify.ScheduleBase? value) => new ScheduleShort(value); + public static ScheduleListItem FromScheduleBase(global::Apify.ScheduleBase? value) => new ScheduleListItem(value); /// /// /// - public static implicit operator ScheduleShort(global::Apify.ScheduleShortVariant2 value) => new ScheduleShort((global::Apify.ScheduleShortVariant2?)value); + public static implicit operator ScheduleListItem(global::Apify.ScheduleListItemVariant2 value) => new ScheduleListItem((global::Apify.ScheduleListItemVariant2?)value); /// /// /// - public static implicit operator global::Apify.ScheduleShortVariant2?(ScheduleShort @this) => @this.ScheduleShortVariant2; + public static implicit operator global::Apify.ScheduleListItemVariant2?(ScheduleListItem @this) => @this.ScheduleListItemVariant2; /// /// /// - public ScheduleShort(global::Apify.ScheduleShortVariant2? value) + public ScheduleListItem(global::Apify.ScheduleListItemVariant2? value) { - ScheduleShortVariant2 = value; + ScheduleListItemVariant2 = value; } /// /// /// - public static ScheduleShort FromScheduleShortVariant2(global::Apify.ScheduleShortVariant2? value) => new ScheduleShort(value); + public static ScheduleListItem FromScheduleListItemVariant2(global::Apify.ScheduleListItemVariant2? value) => new ScheduleListItem(value); /// /// /// - public ScheduleShort( + public ScheduleListItem( global::Apify.ScheduleBase? scheduleBase, - global::Apify.ScheduleShortVariant2? scheduleShortVariant2 + global::Apify.ScheduleListItemVariant2? scheduleListItemVariant2 ) { ScheduleBase = scheduleBase; - ScheduleShortVariant2 = scheduleShortVariant2; + ScheduleListItemVariant2 = scheduleListItemVariant2; } /// /// /// public object? Object => - ScheduleShortVariant2 as object ?? + ScheduleListItemVariant2 as object ?? ScheduleBase as object ; @@ -153,7 +153,7 @@ ScheduleBase as object /// public override string? ToString() => ScheduleBase?.ToString() ?? - ScheduleShortVariant2?.ToString() + ScheduleListItemVariant2?.ToString() ; /// @@ -161,7 +161,7 @@ ScheduleBase as object /// public bool Validate() { - return IsScheduleBase && IsScheduleShortVariant2; + return IsScheduleBase && IsScheduleListItemVariant2; } /// @@ -169,7 +169,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? scheduleBase = null, - global::System.Func? scheduleShortVariant2 = null, + global::System.Func? scheduleListItemVariant2 = null, bool validate = true) { if (validate) @@ -181,9 +181,9 @@ public bool Validate() { return scheduleBase(__value0); } - else if (ScheduleShortVariant2 is { } __value1 && scheduleShortVariant2 != null) + else if (ScheduleListItemVariant2 is { } __value1 && scheduleListItemVariant2 != null) { - return scheduleShortVariant2(__value1); + return scheduleListItemVariant2(__value1); } return default(TResult); @@ -195,7 +195,7 @@ public bool Validate() public void Match( global::System.Action? scheduleBase = null, - global::System.Action? scheduleShortVariant2 = null, + global::System.Action? scheduleListItemVariant2 = null, bool validate = true) { if (validate) @@ -207,9 +207,9 @@ public void Match( { scheduleBase?.Invoke(__value0); } - else if (ScheduleShortVariant2 is { } __value1) + else if (ScheduleListItemVariant2 is { } __value1) { - scheduleShortVariant2?.Invoke(__value1); + scheduleListItemVariant2?.Invoke(__value1); } } @@ -218,7 +218,7 @@ public void Match( /// public void Switch( global::System.Action? scheduleBase = null, - global::System.Action? scheduleShortVariant2 = null, + global::System.Action? scheduleListItemVariant2 = null, bool validate = true) { if (validate) @@ -230,9 +230,9 @@ public void Switch( { scheduleBase?.Invoke(__value0); } - else if (ScheduleShortVariant2 is { } __value1) + else if (ScheduleListItemVariant2 is { } __value1) { - scheduleShortVariant2?.Invoke(__value1); + scheduleListItemVariant2?.Invoke(__value1); } } @@ -245,8 +245,8 @@ public override int GetHashCode() { ScheduleBase, typeof(global::Apify.ScheduleBase), - ScheduleShortVariant2, - typeof(global::Apify.ScheduleShortVariant2), + ScheduleListItemVariant2, + typeof(global::Apify.ScheduleListItemVariant2), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -260,26 +260,26 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(ScheduleShort other) + public bool Equals(ScheduleListItem other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ScheduleBase, other.ScheduleBase) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ScheduleShortVariant2, other.ScheduleShortVariant2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ScheduleListItemVariant2, other.ScheduleListItemVariant2) ; } /// /// /// - public static bool operator ==(ScheduleShort obj1, ScheduleShort obj2) + public static bool operator ==(ScheduleListItem obj1, ScheduleListItem obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(ScheduleShort obj1, ScheduleShort obj2) + public static bool operator !=(ScheduleListItem obj1, ScheduleListItem obj2) { return !(obj1 == obj2); } @@ -289,7 +289,7 @@ public bool Equals(ScheduleShort other) /// public override bool Equals(object? obj) { - return obj is ScheduleShort o && Equals(o); + return obj is ScheduleListItem o && Equals(o); } } } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShort.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemAction.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShort.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemAction.Json.g.cs index 3ee6eb83..8caf80e9 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShort.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemAction.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public readonly partial struct ScheduleActionShort + public readonly partial struct ScheduleListItemAction { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleActionShort? FromJson( + public static global::Apify.ScheduleListItemAction? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleActionShort), - jsonSerializerContext) as global::Apify.ScheduleActionShort?; + typeof(global::Apify.ScheduleListItemAction), + jsonSerializerContext) as global::Apify.ScheduleListItemAction?; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleActionShort? FromJson( + public static global::Apify.ScheduleListItemAction? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleActionShort? FromJson( + public static global::Apify.ScheduleListItemAction? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleActionShort), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleActionShort?; + typeof(global::Apify.ScheduleListItemAction), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleListItemAction?; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShort.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemAction.g.cs similarity index 61% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShort.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemAction.g.cs index e69c97dd..3a938055 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShort.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemAction.g.cs @@ -7,20 +7,20 @@ namespace Apify /// /// /// - public readonly partial struct ScheduleActionShort : global::System.IEquatable + public readonly partial struct ScheduleListItemAction : global::System.IEquatable { /// /// /// - public global::Apify.ScheduleActionShortDiscriminatorType? Type { get; } + public global::Apify.ScheduleListItemActionDiscriminatorType? Type { get; } /// /// /// #if NET6_0_OR_GREATER - public global::Apify.ScheduleActionShortRunActor? RunActor { get; init; } + public global::Apify.ScheduleListItemActionRunActor? RunActor { get; init; } #else - public global::Apify.ScheduleActionShortRunActor? RunActor { get; } + public global::Apify.ScheduleListItemActionRunActor? RunActor { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunActor( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Apify.ScheduleActionShortRunActor? value) + out global::Apify.ScheduleListItemActionRunActor? value) { value = RunActor; return IsRunActor; @@ -47,7 +47,7 @@ public bool TryPickRunActor( /// /// /// - public global::Apify.ScheduleActionShortRunActor PickRunActor() => RunActor is { } value + public global::Apify.ScheduleListItemActionRunActor PickRunActor() => RunActor is { } value ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunActor' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunActor( /// /// #if NET6_0_OR_GREATER - public global::Apify.ScheduleActionShortRunActorTask? RunActorTask { get; init; } + public global::Apify.ScheduleListItemActionRunActorTask? RunActorTask { get; init; } #else - public global::Apify.ScheduleActionShortRunActorTask? RunActorTask { get; } + public global::Apify.ScheduleListItemActionRunActorTask? RunActorTask { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickRunActorTask( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Apify.ScheduleActionShortRunActorTask? value) + out global::Apify.ScheduleListItemActionRunActorTask? value) { value = RunActorTask; return IsRunActorTask; @@ -84,23 +84,23 @@ public bool TryPickRunActorTask( /// /// /// - public global::Apify.ScheduleActionShortRunActorTask PickRunActorTask() => RunActorTask is { } value + public global::Apify.ScheduleListItemActionRunActorTask PickRunActorTask() => RunActorTask is { } value ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunActorTask' but the value was {ToString()}."); /// /// /// - public static implicit operator ScheduleActionShort(global::Apify.ScheduleActionShortRunActor value) => new ScheduleActionShort((global::Apify.ScheduleActionShortRunActor?)value); + public static implicit operator ScheduleListItemAction(global::Apify.ScheduleListItemActionRunActor value) => new ScheduleListItemAction((global::Apify.ScheduleListItemActionRunActor?)value); /// /// /// - public static implicit operator global::Apify.ScheduleActionShortRunActor?(ScheduleActionShort @this) => @this.RunActor; + public static implicit operator global::Apify.ScheduleListItemActionRunActor?(ScheduleListItemAction @this) => @this.RunActor; /// /// /// - public ScheduleActionShort(global::Apify.ScheduleActionShortRunActor? value) + public ScheduleListItemAction(global::Apify.ScheduleListItemActionRunActor? value) { RunActor = value; } @@ -108,22 +108,22 @@ public ScheduleActionShort(global::Apify.ScheduleActionShortRunActor? value) /// /// /// - public static ScheduleActionShort FromRunActor(global::Apify.ScheduleActionShortRunActor? value) => new ScheduleActionShort(value); + public static ScheduleListItemAction FromRunActor(global::Apify.ScheduleListItemActionRunActor? value) => new ScheduleListItemAction(value); /// /// /// - public static implicit operator ScheduleActionShort(global::Apify.ScheduleActionShortRunActorTask value) => new ScheduleActionShort((global::Apify.ScheduleActionShortRunActorTask?)value); + public static implicit operator ScheduleListItemAction(global::Apify.ScheduleListItemActionRunActorTask value) => new ScheduleListItemAction((global::Apify.ScheduleListItemActionRunActorTask?)value); /// /// /// - public static implicit operator global::Apify.ScheduleActionShortRunActorTask?(ScheduleActionShort @this) => @this.RunActorTask; + public static implicit operator global::Apify.ScheduleListItemActionRunActorTask?(ScheduleListItemAction @this) => @this.RunActorTask; /// /// /// - public ScheduleActionShort(global::Apify.ScheduleActionShortRunActorTask? value) + public ScheduleListItemAction(global::Apify.ScheduleListItemActionRunActorTask? value) { RunActorTask = value; } @@ -131,15 +131,15 @@ public ScheduleActionShort(global::Apify.ScheduleActionShortRunActorTask? value) /// /// /// - public static ScheduleActionShort FromRunActorTask(global::Apify.ScheduleActionShortRunActorTask? value) => new ScheduleActionShort(value); + public static ScheduleListItemAction FromRunActorTask(global::Apify.ScheduleListItemActionRunActorTask? value) => new ScheduleListItemAction(value); /// /// /// - public ScheduleActionShort( - global::Apify.ScheduleActionShortDiscriminatorType? type, - global::Apify.ScheduleActionShortRunActor? runActor, - global::Apify.ScheduleActionShortRunActorTask? runActorTask + public ScheduleListItemAction( + global::Apify.ScheduleListItemActionDiscriminatorType? type, + global::Apify.ScheduleListItemActionRunActor? runActor, + global::Apify.ScheduleListItemActionRunActorTask? runActorTask ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runActor = null, - global::System.Func? runActorTask = null, + global::System.Func? runActor = null, + global::System.Func? runActorTask = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runActor = null, + global::System.Action? runActor = null, - global::System.Action? runActorTask = null, + global::System.Action? runActorTask = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? runActor = null, - global::System.Action? runActorTask = null, + global::System.Action? runActor = null, + global::System.Action? runActorTask = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunActor, - typeof(global::Apify.ScheduleActionShortRunActor), + typeof(global::Apify.ScheduleListItemActionRunActor), RunActorTask, - typeof(global::Apify.ScheduleActionShortRunActorTask), + typeof(global::Apify.ScheduleListItemActionRunActorTask), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -268,26 +268,26 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(ScheduleActionShort other) + public bool Equals(ScheduleListItemAction other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunActor, other.RunActor) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunActorTask, other.RunActorTask) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunActor, other.RunActor) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunActorTask, other.RunActorTask) ; } /// /// /// - public static bool operator ==(ScheduleActionShort obj1, ScheduleActionShort obj2) + public static bool operator ==(ScheduleListItemAction obj1, ScheduleListItemAction obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(ScheduleActionShort obj1, ScheduleActionShort obj2) + public static bool operator !=(ScheduleListItemAction obj1, ScheduleListItemAction obj2) { return !(obj1 == obj2); } @@ -297,7 +297,7 @@ public bool Equals(ScheduleActionShort other) /// public override bool Equals(object? obj) { - return obj is ScheduleActionShort o && Equals(o); + return obj is ScheduleListItemAction o && Equals(o); } } } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTaskType.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminator.Json.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTaskType.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminator.Json.g.cs index 869f8a46..4464afb0 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTaskType.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ScheduleActionShortRunActorTaskType + public sealed partial class ScheduleListItemActionDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleActionShortRunActorTaskType? FromJson( + public static global::Apify.ScheduleListItemActionDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleActionShortRunActorTaskType), - jsonSerializerContext) as global::Apify.ScheduleActionShortRunActorTaskType; + typeof(global::Apify.ScheduleListItemActionDiscriminator), + jsonSerializerContext) as global::Apify.ScheduleListItemActionDiscriminator; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleActionShortRunActorTaskType? FromJson( + public static global::Apify.ScheduleListItemActionDiscriminator? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleActionShortRunActorTaskType? FromJson( + public static global::Apify.ScheduleListItemActionDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleActionShortRunActorTaskType), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleActionShortRunActorTaskType; + typeof(global::Apify.ScheduleListItemActionDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleListItemActionDiscriminator; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminator.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminator.g.cs similarity index 68% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminator.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminator.g.cs index f659a20c..72267428 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminator.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminator.g.cs @@ -6,14 +6,14 @@ namespace Apify /// /// /// - public sealed partial class ScheduleActionShortDiscriminator + public sealed partial class ScheduleListItemActionDiscriminator { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.ScheduleActionShortDiscriminatorTypeJsonConverter))] - public global::Apify.ScheduleActionShortDiscriminatorType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeJsonConverter))] + public global::Apify.ScheduleListItemActionDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,22 @@ public sealed partial class ScheduleActionShortDiscriminator public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ScheduleActionShortDiscriminator( - global::Apify.ScheduleActionShortDiscriminatorType? type) + public ScheduleListItemActionDiscriminator( + global::Apify.ScheduleListItemActionDiscriminatorType? type) { this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ScheduleActionShortDiscriminator() + public ScheduleListItemActionDiscriminator() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminatorType.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminatorType.g.cs similarity index 56% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminatorType.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminatorType.g.cs index f08596f2..b1768918 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminatorType.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionDiscriminatorType.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public enum ScheduleActionShortDiscriminatorType + public enum ScheduleListItemActionDiscriminatorType { /// /// @@ -21,29 +21,29 @@ public enum ScheduleActionShortDiscriminatorType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ScheduleActionShortDiscriminatorTypeExtensions + public static class ScheduleListItemActionDiscriminatorTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ScheduleActionShortDiscriminatorType value) + public static string ToValueString(this ScheduleListItemActionDiscriminatorType value) { return value switch { - ScheduleActionShortDiscriminatorType.RunActor => "RUN_ACTOR", - ScheduleActionShortDiscriminatorType.RunActorTask => "RUN_ACTOR_TASK", + ScheduleListItemActionDiscriminatorType.RunActor => "RUN_ACTOR", + ScheduleListItemActionDiscriminatorType.RunActorTask => "RUN_ACTOR_TASK", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ScheduleActionShortDiscriminatorType? ToEnum(string value) + public static ScheduleListItemActionDiscriminatorType? ToEnum(string value) { return value switch { - "RUN_ACTOR" => ScheduleActionShortDiscriminatorType.RunActor, - "RUN_ACTOR_TASK" => ScheduleActionShortDiscriminatorType.RunActorTask, + "RUN_ACTOR" => ScheduleListItemActionDiscriminatorType.RunActor, + "RUN_ACTOR_TASK" => ScheduleListItemActionDiscriminatorType.RunActorTask, _ => null, }; } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActor.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActor.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActor.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActor.Json.g.cs index 5adc11ec..2291988f 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActor.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActor.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ScheduleActionShortRunActor + public sealed partial class ScheduleListItemActionRunActor { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleActionShortRunActor? FromJson( + public static global::Apify.ScheduleListItemActionRunActor? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleActionShortRunActor), - jsonSerializerContext) as global::Apify.ScheduleActionShortRunActor; + typeof(global::Apify.ScheduleListItemActionRunActor), + jsonSerializerContext) as global::Apify.ScheduleListItemActionRunActor; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleActionShortRunActor? FromJson( + public static global::Apify.ScheduleListItemActionRunActor? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleActionShortRunActor? FromJson( + public static global::Apify.ScheduleListItemActionRunActor? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleActionShortRunActor), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleActionShortRunActor; + typeof(global::Apify.ScheduleListItemActionRunActor), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleListItemActionRunActor; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActor.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActor.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActor.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActor.g.cs index 613a1e26..cb4fa2dc 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActor.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActor.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ScheduleActionShortRunActor + public sealed partial class ScheduleListItemActionRunActor { /// /// @@ -36,7 +36,7 @@ public sealed partial class ScheduleActionShortRunActor public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -44,7 +44,7 @@ public sealed partial class ScheduleActionShortRunActor #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ScheduleActionShortRunActor( + public ScheduleListItemActionRunActor( string id, string actorId, string type = "RUN_ACTOR") @@ -55,9 +55,9 @@ public ScheduleActionShortRunActor( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ScheduleActionShortRunActor() + public ScheduleListItemActionRunActor() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminator.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTask.Json.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminator.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTask.Json.g.cs index cf116ad8..0db7e7f5 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortDiscriminator.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTask.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ScheduleActionShortDiscriminator + public sealed partial class ScheduleListItemActionRunActorTask { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleActionShortDiscriminator? FromJson( + public static global::Apify.ScheduleListItemActionRunActorTask? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleActionShortDiscriminator), - jsonSerializerContext) as global::Apify.ScheduleActionShortDiscriminator; + typeof(global::Apify.ScheduleListItemActionRunActorTask), + jsonSerializerContext) as global::Apify.ScheduleListItemActionRunActorTask; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleActionShortDiscriminator? FromJson( + public static global::Apify.ScheduleListItemActionRunActorTask? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleActionShortDiscriminator? FromJson( + public static global::Apify.ScheduleListItemActionRunActorTask? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleActionShortDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleActionShortDiscriminator; + typeof(global::Apify.ScheduleListItemActionRunActorTask), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleListItemActionRunActorTask; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTask.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTask.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTask.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTask.g.cs index c5343b29..1b6345d4 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTask.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTask.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ScheduleActionShortRunActorTask + public sealed partial class ScheduleListItemActionRunActorTask { /// /// @@ -36,7 +36,7 @@ public sealed partial class ScheduleActionShortRunActorTask public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -44,7 +44,7 @@ public sealed partial class ScheduleActionShortRunActorTask #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ScheduleActionShortRunActorTask( + public ScheduleListItemActionRunActorTask( string id, string actorTaskId, string type = "RUN_ACTOR_TASK") @@ -55,9 +55,9 @@ public ScheduleActionShortRunActorTask( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ScheduleActionShortRunActorTask() + public ScheduleListItemActionRunActorTask() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTaskType.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTaskType.Json.g.cs new file mode 100644 index 00000000..ef25fc2e --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTaskType.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ScheduleListItemActionRunActorTaskType + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.ScheduleListItemActionRunActorTaskType? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ScheduleListItemActionRunActorTaskType), + jsonSerializerContext) as global::Apify.ScheduleListItemActionRunActorTaskType; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ScheduleListItemActionRunActorTaskType? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.ScheduleListItemActionRunActorTaskType? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.ScheduleListItemActionRunActorTaskType), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleListItemActionRunActorTaskType; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTaskType.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTaskType.g.cs similarity index 86% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTaskType.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTaskType.g.cs index d3dcc2ab..43895039 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTaskType.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorTaskType.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ScheduleActionShortRunActorTaskType + public sealed partial class ScheduleListItemActionRunActorTaskType { /// diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTask.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorType.Json.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTask.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorType.Json.g.cs index e2342735..da3b9232 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorTask.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorType.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ScheduleActionShortRunActorTask + public sealed partial class ScheduleListItemActionRunActorType { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleActionShortRunActorTask? FromJson( + public static global::Apify.ScheduleListItemActionRunActorType? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleActionShortRunActorTask), - jsonSerializerContext) as global::Apify.ScheduleActionShortRunActorTask; + typeof(global::Apify.ScheduleListItemActionRunActorType), + jsonSerializerContext) as global::Apify.ScheduleListItemActionRunActorType; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleActionShortRunActorTask? FromJson( + public static global::Apify.ScheduleListItemActionRunActorType? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleActionShortRunActorTask? FromJson( + public static global::Apify.ScheduleListItemActionRunActorType? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleActionShortRunActorTask), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleActionShortRunActorTask; + typeof(global::Apify.ScheduleListItemActionRunActorType), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleListItemActionRunActorType; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorType.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorType.g.cs similarity index 87% rename from src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorType.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorType.g.cs index cd1672f1..32f9fb20 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleActionShortRunActorType.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemActionRunActorType.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ScheduleActionShortRunActorType + public sealed partial class ScheduleListItemActionRunActorType { /// diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleShort.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.ScheduleShort.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.Json.g.cs index 2d882719..fc2e6ccc 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleShort.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public readonly partial struct ScheduleShort + public sealed partial class ScheduleListItemVariant2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleShort? FromJson( + public static global::Apify.ScheduleListItemVariant2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleShort), - jsonSerializerContext) as global::Apify.ScheduleShort?; + typeof(global::Apify.ScheduleListItemVariant2), + jsonSerializerContext) as global::Apify.ScheduleListItemVariant2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleShort? FromJson( + public static global::Apify.ScheduleListItemVariant2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleShort? FromJson( + public static global::Apify.ScheduleListItemVariant2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleShort), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleShort?; + typeof(global::Apify.ScheduleListItemVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleListItemVariant2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleShortVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.g.cs similarity index 81% rename from src/libs/Apify/Generated/Apify.Models.ScheduleShortVariant2.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.g.cs index dfdfbf4a..0298e0b1 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleShortVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.g.cs @@ -6,14 +6,14 @@ namespace Apify /// /// /// - public sealed partial class ScheduleShortVariant2 + public sealed partial class ScheduleListItemVariant2 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("actions")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Actions { get; set; } + public required global::System.Collections.Generic.IList Actions { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,22 @@ public sealed partial class ScheduleShortVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ScheduleShortVariant2( - global::System.Collections.Generic.IList actions) + public ScheduleListItemVariant2( + global::System.Collections.Generic.IList actions) { this.Actions = actions ?? throw new global::System.ArgumentNullException(nameof(actions)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ScheduleShortVariant2() + public ScheduleListItemVariant2() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleCreate.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleLogEntry.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.ScheduleCreate.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleLogEntry.Json.g.cs index acd9ceb8..b6b0fa04 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleCreate.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleLogEntry.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ScheduleCreate + public sealed partial class ScheduleLogEntry { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ScheduleCreate? FromJson( + public static global::Apify.ScheduleLogEntry? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ScheduleCreate), - jsonSerializerContext) as global::Apify.ScheduleCreate; + typeof(global::Apify.ScheduleLogEntry), + jsonSerializerContext) as global::Apify.ScheduleLogEntry; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ScheduleCreate? FromJson( + public static global::Apify.ScheduleLogEntry? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ScheduleCreate? FromJson( + public static global::Apify.ScheduleLogEntry? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ScheduleCreate), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleCreate; + typeof(global::Apify.ScheduleLogEntry), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleLogEntry; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleInvoked.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleLogEntry.g.cs similarity index 92% rename from src/libs/Apify/Generated/Apify.Models.ScheduleInvoked.g.cs rename to src/libs/Apify/Generated/Apify.Models.ScheduleLogEntry.g.cs index 4a4cdaf1..b3065b7a 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleInvoked.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleLogEntry.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ScheduleInvoked + public sealed partial class ScheduleLogEntry { /// /// @@ -36,7 +36,7 @@ public sealed partial class ScheduleInvoked public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -44,7 +44,7 @@ public sealed partial class ScheduleInvoked #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ScheduleInvoked( + public ScheduleLogEntry( string message, string level, global::System.DateTime createdAt) @@ -55,9 +55,9 @@ public ScheduleInvoked( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ScheduleInvoked() + public ScheduleLogEntry() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleLogResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleLogResponse.g.cs index bb600e10..1568cf63 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleLogResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleLogResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class ScheduleLogResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Data { get; set; } + public required global::System.Collections.Generic.IList Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ScheduleLogResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ScheduleLogResponse( - global::System.Collections.Generic.IList data) + global::System.Collections.Generic.IList data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ActorShort.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActor.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.ActorShort.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.StoreActor.Json.g.cs index d2410a57..91adea3a 100644 --- a/src/libs/Apify/Generated/Apify.Models.ActorShort.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.StoreActor.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class ActorShort + public sealed partial class StoreActor { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.ActorShort? FromJson( + public static global::Apify.StoreActor? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.ActorShort), - jsonSerializerContext) as global::Apify.ActorShort; + typeof(global::Apify.StoreActor), + jsonSerializerContext) as global::Apify.StoreActor; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.ActorShort? FromJson( + public static global::Apify.StoreActor? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.ActorShort? FromJson( + public static global::Apify.StoreActor? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.ActorShort), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ActorShort; + typeof(global::Apify.StoreActor), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.StoreActor; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.StoreListActor.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActor.g.cs similarity index 96% rename from src/libs/Apify/Generated/Apify.Models.StoreListActor.g.cs rename to src/libs/Apify/Generated/Apify.Models.StoreActor.g.cs index 91c76ddf..3973f77c 100644 --- a/src/libs/Apify/Generated/Apify.Models.StoreListActor.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.StoreActor.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class StoreListActor + public sealed partial class StoreActor { /// /// @@ -136,7 +136,7 @@ public sealed partial class StoreListActor public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -170,7 +170,7 @@ public sealed partial class StoreListActor #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public StoreListActor( + public StoreActor( string id, string title, string name, @@ -213,9 +213,9 @@ public StoreListActor( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public StoreListActor() + public StoreActor() { } diff --git a/src/libs/Apify/Generated/Apify.Models.StoreListActor.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreListActor.Json.g.cs deleted file mode 100644 index 7397b961..00000000 --- a/src/libs/Apify/Generated/Apify.Models.StoreListActor.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class StoreListActor - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.StoreListActor? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.StoreListActor), - jsonSerializerContext) as global::Apify.StoreListActor; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.StoreListActor? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.StoreListActor? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.StoreListActor), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.StoreListActor; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.Actor.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskListItem.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.Actor.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.TaskListItem.Json.g.cs index f46c8332..835f0123 100644 --- a/src/libs/Apify/Generated/Apify.Models.Actor.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.TaskListItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class Actor + public sealed partial class TaskListItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.Actor? FromJson( + public static global::Apify.TaskListItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.Actor), - jsonSerializerContext) as global::Apify.Actor; + typeof(global::Apify.TaskListItem), + jsonSerializerContext) as global::Apify.TaskListItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.Actor? FromJson( + public static global::Apify.TaskListItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.Actor? FromJson( + public static global::Apify.TaskListItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.Actor), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Actor; + typeof(global::Apify.TaskListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.TaskListItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.TaskShort.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskListItem.g.cs similarity index 94% rename from src/libs/Apify/Generated/Apify.Models.TaskShort.g.cs rename to src/libs/Apify/Generated/Apify.Models.TaskListItem.g.cs index 1864e4ad..b6064124 100644 --- a/src/libs/Apify/Generated/Apify.Models.TaskShort.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.TaskListItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class TaskShort + public sealed partial class TaskListItem { /// /// @@ -81,7 +81,7 @@ public sealed partial class TaskShort public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -96,7 +96,7 @@ public sealed partial class TaskShort #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public TaskShort( + public TaskListItem( string id, string userId, string actId, @@ -121,9 +121,9 @@ public TaskShort( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public TaskShort() + public TaskListItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.TaskShort.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskShort.Json.g.cs deleted file mode 100644 index 323f6203..00000000 --- a/src/libs/Apify/Generated/Apify.Models.TaskShort.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class TaskShort - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.TaskShort? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.TaskShort), - jsonSerializerContext) as global::Apify.TaskShort; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.TaskShort? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.TaskShort? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.TaskShort), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.TaskShort; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.TestWebhookResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.TestWebhookResponse.g.cs deleted file mode 100644 index 631b2cb7..00000000 --- a/src/libs/Apify/Generated/Apify.Models.TestWebhookResponse.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Apify -{ - /// - /// - /// - public sealed partial class TestWebhookResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.WebhookDispatch Data { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TestWebhookResponse( - global::Apify.WebhookDispatch data) - { - this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); - } - - /// - /// Initializes a new instance of the class. - /// - public TestWebhookResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RequestDraftDelete.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UnprocessedRequest.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.RequestDraftDelete.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.UnprocessedRequest.Json.g.cs index 8ff90b27..76954ccb 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestDraftDelete.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UnprocessedRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public readonly partial struct RequestDraftDelete + public sealed partial class UnprocessedRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.RequestDraftDelete? FromJson( + public static global::Apify.UnprocessedRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.RequestDraftDelete), - jsonSerializerContext) as global::Apify.RequestDraftDelete?; + typeof(global::Apify.UnprocessedRequest), + jsonSerializerContext) as global::Apify.UnprocessedRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.RequestDraftDelete? FromJson( + public static global::Apify.UnprocessedRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.RequestDraftDelete? FromJson( + public static global::Apify.UnprocessedRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.RequestDraftDelete), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestDraftDelete?; + typeof(global::Apify.UnprocessedRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UnprocessedRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.RequestDraft.g.cs b/src/libs/Apify/Generated/Apify.Models.UnprocessedRequest.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.RequestDraft.g.cs rename to src/libs/Apify/Generated/Apify.Models.UnprocessedRequest.g.cs index 88d08fe8..374a6c81 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestDraft.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UnprocessedRequest.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// A request that failed to be processed during a request queue operation and can be retried. /// - public sealed partial class RequestDraft + public sealed partial class UnprocessedRequest { /// /// A unique identifier assigned to the request. @@ -42,7 +42,7 @@ public sealed partial class RequestDraft public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A unique key used for request de-duplication. Requests with the same unique key are considered identical. @@ -59,7 +59,7 @@ public sealed partial class RequestDraft #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RequestDraft( + public UnprocessedRequest( string uniqueKey, string url, string? id, @@ -72,9 +72,9 @@ public RequestDraft( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RequestDraft() + public UnprocessedRequest() { } diff --git a/src/libs/Apify/Generated/Apify.Models.UpdateActorRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateActorRequest.g.cs index f1039c5e..95f684fb 100644 --- a/src/libs/Apify/Generated/Apify.Models.UpdateActorRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UpdateActorRequest.g.cs @@ -89,7 +89,7 @@ public sealed partial class UpdateActorRequest /// /// {"latest":{"buildId":"z2EryhbfhgSyqj6Hn"},"beta":null} [global::System.Text.Json.Serialization.JsonPropertyName("taggedBuilds")] - public global::System.Collections.Generic.Dictionary? TaggedBuilds { get; set; } + public global::System.Collections.Generic.Dictionary? TaggedBuilds { get; set; } /// /// The configuration of the Actor's standby mode. For details, see [Standby mode](https://docs.apify.com/platform/actors/development/programming-interface/standby). @@ -175,7 +175,7 @@ public UpdateActorRequest( global::System.Collections.Generic.IList? pricingInfos, global::System.Collections.Generic.IList? categories, global::Apify.DefaultRunOptions? defaultRunOptions, - global::System.Collections.Generic.Dictionary? taggedBuilds, + global::System.Collections.Generic.Dictionary? taggedBuilds, global::Apify.ActorStandby? actorStandby, global::Apify.ExampleRunInput? exampleRunInput, bool? isDeprecated) diff --git a/src/libs/Apify/Generated/Apify.Models.UpdateKeyValueStoreRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateKeyValueStoreRequest.Json.g.cs new file mode 100644 index 00000000..68180713 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UpdateKeyValueStoreRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class UpdateKeyValueStoreRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.UpdateKeyValueStoreRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.UpdateKeyValueStoreRequest), + jsonSerializerContext) as global::Apify.UpdateKeyValueStoreRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.UpdateKeyValueStoreRequest? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.UpdateKeyValueStoreRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.UpdateKeyValueStoreRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UpdateKeyValueStoreRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.UpdateStoreRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateKeyValueStoreRequest.g.cs similarity index 83% rename from src/libs/Apify/Generated/Apify.Models.UpdateStoreRequest.g.cs rename to src/libs/Apify/Generated/Apify.Models.UpdateKeyValueStoreRequest.g.cs index a40377a0..948df879 100644 --- a/src/libs/Apify/Generated/Apify.Models.UpdateStoreRequest.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UpdateKeyValueStoreRequest.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// Example: {"name":"new-store-name","generalAccess":"RESTRICTED"} /// - public sealed partial class UpdateStoreRequest + public sealed partial class UpdateKeyValueStoreRequest { /// /// @@ -28,7 +28,7 @@ public sealed partial class UpdateStoreRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -37,7 +37,7 @@ public sealed partial class UpdateStoreRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateStoreRequest( + public UpdateKeyValueStoreRequest( string? name, global::Apify.GeneralAccess? generalAccess) { @@ -46,9 +46,9 @@ public UpdateStoreRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateStoreRequest() + public UpdateKeyValueStoreRequest() { } diff --git a/src/libs/Apify/Generated/Apify.Models.UpdateWebhookRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateWebhookRequest.Json.g.cs new file mode 100644 index 00000000..c115b223 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UpdateWebhookRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class UpdateWebhookRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.UpdateWebhookRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.UpdateWebhookRequest), + jsonSerializerContext) as global::Apify.UpdateWebhookRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.UpdateWebhookRequest? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.UpdateWebhookRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.UpdateWebhookRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UpdateWebhookRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookUpdate.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateWebhookRequest.g.cs similarity index 93% rename from src/libs/Apify/Generated/Apify.Models.WebhookUpdate.g.cs rename to src/libs/Apify/Generated/Apify.Models.UpdateWebhookRequest.g.cs index f84228a6..8068cbf2 100644 --- a/src/libs/Apify/Generated/Apify.Models.WebhookUpdate.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UpdateWebhookRequest.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class WebhookUpdate + public sealed partial class UpdateWebhookRequest { /// /// @@ -75,7 +75,7 @@ public sealed partial class WebhookUpdate public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -90,7 +90,7 @@ public sealed partial class WebhookUpdate #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WebhookUpdate( + public UpdateWebhookRequest( bool? isAdHoc, global::System.Collections.Generic.IList? eventTypes, global::Apify.WebhookCondition? condition, @@ -115,9 +115,9 @@ public WebhookUpdate( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WebhookUpdate() + public UpdateWebhookRequest() { } diff --git a/src/libs/Apify/Generated/Apify.Models.UpdatedBuildProperty.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdatedBuildProperty.Json.g.cs new file mode 100644 index 00000000..83032539 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UpdatedBuildProperty.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class UpdatedBuildProperty + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.UpdatedBuildProperty? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.UpdatedBuildProperty), + jsonSerializerContext) as global::Apify.UpdatedBuildProperty; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.UpdatedBuildProperty? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.UpdatedBuildProperty? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.UpdatedBuildProperty), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UpdatedBuildProperty; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.BuildTag.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdatedBuildProperty.g.cs similarity index 80% rename from src/libs/Apify/Generated/Apify.Models.BuildTag.g.cs rename to src/libs/Apify/Generated/Apify.Models.UpdatedBuildProperty.g.cs index 9d793596..e3243d3d 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildTag.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UpdatedBuildProperty.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// The name of the build tag. /// - public sealed partial class BuildTag + public sealed partial class UpdatedBuildProperty { /// /// The ID of the build to assign to the tag. @@ -22,7 +22,7 @@ public sealed partial class BuildTag public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The ID of the build to assign to the tag. @@ -30,16 +30,16 @@ public sealed partial class BuildTag #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public BuildTag( + public UpdatedBuildProperty( string buildId) { this.BuildId = buildId ?? throw new global::System.ArgumentNullException(nameof(buildId)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public BuildTag() + public UpdatedBuildProperty() { } diff --git a/src/libs/Apify/Generated/Apify.Models.UsageItem.g.cs b/src/libs/Apify/Generated/Apify.Models.UsageItem.g.cs index aafd5c7a..eb19d0c0 100644 --- a/src/libs/Apify/Generated/Apify.Models.UsageItem.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UsageItem.g.cs @@ -38,7 +38,7 @@ public sealed partial class UsageItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("priceTiers")] - public global::System.Collections.Generic.IList? PriceTiers { get; set; } + public global::System.Collections.Generic.IList? PriceTiers { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -62,7 +62,7 @@ public UsageItem( double baseAmountUsd, double? baseUnitPriceUsd, double? amountAfterVolumeDiscountUsd, - global::System.Collections.Generic.IList? priceTiers) + global::System.Collections.Generic.IList? priceTiers) { this.Quantity = quantity; this.BaseAmountUsd = baseAmountUsd; diff --git a/src/libs/Apify/Generated/Apify.Models.Request.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPlan.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.Request.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserPlan.Json.g.cs index e91fefe1..b376bb8e 100644 --- a/src/libs/Apify/Generated/Apify.Models.Request.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPlan.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public readonly partial struct Request + public sealed partial class UserPlan { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.Request? FromJson( + public static global::Apify.UserPlan? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.Request), - jsonSerializerContext) as global::Apify.Request?; + typeof(global::Apify.UserPlan), + jsonSerializerContext) as global::Apify.UserPlan; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.Request? FromJson( + public static global::Apify.UserPlan? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.Request? FromJson( + public static global::Apify.UserPlan? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.Request), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Request?; + typeof(global::Apify.UserPlan), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UserPlan; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.Plan.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPlan.g.cs similarity index 97% rename from src/libs/Apify/Generated/Apify.Models.Plan.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserPlan.g.cs index 96c31896..5bbd32ed 100644 --- a/src/libs/Apify/Generated/Apify.Models.Plan.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPlan.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class Plan + public sealed partial class UserPlan { /// /// @@ -171,7 +171,7 @@ public sealed partial class Plan public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A dictionary mapping proxy group names to the number of available proxies in each group.
@@ -210,7 +210,7 @@ public sealed partial class Plan #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Plan( + public UserPlan( global::System.Collections.Generic.Dictionary availableProxyGroups, string? id, string? description, @@ -265,9 +265,9 @@ public Plan( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Plan() + public UserPlan() { } diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreSchema.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPlanPlanPricing.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.KeyValueStoreSchema.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserPlanPlanPricing.Json.g.cs index 8f5a577b..fd8150e9 100644 --- a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreSchema.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPlanPlanPricing.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class KeyValueStoreSchema + public sealed partial class UserPlanPlanPricing { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.KeyValueStoreSchema? FromJson( + public static global::Apify.UserPlanPlanPricing? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.KeyValueStoreSchema), - jsonSerializerContext) as global::Apify.KeyValueStoreSchema; + typeof(global::Apify.UserPlanPlanPricing), + jsonSerializerContext) as global::Apify.UserPlanPlanPricing; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.KeyValueStoreSchema? FromJson( + public static global::Apify.UserPlanPlanPricing? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.KeyValueStoreSchema? FromJson( + public static global::Apify.UserPlanPlanPricing? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.KeyValueStoreSchema), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.KeyValueStoreSchema; + typeof(global::Apify.UserPlanPlanPricing), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UserPlanPlanPricing; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.PlanPlanPricing.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPlanPlanPricing.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.PlanPlanPricing.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserPlanPlanPricing.g.cs index e68c108e..fdd500d2 100644 --- a/src/libs/Apify/Generated/Apify.Models.PlanPlanPricing.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPlanPlanPricing.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// Pricing details for this plan. /// - public sealed partial class PlanPlanPricing + public sealed partial class UserPlanPlanPricing { /// diff --git a/src/libs/Apify/Generated/Apify.Models.UserPrivateInfo.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPrivateInfo.g.cs index 1c6b7d64..3d6cde87 100644 --- a/src/libs/Apify/Generated/Apify.Models.UserPrivateInfo.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPrivateInfo.g.cs @@ -25,7 +25,7 @@ public sealed partial class UserPrivateInfo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("profile")] - public global::Apify.Profile? Profile { get; set; } + public global::Apify.UserProfile? Profile { get; set; } /// /// @@ -37,13 +37,13 @@ public sealed partial class UserPrivateInfo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("proxy")] - public global::Apify.Proxy? Proxy { get; set; } + public global::Apify.ProxyResource? Proxy { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("plan")] - public global::Apify.Plan? Plan { get; set; } + public global::Apify.UserPlan? Plan { get; set; } /// /// @@ -87,10 +87,10 @@ public sealed partial class UserPrivateInfo public UserPrivateInfo( string username, string? id, - global::Apify.Profile? profile, + global::Apify.UserProfile? profile, string? email, - global::Apify.Proxy? proxy, - global::Apify.Plan? plan, + global::Apify.ProxyResource? proxy, + global::Apify.UserPlan? plan, global::Apify.EffectivePlatformFeatures? effectivePlatformFeatures, global::System.DateTime? createdAt, bool? isPaying) diff --git a/src/libs/Apify/Generated/Apify.Models.UserPrivateInfoResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPrivateInfoResponse.Json.g.cs new file mode 100644 index 00000000..d54a324c --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UserPrivateInfoResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class UserPrivateInfoResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.UserPrivateInfoResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.UserPrivateInfoResponse), + jsonSerializerContext) as global::Apify.UserPrivateInfoResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.UserPrivateInfoResponse? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.UserPrivateInfoResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.UserPrivateInfoResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UserPrivateInfoResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.PrivateUserDataResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPrivateInfoResponse.g.cs similarity index 78% rename from src/libs/Apify/Generated/Apify.Models.PrivateUserDataResponse.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserPrivateInfoResponse.g.cs index a29fc33d..d89ced5b 100644 --- a/src/libs/Apify/Generated/Apify.Models.PrivateUserDataResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPrivateInfoResponse.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class PrivateUserDataResponse + public sealed partial class UserPrivateInfoResponse { /// /// @@ -22,22 +22,22 @@ public sealed partial class PrivateUserDataResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PrivateUserDataResponse( + public UserPrivateInfoResponse( global::Apify.UserPrivateInfo data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PrivateUserDataResponse() + public UserPrivateInfoResponse() { } diff --git a/src/libs/Apify/Generated/Apify.Models.BuildShort.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UserProfile.Json.g.cs similarity index 90% rename from src/libs/Apify/Generated/Apify.Models.BuildShort.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserProfile.Json.g.cs index 2bd59658..0d788cbf 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildShort.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserProfile.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class BuildShort + public sealed partial class UserProfile { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.BuildShort? FromJson( + public static global::Apify.UserProfile? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.BuildShort), - jsonSerializerContext) as global::Apify.BuildShort; + typeof(global::Apify.UserProfile), + jsonSerializerContext) as global::Apify.UserProfile; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.BuildShort? FromJson( + public static global::Apify.UserProfile? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.BuildShort? FromJson( + public static global::Apify.UserProfile? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.BuildShort), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.BuildShort; + typeof(global::Apify.UserProfile), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UserProfile; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.Profile.g.cs b/src/libs/Apify/Generated/Apify.Models.UserProfile.g.cs similarity index 91% rename from src/libs/Apify/Generated/Apify.Models.Profile.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserProfile.g.cs index fe43d56d..89015d64 100644 --- a/src/libs/Apify/Generated/Apify.Models.Profile.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserProfile.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class Profile + public sealed partial class UserProfile { /// /// @@ -57,7 +57,7 @@ public sealed partial class Profile public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -71,7 +71,7 @@ public sealed partial class Profile #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Profile( + public UserProfile( string? bio, string? readme, string? name, @@ -90,9 +90,9 @@ public Profile( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Profile() + public UserProfile() { } diff --git a/src/libs/Apify/Generated/Apify.Models.UserPublicInfo.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPublicInfo.g.cs index dfbd0926..f4e6744e 100644 --- a/src/libs/Apify/Generated/Apify.Models.UserPublicInfo.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPublicInfo.g.cs @@ -19,7 +19,7 @@ public sealed partial class UserPublicInfo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("profile")] - public global::Apify.Profile? Profile { get; set; } + public global::Apify.UserProfile? Profile { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -37,7 +37,7 @@ public sealed partial class UserPublicInfo #endif public UserPublicInfo( string username, - global::Apify.Profile? profile) + global::Apify.UserProfile? profile) { this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); this.Profile = profile; diff --git a/src/libs/Apify/Generated/Apify.Models.PublicUserDataResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPublicInfoResponse.Json.g.cs similarity index 88% rename from src/libs/Apify/Generated/Apify.Models.PublicUserDataResponse.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserPublicInfoResponse.Json.g.cs index 1647471f..9148e40e 100644 --- a/src/libs/Apify/Generated/Apify.Models.PublicUserDataResponse.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPublicInfoResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class PublicUserDataResponse + public sealed partial class UserPublicInfoResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.PublicUserDataResponse? FromJson( + public static global::Apify.UserPublicInfoResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.PublicUserDataResponse), - jsonSerializerContext) as global::Apify.PublicUserDataResponse; + typeof(global::Apify.UserPublicInfoResponse), + jsonSerializerContext) as global::Apify.UserPublicInfoResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.PublicUserDataResponse? FromJson( + public static global::Apify.UserPublicInfoResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.PublicUserDataResponse? FromJson( + public static global::Apify.UserPublicInfoResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.PublicUserDataResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.PublicUserDataResponse; + typeof(global::Apify.UserPublicInfoResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UserPublicInfoResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.PublicUserDataResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPublicInfoResponse.g.cs similarity index 78% rename from src/libs/Apify/Generated/Apify.Models.PublicUserDataResponse.g.cs rename to src/libs/Apify/Generated/Apify.Models.UserPublicInfoResponse.g.cs index a0d2c930..cd72d7c0 100644 --- a/src/libs/Apify/Generated/Apify.Models.PublicUserDataResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPublicInfoResponse.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class PublicUserDataResponse + public sealed partial class UserPublicInfoResponse { /// /// @@ -22,22 +22,22 @@ public sealed partial class PublicUserDataResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PublicUserDataResponse( + public UserPublicInfoResponse( global::Apify.UserPublicInfo data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PublicUserDataResponse() + public UserPublicInfoResponse() { } diff --git a/src/libs/Apify/Generated/Apify.Models.ValidationError.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ValidationError.Json.g.cs deleted file mode 100644 index b82ed612..00000000 --- a/src/libs/Apify/Generated/Apify.Models.ValidationError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class ValidationError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.ValidationError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.ValidationError), - jsonSerializerContext) as global::Apify.ValidationError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.ValidationError? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.ValidationError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.ValidationError), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ValidationError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.Webhook.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.Webhook.Json.g.cs deleted file mode 100644 index 369fd0ab..00000000 --- a/src/libs/Apify/Generated/Apify.Models.Webhook.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class Webhook - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.Webhook? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.Webhook), - jsonSerializerContext) as global::Apify.Webhook; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.Webhook? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.Webhook? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.Webhook), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.Webhook; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookCreate.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookCreate.Json.g.cs deleted file mode 100644 index 0643e5a2..00000000 --- a/src/libs/Apify/Generated/Apify.Models.WebhookCreate.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class WebhookCreate - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.WebhookCreate? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.WebhookCreate), - jsonSerializerContext) as global::Apify.WebhookCreate; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.WebhookCreate? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.WebhookCreate? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.WebhookCreate), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookCreate; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.TestWebhookResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookLastDispatch.Json.g.cs similarity index 89% rename from src/libs/Apify/Generated/Apify.Models.TestWebhookResponse.Json.g.cs rename to src/libs/Apify/Generated/Apify.Models.WebhookLastDispatch.Json.g.cs index ee7e466e..ac1c9a7a 100644 --- a/src/libs/Apify/Generated/Apify.Models.TestWebhookResponse.Json.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookLastDispatch.Json.g.cs @@ -2,7 +2,7 @@ namespace Apify { - public sealed partial class TestWebhookResponse + public sealed partial class WebhookLastDispatch { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Apify.TestWebhookResponse? FromJson( + public static global::Apify.WebhookLastDispatch? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Apify.TestWebhookResponse), - jsonSerializerContext) as global::Apify.TestWebhookResponse; + typeof(global::Apify.WebhookLastDispatch), + jsonSerializerContext) as global::Apify.WebhookLastDispatch; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Apify.TestWebhookResponse? FromJson( + public static global::Apify.WebhookLastDispatch? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Apify.TestWebhookResponse? FromJson( + public static global::Apify.WebhookLastDispatch? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Apify.TestWebhookResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.TestWebhookResponse; + typeof(global::Apify.WebhookLastDispatch), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookLastDispatch; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Apify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Apify/Generated/Apify.Models.ExampleWebhookDispatch.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookLastDispatch.g.cs similarity index 86% rename from src/libs/Apify/Generated/Apify.Models.ExampleWebhookDispatch.g.cs rename to src/libs/Apify/Generated/Apify.Models.WebhookLastDispatch.g.cs index 93a20bf8..a4b9d8f1 100644 --- a/src/libs/Apify/Generated/Apify.Models.ExampleWebhookDispatch.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookLastDispatch.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class ExampleWebhookDispatch + public sealed partial class WebhookLastDispatch { /// /// Status of the webhook dispatch indicating whether the HTTP request was successful. @@ -35,7 +35,7 @@ public sealed partial class ExampleWebhookDispatch public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Status of the webhook dispatch indicating whether the HTTP request was successful. @@ -45,7 +45,7 @@ public sealed partial class ExampleWebhookDispatch #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ExampleWebhookDispatch( + public WebhookLastDispatch( global::Apify.WebhookDispatchStatus status, global::System.DateTime? finishedAt, global::System.DateTime? removedAt) @@ -56,9 +56,9 @@ public ExampleWebhookDispatch( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ExampleWebhookDispatch() + public WebhookLastDispatch() { } diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookListItem.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookListItem.Json.g.cs new file mode 100644 index 00000000..86e9c5ba --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookListItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class WebhookListItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.WebhookListItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.WebhookListItem), + jsonSerializerContext) as global::Apify.WebhookListItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.WebhookListItem? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.WebhookListItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.WebhookListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookListItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookShort.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookListItem.g.cs similarity index 95% rename from src/libs/Apify/Generated/Apify.Models.WebhookShort.g.cs rename to src/libs/Apify/Generated/Apify.Models.WebhookListItem.g.cs index 69383474..2f66dd5f 100644 --- a/src/libs/Apify/Generated/Apify.Models.WebhookShort.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookListItem.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class WebhookShort + public sealed partial class WebhookListItem { /// /// @@ -105,7 +105,7 @@ public sealed partial class WebhookShort /// /// [global::System.Text.Json.Serialization.JsonPropertyName("lastDispatch")] - public global::Apify.ExampleWebhookDispatch? LastDispatch { get; set; } + public global::Apify.WebhookLastDispatch? LastDispatch { get; set; } /// /// @@ -120,7 +120,7 @@ public sealed partial class WebhookShort public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -141,7 +141,7 @@ public sealed partial class WebhookShort #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WebhookShort( + public WebhookListItem( string id, global::System.DateTime createdAt, global::System.DateTime modifiedAt, @@ -156,7 +156,7 @@ public WebhookShort( bool? isEnabled, string? actionType, bool? shouldInterpolateStrings, - global::Apify.ExampleWebhookDispatch? lastDispatch, + global::Apify.WebhookLastDispatch? lastDispatch, global::Apify.WebhookStats? stats) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); @@ -178,9 +178,9 @@ public WebhookShort( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WebhookShort() + public WebhookListItem() { } diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookResource.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookResource.Json.g.cs new file mode 100644 index 00000000..3bc5e2e9 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookResource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class WebhookResource + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Apify.WebhookResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.WebhookResource), + jsonSerializerContext) as global::Apify.WebhookResource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.WebhookResource? FromJson( + string json) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Apify.WebhookResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Apify.WebhookResource), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookResource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Apify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.Webhook.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookResource.g.cs similarity index 96% rename from src/libs/Apify/Generated/Apify.Models.Webhook.g.cs rename to src/libs/Apify/Generated/Apify.Models.WebhookResource.g.cs index 7df54c8b..b486b071 100644 --- a/src/libs/Apify/Generated/Apify.Models.Webhook.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookResource.g.cs @@ -6,7 +6,7 @@ namespace Apify /// /// /// - public sealed partial class Webhook + public sealed partial class WebhookResource { /// /// @@ -103,7 +103,7 @@ public sealed partial class Webhook /// /// [global::System.Text.Json.Serialization.JsonPropertyName("lastDispatch")] - public global::Apify.ExampleWebhookDispatch? LastDispatch { get; set; } + public global::Apify.WebhookLastDispatch? LastDispatch { get; set; } /// /// @@ -118,7 +118,7 @@ public sealed partial class Webhook public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -141,7 +141,7 @@ public sealed partial class Webhook #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Webhook( + public WebhookResource( string id, global::System.DateTime createdAt, global::System.DateTime modifiedAt, @@ -156,7 +156,7 @@ public Webhook( string? payloadTemplate, string? headersTemplate, string? description, - global::Apify.ExampleWebhookDispatch? lastDispatch, + global::Apify.WebhookLastDispatch? lastDispatch, global::Apify.WebhookStats? stats) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); @@ -178,9 +178,9 @@ public Webhook( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Webhook() + public WebhookResource() { } diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookResponse.g.cs index 9973db2e..4493f69b 100644 --- a/src/libs/Apify/Generated/Apify.Models.WebhookResponse.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class WebhookResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Apify.Webhook Data { get; set; } + public required global::Apify.WebhookResource Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class WebhookResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WebhookResponse( - global::Apify.Webhook data) + global::Apify.WebhookResource data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookShort.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookShort.Json.g.cs deleted file mode 100644 index 424ad985..00000000 --- a/src/libs/Apify/Generated/Apify.Models.WebhookShort.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class WebhookShort - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.WebhookShort? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.WebhookShort), - jsonSerializerContext) as global::Apify.WebhookShort; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.WebhookShort? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.WebhookShort? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.WebhookShort), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookShort; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookUpdate.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookUpdate.Json.g.cs deleted file mode 100644 index bfbb7538..00000000 --- a/src/libs/Apify/Generated/Apify.Models.WebhookUpdate.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Apify -{ - public sealed partial class WebhookUpdate - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Apify.WebhookUpdate? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Apify.WebhookUpdate), - jsonSerializerContext) as global::Apify.WebhookUpdate; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Apify.WebhookUpdate? FromJson( - string json) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Apify.WebhookUpdate? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Apify.WebhookUpdate), - jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookUpdate; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Apify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs index f581a246..637e3997 100644 --- a/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs @@ -26,17 +26,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleBase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortRunActor))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortRunActorTask))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShort), TypeInfoPropertyName = "ScheduleActionShort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortDiscriminatorType), TypeInfoPropertyName = "ScheduleActionShortDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleShort), TypeInfoPropertyName = "ScheduleShort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleShortVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionRunActor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionRunActorTask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemAction), TypeInfoPropertyName = "ScheduleListItemAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionDiscriminatorType), TypeInfoPropertyName = "ScheduleListItemActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItem), TypeInfoPropertyName = "ScheduleListItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedules), TypeInfoPropertyName = "ListOfSchedules2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedulesVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedulesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActor))] @@ -44,7 +44,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateAction), TypeInfoPropertyName = "ScheduleCreateAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionDiscriminatorType), TypeInfoPropertyName = "ScheduleCreateActionDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateOrUpdateScheduleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunActorTask))] @@ -56,29 +56,29 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleVariant2Notifications))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleInvoked))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleLogEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleLogResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShort?), TypeInfoPropertyName = "NullableScheduleActionShort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionShortDiscriminatorType?), TypeInfoPropertyName = "NullableScheduleActionShortDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleShort?), TypeInfoPropertyName = "NullableScheduleShort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemAction?), TypeInfoPropertyName = "NullableScheduleListItemAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionDiscriminatorType?), TypeInfoPropertyName = "NullableScheduleListItemActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItem?), TypeInfoPropertyName = "NullableScheduleListItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfSchedules?), TypeInfoPropertyName = "NullableListOfSchedules2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateAction?), TypeInfoPropertyName = "NullableScheduleCreateAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionDiscriminatorType?), TypeInfoPropertyName = "NullableScheduleCreateActionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleAction?), TypeInfoPropertyName = "NullableScheduleAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionDiscriminatorType?), TypeInfoPropertyName = "NullableScheduleActionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Schedule?), TypeInfoPropertyName = "NullableSchedule2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SchedulesSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -126,8 +126,8 @@ private SchedulesSourceGenerationContext(global::System.Text.Json.JsonSerializer [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Apify.JsonConverters.ScheduleActionShortJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.ScheduleShortJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.ScheduleListItemActionJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.ScheduleListItemJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.ListOfSchedulesJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.ScheduleCreateActionJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.ScheduleActionJsonConverter()); @@ -160,9 +160,9 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ErrorType?) - || typeToConvert == typeof(global::Apify.ScheduleActionShortDiscriminatorType) + || typeToConvert == typeof(global::Apify.ScheduleListItemActionDiscriminatorType) - || typeToConvert == typeof(global::Apify.ScheduleActionShortDiscriminatorType?) + || typeToConvert == typeof(global::Apify.ScheduleListItemActionDiscriminatorType?) || typeToConvert == typeof(global::Apify.ScheduleCreateActionDiscriminatorType) @@ -187,14 +187,14 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.ErrorTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::Apify.ScheduleActionShortDiscriminatorType)) + if (typeToConvert == typeof(global::Apify.ScheduleListItemActionDiscriminatorType)) { - return new global::Apify.JsonConverters.ScheduleActionShortDiscriminatorTypeJsonConverter(); + return new global::Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeJsonConverter(); } - if (typeToConvert == typeof(global::Apify.ScheduleActionShortDiscriminatorType?)) + if (typeToConvert == typeof(global::Apify.ScheduleListItemActionDiscriminatorType?)) { - return new global::Apify.JsonConverters.ScheduleActionShortDiscriminatorTypeNullableJsonConverter(); + return new global::Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeNullableJsonConverter(); } if (typeToConvert == typeof(global::Apify.ScheduleCreateActionDiscriminatorType)) diff --git a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs index 0acb9c33..a97f120f 100644 --- a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs +++ b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs @@ -28,12 +28,12 @@ public partial class SchedulesClient partial void PrepareSchedulePutArguments( global::System.Net.Http.HttpClient httpClient, ref string scheduleId, - global::Apify.ScheduleCreate request); + global::Apify.CreateOrUpdateScheduleRequest request); partial void PrepareSchedulePutRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string scheduleId, - global::Apify.ScheduleCreate request); + global::Apify.CreateOrUpdateScheduleRequest request); partial void ProcessSchedulePutResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -66,7 +66,7 @@ partial void ProcessSchedulePutResponseContent( public async global::System.Threading.Tasks.Task SchedulePutAsync( string scheduleId, - global::Apify.ScheduleCreate request, + global::Apify.CreateOrUpdateScheduleRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -103,7 +103,7 @@ partial void ProcessSchedulePutResponseContent( public async global::System.Threading.Tasks.Task> SchedulePutAsResponseAsync( string scheduleId, - global::Apify.ScheduleCreate request, + global::Apify.CreateOrUpdateScheduleRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -837,7 +837,7 @@ partial void ProcessSchedulePutResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.ScheduleCreate + var __request = new global::Apify.CreateOrUpdateScheduleRequest { Name = name, IsEnabled = isEnabled, diff --git a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs index 15bca2fb..f5ecfc26 100644 --- a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs +++ b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs @@ -27,11 +27,11 @@ public partial class SchedulesClient }; partial void PrepareSchedulesPostArguments( global::System.Net.Http.HttpClient httpClient, - global::Apify.ScheduleCreate request); + global::Apify.CreateOrUpdateScheduleRequest request); partial void PrepareSchedulesPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Apify.ScheduleCreate request); + global::Apify.CreateOrUpdateScheduleRequest request); partial void ProcessSchedulesPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -56,7 +56,7 @@ partial void ProcessSchedulesPostResponseContent( /// public async global::System.Threading.Tasks.Task SchedulesPostAsync( - global::Apify.ScheduleCreate request, + global::Apify.CreateOrUpdateScheduleRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -84,7 +84,7 @@ partial void ProcessSchedulesPostResponseContent( /// public async global::System.Threading.Tasks.Task> SchedulesPostAsResponseAsync( - global::Apify.ScheduleCreate request, + global::Apify.CreateOrUpdateScheduleRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -808,7 +808,7 @@ partial void ProcessSchedulesPostResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.ScheduleCreate + var __request = new global::Apify.CreateOrUpdateScheduleRequest { Name = name, IsEnabled = isEnabled, diff --git a/src/libs/Apify/Generated/Apify.StorageDatasets.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageDatasets.JsonSerializerContext.g.cs index ed6322bc..269e6365 100644 --- a/src/libs/Apify/Generated/Apify.StorageDatasets.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageDatasets.JsonSerializerContext.g.cs @@ -27,17 +27,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Dataset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateDatasetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.SchemaValidationErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetItemValidationError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.InvalidDatasetItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetSchemaValidationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemResponseError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PutItemsErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetFieldStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -52,7 +52,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetItemsPostContentEncoding), TypeInfoPropertyName = "DatasetItemsPostContentEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] @@ -64,10 +64,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfDatasets?), TypeInfoPropertyName = "NullableListOfDatasets2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>?), TypeInfoPropertyName = "NullableOneOfPutItemsRequestIListPutItemsRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DatasetItemsPostContentEncoding?), TypeInfoPropertyName = "NullableDatasetItemsPostContentEncoding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfPutItemResponseErrorErrorResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfPutItemsErrorResponseErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -125,10 +125,10 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.StorageDatasetsClient.DatasetItemsPost.g.cs b/src/libs/Apify/Generated/Apify.StorageDatasetsClient.DatasetItemsPost.g.cs index 00b420bf..39a65621 100644 --- a/src/libs/Apify/Generated/Apify.StorageDatasetsClient.DatasetItemsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageDatasetsClient.DatasetItemsPost.g.cs @@ -386,19 +386,19 @@ partial void ProcessDatasetItemsPostResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::Apify.AnyOf? __value_400 = null; + global::Apify.AnyOf? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Apify.AnyOf.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -407,7 +407,7 @@ partial void ProcessDatasetItemsPostResponseContent( } - throw global::Apify.ApiException?>.Create( + throw global::Apify.ApiException?>.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, diff --git a/src/libs/Apify/Generated/Apify.StorageKeyValueStores.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageKeyValueStores.JsonSerializerContext.g.cs index 87ca9201..ee74cb1e 100644 --- a/src/libs/Apify/Generated/Apify.StorageKeyValueStores.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageKeyValueStores.JsonSerializerContext.g.cs @@ -26,9 +26,9 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateKeyValueStoreRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeys))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -38,7 +38,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StorageOwnership), TypeInfoPropertyName = "StorageOwnership2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeyValueStores), TypeInfoPropertyName = "ListOfKeyValueStores2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeyValueStoresVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfKeyValueStoresResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreRecordPutContentEncoding), TypeInfoPropertyName = "KeyValueStoreRecordPutContentEncoding2")] @@ -55,7 +55,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreRecordPutContentEncoding?), TypeInfoPropertyName = "NullableKeyValueStoreRecordPutContentEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreRecordPostContentEncoding?), TypeInfoPropertyName = "NullableKeyValueStoreRecordPostContentEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class StorageKeyValueStoresSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.StorageKeyValueStoresClient.KeyValueStorePut.g.cs b/src/libs/Apify/Generated/Apify.StorageKeyValueStoresClient.KeyValueStorePut.g.cs index 3c2e2e73..ca50bba0 100644 --- a/src/libs/Apify/Generated/Apify.StorageKeyValueStoresClient.KeyValueStorePut.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageKeyValueStoresClient.KeyValueStorePut.g.cs @@ -28,12 +28,12 @@ public partial class StorageKeyValueStoresClient partial void PrepareKeyValueStorePutArguments( global::System.Net.Http.HttpClient httpClient, ref string storeId, - global::Apify.UpdateStoreRequest request); + global::Apify.UpdateKeyValueStoreRequest request); partial void PrepareKeyValueStorePutRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string storeId, - global::Apify.UpdateStoreRequest request); + global::Apify.UpdateKeyValueStoreRequest request); partial void ProcessKeyValueStorePutResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -60,7 +60,7 @@ partial void ProcessKeyValueStorePutResponseContent( public async global::System.Threading.Tasks.Task KeyValueStorePutAsync( string storeId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -91,7 +91,7 @@ partial void ProcessKeyValueStorePutResponseContent( public async global::System.Threading.Tasks.Task> KeyValueStorePutAsResponseAsync( string storeId, - global::Apify.UpdateStoreRequest request, + global::Apify.UpdateKeyValueStoreRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -772,7 +772,7 @@ partial void ProcessKeyValueStorePutResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.UpdateStoreRequest + var __request = new global::Apify.UpdateKeyValueStoreRequest { Name = name, GeneralAccess = generalAccess, diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueues.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueues.JsonSerializerContext.g.cs index ad630704..13335ebb 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueues.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueues.JsonSerializerContext.g.cs @@ -27,7 +27,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess), TypeInfoPropertyName = "GeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateRequestQueueRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod), TypeInfoPropertyName = "HttpMethod2")] @@ -35,14 +35,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestBase))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId), TypeInfoPropertyName = "RequestWithoutId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AddedRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraft))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UnprocessedRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchAddResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteById))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDeleteByUniqueKey))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete), TypeInfoPropertyName = "RequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteById))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDeleteByUniqueKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete), TypeInfoPropertyName = "RequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestById))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequestByUniqueKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest), TypeInfoPropertyName = "DeletedRequest2")] @@ -50,14 +50,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.BatchDeleteResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StorageOwnership), TypeInfoPropertyName = "StorageOwnership2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestQueues), TypeInfoPropertyName = "ListOfRequestQueues2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestQueuesVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestQueuesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] @@ -67,18 +67,18 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GeneralAccess?), TypeInfoPropertyName = "NullableGeneralAccess2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod?), TypeInfoPropertyName = "NullableHttpMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId?), TypeInfoPropertyName = "NullableRequestWithoutId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestDraftDelete?), TypeInfoPropertyName = "NullableRequestDraftDelete2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestToDelete?), TypeInfoPropertyName = "NullableRequestToDelete2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DeletedRequest?), TypeInfoPropertyName = "NullableDeletedRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StorageOwnership?), TypeInfoPropertyName = "NullableStorageOwnership2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestQueues?), TypeInfoPropertyName = "NullableListOfRequestQueues2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf?), TypeInfoPropertyName = "NullableAllOfUpdateRequestQueueRequestObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class StorageRequestQueuesSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -127,7 +127,7 @@ private StorageRequestQueuesSourceGenerationContext(global::System.Text.Json.Jso public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::Apify.JsonConverters.RequestWithoutIdJsonConverter()); - options.Converters.Add(new global::Apify.JsonConverters.RequestDraftDeleteJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.RequestToDeleteJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.DeletedRequestJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.ListOfRequestQueuesJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter()); diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueuesClient.RequestQueueRequestsBatchDelete.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueuesClient.RequestQueueRequestsBatchDelete.g.cs index 2d721887..2d9753f5 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueuesClient.RequestQueueRequestsBatchDelete.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueuesClient.RequestQueueRequestsBatchDelete.g.cs @@ -30,14 +30,14 @@ partial void PrepareRequestQueueRequestsBatchDeleteArguments( ref string queueId, ref string contentType, ref string? clientKey, - global::System.Collections.Generic.IList request); + global::System.Collections.Generic.IList request); partial void PrepareRequestQueueRequestsBatchDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string queueId, string contentType, string? clientKey, - global::System.Collections.Generic.IList request); + global::System.Collections.Generic.IList request); partial void ProcessRequestQueueRequestsBatchDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -75,7 +75,7 @@ partial void ProcessRequestQueueRequestsBatchDeleteResponseContent( public async global::System.Threading.Tasks.Task RequestQueueRequestsBatchDeleteAsync( string queueId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string contentType = "application/json", string? clientKey = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, @@ -121,7 +121,7 @@ partial void ProcessRequestQueueRequestsBatchDeleteResponseContent( public async global::System.Threading.Tasks.Task> RequestQueueRequestsBatchDeleteAsResponseAsync( string queueId, - global::System.Collections.Generic.IList request, + global::System.Collections.Generic.IList request, string contentType = "application/json", string? clientKey = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequests.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequests.JsonSerializerContext.g.cs index a3960309..4d0f5735 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequests.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequests.JsonSerializerContext.g.cs @@ -26,10 +26,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod), TypeInfoPropertyName = "HttpMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestUserData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestBase))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request), TypeInfoPropertyName = "Request2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource), TypeInfoPropertyName = "RequestResource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResourceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRequestsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId), TypeInfoPropertyName = "RequestWithoutId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestRegistration))] @@ -44,11 +44,11 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod?), TypeInfoPropertyName = "NullableHttpMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Request?), TypeInfoPropertyName = "NullableRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestResource?), TypeInfoPropertyName = "NullableRequestResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestWithoutId?), TypeInfoPropertyName = "NullableRequestWithoutId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueRequestsGetFilterItem?), TypeInfoPropertyName = "NullableRequestQueueRequestsGetFilterItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class StorageRequestQueuesRequestsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -97,7 +97,7 @@ private StorageRequestQueuesRequestsSourceGenerationContext(global::System.Text. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Apify.JsonConverters.RequestJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.RequestResourceJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.RequestWithoutIdJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocks.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocks.JsonSerializerContext.g.cs index 444b4229..152dd399 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocks.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocks.JsonSerializerContext.g.cs @@ -26,22 +26,22 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UnlockRequestsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestLockInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProlongRequestLockResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedHeadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RequestQueueHeadResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHead))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HeadAndLockResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LockedRequestQueueHeadResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.HttpMethod?), TypeInfoPropertyName = "NullableHttpMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class StorageRequestQueuesRequestsLocksSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocksClient.RequestQueueHeadGet.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocksClient.RequestQueueHeadGet.g.cs index 40910197..12c1c4ac 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocksClient.RequestQueueHeadGet.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocksClient.RequestQueueHeadGet.g.cs @@ -67,7 +67,7 @@ partial void ProcessRequestQueueHeadGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RequestQueueHeadGetAsync( + public async global::System.Threading.Tasks.Task RequestQueueHeadGetAsync( string queueId, double? limit = default, string? clientKey = default, @@ -106,7 +106,7 @@ partial void ProcessRequestQueueHeadGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> RequestQueueHeadGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> RequestQueueHeadGetAsResponseAsync( string queueId, double? limit = default, string? clientKey = default, @@ -653,9 +653,9 @@ partial void ProcessRequestQueueHeadGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.HeadResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.RequestQueueHeadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -685,9 +685,9 @@ partial void ProcessRequestQueueHeadGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.HeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.RequestQueueHeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocksClient.RequestQueueHeadLockPost.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocksClient.RequestQueueHeadLockPost.g.cs index 59ca12a6..bee2e70d 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocksClient.RequestQueueHeadLockPost.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocksClient.RequestQueueHeadLockPost.g.cs @@ -72,7 +72,7 @@ partial void ProcessRequestQueueHeadLockPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RequestQueueHeadLockPostAsync( + public async global::System.Threading.Tasks.Task RequestQueueHeadLockPostAsync( string queueId, double lockSecs, double? limit = default, @@ -116,7 +116,7 @@ partial void ProcessRequestQueueHeadLockPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> RequestQueueHeadLockPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> RequestQueueHeadLockPostAsResponseAsync( string queueId, double lockSecs, double? limit = default, @@ -630,9 +630,9 @@ partial void ProcessRequestQueueHeadLockPostResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.HeadAndLockResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.LockedRequestQueueHeadResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -662,9 +662,9 @@ partial void ProcessRequestQueueHeadLockPostResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.HeadAndLockResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.LockedRequestQueueHeadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.Store.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Store.JsonSerializerContext.g.cs index e9234037..9e98709f 100644 --- a/src/libs/Apify/Generated/Apify.Store.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Store.JsonSerializerContext.g.cs @@ -28,11 +28,11 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorNotice), TypeInfoPropertyName = "ActorNotice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CurrentPricingInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreListActor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfStoreActors), TypeInfoPropertyName = "ListOfStoreActors2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfStoreActorsVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorsInStoreResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfStoreActorsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreGetPricingModel), TypeInfoPropertyName = "StoreGetPricingModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreGetResponseFormat), TypeInfoPropertyName = "StoreGetResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] @@ -45,7 +45,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreGetPricingModel?), TypeInfoPropertyName = "NullableStoreGetPricingModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreGetResponseFormat?), TypeInfoPropertyName = "NullableStoreGetResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class StoreSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.StoreClient.StoreGet.g.cs b/src/libs/Apify/Generated/Apify.StoreClient.StoreGet.g.cs index 5da3cf72..c7239f83 100644 --- a/src/libs/Apify/Generated/Apify.StoreClient.StoreGet.g.cs +++ b/src/libs/Apify/Generated/Apify.StoreClient.StoreGet.g.cs @@ -104,7 +104,7 @@ partial void ProcessStoreGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task StoreGetAsync( + public async global::System.Threading.Tasks.Task StoreGetAsync( double? limit = default, double? offset = default, string? search = default, @@ -180,7 +180,7 @@ partial void ProcessStoreGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> StoreGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> StoreGetAsResponseAsync( double? limit = default, double? offset = default, string? search = default, @@ -645,9 +645,9 @@ partial void ProcessStoreGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.ListOfActorsInStoreResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.ListOfStoreActorsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -677,9 +677,9 @@ partial void ProcessStoreGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.ListOfActorsInStoreResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.ListOfStoreActorsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.ToolsEncoding.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ToolsEncoding.JsonSerializerContext.g.cs index 58e698e0..67ca04ff 100644 --- a/src/libs/Apify/Generated/Apify.ToolsEncoding.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ToolsEncoding.JsonSerializerContext.g.cs @@ -19,10 +19,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EncodeAndSignData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EncodeAndSignResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EncodeAndSignResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] diff --git a/src/libs/Apify/Generated/Apify.Users.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Users.JsonSerializerContext.g.cs index 3c8f0604..dc212172 100644 --- a/src/libs/Apify/Generated/Apify.Users.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Users.JsonSerializerContext.g.cs @@ -24,17 +24,17 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Profile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserProfile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPublicInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PublicUserDataResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPublicInfoResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProxyGroup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Proxy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ProxyResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Plan))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPlan))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EffectivePlatformFeature))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EffectivePlatformFeatures))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPrivateInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PrivateUserDataResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPrivateInfoResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] diff --git a/src/libs/Apify/Generated/Apify.UsersClient.UserGet.g.cs b/src/libs/Apify/Generated/Apify.UsersClient.UserGet.g.cs index 366edcf7..98bbb8bd 100644 --- a/src/libs/Apify/Generated/Apify.UsersClient.UserGet.g.cs +++ b/src/libs/Apify/Generated/Apify.UsersClient.UserGet.g.cs @@ -53,7 +53,7 @@ partial void ProcessUserGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UserGetAsync( + public async global::System.Threading.Tasks.Task UserGetAsync( string userId, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -78,7 +78,7 @@ partial void ProcessUserGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UserGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> UserGetAsResponseAsync( string userId, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -541,9 +541,9 @@ partial void ProcessUserGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.PublicUserDataResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.UserPublicInfoResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -573,9 +573,9 @@ partial void ProcessUserGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.PublicUserDataResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.UserPublicInfoResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.UsersClient.UsersMeGet.g.cs b/src/libs/Apify/Generated/Apify.UsersClient.UsersMeGet.g.cs index 7bd0244e..72d482c9 100644 --- a/src/libs/Apify/Generated/Apify.UsersClient.UsersMeGet.g.cs +++ b/src/libs/Apify/Generated/Apify.UsersClient.UsersMeGet.g.cs @@ -49,7 +49,7 @@ partial void ProcessUsersMeGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UsersMeGetAsync( + public async global::System.Threading.Tasks.Task UsersMeGetAsync( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -70,7 +70,7 @@ partial void ProcessUsersMeGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UsersMeGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> UsersMeGetAsResponseAsync( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -530,9 +530,9 @@ partial void ProcessUsersMeGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.PrivateUserDataResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.UserPrivateInfoResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -562,9 +562,9 @@ partial void ProcessUsersMeGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.PrivateUserDataResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.UserPrivateInfoResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.UsersUsage.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.UsersUsage.JsonSerializerContext.g.cs index 34c2b5ae..5488bc35 100644 --- a/src/libs/Apify/Generated/Apify.UsersUsage.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.UsersUsage.JsonSerializerContext.g.cs @@ -22,25 +22,25 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UsageCycle))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PriceTiers))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PriceTier))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UsageItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DailyServiceUsages))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DailyServiceUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.MonthlyUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.MonthlyUsageResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Limits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Current))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CurrentUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AccountLimits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.LimitsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AccountLimitsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateLimitsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class UsersUsageSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersMeLimitsGet.g.cs b/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersMeLimitsGet.g.cs index 33ed1c45..6fad2267 100644 --- a/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersMeLimitsGet.g.cs +++ b/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersMeLimitsGet.g.cs @@ -48,7 +48,7 @@ partial void ProcessUsersMeLimitsGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UsersMeLimitsGetAsync( + public async global::System.Threading.Tasks.Task UsersMeLimitsGetAsync( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ partial void ProcessUsersMeLimitsGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UsersMeLimitsGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> UsersMeLimitsGetAsResponseAsync( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -528,9 +528,9 @@ partial void ProcessUsersMeLimitsGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.LimitsResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.AccountLimitsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -560,9 +560,9 @@ partial void ProcessUsersMeLimitsGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.LimitsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.AccountLimitsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.WebhooksWebhookDispatches.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.WebhooksWebhookDispatches.JsonSerializerContext.g.cs index ca5f3865..a1871bcf 100644 --- a/src/libs/Apify/Generated/Apify.WebhooksWebhookDispatches.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.WebhooksWebhookDispatches.JsonSerializerContext.g.cs @@ -31,11 +31,11 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchEventData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatches), TypeInfoPropertyName = "ListOfWebhookDispatches2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatchesVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatchesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] diff --git a/src/libs/Apify/Generated/Apify.WebhooksWebhooks.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.WebhooksWebhooks.JsonSerializerContext.g.cs index 7a383ac5..67500232 100644 --- a/src/libs/Apify/Generated/Apify.WebhooksWebhooks.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.WebhooksWebhooks.JsonSerializerContext.g.cs @@ -26,24 +26,24 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookEventType), TypeInfoPropertyName = "WebhookEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookCondition))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ExampleWebhookDispatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookLastDispatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookShort))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooks), TypeInfoPropertyName = "ListOfWebhooks2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooksVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooksResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.Webhook))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookCreate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateWebhookRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateWebhookRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchWebhookSummary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchEventData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TestWebhookResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatches), TypeInfoPropertyName = "ListOfWebhookDispatches2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatchesVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -58,7 +58,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhooks?), TypeInfoPropertyName = "NullableListOfWebhooks2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookDispatches?), TypeInfoPropertyName = "NullableListOfWebhookDispatches2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class WebhooksWebhooksSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext diff --git a/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookPut.g.cs b/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookPut.g.cs index eb8cc86f..bc74dc8e 100644 --- a/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookPut.g.cs +++ b/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookPut.g.cs @@ -28,12 +28,12 @@ public partial class WebhooksWebhooksClient partial void PrepareWebhookPutArguments( global::System.Net.Http.HttpClient httpClient, ref string webhookId, - global::Apify.WebhookUpdate request); + global::Apify.UpdateWebhookRequest request); partial void PrepareWebhookPutRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string webhookId, - global::Apify.WebhookUpdate request); + global::Apify.UpdateWebhookRequest request); partial void ProcessWebhookPutResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -67,7 +67,7 @@ partial void ProcessWebhookPutResponseContent( public async global::System.Threading.Tasks.Task WebhookPutAsync( string webhookId, - global::Apify.WebhookUpdate request, + global::Apify.UpdateWebhookRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -105,7 +105,7 @@ partial void ProcessWebhookPutResponseContent( public async global::System.Threading.Tasks.Task> WebhookPutAsResponseAsync( string webhookId, - global::Apify.WebhookUpdate request, + global::Apify.UpdateWebhookRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -807,7 +807,7 @@ partial void ProcessWebhookPutResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.WebhookUpdate + var __request = new global::Apify.UpdateWebhookRequest { IsAdHoc = isAdHoc, EventTypes = eventTypes, diff --git a/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookTestPost.g.cs b/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookTestPost.g.cs index 0f4f6774..c80e83e0 100644 --- a/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookTestPost.g.cs +++ b/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookTestPost.g.cs @@ -51,7 +51,7 @@ partial void ProcessWebhookTestPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task WebhookTestPostAsync( + public async global::System.Threading.Tasks.Task WebhookTestPostAsync( string webhookId, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -74,7 +74,7 @@ partial void ProcessWebhookTestPostResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> WebhookTestPostAsResponseAsync( + public async global::System.Threading.Tasks.Task> WebhookTestPostAsResponseAsync( string webhookId, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -574,9 +574,9 @@ partial void ProcessWebhookTestPostResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.TestWebhookResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.WebhookDispatchResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -606,9 +606,9 @@ partial void ProcessWebhookTestPostResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.TestWebhookResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.WebhookDispatchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Apify.AutoSDKHttpResponse( + return new global::Apify.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhooksPost.g.cs b/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhooksPost.g.cs index 51cfcbfa..81f8007b 100644 --- a/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhooksPost.g.cs +++ b/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhooksPost.g.cs @@ -27,11 +27,11 @@ public partial class WebhooksWebhooksClient }; partial void PrepareWebhooksPostArguments( global::System.Net.Http.HttpClient httpClient, - global::Apify.WebhookCreate request); + global::Apify.CreateWebhookRequest request); partial void PrepareWebhooksPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Apify.WebhookCreate request); + global::Apify.CreateWebhookRequest request); partial void ProcessWebhooksPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -95,7 +95,7 @@ partial void ProcessWebhooksPostResponseContent( /// public async global::System.Threading.Tasks.Task WebhooksPostAsync( - global::Apify.WebhookCreate request, + global::Apify.CreateWebhookRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -162,7 +162,7 @@ partial void ProcessWebhooksPostResponseContent( /// public async global::System.Threading.Tasks.Task> WebhooksPostAsResponseAsync( - global::Apify.WebhookCreate request, + global::Apify.CreateWebhookRequest request, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -894,7 +894,7 @@ partial void ProcessWebhooksPostResponseContent( global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Apify.WebhookCreate + var __request = new global::Apify.CreateWebhookRequest { IsAdHoc = isAdHoc, EventTypes = eventTypes, diff --git a/src/libs/Apify/openapi.yaml b/src/libs/Apify/openapi.yaml index 15e97ca2..beac34f1 100644 --- a/src/libs/Apify/openapi.yaml +++ b/src/libs/Apify/openapi.yaml @@ -4325,7 +4325,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/PutItemResponseError" + "$ref": "#/components/schemas/PutItemsErrorResponse" }, { "$ref": "#/components/schemas/ErrorResponse" @@ -4495,7 +4495,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateStoreRequest" + "$ref": "#/components/schemas/UpdateKeyValueStoreRequest" }, "example": { "name": "new-store-name" @@ -5457,7 +5457,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/RequestDraftDelete" + "$ref": "#/components/schemas/RequestToDelete" } } } @@ -5893,7 +5893,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HeadResponse" + "$ref": "#/components/schemas/RequestQueueHeadResponse" } } } @@ -5955,7 +5955,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HeadAndLockResponse" + "$ref": "#/components/schemas/LockedRequestQueueHeadResponse" } } } @@ -7340,7 +7340,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/Webhook" + "$ref": "#/components/schemas/WebhookResource" } } } @@ -7555,7 +7555,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/RunShort" + "$ref": "#/components/schemas/RunListItem" } } } @@ -9177,7 +9177,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/PutItemResponseError" + "$ref": "#/components/schemas/PutItemsErrorResponse" }, { "$ref": "#/components/schemas/ErrorResponse" @@ -9347,7 +9347,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateStoreRequest" + "$ref": "#/components/schemas/UpdateKeyValueStoreRequest" }, "example": { "name": "new-store-name" @@ -10086,7 +10086,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HeadResponse" + "$ref": "#/components/schemas/RequestQueueHeadResponse" } } } @@ -10148,7 +10148,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HeadAndLockResponse" + "$ref": "#/components/schemas/LockedRequestQueueHeadResponse" } } } @@ -10433,7 +10433,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/RequestDraftDelete" + "$ref": "#/components/schemas/RequestToDelete" } } } @@ -12058,7 +12058,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/PutItemResponseError" + "$ref": "#/components/schemas/PutItemsErrorResponse" }, { "$ref": "#/components/schemas/ErrorResponse" @@ -12210,7 +12210,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateStoreRequest" + "$ref": "#/components/schemas/UpdateKeyValueStoreRequest" }, "example": { "name": "new-store-name" @@ -13088,7 +13088,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/RequestDraftDelete" + "$ref": "#/components/schemas/RequestToDelete" } } } @@ -13482,7 +13482,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HeadResponse" + "$ref": "#/components/schemas/RequestQueueHeadResponse" } } } @@ -13538,7 +13538,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HeadAndLockResponse" + "$ref": "#/components/schemas/LockedRequestQueueHeadResponse" } } } @@ -14314,7 +14314,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateStoreRequest" + "$ref": "#/components/schemas/UpdateKeyValueStoreRequest" }, "example": { "name": "new-store-name" @@ -15779,7 +15779,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/PutItemResponseError" + "$ref": "#/components/schemas/PutItemsErrorResponse" }, { "$ref": "#/components/schemas/ErrorResponse" @@ -16383,7 +16383,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/RequestDraftDelete" + "$ref": "#/components/schemas/RequestToDelete" } } } @@ -16874,7 +16874,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HeadResponse" + "$ref": "#/components/schemas/RequestQueueHeadResponse" } } } @@ -16941,7 +16941,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HeadAndLockResponse" + "$ref": "#/components/schemas/LockedRequestQueueHeadResponse" } } } @@ -17254,7 +17254,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WebhookCreate" + "$ref": "#/components/schemas/CreateWebhookRequest" } } }, @@ -17396,7 +17396,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WebhookUpdate" + "$ref": "#/components/schemas/UpdateWebhookRequest" } } }, @@ -17527,7 +17527,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TestWebhookResponse" + "$ref": "#/components/schemas/WebhookDispatchResponse" } } } @@ -17996,7 +17996,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScheduleCreate" + "$ref": "#/components/schemas/CreateOrUpdateScheduleRequest" } } }, @@ -18141,7 +18141,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScheduleCreate" + "$ref": "#/components/schemas/CreateOrUpdateScheduleRequest" } } }, @@ -18507,7 +18507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOfActorsInStoreResponse" + "$ref": "#/components/schemas/ListOfStoreActorsResponse" } } } @@ -18638,7 +18638,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicUserDataResponse" + "$ref": "#/components/schemas/UserPublicInfoResponse" } } } @@ -18682,7 +18682,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PrivateUserDataResponse" + "$ref": "#/components/schemas/UserPrivateInfoResponse" } } } @@ -18783,7 +18783,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LimitsResponse" + "$ref": "#/components/schemas/AccountLimitsResponse" } } } @@ -20349,8 +20349,8 @@ } } }, - "ActorShort": { - "title": "ActorShort", + "ActorListItem": { + "title": "ActorListItem", "required": [ "id", "createdAt", @@ -20425,7 +20425,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/ActorShort" + "$ref": "#/components/schemas/ActorListItem" } } } @@ -21727,8 +21727,8 @@ "UNDER_MAINTENANCE" ] }, - "Actor": { - "title": "Actor", + "ActorResource": { + "title": "ActorResource", "required": [ "id", "userId", @@ -21990,7 +21990,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/Actor" + "$ref": "#/components/schemas/ActorResource" } } }, @@ -22081,8 +22081,8 @@ } } }, - "BuildTag": { - "title": "BuildTag", + "UpdatedBuildProperty": { + "title": "UpdatedBuildProperty", "type": [ "object", "null" @@ -22219,7 +22219,7 @@ ], "description": "A dictionary that maps tag names to specific builds. For details, see [Update build tags](#update-build-tags).", "additionalProperties": { - "$ref": "#/components/schemas/BuildTag" + "$ref": "#/components/schemas/UpdatedBuildProperty" }, "example": { "latest": { @@ -22428,8 +22428,8 @@ ], "description": "Status of the webhook dispatch indicating whether the HTTP request was successful." }, - "ExampleWebhookDispatch": { - "title": "ExampleWebhookDispatch", + "WebhookLastDispatch": { + "title": "WebhookLastDispatch", "required": [ "status" ], @@ -22472,8 +22472,8 @@ } } }, - "WebhookShort": { - "title": "WebhookShort", + "WebhookListItem": { + "title": "WebhookListItem", "required": [ "id", "createdAt", @@ -22585,7 +22585,7 @@ "lastDispatch": { "anyOf": [ { - "$ref": "#/components/schemas/ExampleWebhookDispatch" + "$ref": "#/components/schemas/WebhookLastDispatch" }, { "type": "null" @@ -22619,7 +22619,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/WebhookShort" + "$ref": "#/components/schemas/WebhookListItem" } } } @@ -22670,8 +22670,8 @@ "MCP" ] }, - "BuildsMeta": { - "title": "BuildsMeta", + "BuildMeta": { + "title": "BuildMeta", "required": [ "origin" ], @@ -22700,8 +22700,8 @@ } } }, - "BuildShort": { - "title": "BuildShort", + "BuildListItem": { + "title": "BuildListItem", "required": [ "id", "status", @@ -22769,7 +22769,7 @@ ] }, "meta": { - "$ref": "#/components/schemas/BuildsMeta" + "$ref": "#/components/schemas/BuildMeta" } } }, @@ -22788,7 +22788,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/BuildShort" + "$ref": "#/components/schemas/BuildListItem" } } } @@ -23052,7 +23052,7 @@ "$ref": "#/components/schemas/ActorJobStatus" }, "meta": { - "$ref": "#/components/schemas/BuildsMeta" + "$ref": "#/components/schemas/BuildMeta" }, "stats": { "anyOf": [ @@ -23328,8 +23328,8 @@ } } }, - "RunShort": { - "title": "RunShort", + "RunListItem": { + "title": "RunListItem", "required": [ "id", "actId", @@ -23454,7 +23454,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/RunShort" + "$ref": "#/components/schemas/RunListItem" } } } @@ -23989,8 +23989,8 @@ } } }, - "Metamorph": { - "title": "Metamorph", + "RunMetamorphEvent": { + "title": "RunMetamorphEvent", "description": "Information about a metamorph event that occurred during the run.", "type": "object", "required": [ @@ -24328,7 +24328,7 @@ { "type": "array", "items": { - "$ref": "#/components/schemas/Metamorph" + "$ref": "#/components/schemas/RunMetamorphEvent" } }, { @@ -24389,8 +24389,8 @@ } } }, - "Dataset": { - "title": "Dataset", + "DatasetResource": { + "title": "DatasetResource", "required": [ "id", "userId", @@ -24557,7 +24557,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/Dataset" + "$ref": "#/components/schemas/DatasetResource" } } }, @@ -24591,8 +24591,8 @@ "price": 19.99 } }, - "ValidationError": { - "title": "ValidationError", + "DatasetItemValidationError": { + "title": "DatasetItemValidationError", "type": "object", "properties": { "instancePath": { @@ -24617,8 +24617,8 @@ } } }, - "InvalidItem": { - "title": "InvalidItem", + "InvalidDatasetItem": { + "title": "InvalidDatasetItem", "type": "object", "properties": { "itemPosition": { @@ -24632,13 +24632,13 @@ "type": "array", "description": "A complete list of AJV validation error objects for the invalid item.", "items": { - "$ref": "#/components/schemas/ValidationError" + "$ref": "#/components/schemas/DatasetItemValidationError" } } } }, - "SchemaValidationErrorData": { - "title": "SchemaValidationErrorData", + "DatasetSchemaValidationErrorData": { + "title": "DatasetSchemaValidationErrorData", "required": [ "invalidItems" ], @@ -24648,7 +24648,7 @@ "type": "array", "description": "A list of invalid items in the received array of items.", "items": { - "$ref": "#/components/schemas/InvalidItem" + "$ref": "#/components/schemas/InvalidDatasetItem" } } } @@ -24672,12 +24672,12 @@ ] }, "data": { - "$ref": "#/components/schemas/SchemaValidationErrorData" + "$ref": "#/components/schemas/DatasetSchemaValidationErrorData" } } }, - "PutItemResponseError": { - "title": "PutItemResponseError", + "PutItemsErrorResponse": { + "title": "PutItemsErrorResponse", "required": [ "error" ], @@ -24827,8 +24827,8 @@ } } }, - "KeyValueStore": { - "title": "KeyValueStore", + "KeyValueStoreResource": { + "title": "KeyValueStoreResource", "required": [ "id", "createdAt", @@ -24970,12 +24970,12 @@ "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/KeyValueStore" + "$ref": "#/components/schemas/KeyValueStoreResource" } } }, - "UpdateStoreRequest": { - "title": "UpdateStoreRequest", + "UpdateKeyValueStoreRequest": { + "title": "UpdateKeyValueStoreRequest", "type": "object", "properties": { "name": { @@ -25242,8 +25242,8 @@ } } }, - "RequestQueue": { - "title": "RequestQueue", + "RequestQueueResource": { + "title": "RequestQueueResource", "description": "A request queue object containing metadata and statistics.", "required": [ "id", @@ -25342,7 +25342,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/RequestQueue" + "$ref": "#/components/schemas/RequestQueueResource" } } }, @@ -25516,8 +25516,8 @@ "sbJ7klsdf7ujN9l" ] }, - "Request": { - "title": "Request", + "RequestResource": { + "title": "RequestResource", "description": "A request stored in the request queue, including its metadata and processing state.", "allOf": [ { @@ -25547,7 +25547,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/Request" + "$ref": "#/components/schemas/RequestResource" }, "description": "The array of requests." }, @@ -25719,8 +25719,8 @@ } } }, - "RequestDraft": { - "title": "RequestDraft", + "UnprocessedRequest": { + "title": "UnprocessedRequest", "description": "A request that failed to be processed during a request queue operation and can be retried.", "required": [ "uniqueKey", @@ -25762,7 +25762,7 @@ "type": "array", "description": "Requests that failed to be added and can be retried.", "items": { - "$ref": "#/components/schemas/RequestDraft" + "$ref": "#/components/schemas/UnprocessedRequest" } } } @@ -25799,8 +25799,8 @@ } } }, - "RequestDraftDeleteById": { - "title": "RequestDraftDeleteById", + "RequestToDeleteById": { + "title": "RequestToDeleteById", "description": "A request that should be deleted, identified by its ID.", "type": "object", "required": [ @@ -25815,8 +25815,8 @@ } } }, - "RequestDraftDeleteByUniqueKey": { - "title": "RequestDraftDeleteByUniqueKey", + "RequestToDeleteByUniqueKey": { + "title": "RequestToDeleteByUniqueKey", "description": "A request that should be deleted, identified by its unique key.", "type": "object", "required": [ @@ -25831,15 +25831,15 @@ } } }, - "RequestDraftDelete": { - "title": "RequestDraftDelete", + "RequestToDelete": { + "title": "RequestToDelete", "description": "A request that should be deleted.", "anyOf": [ { - "$ref": "#/components/schemas/RequestDraftDeleteById" + "$ref": "#/components/schemas/RequestToDeleteById" }, { - "$ref": "#/components/schemas/RequestDraftDeleteByUniqueKey" + "$ref": "#/components/schemas/RequestToDeleteByUniqueKey" } ] }, @@ -25907,7 +25907,7 @@ "type": "array", "description": "Requests that failed to be deleted and can be retried.", "items": { - "$ref": "#/components/schemas/RequestDraft" + "$ref": "#/components/schemas/UnprocessedRequest" } } } @@ -25964,7 +25964,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/Request" + "$ref": "#/components/schemas/RequestResource" } } }, @@ -26022,8 +26022,8 @@ 1000 ] }, - "HeadRequest": { - "title": "HeadRequest", + "RequestQueueHeadItem": { + "title": "RequestQueueHeadItem", "description": "A request from the request queue head without lock information.", "type": "object", "required": [ @@ -26072,14 +26072,14 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/HeadRequest" + "$ref": "#/components/schemas/RequestQueueHeadItem" }, "description": "The array of requests from the request queue head." } } }, - "HeadResponse": { - "title": "HeadResponse", + "RequestQueueHeadResponse": { + "title": "RequestQueueHeadResponse", "description": "Response containing requests from the request queue head without locking.", "required": [ "data" @@ -26121,8 +26121,8 @@ } } }, - "LockedHeadRequest": { - "title": "LockedHeadRequest", + "LockedRequestQueueHeadItem": { + "title": "LockedRequestQueueHeadItem", "description": "A request from the request queue head that has been locked for processing.", "type": "object", "required": [ @@ -26197,14 +26197,14 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/LockedHeadRequest" + "$ref": "#/components/schemas/LockedRequestQueueHeadItem" }, "description": "The array of locked requests from the request queue head." } } }, - "HeadAndLockResponse": { - "title": "HeadAndLockResponse", + "LockedRequestQueueHeadResponse": { + "title": "LockedRequestQueueHeadResponse", "description": "Response containing locked requests from the request queue head.", "required": [ "data" @@ -26262,8 +26262,8 @@ } } }, - "TaskShort": { - "title": "TaskShort", + "TaskListItem": { + "title": "TaskListItem", "required": [ "id", "userId", @@ -26366,7 +26366,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/TaskShort" + "$ref": "#/components/schemas/TaskListItem" } } } @@ -26851,8 +26851,8 @@ } } }, - "Webhook": { - "title": "Webhook", + "WebhookResource": { + "title": "WebhookResource", "required": [ "id", "createdAt", @@ -26978,7 +26978,7 @@ "lastDispatch": { "anyOf": [ { - "$ref": "#/components/schemas/ExampleWebhookDispatch" + "$ref": "#/components/schemas/WebhookLastDispatch" }, { "type": "null" @@ -27078,7 +27078,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/KeyValueStore" + "$ref": "#/components/schemas/KeyValueStoreResource" } } } @@ -27251,8 +27251,8 @@ } } }, - "RequestQueueShort": { - "title": "RequestQueueShort", + "RequestQueueListItem": { + "title": "RequestQueueListItem", "description": "A shortened request queue object for list responses.", "required": [ "id", @@ -27371,7 +27371,7 @@ "type": "array", "description": "The array of request queues.", "items": { - "$ref": "#/components/schemas/RequestQueueShort" + "$ref": "#/components/schemas/RequestQueueListItem" } } } @@ -27391,8 +27391,8 @@ } } }, - "WebhookCreate": { - "title": "WebhookCreate", + "CreateWebhookRequest": { + "title": "CreateWebhookRequest", "required": [ "eventTypes", "condition", @@ -27503,12 +27503,12 @@ "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/Webhook" + "$ref": "#/components/schemas/WebhookResource" } } }, - "WebhookUpdate": { - "title": "WebhookUpdate", + "UpdateWebhookRequest": { + "title": "UpdateWebhookRequest", "type": "object", "properties": { "isAdHoc": { @@ -27792,8 +27792,8 @@ } } }, - "TestWebhookResponse": { - "title": "TestWebhookResponse", + "WebhookDispatchResponse": { + "title": "WebhookDispatchResponse", "required": [ "data" ], @@ -27838,18 +27838,6 @@ } } }, - "WebhookDispatchResponse": { - "title": "WebhookDispatchResponse", - "required": [ - "data" - ], - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/WebhookDispatch" - } - } - }, "ScheduleBase": { "title": "ScheduleBase", "required": [ @@ -27943,8 +27931,8 @@ } } }, - "ScheduleActionShortRunActor": { - "title": "ScheduleActionShortRunActor", + "ScheduleListItemActionRunActor": { + "title": "ScheduleListItemActionRunActor", "required": [ "id", "type", @@ -27969,8 +27957,8 @@ } } }, - "ScheduleActionShortRunActorTask": { - "title": "ScheduleActionShortRunActorTask", + "ScheduleListItemActionRunActorTask": { + "title": "ScheduleListItemActionRunActorTask", "required": [ "id", "type", @@ -27995,26 +27983,26 @@ } } }, - "ScheduleActionShort": { - "title": "ScheduleActionShort", + "ScheduleListItemAction": { + "title": "ScheduleListItemAction", "oneOf": [ { - "$ref": "#/components/schemas/ScheduleActionShortRunActor" + "$ref": "#/components/schemas/ScheduleListItemActionRunActor" }, { - "$ref": "#/components/schemas/ScheduleActionShortRunActorTask" + "$ref": "#/components/schemas/ScheduleListItemActionRunActorTask" } ], "discriminator": { "propertyName": "type", "mapping": { - "RUN_ACTOR": "#/components/schemas/ScheduleActionShortRunActor", - "RUN_ACTOR_TASK": "#/components/schemas/ScheduleActionShortRunActorTask" + "RUN_ACTOR": "#/components/schemas/ScheduleListItemActionRunActor", + "RUN_ACTOR_TASK": "#/components/schemas/ScheduleListItemActionRunActorTask" } } }, - "ScheduleShort": { - "title": "ScheduleShort", + "ScheduleListItem": { + "title": "ScheduleListItem", "allOf": [ { "$ref": "#/components/schemas/ScheduleBase" @@ -28028,7 +28016,7 @@ "actions": { "type": "array", "items": { - "$ref": "#/components/schemas/ScheduleActionShort" + "$ref": "#/components/schemas/ScheduleListItemAction" }, "description": "" } @@ -28051,7 +28039,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/ScheduleShort" + "$ref": "#/components/schemas/ScheduleListItem" } } } @@ -28180,8 +28168,8 @@ } } }, - "ScheduleCreate": { - "title": "ScheduleCreate", + "CreateOrUpdateScheduleRequest": { + "title": "CreateOrUpdateScheduleRequest", "type": "object", "properties": { "name": { @@ -28419,8 +28407,8 @@ } } }, - "ScheduleInvoked": { - "title": "ScheduleInvoked", + "ScheduleLogEntry": { + "title": "ScheduleLogEntry", "required": [ "message", "level", @@ -28459,7 +28447,7 @@ "data": { "type": "array", "items": { - "$ref": "#/components/schemas/ScheduleInvoked" + "$ref": "#/components/schemas/ScheduleLogEntry" }, "description": "" } @@ -28592,8 +28580,8 @@ } } }, - "StoreListActor": { - "title": "StoreListActor", + "StoreActor": { + "title": "StoreActor", "required": [ "id", "title", @@ -28748,15 +28736,15 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/StoreListActor" + "$ref": "#/components/schemas/StoreActor" } } } } ] }, - "ListOfActorsInStoreResponse": { - "title": "ListOfActorsInStoreResponse", + "ListOfStoreActorsResponse": { + "title": "ListOfStoreActorsResponse", "required": [ "data" ], @@ -28832,8 +28820,8 @@ } } }, - "Profile": { - "title": "Profile", + "UserProfile": { + "title": "UserProfile", "type": "object", "properties": { "bio": { @@ -28915,12 +28903,12 @@ ] }, "profile": { - "$ref": "#/components/schemas/Profile" + "$ref": "#/components/schemas/UserProfile" } } }, - "PublicUserDataResponse": { - "title": "PublicUserDataResponse", + "UserPublicInfoResponse": { + "title": "UserPublicInfoResponse", "required": [ "data" ], @@ -28963,8 +28951,8 @@ } } }, - "Proxy": { - "title": "Proxy", + "ProxyResource": { + "title": "ProxyResource", "required": [ "password", "groups" @@ -28999,8 +28987,8 @@ "GOOGLE_SERP": 200 } }, - "Plan": { - "title": "Plan", + "UserPlan": { + "title": "UserPlan", "required": [ "availableProxyGroups" ], @@ -29285,7 +29273,7 @@ ] }, "profile": { - "$ref": "#/components/schemas/Profile" + "$ref": "#/components/schemas/UserProfile" }, "email": { "type": "string", @@ -29295,10 +29283,10 @@ ] }, "proxy": { - "$ref": "#/components/schemas/Proxy" + "$ref": "#/components/schemas/ProxyResource" }, "plan": { - "$ref": "#/components/schemas/Plan" + "$ref": "#/components/schemas/UserPlan" }, "effectivePlatformFeatures": { "$ref": "#/components/schemas/EffectivePlatformFeatures" @@ -29318,8 +29306,8 @@ } } }, - "PrivateUserDataResponse": { - "title": "PrivateUserDataResponse", + "UserPrivateInfoResponse": { + "title": "UserPrivateInfoResponse", "required": [ "data" ], @@ -29354,8 +29342,8 @@ } } }, - "PriceTiers": { - "title": "PriceTiers", + "PriceTier": { + "title": "PriceTier", "required": [ "quantityAbove", "discountPercent", @@ -29432,7 +29420,7 @@ "priceTiers": { "type": "array", "items": { - "$ref": "#/components/schemas/PriceTiers" + "$ref": "#/components/schemas/PriceTier" }, "description": "" } @@ -29463,8 +29451,8 @@ } } }, - "DailyServiceUsages": { - "title": "DailyServiceUsages", + "DailyServiceUsage": { + "title": "DailyServiceUsage", "required": [ "date", "serviceUsage", @@ -29510,7 +29498,7 @@ "dailyServiceUsages": { "type": "array", "items": { - "$ref": "#/components/schemas/DailyServiceUsages" + "$ref": "#/components/schemas/DailyServiceUsage" }, "description": "" }, @@ -29631,8 +29619,8 @@ } } }, - "Current": { - "title": "Current", + "CurrentUsage": { + "title": "CurrentUsage", "required": [ "monthlyUsageUsd", "monthlyActorComputeUnits", @@ -29731,12 +29719,12 @@ "$ref": "#/components/schemas/Limits" }, "current": { - "$ref": "#/components/schemas/Current" + "$ref": "#/components/schemas/CurrentUsage" } } }, - "LimitsResponse": { - "title": "LimitsResponse", + "AccountLimitsResponse": { + "title": "AccountLimitsResponse", "required": [ "data" ], @@ -29828,8 +29816,8 @@ } } }, - "EncodeAndSignData": { - "title": "EncodeAndSignData", + "EncodeAndSignResult": { + "title": "EncodeAndSignResult", "type": "object", "required": [ "encoded" @@ -29851,7 +29839,7 @@ ], "properties": { "data": { - "$ref": "#/components/schemas/EncodeAndSignData" + "$ref": "#/components/schemas/EncodeAndSignResult" } } }, @@ -29870,8 +29858,8 @@ } } }, - "DecodeAndVerifyData": { - "title": "DecodeAndVerifyData", + "DecodeAndVerifyResult": { + "title": "DecodeAndVerifyResult", "type": "object", "required": [ "decoded", @@ -29907,7 +29895,7 @@ ], "properties": { "data": { - "$ref": "#/components/schemas/DecodeAndVerifyData" + "$ref": "#/components/schemas/DecodeAndVerifyResult" } } }